Fixing failing test in Dispatcher caused by strtolower of method names.

This commit is contained in:
mark_story 2010-07-10 11:54:36 -04:00
parent 413b875eef
commit eeda60b89e

View file

@ -167,7 +167,7 @@ class Dispatcher {
$methods = array_flip($controller->methods);
if (!isset($methods[strtolower($request['action'])])) {
if (!isset($methods[$request->params['action']])) {
if ($controller->scaffold !== false) {
App::import('Controller', 'Scaffold', false);
return new Scaffold($controller, $request);