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:
committed by
Igor Wiedler
parent
69eb7b8332
commit
94172b54dd
@@ -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;
|
||||
|
Reference in New Issue
Block a user