aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2019-03-27 12:09:55 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-09-30 20:25:44 +0200
commit975fe1e153c35d7079d06655c43303b04a6502a7 (patch)
treebdbf4c6a239e9f751b27c4bb45a679abf94b73b7 /phpBB/phpbb/console/command
parentb6c230753ee17fe65b43929d4fc10248ea2a23bf (diff)
downloadforums-975fe1e153c35d7079d06655c43303b04a6502a7.tar
forums-975fe1e153c35d7079d06655c43303b04a6502a7.tar.gz
forums-975fe1e153c35d7079d06655c43303b04a6502a7.tar.bz2
forums-975fe1e153c35d7079d06655c43303b04a6502a7.tar.xz
forums-975fe1e153c35d7079d06655c43303b04a6502a7.zip
[ticket/15257] Provide extension not enableable messages
PHPBB3-15257
Diffstat (limited to 'phpBB/phpbb/console/command')
-rw-r--r--phpBB/phpbb/console/command/extension/enable.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/phpbb/console/command/extension/enable.php b/phpBB/phpbb/console/command/extension/enable.php
index a6f5b10e86..f007009aa0 100644
--- a/phpBB/phpbb/console/command/extension/enable.php
+++ b/phpBB/phpbb/console/command/extension/enable.php
@@ -69,7 +69,10 @@ class enable extends command
}
else
{
- $io->error($this->user->lang('CLI_EXTENSION_ENABLE_FAILURE', $name));
+ $enableable = $this->manager->get_extension($name)->is_enableable();
+ $message = !empty($enableable) ? $enableable : $this->user->lang('CLI_EXTENSION_ENABLE_FAILURE');
+ $message = is_array($message) ? implode(PHP_EOL, $message) : $message;
+ $io->error($message, $name);
return 1;
}
}