From ac34f5bce25f475ee7c22c076cbb0d897a7be313 Mon Sep 17 00:00:00 2001
From: Marcin Haba
Date: Tue, 21 Nov 2017 20:32:09 +0100
Subject: [PATCH] baculum: Fix redundant loading users portlet
---
gui/baculum/protected/Web/Portlets/Users.php | 5 ++---
gui/baculum/protected/Web/Portlets/Users.tpl | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
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 @@
-
+