From: moodler Date: Thu, 20 May 2004 00:55:11 +0000 (+0000) Subject: Just fixing the footer link on course list blocks X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fcc0e250bc0f3fd800fbafa4e8e889d68c798d4a;p=moodle.git Just fixing the footer link on course list blocks --- diff --git a/course/lib.php b/course/lib.php index 8bea738792..b31906b969 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1391,7 +1391,7 @@ function print_courses_sideblock($category=0, $width="100%") { "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname"; $modicon[]=$icon; } - $fulllist = "wwwroot/course/index.php\">".get_string("fulllistofcourses")."..."; + $fulllist = "

wwwroot/course/index.php\">".get_string("fulllistofcourses")."...

"; print_side_block( get_string("mycourses"), "", $moddata, $modicon, $fulllist, $width); return; } @@ -1404,8 +1404,9 @@ function print_courses_sideblock($category=0, $width="100%") { $moddata[]="wwwroot/course/category.php?id=$category->id\">$category->name"; $modicon[]=$icon; } - $fulllist = "wwwroot/course/\">".get_string("searchcourses")."..."; + $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); @@ -1417,7 +1418,7 @@ function print_courses_sideblock($category=0, $width="100%") { "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname"; $modicon[]=$icon; } - $fulllist = "wwwroot/course/index.php\">".get_string("fulllistofcourses")."..."; + $fulllist = "

wwwroot/course/index.php\">".get_string("fulllistofcourses")."...

"; } else { $moddata = array(); $modicon = array();