Commit graph

92464 commits

Author SHA1 Message Date
Ryan Wyllie
2b92891a88 MDL-64348 javascript: change template loading to also load dependencies
Changed the getTemplate function in templates.js to use the
core_output_load_template_with_dependencies function to load the
requested template and all of the dependencies required to render it.

The dependencies are added to the relevant caches so that when the
template is rendered they aren't re-requested from the server.
2019-01-07 09:03:06 +08:00
Ryan Wyllie
fbbed5c603 MDL-64348 javascript: add cache_strings to str.js
Added a function to allow a set of strings to be added to the
str.js caches if they've been loaded outside of that module.
2019-01-07 09:03:06 +08:00
Ryan Wyllie
e0034b5da6 MDL-64348 template: add load_template_with_dependencies external func 2019-01-07 09:03:06 +08:00
Dmitrii Metelkin
d00f04fd53 MDL-63623 admin_cli: add a script to uninstall plugins 2019-01-07 10:58:30 +11:00
David Bogner
8b9fc06993 MDL-57636 frontpage: Fix display enrolled courses 2019-01-04 11:18:47 +01:00
Ryan Wyllie
0664130b88 MDL-64348 templates: add mustache_template_source_loader class 2019-01-04 15:38:27 +08:00
Ryan Wyllie
dc10aa06d9 MDL-64166 message: reduce size of conversation counts in overview 2019-01-04 12:12:54 +08:00
Ryan Wyllie
13d09efb8e MDL-64144 message: show message date in message search results 2019-01-04 11:43:04 +08:00
Damyon Wiese
9a4c6a245c MDL-64375 gradingform_rubric: Styles for overflow
Allow people to define lots of levels, and make the scroll region just the rubric table,
not the entire content region.
2019-01-04 08:44:10 +08:00
sam marshall
fc570e6699 MDL-64497 GDPR: moodle_content_writer can cause endless loop
Fixes a buggy function by replacing it with a call to file_get_contents,
and adds error detection on a couple of file accesses.
2019-01-03 16:54:38 +00:00
Jake Dallimore
87bf7fa912 Merge branch 'MDL-49651-master' of git://github.com/Chocolate-lightning/moodle 2019-01-03 10:45:07 +08:00
Peter
bcb6549edb MDL-64486 mod_glossary: Add missing separator for special links 2019-01-03 08:33:59 +08:00
Eloy Lafuente (stronk7)
a12207be25 MDL-63276 upgrade: clean < 3.2.0 upgrade steps
3.7 (min PHP 7.1) requires 3.2 (first version supporting PHP 7.1)

This just deletes all the upgrade steps previous to 3.2.0. Some
small adjustments, like adding missing MOODLE_INTERNAL or tweaking
globals can also be applied when needed.

Also includes an upgrade step to prevent upgrading from any
version < 2016120500 (v3.2.0) as anti-cheating measure.

