From ade736f13c5ee3c7a8b0fd24e439d1b8af625daa Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 18 Nov 2004 06:33:23 +0000 Subject: [PATCH] When there are no courses to list in the block, then include a link for adding one. --- blocks/course_list/block_course_list.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index cda9e3e8d7..137ed123f7 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -91,7 +91,9 @@ class CourseBlock_course_list extends MoodleBlock { } else { $this->content->items = array(); $this->content->icons = array(); - $this->content->footer = get_string('nocoursesyet'); + $this->content->footer = get_string('nocoursesyet').'

'. + ''. + get_string("addnewcourse").'...'; } $this->title = get_string('courses'); } -- 2.39.5