summaryrefslogtreecommitdiffstats
path: root/system/core/URI.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-01 20:21:20 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-01 20:21:20 +0100
commit254735ee011d99f5c7fe3825849d7ec0b54bd4e1 (patch)
tree484a8a077d2f3e230acf42d17767abfbebb81a6b /system/core/URI.php
parentd1097a1dc30f40c68bc4a5c89d3fadb295c55e56 (diff)
Fix issue #122
Diffstat (limited to 'system/core/URI.php')
-rw-r--r--system/core/URI.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/system/core/URI.php b/system/core/URI.php
index 2f6cade34..e2cac8d89 100644
--- a/system/core/URI.php
+++ b/system/core/URI.php
@@ -696,7 +696,14 @@ class CI_URI {
*/
public function ruri_string()
{
- return implode('/', $this->rsegment_array());
+ global $RTR;
+
+ if (($dir = $RTR->fetch_directory()) === '/')
+ {
+ $dir = '';
+ }
+
+ return $dir.implode('/', $this->rsegment_array());
}
}