1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-23 17:10:53 +01:00

[ticket/15123] modified return error codes

PHPBB3-15123
This commit is contained in:
Rubén Calvo 2017-03-12 22:45:33 +01:00
parent 9b3609d6f6
commit 45f0adcd0a
2 changed files with 2 additions and 2 deletions

View File

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

View File

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