From a1febdd4290cf2b5aabf5fe6b656da1b3ad4f4c9 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 21 Sep 2011 21:19:37 +0100 Subject: [ticket/10239] Add confirm box to backup restore. PHPBB3-10239 --- phpBB/includes/acp/acp_database.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php index 193dd001c0..1bf10b0e57 100644 --- a/phpBB/includes/acp/acp_database.php +++ b/phpBB/includes/acp/acp_database.php @@ -247,7 +247,7 @@ class acp_database confirm_box(false, $user->lang['DELETE_SELECTED_BACKUP'], build_hidden_fields(array('delete' => $delete, 'file' => $file))); } } - else + else if ($download || confirm_box(true)) { $download = request_var('download', ''); @@ -411,6 +411,10 @@ class acp_database trigger_error($user->lang['RESTORE_SUCCESS'] . adm_back_link($this->u_action)); break; } + else if (!$download) + { + confirm_box(false, $user->lang['RESTORE_SELECTED_BACKUP'], build_hidden_fields(array('file' => $file))); + } default: $methods = array('sql'); -- cgit v1.2.1