mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-23 11:35:24 +02:00
[ticket/15123] modified return error codes
PHPBB3-15123
This commit is contained in:
phpBB/phpbb/console/command/extension
@ -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);
|
||||||
|
Reference in New Issue
Block a user