summaryrefslogtreecommitdiffstats
path: root/system/core/Config.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/core/Config.php')
-rw-r--r--system/core/Config.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/core/Config.php b/system/core/Config.php
index 1d2a0d155..c507f342c 100644
--- a/system/core/Config.php
+++ b/system/core/Config.php
@@ -98,6 +98,7 @@ class CI_Config {
{
$server_addr = $_SERVER['SERVER_ADDR'];
}
+
$base_url = (is_https() ? 'https' : 'http').'://'.$server_addr
.substr($_SERVER['SCRIPT_NAME'], 0, strpos($_SERVER['SCRIPT_NAME'], basename($_SERVER['SCRIPT_FILENAME'])));
}