Skip to content
Browse files

[Changed] function execute_teacherwarning to function lesson_display_…

…teacher_warning because it was violating the function naming policy
  • Loading branch information...
1 parent 4b55d2a commit 0646963948a887e36972127fefc919b7831a2de6 mark-nielsen committed
Showing with 4 additions and 4 deletions.
  1. +1 −1 mod/lesson/action/continue.php
  2. +2 −2 mod/lesson/locallib.php
  3. +1 −1 mod/lesson/view.php
View
2 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 "<p align=\"center\">".get_string("teacherjumpwarning", "lesson", $warningvars)."</p>";
View
4 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
View
2 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 '<p align="center">'. get_string('teacherjumpwarning', 'lesson', $warningvars) .'</p>';

0 comments on commit 0646963

Please sign in to comment.
Something went wrong with that request. Please try again.