diff --git a/backup/restore_check.html b/backup/restore_check.html index 9349f956179..78e34c82b70 100644 --- a/backup/restore_check.html +++ b/backup/restore_check.html @@ -266,6 +266,8 @@ error("You need to be an edit teacher or admin to restore into selected course!"); } $show_continue_button = true; + $messages = array(); + //Check if we've selected any mod's user info and restore->users //is set to none. Change it to course and inform. if ($restore->users == 2) { @@ -281,36 +283,52 @@ $changed = 1; } if ($changed) { - echo get_string ("noteuserschangednonetocourse"); - echo "
' . $message . '
'; + } + + /// Warning and button if ($show_continue_button) { //Print the continue button to execute the restore NOW !!!! //All is prepared !!! - echo "'.get_string('mnetrestore_extusers','admin').'
'; - } else { - print ''. get_string('mnetrestore_extusers_mismatch','admin').'
'; - } - } + + /// Restore button print_single_button("restore.php", $hidden, get_string("restorecoursenow"),"post"); - echo "