Permalink
Browse files

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

  • Loading branch information...
1 parent cf04ce3 commit f6bbbbf33fa6430a75d080373d0b7691c69c9655 @mackensen mackensen committed with abgreeve Nov 16, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/forum/post.php
View
@@ -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));

0 comments on commit f6bbbbf

Please sign in to comment.