]> git.mjollnir.org Git - moodle.git/commitdiff
Add link to "all courses" for admins etc
authormoodler <moodler>
Wed, 4 Aug 2004 02:35:29 +0000 (02:35 +0000)
committermoodler <moodler>
Wed, 4 Aug 2004 02:35:29 +0000 (02:35 +0000)
blocks/course_list/block_course_list.php

index 5be560390fb1b8fc7c86c6cf84f8a72360af4779..e23acae83529a220407aa7109a66588b323b2a3c 100644 (file)
@@ -85,7 +85,8 @@ class CourseBlock_course_list extends MoodleBlock {
                     $this->content->items[]="<a $linkcss href=\"$CFG->wwwroot/course/category.php?id=$category->id\">$category->name</a>";
                     $this->content->icons[]=$icon;
                 }
-                $this->content->footer = "<a href=\"$CFG->wwwroot/course/\">".get_string("searchcourses")."</a>...";
+                $this->content->footer = "<a href=\"$CFG->wwwroot/course/\">".get_string("searchcourses")."</a>...<br />".
+                                         "<a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a>...";
                 $this->title = get_string('categories');
             } else {                          // Just print course names of single category
                 $category = array_shift($categories);