summaryrefslogtreecommitdiffstats
path: root/system/libraries/Config.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Config.php')
-rw-r--r--system/libraries/Config.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/system/libraries/Config.php b/system/libraries/Config.php
index f3ae76390..b1a9defe0 100644
--- a/system/libraries/Config.php
+++ b/system/libraries/Config.php
@@ -172,12 +172,9 @@ class CI_Config {
$pref = $this->config[$item];
- if ($pref != '')
+ if ($pref != '' && substr($pref, -1) != '/')
{
- if (ereg("/$", $pref) === FALSE)
- {
- $pref .= '/';
- }
+ $pref .= '/';
}
return $pref;
@@ -242,6 +239,6 @@ class CI_Config {
}
// END CI_Config class
-
-/* End of file Config.php */
+
+/* End of file Config.php */
/* Location: ./system/libraries/Config.php */ \ No newline at end of file