MDL-61378 forum: Upgrade notes

Tell developers to correctly nest calls to forum_print_post
This commit is contained in:
Damyon Wiese 2018-10-08 08:51:57 +08:00
parent 1bf3a76a59
commit 2015327b28
2 changed files with 7 additions and 0 deletions

View File

@ -3191,6 +3191,10 @@ function forum_print_post_end($post, $return = false) {
/**
* Print a forum post
* This function should always be surrounded with calls to forum_print_post_start
* and forum_print_post_end to create the surrounding container for the post.
* Replies can be nested before forum_print_post_end and should reflect the structure of
* thread.
*
* @global object
* @global object

View File

@ -1,6 +1,9 @@
This files describes API changes in /mod/forum/*,
information provided here is intended especially for developers.
=== 3.6 ===
* forum_print_post should be surrounded with calls to forum_print_post_start and forum_print_post_end to create the proper HTML structure for the post.
=== 3.4 ===
* External function get_forum_discussion_posts now returns an additional field "ratinginfo" containing rating information.