When there are no courses to list in the block, then include a link for adding one.

This commit is contained in:
moodler
2004-11-18 06:33:23 +00:00
parent 1ad49e00d9
commit ade736f13c
+3 -1
View File
@@ -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').'<br /><br />'.
'<a href="'.$CFG->wwwroot.'/course/edit.php?category='.$category->id.'">'.
get_string("addnewcourse").'</a>...';
}
$this->title = get_string('courses');
}