Fixed a bug with clusters. If you enter a cluster after a page it would throw a
navigation error. It now enters the cluster properly.
This commit is contained in:
@@ -727,7 +727,7 @@
|
||||
error("Error: could not find page");
|
||||
}
|
||||
if ($page->qtype == LESSON_CLUSTER) {
|
||||
$newpageid = LESSON_CLUSTERJUMP;
|
||||
$newpageid = lesson_cluster_jump($lesson->id, $USER->id, $page->id);
|
||||
} elseif ($page->qtype == LESSON_ENDOFCLUSTER) {
|
||||
$jump = get_field("lesson_answers", "jumpto", "pageid", $page->id, "lessonid", $lesson->id);
|
||||
if ($jump == LESSON_NEXTPAGE) {
|
||||
|
||||
Reference in New Issue
Block a user