mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 02:46:30 +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:
@@ -37,9 +37,6 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
//connect to database
|
||||
$database = database::new();
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
@@ -138,8 +135,6 @@
|
||||
$array['groups'][0]['group_description'] = $group_description;
|
||||
|
||||
//save the data
|
||||
$database->app_name = 'Group Manager';
|
||||
$database->app_uuid = '2caf27b0-540a-43d5-bb9b-c9871a1e4f84';
|
||||
$database->save($array);
|
||||
|
||||
//update group name in group permissions if group name changed
|
||||
@@ -151,8 +146,6 @@
|
||||
$parameters['group_name'] = $group_name;
|
||||
$parameters['group_name_previous'] = $group_name_previous;
|
||||
$parameters['group_uuid'] = $group_uuid;
|
||||
$database->app_name = 'Group Manager';
|
||||
$database->app_uuid = '2caf27b0-540a-43d5-bb9b-c9871a1e4f84';
|
||||
$database->execute($sql, $parameters);
|
||||
unset($sql, $parameters);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user