aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_database.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-04-21 15:02:22 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-04-21 15:02:22 +0000
commitcc78a5302375747328abae09dda9ccf98e9b9121 (patch)
tree851ff614b318d6e199ea6b136f1e3429b180c4c7 /phpBB/includes/acp/acp_database.php
parent2c2da40f1be8e05de37e602f0173feba1cee4373 (diff)
downloadforums-cc78a5302375747328abae09dda9ccf98e9b9121.tar
forums-cc78a5302375747328abae09dda9ccf98e9b9121.tar.gz
forums-cc78a5302375747328abae09dda9ccf98e9b9121.tar.bz2
forums-cc78a5302375747328abae09dda9ccf98e9b9121.tar.xz
forums-cc78a5302375747328abae09dda9ccf98e9b9121.zip
#24245
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8525 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_database.php')
-rw-r--r--phpBB/includes/acp/acp_database.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php
index eaf3145107..d626008618 100644
--- a/phpBB/includes/acp/acp_database.php
+++ b/phpBB/includes/acp/acp_database.php
@@ -25,7 +25,7 @@ class acp_database
function main($id, $mode)
{
- global $db, $user, $auth, $template, $table_prefix;
+ global $cache, $db, $user, $auth, $template, $table_prefix;
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
$user->add_lang('acp/database');
@@ -159,12 +159,13 @@ class acp_database
$extractor->write_end();
+ add_log('admin', 'LOG_DB_BACKUP');
+
if ($download == true)
{
exit;
}
- add_log('admin', 'LOG_DB_BACKUP');
trigger_error($user->lang['BACKUP_SUCCESS'] . adm_back_link($this->u_action));
break;
@@ -399,6 +400,9 @@ class acp_database
$close($fp);
+ // Purge the cache due to updated data
+ $cache->purge();
+
add_log('admin', 'LOG_DB_RESTORE');
trigger_error($user->lang['RESTORE_SUCCESS'] . adm_back_link($this->u_action));
break;