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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user