mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:10:11 +00:00
parameters now are having a default value and are optional
This commit is contained in:
parent
bc2694bf7f
commit
8c03bdada9
110 changed files with 1840 additions and 165 deletions
|
@ -75,7 +75,7 @@ class Contact extends BaseModule
|
|||
$a->internalRedirect('contact');
|
||||
}
|
||||
|
||||
public static function post($parameters)
|
||||
public static function post(array $parameters = [])
|
||||
{
|
||||
$a = self::getApp();
|
||||
|
||||
|
@ -240,7 +240,7 @@ class Contact extends BaseModule
|
|||
Model\Contact::remove($orig_record['id']);
|
||||
}
|
||||
|
||||
public static function content($update = 0)
|
||||
public static function content(array $parameters = [], $update = 0)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form($_SERVER['REQUEST_URI']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue