mirror of
https://github.com/friendica/friendica
synced 2025-04-24 06:30:13 +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
|
@ -14,14 +14,14 @@ use Friendica\Network\HTTPException;
|
|||
*/
|
||||
class Notify extends BaseModule
|
||||
{
|
||||
public static function init($parameters)
|
||||
public static function init(array $parameters = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
throw new HTTPException\UnauthorizedException(L10n::t('Permission denied.'));
|
||||
}
|
||||
}
|
||||
|
||||
public static function rawContent($parameters)
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
$a = self::getApp();
|
||||
|
||||
|
@ -45,7 +45,7 @@ class Notify extends BaseModule
|
|||
* @return string|void
|
||||
* @throws HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public static function content($parameters)
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
$a = self::getApp();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue