X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsmilies.php;h=bbb7de2e2efac4f2ad8807789f522b28d12dc204;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=c47f95da76a5cfc7656aee72dcf7cb667402931d;hpb=b202e02fbf09859c06ed21cc3b6bec1530ccf1f1;p=friendica.git diff --git a/mod/smilies.php b/mod/smilies.php index c47f95da76..bbb7de2e2e 100644 --- a/mod/smilies.php +++ b/mod/smilies.php @@ -1,3 +1,32 @@ argv[1]) && ($a->argv[1] === "json")) { + $results = []; + for ($i = 0; $i < count($smilies['texts']); $i++) { + $results[] = ['text' => $smilies['texts'][$i], 'icon' => $smilies['icons'][$i]]; + } + System::jsonExit($results); + } else { + $s = '