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

View File

@@ -37,9 +37,6 @@
exit;
}
//connect to the database
$database = new database;
//add multi-lingual support
$language = new text;
$text = $language->get();

View File

@@ -37,9 +37,6 @@
exit;
}
//connect to the database
$database = new database;
//add multi-lingual support
$language = new text;
$text = $language->get();

View File

@@ -41,9 +41,6 @@
$language = new text;
$text = $language->get();
//connect to the database
$database = new database;
//define the variables
$menu_uuid = null;
$menu_item_uuid = null;

View File

@@ -37,9 +37,6 @@
exit;
}
//initialize the database
$database = new database;
//get the http post data
if (!empty($_POST['menu_items'])) {
$action = $_POST['action'];
@@ -246,7 +243,6 @@
//get the group list
$sql = "select group_uuid, group_name from v_groups ";
$database = new database;
$groups = $database->select($sql, $parameters, 'all');
unset($sql, $parameters);

View File

@@ -37,9 +37,6 @@
return;
}
//connect to the database
$database = new database;
//add multi-lingual support
$language = new text;
$text = $language->get();

View File

@@ -36,9 +36,6 @@
return;
}
//connect to the database
$database = new database;
//add multi-lingual support
$language = new text;
$text = $language->get();