From 255d10338985b539ee1bad43dfc8b40cf58488c0 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 10 Apr 2006 15:41:57 +0000 Subject: [PATCH] Replace the add course button that somehow disappeared from 1.5 --- course/lib.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 '
'; + } } } -- 2.39.5