1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-10 16:35:35 +02:00

[feature/ajax] Replace static call to phpbb_request with OO

PHPBB3-10270
This commit is contained in:
Igor Wiedler 2012-03-31 00:59:27 +02:00
parent 07826d6679
commit 9b971c9fb1

View File

@ -375,7 +375,8 @@ class acp_modules
{ {
if ($request->is_ajax()) if ($request->is_ajax())
{ {
phpbb_json_response::send(array( $json_response = new phpbb_json_response();
$json_response->send(array(
'MESSAGE_TITLE' => $user->lang('ERROR'), 'MESSAGE_TITLE' => $user->lang('ERROR'),
'MESSAGE_TEXT' => implode('<br />', $errors), 'MESSAGE_TEXT' => implode('<br />', $errors),
)); ));