incorrect at restore time. Bug 5334.
(http://moodle.org/bugs/bug.php?op=show&bugid=5334)
echo "<li>".get_string("checkingbackup").'</li>';
}
if (! $status = restore_check_moodle_file ($xml_file)) {
+ if (!is_file($xml_file)) {
+ $errorstr = 'Error checking backup file. moodle.xml not found at root level of zip file.';
+ } else {
+ $errorstr = 'Error checking backup file. moodle.xml is incorrect or corrupted.';
+ }
if (!defined('RESTORE_SILENTLY')) {
- notify("Error checking backup file. Invalid or corrupted.");
+ notify($errorstr);
} else {
- $errorstr = "Error checking backup file. Invalid or corrupted.";
return false;
}
}