mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:50:10 +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
|
@ -12,7 +12,7 @@ use Friendica\Util\XML;
|
|||
*/
|
||||
class RemoveTag extends BaseModule
|
||||
{
|
||||
public static function content($parameters)
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
throw new HTTPException\ForbiddenException();
|
||||
|
|
|
@ -14,7 +14,7 @@ use Friendica\Util\XML;
|
|||
*/
|
||||
class SaveTag 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 SaveTag extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function rawContent($parameters)
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
$a = self::getApp();
|
||||
$logger = $a->getLogger();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue