From dd1025119d81ee4bf8435a823a88e47c4697defe Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 21 May 2015 16:54:00 +0200 Subject: [PATCH] Throw HttpNotFoundException on Controller::httpNotFound() refs #6281 --- library/Icinga/Web/Controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Web/Controller.php b/library/Icinga/Web/Controller.php index 0975d4c13..cdc049c87 100644 --- a/library/Icinga/Web/Controller.php +++ b/library/Icinga/Web/Controller.php @@ -3,7 +3,7 @@ namespace Icinga\Web; -use Zend_Controller_Action_Exception; +use Icinga\Exception\HttpNotFoundException; use Icinga\Data\Sortable; use Icinga\Data\QueryInterface; use Icinga\Web\Controller\ModuleActionController; @@ -55,11 +55,11 @@ class Controller extends ModuleActionController * * @param $message * - * @throws Zend_Controller_Action_Exception + * @throws HttpNotFoundException */ public function httpNotFound($message) { - throw new Zend_Controller_Action_Exception($message, 404); + throw new HttpNotFoundException($message); } /**