the :tone variants are messed up, remove them

This commit is contained in:
redmatrix 2016-06-04 17:13:55 -07:00
parent 81f6511d34
commit bf438f67e1

View File

@ -1163,6 +1163,8 @@ function list_smilies() {
if(! App::$emojitab) if(! App::$emojitab)
App::$emojitab = json_decode(file_get_contents('library/emoji.json'),true); App::$emojitab = json_decode(file_get_contents('library/emoji.json'),true);
foreach(App::$emojitab as $e) { foreach(App::$emojitab as $e) {
if(strpos($e['shortname'],':tone') === 0)
continue;
$texts[] = $e['shortname']; $texts[] = $e['shortname'];
$icons[] = '<img height="16" width="16" src="images/emoji/' . $e['unicode'] . '.png' . '" alt="' . $e['name'] . '" />'; $icons[] = '<img height="16" width="16" src="images/emoji/' . $e['unicode'] . '.png' . '" alt="' . $e['name'] . '" />';
} }