mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10328] Added a JSON class.
The JSON class adds a consistent way to send JSON to the client, making it perfect for AJAX (jQuery automatically parses it). PHPBB3-10328
This commit is contained in:
committed by
Igor Wiedler
parent
94172b54dd
commit
dce38f44de
@@ -258,8 +258,7 @@ class acp_forums
|
||||
|
||||
if ($request->is_ajax())
|
||||
{
|
||||
echo json_encode(array('success' => ($move_forum_name !== false)));
|
||||
exit;
|
||||
JSON::send(array('success' => ($move_forum_name !== false)));
|
||||
}
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user