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:
phpnut 2006-11-27 07:36:54 +00:00
parent e935b51b8d
commit d6159f1b09

View file

@ -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;
}