From ac17355524697d4c16cb81916bac644eb1adc093 Mon Sep 17 00:00:00 2001
From: poltawski <poltawski>
Date: Tue, 4 Dec 2007 12:57:02 +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.

Merged from MOODLE_19_STABLE
---
 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 cf3fac55a0..ec20063cb0 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[]="<a $linkcss href=\"$CFG->wwwroot/course/category.php?id=$category->id\">" . format_string($category->name) . "</a>";
                     $this->content->icons[]=$icon;
                 }
-                $this->content->footer .= "<a href=\"$CFG->wwwroot/course/index.php\">".get_string('searchcourses').'</a> ...<br />';
             /// 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 .= "<a href=\"$CFG->wwwroot/course/index.php\">".get_string('fulllistofcourses').'</a> ...';
-- 
2.39.5