Commit graph

738 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
925d1dc60e Merge branch 'MDL-62065-master' of git://github.com/cescobedo/moodle 2018-08-07 15:51:34 +02:00
Andrew Nicols
6acae5165c Merge branch 'MDL-62975_master' of git://github.com/markn86/moodle 2018-08-07 14:38:00 +08:00
Andrew Nicols
4af25b000f Merge branch 'MDL-54741-master' of git://github.com/mihailges/moodle 2018-08-07 12:19:44 +08:00
Adrian Greeve
cc4952e997 MDL-55449 messages: Remove support for stdClass messages.
This also makes message_sent::create_from_ids() $courseid
parameter required.
2018-08-07 11:04:22 +08:00
Mihail Geshoski
216b89475d MDL-54741 general: 3.2 final deprecation in lib/deprecatedlib.php 2018-08-06 09:29:54 +08:00
Mihail Geshoski
f2cdf99382 MDL-56335 behat: prefixed_tablenode_transformations final deprecation 2018-08-06 09:27:08 +08:00
Andrew Nicols
aa75f70280 Merge branch 'MDL-59847-master' of https://github.com/snake/moodle 2018-08-02 11:39:50 +08:00
David Mudrák
afa3e0ff32 MDL-59847 core: Stop supporting custom identity fields in user selectors
The user_selector classes supported custom list of extra identity
fields. But they should obey the configured user policy and respect the
privacy setting made by site administrators. So the list of user
identifiers should never be hard-coded, but the setting
$CFG->showuseridentity should be always respected.
2018-08-02 10:22:07 +08:00
Eloy Lafuente (stronk7)
3578f04762 Merge branch 'MDL-51883-master' of git://github.com/mihailges/moodle 2018-08-01 16:39:45 +02:00
Mihail Geshoski
5ab8824394 MDL-51883 libraries: 3.1 final deprecation in lib/deprecatedlib.php 2018-08-01 10:32:37 +08:00
David Monllao
f967e6795d Merge branch 'MDL-63001_master' of git://github.com/markn86/moodle 2018-07-31 13:52:49 +02:00
Jun Pataleta
77b6d458e5 Merge branch 'MDL-58768-master-2' of git://github.com/rezaies/moodle 2018-07-31 16:18:44 +08:00
David Monllao
a50b8a438a Merge branch 'MDL-56712-master' of git://github.com/mihailges/moodle 2018-07-30 17:47:51 +02:00
David Monllao
627d9aa6c8 Merge branch 'MDL-55188-master' of git://github.com/abgreeve/moodle 2018-07-30 17:33:21 +02:00
Mark Nelson
f8d15c66c3 MDL-62975 core_form: deprecate the htmleditor element 2018-07-30 10:01:01 +08:00
Mark Nelson
350d7b0686 MDL-50225 core: properly deprecate print_textarea 2018-07-30 09:55:11 +08:00
Mihail Geshoski
d8e8734291 MDL-62943 core_output: Final deprecation of update_module_button 2018-07-30 09:43:49 +08:00
Mihail Geshoski
d77b5db55f MDL-56712 media: Remove 3.2 deprecated functions and classes 2018-07-30 09:25:34 +08:00
Adrian Greeve
b41e1d7c55 MDL-55188 events: Final deprecation of part of events 1 API. 2018-07-30 09:25:06 +08:00
Adrian Greeve
5454e72c21 MDL-55188 events: First deprecation of eventslib.php 2018-07-30 09:23:54 +08:00
cescobedo
2769bf315b MDL-55188 events: Final deprecation events_trigger. 2018-07-30 09:21:21 +08:00
cescobedo
df536ab17d MDL-62065 core_access: First deprecation of get roles on exact context 2018-07-29 22:43:06 +02:00
Shamim Rezaie
f7115c2e80 MDL-58768 coursecat: coursecat::get to accept a $user parameter 2018-07-28 07:51:32 +10:00
Mark Nelson
2dd3384083 MDL-63001 core_form: final deprecation of the submitlink element 2018-07-27 16:05:28 +08:00
Eloy Lafuente (stronk7)
b562240b61 Merge branch 'MDL-57622-master' of git://github.com/mihailges/moodle 2018-07-26 00:22:37 +02:00
Andrew Nicols
dc45b688b3 Merge branch 'MDL-55259_master' of git://github.com/markn86/moodle 2018-07-25 13:35:53 +08:00
Eloy Lafuente (stronk7)
6c48428f37 Merge branch 'MDL-55365-master' of git://github.com/cescobedo/moodle 2018-07-25 01:02:33 +02:00
Eloy Lafuente (stronk7)
252905427c Merge branch 'MDL-60874-master-enrolautocomplete' of git://github.com/mudrd8mz/moodle 2018-07-24 19:03:32 +02:00
Mihail Geshoski
5f2628c517 MDL-57622 behat: Remove behat steps deprecated in 3.2 2018-07-23 09:25:59 +08:00
cescobedo
8d2432f543 MDL-55365 behat: Remove deprecated api's in behat_config_mananger.php 2018-07-20 09:34:26 +02:00
Mark Nelson
512a1d310f MDL-55259 core: removed lib/password_compat/lib/password.php 2018-07-18 16:18:48 +08:00
David Mudrák
9411beb384 MDL-60874 core_form: allow autocomplete AJAX handlers return a string
Custom AJAX handlers for the form autocomplete fields can now optionally
return string in their processResults() callback. If a string is
returned, it is displayed instead of the list of suggested items.

