summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/bootstrap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 52274b4f1..51deb221d 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -176,7 +176,7 @@ function conf_init() {
// Create base URL
$base_root = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
$base_url = $base_root .= '://'. $_SERVER['HTTP_HOST'];
- if ($dir = trim(dirname($_SERVER['SCRIPT_NAME']), '\,/')) {
+ if ($dir = trim(dirname($_SERVER['PHP_SELF']), '\,/')) {
$base_path = "/$dir";
$base_url .= $base_path;
$base_path .= '/';