mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-42400 generator: module generators call add_moduleinfo instead of direct inserts
This commit is contained in:
parent
b4b7587294
commit
7fbe33fcf1
18 changed files with 194 additions and 409 deletions
|
@ -86,7 +86,8 @@ function add_moduleinfo($moduleinfo, $course, $mform = null) {
|
|||
print_error('cannotaddcoursemodule');
|
||||
}
|
||||
|
||||
if (plugin_supports('mod', $moduleinfo->modulename, FEATURE_MOD_INTRO, true)) {
|
||||
if (plugin_supports('mod', $moduleinfo->modulename, FEATURE_MOD_INTRO, true) &&
|
||||
isset($moduleinfo->introeditor)) {
|
||||
$introeditor = $moduleinfo->introeditor;
|
||||
unset($moduleinfo->introeditor);
|
||||
$moduleinfo->intro = $introeditor['text'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue