mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
fixed notification
This commit is contained in:
parent
0bb69ab3ad
commit
11cd754ed0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user