27181 Commits

Author SHA1 Message Date
Amaia Anabitarte
f2a9bb6edb MDL-68526 core_contentbank: Delete content when a course is deleted
Or when a course category is moved/deleted
2020-05-18 16:05:04 +02:00
Jun Pataleta
8a34d36b56 Merge branch 'MDL-52846' of git://github.com/stronk7/moodle 2020-05-15 11:58:39 +08:00
Andrew Nicols
bef1d08531 Merge branch 'MDL-66917' of https://github.com/paulholden/moodle 2020-05-15 10:54:15 +08:00
Andrew Nicols
60c3c08f6e MDL-67689 core: Whitespace fix 2020-05-15 10:36:55 +08:00
Andrew Nicols
fdae08b8e9 Merge branch 'MDL-67689-master' of git://github.com/bmbrands/moodle 2020-05-15 10:36:54 +08:00
Andrew Nicols
362086b9b2 MDL-67990 antivirus_clamav: Typo fix 2020-05-15 10:36:01 +08:00
Andrew Nicols
0817d6ccf3 Merge branch 'MDL-67990' of https://github.com/OdyX/moodle 2020-05-15 08:56:10 +08:00
Eloy Lafuente (stronk7)
036b1beb49 Merge branch 'MDL-68677-master' of git://github.com/andrewnicols/moodle 2020-05-15 01:58:41 +02:00
Eloy Lafuente (stronk7)
9eb1b08f07 Merge branch 'MDL-68645-master-earlyoutputinit' of git://github.com/mudrd8mz/moodle 2020-05-14 16:35:35 +02:00
Sara Arjona
ccc7a30b3e Merge branch 'MDL-68200-master-take2' of git://github.com/rezaies/moodle 2020-05-14 13:10:01 +02:00
Sara Arjona
85e7049103 Merge branch 'MDL-68246-master-IR-squashed' of git://github.com/mickhawkins/moodle 2020-05-14 12:31:29 +02:00
Michael Hawkins
44e47eff9a MDL-68246 lib: Prepare for participants filter multiple groups support
These function updates are in preparation for the participants_search
class, which will be used to support multiple values per filter when
filtering the participants page.
2020-05-14 15:47:52 +08:00
Michael Hawkins
036b7cda10 MDL-68246 lib: Grouplib coding standards and consistency improvements 2020-05-14 15:47:34 +08:00
Adrian Greeve
b75a184312 Merge branch 'MDL-68498-master' of git://github.com/mihailges/moodle 2020-05-14 14:13:55 +08:00
Andrew Nicols
84d8b45fdf MDL-68677 core: Enable prefetching when cachejs is disabled
With the templaterev issue resolved we should enable the prefetch module
when cachejs is enabled to avoid a different experience when cachejs is
enabled vs. disabled.

Previously there was little point in doing this due to a range of other
bugs (string normalisation, and misuse of templaterev).

With these issues resolved we should enabel the caching.
2020-05-14 14:10:55 +08:00
Andrew Nicols
b9dec51ab4 MDL-68677 core: Correct usage of templaterev for caching templates
The M.cfg.templaterev variable should only be used to present persistent
caching, not caching of content within the same page load.

Preventing caching of same-page content makes it difficult to develop
for real user experiences as content is slow to load and does not give a
realistic and consistent loading experience.

This change affects the loading of partials specifically which notably
includes the loading spinner. Without this patch the loading icon is
often not seen at all because it does not load in a timely fashion and
the content being loaded is loaded first.
2020-05-14 14:10:55 +08:00
David Mudrák
866ce1fbe9 MDL-68645 output: Make other generators fail if they init the output too
Identically to what we've added to the module generators, let's raise a
coding exception if generating a block or a repository triggers the
theme and output initialisation.
2020-05-14 07:55:19 +02:00
Jun Pataleta
2a202f3b97 Merge branch 'MDL-68529' of https://github.com/Chocolate-lightning/moodle 2020-05-14 12:51:35 +08:00
Jun Pataleta
9c09ec41d6 Merge branch 'MDL-68483-master' of git://github.com/sarjona/moodle 2020-05-13 19:33:37 +08:00
Tim Hunt
f883c681ff MDL-68645 output: Make module generators fail if they init the output
The coding exception hint should say it all. Creating an activity module
should not need any output function call. It turned out it can lead to
hard-to-debug bugs and unexpected behaviour. So better to explicitly
fail and let the developer fix the code.
2020-05-13 10:03:01 +02:00
Mihail Geshoski
f915dcbe1a MDL-68498 core: Fix content bank links in the navigation drawer 2020-05-13 09:26:18 +08:00
Jake Dallimore
1516b80752 Merge branch 'MDL-68631' of https://github.com/jonof/moodle 2020-05-13 09:24:30 +08:00
Mihail Geshoski
cd1a878774 MDL-68498 core: Display content bank icon in nav drawer in classic theme 2020-05-13 08:42:46 +08:00
Eloy Lafuente (stronk7)
de185f1c2b Merge branch 'MDL-68417-master' of git://github.com/lameze/moodle 2020-05-12 23:20:21 +02:00
Eloy Lafuente (stronk7)
d2ecc75e2f MDL-52846 tasks: complete docs and move functions to deprecatedlib
- Add MDL codes to @deprecated.
- Add @todo tag for future 4.3 phase 2 deprecation.
- Deprecate global scope functions:
  - cron_execute_plugin_type().
  - cron_bc_hack_plugin_functions().
  (moving them to deprecatelib).
