From 85098089d122aef51b82e7c3c4763c48dc307826 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 29 Nov 2002 14:17:36 +0000 Subject: [PATCH] Some improvements to the layout of courses when there are categories and they are on the front page --- course/lib.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/course/lib.php b/course/lib.php index 3694cf5f49..5bb1162c40 100644 --- a/course/lib.php +++ b/course/lib.php @@ -596,6 +596,9 @@ function print_course_admin_links($course, $width=180) { function print_course_categories($categories, $selected="none", $width=180) { global $CFG, $THEME, $USER; + + $strallowguests = get_string("allowguests"); + $strrequireskey = get_string("requireskey"); if ($selected == "index") { // Print comprehensive index of categories with courses if ($courses = get_records_sql("SELECT * FROM course WHERE category > 0 ORDER BY shortname")) { @@ -606,7 +609,8 @@ function print_course_categories($categories, $selected="none", $width=180) { echo "