Remove database app_name and app_uuid (#7562)

- Remove database app_name, app_uuid
  - This is handled automatically by the database class
- Remove redundant database::new()
This commit is contained in:
FusionPBX
2025-10-09 17:54:05 -06:00
committed by GitHub
parent d59eab1f94
commit 76e2e7d3b7
109 changed files with 27 additions and 425 deletions

View File

@@ -144,8 +144,6 @@ if (count($_POST)>0 && empty($_POST["persistformvar"])) {
//add new uuid
$array['databases'][0]['database_uuid'] = uuid();
$database->app_name = 'databases';
$database->app_uuid = '8d229b6d-1383-fcec-74c6-4ce1682479e2';
$database->save($array);
unset($array);
@@ -162,8 +160,7 @@ if (count($_POST)>0 && empty($_POST["persistformvar"])) {
//add uuid to update
$array['databases'][0]['database_uuid'] = $database_uuid;
$database->app_name = 'databases';
$database->app_uuid = '8d229b6d-1383-fcec-74c6-4ce1682479e2';
//save to the database
$database->save($array);
unset($array);

View File

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