mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 15:05:43 +02:00
[ticket/15123] modified return error codes
PHPBB3-15123
This commit is contained in:
parent
9b3609d6f6
commit
45f0adcd0a
@ -41,7 +41,7 @@ class disable extends command
|
|||||||
if (!$this->manager->is_enabled($name))
|
if (!$this->manager->is_enabled($name))
|
||||||
{
|
{
|
||||||
$io->error($this->user->lang('CLI_EXTENSION_DISABLED', $name));
|
$io->error($this->user->lang('CLI_EXTENSION_DISABLED', $name));
|
||||||
return 1;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->manager->disable($name);
|
$this->manager->disable($name);
|
||||||
|
@ -41,7 +41,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 1;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->manager->enable($name);
|
$this->manager->enable($name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user