From 4c52028f555c361c232cbee166fa62522c66af5b Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 6 Nov 2015 16:45:55 +0100 Subject: experimental multi-client capability --- lib/helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3