Fix errors with missing sub directories.

Missing content-type specific errors shouldn't trigger fatal errors.
Instead a html view should be rendered as a last resort.

Fixes #2537
This commit is contained in:
mark_story 2012-02-02 21:24:36 -05:00
parent 62df929342
commit ee083e047e
3 changed files with 52 additions and 18 deletions

View file

@ -57,7 +57,6 @@ class CakeErrorController extends AppController {
$this->Components->trigger('initialize', array(&$this));
$this->_set(array('cacheAction' => false, 'viewPath' => 'Errors'));
if (isset($this->RequestHandler)) {
$this->RequestHandler->startup($this);
}