diff options
author | Rubén Calvo <rubencm@gmail.com> | 2017-03-12 22:45:33 +0100 |
---|---|---|
committer | Rubén Calvo <rubencm@gmail.com> | 2017-03-13 22:20:59 +0100 |
commit | 45f0adcd0a4e6c7e43183fe641fa03ef2d90d45b (patch) | |
tree | 981b1489e505bd6585faf6215afcf3be09ee131b | |
parent | 9b3609d6f60af328e6681146014453da0af4ee01 (diff) | |
download | forums-45f0adcd0a4e6c7e43183fe641fa03ef2d90d45b.tar forums-45f0adcd0a4e6c7e43183fe641fa03ef2d90d45b.tar.gz forums-45f0adcd0a4e6c7e43183fe641fa03ef2d90d45b.tar.bz2 forums-45f0adcd0a4e6c7e43183fe641fa03ef2d90d45b.tar.xz forums-45f0adcd0a4e6c7e43183fe641fa03ef2d90d45b.zip |
[ticket/15123] modified return error codes
PHPBB3-15123
-rw-r--r-- | phpBB/phpbb/console/command/extension/disable.php | 2 | ||||
-rw-r--r-- | phpBB/phpbb/console/command/extension/enable.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/console/command/extension/disable.php b/phpBB/phpbb/console/command/extension/disable.php index 12674c16cb..b2e10fb960 100644 --- a/phpBB/phpbb/console/command/extension/disable.php +++ b/phpBB/phpbb/console/command/extension/disable.php @@ -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); diff --git a/phpBB/phpbb/console/command/extension/enable.php b/phpBB/phpbb/console/command/extension/enable.php index 079e4ce1f6..a8312d5c15 100644 --- a/phpBB/phpbb/console/command/extension/enable.php +++ b/phpBB/phpbb/console/command/extension/enable.php @@ -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); |