Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'wip-MDL-25928-m22' of git://github.com/samhemelryk/mood…

…le into MOODLE_22_STABLE
  • Loading branch information...
commit 6c974b2d658ccdb0f3d5b16a0aea178d9de588fd 2 parents dabaa04 + 278f612
Dan Poltawski authored December 17, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  course/renderer.php
4  course/renderer.php
@@ -123,6 +123,7 @@ protected function course_category_tree_category(stdClass $category, $depth=1) {
123 123
         if ($hascourses) {
124 124
             $content .= html_writer::start_tag('div', array('class'=>'courses'));
125 125
             $coursecount = 0;
  126
+            $strinfo = new lang_string('info');
126 127
             foreach ($category->courses as $course) {
127 128
                 $classes = array('course');
128 129
                 $linkclass = 'course_link';
@@ -143,8 +144,9 @@ protected function course_category_tree_category(stdClass $category, $depth=1) {
143 144
                 }
144 145
 
145 146
                 if ($course->summary) {
  147
+                    $url = new moodle_url('/course/info.php', array('id' => $course->id));
146 148
                     $image = html_writer::empty_tag('img', array('src'=>$this->output->pix_url('i/info'), 'alt'=>$this->strings->summary));
147  
-                    $content .= html_writer::link(new moodle_url('/course/info.php', array('id'=>$course->id)), $image, array('title'=>$this->strings->summary));
  149
+                    $content .= $this->action_link($url, $image, new popup_action('click', $url, 'courseinfo'), array('title' => $this->strings->summary));
148 150
                 }
149 151
                 $content .= html_writer::end_tag('div');
150 152
                 $content .= html_writer::end_tag('div');

0 notes on commit 6c974b2

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