Pass $modcontext down through the functions so that print_post is more efficient MDL-11606

This commit is contained in:
moodler 2007-10-05 07:26:02 +00:00
parent 2106444076
commit c15b86dc95
2 changed files with 45 additions and 29 deletions

View file

@ -119,6 +119,8 @@
error("Discussion no longer exists", "$CFG->wwwroot/mod/forum/view.php?f=$forum->id");
}
$post->modcontext = $modcontext;
if (forum_tp_can_track_forums($forum) && forum_tp_is_tracked($forum) &&
$CFG->forum_usermarksread) {
if ($mark == 'read') {