Project: moodle
Issue MDL-40912: Replace add_to_log with an event trigger - course category
Replace the add_to_log calls for the following area, with a call to the get_legacy_logdata function in the event class. *category* /lib/coursecatlib.php:381: add_to_log(SITEID, "category", 'add', "editcategory.php?id=$newcategory->id", $newcategory->id); /lib/coursecatlib.php:475: add_to_log(SITEID, "category", 'update', "editcategory.php?id=$this->id", $this->id); /lib/coursecatlib.php:1514: add_to_log(SITEID, "category", "move", "editcategory.php?id=$childcat->id", $childcat->id); /lib/coursecatlib.php:1672: add_to_log(SITEID, "category", "move", "editcategory.php?id=$this->id", $this->id); /lib/coursecatlib.php:1737: add_to_log(SITEID, "category", "hide", "editcategory.php?id=$this->id", $this->id); /lib/coursecatlib.php:1790: add_to_log(SITEID, "category", "show", "editcategory.php?id=$this->id", $this->id); /course/manage.php:187: add_to_log(SITEID, "category", "move", "editcategory.php?id=$movecategory->id", $movecategory->id);
Story points: 20