The string is displayed same way as we inform about no available
suggestions.
2018-07-16 21:27:25 +02:00
cescobedo
437ffc9f46 MDL-53808 external_api: Remove external_function_info 2018-07-11 11:11:33 +02:00
David Mudrák
4f41ae2763 MDL-61949 privacy: Add mention of the new API in upgrade.txt files
The notice is explicitly repeated for activity modules because they
usually process user data heavily.
2018-05-10 11:35:12 +02:00
Eloy Lafuente (stronk7)
3149bea2c4 Merge branch 'MDL-61800-master' of git://github.com/andrewnicols/moodle 2018-05-03 23:27:51 +02:00
Marina Glancy
3127fe10b8 MDL-62312 course: Move core_publish renderer methods to course renderer 2018-05-03 10:08:37 +08:00
Jun Pataleta
3cfbce12a6 MDL-62312 admin: Move moodleorg_registration_message to admin renderer 2018-05-02 23:41:59 +08:00
Andrew Nicols
cd305dc26b MDL-61800 task: Reset the OUTPUT and PAGE on execution 2018-05-02 11:57:13 +08:00
David Monllao
c2e970779d MDL-53226 search_simpledb: Refine the patch
- Clumsy fallback only when there is no full-text search support
- Mimic solr tests
- pgsql tokenization using simple configuration
- workaround for mysql '*' search issue
- total results proper calculation
- SQL server FTS support
- Standarize dml full-text search checkings
- Upgrade note about the new dml method
- Set search_simpledb as default engine if no solr config
2018-03-20 18:49:38 +01:00
Marina Glancy
1727c939ba MDL-61477 admin: sitepolicy handler API
- Define sitepolicy handler manager class, base class and the core handler
- Allow to set a plugin as sitepolicyhandler that implements the sitepolicy API
- Modify web services to return information from the 3rd party handler instead of core if needed
2018-03-15 11:32:55 +08:00
David Mudrák
0bdc578567 MDL-61477 admin: Allow plugins to act as alternate policy handlers
The patch introduces a new site setting 'sitepolicyhandler' that can be
either empty or contain a plugin component name. If it is empty, the
site policy feature keeps working as before and the core keeps the
control over it.

If a plugin is specified, it is expected to implement the callback
'site_policy_handler' in its lib.php file. The callback should return a
URL to a script where the user can accept the site policies. The plugin
itself is responsible for setting the 'policyagreed' flag in the users
table. The callback may return an empty value, in which case the user
can continue using the site without being redirected.

The patch adds support for a new pre-config flag NO_SITEPOLICY_CHECK.
This constant should be defined and set to true if we should not check
the user's policyagreed status during the require_login().

This is for pages where the user actually accepts the site policies and
helps to avoid the redirect loop.
2018-03-15 09:31:41 +08:00
Jeff Webster
caae082025 MDL-48501 recaptchalib_v2: add new lib to support reCAPTCHA v2 2018-03-08 14:48:35 -05:00
Eloy Lafuente (stronk7)
54a099e989 MDL-61150 xmldb: Let's check the PATH attribute of XMLDB files
Starting with Moodle 3.5 the XMLDB->PATH attribute is checked
to be correct and pointing to the correct plugin directory.

It only was used for writing PHP savepoints code, but better we
ask for strict correctness.

With this patch applied, neither the XMLDB Editor neither install
will be able to load a file with wrong PATH anymore.
2018-02-11 23:07:18 +01:00
Eloy Lafuente (stronk7)
dba5826124 Merge branch 'MDL-50469-master' of git://github.com/junpataleta/moodle 2018-01-22 02:43:08 +01:00
Eloy Lafuente (stronk7)
2ab36722f2 Merge branch 'MDL-53113-master' of git://github.com/junpataleta/moodle 2018-01-17 10:37:23 +01:00
Eloy Lafuente (stronk7)
76f8b36105 MDL-53113 libraries: Also remove core_renderer->notify_xxx() methods
Keeping the methods instead of fully deleting them alternative.
2018-01-17 02:18:16 +01:00
Eloy Lafuente (stronk7)
0e68db9e83 MDL-41312 groups: documment final removal in upgrade.txt 2018-01-17 02:04:16 +01:00
Jun Pataleta
56c9d66652 MDL-50469 core: Update lib/upgrade.txt about notify() final deprecation 2018-01-16 11:34:00 +08:00
David Mudrák
521252d642 MDL-32113 xmldb: Support numeric fields with precision up to 38 digits
The patch increases the maximum supported precision (total number of
digits) for numeric (decimal) fields to 38 digits (current limit on
Oracle and MSSQL).

Additionally, we add our own limit for the whole number part of numeric
fields so they are no longer than integer fields (20 digits). This is to
make it easier to eventually convert from one field type to another.
Note that PHP floats commonly support precision of roughly 15 digits
anyway.
2017-12-21 19:48:03 +01:00
Andrew Hancox
64cd459648 MDL-50666 core: Rename allow_ACTION to core_role_set_ACTION_allowed 2017-12-19 13:53:23 +13:00