From a4d35347327c1e9a464696d153ad6f2ec4510283 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 21 Sep 2006 17:21:57 +0000 Subject: --- system/codeigniter/CodeIgniter.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'system/codeigniter') 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)); } } -- cgit v1.2.3-24-g4f1b