Check $tpl_vars['QUESTION'] in print_confirmation() (#977)

This commit is contained in:
Roman Kelesidis 2023-10-19 16:14:11 +07:00 committed by GitHub
commit 1af9cfbbb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -1642,6 +1642,11 @@ function print_confirmation($tpl_vars)
'CONFIRM_TITLE' => $lang['CONFIRM'],
'FORM_METHOD' => 'post'
]);
if (!isset($tpl_vars['QUESTION'])) {
$tpl_vars['QUESTION'] = $lang['QUESTION'];
}
$template->assign_vars($tpl_vars);
print_page('common.tpl');

View file

@ -2369,7 +2369,7 @@ $lang['TEMPLATE_DISABLE'] = 'Template disabled';
$lang['FOR_NEW_TEMPLATE'] = 'for new patterns!';
$lang['CHANGED'] = 'Changed';
$lang['REMOVED'] = 'Removed';
$lang['QUESTION'] = 'Are you sure want to delete?';
$lang['QUESTION'] = 'Confirm are you sure you want to perform this action';
$lang['CRON_LIST'] = 'Cron list';
$lang['CRON_ID'] = 'ID';