Skip to content

Commit

Permalink
Merge remote-tracking branch 'weierophinney/hotfix/zf2-422'
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Jul 26, 2012
2 parents efe1d76 + 355607c commit ae4ce57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/Zend/Mvc/View/Http/ViewManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,21 @@ public function getRouteNotFoundStrategy()

$this->routeNotFoundStrategy = new RouteNotFoundStrategy();

$displayExceptions = false;
$displayNotFoundReason = false;
$notFoundTemplate = '404';

if (isset($this->config['display_exceptions'])) {
$displayExceptions = $this->config['display_exceptions'];
}
if (isset($this->config['display_not_found_reason'])) {
$displayNotFoundReason = $this->config['display_not_found_reason'];
}
if (isset($this->config['not_found_template'])) {
$notFoundTemplate = $this->config['not_found_template'];
}

$this->routeNotFoundStrategy->setDisplayExceptions($displayExceptions);
$this->routeNotFoundStrategy->setDisplayNotFoundReason($displayNotFoundReason);
$this->routeNotFoundStrategy->setNotFoundTemplate($notFoundTemplate);

Expand Down

0 comments on commit ae4ce57

Please sign in to comment.