mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Save coursemodule in logs for generic updates/adds
This commit is contained in:
parent
ed68c6db3d
commit
573eae5aa7
1 changed files with 4 additions and 4 deletions
|
@ -58,10 +58,10 @@
|
|||
}
|
||||
add_to_log($mod->course, "course", "update mod",
|
||||
"../mod/$mod->modulename/view.php?id=$mod->coursemodule",
|
||||
"$mod->modulename $mod->instance");
|
||||
"$mod->modulename $mod->instance", $mod->coursemodule);
|
||||
add_to_log($mod->course, $mod->modulename, "update",
|
||||
"view.php?id=$mod->coursemodule",
|
||||
"$mod->instance");
|
||||
"$mod->instance", $mod->coursemodule);
|
||||
break;
|
||||
|
||||
case "add":
|
||||
|
@ -99,10 +99,10 @@
|
|||
}
|
||||
add_to_log($mod->course, "course", "add mod",
|
||||
"../mod/$mod->modulename/view.php?id=$mod->coursemodule",
|
||||
"$mod->modulename $mod->instance");
|
||||
"$mod->modulename $mod->instance", $mod->coursemodule);
|
||||
add_to_log($mod->course, $mod->modulename, "add",
|
||||
"view.php?id=$mod->coursemodule",
|
||||
"$mod->instance");
|
||||
"$mod->instance", $mod->coursemodule);
|
||||
break;
|
||||
case "delete":
|
||||
if (! $deleteinstancefunction($mod->instance)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue