Update ajax.php

This commit is contained in:
Roman Kelesidis 2024-07-20 16:58:52 +07:00
parent f4a7ec6550
commit acf059c04f

View File

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