MDL-12415 - When we have more than one category/lots of courses the course
authorpoltawski <poltawski>
Tue, 4 Dec 2007 12:57:02 +0000 (12:57 +0000)
committerpoltawski <poltawski>
Tue, 4 Dec 2007 12:57:02 +0000 (12:57 +0000)
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

index cf3fac55a0465d8916a04ec147a6793350fec55e..ec20063cb0a33003fdbfb5346136fbf0d3a9ab27 100644 (file)
@@ -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> ...';