From 6cd2ee9a7aa926b607922d933abc3f21b9e3868e Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 4 Sep 2006 07:11:16 +0000 Subject: --- system/libraries/Config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system') 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() -- cgit v1.2.3-24-g4f1b