mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15123] modified return error codes
PHPBB3-15123
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user