Marina Glancy
3f9503468f
MDL-4782 course: Behat tests for stealth mode support
2017-02-14 16:38:08 +08:00
Marina Glancy
a572272768
MDL-50770 blocks: remove orphaned block positions
2017-02-13 15:18:51 +08:00
David Monllao
375b9ce0e7
Merge branch 'wip-MDL-57316-master' of git://github.com/marinaglancy/moodle
2017-02-08 13:11:28 +01:00
Marina Glancy
63c102e095
MDL-57316 media: create different instances for different pages
2017-02-08 10:17:43 +08:00
John Okely
1abd43763c
MDL-57316 media: Setup media plugins in media_manager::instance()
2017-02-07 09:16:01 +08:00
Eloy Lafuente (stronk7)
7373f641e5
Merge branch 'MDL-57846-master' of git://github.com/jleyva/moodle
2017-02-07 00:12:30 +01:00
Eloy Lafuente (stronk7)
f20f598ab5
Merge branch 'MDL-57841-master' of git://github.com/damyon/moodle
2017-02-06 20:18:17 +01:00
Juan Leyva
d472f530ac
MDL-57846 core_exporter: Allow properties description in exporters
2017-02-01 19:10:18 +01:00
Damyon Wiese
13fb78a4f6
MDL-57841 exporter: Allow scalars as related objects
2017-02-01 15:30:56 +08:00
Petr Skoda
a6210651a9
MDL-57027 fix get_users_by_capability()
...
Change-Id: I98dc88784dfa0293f88a19c3d36e7a46a3f52672
2017-02-01 13:01:28 +08: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
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
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
Rajesh Taneja
ada21cb0c8
MDL-57669 behat: Exit with error code if step undefined
2017-01-17 10:30:45 +08: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
66677b7102
Merge branch 'wip-mdl-56211' of https://github.com/rajeshtaneja/moodle
2017-01-09 09:58:57 +00: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
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
David Mudrák
61367eb639
MDL-57531 mail: Validate the sender's email address
...
The patch adds validation for the noreplyaddress setting variable, for
the explicit $replyto parameter and for the sender's email. In case of
misconfigured noreplyaddress setting, it falls back to the default
noreply address value. In case of invalid email in the user's record,
the email is not sent.
The patch also adds unit test for the value returned by the function
generate_email_processing_address() so that it can be considered as a
valid email, too.
This is supposed to significantly minimise the risk of exploiting the
vulnerability in PHPMailer's Sender field.
2017-01-04 12:35:19 +01:00
Ankit Agarwal
a76b0b8b85
MDL-56992 core_scss: Don't allow invalid files to be included
...
We allow only .scss files so allow files to be included only and only if they end in .scss and they exist on server under theme directory.
2017-01-04 11:33:57 +00:00
Rajesh Taneja
3b7a351d69
MDL-57494 behat: Fixed tags and removed reset in after_scenario
...
1. Added missing switch_window tags
2. Fixed switch_frame tags to use switch_iframe
3. Removed reset from after_scenario.
2016-12-22 12:42:39 +08:00
Andrew Nicols
64ad7319ab
Merge branch 'MDL-57278-master-5' of https://github.com/xow/moodle
2016-12-08 10:44:49 +08:00
John Okely
a6db4a68e2
MDL-57278 signup: Unit tests covering confirmation link generation
2016-12-08 10:16:29 +08:00
Dan Poltawski
eec60baeca
Merge branch 'MDL-56674-master' of https://github.com/kenneth-hendricks/moodle
2016-12-07 08:45:16 +00:00
Marina Glancy
c0ad000f46
MDL-56614 behat: corrections to new steps
2016-12-07 13:37:49 +08:00
Dan Poltawski
369382f7bf
Merge branch 'MDL-56233-32-mocksubmit' of https://github.com/roperto/moodle
2016-12-06 12:42:00 +00:00
Andrew Nicols
3bb4ad7521
Merge branch 'MDL-57137_question_category_with_parent_category' of https://github.com/melihovv/moodle
2016-12-06 14:52:32 +08:00
Marina Glancy
ebcff7e256
MDL-56614 behat: new steps for navigation without blocks
2016-12-06 11:49:11 +08:00
Daniel Thee Roperto
518eb19337
MDL-56233 forms library: Fixed form identifier when mocking a form.
...
If the plugin is using namespaces instead of frankenstyle class name,
get_called_class() will return 'type\name' instead of 'type_name'.
Added code to replace backslashes to underscores and fix that issue.
2016-12-05 11:27:05 +11:00
David Monllao
76e337ab96
Merge branch 'MDL-57232-master' of git://github.com/damyon/moodle
2016-12-02 14:20:17 +08:00
Damyon Wiese
9d1402abd8
MDL-57232 blocks: Split undeletableblocktypes
...
There are 2 kinds of blocks that are undeletable. Those required by the
theme and those protected via the admin page ui. We only want the theme
ones to be auto created site wide if they don't exist - so we need to
rename the theme ones and split the logic.
2016-12-02 12:32:03 +08:00
Frederic Massart
36e6789b27
MDL-57101 filter: Load globally available filters on every page
...
Previous commits were overlooked, they should have passed the
system context to filter_manager::setup_page_for_fitlers(), the
page context was passed instead. Regardless, the processing of
the latter is too excessive for what we need, but, more importantly,
it does not return "Off, but available" filters which we also need.
2016-12-01 14:51:40 +08:00
Frederic Massart
e37c128686
MDL-57101 filter: Always set-up the page for filters
2016-11-29 12:36:28 +08:00
Alexander Melihov
834cc0ed66
MDL-57137 quiz: Create question category with specified parent category
...
Fix question category generator bug. Now it is possible to specify parent category of subcategory, supply only name of parent category
2016-11-25 08:59:32 +03:00
David Monllao
4de871f4ca
Merge branch 'MDL-57001-master' of git://github.com/damyon/moodle
2016-11-24 15:29:04 +08:00
Damyon Wiese
22b8c5b842
MDL-57001 user_menu: Fixes for unit tests
...
We added a link to the user menu so we have to adjust the tests.
2016-11-24 15:11:19 +08:00
Rajesh Taneja
8c35e49b37
MDL-56898 behat: No need to trigger error, as it sometimes hangs behat
2016-11-24 07:31:38 +08:00
Damyon Wiese
1ac36fa9f7
MDL-56902 blocks: No theme blocks if fake blocks only
...
When showing only fake blocks, never auto create the blocks for the
theme. This would give you double blocks.
2016-11-23 11:07:32 +08:00
David Monllao
44c3d0775c
Merge branch 'MDL-56902-master' of git://github.com/damyon/moodle
2016-11-23 08:29:41 +08:00
Damyon Wiese
51718b752d
MDL-56902 blocks: Prevent blocks returning when switching themes.
...
Now if the current theme requires some blocks that don't exist, they
will be created - but with a new flag that indicates this block should
only be returned if the current theme requires it. This allows flipping back
and forth between boost and clean without restoring the nav and settings blocks
in boost.
2016-11-22 14:53:24 +08:00
Rajesh Taneja
26fef01b6b
MDL-56898 behat: Go to a non html page to avoid any unwanted ajax calls
...
After scenario is finished, go to README.txt, so
there is no JS/AJAX calls pending and site is ready
for reset before next scenario
2016-11-21 14:16:49 +08:00
Rajesh Taneja
1bce723292
MDL-56898 behat: Try data reset if it fails because of pending process
2016-11-21 09:25:35 +08:00
Andrew Nicols
6aefea74a4
Merge branch 'MDL-55209' of https://github.com/NeillM/moodle
2016-11-16 08:24:39 +08:00
Matteo Scaramuccia
ade30c673c
MDL-56917 core_upgrade: Do not use the raw version to check cURL caps.
...
Some Linux distros can backport features due to security issues
while keeping the same (old) version. See e.g.:
- RHEL 7, https://rhn.redhat.com/errata/RHSA-2015-2159.html
- RHEL 6, https://rhn.redhat.com/errata/RHBA-2016-0842.html
- Remi PHP 7.0.x, https://github.com/remicollet/remirepo/commit/87954ef9ca41
2016-11-15 21:50:07 +01:00
Andrew Nicols
ea10a0319b
MDL-56602 core: Lock themerev during upgrade
...
This also changes install to use a fixed themerev.
2016-11-11 14:15:00 +08:00
Dan Poltawski
d5d6eda93c
Merge branch 'MDL-55777-master' of git://github.com/ankitagarwal/moodle
2016-11-10 13:46:10 +00:00