diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-03 13:59:17 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-03 13:59:17 +0100 |
commit | e540341ce42bc528632c2f96a0c7cd12fbce6a28 (patch) | |
tree | 167eecac18c9cce38b16b6a8531c5b2ccf6864b8 /system | |
parent | 797fd354fd0b29edae1d11761a133daaf9cf964e (diff) |
A tiny improvement in ruri_string()
Diffstat (limited to 'system')
-rw-r--r-- | system/core/URI.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/system/core/URI.php b/system/core/URI.php index bad9985d7..5e4c80a00 100644 --- a/system/core/URI.php +++ b/system/core/URI.php @@ -703,12 +703,7 @@ class CI_URI { { global $RTR; - if (($dir = $RTR->directory) === '/') - { - $dir = ''; - } - - return $dir.implode('/', $this->rsegment_array()); + return ltrim($RTR->directory, '/').implode('/', $this->rsegment_array()); } } |