1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-18 06:38:43 +01:00

[ticket/14403] Set a default user id and ip in CLI

PHPBB3-14403
This commit is contained in:
Oliver Schramm 2016-01-13 18:11:43 +01:00
parent 0cc41b94b1
commit d045822cd8

View File

@ -59,6 +59,8 @@ $phpbb_container->get('request')->enable_super_globals();
require($phpbb_root_path . 'includes/compatibility_globals.' . $phpEx);
$user = $phpbb_container->get('user');
$user->data['user_id'] = ANONYMOUS;
$user->ip = '127.0.0.1';
$user->add_lang('acp/common');
$user->add_lang('cli');