Fixes #457 Move around some database stuff to fix the knowledgebase error
This commit is contained in:
parent
1d5585adc7
commit
f739780f9e
@ -36,12 +36,16 @@ require(HESK_PATH . 'hesk_settings.inc.php');
|
|||||||
require(HESK_PATH . 'inc/common.inc.php');
|
require(HESK_PATH . 'inc/common.inc.php');
|
||||||
require(HESK_PATH . 'inc/knowledgebase_functions.inc.php');
|
require(HESK_PATH . 'inc/knowledgebase_functions.inc.php');
|
||||||
|
|
||||||
// Are we in maintenance mode?
|
|
||||||
hesk_check_maintenance();
|
|
||||||
|
|
||||||
// Load Knowledgebase-related functions
|
// Load Knowledgebase-related functions
|
||||||
hesk_load_database_functions();
|
hesk_load_database_functions();
|
||||||
|
|
||||||
|
/* Connect to database */
|
||||||
|
hesk_dbConnect();
|
||||||
|
|
||||||
|
// Are we in maintenance mode?
|
||||||
|
hesk_check_maintenance();
|
||||||
|
|
||||||
define('PAGE_TITLE', 'CUSTOMER_KB');
|
define('PAGE_TITLE', 'CUSTOMER_KB');
|
||||||
|
|
||||||
/* Is Knowledgebase enabled? */
|
/* Is Knowledgebase enabled? */
|
||||||
@ -49,9 +53,6 @@ if (!$hesk_settings['kb_enable']) {
|
|||||||
hesk_error($hesklang['kbdis']);
|
hesk_error($hesklang['kbdis']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Connect to database */
|
|
||||||
hesk_dbConnect();
|
|
||||||
|
|
||||||
/* Rating? */
|
/* Rating? */
|
||||||
if (isset($_GET['rating'])) {
|
if (isset($_GET['rating'])) {
|
||||||
// Detect and block robots
|
// Detect and block robots
|
||||||
|
Loading…
x
Reference in New Issue
Block a user