diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-04-24 14:48:19 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-04-24 14:48:19 +0200 |
commit | 445b24d4b377013eb3946383409b7668cd54e060 (patch) | |
tree | cc79ea6843a593788870cb03e49465ac3e9481b5 /system/libraries/Router.php | |
parent | f5b621842786646d51e6c2c17384272b4ef0e452 (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.php | 5 |
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);
|