diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-17 22:16:28 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-07-09 09:21:51 +0200 |
commit | 6b5fdc730fe1b73bab9ecfe748009bc90d1950f3 (patch) | |
tree | 10861e8cc6a2066c2df93c0d638cbe5091cb55f7 | |
parent | 3f0fa70e3afb0ce2dbca72bd74b17c93a2756e02 (diff) | |
download | forums-6b5fdc730fe1b73bab9ecfe748009bc90d1950f3.tar forums-6b5fdc730fe1b73bab9ecfe748009bc90d1950f3.tar.gz forums-6b5fdc730fe1b73bab9ecfe748009bc90d1950f3.tar.bz2 forums-6b5fdc730fe1b73bab9ecfe748009bc90d1950f3.tar.xz forums-6b5fdc730fe1b73bab9ecfe748009bc90d1950f3.zip |
[ticket/12692] Remove a not and swap the blocks in the corresponding if
PHPBB3-12692
-rw-r--r-- | phpBB/phpbb/console/command/thumbnail/generate.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/console/command/thumbnail/generate.php b/phpBB/phpbb/console/command/thumbnail/generate.php index ac9d18d933..1cfb2159d9 100644 --- a/phpBB/phpbb/console/command/thumbnail/generate.php +++ b/phpBB/phpbb/console/command/thumbnail/generate.php @@ -103,19 +103,19 @@ class generate extends \phpbb\console\command\command $source = $this->phpbb_root_path . 'files/' . $row['physical_filename']; $destination = $this->phpbb_root_path . 'files/thumb_' . $row['physical_filename']; - if (!create_thumbnail($source, $destination, $row['mimetype'])) + if (create_thumbnail($source, $destination, $row['mimetype'])) { + $thumbnail_created[] = $row['attach_id']; if ($input->getOption('verbose')) { - $output->writeln('<info>' . $this->user->lang('THUMBNAIL_SKIPPED', $row['real_filename'], $row['physical_filename']) . '</info>'); + $output->writeln($this->user->lang('THUMBNAIL_GENERATED', $row['real_filename'], $row['physical_filename'])); } } else { - $thumbnail_created[] = $row['attach_id']; if ($input->getOption('verbose')) { - $output->writeln($this->user->lang('THUMBNAIL_GENERATED', $row['real_filename'], $row['physical_filename'])); + $output->writeln('<info>' . $this->user->lang('THUMBNAIL_SKIPPED', $row['real_filename'], $row['physical_filename']) . '</info>'); } } } |