aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/extension/disable.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/console/command/extension/disable.php')
-rw-r--r--phpBB/phpbb/console/command/extension/disable.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/phpbb/console/command/extension/disable.php b/phpBB/phpbb/console/command/extension/disable.php
index d022755753..b2e10fb960 100644
--- a/phpBB/phpbb/console/command/extension/disable.php
+++ b/phpBB/phpbb/console/command/extension/disable.php
@@ -37,6 +37,13 @@ class disable extends command
$io = new SymfonyStyle($input, $output);
$name = $input->getArgument('extension-name');
+
+ if (!$this->manager->is_enabled($name))
+ {
+ $io->error($this->user->lang('CLI_EXTENSION_DISABLED', $name));
+ return 2;
+ }
+
$this->manager->disable($name);
$this->manager->load_extensions();