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();
@@ -91,8 +88,7 @@ if (count($_POST)>0 && empty($_POST["persistformvar"])) {
$array[0]['checked'] = 'true';
$array[0]['uuid'] = $database_uuid;
//delete
$obj = new databases;
$obj->delete($array);
$database->delete($array);
//redirect
header('Location: databases.php');
exit;