Commit graph

2005 commits

Author SHA1 Message Date
Paul Holden
ab106ad70f MDL-66732 core: improve detection of non-public sites. 2020-04-15 21:54:29 +01:00
Brendan Heywood
79dbcce8b1 MDL-68185 report_performance: Refactored into Check API 2020-04-08 14:35:33 +10:00
Brendan Heywood
e8e2bd28ec MDL-47271 check: Refactor check table into a renderable 2020-04-08 14:35:33 +10:00
Brendan Heywood
20167daf89 MDL-47271 report_status: Added System status report 2020-04-08 14:35:31 +10:00
Brendan Heywood
26bb3c24d2 MDL-67818 check: Improved Check API to reduce boilerplate 2020-04-06 22:08:15 +10:00
Andrew Nicols
c52f3a3efa Merge branch 'MDL-68256' of https://github.com/timhunt/moodle 2020-04-06 15:05:41 +08:00
Brendan Heywood
00c2153be1 MDL-67818 check: Added Check API and refactored security checks
AMOS BEGIN
 MOV [check_noauth_details,report_security],[check_noauth_details,auth_none]
 MOV [check_noauth_error,report_security],[check_noauth_error,auth_none]
 MOV [check_noauth_name,report_security],[check_noauth_name,auth_none]
 MOV [check_noauth_ok,report_security],[check_noauth_ok,auth_none]
AMOS END
2020-04-06 12:28:37 +10:00
Mark Nelson
52f993651c MDL-68193 core: added new database_text_field_content_replaced event 2020-04-01 20:44:10 +02:00
Tim Hunt
6fdc0f8796 MDL-68256 task admin: usability improvements
In the table that lists the scheduled tasks:

1. There are badges to show which components are disabled.
2. The plugin name (e.g. auth_ldap) is shown as well as the
   human-readable name (e.g. LDAP server).
3. Where a time column has a non-default value, it is highlighted
   and the default is shown.
4. If the fail-delay is non-zero, the cell is highlighted.
4. If you just interacted with a task (looked at or edited the settings,
   did Run now, or cleared the fail delay) that row is highlighted,
   and scrolled into view when the page loads.

To support this, some of the methods for loading the default tasks
have been extended with an optional argument to leave 'R' as 'R'
rather than replacing with a random number.

