Skip to content

Commit

Permalink
debugbar module class: remove unreached part of code (may generate er…
Browse files Browse the repository at this point in the history
…rors on call)
  • Loading branch information
AXeL-dev committed Apr 16, 2019
1 parent 212b058 commit bef38c9
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions htdocs/core/modules/modDebugBar.class.php
@@ -1,5 +1,7 @@
<?php
/* This program is free software; you can redistribute it and/or modify
/* Copyright (C) 2019-2020 AXeL-dev <contact.axel.dev@gmail.com>
*
* 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.
Expand Down Expand Up @@ -103,19 +105,4 @@ public function init($options = '')

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'
));
}
}

0 comments on commit bef38c9

Please sign in to comment.