Fix remaining references to BaseModule->parameters
This commit is contained in:
parent
75f0c58c5f
commit
cd63533e2c
|
@ -70,7 +70,7 @@ class Delete extends BaseApi
|
||||||
if ($ret) {
|
if ($ret) {
|
||||||
// return success
|
// return success
|
||||||
$success = ['success' => $ret, 'gid' => $request['gid'], 'name' => $request['name'], 'status' => 'deleted', 'wrong users' => []];
|
$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 {
|
} else {
|
||||||
throw new BadRequestException('other API error');
|
throw new BadRequestException('other API error');
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,6 +84,6 @@ class Update extends BaseApi
|
||||||
// return success message incl. missing users in array
|
// return success message incl. missing users in array
|
||||||
$status = ($erroraddinguser ? 'missing user' : 'ok');
|
$status = ($erroraddinguser ? 'missing user' : 'ok');
|
||||||
$success = ['success' => true, 'gid' => $gid, 'name' => $name, 'status' => $status, 'wrong users' => $errorusers];
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,10 +157,10 @@ class Profile extends BaseModule
|
||||||
$this->baseUrl->redirect('profile/' . $contact['nick'] . '/profile');
|
$this->baseUrl->redirect('profile/' . $contact['nick'] . '/profile');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($parameters['action'])) {
|
if (isset($this->parameters['action'])) {
|
||||||
self::checkFormSecurityTokenRedirectOnError('contact/' . $contact['id'], 'contact_action', 't');
|
self::checkFormSecurityTokenRedirectOnError('contact/' . $contact['id'], 'contact_action', 't');
|
||||||
|
|
||||||
$cmd = $parameters['action'];
|
$cmd = $this->parameters['action'];
|
||||||
if ($cmd === 'update' && $localRelationship->rel !== Contact::NOTHING) {
|
if ($cmd === 'update' && $localRelationship->rel !== Contact::NOTHING) {
|
||||||
Module\Contact::updateContactFromPoll($contact['id']);
|
Module\Contact::updateContactFromPoll($contact['id']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue