summaryrefslogtreecommitdiffstats
path: root/system/codeigniter/CodeIgniter.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/codeigniter/CodeIgniter.php')
-rw-r--r--system/codeigniter/CodeIgniter.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index 872f4c049..1f7850ecf 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -188,6 +188,11 @@ if ($RTR->scaffolding_request === TRUE)
}
else
{
+ if ($method == $class)
+ {
+ $method = 'index';
+ }
+
if ( ! method_exists($CI, $method))
{
show_404();