22913 Commits

Author SHA1 Message Date
Dan Poltawski
e7ecb4a90f MDL-57690 js: fix core modal uses in amd
Converting the uses to the AMD modules is a bit risky for now, instead
just require the YUI depdency.
2017-01-26 11:28:59 +00:00
Dan Poltawski
0053c77d62 MDL-57690 js: fix missing requirement before using M.core.dialogue 2017-01-26 08:52:50 +00:00
Andrew Nicols
ae099a2a1d Merge branch 'MDL-57273-master' of git://github.com/damyon/moodle 2017-01-25 08:48:27 +08:00
wehr
88671590f2 MDL-57655 session: Adds igbinary serializer to Redis session handler 2017-01-25 00:47:25 +01:00
Eloy Lafuente (stronk7)
0396389272 Merge branch 'MDL-57690-master' of git://github.com/danpoltawski/moodle 2017-01-24 20:22:44 +01:00
Eloy Lafuente (stronk7)
0db24a200a Merge branch 'MDL-49423-master' of git://github.com/jleyva/moodle 2017-01-24 19:05:51 +01:00
Damyon Wiese
6b206c5309 MDL-57273 persistent: Dont allow set and get for helpers
Helper methods (ie custom methods on a persistent) should not be callable via set() or get() even
if they start with set_ or get_. They are not the same as custom getters and setters for real persistent
properties.
2017-01-24 15:39:53 +08:00
Damyon Wiese
0ce135f65d MDL-57273 persistent: Some more magic __call conversions
I missed all the entry pages when converting from set_abc() and get_abc() to set('abc', ) and get('abc').

Also fixed a wrong namespace for core_competency\external\performance_helper
2017-01-24 15:20:07 +08:00
Dan Poltawski
cffa0ec79b Merge branch 'wip_master_mdl-50625_ldap_better_check_paged_results_support' of https://github.com/iarenaza/moodle 2017-01-23 16:21:02 +00:00
Damyon Wiese
e97e96155a MDL-57273 persistent: Fix access to set/get in test
The setters and getters for the path property in the test class need to be protected.
2017-01-23 14:18:04 +08:00
Damyon Wiese
d5818626c0 MDL-57273 persistent: Improved style
Use \blah::class instead of '\\blah' in define_class functions.
Allow chaining of setters by returning $this.
2017-01-23 11:58:59 +08:00
Juan Leyva
1295885084 MDL-49423 admin: Support optgroup in admin_setting_configmultiselect 2017-01-20 13:09:02 +01:00
Juan Leyva
25905de518 MDL-49423 admin: Support optgroup in admin_setting_configselect 2017-01-20 13:09:01 +01:00
Damyon Wiese
599acbe776 MDL-57273 persistent: protected custom getters
(and setters).
2017-01-20 12:56:19 +08:00
Damyon Wiese
9c91a9593d MDL-57273 core: Remove magic setters and getters
Remove the magic getters and setters from persistent. They are deprecated only in the persistent
class for competencies.
2017-01-20 12:56:19 +08:00
Frederic Massart
32896dcbab MDL-57273 core: Using $renamedclasses for deprecated classes 2017-01-20 12:56:19 +08:00
Frederic Massart
547801a411 MDL-57273 form: Persistent form automatically setType on some fields 2017-01-20 12:56:19 +08:00
Frederic Massart
b505a9e4e0 MDL-57273 core: Migrating the persistent form class to core 2017-01-20 12:56:19 +08:00
Frederic Massart
4bc68a416e MDL-57273 core: Exporters support custom formatting parameters 2017-01-20 12:56:19 +08:00
Frederic Massart
6e28143599 MDL-57273 core: Migrating core_competency exporters into core 2017-01-20 12:56:18 +08:00
Frederic Massart
2198e0e94a MDL-57273 core: Migrating persistent from core_competency into core 2017-01-20 12:56:18 +08:00
John Beedell
8b0d254f05 MDL-57511 Quiz: Attempts report shows non-unique debugging 2017-01-19 14:27:55 +00:00
Iñaki Arenaza
e47863e840 MDL-50625 auth_ldap: Better check for paged results support
There is at least one LDAP server (Sun Directory Server) that doesn't
support Paged Results extension, even if it supports LDAP version 3. So
checking just for LDAP version is not enough.

If possible, we check the supportedControl attribute of the LDAP rootDSE
and see if the paged results control is available. This needs an LDAP
connection, which might not be possible to establish before we configure
some essential LDAP settings (server, bind user, password, etc.). Thus
we try to establish the connection and check the supportedControl
attribute. But if we fail, we perform only basic checks that are less
accurate and err on the side of cautiousness.
2017-01-19 10:55:26 +01:00
Dan Poltawski
935584aaba MDL-57690 yui: remove the mcore rollup
This was is pre-loading some modules which are not used in boost:

* Block docking
* Popup Help

