Skip to content

Commit

Permalink
Display a notice about going to restore a newer backup file.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jul 29, 2004
1 parent 812a840 commit 19ca7ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backup/restore_precheck.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@
echo "</tr></td>";
echo "</table>";

//We compare Moodle's versions
if ($CFG->version < $info->backup_moodle_version && $status) {
$message->serverversion = $CFG->version;
$message->serverrelease = $CFG->release;
$message->backupversion = $info->backup_moodle_version;
$message->backuprelease = $info->backup_moodle_release;
print_simple_box(get_string('noticenewerbackup','',$message), "center", "70%", "$THEME->cellheading2", "20", "noticebox");

}

//Now we print in other table, the backup and the course it contains info
if ($info and $course_header and $status) {
//First, the course info
Expand Down
1 change: 1 addition & 0 deletions lang/en/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@
$string['notenrolled'] = '$a is not enrolled in this course.';
$string['noteuserschangednonetocourse'] = 'Note: course users need to be restored when restoring user data. This setting has been changed for you.';
$string['nothingnew'] = 'Nothing new since your last login';
$string['noticenewerbackup'] = 'This backup file has been created with Moodle $a->backuprelease ($a->backupversion) and it\'s newer than your currently installed Moodle $a->serverrelease ($a->serverversion). This could cause some inconsistencies because backwards compatibility of backup files cannot be guarantied.';
$string['notincluded'] = 'Not included';
$string['notingroup'] = 'Sorry, but you need to be part of a group to see this activity.';
$string['nousersmatching'] = 'No users matching \'$a\' were found';
Expand Down

0 comments on commit 19ca7ac

Please sign in to comment.