mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 23:42:11 +02:00
fix for MDL-9021, missing add_to_log() call
This commit is contained in:
parent
53b16b2b68
commit
65391c1aa3
@ -71,10 +71,13 @@ function display() {
|
||||
|
||||
$pagetitle = strip_tags($course->shortname.': '.format_string($resource->name));
|
||||
$inpopup = optional_param('inpopup', '', PARAM_BOOL);
|
||||
|
||||
// fix for MDL-9021, thanks Etienne Rozé
|
||||
add_to_log($course->id, "resource", "view", "view.php?id={$cm->id}", $resource->id, $cm->id);
|
||||
|
||||
if ($resource->popup) {
|
||||
if ($inpopup) { /// Popup only
|
||||
add_to_log($course->id, "resource", "view", "view.php?id={$cm->id}", $resource->id, $cm->id);
|
||||
|
||||
print_header();
|
||||
print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id),
|
||||
"center", "", "", "20");
|
||||
@ -107,7 +110,6 @@ function display() {
|
||||
}
|
||||
} else { /// not a popup at all
|
||||
|
||||
add_to_log($course->id, "resource", "view", "view.php?id={$cm->id}", $resource->id, $cm->id);
|
||||
print_header($pagetitle, $course->fullname, "$this->navigation ".format_string($resource->name),
|
||||
"", "", true, update_module_button($cm->id, $course->id, $this->strresource),
|
||||
navmenu($course, $cm));
|
||||
|
Loading…
x
Reference in New Issue
Block a user