mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Stop irc bot crashing on .reload #4353
* Removed duplicate include * Move set_debug into functions.php, and restore the (re)loading of includes/defaults * Move debug call until after function has been included
This commit is contained in:
committed by
Neil Lathwood
parent
50a02a0fc5
commit
f00c383d60
@@ -15,7 +15,6 @@
|
||||
// FUA
|
||||
|
||||
require_once '../includes/defaults.inc.php';
|
||||
set_debug($_REQUEST['debug']);
|
||||
require_once '../config.php';
|
||||
require_once '../includes/definitions.inc.php';
|
||||
require_once 'includes/functions.inc.php';
|
||||
@@ -23,6 +22,8 @@ require_once '../includes/functions.php';
|
||||
require_once 'includes/authenticate.inc.php';
|
||||
require_once 'includes/vars.inc.php';
|
||||
|
||||
set_debug($_REQUEST['debug']);
|
||||
|
||||
if (!$_SESSION['authenticated']) {
|
||||
echo 'unauthenticated';
|
||||
exit;
|
||||
|
Reference in New Issue
Block a user