X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FSmilies.php;h=c496283a8e4372162f79641951bd21dfb9befc42;hb=ab4689e1b6a44e9b89c06dd7ef44b71f9290136f;hp=f7f04aac9b0afd1b9b74634f8a7f547550f85394;hpb=2a431b580f2e8f6a596e84175932e793678cde63;p=friendica.git diff --git a/src/Module/Smilies.php b/src/Module/Smilies.php index f7f04aac9b..c496283a8e 100644 --- a/src/Module/Smilies.php +++ b/src/Module/Smilies.php @@ -1,6 +1,6 @@ argv[1]) && ($app->argv[1] === "json")) { + if (!empty(DI::args()->getArgv()[1]) && (DI::args()->getArgv()[1] === "json")) { $smilies = Content\Smilies::getList(); $results = []; for ($i = 0; $i < count($smilies['texts']); $i++) { @@ -46,7 +45,7 @@ class Smilies extends BaseModule } } - public static function content(array $parameters = []) + protected function content(array $request = []): string { $smilies = Content\Smilies::getList(); $count = count($smilies['texts'] ?? []);