From: Marcin Haba Date: Tue, 21 Nov 2017 19:32:09 +0000 (+0100) Subject: baculum: Fix redundant loading users portlet X-Git-Tag: Release-9.0.7~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ac34f5bce25f475ee7c22c076cbb0d897a7be313;p=bacula%2Fbacula baculum: Fix redundant loading users portlet --- diff --git a/gui/baculum/protected/Web/Portlets/Users.php b/gui/baculum/protected/Web/Portlets/Users.php index fca312f78b..788491a667 100644 --- a/gui/baculum/protected/Web/Portlets/Users.php +++ b/gui/baculum/protected/Web/Portlets/Users.php @@ -28,10 +28,9 @@ class Users extends Portlets { public $web_config; - public function onInit($param) { - parent::onInit($param); + public function __construct() { + parent::__construct(); $this->web_config = $this->getModule('web_config')->getConfig(); - $this->setUsers(); } public function setUsers() { diff --git a/gui/baculum/protected/Web/Portlets/Users.tpl b/gui/baculum/protected/Web/Portlets/Users.tpl index 139b257aeb..821a460a3e 100644 --- a/gui/baculum/protected/Web/Portlets/Users.tpl +++ b/gui/baculum/protected/Web/Portlets/Users.tpl @@ -8,7 +8,7 @@ <%[ Close ]%>

- +