mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
utils::GetCSSFromSASS() : Skip processing if file is already a .css
SVN:trunk[4204]
This commit is contained in:
@@ -1207,6 +1207,12 @@ class utils
|
||||
*/
|
||||
static public function GetCSSFromSASS($sSassRelPath)
|
||||
{
|
||||
// Avoiding compilation if file is already a css file.
|
||||
if (preg_match('/\.css$/', $sSassRelPath))
|
||||
{
|
||||
return $sSassRelPath;
|
||||
}
|
||||
|
||||
$sSassPath = APPROOT.$sSassRelPath;
|
||||
$sCssRelPath = preg_replace('/\.scss$/', '.css', $sSassRelPath);
|
||||
$sCssPath = APPROOT.$sCssRelPath;
|
||||
|
||||
Reference in New Issue
Block a user