mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
SCSS Compilation : Disabled max_execution_time while compiling SCSS files as it can take a while (Set back to its original value afterwards).
SVN:trunk[4215]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user