Skip to content

Commit

Permalink
MDL-15387 fixing regression spotted by John Beedell; merged from MOOD…
Browse files Browse the repository at this point in the history
…LE_19_STABLE
  • Loading branch information
skodak committed Jul 1, 2008
1 parent 373f0af commit 559c918
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mod/resource/type/html/resource.class.php
Expand Up @@ -50,6 +50,11 @@ function display() {
$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);
Expand All @@ -68,11 +73,6 @@ function display() {
/// 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);

Expand Down

0 comments on commit 559c918

Please sign in to comment.