mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 09:08:42 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user