mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Fixed restart bug - continue now handle through POST not GET.
This commit is contained in:
parent
dbb4919258
commit
c7901feb99
1 changed files with 10 additions and 3 deletions
|
@ -97,9 +97,16 @@
|
||||||
break; // only look at the latest correct attempt
|
break; // only look at the latest correct attempt
|
||||||
}
|
}
|
||||||
if ($lastpageseen != $firstpageid) {
|
if ($lastpageseen != $firstpageid) {
|
||||||
notice_yesno(get_string("youhaveseen","lesson"),
|
echo "<form name=\"queryform\" method =\"post\" action=\"view.php\">\n";
|
||||||
"view.php?id=$cm->id&action=navigation&pageid=$lastpageseen",
|
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
|
||||||
"view.php?id=$cm->id&action=navigation&pageid=$firstpageid");
|
echo "<input type=\"hidden\" name=\"action\" value=\"navigation\">\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"pageid\">\n";
|
||||||
|
print_simple_box("<p align=\"center\">".get_string("youhaveseen","lesson")."</p>",
|
||||||
|
"center");
|
||||||
|
echo "<p align=\"center\"><input type=\"button\" value=\"".get_string("yes").
|
||||||
|
"\" onclick=\"document.queryform.pageid.value='$lastpageseen';document.queryform.submit();\"> <input type=\"button\" value=\"".get_string("no").
|
||||||
|
"\" onclick=\"document.queryform.pageid.value='$firstpageid';document.queryform.submit();\"></p>\n";
|
||||||
|
echo "</form>\n";
|
||||||
print_footer($course);
|
print_footer($course);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue