mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 08:14:25 +02:00
Use the $request variable
This commit is contained in:
parent
8ff2cc3976
commit
f11bf08a7b
11 changed files with 28 additions and 28 deletions
|
@ -37,7 +37,7 @@ class Create extends BaseApi
|
|||
$uid = BaseApi::getCurrentUserID();
|
||||
|
||||
// params
|
||||
$name = $_REQUEST['name'] ?? '';
|
||||
$name = $request['name'] ?? '';
|
||||
$json = json_decode($_POST['json'], true);
|
||||
$users = $json['user'];
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ class Show extends BaseApi
|
|||
$type = $this->parameters['extension'] ?? '';
|
||||
|
||||
// params
|
||||
$gid = $_REQUEST['gid'] ?? 0;
|
||||
$gid = $request['gid'] ?? 0;
|
||||
|
||||
// get data of the specified group id or all groups if not specified
|
||||
if ($gid != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue