aboutsummaryrefslogtreecommitdiff
path: root/lib/helper.php
diff options
context:
space:
mode:
authorMaZderMind2015-11-06 16:45:55 +0100
committerMaZderMind2015-11-06 16:45:55 +0100
commit4c52028f555c361c232cbee166fa62522c66af5b (patch)
treec72490cd50670e925619344bd9e4ad0c6aa541db /lib/helper.php
parente84ce4fea6b18ac72243e87e159d37e6cdffae04 (diff)
experimental multi-client capability
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php4
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)