- Document it in main upgrade.txt
2020-05-12 17:41:13 +02:00
Ankit Agarwal
3bdb8f4584 MDL-52846 tasks: Display developer notice for legacy cron 2020-05-12 17:38:08 +02:00
Amaia Anabitarte
ce1fe72dbd MDL-68483 contentbank: adapt to existing behat generator 2020-05-12 16:50:46 +02:00
Simey Lameze
d717918c87 MDL-68417 core_table: add some css styling to loading icon 2020-05-12 21:44:42 +08:00
Mathew May
f2d033a2bb MDL-68529 course: Refactor chooser to include loading 2020-05-12 16:59:54 +08:00
Shamim Rezaie
a30bb16ef2 MDL-68200 core: Fix phpdoc for the external return functions 2020-05-12 15:13:01 +10:00
Shamim Rezaie
1ba5f0f410 MDL-68200 core: Fix datetime format
date.toISOString() prints out the seconds as well.
Current code supports most valid values for the datetime attribute
2020-05-12 15:13:01 +10:00
Shamim Rezaie
31d401aaa0 MDL-68200 mod_forum: fix invalid format of the time tag on modern view 2020-05-12 15:13:01 +10:00
Jun Pataleta
26b2982ba0 MDL-68200 core: Add new time_element template 2020-05-12 10:59:02 +10:00
Jun Pataleta
e21252b309 MDL-68200 core: Support fixday/hour for core/user_date's get() method 2020-05-12 10:59:02 +10:00
Jun Pataleta
558470e7c1 MDL-68200 core: Support fixday/hour for core_external::get_user_dates() 2020-05-12 10:59:02 +10:00
Shamim Rezaie
127f69d3fe MDL-68200 core: Add calendartype param to user_date.loadDatesFromServer 2020-05-12 10:59:02 +10:00
Shamim Rezaie
4f9bcde969 MDL-68200 core: Add type param to core_get_user_dates external function 2020-05-12 10:59:02 +10:00
Simey Lameze
eebe3ca611 MDL-68417 core_table: add spinner to dynamic table 2020-05-12 06:58:06 +08:00
Eloy Lafuente (stronk7)
a417c31b2e Merge branch 'MDL-68579-master' of git://github.com/cescobedo/moodle 2020-05-11 23:13:45 +02:00
Eloy Lafuente (stronk7)
5879d1773d Merge branch 'MDL-68276-replace-logs' of https://github.com/brendanheywood/moodle 2020-05-11 23:10:49 +02:00
Jun Pataleta
6165110f0a Merge branch 'MDL-66109-master' of git://github.com/andrewnicols/moodle 2020-05-12 00:03:19 +08:00
Jun Pataleta
d1735204c0 Merge branch 'MDL-63580-master' of git://github.com/cescobedo/moodle 2020-05-11 22:32:34 +08:00
cescobedo
db15746c2d MDL-63580 core_task: Deprecation cron_run_single_task and run_from_cli
Also we have move the functions in \tool_task\run_from_cli to \core\task\manager
and we have deprecated that class.
2020-05-11 10:53:23 +02:00
cescobedo
079736ccb3 MDL-63580 core_task: Deprecation CLI scripts from admin/tool/task/cli
Copy the CLI scripts from admin/tool/task/cli to admin/cli (schedule_task.php and adhoc_task.php)
and rename to scheduled_task.php and to improve in order to use cron_run_inner_scheduled_task.
2020-05-11 10:53:17 +02:00
Jun Pataleta
c314ec6770 Merge branch 'MDL-68041-master-rev2' of https://github.com/nhoobin/moodle 2020-05-11 16:27:48 +08:00
cescobedo
b19468ce8a MDL-68579 core_h5p: Add a check to avoid execute task using BEHAT 2020-05-11 10:13:08 +02:00
Nicholas Hoobin
119a83f148 MDL-68041 core_theme: New admin settings in secure page layout
This adds two new admin settings to the theme appearance options.

Shows the lang menu in secure layout, langmenuinsecurelayout.
Shows the user's name in secure layout, logininfoinsecurelayout.

When the page layout is set to secure, these options will be in effect.
2020-05-11 17:23:17 +10:00
Andrew Nicols
29c5fafff5 MDL-66109 js: Fix Shifter linting issues 2020-05-11 11:07:49 +08:00
Andrew Nicols
f879cc518e MDL-66109 js: Build changes for NodeJS upgrade
This change includes a build to fix all minified file changes in Moodle
as a result of upgrades to our build process.
2020-05-11 10:55:54 +08:00
Andrew Nicols
9b7e6e9c6c MDL-66109 js: Built file changes from new Node version 2020-05-11 10:53:35 +08:00