MDL-18594 restore check - skip maintenance.html file on restore of sie files. Credit goes to Juan Segarra. Merged from 19_STABLE

This commit is contained in:
stronk7
2009-03-19 14:45:01 +00:00
parent 2029fcf47f
commit 53dd63837d
+4
View File
@@ -4051,6 +4051,10 @@ define('RESTORE_GROUPS_GROUPINGS', 3);
//Iterate
$counter = 0;
foreach ($list as $dir) {
//Avoid copying maintenance.html. MDL-18594
if ($dir == 'maintenance.html') {
continue;
}
//Copy the dir to its new location
//Only if destination file/dir doesn exists
if (!file_exists($dest_dir."/".$dir)) {