]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18594 restore check - skip maintenance.html file on restore of sie files. Credit...
authorstronk7 <stronk7>
Thu, 19 Mar 2009 14:45:01 +0000 (14:45 +0000)
committerstronk7 <stronk7>
Thu, 19 Mar 2009 14:45:01 +0000 (14:45 +0000)
backup/restorelib.php

index cf4a1c45a9476779206be280a4217109dedfeadf..b1899cf3a7c5e8cb886a9aec5f681e36b1699bd0 100644 (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)) {