[ticket/12692] Fix languages files

PHPBB3-12692
This commit is contained in:
Tristan Darricau 2014-08-18 16:23:12 +02:00 committed by Tristan Darricau
parent 24e39545ae
commit 0f789f4d5a
3 changed files with 3 additions and 11 deletions

View file

@ -225,12 +225,6 @@ $lang = array_merge($lang, array(
'BACK' => 'Back', 'BACK' => 'Back',
'CLI_DESCRIPTION_CRON_LIST' => 'Prints a list of ready and unready cron jobs.',
'CLI_DESCRIPTION_CRON_RUN' => 'Runs all ready cron tasks.',
'CLI_DESCRIPTION_CRON_RUN_ARGUMENT_1' => 'Name of the task to be run',
'CLI_DESCRIPTION_OPTION_SHELL' => 'Launch the shell.',
'COLOUR_SWATCH' => 'Web-safe colour swatch', 'COLOUR_SWATCH' => 'Web-safe colour swatch',
'CONFIG_UPDATED' => 'Configuration updated successfully.', 'CONFIG_UPDATED' => 'Configuration updated successfully.',
'CRON_LOCK_ERROR' => 'Could not obtain cron lock.', 'CRON_LOCK_ERROR' => 'Could not obtain cron lock.',
@ -308,7 +302,7 @@ $lang = array_merge($lang, array(
'SHOW_ALL_OPERATIONS' => 'Show all operations', 'SHOW_ALL_OPERATIONS' => 'Show all operations',
'TASKS_NOT_READY' => 'Not ready tasks:', 'TASKS_NOT_READY' => 'Not ready tasks:',
'TASKS_READY' => 'Ready tasks:', 'TASKS_READY' => 'Ready tasks:',
'TOTAL_SIZE' => 'Total size', 'TOTAL_SIZE' => 'Total size',

View file

@ -72,10 +72,9 @@ class delete extends \phpbb\console\command\command
FROM ' . ATTACHMENTS_TABLE . ' FROM ' . ATTACHMENTS_TABLE . '
WHERE thumbnail = 1'; WHERE thumbnail = 1';
$result = $this->db->sql_query($sql); $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); $this->db->sql_freeresult($result);
$nb_missing_thumbnails = (int) $row['nb_missing_thumbnails'];
if ($nb_missing_thumbnails === 0) if ($nb_missing_thumbnails === 0)
{ {
$output->writeln('<info>' . $this->user->lang('NO_THUMBNAIL_TO_DELETE') . '</info>'); $output->writeln('<info>' . $this->user->lang('NO_THUMBNAIL_TO_DELETE') . '</info>');

View file

@ -88,10 +88,9 @@ class generate extends \phpbb\console\command\command
FROM ' . ATTACHMENTS_TABLE . ' FROM ' . ATTACHMENTS_TABLE . '
WHERE thumbnail = 0'; WHERE thumbnail = 0';
$result = $this->db->sql_query($sql); $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); $this->db->sql_freeresult($result);
$nb_missing_thumbnails = (int) $row['nb_missing_thumbnails'];
if ($nb_missing_thumbnails === 0) if ($nb_missing_thumbnails === 0)
{ {
$output->writeln('<info>' . $this->user->lang('NO_THUMBNAIL_TO_GENERATE') . '</info>'); $output->writeln('<info>' . $this->user->lang('NO_THUMBNAIL_TO_GENERATE') . '</info>');