-
Notifications
You must be signed in to change notification settings - Fork 45
/
upgrade.txt
91 lines (78 loc) · 4.44 KB
/
upgrade.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
This files describes API changes in /mod/hsuforum/*,
information provided here is intended especially for developers.
=== 3.6 ===
* hsuforum_print_post should be surrounded with calls to hsuforum_print_post_start and hsuforum_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.
=== 3.3 ===
* External function get_forums_by_courses now returns and additional field "istracked" that indicates if the user
is tracking the related forum.
* The legacy forum.js file has been removed, this includes the js functions:
hsuforum_produce_subscribe_link, hsuforum_produce_tracking_link, lockoptions_timetoitems,
lockoptions_timefromitems, lockoptions, lockoption, unlockoption
* External function can_add_discussion now returns two additional fields:
"canpindiscussions" that indicates if the user can add pinned discussions.
"cancreateattachment" that indicates if the user can add attachments to the discussion.
=== 3.2 ===
* The setting $CFG->hsuforum_replytouser has been removed in favour of a centralized noreplyaddress setting.
Please use $CFG->noreplyaddress setting instead.
* The following functions have been finally deprecated and should no longer be used.
- hsuforum_count_unrated_posts
- hsuforum_tp_count_discussion_read_records
- hsuforum_get_user_discussions
- hsuforum_tp_count_forum_posts
- hsuforum_tp_count_forum_read_records
- hsuforum_get_open_modes
- hsuforum_get_child_posts
- hsuforum_get_discussion_posts
- hsuforum_get_ratings
- hsuforum_get_tracking_link
- hsuforum_tp_count_discussion_unread_posts
- hsuforum_convert_to_roles
- hsuforum_tp_get_read_records
- hsuforum_tp_get_discussion_read_records
- hsuforum_user_enrolled
- hsuforum_user_can_view_post
- hsuforum_shorten_post
- hsuforum_is_subscribed
- hsuforum_subscribe
- hsuforum_unsubscribe
- hsuforum_subscribed_users
- hsuforum_is_forcesubscribed
- hsuforum_forcesubscribe
- hsuforum_get_forcesubscribed
- hsuforum_get_subscribed_forums
- hsuforum_get_optional_subscribed_forums
- hsuforum_get_potential_subscribers
* External functions that were returning file information now return the following file fields:
filename, filepath, mimetype, filesize, timemodified and fileurl.
Those fields are now marked as VALUE_OPTIONAL for backwards compatibility.
=== 3.1 ===
* The inteface to hsuforum_get_email_message_id() has changed and no longer needs the $host argument.
=== 3.0 ===
* External function get_forums_by_courses now returns and additional field "cancreatediscussions" that indicates if the user
can create discussions in the forum.
* A new optional parameter (groupid) has been added to get_forum_discussions.
This parameter can override the automatically calculated current group.
* New constant HSUFORUM_POSTS_ALL_USER_GROUPS, to be used as parameter in functions where we'd need to retrieve all the user posts.
=== 2.7 ===
* All forum tracking options removed and tracking forced
* Manual marking of posts as read is now removed
* Old posts are automatically marked as read
=== 2.6 ===
* The file post_form.php should not be included, the class it contained has
been moved so that it can benefit from autoloading.
* The function hsuforum_shorten_post() has been deprecated. It was doing a poor
job of shortening forum post text and the shorten_text() function does a
much better job.
* The constant HSUFORUM_TRACKING_ON has been deprecated and replaced by
HSUFORUM_TRACKING_FORCED. The value between them is maintained, so they are
interchangeable, but code should migrate to the new name.
=== 2.5 ===
The function hsuforum_check_throttling has been changed so that a warning object is returned when a user has reached the 'Post threshold for warning' or
'Post threshold for blocking' setting, rather than echoing this on screen. This allows the warning to be moved inside the post form as it can be added
as a HTML element, where it is more noticeable. False is returned if there is no need to warn, or restrict the user from posting - see MDL-39182.
=== 2.3.5, 2.4.2 ===
* mod/hsuforum:allowforcesubscribe capability will be forcefully assigned to frontpage role, as it was mistakenly missed off
when the capability was initially created. If you don't want users with frontpage role to get forum (with forcesubscribe) emails,
then please remove this capability for frontpage role.