$formatoptions = new object();
$formatoptions->noclean = true;
+ // fix for MDL-9021, thanks Etienne Roz
+ // fix for MDL-15387, thanks to John Beedell
+ add_to_log($course->id, "resource", "view", "view.php?id={$cm->id}", $resource->id, $cm->id);
+
/// Are we displaying the course blocks?
if ($this->resource->options == 'showblocks') {
$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