summaryrefslogtreecommitdiffstats
path: root/system/codeigniter
diff options
context:
space:
mode:
Diffstat (limited to 'system/codeigniter')
-rw-r--r--system/codeigniter/CodeIgniter.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index 5146c807d..de1e91095 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -196,8 +196,10 @@ else
{
show_404();
}
-
- $CI->$method();
+
+ // Call the requested method. Any URI segments present (besides the class/function)
+ // will be passed to the method for convenience
+ call_user_func_array(array(&$CI, $method), array_slice($RTR->rsegments, 2));
}
}