mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Remove redundant database instances (#7535)
This commit is contained in:
@@ -37,9 +37,6 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
//connect to the database
|
||||
$database = new database;
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
@@ -37,9 +37,6 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
//connect to the database
|
||||
$database = new database;
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -37,9 +37,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
//connect to the database
|
||||
$database = new database;
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
@@ -36,9 +36,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
//connect to the database
|
||||
$database = new database;
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
Reference in New Issue
Block a user