aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-08-08 16:01:43 +0200
committerAndreas Fischer <bantu@phpbb.com>2014-08-08 16:01:43 +0200
commit3c79287c0bbd8c31bef7cf50971e32a0368e3279 (patch)
treea1945ceaff0bb6c04ace3d1a9441ef1a1eae3792
parent6bfadd86edb7b0793f8c943bade7c36e4f89adac (diff)
parent50fcd704288f14f3e6715ca3d35ee72d522b13b6 (diff)
downloadforums-3c79287c0bbd8c31bef7cf50971e32a0368e3279.tar
forums-3c79287c0bbd8c31bef7cf50971e32a0368e3279.tar.gz
forums-3c79287c0bbd8c31bef7cf50971e32a0368e3279.tar.bz2
forums-3c79287c0bbd8c31bef7cf50971e32a0368e3279.tar.xz
forums-3c79287c0bbd8c31bef7cf50971e32a0368e3279.zip
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12778] Rename the file to *.bak instead of deleting [ticket/12778] Automatically delete files on update
-rw-r--r--phpBB/install/install_update.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php
index 28777a8d24..82ca0fc18d 100644
--- a/phpBB/install/install_update.php
+++ b/phpBB/install/install_update.php
@@ -1063,6 +1063,14 @@ class install_update extends module
$transfer->write_file($file_struct['filename'], $contents);
}
break;
+
+ case 'deleted':
+
+ if ($update_mode != 'download')
+ {
+ $transfer->rename($file_struct['filename'], $file_struct['filename'] . '.bak');
+ }
+ break;
}
}
}