X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsmilies.php;h=a33cbf6ad5adabc4ca4e8704d278df634f6513d7;hb=e0b33b36a21d7803353692372d7ceb90683d8888;hp=04bdbe88ee331c1732451849ce6561b83142a7d5;hpb=be1333280765549860f9a7dc778a89acbd21dea6;p=friendica.git diff --git a/mod/smilies.php b/mod/smilies.php index 04bdbe88ee..a33cbf6ad5 100644 --- a/mod/smilies.php +++ b/mod/smilies.php @@ -1,20 +1,24 @@ argv[1] === "json") { - $tmp = Smilies::get_list(); - $results = array(); + $tmp = Smilies::getList(); + $results = []; for ($i = 0; $i < count($tmp['texts']); $i++) { - $results[] = array('text' => $tmp['texts'][$i], 'icon' => $tmp['icons'][$i]); + $results[] = ['text' => $tmp['texts'][$i], 'icon' => $tmp['icons'][$i]]; } - json_return_and_die($results); + System::jsonExit($results); } else { return Smilies::replace('', true); }