$formatoptions = new object();
$formatoptions->noclean = true;
+ /// Set up some shorthand variables
+ $cm = $this->cm;
+ $course = $this->course;
+ $resource = $this->resource;
+
// 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);
/// Set up generic stuff first, including checking for access
parent::display();
- /// Set up some shorthand variables
- $cm = $this->cm;
- $course = $this->course;
- $resource = $this->resource;
-
$pagetitle = strip_tags($course->shortname.': '.format_string($resource->name));
$inpopup = optional_param('inpopup', '', PARAM_BOOL);