Merge branch 'MDL-38359-master' of git://github.com/danmarsden/moodle
MDL-21933 course: Allow users to search participants course permission

Capability checks are performed at the top of the page and do not need
to be completed again.

Search is an expected feature for users and it was confusion to only
appear after 3 pages.  This has been changed to enable search when
there are more records than are visible on the screen.  If users
are unable to use browser search, they will be able to use Moodle's
search.
MDL-37459 admin: Set the default setting flags on a new install.

Make sure the default flags for all settings are saved on a new install.
Revert "MDL-39832 Files: Fixed ETag format according with RFC2616."

This reverts commit 9ab37ae3e07f54bc08644f8462d94bed68ff6c9b.
Revert "MDL-39832 Files: Revert MDL-39688 commit, f111746140fe80a821ae69e3bf518d950bf188a1"

This reverts commit 3960c00e3cf129c60b01fecdfe2851ba9ef7ba59.
MDL-39824: theme_bootstrap: initalise array before use

This causes warnings when no navigation items are returned.

Also fixed some bad whitespace.
MDL-37621 assign: Fix for DB error on update.

This properly handles the case when the teamsubmissiongroupingid is disabled.
MDL-39369: Lesson module: fix setType() properly
MDL-39369: Lesson module: change settype PARAM_TEXT to PARAM_NOTAGS
MDL-40165 Backup: Split out test classes into multiple files
Merge branch 'install_master' of git://git.moodle.cz/moodle-install
weekly release 2.6dev
MDL-39152 webservices: Provide alternative to context id

As per our policy asking for and returning contextids is discouraged in webservices. So provide alternative parameters for the same
MDL-39152 phpunit: improve tests for assign_roles()

core_role_external::assign_roles() now support alternative paramaters instead of contextid. Test working of those. Also test the parameters validation a bit, since these are no longer automatically tested being optional now
MDL-39152 phpunit: Move core_role_external_testcase() to a new file

It is not recommended to have multiple test classes in a single phpunit file
MDL-33955 fix sloppy whitespace in curl class
MDL-33955 make downalod_file_content() use curl class and cleanup

The options in constructor were renamed to setttings in order to prevent confusion.
This removes ignored CURLOPT_BINARYTRANSFER, add newline header cleaning,
reworks proxy settings and some other minor issues.
MDL-33955 add file download and curl unit tests
MDL-17468 tool_uploaduser: seperate capability for user pictures
MDL-40180 - RTL/Clean theme: Misalignment of student name and profile image in grader (fixed by Mary Evans)