mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
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:
parent
7bbe08a267
commit
1993927c23
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user