mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[ticket/10272] Zebra operations using AJAX are now less hacky.
Before, they were splitting stuff by the <br />, and now JSON::add() is being used. PHPBB3-10272
This commit is contained in:
committed by
Igor Wiedler
parent
83095c2a2d
commit
082c5c5b32
@@ -201,6 +201,10 @@ class ucp_zebra
|
||||
|
||||
if ($updated)
|
||||
{
|
||||
JSON::add(array(
|
||||
'message' => $user->lang[$l_mode . '_UPDATED'],
|
||||
'success' => true
|
||||
));
|
||||
meta_refresh(3, $this->u_action);
|
||||
$message = $user->lang[$l_mode . '_UPDATED'] . '<br />' . implode('<br />', $error) . ((sizeof($error)) ? '<br />' : '') . '<br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
|
||||
trigger_error($message);
|
||||
|
Reference in New Issue
Block a user