From 192a1c8601ddc364fa123583d2d8b10d7747c90f Mon Sep 17 00:00:00 2001 From: Vasily Komrakov Date: Wed, 8 Feb 2017 21:44:32 +0300 Subject: [PATCH] #157. Fix Error in GET /bt/announce.php --- common.php | 1 + library/includes/init_bb.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index aad99b302..79a13a9c9 100644 --- a/common.php +++ b/common.php @@ -102,6 +102,7 @@ define('BOT_UID', -746); */ // Core DB class require CORE_DIR . '/dbs.php'; +require CORE_DIR . '/mysql.php'; $DBS = new DBS($bb_cfg); /** diff --git a/library/includes/init_bb.php b/library/includes/init_bb.php index 76cf25bbc..e04f2276a 100644 --- a/library/includes/init_bb.php +++ b/library/includes/init_bb.php @@ -455,7 +455,6 @@ function make_url($path = '') require INC_DIR . '/functions.php'; require INC_DIR . '/sessions.php'; require INC_DIR . '/template.php'; -require CORE_DIR . '/mysql.php'; define('SQL_LAYER', 'mysql');