mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding fixed for Ticket #1703
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3992 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e935b51b8d
commit
d6159f1b09
1 changed files with 4 additions and 8 deletions
|
@ -100,14 +100,10 @@ class Dispatcher extends Object {
|
|||
if(preg_match('/([\\.]+)/', $ctrlName)) {
|
||||
Router::setParams(array($params, array('base' => $this->base, 'webroot' => $this->webroot)));
|
||||
|
||||
return $this->cakeError('error404', array(
|
||||
array(
|
||||
'url' => strtolower($ctrlName),
|
||||
'message' => 'Was not found on this server',
|
||||
'base' => $this->base
|
||||
)
|
||||
));
|
||||
exit();
|
||||
return $this->cakeError('error404',
|
||||
array(array('url' => strtolower($ctrlName),
|
||||
'message' => 'Was not found on this server',
|
||||
'base' => $this->base)));
|
||||
} elseif(!class_exists($ctrlClass)) {
|
||||
$missingController = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue