moodle.git
7 years agoMoodle release 3.2.5 v3.2.5
Eloy Lafuente (stronk7) [Sat, 9 Sep 2017 20:48:05 +0000 (22:48 +0200)]
Moodle release 3.2.5

7 years agoweekly release 3.2.4+
David Monllao [Thu, 7 Sep 2017 09:39:06 +0000 (11:39 +0200)]
weekly release 3.2.4+

7 years agoMDL-59969 admin: Warn admins if a development libs directory exists
David Mudrák [Tue, 29 Aug 2017 17:01:40 +0000 (19:01 +0200)]
MDL-59969 admin: Warn admins if a development libs directory exists

We can't really control the direct web access to directories in dirroot,
that is part of the server setup. So we at least warn admins as they may
not realize the risks of having directories like vendor or node_modules
exposed.

Credit goes to Petr Škoda for mentioning the PHPUnit issue CVE-2017-9841
to me.

7 years agoMDL-59972 mod_feedback: escape subject when showing the contact form
Marina Glancy [Wed, 30 Aug 2017 03:37:27 +0000 (11:37 +0800)]
MDL-59972 mod_feedback: escape subject when showing the contact form

7 years agoMDL-58953 user: additional test case for user_can_view_profile()
Jake Dallimore [Tue, 29 Aug 2017 02:43:38 +0000 (10:43 +0800)]
MDL-58953 user: additional test case for user_can_view_profile()

7 years agoMDL-58953 user: fix course checking logic in user_can_view_profile()
Jake Dallimore [Tue, 29 Aug 2017 02:43:21 +0000 (10:43 +0800)]
MDL-58953 user: fix course checking logic in user_can_view_profile()

Make sure to check that $user in enrolled in $course before checking
whether the current user has capabilities in that course, and make sure
that we don't check user context caps when handling a specific course.

7 years agoMDL-59776 core_calendar: unit tests of module events deletion
Simey Lameze [Tue, 15 Aug 2017 01:49:56 +0000 (09:49 +0800)]
MDL-59776 core_calendar: unit tests of module events deletion

7 years agoMDL-59776 core_calendar: prevent deletion of module events
Simey Lameze [Wed, 9 Aug 2017 07:22:07 +0000 (15:22 +0800)]
MDL-59776 core_calendar: prevent deletion of module events

7 years agoMDL-58762 core: Get full course objects on navigation
Juan Leyva [Wed, 5 Jul 2017 12:18:08 +0000 (13:18 +0100)]
MDL-58762 core: Get full course objects on navigation

The course object passed as parameter to extend_navigation_user
callback contained only a few parameters, some parameters like
showgrades or showreports were missing.
The callback should receive a full course object.

7 years agoMDL-58762 report: Check group permissions in course user reports
Juan Leyva [Tue, 2 May 2017 08:04:55 +0000 (10:04 +0200)]
MDL-58762 report: Check group permissions in course user reports

Teachers were able to see any student report even with forced separated
groups and capability moodle/course:accessallgroups off.

7 years agoMerge branch 'm32_MDL-59635_Properly_Escape_Column_Names_Reserved_Words_Proof' of...
Jun Pataleta [Tue, 5 Sep 2017 02:30:56 +0000 (10:30 +0800)]
Merge branch 'm32_MDL-59635_Properly_Escape_Column_Names_Reserved_Words_Proof' of https://github.com/scara/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59696-32' of git://github.com/junpataleta/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Mon, 4 Sep 2017 22:54:25 +0000 (00:54 +0200)]
Merge branch 'MDL-59696-32' of git://github.com/junpataleta/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59198-32' of git://github.com/ankitagarwal/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Mon, 4 Sep 2017 22:37:30 +0000 (00:37 +0200)]
Merge branch 'MDL-59198-32' of git://github.com/ankitagarwal/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MOODLE_32_STABLE-MDL-59799' of https://github.com/jojoob/moodle into...
David Monllao [Mon, 4 Sep 2017 10:33:14 +0000 (12:33 +0200)]
Merge branch 'MOODLE_32_STABLE-MDL-59799' of https://github.com/jojoob/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'wip-MDL-59992-32' of git://github.com/marinaglancy/moodle into MOODLE_3...
Dan Poltawski [Mon, 4 Sep 2017 10:23:25 +0000 (11:23 +0100)]
Merge branch 'wip-MDL-59992-32' of git://github.com/marinaglancy/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'wip-MDL-59815-32' of git://github.com/abgreeve/moodle into MOODLE_32_STABLE
David Monllao [Mon, 4 Sep 2017 10:08:53 +0000 (12:08 +0200)]
Merge branch 'wip-MDL-59815-32' of git://github.com/abgreeve/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MOODLE_32_STABLE-MDL_59834-Indexing_of_personal_messages' of https...
Dan Poltawski [Mon, 4 Sep 2017 09:52:08 +0000 (10:52 +0100)]
Merge branch 'MOODLE_32_STABLE-MDL_59834-Indexing_of_personal_messages' of https://github.com/mattporritt/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'wip-MDL-59898-32' of git://github.com/abgreeve/moodle into MOODLE_32_STABLE
David Monllao [Mon, 4 Sep 2017 09:25:00 +0000 (11:25 +0200)]
Merge branch 'wip-MDL-59898-32' of git://github.com/abgreeve/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59963_32-report-logs-origin-pagination' of https://github.com/lucab...
David Monllao [Mon, 4 Sep 2017 09:20:39 +0000 (11:20 +0200)]
Merge branch 'MDL-59963_32-report-logs-origin-pagination' of https://github.com/lucaboesch/moodle into MOODLE_32_STABLE

7 years agoMDL-59635 tool_replace: Escape the column name.
Matteo Scaramuccia [Sun, 25 Jun 2017 20:00:41 +0000 (22:00 +0200)]
MDL-59635 tool_replace: Escape the column name.

7 years agoMDL-59635 ddl: Added test_get_enc_quoted().
Matteo Scaramuccia [Sun, 25 Jun 2017 19:55:27 +0000 (21:55 +0200)]
MDL-59635 ddl: Added test_get_enc_quoted().

7 years agoMDL-59696 theme_bootstrapbase: Set max-width for custom-select elements
Jun Pataleta [Mon, 21 Aug 2017 07:39:14 +0000 (15:39 +0800)]
MDL-59696 theme_bootstrapbase: Set max-width for custom-select elements

* Set custom-select elements with a maximum width of 100% of their
container.

7 years agoMDL-59696 templates: Remove form-group div for url-select template
Jun Pataleta [Mon, 21 Aug 2017 07:43:17 +0000 (15:43 +0800)]
MDL-59696 templates: Remove form-group div for url-select template

* Removed the div with the class 'form-group' that's enclosing the
select element and friends. It's not needed since the urlselect template
is an inline form.
* Also, for completeness, I added the helpicon data for the template's
context.

7 years agoMDL-59898 access: Added Icon references.
Tobias Garske [Tue, 22 Aug 2017 09:44:08 +0000 (11:44 +0200)]
MDL-59898 access: Added Icon references.

7 years agoMDL-59834 Global Search: Indexing user messages
Matt Porritt [Thu, 31 Aug 2017 01:36:18 +0000 (11:36 +1000)]
MDL-59834 Global Search: Indexing user messages

Make indexing of user messages tolerant to user deletion.
When creating the search document for user messages,
add a check to see if the user has been deleted in the
system. If they have been deleted abort creating the search
document.
This is to avoid rasining an error when trying to get the
user context for a deleted user.

7 years agoMDL-59799 course: Include course/lib.php before using move_courses().
Johannes Burk [Sun, 13 Aug 2017 12:42:54 +0000 (14:42 +0200)]
MDL-59799 course: Include course/lib.php before using move_courses().

7 years agoMDL-53936 reports: State default index page explicitly in pagination url
Luca Bösch [Tue, 29 Aug 2017 05:36:52 +0000 (07:36 +0200)]
MDL-53936 reports: State default index page explicitly in pagination url

7 years agoMDL-59963 reports: origin parameter looked at in log reports
Luca Bösch [Tue, 29 Aug 2017 06:00:06 +0000 (08:00 +0200)]
MDL-59963 reports: origin parameter looked at in log reports

7 years agoweekly release 3.2.4+
Jun Pataleta [Fri, 1 Sep 2017 05:26:59 +0000 (13:26 +0800)]
weekly release 3.2.4+

7 years agoMerge branch 'install_32_STABLE' of https://git.in.moodle.com/amosbot/moodle-install...
Jun Pataleta [Fri, 1 Sep 2017 05:26:58 +0000 (13:26 +0800)]
Merge branch 'install_32_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-56646-32-fix' of https://github.com/xow/moodle into MOODLE_32_STABLE
Andrew Nicols [Thu, 31 Aug 2017 07:01:03 +0000 (15:01 +0800)]
Merge branch 'MDL-56646-32-fix' of https://github.com/xow/moodle into MOODLE_32_STABLE

7 years agoMDL-56646 mod_assign: Improve grade fix strings
John Okely [Thu, 31 Aug 2017 06:38:22 +0000 (14:38 +0800)]
MDL-56646 mod_assign: Improve grade fix strings

7 years agoMDL-56646 mod_assign: Make rescale behat more specific
John Okely [Thu, 31 Aug 2017 06:22:15 +0000 (14:22 +0800)]
MDL-56646 mod_assign: Make rescale behat more specific

7 years agoMDL-59992 webservice: fix debugging message event context already set
Marina Glancy [Thu, 31 Aug 2017 04:13:15 +0000 (12:13 +0800)]
MDL-59992 webservice: fix debugging message event context already set

7 years agoMerge branch 'MDL-59927-32-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_32_...
Eloy Lafuente (stronk7) [Wed, 30 Aug 2017 09:06:09 +0000 (11:06 +0200)]
Merge branch 'MDL-59927-32-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_32_STABLE

7 years agoMDL-59815 access: Fix definition of risks for user:delete.
Peter Spicer [Wed, 30 Aug 2017 03:29:42 +0000 (11:29 +0800)]
MDL-59815 access: Fix definition of risks for user:delete.

7 years agoMDL-59927 lang: Merge English strings from the en_fix language pack
Helen Foster [Tue, 29 Aug 2017 14:01:27 +0000 (16:01 +0200)]
MDL-59927 lang: Merge English strings from the en_fix language pack

Significant string changes:

- firstpagetitle_help,mod_wiki - improved wording
- completionicons_help,core_completion - removing confusing sentence
  about the tick being optional

7 years agoMerge branch 'MDL-59195_assign_comment_permissions_32' of git://github.com/davosmith...
Dan Poltawski [Tue, 29 Aug 2017 10:59:18 +0000 (11:59 +0100)]
Merge branch 'MDL-59195_assign_comment_permissions_32' of git://github.com/davosmith/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59908-32' of git://github.com/ankitagarwal/moodle into MOODLE_32_STABLE
Jun Pataleta [Tue, 29 Aug 2017 09:42:27 +0000 (17:42 +0800)]
Merge branch 'MDL-59908-32' of git://github.com/ankitagarwal/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-56646-32' of https://github.com/xow/moodle into MOODLE_32_STABLE
Andrew Nicols [Tue, 29 Aug 2017 07:52:16 +0000 (15:52 +0800)]
Merge branch 'MDL-56646-32' of https://github.com/xow/moodle into MOODLE_32_STABLE

7 years agoMDL-56646 assign: Fix negative grades in restore
John Okely [Fri, 18 Aug 2017 06:15:37 +0000 (14:15 +0800)]
MDL-56646 assign: Fix negative grades in restore

7 years agoMDL-56646 assign: Add ability to fix errant grades
John Okely [Tue, 1 Aug 2017 07:57:55 +0000 (15:57 +0800)]
MDL-56646 assign: Add ability to fix errant grades

7 years agoMDL-59198 lti: Make params LTI2 compatible
Ankit Agarwal [Tue, 29 Aug 2017 05:01:04 +0000 (10:31 +0530)]
MDL-59198 lti: Make params LTI2 compatible

LTI2 recommends to include both upper case and lower case of custom params.
This patch makes our implementation confer to that standard.

7 years agoMerge branch 'MDL-35290-32' of https://github.com/snake/moodle into MOODLE_32_STABLE
Andrew Nicols [Tue, 29 Aug 2017 05:17:12 +0000 (13:17 +0800)]
Merge branch 'MDL-35290-32' of https://github.com/snake/moodle into MOODLE_32_STABLE

7 years agoMDL-35290 files: File manager reports files which can't be read
Jake Dallimore [Mon, 28 Aug 2017 00:43:19 +0000 (08:43 +0800)]
MDL-35290 files: File manager reports files which can't be read

7 years agoMerge branch 'MDL-59870_32-participants-th-top-vertical-aligned' of http://github...
Eloy Lafuente (stronk7) [Mon, 28 Aug 2017 23:03:49 +0000 (01:03 +0200)]
Merge branch 'MDL-59870_32-participants-th-top-vertical-aligned' of github.com/lucaboesch/moodle into MOODLE_32_STABLE

7 years agoAutomatically generated installer lang files
AMOS bot [Mon, 28 Aug 2017 16:08:21 +0000 (00:08 +0800)]
Automatically generated installer lang files

7 years agoMDL-56646 assign: Don't rescale any negative grades
John Okely [Tue, 1 Aug 2017 07:53:40 +0000 (15:53 +0800)]
MDL-56646 assign: Don't rescale any negative grades

7 years agoMDL-56646 assign: Behat test rescaling after viewing student
John Okely [Mon, 31 Jul 2017 06:37:19 +0000 (14:37 +0800)]
MDL-56646 assign: Behat test rescaling after viewing student

7 years agoMerge branch 'wip-MDL-59708-32' of git://github.com/marinaglancy/moodle into MOODLE_3...
Jun Pataleta [Mon, 28 Aug 2017 07:02:24 +0000 (15:02 +0800)]
Merge branch 'wip-MDL-59708-32' of git://github.com/marinaglancy/moodle into MOODLE_32_STABLE

7 years agoMDL-35290 files: File manager shouldn't break with lost/moved files
Jake Dallimore [Mon, 28 Aug 2017 00:41:24 +0000 (08:41 +0800)]
MDL-35290 files: File manager shouldn't break with lost/moved files

7 years agoAutomatically generated installer lang files
AMOS bot [Sun, 27 Aug 2017 16:09:46 +0000 (00:09 +0800)]
Automatically generated installer lang files

7 years agoAutomatically generated installer lang files
AMOS bot [Fri, 25 Aug 2017 16:07:31 +0000 (00:07 +0800)]
Automatically generated installer lang files

7 years agoMerge branch 'wip-MDL-59881-32' of git://github.com/abgreeve/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Thu, 24 Aug 2017 23:00:18 +0000 (01:00 +0200)]
Merge branch 'wip-MDL-59881-32' of git://github.com/abgreeve/moodle into MOODLE_32_STABLE

7 years agoMDL-59870 users: Default align participant table header row.
Luca Bösch [Tue, 22 Aug 2017 06:39:06 +0000 (08:39 +0200)]
MDL-59870 users: Default align participant table header row.

Instead of putting vertical-align: middle as indication for participants table
headers, none is set which leads to theme default, i.e. bottom in Clean and Boost.

7 years agoAutomatically generated installer lang files
AMOS bot [Thu, 24 Aug 2017 16:05:58 +0000 (00:05 +0800)]
Automatically generated installer lang files

7 years agoAutomatically generated installer lang files
AMOS bot [Thu, 24 Aug 2017 16:05:57 +0000 (00:05 +0800)]
Automatically generated installer lang files

7 years agoweekly release 3.2.4+
Eloy Lafuente (stronk7) [Thu, 24 Aug 2017 12:14:23 +0000 (14:14 +0200)]
weekly release 3.2.4+

7 years agoMDL-59908 backup: Backup rule should use both http and https schemes
Ankit Agarwal [Thu, 24 Aug 2017 05:03:49 +0000 (10:33 +0530)]
MDL-59908 backup: Backup rule should use both http and https schemes

7 years agoMDL-59908 backup: Add tests to make sure both http(s) schemes are parsed
Ankit Agarwal [Thu, 24 Aug 2017 05:03:24 +0000 (10:33 +0530)]
MDL-59908 backup: Add tests to make sure both http(s) schemes are parsed

7 years agoMerge branch 'MDL-59790-32' of git://github.com/lameze/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Wed, 23 Aug 2017 09:38:28 +0000 (11:38 +0200)]
Merge branch 'MDL-59790-32' of git://github.com/lameze/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-57412-32' of https://github.com/xow/moodle into MOODLE_32_STABLE
Andrew Nicols [Wed, 23 Aug 2017 08:58:38 +0000 (16:58 +0800)]
Merge branch 'MDL-57412-32' of https://github.com/xow/moodle into MOODLE_32_STABLE

7 years agoMDL-57412 adminlib: change linkcoursesections default to 1
John Okely [Mon, 14 Aug 2017 02:09:07 +0000 (10:09 +0800)]
MDL-57412 adminlib: change linkcoursesections default to 1

7 years agoMDL-57412 upgrade: Set linkcoursesections to 1 if boost in use
John Okely [Mon, 14 Aug 2017 06:07:12 +0000 (14:07 +0800)]
MDL-57412 upgrade: Set linkcoursesections to 1 if boost in use

7 years agoMDL-59790 core: fix tooltip for pie chart
Simey Lameze [Fri, 11 Aug 2017 03:07:29 +0000 (11:07 +0800)]
MDL-59790 core: fix tooltip for pie chart

7 years agoMerge branch 'MDL-51827_32' of git://github.com/timhunt/moodle into MOODLE_32_STABLE
Andrew Nicols [Wed, 23 Aug 2017 01:38:51 +0000 (09:38 +0800)]
Merge branch 'MDL-51827_32' of git://github.com/timhunt/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59663-32' of git://github.com/junpataleta/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Tue, 22 Aug 2017 19:04:00 +0000 (21:04 +0200)]
Merge branch 'MDL-59663-32' of git://github.com/junpataleta/moodle into MOODLE_32_STABLE

7 years agoMDL-51827 account confirm: take users to their dashboard
Tim Hunt [Fri, 18 Aug 2017 15:54:59 +0000 (16:54 +0100)]
MDL-51827 account confirm: take users to their dashboard

This is an old bit of UI inconsistency. For some reason it used to take
people to the list of all courses. Given modern Moodle usability
conventions, that does not really make sense any more.

7 years agoMerge branch 'MDL-59784-32' of git://github.com/andrewnicols/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Tue, 22 Aug 2017 10:29:01 +0000 (12:29 +0200)]
Merge branch 'MDL-59784-32' of git://github.com/andrewnicols/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59826-32' of https://github.com/snake/moodle into MOODLE_32_STABLE
Andrew Nicols [Tue, 22 Aug 2017 08:01:46 +0000 (16:01 +0800)]
Merge branch 'MDL-59826-32' of https://github.com/snake/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59825-32' of https://github.com/snake/moodle into MOODLE_32_STABLE
Andrew Nicols [Tue, 22 Aug 2017 07:35:35 +0000 (15:35 +0800)]
Merge branch 'MDL-59825-32' of https://github.com/snake/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-57775-32-xmlrpc' of git://github.com/mudrd8mz/moodle into MOODLE_32...
Jun Pataleta [Tue, 22 Aug 2017 07:00:34 +0000 (15:00 +0800)]
Merge branch 'MDL-57775-32-xmlrpc' of git://github.com/mudrd8mz/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59893-32' of https://github.com/snake/moodle into MOODLE_32_STABLE
Andrew Nicols [Tue, 22 Aug 2017 06:33:59 +0000 (14:33 +0800)]
Merge branch 'MDL-59893-32' of https://github.com/snake/moodle into MOODLE_32_STABLE

7 years agoMDL-59893 assign: don't prefix file links when downloading as folders
Jake Dallimore [Wed, 26 Jul 2017 09:03:46 +0000 (17:03 +0800)]
MDL-59893 assign: don't prefix file links when downloading as folders

Change to download_rewrite_pluginfile_urls() ensuring prefix isn't
added to file links when downloading with the  downloadasfolders
user preference set to true. Links to files in onlinetext now work
when downloading as folders.

