From: moodler Date: Thu, 18 Nov 2004 06:33:23 +0000 (+0000) Subject: When there are no courses to list in the block, then include a link for adding one. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ade736f13c5ee3c7a8b0fd24e439d1b8af625daa;p=moodle.git When there are no courses to list in the block, then include a link for adding one. --- 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'); }