fixed notification

This commit is contained in:
Petr Skoda 2010-09-18 12:55:07 +00:00
parent 0bb69ab3ad
commit 11cd754ed0

View File

@ -2938,7 +2938,7 @@ function forum_get_course_forum($courseid, $type) {
$mod->instance = $forum->id;
$mod->section = 0;
if (! $mod->coursemodule = add_course_module($mod) ) { // assumes course/lib.php is loaded
echo $OUTPUT->notification("Could not add a new course module to the course '" . format_string($course->fullname) . "'");
echo $OUTPUT->notification("Could not add a new course module to the course '" . $courseid . "'");
return false;
}
if (! $sectionid = add_mod_to_section($mod) ) { // assumes course/lib.php is loaded