7 years agoMDL-59893 assign: fixes for groupname prefix when downloading
Jake Dallimore [Wed, 26 Jul 2017 09:00:36 +0000 (17:00 +0800)]
MDL-59893 assign: fixes for groupname prefix when downloading

assign->download_submissions():
- groupname now only added to zip file name if not empty, fixing a
double hyphen bug in the file name.
assign->download_rewrite_pluginfile_urls():
- groupname is now correctly determined using get_submission_group()
instead of using groups_get_activity_group() which fails when there
is no active activity group set. Uses the same logic that
download_submission() uses to prefix file names. Fixes a bug where an
empty groupname prefix was generated, resulting in broken links.

7 years agoMerge branch 'MDL-57246-32-forumredirect' of git://github.com/roperto/moodle into...
Andrew Nicols [Tue, 22 Aug 2017 04:34:28 +0000 (12:34 +0800)]
Merge branch 'MDL-57246-32-forumredirect' of git://github.com/roperto/moodle into MOODLE_32_STABLE

7 years agoMDL-59881 question bank: Use supplied function parameters.
Adrian Greeve [Tue, 22 Aug 2017 01:27:18 +0000 (09:27 +0800)]
MDL-59881 question bank: Use supplied function parameters.

question_usage_by_activity::start_all_questions now uses all
three of the parameters that are defined.

7 years agoMerge branch 'MDL-55937-32' of git://github.com/ankitagarwal/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Mon, 21 Aug 2017 21:22:24 +0000 (23:22 +0200)]
Merge branch 'MDL-55937-32' of git://github.com/ankitagarwal/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59049-32' of https://github.com/snake/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Mon, 21 Aug 2017 21:09:26 +0000 (23:09 +0200)]
Merge branch 'MDL-59049-32' of https://github.com/snake/moodle into MOODLE_32_STABLE

7 years agoMDL-59195 mod_assign: add behat tests for comments error
Davo Smith [Mon, 21 Aug 2017 09:20:06 +0000 (10:20 +0100)]
MDL-59195 mod_assign: add behat tests for comments error

7 years agoMDL-59195 assignsubmission_comments: fix permission checks
Davo Smith [Wed, 19 Jul 2017 15:31:52 +0000 (16:31 +0100)]
MDL-59195 assignsubmission_comments: fix permission checks

7 years agoMDL-57412 course: Unit test get_view_url for course formats
John Okely [Thu, 27 Jul 2017 07:29:53 +0000 (15:29 +0800)]
MDL-57412 course: Unit test get_view_url for course formats

7 years agoMDL-57412 navigationlib: Respect linkcoursesections again
John Okely [Mon, 14 Aug 2017 01:24:41 +0000 (09:24 +0800)]
MDL-57412 navigationlib: Respect linkcoursesections again

7 years agoMDL-59663 course: Render the appropriate course-category tree action
Jun Pataleta [Fri, 11 Aug 2017 00:10:10 +0000 (08:10 +0800)]
MDL-59663 course: Render the appropriate course-category tree action

7 years agoMerge branch 'MDL-59836-32' of git://github.com/junpataleta/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Fri, 18 Aug 2017 10:36:40 +0000 (12:36 +0200)]
Merge branch 'MDL-59836-32' of git://github.com/junpataleta/moodle into MOODLE_32_STABLE

7 years agoMDL-59825 user: user_can_view_profile() checks all of a $user's courses
Jake Dallimore [Thu, 17 Aug 2017 03:14:33 +0000 (11:14 +0800)]
MDL-59825 user: user_can_view_profile() checks all of a $user's courses

This function used to check only those courses shared by both users
when it should have been checking all courses in which $user is
enrolled. Managers can view a user's course profile without necessarily
sharing the course (being enrolled in) with the $user.

7 years agoMDL-59836 core_amd: Use only one input event handler
Jun Pataleta [Fri, 18 Aug 2017 03:19:08 +0000 (11:19 +0800)]
MDL-59836 core_amd: Use only one input event handler

* We have duplicate input event handlers for the autocomplete element
which are both firing when the input element's value is being set.
In case an AJAX handler is defined for the autocomplete suggestions,
this causes the autocomplete suggestions so show "No suggestions" first
and then load the results from the AJAX handler a little bit later.

