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:
David Bell
2016-09-07 18:42:49 +01:00
committed by Neil Lathwood
parent 50a02a0fc5
commit f00c383d60
8 changed files with 22 additions and 17 deletions

View File

@@ -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;