Skip to content

Commit

Permalink
Update CategoryImport.php
Browse files Browse the repository at this point in the history
Functions responsible for managing and accessing course categories are moved to class coursecat in lib/coursecatlib.php, functions responsible for rendering courses and categories lists are moved to course/renderer.php
  • Loading branch information
ycordelpro authored and tmuras committed Nov 19, 2021
1 parent dd80946 commit acd1cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Moosh/Command/Moodle39/Category/CategoryImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public function execute()
public function create_category($category)
{
global $CFG;
require_once $CFG->libdir . '/coursecatlib.php';
return \coursecat::create($category);
require_once $CFG->dirroot . '/course/renderer.php';
return \core_course_category::create($category);
}

public function start_element($parser, $name, $attrs)
Expand Down

0 comments on commit acd1cbf

Please sign in to comment.