mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing failing test in Dispatcher caused by strtolower of method names.
This commit is contained in:
parent
413b875eef
commit
eeda60b89e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue