mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Make sure that the stylesheet can be loaded by the setup page at first run.
SVN:trunk[3644]
This commit is contained in:
@@ -286,7 +286,13 @@ class WebPage implements Page
|
||||
file_put_contents($sCssPath, $sCss);
|
||||
}
|
||||
}
|
||||
$sCSSUrl = utils::GetAbsoluteUrlAppRoot().$sCssRelPath;
|
||||
$sRootUrl = utils::GetAbsoluteUrlAppRoot();
|
||||
if ($sRootUrl === '')
|
||||
{
|
||||
// We're running the setup of the first install...
|
||||
$sRootUrl = '../';
|
||||
}
|
||||
$sCSSUrl = $sRootUrl.$sCssRelPath;
|
||||
$this->add_linked_stylesheet($sCSSUrl);
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user