From e540341ce42bc528632c2f96a0c7cd12fbce6a28 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Fri, 3 Jan 2014 14:59:17 +0200 Subject: A tiny improvement in ruri_string() --- system/core/URI.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'system/core/URI.php') 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()); } } -- cgit v1.2.3-24-g4f1b