diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/init.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php index cf86f4718..d3379565c 100644 --- a/inc/init.php +++ b/inc/init.php @@ -93,7 +93,11 @@ function getBaseURL($abs=false){ //if canonical url enabled always return absolute if($conf['canonical']) $abs = true; - $dir = dirname($_SERVER['PHP_SELF']).'/'; + if($conf['basedir']){ + $dir = $conf['basedir']; + }else{ + $dir = dirname($_SERVER['PHP_SELF']).'/'; + } $dir = str_replace('\\','/',$dir); #bugfix for weird WIN behaviour $dir = preg_replace('#//+#','/',$dir); |