mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 14:08:46 +02:00
N°2710 - Fix setup crash due to PHP notices (regression introduced in 59678955)
This commit is contained in:
@@ -2676,16 +2676,20 @@ EOF;
|
||||
*/
|
||||
protected function CompileThemes($oBrandingNode, $sTempTargetDir, $sFinalTargetDir)
|
||||
{
|
||||
// Make sure temp. target dir. ends with a '/'
|
||||
$sTempTargetDir .= '/';
|
||||
|
||||
// Set imports paths
|
||||
// Note: During compilation, we don't have access to "env-xxx", so we have to set several imports paths:
|
||||
// - The CSS directory for the
|
||||
// - The CSS directory for the native imports (eg. "../css/css-variables.scss")
|
||||
// - The SCSS from modules
|
||||
$aImportsPaths = array(
|
||||
APPROOT.'css/',
|
||||
$sTempTargetDir,
|
||||
$sTempTargetDir.'/',
|
||||
);
|
||||
|
||||
// Build compiled themes folder
|
||||
$sThemesDir = $sTempTargetDir.'/branding/themes/';
|
||||
$sThemesDir = $sTempTargetDir.'branding/themes/';
|
||||
if(!is_dir($sThemesDir))
|
||||
{
|
||||
SetupUtils::builddir($sThemesDir);
|
||||
|
||||
Reference in New Issue
Block a user