mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Pass $modcontext down through the functions so that print_post is more efficient MDL-11606
This commit is contained in:
parent
2106444076
commit
c15b86dc95
2 changed files with 45 additions and 29 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue