Merged from MOODLE_15_STABLE

Link to add new course when there are no courses available only appears to
course creators. Bug 3420.
This commit is contained in:
ikawhero 2005-06-04 10:45:45 +00:00
parent 7bbe08a267
commit 1993927c23

View File

@ -77,9 +77,10 @@ class block_course_list extends block_list {
} else {
$this->content->items = array();
$this->content->icons = array();
$this->content->footer = get_string('nocoursesyet').'<br /><br />'.
'<a href="'.$CFG->wwwroot.'/course/edit.php?category='.$category->id.'">'.
get_string("addnewcourse").'</a>...';
$this->content->footer = get_string('nocoursesyet').'<br /><br />';
if (iscreator()) {
$this->content .= '<a href="'.$CFG->wwwroot.'/course/edit.php?category='.$category->id.'">'.get_string("addnewcourse").'</a>...';
}
}
$this->title = get_string('courses');
}