diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-06-06 19:49:29 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-06-06 19:49:29 +0200 |
commit | fc4275ab2b414e184007a8791c7ee09537d5a827 (patch) | |
tree | 664167124c4b1e0613f8af4314c560e0f368a395 /phpBB/bin | |
parent | 69e50dffaed944c68bbfa88bf282dc765f580791 (diff) | |
parent | 5b51acf245fc1fbd454d394e8b44bf73d6439248 (diff) | |
download | forums-fc4275ab2b414e184007a8791c7ee09537d5a827.tar forums-fc4275ab2b414e184007a8791c7ee09537d5a827.tar.gz forums-fc4275ab2b414e184007a8791c7ee09537d5a827.tar.bz2 forums-fc4275ab2b414e184007a8791c7ee09537d5a827.tar.xz forums-fc4275ab2b414e184007a8791c7ee09537d5a827.zip |
Merge pull request #2543 from Nicofuma/ticket/12655
[ticket/12655] Run phpbbcli as a shell when --shell or -s is used
* Nicofuma/ticket/12655:
[ticket/12655] Set register_container_commands as public
[ticket/12655] Don't try to restore the definition in the help
[ticket/12655] Fix coding style
[ticket/12655] Make the --shell option available only for phpbbcli.php
[ticket/12655] Fix coding style in \phpbb\console\application
[ticket/12655] Set the arguments of \phpbb\console\application as required
[ticket/12655] Don't require acp/common again in the commands
[ticket/12655] Run the shell when --shell is used
Diffstat (limited to 'phpBB/bin')
-rwxr-xr-x | phpBB/bin/phpbbcli.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/bin/phpbbcli.php b/phpBB/bin/phpbbcli.php index 63c8f2230b..8b8d8e43fd 100755 --- a/phpBB/bin/phpbbcli.php +++ b/phpBB/bin/phpbbcli.php @@ -39,6 +39,9 @@ $phpbb_container = phpbb_create_update_container($phpbb_root_path, $phpEx, "$php $phpbb_container->get('request')->enable_super_globals(); require($phpbb_root_path . 'includes/compatibility_globals.' . $phpEx); -$application = new \phpbb\console\application('phpBB Console', PHPBB_VERSION); +$user = $phpbb_container->get('user'); +$user->add_lang('acp/common'); + +$application = new \phpbb\console\application('phpBB Console', PHPBB_VERSION, $user); $application->register_container_commands($phpbb_container); $application->run(); |