summaryrefslogtreecommitdiffstats
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-03 07:28:00 +0200
committeradmin <devnull@localhost>2006-10-03 07:28:00 +0200
commit08f6020b0085842d4ae81949a0f4886c94158a55 (patch)
treed0b94a90f1d374c4fbc05160b12a1df07b7f52b1 /system/libraries/Router.php
parent2e949ec0c98da2b28b67c12445fb4e6b2f838223 (diff)
Diffstat (limited to 'system/libraries/Router.php')
-rw-r--r--system/libraries/Router.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index d62cf5090..7a4fd3899 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -530,6 +530,11 @@ class CI_Router {
*/
function fetch_method()
{
+ if ($this->method == $this->fetch_class())
+ {
+ return 'index';
+ }
+
return $this->method;
}