From 445b24d4b377013eb3946383409b7668cd54e060 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 24 Apr 2007 12:48:19 +0000 Subject: fixed router but that was ignoring the scaffolding route for optimization --- system/libraries/Router.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'system/libraries/Router.php') diff --git a/system/libraries/Router.php b/system/libraries/Router.php index 64becf535..e44d9a4db 100644 --- a/system/libraries/Router.php +++ b/system/libraries/Router.php @@ -428,12 +428,13 @@ class CI_Router { function _parse_routes() { // Do we even have any custom routing to deal with? - if (count($this->routes) == 0) + // There is a default scaffolding trigger, so we'll look just for 1 + if (count($this->routes) == 1) { $this->_compile_segments($this->segments); return; } - + // Turn the segment array into a URI string $uri = implode('/', $this->segments); $num = count($this->segments); -- cgit v1.2.3-24-g4f1b