From 2b61a0e7c44fccfdcb6dc3d5a9ca769841e67238 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 29 Sep 2018 09:28:42 +0200 Subject: [PATCH] CompatController: use default exception --- library/vendor/ipl/Web/CompatController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/vendor/ipl/Web/CompatController.php b/library/vendor/ipl/Web/CompatController.php index 04a49c90..0460db64 100644 --- a/library/vendor/ipl/Web/CompatController.php +++ b/library/vendor/ipl/Web/CompatController.php @@ -9,7 +9,6 @@ use Icinga\Application\Modules\Manager; use Icinga\Application\Modules\Module; use Icinga\Authentication\Auth; use Icinga\Exception\IcingaException; -use Icinga\Exception\ProgrammingError; use Icinga\File\Pdf; use Icinga\Forms\AutoRefreshForm; use Icinga\Security\SecurityException; @@ -19,6 +18,7 @@ use Icinga\Web\Session; use Icinga\Web\UrlParams; use Icinga\Web\Url as WebUrl; use Icinga\Web\Window; +use InvalidArgumentException; use dipl\Compat\Translator; use dipl\Translation\TranslationHelper; use dipl\Web\Widget\ControlsAndContent; @@ -347,7 +347,7 @@ class CompatController extends Zend_Controller_Action implements ControlsAndCont public function setAutorefreshInterval($interval) { if (! is_int($interval) || $interval < 1) { - throw new ProgrammingError( + throw new InvalidArgumentException( 'Setting autorefresh interval smaller than 1 second is not allowed' ); }