mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-27295' of git://git.luns.net.uk/moodle
This commit is contained in:
commit
9afd0b3e2e
@ -2265,7 +2265,9 @@ 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)), $fullname, $catlinkcss);
|
||||
$cat .= html_writer::tag('span', ' ('.count($courses).')', array('title'=>get_string('numberofcourses'), 'class'=>'numberofcourse'));
|
||||
if (count($courses) > 0) {
|
||||
$cat .= html_writer::tag('span', ' ('.count($courses).')', array('title'=>get_string('numberofcourses'), 'class'=>'numberofcourse'));
|
||||
}
|
||||
|
||||
if ($depth > 0) {
|
||||
for ($i=0; $i< $depth; $i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user