[ticket/15349] Return 1 instead of 2 in case of error

PHPBB3-15346
This commit is contained in:
Rubén Calvo 2017-09-07 12:54:13 +02:00
parent aa23af38d4
commit bf289de26f

View file

@ -48,7 +48,7 @@ class enable extends command
if ($this->manager->is_enabled($name)) if ($this->manager->is_enabled($name))
{ {
$io->error($this->user->lang('CLI_EXTENSION_ENABLED', $name)); $io->error($this->user->lang('CLI_EXTENSION_ENABLED', $name));
return 2; return 1;
} }
$this->manager->enable($name); $this->manager->enable($name);