summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-03 13:59:17 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-03 13:59:17 +0100
commite540341ce42bc528632c2f96a0c7cd12fbce6a28 (patch)
tree167eecac18c9cce38b16b6a8531c5b2ccf6864b8
parent797fd354fd0b29edae1d11761a133daaf9cf964e (diff)
A tiny improvement in ruri_string()
-rw-r--r--system/core/URI.php7
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());
}
}