mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-40063 mod_quiz: replaced 'addcategory' add_to_log call with an event
This commit is contained in:
parent
5e8f736565
commit
58940b190a
5 changed files with 167 additions and 3 deletions
|
@ -89,10 +89,8 @@ if ($data = $mform->get_data()) {
|
|||
list($parentid, $contextid) = explode(',', $data->parent);
|
||||
$categoryid = $qcobject->add_category($data->parent, $data->name, '', true);
|
||||
$includesubcategories = 0;
|
||||
add_to_log($quiz->course, 'quiz', 'addcategory',
|
||||
'view.php?id=' . $cm->id, $categoryid, $cm->id);
|
||||
$returnurl->param('cat', $categoryid . ',' . $contextid);
|
||||
|
||||
$returnurl->param('cat', $categoryid . ',' . $contextid);
|
||||
} else {
|
||||
throw new coding_exception(
|
||||
'It seems a form was submitted without any button being pressed???');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue