From 9a758f3ed9d961e41de8ca1eaf098b084299a1bd Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 28 Jul 2015 13:47:25 +0200 Subject: [PATCH] doc: Use Controller::httpNotFound() in SearchController refs #9644 --- modules/doc/application/controllers/SearchController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/doc/application/controllers/SearchController.php b/modules/doc/application/controllers/SearchController.php index e896c31f6..5d71681eb 100644 --- a/modules/doc/application/controllers/SearchController.php +++ b/modules/doc/application/controllers/SearchController.php @@ -92,9 +92,6 @@ class Doc_SearchController extends DocController return $path; } } - throw new Zend_Controller_Action_Exception( - $this->translate('Documentation for Icinga Web 2 is not available'), - 404 - ); + $this->httpNotFound($this->translate('Documentation for Icinga Web 2 is not available')); } }