From 352d94cf378d21f28c30982efc5ea265618f8a8e Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 20 Feb 2004 12:43:20 +0000 Subject: [PATCH] Change course sideblock title depending on contents --- course/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index e4d3f52938..2c9ad8227c 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1339,6 +1339,7 @@ function print_courses_sideblock($category=0, $width="100%") { $modicon[]=$icon; } $fulllist = "

wwwroot/course/\">".get_string("searchcourses")."..."; + $blocktitle = get_string("categories"); } else { // Just print course names of single category $category = array_shift($categories); $courses = get_courses($category->id); @@ -1356,9 +1357,10 @@ function print_courses_sideblock($category=0, $width="100%") { $modicon = array(); $fulllist = get_string("nocoursesyet"); } + $blocktitle = get_string("courses"); } - print_side_block( get_string("courses"), "", $moddata, $modicon, $fulllist, $width); + print_side_block($blocktitle, "", $moddata, $modicon, $fulllist, $width); } -- 2.39.5