MDL-29296 lesson mod: fixed regression for continue button on last lesson page.
This commit is contained in:
+1
-4
@@ -374,10 +374,7 @@ if ($pageid != LESSON_EOL) {
|
||||
$data = new stdClass;
|
||||
$data->id = $PAGE->cm->id;
|
||||
$data->pageid = $page->id;
|
||||
$data->newpageid = LESSON_NEXTPAGE;
|
||||
if ($nextpage = $lesson->get_next_page($page->nextpageid)) {
|
||||
$data->newpageid = $nextpage->id;
|
||||
}
|
||||
$data->newpageid = $lesson->get_next_page($page->nextpageid);
|
||||
|
||||
$customdata = array(
|
||||
'title' => $page->title,
|
||||
|
||||
Reference in New Issue
Block a user