Remove redundant database instances (#7535)
This commit is contained in:
@@ -13,11 +13,6 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
//connect to the database
|
||||
if (!isset($database)) {
|
||||
$database = new database;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get($_SESSION['domain']['language']['code'], 'core/user_settings');
|
||||
|
||||
@@ -356,7 +356,6 @@
|
||||
}
|
||||
|
||||
if (!empty($sql_current) && !empty($sql_max)) {
|
||||
if (!isset($database)) { $database = new database; }
|
||||
|
||||
// Get current connections
|
||||
$current_connections = $database->select($sql_current, null, 'column');
|
||||
|
||||
@@ -272,7 +272,6 @@
|
||||
|
||||
//database version
|
||||
$sql = "select version(); ";
|
||||
$database = new database;
|
||||
$database_name = $database->select($sql, null, 'column');
|
||||
$database_array = explode(' ', $database_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user