mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12692] Fix languages files
PHPBB3-12692
This commit is contained in:
committed by
Tristan Darricau
parent
24e39545ae
commit
0f789f4d5a
@@ -88,10 +88,9 @@ class generate extends \phpbb\console\command\command
|
||||
FROM ' . ATTACHMENTS_TABLE . '
|
||||
WHERE thumbnail = 0';
|
||||
$result = $this->db->sql_query($sql);
|
||||
$row = $this->db->sql_fetchrow($result);
|
||||
$nb_missing_thumbnails = (int) $this->db->sql_fetchfield('nb_missing_thumbnails');
|
||||
$this->db->sql_freeresult($result);
|
||||
|
||||
$nb_missing_thumbnails = (int) $row['nb_missing_thumbnails'];
|
||||
if ($nb_missing_thumbnails === 0)
|
||||
{
|
||||
$output->writeln('<info>' . $this->user->lang('NO_THUMBNAIL_TO_GENERATE') . '</info>');
|
||||
|
Reference in New Issue
Block a user