[ticket/416] Add method for handling ajax requests

B3P-416
This commit is contained in:
Marc Alexander
2014-11-27 23:45:32 +01:00
parent a6b1e82e56
commit 8c0d537841
2 changed files with 28 additions and 16 deletions

View File

@@ -542,8 +542,7 @@ class portal_module
$this->template->set_filenames(array(
'body' => 'portal/acp_portal_modules.html')
);
$json_response = new \phpbb\json_response;
$json_response->send(array(
$this->modules_manager->handle_ajax_request(array(
'MESSAGE_BODY' => $this->template->assign_display('body'),
'MESSAGE_TITLE' => $this->user->lang['ADD_MODULE'],
'MESSAGE_TEXT' => $this->user->lang['ADD_MODULE'],