Replace the add course button that somehow disappeared from 1.5

This commit is contained in:
moodler 2006-04-10 15:41:57 +00:00
parent f870b674a1
commit 255d103389

View file

@ -1212,6 +1212,13 @@ function print_courses($category, $width="100%", $hidesitecourse = false) {
} }
} else { } else {
print_heading(get_string("nocoursesyet")); print_heading(get_string("nocoursesyet"));
if (iscreator()) { // Make it obvious for newbies on new sites how to add a course
$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>';
}
} }
} }