From: moodler Date: Mon, 10 Apr 2006 15:41:57 +0000 (+0000) Subject: Replace the add course button that somehow disappeared from 1.5 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=255d10338985b539ee1bad43dfc8b40cf58488c0;p=moodle.git Replace the add course button that somehow disappeared from 1.5 --- diff --git a/course/lib.php b/course/lib.php index 7710092c6b..24c26992e6 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1212,6 +1212,13 @@ function print_courses($category, $width="100%", $hidesitecourse = false) { } } else { 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 '
'; + print_single_button($CFG->wwwroot.'/course/edit.php', $options, get_string("addnewcourse")); + echo '
'; + } } }