Browse Source

Move Smilies::getList() into if

pull/7103/head
Philipp Holzer 2 years ago
parent
commit
97f02c2670
No known key found for this signature in database GPG Key ID: 517BE60E2CE5C8A5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Module/Smilies.php

+ 1
- 1
src/Module/Smilies.php View File

@ -15,9 +15,9 @@ class Smilies extends BaseModule
public static function rawContent()
{
$app = self::getApp();
$smilies = Content\Smilies::getList();
if (!empty($app->argv[1]) && ($app->argv[1] === "json")) {
$smilies = Content\Smilies::getList();
$results = [];
for ($i = 0; $i < count($smilies['texts']); $i++) {
$results[] = ['text' => $smilies['texts'][$i], 'icon' => $smilies['icons'][$i]];


Loading…
Cancel
Save