course/lib MDL-24984 - fix lack of spacing on category list
authorPaul Vaughan <tenaciousp@vaughany.com>
Sun, 9 Jan 2011 20:33:19 +0000 (20:33 +0000)
committerDan Poltawski <dan.poltawski@luns.net.uk>
Sun, 9 Jan 2011 20:35:21 +0000 (20:35 +0000)
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
course/lib.php

index a28be6d..8915b97 100644 (file)
@@ -2110,7 +2110,7 @@ function print_category_info($category, $depth=0, $showcourses = false) {
         echo '<div class="categorylist">';
         $html = '';
         $cat = html_writer::link(new moodle_url('/course/category.php', array('id'=>$category->id)), format_string($category->name), $catlinkcss);
-        $cat .= html_writer::tag('span', '('.count($courses).')', array('title'=>get_string('numberofcourses'), 'class'=>'numberofcourse'));
+        $cat .= html_writer::tag('span', ' ('.count($courses).')', array('title'=>get_string('numberofcourses'), 'class'=>'numberofcourse'));
 
         if ($depth > 0) {
             for ($i=0; $i< $depth; $i++) {