X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsmilies.php;h=bbb7de2e2efac4f2ad8807789f522b28d12dc204;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=4d498b674679608cc33e599d0afb9bfbdce0985c;hpb=d6cf791677e3c676108f84e64818ba2a272f6d08;p=friendica.git diff --git a/mod/smilies.php b/mod/smilies.php index 4d498b6746..bbb7de2e2e 100644 --- a/mod/smilies.php +++ b/mod/smilies.php @@ -1,7 +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 = '