diff options
author | Matt Friedman <maf675@gmail.com> | 2016-12-07 10:13:09 -0800 |
---|---|---|
committer | Matt Friedman <maf675@gmail.com> | 2016-12-07 10:13:09 -0800 |
commit | 74cd513a8892285032a248322e3ce52b19645075 (patch) | |
tree | 431367b4c21a7f18305c5263c74680f00cb8fca0 | |
parent | 129bfd5e62ed56edc9641795ca5d28059d181d88 (diff) | |
download | forums-74cd513a8892285032a248322e3ce52b19645075.tar forums-74cd513a8892285032a248322e3ce52b19645075.tar.gz forums-74cd513a8892285032a248322e3ce52b19645075.tar.bz2 forums-74cd513a8892285032a248322e3ce52b19645075.tar.xz forums-74cd513a8892285032a248322e3ce52b19645075.zip |
[ticket/14895] CLI reparser:list should display proper list
PHPBB3-14895
-rw-r--r-- | phpBB/language/en/cli.php | 1 | ||||
-rw-r--r-- | phpBB/phpbb/console/command/reparser/list_all.php | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/language/en/cli.php b/phpBB/language/en/cli.php index 6e86c75ec0..9940609364 100644 --- a/phpBB/language/en/cli.php +++ b/phpBB/language/en/cli.php @@ -68,6 +68,7 @@ $lang = array_merge($lang, array( 'CLI_DESCRIPTION_PURGE_EXTENSION' => 'Purges the specified extension.', 'CLI_DESCRIPTION_REPARSER_LIST' => 'Lists the types of text that can be reparsed.', + 'CLI_DESCRIPTION_REPARSER_AVAILABLE' => 'Available reparsers:', 'CLI_DESCRIPTION_REPARSER_REPARSE' => 'Reparses stored text with the current text_formatter services.', 'CLI_DESCRIPTION_REPARSER_REPARSE_ARG_1' => 'Type of text to reparse. Leave blank to reparse everything.', 'CLI_DESCRIPTION_REPARSER_REPARSE_OPT_DRY_RUN' => 'Do not save any changes; just print what would happen', diff --git a/phpBB/phpbb/console/command/reparser/list_all.php b/phpBB/phpbb/console/command/reparser/list_all.php index e42c3ac782..7dd0571975 100644 --- a/phpBB/phpbb/console/command/reparser/list_all.php +++ b/phpBB/phpbb/console/command/reparser/list_all.php @@ -54,7 +54,7 @@ class list_all extends \phpbb\console\command\command } /** - * Executes the command reparser:reparse + * Executes the command reparser:list * * @param InputInterface $input * @param OutputInterface $output @@ -62,7 +62,11 @@ class list_all extends \phpbb\console\command\command */ protected function execute(InputInterface $input, OutputInterface $output) { - $output->writeln('<info>' . implode(', ', $this->reparser_names) . '</info>'); + $output->writeln('<info>' . $this->user->lang('CLI_DESCRIPTION_REPARSER_AVAILABLE') . '</info>'); + foreach ($this->reparser_names as $reparser_name) + { + $output->writeln($reparser_name); + } return 0; } |