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

@@ -63,8 +63,6 @@
$p = permissions::new();
$p->add('recording_edit', 'temp');
//update recording record with base64
$database->app_name = 'recordings';
$database->app_uuid = '83913217-c7a2-9e90-925d-a866eb40b60e';
$database->save($array, false);
unset($array);
//revoke temporary permissions
@@ -113,8 +111,6 @@
$p->add('recording_edit', 'temp');
//update recording record
$database->app_name = 'recordings';
$database->app_uuid = '83913217-c7a2-9e90-925d-a866eb40b60e';
$database->save($array, false);
unset($array);

View File

@@ -269,8 +269,6 @@
$array['recordings'][0]['recording_description'] = $recording_description;
//execute update
$database->app_name = 'recordings';
$database->app_uuid = '83913217-c7a2-9e90-925d-a866eb40b60e';
$database->save($array);
unset($array);

View File

@@ -37,9 +37,6 @@
$language = new text;
$text = $language->get();
//initialize the database connection
$database = database::new();
//get the session settings
$domain_uuid = $_SESSION['domain_uuid'];
$domain_name = $_SESSION['domain_name'];
@@ -207,8 +204,6 @@
$p = permissions::new();
$p->add('recording_edit', 'temp');
//execute update
$database->app_name = 'recordings';
$database->app_uuid = '83913217-c7a2-9e90-925d-a866eb40b60e';
$database->save($array);
unset($array);
//remove temporary permissions
@@ -244,8 +239,6 @@
$p = permissions::new();
$p->add('recording_add', 'temp');
//execute insert
$database->app_name = 'recordings';
$database->app_uuid = '83913217-c7a2-9e90-925d-a866eb40b60e';
$database->save($array);
unset($array);
//remove temporary permissions
@@ -265,8 +258,6 @@
$p = permissions::new();
$p->add('recording_edit', 'temp');
//execute update
$database->app_name = 'recordings';
$database->app_uuid = '83913217-c7a2-9e90-925d-a866eb40b60e';
$database->save($array);
unset($array);
//remove temporary permissions

View File

@@ -39,9 +39,6 @@
exit;
}
//initialize the database connection
$database = database::new();
//create the waveform file
if (is_uuid($_GET['id']) || !empty($_GET['data'])) {