Pārlūkot izejas kodu

SCSS Compilation : Disabled max_execution_time while compiling SCSS files as it can take a while (Set back to its original value afterwards).

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4215 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 9 gadi atpakaļ
vecāks
revīzija
124092588a
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      application/utils.inc.php

+ 4 - 0
application/utils.inc.php

@@ -1231,7 +1231,11 @@ class utils
 			$oScss = new Compiler();
 			$oScss->setImportPaths($aImportPaths);
 			$oScss->setFormatter('Leafo\\ScssPhp\\Formatter\\Expanded');
+			// Temporary disabling max exec time while compiling
+			$iCurrentMaxExecTime = (int) ini_get('max_execution_time');
+			set_time_limit(0);
 			$sCss = $oScss->compile(file_get_contents($sSassPath));
+			set_time_limit($iCurrentMaxExecTime);
 			file_put_contents($sCssPath, $sCss);
 		}
 		return $sCssRelPath;