From 1af9cfbbb9c5d4e911be39a5bfab9da9f7754487 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 19 Oct 2023 16:14:11 +0700 Subject: [PATCH] Check $tpl_vars['QUESTION'] in print_confirmation() (#977) --- composer.json | 2 +- library/includes/functions.php | 5 +++++ library/language/source/main.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7ef5dbdb5..f3bb641f0 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "homepage": "https://github.com/belomaxorka", "role": "Developer" }, - { + { "name": "kovalensky", "email": "kovalensky@evergarden.ru", "homepage": "https://github.com/kovalensky", diff --git a/library/includes/functions.php b/library/includes/functions.php index 714d3354a..95f1c9133 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -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'); diff --git a/library/language/source/main.php b/library/language/source/main.php index f1b8bfdef..3a48b128f 100644 --- a/library/language/source/main.php +++ b/library/language/source/main.php @@ -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';