Commit graph

3642 commits

Author SHA1 Message Date
Michael Hawkins
b6995c29ec MDL-64240 mod_forum: Update word count to use current message length
Previously this used the length of the message stored in the database,
before scripts etc are cleaned to display the content. That resulted
in cases where the count would seem much larger than the message size.
2018-12-18 14:10:43 +08:00
Tim Hunt
939218c2b6 MDL-46783 permissions: let some moodle/ caps be overriden in all mods
The capabilities changed ('contextlevel' => CONTEXT_COURSE changed to
'contextlevel' => CONTEXT_MODULE) are:

* moodle/site:accessallgroups
* moodle/site:viewfullnames
* moodle/site:trustcontent
* moodle/site:viewuseridentity

This list came from reviewing the _get_extra_capabilities functions in
all core activities. They were all somewhat inconsistent, but I think it
makes sense that these capabilities are consistently overridable in all
activities. E.g. moodle/site:accessallgroups affects conditional
availability even if there is no other user of groups, and
moodle/site:viewuseridentity and moodle/site:viewfullnames affect the
logs report, if nothing else.

As a result of this, several _get_extra_capabilities functions are no
longer needed, and all the rest have been simplified.
2018-12-05 16:44:25 +00:00
Eloy Lafuente (stronk7)
f47c8f3525 MDL-64300 upgrade: add 3.6.0 separation line to all upgrade scripts 2018-12-02 18:36:40 +01:00
Eloy Lafuente (stronk7)
085353b315 MDL-64282 versions: bump all versions and requires near release
version = 2018120300 release version
requires= 2018112800 current rc2 (week7roll1) version
2018-11-29 18:24:08 +01:00
Andrew Nicols
4ba4bc9acd MDL-53566 mod_forum: Correct captype for writeable capabilities 2018-11-13 21:17:40 +08:00
Eloy Lafuente (stronk7)
bd5fdcfccd MDL-63422 general: review core loop / switch / case / continue
This commit reviews all continue uses in core happening within a
loop / switch / case hierarchy. This does not cover:

- Changes to libraries. Will be handled in another issue / commit.
- Uses out from loops, will be reviewed by other commit.

The policy followed has been:
- When possible, take rid of the continue.
- When clearly the intention was to jump to next element in loop
  change to continue 2
- When it was not clear, keep old behavior switching to break, no
  matter how weird the behavior may be.
2018-10-31 00:17:59 +01:00
Helen Foster
0c19b2c8fa MDL-63730 lang: Merge English strings from the en_fix language pack
Significant string changes:

* withselectedusers_help, core - removing mention of 'Add a common note'
  as the option no longer exists
* considereddigitalminor and digitalminor_desc, core - more
  child-friendly wording
* configmessagingallusers, core_admin - clearer explanation
* auth_dbtype, auth_db - fixed broken link
2018-10-26 12:48:40 +02:00
David Monllao
72e72dd93f Merge branch 'MDL-61391-master' of git://github.com/damyon/moodle 2018-10-22 16:50:47 +02:00
David Monllao
64a00dffbd Merge branch 'MDL-61388-master' of git://github.com/damyon/moodle 2018-10-22 16:48:56 +02:00
David Monllao
f7642bebc5 Merge branch 'MDL-62560-master' 2018-10-22 12:52:58 +02:00
Damyon Wiese
934ee47b0d MDL-61391 forum: Improve semantics for permalinks
Replace the anchor tags in forum posts containing the postid but no href with
an id on the element containing the post. Use rel="bookmark" for perma links
and update the styling so they look visually the same.
2018-10-22 10:55:32 +08:00
Damyon Wiese
9f83272207 MDL-61388 forum: accessibility
Show success alert to confirm the last action.
2018-10-22 10:53:32 +08:00
Andrew Nicols
7148f47f56 MDL-63632 forum: Delete where not discussion author 2018-10-18 07:20:29 +08:00
Andrew Nicols
8c3124cef0 MDL-63495 mod_forum: Add intial support for removal of multiple context users
This issue is a part of the MDL-62560 Epic.
2018-10-17 13:12:18 +08:00
Damyon Wiese
2015327b28 MDL-61378 forum: Upgrade notes
Tell developers to correctly nest calls to forum_print_post
2018-10-09 09:35:02 +08:00
Damyon Wiese
1bf3a76a59 MDL-61378 forum: Standardize HTML output for posts
Improve the format of the HTML representing a forum post.

1. Use <article> tag to mark it correctly.
2. Use <time> tag to include the real datetime information.
3. Use <address> tag to specify who and when the post came from.
4. Use heading level tags to mark the subject of each post.
5. Properly nest reply posts within their parent <article>
6. Use a header tab for each article to split the metadata from the content.
7. Use CSS to separate links, not text content.

Because posts are now nested properly, the heading for each one refers to it's own article
and we don't need to generate arbitrary heading level tags depending on how deep the post
is nested.
2018-10-09 09:34:57 +08:00
Andrew Nicols
94df729b92 MDL-35788 mod_forum: Move post creation fetch 2018-10-04 11:15:17 +08:00
Andrew Nicols
424920f8fb MDL-35788 forum: Show post creation time not modified 2018-10-01 08:16:42 +08:00
David Monllao
9d4c8d45ef Merge branch 'MDL-62717-master' of https://github.com/lucaboesch/moodle 2018-09-25 12:18:36 +02:00
Jonathan Champ
b2f349a433 MDL-54035 accesslib: separate role definition cache clear
Thanks to MDL-49398, we can separate the combined user session and role
definition cache clearing function into two separate functions. At the
same time, we want to identify and remove mark_dirty() calls that were
added for role definition changes but were incorrectly left behind.

