From beca85894eca11877370e76816fa5cb2c97261e4 Mon Sep 17 00:00:00 2001 From: mark-nielsen Date: Sun, 30 Dec 2007 19:07:23 +0000 Subject: [PATCH] Fix for MDL-10752 (mostly a backport from MOODLE_19_STABLE or later) --- mod/lesson/locallib.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index a399cc77f8a..a108c40f167 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -234,17 +234,15 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') { // Changed the update_module_button and added another button when a teacher is checking the navigation of the lesson if (has_capability('mod/lesson:edit', $context)) { - - $button = update_module_button($cm->id, $course->id, $strlesson); + $button = ''; + $button .= update_module_button($cm->id, $course->id, $strlesson); if ($currenttab == 'view') { if (!$pageid = optional_param('pageid', 0, PARAM_INT)) { $pageid = get_field('lesson_pages', 'id', 'lessonid', $lesson->id, 'prevpageid', 0); } if (!empty($pageid) and $pageid != LESSON_EOL) { - $button = '
'.$button. - ''. - '
frametarget.' method="get" action="'. $CFG->wwwroot .'/mod/lesson/lesson.php">'. + $button .= 'frametarget.' method="get" action="'. $CFG->wwwroot .'/mod/lesson/lesson.php">'. '
'. ''. ''. @@ -252,10 +250,10 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') { ''. ''. '
'. - '
'. - '
'; + ''; } } + $button .= '
'; } else { $button = ''; }