diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index ed74af740..80d00d9bd 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -341,7 +341,7 @@ class ActionController extends Zend_Controller_Action } } - public function setAutorefreshInterval($interval, $bypassUserPreferences = false) + public function setAutorefreshInterval($interval) { if (! is_int($interval) || $interval < 1) { throw new ProgrammingError( @@ -349,13 +349,10 @@ class ActionController extends Zend_Controller_Action ); } - if (! $bypassUserPreferences) { - $user = $this->getRequest()->getUser(); - - if ($user !== null) { - $speed = (float) $user->getPreferences()->getValue('icingaweb', 'auto_refresh_speed', 1.0); - $interval = max(round($interval * $speed), min($interval, 5)); - } + $user = $this->getRequest()->getUser(); + if ($user !== null) { + $speed = (float) $user->getPreferences()->getValue('icingaweb', 'auto_refresh_speed', 1.0); + $interval = max(round($interval * $speed), min($interval, 5)); } $this->autorefreshInterval = $interval;