avoid to read SCSS signature when no file touched and itop theme loading only + create parameters.json folder when necessary

This commit is contained in:
odain
2020-05-04 15:16:26 +02:00
parent d43c72b3ac
commit c1b3cb1e7b

View File

@@ -152,6 +152,10 @@ class ThemeHandler
// Save parameters if passed... (typically during DM compilation)
if(is_array($aThemeParameters))
{
if (!is_dir($sThemeFolderPath))
{
mkdir($sThemeFolderPath);
}
file_put_contents($sThemeFolderPath.'/theme-parameters.json', json_encode($aThemeParameters));
}
// ... Otherwise, retrieve them from compiled DM (typically when switching current theme in the config. file)