1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

[ticket/10271] Changed AJAX functions to $request->is_ajax().

PHPBB3-10271
This commit is contained in:
Callum Macrae
2011-08-19 09:38:57 +01:00
committed by Igor Wiedler
parent 69eb7b8332
commit 94172b54dd
2 changed files with 8 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ class acp_forums
function main($id, $mode)
{
global $db, $user, $auth, $template, $cache;
global $db, $user, $auth, $template, $cache, $request;
global $config, $phpbb_admin_path, $phpbb_root_path, $phpEx;
$user->add_lang('acp/forums');
@@ -256,7 +256,7 @@ class acp_forums
$cache->destroy('sql', FORUMS_TABLE);
}
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')
if ($request->is_ajax())
{
echo json_encode(array('success' => ($move_forum_name !== false)));
exit;