summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Config.php b/system/libraries/Config.php
index f7f813f86..532f70d42 100644
--- a/system/libraries/Config.php
+++ b/system/libraries/Config.php
@@ -208,12 +208,12 @@ class CI_Config {
if ($uri == '')
{
- return $this->item('base_url', 1).$this->item('index_page');
+ return $this->slash_item('base_url').$this->item('index_page');
}
else
{
$suffix = ($this->item('url_suffix') == FALSE) ? '' : $this->item('url_suffix');
- return $this->item('base_url', 1).$this->item('index_page', 1).preg_replace("|^/*(.+?)/*$|", "\\1", $uri).$suffix;
+ return $this->slash_item('base_url').$this->slash_item('index_page').preg_replace("|^/*(.+?)/*$|", "\\1", $uri).$suffix;
}
}
// END site_url()