Change highlights:
 - Remove unnecessary mark_dirty() calls performed after
   assign_capability(), unassign_capability(), delete_role(),
   deleted contexts, brand new contexts
 - Move role definition cache clear from the user-centric
   accesslib_clear_all_caches() to the newly created,
   role-dedicated accesslib_reset_role_cache()
2018-09-21 09:17:42 -04:00
Luca Bösch
490476a118 MDL-62717 forum: Create announcements forum with HTML format intro. 2018-09-20 17:47:35 +02:00
Shamim Rezaie
46b29219e3 MDL-63139 mod_forum: Check if the module is visible to the user 2018-09-07 16:55:19 +10:00
Shamim Rezaie
d46da4aadc MDL-63139 mod_forum: Add userid param to mod_forum calendar callbacks 2018-09-07 16:47:56 +10:00
Víctor Déniz Falcón
02fda279ed MDL-57281 behat: deprecated step definition I navigate to node in
Definition step deprecated and affected tests modified.
2018-08-20 12:53:26 +01:00
Andrew Nicols
7fa3089753 MDL-36754 mod_forum: Use token for emailed pictures 2018-08-14 07:08:29 +08:00
Adrian Greeve
5454e72c21 MDL-55188 events: First deprecation of eventslib.php 2018-07-30 09:23:54 +08:00
Eloy Lafuente (stronk7)
e270bf92a1 Merge branch 'MDL-62771-master_move_plag_disclosure' of https://github.com/jmcgettrick/moodle 2018-07-26 00:34:37 +02:00
Luca Bösch
5cb24d2299 MDL-45389 theme_bootstrapbase: Forum index page alignment in clean. 2018-07-13 09:26:47 +02:00
David Monllao
2a021ac3a0 Merge branch 'MDL-62618-master' of git://github.com/mickhawkins/moodle 2018-07-11 18:47:57 +02:00
John McGettrick
707dfd0c39 MDL-62771 mod_forum: Reformat for modern coding style 2018-07-06 09:32:14 +01:00
John McGettrick
f3bf0ed5fc MDL-62771 mod_forum: Fix to move print_disclosure 2018-07-06 09:30:34 +01:00
Michael Hawkins
26cee43786 MDL-62618 forum: Made full names displayed consistent 2018-07-05 10:03:18 +08:00
Helen Foster
9722f6a25e MDL-62763 lang: Merge English strings from the en_fix language pack
Significant string changes:

* various strings in tool_dataprivacy and tool_policy - 'Data Protection
  Officer' changed to 'privacy officer'
* idnumbermod_help,core - mentioning resource and custom reporting
2018-07-02 11:15:26 +02:00
Mark Nelson
4626c848c2 MDL-62571 mod_forum: fixed redirection URLs 2018-06-11 18:29:58 +08:00
Jun Pataleta
d585953dfe Merge branch 'MDL-62586-master' of git://github.com/bmbrands/moodle 2018-06-06 11:16:28 +02:00
Bas Brands
b1a74e40ff MDL-62586 Themes: use Boostrap media compontent for author display 2018-05-29 09:27:04 +02:00
Eloy Lafuente (stronk7)
00977e984e MDL-62478 upgrade: add 3.5.0 separation line to all upgrade scripts 2018-05-28 13:15:48 +02:00
Andrew Nicols
407f5d053c MDL-62543 mod_forum: Add RSS Unit tests 2018-05-28 08:53:45 +08:00
Andrew Nicols
daad84d150 Merge branch 'MDL-62543-master' of git://github.com/tobiasreischmann/moodle 2018-05-28 08:53:41 +08:00
Tobias Reischmann
82b50d3187
MDL-62543 forum: Switched the usage of the deleted flag for rss
The deleted flag was introduced through the Privacy API and was used
for post selection for the rss feed. In there it was used in the
wrong way, which lead to the exclusion of all non deleted posts instead
of excluding all deleted ones.
This commit fixes this problem.
2018-05-23 14:05:28 +02:00
Andrew Nicols
630081dd91 MDL-62516 mod_forum: Only delete files for requested user 2018-05-21 14:12:17 +08:00
Marina Glancy
d1620c57f9 MDL-62147 privacy: corrections to tables, temporary tables 2018-05-16 12:57:19 +08:00
Marina Glancy
3960ad53a7 MDL-62430 privacy: validate context when deleting all user data 2018-05-14 18:13:27 +08:00
David Monllao
782b242ccb Merge branch 'MDL-61309-master' of git://github.com/andrewnicols/moodle 2018-05-10 08:46:32 +02:00
Andrew Nicols
f662082974 MDL-61309 mod_forum: Improve privacy query performance 2018-05-10 14:05:53 +08:00
Eloy Lafuente (stronk7)
c3da16f13d Merge branch 'MDL-61309-master' of git://github.com/andrewnicols/moodle 2018-05-10 09:17:31 +08:00
David Monllao
99a080f12a Merge branch 'MDL-62361' of git://github.com/stronk7/moodle 2018-05-10 09:17:25 +08:00
David Monllao
f60b216de0 Merge branch 'MDL-61309-master' of git://github.com/andrewnicols/moodle 2018-05-10 09:15:57 +08:00
Brendan Cox
d8609cb545 MDL-62232 mod_forum: Additional tests for portfolio file export 2018-05-10 09:15:57 +08:00
Adam Olley
5b89ff626d MDL-62232 mod_forum: Limit portfolio to files belonging to the post 2018-05-10 09:15:57 +08:00