mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -07:00
Check $tpl_vars['QUESTION'] in print_confirmation() (#977)
This commit is contained in:
parent
65c5e5a275
commit
1af9cfbbb9
3 changed files with 7 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
||||||
"homepage": "https://github.com/belomaxorka",
|
"homepage": "https://github.com/belomaxorka",
|
||||||
"role": "Developer"
|
"role": "Developer"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "kovalensky",
|
"name": "kovalensky",
|
||||||
"email": "kovalensky@evergarden.ru",
|
"email": "kovalensky@evergarden.ru",
|
||||||
"homepage": "https://github.com/kovalensky",
|
"homepage": "https://github.com/kovalensky",
|
||||||
|
|
|
@ -1642,6 +1642,11 @@ function print_confirmation($tpl_vars)
|
||||||
'CONFIRM_TITLE' => $lang['CONFIRM'],
|
'CONFIRM_TITLE' => $lang['CONFIRM'],
|
||||||
'FORM_METHOD' => 'post'
|
'FORM_METHOD' => 'post'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (!isset($tpl_vars['QUESTION'])) {
|
||||||
|
$tpl_vars['QUESTION'] = $lang['QUESTION'];
|
||||||
|
}
|
||||||
|
|
||||||
$template->assign_vars($tpl_vars);
|
$template->assign_vars($tpl_vars);
|
||||||
|
|
||||||
print_page('common.tpl');
|
print_page('common.tpl');
|
||||||
|
|
|
@ -2369,7 +2369,7 @@ $lang['TEMPLATE_DISABLE'] = 'Template disabled';
|
||||||
$lang['FOR_NEW_TEMPLATE'] = 'for new patterns!';
|
$lang['FOR_NEW_TEMPLATE'] = 'for new patterns!';
|
||||||
$lang['CHANGED'] = 'Changed';
|
$lang['CHANGED'] = 'Changed';
|
||||||
$lang['REMOVED'] = 'Removed';
|
$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_LIST'] = 'Cron list';
|
||||||
$lang['CRON_ID'] = 'ID';
|
$lang['CRON_ID'] = 'ID';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue