MDL-29296 lesson mod: fixed regression for continue button on last lesson page.

This commit is contained in:
Rossiani Wijaya
2011-09-26 16:41:49 +08:00
parent e63ae067f4
commit 0343553fbc
2 changed files with 12 additions and 20 deletions
+1 -4
View File
@@ -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,