The other pre-loaded requirements were used for YUI dialogues and
modals. With time we are moving away from these, so rather than
'pre-loading' we can let the yui loader do its job.
2017-01-19 08:10:34 +00:00
Dan Poltawski
f745b81201 MDL-57690 output: stop requiring moodle-core-popuphelp on every page
In boost we are not longer using this module, so lets limit it to
bootstrapbase only
2017-01-19 08:10:34 +00:00
Andrew Nicols
40566af6d5 Merge branch 'MDL-57490-master' of git://github.com/danpoltawski/moodle 2017-01-18 12:09:20 +08:00
Andrew Nicols
2156bb454c Merge branch 'MDL-42266_m33v2' of https://github.com/sbourget/moodle 2017-01-18 07:46:02 +08:00
Eloy Lafuente (stronk7)
d7cee87d24 Merge branch 'MDL-57488-master' of git://github.com/danpoltawski/moodle 2017-01-18 00:00:13 +01:00
Dan Poltawski
419b2f1741 Merge branch 'wip-mdl-57669-m' of https://github.com/rajeshtaneja/moodle 2017-01-17 10:28:31 +00:00
Dan Poltawski
bb72d31944 Merge branch 'MDL-57515-master' of https://github.com/sammarshallou/moodle 2017-01-17 10:20:08 +00:00
Rajesh Taneja
ada21cb0c8
MDL-57669 behat: Exit with error code if step undefined 2017-01-17 10:30:45 +08:00
Stephen Bourget
9820c67cf9 MDL-42266 Lib: Allow additional max upload file sizes 2017-01-16 10:54:33 -05:00
Dan Poltawski
f8abbbe29e MDL-57490 javascript-static: remove legacy functions
1) Some previous deprecations are removed to reduce the amount of
 code sent to the client
2) Other very-old functions are also sent to final deprecation

This is more agressive than our standard deprecation process, but with
the nature of this old js it seems the best way forward to reduce the
amount of obsolete js sent to clients.
2017-01-16 13:23:08 +00:00
Dan Poltawski
97ac35c05f MDL-57488 js: remove M.util.focus_login_form/error
These are replaced by some simple jquery instead.
2017-01-15 20:42:35 +00:00
David Bogner
726adbc22a MDL-57374 editor: Pasting plain text in Atto removes all styles/classes 2017-01-12 18:01:30 +01:00
Eloy Lafuente (stronk7)
777361983c Merge branch 'wip-mdl-56519-m' of https://github.com/rajeshtaneja/moodle 2017-01-11 02:42:29 +01:00
sam marshall
66234de24c MDL-57515 Resource: 'not very efficient' with a large number of files
Fixes bug where the resource module loads metadata for all files while
building course modinfo, even though it only needs the first file.
(This causes problems if you have ~10k files.)
2017-01-10 17:43:46 +00:00
Eloy Lafuente (stronk7)
96733b06d6 Merge branch 'MDL-57282-master' of https://github.com/xow/moodle 2017-01-10 12:38:14 +01:00
Dan Poltawski
1975dcf25c Merge branch 'MDL-55461_atto_equation' of git://github.com/davosmith/moodle 2017-01-09 10:51:23 +00:00
Dan Poltawski
fc893bc42d Merge branch 'MDL-40132_31' of https://github.com/IvannavISer/moodle 2017-01-09 10:23:11 +00:00
Dan Poltawski
66677b7102 Merge branch 'wip-mdl-56211' of https://github.com/rajeshtaneja/moodle 2017-01-09 09:58:57 +00:00
Dan Poltawski
5445df2957 Merge branch 'MDL-57373-master' of git://github.com/ankitagarwal/moodle 2017-01-09 09:42:27 +00:00
godric
4c4b966a92 MDL-40132 lib: Using compare rule results in fatal error.
In getValidationScript function variable $element can be an array or object.
Function attempt get non-existing attributes.
To avoid this we should check before accessing.
2017-01-07 09:40:27 +03:00
John Okely
b7c822a546 MDL-57282 behat: Deprecate I go to X in the course gradebook 2017-01-06 13:47:19 +08:00
Rajesh Taneja
484503da62
MDL-56211 behat: Add suite name to faildump path
If suite is not default then add suite name
to end of faildump file name
2017-01-06 09:18:52 +08:00
Dan Poltawski
7716be5ae8 Merge branch 'MDL-57563-master-enfix' of git://github.com/mudrd8mz/moodle 2017-01-05 10:09:17 +00:00
Rajesh Taneja
1024f6d1ec
MDL-57531 behat: Set noreplyaddress to valid address
noreplyaddress should be a valid address, else
it will not be saved. For behat we don't send
email, so set it to noreply@example.com, to
avoid failing validation on localhost
2017-01-05 14:40:16 +08:00
Helen Foster
442879042c MDL-57563 lang: Merge English strings from the en_fix language pack 2017-01-04 22:03:08 +01:00
Dan Poltawski
b6f5e57e45 Merge branch 'MDL-57531-master-phpmailer' of git://github.com/mudrd8mz/moodle 2017-01-04 13:29:10 +00:00
David Mudrák
7620746f67 MDL-57531 mail: Make validate_email return actual boolean as expected
It was discovered by unit tests that the return value is not a real
boolean as was intuitively expected and documented. To avoid potential
issues with the truthyness in the future, we explicitly cast the return
value to boolean now.
2017-01-04 13:16:07 +01:00