From bef38c9abe4bd035d3651d3eedefca60878b4665 Mon Sep 17 00:00:00 2001 From: AXeL-dev Date: Wed, 17 Apr 2019 00:33:49 +0100 Subject: [PATCH] debugbar module class: remove unreached part of code (may generate errors on call) --- htdocs/core/modules/modDebugBar.class.php | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/htdocs/core/modules/modDebugBar.class.php b/htdocs/core/modules/modDebugBar.class.php index cef0ae2d1ad..8d51a102251 100644 --- a/htdocs/core/modules/modDebugBar.class.php +++ b/htdocs/core/modules/modDebugBar.class.php @@ -1,5 +1,7 @@ + * + * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. @@ -103,19 +105,4 @@ class modDebugBar extends DolibarrModules return $this->_init($sql, $options); } - - /** - * Function called after module configuration. - * - * @return void - */ - public function loadSettings() - { - $this->addPermission("use", "UseDebugBar", "u"); - - $this->enableHooks(array( - 'main', - 'login' - )); - } }