From d5ca7a5706214fb2d06c7e37ee2641ce76ca186e Mon Sep 17 00:00:00 2001 From: poltawski Date: Tue, 4 Dec 2007 12:54:47 +0000 Subject: [PATCH] MDL-12415 - When we have more than one category/lots of courses the course block shows two links next to search other (Search Courses/All courses) which point to the same place.... The all courses link is able to be switched off and the search courses is not, for this reason i've gone for removing the search courses link. --- blocks/course_list/block_course_list.php | 1 - 1 file changed, 1 deletion(-) diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index cf3fac55a04..ec20063cb0a 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -68,7 +68,6 @@ class block_course_list extends block_list { $this->content->items[]="wwwroot/course/category.php?id=$category->id\">" . format_string($category->name) . ""; $this->content->icons[]=$icon; } - $this->content->footer .= "wwwroot/course/index.php\">".get_string('searchcourses').' ...
'; /// If we can update any course of the view all isn't hidden, show the view all courses link if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) || empty($CFG->block_course_list_hideallcourseslink)) { $this->content->footer .= "wwwroot/course/index.php\">".get_string('fulllistofcourses').' ...';