parameters now are having a default value and are optional

This commit is contained in:
Michael 2019-11-05 21:48:54 +00:00
parent bc2694bf7f
commit 8c03bdada9
110 changed files with 1840 additions and 165 deletions

View file

@ -14,7 +14,7 @@ use Friendica\Util\Network;
*/
class Feed extends BaseModule
{
public static function init($parameters)
public static function init(array $parameters = [])
{
if (!local_user()) {
info(L10n::t('You must be logged in to use this module'));
@ -22,7 +22,7 @@ class Feed extends BaseModule
}
}
public static function content($parameters)
public static function content(array $parameters = [])
{
$result = [];
if (!empty($_REQUEST['url'])) {