Also, mixed into this commit are a bunch of coding style improvements.
Sorry I did not separate them out, but ultimately this makes the
Moodle code better.
2020-03-28 18:40:51 +00:00
Adrian Greeve
aab8d9a1c0 Merge branch 'MDL-68081-master' of https://github.com/kritisingh1/moodle 2020-03-19 11:26:25 +08:00
Ferran Recio
252e112376 MDL-67707 mod_h5pactivity: add plugin to standard list 2020-03-16 17:52:08 +01:00
Eloy Lafuente (stronk7)
0b698cb00b Merge branch 'MDL-67752-master-userstats' of git://github.com/mudrd8mz/moodle 2020-03-12 00:23:30 +01:00
kritisingh1
02c350947f MDL-68081 Groups: Fixes string error in member removal function 2020-03-11 17:28:54 +05:30
Sara Arjona
08fda3e0f8 MDL-67063 h5p: new h5plib plugintype for supporting multi coreAPI
A new plugintype has been created for having more than one installed
third-party H5P libraries. Existing libraries have been moved from
lib/h5p to the new h5plib_v124 plugin.
2020-03-11 08:46:16 +01:00
Andrew Nicols
ff1a10333d Merge branch 'MDL-67263-master' of git://github.com/mihailges/moodle 2020-03-05 13:22:40 +08:00
Mihail Geshoski
f152b71dd4 MDL-67263 course: Add search functionality in the activity chooser 2020-03-05 11:56:39 +08:00
Brendan Heywood
516c8aa506 MDL-67861 libraries: Refactor is_ip_in_subnet_list in ip_utils 2020-03-05 01:28:04 +01:00
David Mudrák
4e907e7be4 MDL-67752 course: Provide the active user stats during the registration
These new stats provide better insight as they only consider recently
active users and active enrolments only.
2020-02-27 13:14:39 +01:00
Jun Pataleta
9585a6fdf7 Merge branch 'MDL-67584-integration-2' of https://github.com/Chocolate-lightning/moodle 2020-02-27 12:36:33 +08:00
Mathew May
6e1a4477d8 MDL-67584 core_course: Activity chooser favouriting frontend 2020-02-27 12:13:35 +08:00
Mikhail Golenkov
e63040d02b MDL-67980 tasks: Sort ad-hoc tasks by nextruntime. 2020-02-24 09:30:09 +11:00
Eloy Lafuente (stronk7)
245ac91748 Merge branch 'MDL-67309' of https://github.com/Peterburnett/moodle 2020-02-17 22:40:45 +01:00
Peter Burnett
59298ccebc MDL-67309 login: Added check for password policy at login time. 2020-02-17 09:55:07 +10:00
Peter Dias
1cb6c0bb31 MDL-63032 core: Update the timezone to the latest windows list 2020-02-11 07:17:23 +08:00
Andrew Nicols
af3de26941 Merge branch 'MDL-67175-master' of git://github.com/andrewnicols/moodle 2020-02-07 08:08:43 +08:00
Brendan Cox
86b082cece MDL-67175 session: set SameSite=None for Chrome 78 and above
Totara reference TL-22311 (original code by Brendan Cox and Sam Hemelryk)
a3f4de2b7e
2020-02-07 08:05:14 +08:00
Eloy Lafuente (stronk7)
fbde0a7798 Merge branch 'MDL-67052-mysql-locks' of https://github.com/brendanheywood/moodle 2020-02-03 19:32:58 +01:00
Brendan Heywood
262061d661 MDL-67052 locks: Added a native MySQL / MariaDB lock implementation 2020-01-30 09:20:10 +11:00
Eloy Lafuente (stronk7)
fd27c57901 Merge branch 'wip-MDL-67545-master' of https://github.com/Beedell/moodle 2020-01-29 19:28:56 +01:00
Adrian Greeve
aa78c654ba Merge branch 'MDL-67768-master-componentdirs' of git://github.com/mudrd8mz/moodle 2020-01-29 10:01:08 +08:00
Eloy Lafuente (stronk7)
f5cb242afd Merge branch 'MDL-52189' of https://github.com/jonof/moodle 2020-01-28 22:43:22 +01:00
Eloy Lafuente (stronk7)
2aa92150a6 Merge branch 'MDL-57755_master' of https://github.com/t-schroeder/moodle 2020-01-28 10:26:32 +01:00
David Mudrák
3f82b17927 MDL-67768 core: Add some common dirs to core_component::$ignoreddirs
The core_component::$ignoreddirs lists all directories that are reserved
and cannot be used as valid plugin names. This is particularly important
for some plugin types such as 'webservice' that share the same root
location as the core subsystem of the same name.
2020-01-28 10:18:25 +01:00
John Beedell
7aa3444d72 MDL-67545 Antivirus: new option for clam scan failure 2020-01-24 13:05:45 +00:00
Tim Schroeder
1ccc7e6600
MDL-57755 message: fix notificaiton read status when messaging disabled 2020-01-24 08:59:12 +01:00
Mikhail Golenkov
8dff481193 MDL-67746 Tasks: Cleanup task logs in chunks. 2020-01-24 13:53:34 +11:00
Eloy Lafuente (stronk7)
cb701f77b4 Merge branch 'MDL-67296-master' of git://github.com/vmdef/moodle 2020-01-22 23:46:06 +01:00
Víctor Déniz Falcón
d8fe1eddf9 MDL-67296 core_h5p: minor changes
core.php-Avoid to use the factory for each content type
h5p_get_content_types_task-new method to simplify test execution
framework.php-returns error if you get a 404 response after requesting a file
2020-01-22 14:48:16 +00:00
Colin Campbell
eeca35e4ad MDL-52189 file: skip deleting temp files that appear during cleanup 2020-01-22 12:10:00 +10:00
Adrian Greeve
c282319a35 Merge branch 'MDL-59594-SIGINT' of https://github.com/brendanheywood/moodle 2020-01-20 10:39:20 +08:00
Andrew Nicols
4aa4d44a41 Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle 2020-01-16 12:10:31 +08:00
Peter Burnett
72aac06304 MDL-59562 core: updated type hint of new function 2020-01-16 13:05:30 +10:00
Andrew Nicols
2bdad64e48 Merge branch 'MDL-67486-swap-cron-lock' of https://github.com/brendanheywood/moodle 2020-01-15 13:53:22 +08:00
Andrew Nicols
30afac71d3 Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle 2020-01-15 13:51:04 +08:00
Peter Burnett
4fac690ace MDL-59562 core: changed branch behaviour during initial install. 2020-01-15 15:46:46 +10:00
Andrew Nicols
20a7746b1e Merge branch 'mdl-59562' of https://github.com/Peterburnett/moodle 2020-01-15 12:40:19 +08:00
[Peter Burnett]
147a895ad0 MDL-59562 upgrade: Plugins can declare supported moodle versions
* Plugins can now explicitly declare supported and incompatible Moodle
  versions in version.php
  - $plugin->supported[37,39];
    supported takes an array of ascending numbers, that correspond to a
    range of branch numbers of supported versions, inclusive. Moodle
    versions that are outside of this range will produce a message
    notifying at install time, but will allow for installation.

  - $plugin->incompatible = 36;
    incompatible takes a single int corresponding to the first incompatible
    branch. Any Moodle versions including and below this will be prevented
    from installing the plugin, and a message will be given when
    attempting installation.
2020-01-15 14:38:27 +10:00
Brendan Heywood
176b5202e0 MDL-59594 cli: Introduce cli helpers for graceful exits
\core\local\cli\shutdown::script_supports_graceful_exit();

    Sets up interception of exit signals and keep the script running.

    \core\local\cli\shutdown::should_gracefully_exit();

    Use this to check whether you should exit, often inside a long running loop.
2020-01-12 01:20:04 +11:00
Brendan Heywood
29e3a223f5 MDL-59594 core: Allow custom signal handlers 2020-01-12 01:20:04 +11:00
Brendan Heywood
b0544ce211 MDL-67486 cron: Improve throughput by holding cron lock for less time 2020-01-12 01:02:57 +11:00