aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Tools.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche/Tools.class.php')
-rwxr-xr-xinc/poche/Tools.class.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php
index f3d1013f..15050aed 100755
--- a/inc/poche/Tools.class.php
+++ b/inc/poche/Tools.class.php
@@ -72,8 +72,14 @@ final class Tools
72 $serverport = ''; 72 $serverport = '';
73 } 73 }
74 74
75 return 'http' . ($https ? 's' : '') . '://' 75 // check if BASE_URL is configured
76 . $host . $serverport . $scriptname; 76 if(BASE_URL != null && BASE_URL != '') {
77 $baseUrl = BASE_URL;
78 } else {
79 $baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport;
80 }
81
82 return $baseUrl . $scriptname;
77 } 83 }
78 84
79 /** 85 /**