mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Updated
This commit is contained in:
parent
41004eb88a
commit
33d3416fe5
4
ajax.php
4
ajax.php
@ -214,7 +214,7 @@ class ajax_common
|
||||
function ajax_die($error_msg, $error_code = E_AJAX_GENERAL_ERROR)
|
||||
{
|
||||
$this->response['error_code'] = $error_code;
|
||||
$this->response['error_msg'] = $error_msg;
|
||||
$this->response['error_msg'] = strip_tags(preg_replace('#<br\s*/?>#i', "\n", $error_msg));
|
||||
|
||||
$this->send();
|
||||
}
|
||||
@ -315,7 +315,7 @@ class ajax_common
|
||||
if (empty($confirm_msg)) $this->ajax_die('false');
|
||||
|
||||
$this->response['prompt_confirm'] = 1;
|
||||
$this->response['confirm_msg'] = $confirm_msg;
|
||||
$this->response['confirm_msg'] = strip_tags(preg_replace('#<br\s*/?>#i', "\n", $confirm_msg));
|
||||
$this->send();
|
||||
}
|
||||
|
||||
|
@ -1805,7 +1805,7 @@ function bb_die ($msg_text)
|
||||
|
||||
if (defined('IN_AJAX'))
|
||||
{
|
||||
$ajax->ajax_die(strip_tags(preg_replace('#<br\s*/?>#i', "\n", $msg_text)));
|
||||
$ajax->ajax_die($msg_text);
|
||||
}
|
||||
|
||||
// Check
|
||||
|
Loading…
Reference in New Issue
Block a user