From e0735653643e7e7b679ca343ab6fdb5e9ffd8e49 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 22 Aug 2012 17:10:38 +0800 Subject: [PATCH] MDL-34444 - actually display the title, just don't link it.. Don't worry, i'm going on holiday, so i'll be away from this git repo for a while to prevent any more mess. --- course/format/renderer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/course/format/renderer.php b/course/format/renderer.php index ed2db02eab2..d390202aa3a 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -291,11 +291,12 @@ abstract class format_section_renderer_base extends plugin_renderer_base { $o .= html_writer::tag('div', '', array('class' => 'right side')); $o .= html_writer::start_tag('div', array('class' => 'content')); + $title = get_section_name($course, $section); if ($section->uservisible) { - $title = html_writer::tag('a', get_section_name($course, $section), + $title = html_writer::tag('a', $title, array('href' => course_get_url($course, $section->section), 'class' => $linkclasses)); - $o .= $this->output->heading($title, 3, 'section-title'); } + $o .= $this->output->heading($title, 3, 'section-title'); $o.= html_writer::start_tag('div', array('class' => 'summarytext')); $o.= $this->format_summary_text($section);