diff options
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/init.php b/inc/init.php index 092d023c3..4b01a1240 100644 --- a/inc/init.php +++ b/inc/init.php @@ -176,6 +176,9 @@ function getBaseURL($abs=false){ //finish here for relative URLs if(!$abs) return $dir; + //use config option if available + if($conf['baseurl']) return $conf['baseurl'].$dir; + //split hostheader into host and port list($host,$port) = explode(':',$_SERVER['HTTP_HOST']); if(!$port) $port = $_SERVER['SERVER_PORT']; |