summaryrefslogtreecommitdiffstats
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-04-24 14:48:19 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-04-24 14:48:19 +0200
commit445b24d4b377013eb3946383409b7668cd54e060 (patch)
treecc79ea6843a593788870cb03e49465ac3e9481b5 /system/libraries/Router.php
parentf5b621842786646d51e6c2c17384272b4ef0e452 (diff)
fixed router but that was ignoring the scaffolding route for optimization
Diffstat (limited to 'system/libraries/Router.php')
-rw-r--r--system/libraries/Router.php5
1 files changed, 3 insertions, 2 deletions
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);