1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 01:44:27 +02:00

adding long time warning MDL-7890

This commit is contained in:
toyomoyo 2006-12-15 05:34:35 +00:00
parent a880d5917b
commit 4e3ea0e0d9

@ -4,7 +4,6 @@
//It cheks that the parammeter from restore_form are coherent.
//It puts all the restore info in the session.
//Finally, it calls restore_execute to do the hard work
//Get objects from session
if ($SESSION) {
$info = $SESSION->info;
@ -119,7 +118,7 @@
//add new vars to restore object
$restore->course_startdateoffset = $coursestartdatedateoffset;
$restore->course_shortname = $currentcourseshortname;
// create role mappings, not sure all should be here
if ($data2 = data_submitted()) {
foreach ($data2 as $tempname=>$tempdata) {
@ -265,6 +264,7 @@
$hidden["launch"] = "execute";
$hidden["file"] = $file;
$hidden["id"] = $id;
print_string('longtimewarning','admin');
print_single_button("restore.php", $hidden, get_string("restorecoursenow"),"post");
echo "</center>";
} else {