MDL-36547 do not use modinfo when creating new modules, improve coding style

This commit is contained in:
Petr Škoda
2012-11-17 09:05:29 +01:00
parent b4126b0c8b
commit 46453565f3
2 changed files with 14 additions and 7 deletions
+1
View File
@@ -83,6 +83,7 @@ abstract class phpunit_module_generator {
$modulename = $this->get_modulename();
$sectionnum = isset($options['section']) ? $options['section'] : 0;
unset($options['section']); // Prevent confusion, it would be overridden later in course_add_cm_to_section() anyway.
$cm = new stdClass();
$cm->course = $courseid;