Next commit will get rid of/deprecate all the upgradelib functions
not used anymore in codebase. (note there isn't any this time).
2019-01-03 01:17:17 +01:00
Eloy Lafuente (stronk7)
f580d20adf MDL-63276 travis support: Bump to PHP 7.1 required 2019-01-03 01:17:17 +01:00
Eloy Lafuente (stronk7)
422947e070 MDL-63276 install: PHP min version checker bump to PHP 7.1 2019-01-03 01:17:17 +01:00
Eloy Lafuente (stronk7)
504d1a9cc0 MDL-63276 environment: PHP 7.1 and Moodle 3.2 required 2019-01-03 01:12:50 +01:00
Jake Dallimore
a3a6e3c905 MDL-64412 core_message: remove ordering code from message_search_users()
This code is no longer needed as get_member_info() now respects the
ordering of the $userids param.
2019-01-02 15:21:07 +08:00
Jake Dallimore
9e6734a790 MDL-64412 core_message: get_member_info() respects provided ordering
This change makes sure the function returns the member information in
the same order as those users provided in the $userids param.
2019-01-02 15:21:06 +08:00
Peter
538603b200 MDL-63148 mod_scorm: Accept userid param in event action
* Update lib scorm functions to accept and use a passed in userid
* Additional phpunit tests
2019-01-02 14:32:59 +08:00
Michael Hawkins
341070d5b3 MDL-62968 Boost: Adding editor SCSS support 2019-01-02 13:35:19 +08:00
Damyon Wiese
091365330a MDL-63761 grade: Performance fix for regrading
Don't use a separate variable to count the number of items in finalids.
2019-01-02 10:23:20 +08:00
Dan Marsden
1240b3f2e7 MDL-64237 mod_scorm: Remove large unused index from scorm_scoes_track 2018-12-31 12:46:56 +13:00
Eloy Lafuente (stronk7)
f37f00be53 MDL-63276 environment: 3.7 base information
This is a direct copy of the 3.6 branch to
have changes under control easier in next commits.
2018-12-30 18:05:30 +01:00
Jun Pataleta
e2b812fc40 MDL-64474 auth_oauth2: Properly update user profile data
* Updating of user profile data from OAuth2 issuer should only be
performed for fields that can be synced externally (fields defined in
\auth_plugin_base::$userfields)
* Only update user profile data for users which use OAuth2 as their
default authentication mechanism.
2018-12-28 16:52:37 +08:00
Amaia Anabitarte
0f38e62970 MDL-64400 core_messages: Mark notifications sent via email as read 2018-12-27 09:15:53 +01:00
Amaia Anabitarte
57afd82ab0 MDL-64400 core_messages: Allow cron to delete unread notifications too 2018-12-27 09:15:53 +01:00
Mathew
0dbe9025b5 MDL-24951 mod_forum: Check user capability to know what message to show.
If the user has the following capabilty: mod/forum:canposttomygroups then show them
the more technical of the strings. Otherwise we use something a bit easier for them to ask their
tutor or teacher about.
2018-12-24 09:15:34 +08:00
Mathew
299dc536aa MDL-49651 mod_forum: Respect course visibility in cron
This checks the courses' current visibility and the users permissions.
If they have the permission to view the course when it is hidden they'll get messages.

We already have checks for the users enrolled & subscription status.
2018-12-24 09:11:15 +08:00
Gareth Barnard
fc9ce45cca MDL-64432 theme_bootstrapbase: Favourites myoverview icon tooltip. 2018-12-21 11:34:42 +00:00
Sara Arjona
706c8d1936 MDL-64441 badges: Remove notice when language is empty 2018-12-20 16:20:05 +01:00
Eloy Lafuente (stronk7)
91165842db MDL-64409 behat: Update master to use 3.37.0 behat extension tag 2018-12-20 12:28:17 +01:00
Adrian Greeve
38a1b4f203 weekly release 3.7dev 2018-12-20 11:09:10 +01:00
Adrian Greeve
c10e9970e1 NOBUG: Fixed SVG browser compatibility 2018-12-20 11:09:08 +01:00
Adrian Greeve
03573e1a58 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-12-20 11:09:07 +01:00
Andrew Nicols
13bd9babb4 Merge branch 'MDL-64038-master' of git://github.com/bmbrands/moodle 2018-12-20 13:53:51 +08:00
Andrew Nicols
4617420250 Merge branch 'MDL-63512-master' of git://github.com/peterRd/moodle 2018-12-20 13:03:31 +08:00
Peter
94dafd0c06 MDL-63512 mod_lesson: Update the lesson css to exclude mediaplugin div 2018-12-20 12:49:10 +08:00
Andrew Nicols
bf197c166c Merge branch 'MDL-62223-master' of git://github.com/Kathrin84/moodle 2018-12-20 11:32:50 +08:00
Andrew Nicols
116b7c089a MDL-58855 glossary: Remove behat logout line 2018-12-20 10:27:57 +08:00
Andrew Nicols
1cd08af7f4 Merge branch 'MDL-58855-master' of git://github.com/peterRd/moodle 2018-12-20 10:26:24 +08:00
Mark Johnson
7672471236 MDL-64123 webservices: Add valueused to completion data 2018-12-19 16:26:35 +00:00
Stephen Bourget
3e42942d73 MDL-63614 badges: Add COMPLETION_FAIL support to badge criteria 2018-12-19 10:16:51 -05:00
Adrian Greeve
21fc1b9682 Merge branch 'MDL-64392-master' of git://github.com/bmbrands/moodle 2018-12-19 12:02:43 +01:00
Jun Pataleta
43db4e9c56 Merge branch 'MDL-61767-master' of git://github.com/andrewnicols/moodle 2018-12-19 18:36:21 +08:00
Andrew Nicols
c9f2a8c2cf MDL-61767 auth_oauth: Reduce updated fields 2018-12-19 18:15:39 +08:00
Adrian Greeve
7f1fd5000d Merge branch 'MDL-59954-master' of git://github.com/peterRd/moodle 2018-12-19 10:51:42 +01:00
Shamim Rezaie
b6ece79d81 MDL-63722 javascript: misinterpret as outside click if DOM is modified 2018-12-19 16:01:09 +11:00
Jake Dallimore
57e94e365e Merge branch 'MDL-64229_master' of git://github.com/markn86/moodle 2018-12-19 11:37:15 +08:00
Peter
c8b67bee88 MDL-58855 mod_glossary: Add pending approval identifier glossary
Add a new label to indicate whether a tagged glossary item is pending approval or not
2018-12-19 11:30:27 +08:00
Jake Dallimore
a2f6288fa1 Merge branch 'MDL-64216-m' of https://github.com/micaherne/moodle 2018-12-19 11:07:41 +08:00