mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07: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
|
@ -33,7 +33,7 @@ class Profile extends BaseModule
|
|||
public static $which = '';
|
||||
public static $profile = 0;
|
||||
|
||||
public static function init($parameters)
|
||||
public static function init(array $parameters = [])
|
||||
{
|
||||
$a = self::getApp();
|
||||
|
||||
|
@ -51,7 +51,7 @@ class Profile extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function rawContent($parameters)
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
if (ActivityPub::isRequest()) {
|
||||
$user = DBA::selectFirst('user', ['uid'], ['nickname' => self::$which]);
|
||||
|
@ -75,7 +75,7 @@ class Profile extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function content($update = 0)
|
||||
public static function content(array $parameters = [], $update = 0)
|
||||
{
|
||||
$a = self::getApp();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue