mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -39,9 +39,6 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
//initialize the database connection
|
||||
$database = database::new();
|
||||
|
||||
//create the waveform file
|
||||
if (is_uuid($_GET['id']) || !empty($_GET['data'])) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user