Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-30289 forum - set page context when pruning a discussion

  • Loading branch information...
commit 26303bd017f0e5a577e51d07e3b531c3cdb6c3cb 1 parent f28832d
@mackensen mackensen authored abgreeve committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  mod/forum/post.php
View
2  mod/forum/post.php
@@ -460,6 +460,8 @@
$course = $DB->get_record('course', array('id' => $forum->course));
+ $PAGE->set_cm($cm);
+ $PAGE->set_context($modcontext);
$PAGE->navbar->add(format_string($post->subject, true), new moodle_url('/mod/forum/discuss.php', array('d'=>$discussion->id)));
$PAGE->navbar->add(get_string("prune", "forum"));
$PAGE->set_title(format_string($discussion->name).": ".format_string($post->subject));
Please sign in to comment.
Something went wrong with that request. Please try again.