mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12692] Fix languages files
PHPBB3-12692
This commit is contained in:
parent
24e39545ae
commit
0f789f4d5a
3 changed files with 3 additions and 11 deletions
|
@ -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.',
|
||||||
|
|
|
@ -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>');
|
||||||
|
|
|
@ -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>');
|
||||||
|
|
Loading…
Add table
Reference in a new issue