From: moodler Date: Fri, 29 Nov 2002 14:17:36 +0000 (+0000) Subject: Some improvements to the layout of courses when there are categories X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=85098089d122aef51b82e7c3c4763c48dc307826;p=moodle.git Some improvements to the layout of courses when there are categories and they are on the front page --- 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 "