commit | 254735ee011d99f5c7fe3825849d7ec0b54bd4e1 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Thu Nov 01 21:21:20 2012 +0200 |
committer | Andrey Andreev <narf@bofh.bg> | Thu Nov 01 21:21:20 2012 +0200 |
tree | 484a8a077d2f3e230acf42d17767abfbebb81a6b | |
parent | d1097a1dc30f40c68bc4a5c89d3fadb295c55e56 [diff] [blame] |
Fix issue #122
diff --git a/system/core/URI.php b/system/core/URI.php index 2f6cade..e2cac8d 100644 --- a/system/core/URI.php +++ b/system/core/URI.php
@@ -696,7 +696,14 @@ */ public function ruri_string() { - return implode('/', $this->rsegment_array()); + global $RTR; + + if (($dir = $RTR->fetch_directory()) === '/') + { + $dir = ''; + } + + return $dir.implode('/', $this->rsegment_array()); } }