Make sure that the stylesheet can be loaded by the setup page at first run.

SVN:trunk[3644]
This commit is contained in:
Denis Flaven
2015-07-15 15:15:55 +00:00
parent 606e462b53
commit 26405f8299

View File

@@ -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);
}
/**