Browse Source

Fix Stickers tabs when Tenor is not enabled

pull/978/head
Timothée Jaussoin 5 years ago
parent
commit
622c95ba8f
  1. 7
      app/widgets/Stickers/Stickers.php

7
app/widgets/Stickers/Stickers.php

@ -116,9 +116,12 @@ class Stickers extends \Movim\Widget\Base
$isGifEnabled = !empty($configuration->gifapikey);
$packs = $this->getPacks();
//$pack = isset($pack) ? $pack : current($packs);
if (!$isGifEnabled || isset($pack)) {
if (!$isGifEnabled && $pack == null) {
$pack = current($packs);
}
if (isset($pack)) {
$files = scandir(PUBLIC_PATH.'/stickers/'.$pack);
array_shift($files);

Loading…
Cancel
Save