diff options
author | MaZderMind | 2015-11-06 16:45:55 +0100 |
---|---|---|
committer | MaZderMind | 2015-11-06 16:45:55 +0100 |
commit | 4c52028f555c361c232cbee166fa62522c66af5b (patch) | |
tree | c72490cd50670e925619344bd9e4ad0c6aa541db /lib/helper.php | |
parent | e84ce4fea6b18ac72243e87e159d37e6cdffae04 (diff) |
experimental multi-client capability
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php index c6fd9a9..eb9fc6d 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -18,14 +18,14 @@ function baseurl() if(startswith('//', $base)) $base = proto().':'.$base; - return $base; + return forceslash($base.'/'.$GLOBALS['CLIENT']); } $base = ssl() ? 'https://' : 'http://'; $base .= $_SERVER['HTTP_HOST']; $base .= forceslash(dirname($_SERVER['SCRIPT_NAME'])); - return $base; + return forceslash($base.$GLOBALS['CLIENT']); } function forceslash($url) |