MDL-36549 Lesson module: fixed strict standards errors

This commit is contained in:
Rossiani Wijaya 2012-11-21 11:22:23 +08:00
parent 2d7c5eeeea
commit 46ac70b24c

View file

@ -338,6 +338,7 @@ if ($pageid != LESSON_EOL) {
if (lesson_display_teacher_warning($lesson)) { if (lesson_display_teacher_warning($lesson)) {
// This is the warning msg for teachers to inform them that cluster // This is the warning msg for teachers to inform them that cluster
// and unseen does not work while logged in as a teacher // and unseen does not work while logged in as a teacher
$warningvars = new stdClass();
$warningvars->cluster = get_string('clusterjump', 'lesson'); $warningvars->cluster = get_string('clusterjump', 'lesson');
$warningvars->unseen = get_string('unseenpageinbranch', 'lesson'); $warningvars->unseen = get_string('unseenpageinbranch', 'lesson');
$lesson->add_message(get_string('teacherjumpwarning', 'lesson', $warningvars)); $lesson->add_message(get_string('teacherjumpwarning', 'lesson', $warningvars));