X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FSmilies.php;h=ae368cd71cb4a82edd246db4337ea52dc7529c48;hb=96a3991dfd83c3a5f35f6802d31444ab77469de7;hp=87d3d361da5f42d634c7c37bc612a27c9d44d1fb;hpb=8293d5ed0af78ae6cc5629bb1f982a7b29794d32;p=friendica.git diff --git a/src/Module/Smilies.php b/src/Module/Smilies.php index 87d3d361da..ae368cd71c 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'] ?? []);