mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-58138 completion: Assorted linting fixes.
Part of MDL-58138 epic
This commit is contained in:
parent
8db355c58f
commit
b17ee68202
8 changed files with 68 additions and 39 deletions
|
@ -560,8 +560,7 @@ class dndupload_ajax_processor {
|
|||
protected function create_course_module() {
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot.'/course/modlib.php');
|
||||
list($module, $context, $cw, $cm, $data) =
|
||||
prepare_new_moduleinfo_data($this->course, $this->module->name, $this->section);
|
||||
list($module, $context, $cw, $cm, $data) = prepare_new_moduleinfo_data($this->course, $this->module->name, $this->section);
|
||||
|
||||
$data->coursemodule = $data->id = add_course_module($data);
|
||||
$this->cm = $data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue