mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update ajax.php
This commit is contained in:
parent
f4a7ec6550
commit
acf059c04f
5
ajax.php
5
ajax.php
@ -314,9 +314,10 @@ class ajax_common
|
|||||||
/**
|
/**
|
||||||
* Prompt for confirmation
|
* Prompt for confirmation
|
||||||
*/
|
*/
|
||||||
function prompt_for_confirm($confirm_msg)
|
function prompt_for_confirm($confirm_msg = '')
|
||||||
{
|
{
|
||||||
if (empty($confirm_msg)) $this->ajax_die('false');
|
global $lang;
|
||||||
|
if (empty($confirm_msg)) $confirm_msg = $lang['QUESTION'];
|
||||||
|
|
||||||
$this->response['prompt_confirm'] = 1;
|
$this->response['prompt_confirm'] = 1;
|
||||||
$this->response['confirm_msg'] = strip_tags(br2nl($confirm_msg));
|
$this->response['confirm_msg'] = strip_tags(br2nl($confirm_msg));
|
||||||
|
Loading…
Reference in New Issue
Block a user