summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-24 03:33:56 +0200
committeradmin <devnull@localhost>2006-09-24 03:33:56 +0200
commit7d85288f06b977a2e86477d989b9fb7a5611bd0a (patch)
treece9272a434a55d382a5814d4332d169bae1df0d8
parent8b180be71430efa5726389ee03107d1cadd52626 (diff)
-rw-r--r--system/codeigniter/CodeIgniter.php4
1 files changed, 2 insertions, 2 deletions
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)));
}
}