Permalink
Browse files

[BugFix] Bug #5466 - Cluster and End of Cluster pages no longer displ…

…ay scores in extended editing view. Also added page type display for cluster and end of cluster pages in the extended editing view (which is displayed for all other pages as well).
  • Loading branch information...
1 parent 96856b5 commit 09447862c0f34c442d06f92c54a797d4f48bcabb mark-nielsen committed Jul 13, 2006
Showing with 11 additions and 1 deletion.
  1. +11 −1 mod/lesson/view.php
View
@@ -1306,6 +1306,12 @@
case LESSON_ENDOFBRANCH :
echo get_string("endofbranch", "lesson");
break;
+ case LESSON_CLUSTER :
+ echo get_string("clustertitle", "lesson");
+ break;
+ case LESSON_ENDOFCLUSTER :
+ echo get_string("endofclustertitle", "lesson");
+ break;
}
echo "</b></td></tr>\n";
$i = 1;
@@ -1436,7 +1442,11 @@
echo "$jumptitle</td></tr>\n";
}
} else {
- if ($lesson->custom && $page->qtype != LESSON_BRANCHTABLE && $page->qtype != LESSON_ENDOFBRANCH) {
+ if ($lesson->custom and
+ $page->qtype != LESSON_BRANCHTABLE and
+ $page->qtype != LESSON_ENDOFBRANCH and
+ $page->qtype != LESSON_CLUSTER and
+ $page->qtype != LESSON_ENDOFCLUSTER) {
echo "<tr><td align=\"right\" width=\"20%\"><b>".get_string("score", "lesson")." $i:";
echo "</b></td><td width=\"80%\">\n";
echo "$answer->score</td></tr>\n";

0 comments on commit 0944786

Please sign in to comment.