X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsmilies.php;h=b19ba2e43609bd1ab719423200d645b2afaf35e3;hb=3359f3f5c7ecc4b6a34c4fcfc095ab4dd5fab0f1;hp=f69541824ab63b21111b8c843b9a01212d04897d;hpb=56ee734b00aead633d5d213a6b140b75bc17ba96;p=friendica.git diff --git a/mod/smilies.php b/mod/smilies.php index f69541824a..b19ba2e436 100644 --- a/mod/smilies.php +++ b/mod/smilies.php @@ -3,12 +3,17 @@ /** * @file mod/smilies.php */ +use Friendica\App; +use Friendica\Content\Smilies; -require_once("include/Smilies.php"); - -function smilies_content(App $a) { +/** + * @param object $a App + * @return mixed + */ +function smilies_content(App $a) +{ if ($a->argv[1] === "json") { - $tmp = Smilies::get_list(); + $tmp = Smilies::getList(); $results = array(); for ($i = 0; $i < count($tmp['texts']); $i++) { $results[] = array('text' => $tmp['texts'][$i], 'icon' => $tmp['icons'][$i]);