1
0
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:
Callum Macrae
2011-08-19 10:45:03 +01:00
committed by Igor Wiedler
parent 94172b54dd
commit dce38f44de
5 changed files with 63 additions and 9 deletions

View File

@@ -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;