mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixed forum_print_post. Thanks Yu :)
This commit is contained in:
parent
a21567892f
commit
87ca0adf00
@ -1762,7 +1762,7 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
|
||||
static $strmarkread, $strmarkunread, $istracked;
|
||||
|
||||
|
||||
$discussion = get_record('discussion', 'id', $post->discussion);
|
||||
$discussion = get_record('forum_discussions', 'id', $post->discussion);
|
||||
if (!$cm = get_coursemodule_from_instance('forum', $discussion->forum)) {
|
||||
error('Course Module ID was incorrect');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user