Ported handy button from 1.5 that somehow didn't get merged before
This commit is contained in:
+8
-1
@@ -1390,7 +1390,14 @@ function print_courses($category, $width="100%") {
|
||||
print_course($course, $width);
|
||||
}
|
||||
} else {
|
||||
print_heading(get_string("nocoursesyet"));
|
||||
print_heading(get_string('nocoursesyet'));
|
||||
if (iscreator()) {
|
||||
$options = array();
|
||||
$options['category'] = $category->id;
|
||||
echo '<div class="addcoursebutton" align="center">';
|
||||
print_single_button($CFG->wwwroot.'/course/edit.php', $options, get_string('addnewcourse'));
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user