From 26405f829908231ca2ab3a429dc4b4bafbacaf53 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 15 Jul 2015 15:15:55 +0000 Subject: [PATCH] Make sure that the stylesheet can be loaded by the setup page at first run. SVN:trunk[3644] --- application/webpage.class.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/webpage.class.inc.php b/application/webpage.class.inc.php index be1191f35..423a66772 100644 --- a/application/webpage.class.inc.php +++ b/application/webpage.class.inc.php @@ -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); } /**