aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-12-03 17:49:39 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-12-03 17:49:39 +0100
commit551c3fd511b75b4a2e55e0f4fb55c42731bd1369 (patch)
treeaf03447063c600e9b81494f0026a6a6c9a990a8c /phpBB/phpbb
parentb66b497429dfb1cc7a2ea56a022faf96c33d86dd (diff)
parent03b3b38db17c5fc554f54aed3f3fc1941279a04e (diff)
downloadforums-551c3fd511b75b4a2e55e0f4fb55c42731bd1369.tar
forums-551c3fd511b75b4a2e55e0f4fb55c42731bd1369.tar.gz
forums-551c3fd511b75b4a2e55e0f4fb55c42731bd1369.tar.bz2
forums-551c3fd511b75b4a2e55e0f4fb55c42731bd1369.tar.xz
forums-551c3fd511b75b4a2e55e0f4fb55c42731bd1369.zip
Merge pull request #5025 from hubaishan/ticket/15433
[ticket/15433] Fix phpbbcli can enable non-existent extension
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/console/command/extension/enable.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/phpbb/console/command/extension/enable.php b/phpBB/phpbb/console/command/extension/enable.php
index f92de0069c..a6f5b10e86 100644
--- a/phpBB/phpbb/console/command/extension/enable.php
+++ b/phpBB/phpbb/console/command/extension/enable.php
@@ -37,6 +37,13 @@ class enable extends command
$io = new SymfonyStyle($input, $output);
$name = $input->getArgument('extension-name');
+
+ if (!$this->manager->is_available($name))
+ {
+ $io->error($this->user->lang('CLI_EXTENSION_NOT_EXIST', $name));
+ return 1;
+ }
+
$extension = $this->manager->get_extension($name);
if (!$extension->is_enableable())