- 21 May, 2019 1 commit
-
-
Eloy Lafuente authored
-
- 19 May, 2019 11 commits
-
-
Eloy Lafuente authored
-
Eloy Lafuente authored
-
Eloy Lafuente authored
-
Eloy Lafuente authored
-
-
Eloy Lafuente authored
This commit mimics 100% the behavior achieved with the parent commit of this when using the advance option. 1) Rename the 'tohtml' option to 'topreferredformat' to better represent what it's doing. 2) Always honor the preferred format (this is a new post). 3) Only perform the conversion to HTML when the preferred format is HTML. That way any user, no matter thy are using format MOODLE (plain textbox), MARKDOWN (marklar editor) or HTML (atto and tinymce editor) will get always the format correct and the contents ready to be edited if desired. HTML ones converted to HTML and TEXT ones unmodified.
-
Eloy Lafuente authored
1) Always honor the preferred format (this is a new post). 2) Only perform the conversion to HTML when the preferred format is HTML. This way, users having HTML as format (because of their editor preference) will get the inline-reply converted to HTML and the editor displayed. And users not having HTML as format (because of their edito preference) will get the format set to their format (PLAIN, MOODLE or MARKDOWN) with the contents unmodified. Of course, if anybody is using a PLAIN, MOODLE or MARKDOWN editor... it will be displayed.
-
When a inline reply post is written and the user changes to the advanced edition, the post format has to be converted from FORMAT_MOODLE.
-
The messageformat and tohtml params have been added to the addDiscussionPost method to send the original format the contents are written and to force to convert them from "messageformat" to HTML.
-
Eloy Lafuente authored
While keeping BC as possible (format will be saved as FORMAT_HTML as default and content not modified), this commit includes these changes: - A new parameter 'messageformat', defaults to FORMAT_HTML. - A new option 'tohtml', enabling the function to convert content in other formats to FORMAT_HTML before saving them.
-
-
- 18 May, 2019 2 commits
-
-
Eloy Lafuente authored
Since the night of the times (MDL-16698) we have been performing that simple empty($post->messageformat) check to decide if the preferred editor format should be used, instead of any existing format. Problem is that FORMAT_MOODLE == 0, so the condition evaluates to to true and then the preferred editor takes the baton when it should not. Exiting format must win always! So this just makes the condition a little better, checking if the attribute is set and that it's numerical (accepting both n and 'n'). That covers the FORMAT_MOODLE case and any other valid format. Only if the conditions aren't met the preferred editor format takes the baton. Only then.
-
AMOS Bot authored
-
- 17 May, 2019 1 commit
-
-
AMOS Bot authored
-
- 16 May, 2019 11 commits
-
-
Eloy Lafuente authored
-
-
https://github.com/ryanwyllie/moodlejun authored
-
-
git://github.com/mihailges/moodlejun authored
-
Mihail Geshoski authored
-
git://github.com/peterRd/moodlejun authored
-
git://github.com/damyon/moodlejun authored
-
Ryan Wyllie authored
-
-
Amaia authored
Default notification preferences are not kept when a notification provider is disabled.
-
- 15 May, 2019 14 commits
-
-
-
Jake Dallimore authored
-
Jake Dallimore authored
Individual and self conversations may exist once only, so we need to enforce this in the creation method.
-
Jake Dallimore authored
These are now lazy created in the messaging APIs, so we don't need to create them on user creation any more.
-
Instead of creating all the self-conversations during the upgrading, some code has been added to the get_conversations and to the get_conversation_counts to create it whe it doesn't exist.
-
-
Peter authored
-
git://github.com/dmonllao/moodlejun authored
-
David Monllaó authored
-
git://github.com/damyon/moodlejun authored
-
git://github.com/lameze/moodlejun authored
-
https://github.com/ryanwyllie/moodlejun authored
-
Damyon Wiese authored
The ltiversion field only exists for some preconfigured tool types.
-
Ryan Wyllie authored
-