mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Replace the add course button that somehow disappeared from 1.5
This commit is contained in:
parent
f870b674a1
commit
255d103389
1 changed files with 7 additions and 0 deletions
|
@ -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>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue