Remove redundant database instances (#7535)

This commit is contained in:
FusionPBX
2025-10-01 08:56:06 -06:00
committed by GitHub
parent 6fcd0e83c1
commit d1baf05891
204 changed files with 43 additions and 754 deletions
@@ -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);