From: Hypolite Petovan Date: Mon, 29 Nov 2021 12:24:32 +0000 (-0500) Subject: Fix remaining references to BaseModule->parameters X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd63533e2c137a49bf030189031376b8ce4075f5;p=friendica.git Fix remaining references to BaseModule->parameters --- diff --git a/src/Module/Api/Friendica/Group/Delete.php b/src/Module/Api/Friendica/Group/Delete.php index ef38d93646..f0d94ff3e0 100644 --- a/src/Module/Api/Friendica/Group/Delete.php +++ b/src/Module/Api/Friendica/Group/Delete.php @@ -70,7 +70,7 @@ class Delete extends BaseApi if ($ret) { // return success $success = ['success' => $ret, 'gid' => $request['gid'], 'name' => $request['name'], 'status' => 'deleted', 'wrong users' => []]; - $this->response->exit('group_delete', ['$result' => $success], $parameters['extension'] ?? null); + $this->response->exit('group_delete', ['$result' => $success], $this->parameters['extension'] ?? null); } else { throw new BadRequestException('other API error'); } diff --git a/src/Module/Api/Friendica/Group/Update.php b/src/Module/Api/Friendica/Group/Update.php index c8d353e2b8..e21b8c8636 100644 --- a/src/Module/Api/Friendica/Group/Update.php +++ b/src/Module/Api/Friendica/Group/Update.php @@ -84,6 +84,6 @@ class Update extends BaseApi // return success message incl. missing users in array $status = ($erroraddinguser ? 'missing user' : 'ok'); $success = ['success' => true, 'gid' => $gid, 'name' => $name, 'status' => $status, 'wrong users' => $errorusers]; - DI::apiResponse()->exit('group_update', ['$result' => $success], $parameters['extension'] ?? null); + DI::apiResponse()->exit('group_update', ['$result' => $success], $this->parameters['extension'] ?? null); } } diff --git a/src/Module/Contact/Profile.php b/src/Module/Contact/Profile.php index e58c329f28..84230abb33 100644 --- a/src/Module/Contact/Profile.php +++ b/src/Module/Contact/Profile.php @@ -157,10 +157,10 @@ class Profile extends BaseModule $this->baseUrl->redirect('profile/' . $contact['nick'] . '/profile'); } - if (isset($parameters['action'])) { + if (isset($this->parameters['action'])) { self::checkFormSecurityTokenRedirectOnError('contact/' . $contact['id'], 'contact_action', 't'); - $cmd = $parameters['action']; + $cmd = $this->parameters['action']; if ($cmd === 'update' && $localRelationship->rel !== Contact::NOTHING) { Module\Contact::updateContactFromPoll($contact['id']); }