From 2036b89f99657ad25677d9c40fc359fb4cb0c0cf Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 2 Dec 2019 05:07:08 -0700 Subject: [PATCH] Registrations: Rename switch class method. --- app/registrations/resources/classes/registrations.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index ce240214ba..d8069b26e1 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -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