7 years agoMDL-59826 output: make context_header() aware of page context.
Jake Dallimore [Tue, 15 Aug 2017 07:37:33 +0000 (15:37 +0800)]
MDL-59826 output: make context_header() aware of page context.

There are times, such as when viewing a user profile within a course,
when user_can_view_profile() should be passed a course to force it to
restrict its capability checks to only the supplied course. This change
makes sure that core_renderer->context_header() calls this correctly.

7 years agoMDL-59784 core: Modal factory should listen before fetching templates
Andrew Nicols [Wed, 16 Aug 2017 04:32:46 +0000 (12:32 +0800)]
MDL-59784 core: Modal factory should listen before fetching templates

7 years agoMDL-59784 core: Modal should accept title as a promise
Andrew Nicols [Wed, 16 Aug 2017 04:31:53 +0000 (12:31 +0800)]
MDL-59784 core: Modal should accept title as a promise

7 years agoMDL-59049 badges: allows users to view badges from deleted courses
Jake Dallimore [Thu, 3 Aug 2017 05:58:27 +0000 (13:58 +0800)]
MDL-59049 badges: allows users to view badges from deleted courses

7 years agoMDL-59784 core: Refactor addblock to listen earlier
Andrew Nicols [Wed, 16 Aug 2017 04:31:21 +0000 (12:31 +0800)]
MDL-59784 core: Refactor addblock to listen earlier

7 years agoweekly release 3.2.4+
Eloy Lafuente (stronk7) [Thu, 17 Aug 2017 08:39:20 +0000 (10:39 +0200)]
weekly release 3.2.4+

7 years agoMerge branch 'install_32_STABLE' of https://git.in.moodle.com/amosbot/moodle-install...
Eloy Lafuente (stronk7) [Thu, 17 Aug 2017 08:39:19 +0000 (10:39 +0200)]
Merge branch 'install_32_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_32_STABLE

7 years agoAutomatically generated installer lang files
AMOS bot [Wed, 16 Aug 2017 16:08:48 +0000 (00:08 +0800)]
Automatically generated installer lang files

7 years agoMDL-57775 xmlrpc: Formal fix of coding style and phpdocs
David Mudrák [Tue, 15 Aug 2017 12:14:08 +0000 (14:14 +0200)]
MDL-57775 xmlrpc: Formal fix of coding style and phpdocs

- There was missing MOODLE_INTERNAL check.
- The client is not used for unit tests only so the class description
  was obsolete.

7 years agoMDL-57775 xmlrpc: Test webservice_xmlrpc_client request encoding
David Mudrák [Tue, 15 Aug 2017 12:11:16 +0000 (14:11 +0200)]
MDL-57775 xmlrpc: Test webservice_xmlrpc_client request encoding

The patch wraps the underlying xmlrpc_encode_request() call into a
standalone method that can be then unit-tested.

7 years agoMDL-57775 xmlrpc: Pass escaping to xmlrpc_encode_request() calls
David Mudrák [Tue, 15 Aug 2017 11:42:08 +0000 (13:42 +0200)]
MDL-57775 xmlrpc: Pass escaping to xmlrpc_encode_request() calls

This patch adds the missing 'escaping' option to all remaining
xmlrpc_encode_request() calls in the moodle core code.

Without this, the xmlrpc_decode_request() call on the server side may
lead to wrongly decoded non-ascii characters.

7 years agoMerge branch 'MDL-58435-m32' of https://github.com/NeillM/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Tue, 15 Aug 2017 14:35:49 +0000 (16:35 +0200)]
Merge branch 'MDL-58435-m32' of https://github.com/NeillM/moodle into MOODLE_32_STABLE

7 years agoMerge branch 'MDL-59667-32-2' of git://github.com/ryanwyllie/moodle into MOODLE_32_STABLE
Eloy Lafuente (stronk7) [Tue, 15 Aug 2017 11:13:26 +0000 (13:13 +0200)]
Merge branch 'MDL-59667-32-2' of git://github.com/ryanwyllie/moodle into MOODLE_32_STABLE