From: mark-nielsen Date: Fri, 17 Mar 2006 03:37:31 +0000 (+0000) Subject: [Changed] function execute_teacherwarning to function lesson_display_teacher_warning... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0646963948a887e36972127fefc919b7831a2de6;p=moodle.git [Changed] function execute_teacherwarning to function lesson_display_teacher_warning because it was violating the function naming policy --- diff --git a/mod/lesson/action/continue.php b/mod/lesson/action/continue.php index a0dd5c3c5b..ff10fa7766 100644 --- a/mod/lesson/action/continue.php +++ b/mod/lesson/action/continue.php @@ -37,7 +37,7 @@ // This is the warning msg for teachers to inform them that cluster and unseen does not work while logged in as a teacher if(isteacher($course->id)) { - if (execute_teacherwarning($lesson->id)) { + if (lesson_display_teacher_warning($lesson->id)) { $warningvars->cluster = get_string("clusterjump", "lesson"); $warningvars->unseen = get_string("unseenpageinbranch", "lesson"); echo "

".get_string("teacherjumpwarning", "lesson", $warningvars)."

"; diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index 9263745f11..fde0e2a59a 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -683,10 +683,10 @@ function lesson_display_cluster_jump($lesson_id, $pageid) { * This function is only executed when a teacher is * checking the navigation for a lesson. * - * @param int $lessonid Id of the lesson that is to be checked. + * @param int $lesson Id of the lesson that is to be checked. * @return boolean True or false. **/ -function execute_teacherwarning($lesson) { +function lesson_display_teacher_warning($lesson) { // get all of the lesson answers if (!$lessonanswers = get_records_select("lesson_answers", "lessonid = $lesson")) { // no answers, then not useing cluster or unseen diff --git a/mod/lesson/view.php b/mod/lesson/view.php index c2bea88ffa..cefa9947ce 100644 --- a/mod/lesson/view.php +++ b/mod/lesson/view.php @@ -600,7 +600,7 @@ /// This is the warning msg for teachers to inform them that cluster and unseen does not work while logged in as a teacher if(isteacher($course->id)) { - if (execute_teacherwarning($lesson->id)) { + if (lesson_display_teacher_warning($lesson->id)) { $warningvars->cluster = get_string('clusterjump', 'lesson'); $warningvars->unseen = get_string('unseenpageinbranch', 'lesson'); echo '

'. get_string('teacherjumpwarning', 'lesson', $warningvars) .'

';