mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Registrations: Rename switch class method.
This commit is contained in:
@@ -242,27 +242,27 @@ if (!class_exists('registrations')) {
|
||||
* unregister registrations
|
||||
*/
|
||||
public function unregister($registrations) {
|
||||
$this->switch('unregister', $registrations);
|
||||
$this->switch_api('unregister', $registrations);
|
||||
}
|
||||
|
||||
/**
|
||||
* provision registrations
|
||||
*/
|
||||
public function provision($registrations) {
|
||||
$this->switch('provision', $registrations);
|
||||
$this->switch_api('provision', $registrations);
|
||||
}
|
||||
|
||||
/**
|
||||
* reboot registrations
|
||||
*/
|
||||
public function reboot($registrations) {
|
||||
$this->switch('reboot', $registrations);
|
||||
$this->switch_api('reboot', $registrations);
|
||||
}
|
||||
|
||||
/**
|
||||
* switch api calls
|
||||
*/
|
||||
private function switch($action, $records) {
|
||||
private function switch_api($action, $records) {
|
||||
if (permission_exists($this->permission_prefix.'domain') || permission_exists($this->permission_prefix.'all') || if_group('superadmin')) {
|
||||
|
||||
//add multi-lingual support
|
||||
|
||||
Reference in New Issue
Block a user