From ef7b3ecdc379dbb5459b1e82976d60a308900a30 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 12 Sep 2005 19:31:16 +0200 Subject: option for setting baseurl #523 darcs-hash:20050912173116-7ad00-d342f7b065591097b19966e4650192d449a6039e.gz --- inc/init.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inc') 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']; -- cgit v1.2.3