mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16790] Remove useless command parameter
PHPBB3-16790
This commit is contained in:
@@ -44,9 +44,9 @@ class recreate extends \phpbb\console\command\command
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$parameters = array(
|
||||
'command' => 'thumbnail:delete'
|
||||
);
|
||||
$command = $this->getApplication()->find('thumbnail:delete');
|
||||
|
||||
$parameters = [];
|
||||
|
||||
if ($input->getOption('verbose'))
|
||||
{
|
||||
@@ -56,14 +56,14 @@ class recreate extends \phpbb\console\command\command
|
||||
$this->getApplication()->setAutoExit(false);
|
||||
|
||||
$input_delete = new ArrayInput($parameters);
|
||||
$return = $this->getApplication()->run($input_delete, $output);
|
||||
$return = $command->run($input_delete, $output);
|
||||
|
||||
if ($return === symfony_command::SUCCESS)
|
||||
{
|
||||
$parameters['command'] = 'thumbnail:generate';
|
||||
$command = $this->getApplication()->find('thumbnail:generate');
|
||||
|
||||
$input_create = new ArrayInput($parameters);
|
||||
$return = $this->getApplication()->run($input_create, $output);
|
||||
$input_create = new ArrayInput([]);
|
||||
$return = $command->run($input_create, $output);
|
||||
}
|
||||
|
||||
$this->getApplication()->setAutoExit(true);
|
||||
|
Reference in New Issue
Block a user