diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-08-18 16:23:12 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-07-09 09:21:51 +0200 |
commit | 0f789f4d5ac39f056569544eb1fad3545d80e9d3 (patch) | |
tree | 1d6b3132f8e1d65e4f0f1030473f184361b12ec3 /phpBB/phpbb/console/command/thumbnail | |
parent | 24e39545ae77a78fb1f5350b4fe5658c924ad75c (diff) | |
download | forums-0f789f4d5ac39f056569544eb1fad3545d80e9d3.tar forums-0f789f4d5ac39f056569544eb1fad3545d80e9d3.tar.gz forums-0f789f4d5ac39f056569544eb1fad3545d80e9d3.tar.bz2 forums-0f789f4d5ac39f056569544eb1fad3545d80e9d3.tar.xz forums-0f789f4d5ac39f056569544eb1fad3545d80e9d3.zip |
[ticket/12692] Fix languages files
PHPBB3-12692
Diffstat (limited to 'phpBB/phpbb/console/command/thumbnail')
-rw-r--r-- | phpBB/phpbb/console/command/thumbnail/delete.php | 3 | ||||
-rw-r--r-- | phpBB/phpbb/console/command/thumbnail/generate.php | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/phpbb/console/command/thumbnail/delete.php b/phpBB/phpbb/console/command/thumbnail/delete.php index b57fcc681f..3a60271fc2 100644 --- a/phpBB/phpbb/console/command/thumbnail/delete.php +++ b/phpBB/phpbb/console/command/thumbnail/delete.php @@ -72,10 +72,9 @@ class delete extends \phpbb\console\command\command FROM ' . ATTACHMENTS_TABLE . ' WHERE thumbnail = 1'; $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_DELETE') . '</info>'); diff --git a/phpBB/phpbb/console/command/thumbnail/generate.php b/phpBB/phpbb/console/command/thumbnail/generate.php index 068bd0ff94..d7530881f1 100644 --- a/phpBB/phpbb/console/command/thumbnail/generate.php +++ b/phpBB/phpbb/console/command/thumbnail/generate.php @@ -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>'); |