From 7d85288f06b977a2e86477d989b9fb7a5611bd0a Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 24 Sep 2006 01:33:56 +0000 Subject: --- system/codeigniter/CodeIgniter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/codeigniter') diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php index 0078b4596..434602742 100644 --- a/system/codeigniter/CodeIgniter.php +++ b/system/codeigniter/CodeIgniter.php @@ -198,8 +198,8 @@ else } // 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)); + // will be passed to the method for convenience + call_user_func_array(array(&$CI, $method), array_slice($RTR->rsegments, (($RTR->fetch_directory() == '') ? 2 : 3))); } } -- cgit v1.2.3-24-g4f1b