moodle.git
8 years agoMoodle release 3.0.10 MOODLE_30_STABLE v3.0.10
Eloy Lafuente (stronk7) [Sun, 7 May 2017 19:32:44 +0000 (21:32 +0200)]
Moodle release 3.0.10

8 years agoMDL-58740 block_course_overview: check session key
Marina Glancy [Fri, 28 Apr 2017 04:20:46 +0000 (12:20 +0800)]
MDL-58740 block_course_overview: check session key

Thanks to Kukas Schmidt for initial patch

8 years agoMDL-58670 blog: respect capability to search entries
Marina Glancy [Wed, 26 Apr 2017 07:04:25 +0000 (15:04 +0800)]
MDL-58670 blog: respect capability to search entries

8 years agoMDL-58635 blogs: check edited blog belongs to current user
Marina Glancy [Wed, 19 Apr 2017 04:04:47 +0000 (12:04 +0800)]
MDL-58635 blogs: check edited blog belongs to current user

8 years agoweekly release 3.0.9+
David Monllao [Wed, 3 May 2017 02:27:40 +0000 (10:27 +0800)]
weekly release 3.0.9+

8 years agoMDL-58746 core: Simplify environment check
Andrew Nicols [Wed, 3 May 2017 00:32:04 +0000 (08:32 +0800)]
MDL-58746 core: Simplify environment check

8 years agoMDL-58746 core: Add environment check for finfo
Andrew Nicols [Mon, 1 May 2017 00:51:37 +0000 (08:51 +0800)]
MDL-58746 core: Add environment check for finfo

8 years agoMDL-54901 environment: pg93 & openssl
Eloy Lafuente (stronk7) [Mon, 17 Apr 2017 15:27:07 +0000 (17:27 +0200)]
MDL-54901 environment: pg93 & openssl

8 years agoMDL-54901 environment: 3.3 base information
Eloy Lafuente (stronk7) [Mon, 17 Apr 2017 10:19:36 +0000 (12:19 +0200)]
MDL-54901 environment: 3.3 base information

This is a direct copy of the 3.2 branch to
have changes under control easier in next commits.

8 years agoMoodle release 3.0.9 v3.0.9
Eloy Lafuente (stronk7) [Sat, 11 Mar 2017 21:15:54 +0000 (22:15 +0100)]
Moodle release 3.0.9

8 years agoMDL-58010 user: allow to update only whitelisted preferences
Marina Glancy [Sat, 4 Mar 2017 04:22:12 +0000 (12:22 +0800)]
MDL-58010 user: allow to update only whitelisted preferences

8 years agoweekly release 3.0.8+
Eloy Lafuente (stronk7) [Thu, 26 Jan 2017 23:27:49 +0000 (00:27 +0100)]
weekly release 3.0.8+

8 years agoMerge branch 'MDL-57639-30' of git://github.com/andrewnicols/moodle into MOODLE_30_STABLE
Dan Poltawski [Tue, 24 Jan 2017 10:11:26 +0000 (10:11 +0000)]
Merge branch 'MDL-57639-30' of git://github.com/andrewnicols/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-57677-30-usermodified' of git://github.com/mudrd8mz/moodle into...
Dan Poltawski [Mon, 23 Jan 2017 09:49:49 +0000 (09:49 +0000)]
Merge branch 'MDL-57677-30-usermodified' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE

8 years agoMDL-57639 mod_forum: Update to use correct variable name
Andrew Nicols [Thu, 19 Jan 2017 05:47:40 +0000 (13:47 +0800)]
MDL-57639 mod_forum: Update to use correct variable name

This addresses a regression where unnecessary attributes were removed
from the old variable. This one was missed.

8 years agoMDL-57677 mod_forum: Fix wrong user displayed as the last post's author
David Mudrák [Tue, 17 Jan 2017 18:27:57 +0000 (19:27 +0100)]
MDL-57677 mod_forum: Fix wrong user displayed as the last post's author

In the recent issue MDL-56225, we started to record the current user as
the usermodified in the forum_discussions table when updating a forum
post. It made sense but it was a mistake.

Even if the current user really modifies the discussion by updating the
post, the field usermodified has actually been always interpreted and
displayed as the last post' author. Not as the last user who touched the
discussion.

This patch reverts that particular change to the previous behaviour and
adds explicit unit test for it.

8 years agoMoodle release 3.0.8 v3.0.8
Eloy Lafuente (stronk7) [Sun, 8 Jan 2017 10:04:22 +0000 (11:04 +0100)]
Moodle release 3.0.8

8 years agoMerge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install...
Eloy Lafuente (stronk7) [Sun, 8 Jan 2017 10:04:18 +0000 (11:04 +0100)]
Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE

8 years agoMDL-57580 mod_assign: Fix the incorrect type of some input parameters
David Mudrák [Thu, 5 Jan 2017 12:20:59 +0000 (13:20 +0100)]
MDL-57580 mod_assign: Fix the incorrect type of some input parameters

The PARAM_TEXT has been misused in certain cases here. The 'action'
parameter seems to always be alphabetic, with values like
savesubmission, editsubmission and others as handled in assign::view().

Fixing the action handling fixes the reported XSS issue. While working
on it, I spotted two more places where PARAM_TEXT does not seem
appropriate. I include changes for them too, even if they are no
strictly related to the reported bug and there are no known ways to
abuse it.

* The 'plugin' looks like PARAM_PLUGIN and is even declared as such in
  some other parts of the assignment code (such as feedback forms).

* The 'workflowstate' is one of the ASSIGN_MARKING_WORKFLOW_STATE
  constants and is supposed to be alpha in external function input
  parameters handling, too.

8 years agoMDL-57531 behat: Set noreplyaddress to valid address
Rajesh Taneja [Thu, 5 Jan 2017 06:40:16 +0000 (14:40 +0800)]
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

8 years agoMDL-57531 mail: Validate the sender's email address
David Mudrák [Wed, 4 Jan 2017 12:05:03 +0000 (13:05 +0100)]
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.

8 years agoMDL-57531 mail: Do not let admins set invalid email addresses
David Mudrák [Wed, 4 Jan 2017 11:30:18 +0000 (12:30 +0100)]
MDL-57531 mail: Do not let admins set invalid email addresses

The noreply and support emails should always be valid.

8 years agoMDL-56225 mod_forum: Fix inability to edit attachments
David Mudrák [Wed, 4 Jan 2017 09:58:44 +0000 (10:58 +0100)]
MDL-56225 mod_forum: Fix inability to edit attachments

The 'attachments' is not a real DB field here. It comes from the form's
filepicker and holds the id of the attachments filearea. The function
forum_add_attachment() expects it as a property of the first argument.

There were two possible approaches here. Either to pass the raw $newpost
to forum_add_attachment(), or add the attachments into the list
modifiable fields. The second approach is safer.

8 years agoMDL-56225 mod_forum: Remove unnecessary attributes from update
Andrew Nicols [Fri, 7 Oct 2016 02:56:29 +0000 (10:56 +0800)]
MDL-56225 mod_forum: Remove unnecessary attributes from update

8 years agoAutomatically generated installer lang files
AMOS bot [Wed, 7 Dec 2016 16:05:43 +0000 (00:05 +0800)]
Automatically generated installer lang files

8 years agoweekly release 3.0.7+
Dan Poltawski [Fri, 2 Dec 2016 15:18:06 +0000 (15:18 +0000)]
weekly release 3.0.7+

8 years agoMerge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install...
Dan Poltawski [Fri, 2 Dec 2016 15:18:05 +0000 (15:18 +0000)]
Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-57193-30-notest' of git://github.com/FMCorz/moodle into MOODLE_30_S...
Eloy Lafuente (stronk7) [Fri, 2 Dec 2016 10:41:25 +0000 (11:41 +0100)]
Merge branch 'MDL-57193-30-notest' of git://github.com/FMCorz/moodle into MOODLE_30_STABLE

8 years agoMDL-57193 auth_db: Flip the array outside the loop for better perf
Frederic Massart [Fri, 2 Dec 2016 08:02:00 +0000 (16:02 +0800)]
MDL-57193 auth_db: Flip the array outside the loop for better perf

Also as the recent changes where affecting the whitespaces quite
a lot, I took the liberty of aligning a few lines which weren't.

8 years agoMDL-57193 auth_db: Use a recordset and array_key_exists
John Okely [Fri, 2 Dec 2016 06:34:18 +0000 (14:34 +0800)]
MDL-57193 auth_db: Use a recordset and array_key_exists

8 years agoMDL-57193 auth_db: Fixed bug suspends all users if external DB has > 10k
Josh Willcock [Tue, 29 Nov 2016 17:55:04 +0000 (17:55 +0000)]
MDL-57193 auth_db: Fixed bug suspends all users if external DB has > 10k

8 years agoAutomatically generated installer lang files
AMOS bot [Wed, 30 Nov 2016 16:06:02 +0000 (00:06 +0800)]
Automatically generated installer lang files

8 years agoMerge branch 'MOODLE_30_STABLE' into install_30_STABLE
AMOS bot [Wed, 30 Nov 2016 16:06:02 +0000 (00:06 +0800)]
Merge branch 'MOODLE_30_STABLE' into install_30_STABLE

8 years agoAutomatically generated installer lang files
AMOS bot [Tue, 29 Nov 2016 16:05:00 +0000 (00:05 +0800)]
Automatically generated installer lang files

8 years agoweekly release 3.0.7+
Dan Poltawski [Tue, 29 Nov 2016 13:32:27 +0000 (13:32 +0000)]
weekly release 3.0.7+

8 years agoMerge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install...
Dan Poltawski [Tue, 29 Nov 2016 13:32:25 +0000 (13:32 +0000)]
Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-57163-30' of https://github.com/vvzh/moodle into MOODLE_30_STABLE
David Monllao [Tue, 29 Nov 2016 03:43:31 +0000 (11:43 +0800)]
Merge branch 'MDL-57163-30' of https://github.com/vvzh/moodle into MOODLE_30_STABLE

8 years agoMDL-57170 repository_dropbox: Ensure Dropbox Legacy continues to work
Tim Lock [Mon, 28 Nov 2016 00:02:49 +0000 (10:32 +1030)]
MDL-57170 repository_dropbox: Ensure Dropbox Legacy continues to work

8 years agoMDL-57163 installation: fixed "Call to undefined function curl_version"
Vladimir Zhirov [Sat, 26 Nov 2016 19:42:54 +0000 (23:42 +0400)]
MDL-57163 installation: fixed "Call to undefined function curl_version"

8 years agoAutomatically generated installer lang files
AMOS bot [Sat, 26 Nov 2016 16:06:05 +0000 (00:06 +0800)]
Automatically generated installer lang files

8 years agoMerge branch 'MOODLE_30_STABLE' into install_30_STABLE
AMOS bot [Fri, 25 Nov 2016 16:04:47 +0000 (00:04 +0800)]
Merge branch 'MOODLE_30_STABLE' into install_30_STABLE

8 years agoweekly release 3.0.7+
David Monllao [Fri, 25 Nov 2016 07:56:29 +0000 (15:56 +0800)]
weekly release 3.0.7+

8 years agoMDL-56948 mod_assign: Don't call get_grade_item() unless we have one
Tony Butler [Fri, 28 Oct 2016 16:19:09 +0000 (17:19 +0100)]
MDL-56948 mod_assign: Don't call get_grade_item() unless we have one

8 years agoMDL-57100 JS: Exceptions give exceptions
Damyon Wiese [Tue, 22 Nov 2016 13:54:03 +0000 (21:54 +0800)]
MDL-57100 JS: Exceptions give exceptions

Exceptions returned from ajax are not in the format expected by the JS, so
an error occurs and the exception popups are not appearing.

Conflicts:
lib/amd/build/notification.min.js
lib/amd/src/notification.js

8 years agoAutomatically generated installer lang files
AMOS bot [Tue, 22 Nov 2016 16:05:30 +0000 (00:05 +0800)]
Automatically generated installer lang files

8 years agoAutomatically generated installer lang files
AMOS bot [Thu, 17 Nov 2016 16:07:02 +0000 (00:07 +0800)]
Automatically generated installer lang files

8 years agoAutomatically generated installer lang files
AMOS bot [Wed, 16 Nov 2016 16:04:55 +0000 (00:04 +0800)]
Automatically generated installer lang files

8 years agoMoodle release 3.0.7 v3.0.7
Eloy Lafuente (stronk7) [Sat, 12 Nov 2016 19:21:29 +0000 (20:21 +0100)]
Moodle release 3.0.7

8 years agoAutomatically generated installer lang files
AMOS bot [Fri, 11 Nov 2016 16:29:19 +0000 (00:29 +0800)]
Automatically generated installer lang files

8 years agoweekly release 3.0.6+
Dan Poltawski [Fri, 11 Nov 2016 12:05:49 +0000 (12:05 +0000)]
weekly release 3.0.6+

8 years agoMerge branch 'MDL-55121-30' of git://github.com/lameze/moodle into MOODLE_30_STABLE
Andrew Nicols [Fri, 11 Nov 2016 07:13:52 +0000 (15:13 +0800)]
Merge branch 'MDL-55121-30' of git://github.com/lameze/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-55994_30' of https://github.com/bostelm/moodle into MOODLE_30_STABLE
Andrew Nicols [Fri, 11 Nov 2016 06:00:24 +0000 (14:00 +0800)]
Merge branch 'MDL-55994_30' of https://github.com/bostelm/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-56417_30' of https://github.com/dmonllao/moodle into MOODLE_30_STABLE
Andrew Nicols [Fri, 11 Nov 2016 04:00:23 +0000 (12:00 +0800)]
Merge branch 'MDL-56417_30' of https://github.com/dmonllao/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-52216_30_STABLE' of https://github.com/eugeneventer/moodle-fixes...
Andrew Nicols [Fri, 11 Nov 2016 03:22:51 +0000 (11:22 +0800)]
Merge branch 'MDL-52216_30_STABLE' of https://github.com/eugeneventer/moodle-fixes into MOODLE_30_STABLE

8 years agoMDL-55121 environment: check for unsuported php version 7.1
Simey Lameze [Tue, 4 Oct 2016 04:06:10 +0000 (12:06 +0800)]
MDL-55121 environment: check for unsuported php version 7.1

8 years agoMDL-52216 mod_lesson: prevent invalid view modes
Eugene Venter [Mon, 31 Oct 2016 21:10:21 +0000 (10:10 +1300)]
MDL-52216 mod_lesson: prevent invalid view modes

8 years agoMDL-55994 blog: Resolve warning messages in RSS feed generation
Henning Bostelmann [Thu, 10 Nov 2016 16:33:58 +0000 (16:33 +0000)]
MDL-55994 blog: Resolve warning messages in RSS feed generation

8 years agoMerge branch 'MDL-56623_30-messages-to-adressed-to-until' of git://github.com/lucaboe...
Dan Poltawski [Thu, 10 Nov 2016 15:04:35 +0000 (15:04 +0000)]
Merge branch 'MDL-56623_30-messages-to-adressed-to-until' of git://github.com/lucaboesch/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-55249_m30v1' of https://github.com/sbourget/moodle into MOODLE_30_S...
Dan Poltawski [Thu, 10 Nov 2016 15:01:44 +0000 (15:01 +0000)]
Merge branch 'MDL-55249_m30v1' of https://github.com/sbourget/moodle into MOODLE_30_STABLE

8 years agoMDL-55777 version: bump
Dan Poltawski [Thu, 10 Nov 2016 13:48:16 +0000 (13:48 +0000)]
MDL-55777 version: bump

8 years agoMerge branch 'MDL-55777-30' of git://github.com/ankitagarwal/moodle into MOODLE_30_STABLE
Dan Poltawski [Thu, 10 Nov 2016 13:46:47 +0000 (13:46 +0000)]
Merge branch 'MDL-55777-30' of git://github.com/ankitagarwal/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-53481-30-uniqsqlparam' of git://github.com/mudrd8mz/moodle into...
Eloy Lafuente (stronk7) [Thu, 10 Nov 2016 12:16:06 +0000 (13:16 +0100)]
Merge branch 'MDL-53481-30-uniqsqlparam' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE

8 years agoMDL-56623 messages: To (addressed) and to (until) different
Luca Bösch [Thu, 10 Nov 2016 10:13:05 +0000 (11:13 +0100)]
MDL-56623 messages: To (addressed) and to (until) different

In some languages "to" having the meaning of "until" and "to" having the meaning of "addressed to" are different.
This should be taken care of by having two different translation terms.

AMOS BEGIN
  CPY [to,core],[addressedto,core]
AMOS END

8 years agoMDL-53481 availability: Fix unit test to not execute the huge query
David Mudrák [Thu, 10 Nov 2016 08:52:31 +0000 (09:52 +0100)]
MDL-53481 availability: Fix unit test to not execute the huge query

Some DBs have troubles to execute such a huge query as generated in this
test. We do not actually need to execute it. All we need is to make sure
that the parameter placeholders are enumerated correctly. So it is what
this new test does.

8 years agoMDL-56417 session: Respect the return value of ignore_timeout_hook.
Nicholas Hoobin [Thu, 13 Oct 2016 04:31:31 +0000 (15:31 +1100)]
MDL-56417 session: Respect the return value of ignore_timeout_hook.

8 years agoMDL-55777 installation: Check libcurl version on install
Ankit Agarwal [Wed, 2 Nov 2016 10:36:20 +0000 (16:06 +0530)]
MDL-55777 installation: Check libcurl version on install

8 years agoMDL-56268 webservice: Format backtrace to avoid display private datawq
Juan Leyva [Mon, 7 Nov 2016 12:46:11 +0000 (12:46 +0000)]
MDL-56268 webservice: Format backtrace to avoid display private datawq

8 years agoMDL-51347 core_notes: check view notes capability by course context
Simey Lameze [Mon, 17 Oct 2016 08:07:16 +0000 (16:07 +0800)]
MDL-51347 core_notes: check view notes capability by course context

8 years agoMDL-53744 question file access: fix access checks
Tim Hunt [Mon, 26 Sep 2016 18:46:22 +0000 (19:46 +0100)]
MDL-53744 question file access: fix access checks

8 years agoMDL-56065 user: Fix update_users Web Service
Juan Leyva [Thu, 22 Sep 2016 09:52:11 +0000 (10:52 +0100)]
MDL-56065 user: Fix update_users Web Service

Users won’t be updated if:
- They are admins and the user updating is not
- They are the guest user
- They are mnet users
- They are deleted users

8 years agoMerge branch 'MDL-56753-30' of git://github.com/lameze/moodle into MOODLE_30_STABLE
David Monllao [Thu, 10 Nov 2016 03:39:15 +0000 (11:39 +0800)]
Merge branch 'MDL-56753-30' of git://github.com/lameze/moodle into MOODLE_30_STABLE

8 years agoMDL-56753 mod_assign: behat tests for groups and grouping counting
Simey Lameze [Thu, 10 Nov 2016 01:59:11 +0000 (09:59 +0800)]
MDL-56753 mod_assign: behat tests for groups and grouping counting

8 years agoMDL-56753 mod_assign: fix groups and submitted counting on grading summary
Simey Lameze [Tue, 8 Nov 2016 01:40:18 +0000 (09:40 +0800)]
MDL-56753 mod_assign: fix groups and submitted counting on grading summary

This also fixes a coding error that was displayed when a group was not part of
assignment grouping.

8 years agoMerge branch 'MDL-55883_m30v1' of https://github.com/sbourget/moodle into MOODLE_30_S...
Andrew Nicols [Thu, 10 Nov 2016 03:14:28 +0000 (11:14 +0800)]
Merge branch 'MDL-55883_m30v1' of https://github.com/sbourget/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-56755-m30' of https://github.com/micaherne/moodle into MOODLE_30_STABLE
Andrew Nicols [Wed, 9 Nov 2016 07:45:26 +0000 (15:45 +0800)]
Merge branch 'MDL-56755-m30' of https://github.com/micaherne/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-56726-30-cfgadmin' of git://github.com/mudrd8mz/moodle into MOODLE_...
Andrew Nicols [Wed, 9 Nov 2016 06:52:46 +0000 (14:52 +0800)]
Merge branch 'MDL-56726-30-cfgadmin' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-56133-m30' of https://github.com/NeillM/moodle into MOODLE_30_STABLE
David Monllao [Wed, 9 Nov 2016 06:24:21 +0000 (14:24 +0800)]
Merge branch 'MDL-56133-m30' of https://github.com/NeillM/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-53481-30-uniqsqlparam' of git://github.com/mudrd8mz/moodle into...
David Monllao [Wed, 9 Nov 2016 04:50:20 +0000 (12:50 +0800)]
Merge branch 'MDL-53481-30-uniqsqlparam' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE

8 years agoMDL-53481 availability: Fix uniqueness of SQL named param placeholders
David Mudrák [Tue, 8 Nov 2016 10:07:53 +0000 (11:07 +0100)]
MDL-53481 availability: Fix uniqueness of SQL named param placeholders

Static variables do not behave the way you might expect when accessing
them through the classes inheritance. When accessing a method via self::
or static:: operators, even though the method is inherited, its variable
scope is not. So the method unique_sql_parameter() was using the scope
of the child class and each child class had its own sequence of usp1,
usp2, usp3, ... placeholders. This led to "Incorrect number of query
parameters" error when multiuple condition classes were contributing to
a single SQL query.

All credit should go to Adam Olley who debugged and described the
essence of the problem in the tracker.

8 years agoMDL-56133 tool_langimport: Changes should be visible after import
Neill Magill [Mon, 31 Oct 2016 10:48:15 +0000 (10:48 +0000)]
MDL-56133 tool_langimport: Changes should be visible after import

Before this change if a language pack was updated by the
\tool_langimport\task\update_langpacks_task scheduled task, changes
would not be available to users until an admin manually cleared the
strings cache.

This change causes the cache to purged when a language pack it update,
this will cause it to rebuild so users will start seeing updates
automatically.

8 years agoweekly release 3.0.6+
Dan Poltawski [Tue, 8 Nov 2016 10:16:36 +0000 (10:16 +0000)]
weekly release 3.0.6+

8 years agoMerge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install...
Dan Poltawski [Tue, 8 Nov 2016 10:16:35 +0000 (10:16 +0000)]
Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE

8 years agoMDL-56755 assign: Improve documentation of assign::get_grade_item()
Michael Aherne [Fri, 4 Nov 2016 11:32:21 +0000 (11:32 +0000)]
MDL-56755 assign: Improve documentation of assign::get_grade_item()

8 years agoMerge branch 'wip-MDL-56120-30' of git://github.com/abgreeve/moodle into MOODLE_30_STABLE
Andrew Nicols [Tue, 8 Nov 2016 02:50:31 +0000 (10:50 +0800)]
Merge branch 'wip-MDL-56120-30' of git://github.com/abgreeve/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-53718_30' of git://github.com/aolley/moodle into MOODLE_30_STABLE
David Monllao [Tue, 8 Nov 2016 02:00:01 +0000 (10:00 +0800)]
Merge branch 'MDL-53718_30' of git://github.com/aolley/moodle into MOODLE_30_STABLE

8 years agoMDL-56120 calendar: Unit tests for getting events.
Adrian Greeve [Tue, 8 Nov 2016 00:35:34 +0000 (08:35 +0800)]
MDL-56120 calendar: Unit tests for getting events.

Added a unit test for checking that calendar_get_events
will only return events for activated activities.

8 years agoMDL-56120 calendar: Fix disabled modules showing events.
Adrian Greeve [Tue, 8 Nov 2016 00:34:36 +0000 (08:34 +0800)]
MDL-56120 calendar: Fix disabled modules showing events.

calendar_get_events now checks for disabled activities
and only shows evetns for active modules.

8 years agoMerge branch 'MDL-56765-30' of git://github.com/jleyva/moodle into MOODLE_30_STABLE
Eloy Lafuente (stronk7) [Tue, 8 Nov 2016 00:27:58 +0000 (01:27 +0100)]
Merge branch 'MDL-56765-30' of git://github.com/jleyva/moodle into MOODLE_30_STABLE

8 years agoMDL-54916 filestorage: Only write empty zip on change.
Russell Smith [Tue, 25 Oct 2016 03:10:36 +0000 (14:10 +1100)]
MDL-54916 filestorage: Only write empty zip on change.

In some cases we may inspect an empty zip file. If we do open
an empty zip file, check that it changed before we attempt to write
it to disk.  It may be the case that we were reading the file from
a location that we don't have write access to.

8 years agoMDL-53718 badges: Dont display course badges when disabled
Adam Olley [Thu, 3 Nov 2016 23:48:25 +0000 (10:18 +1030)]
MDL-53718 badges: Dont display course badges when disabled

8 years agoMerge branch 'MDL-56129-30' of git://github.com/andrewnicols/moodle into MOODLE_30_STABLE
David Monllao [Mon, 7 Nov 2016 03:16:34 +0000 (11:16 +0800)]
Merge branch 'MDL-56129-30' of git://github.com/andrewnicols/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-56731_30_STABLE' of https://github.com/tonynlin/moodle into MOODLE_...
David Monllao [Mon, 7 Nov 2016 02:45:22 +0000 (10:45 +0800)]
Merge branch 'MDL-56731_30_STABLE' of https://github.com/tonynlin/moodle into MOODLE_30_STABLE

8 years agoMDL-56129 core: Change HTTP error code for iOS 10 video playback
Jonathon Fowler [Mon, 7 Nov 2016 01:55:11 +0000 (09:55 +0800)]
MDL-56129 core: Change HTTP error code for iOS 10 video playback

This patch changes the effective response code from a 407 to a 403 when
erroring on iOS 10 and when a HTTP_X_PLAYBACK_SESSION_ID HTTP header is
found.

This causes the iOS Media framework to send the cookie with the request
which subsequently succeeds.

8 years agoAutomatically generated installer lang files
AMOS bot [Sun, 6 Nov 2016 16:05:02 +0000 (00:05 +0800)]
Automatically generated installer lang files

8 years agoMDL-56765 webservice: After a new session is started unset old preferences
Juan Leyva [Fri, 4 Nov 2016 15:51:05 +0000 (15:51 +0000)]
MDL-56765 webservice: After a new session is started unset old preferences

8 years agoMerge branch 'wip-MDL-54986-30' of https://github.com/Beedell/moodle into MOODLE_30_S...
Dan Poltawski [Fri, 4 Nov 2016 14:31:19 +0000 (14:31 +0000)]
Merge branch 'wip-MDL-54986-30' of https://github.com/Beedell/moodle into MOODLE_30_STABLE

8 years agoMerge branch 'MDL-53945_30' of git://github.com/aolley/moodle into MOODLE_30_STABLE
Dan Poltawski [Fri, 4 Nov 2016 14:07:27 +0000 (14:07 +0000)]
Merge branch 'MDL-53945_30' of git://github.com/aolley/moodle into MOODLE_30_STABLE

8 years agoMDL-56731 groups: Fixes breadcrumb when returning to groups/index.php
Tony Lin [Thu, 3 Nov 2016 11:35:25 +0000 (11:35 +0000)]
MDL-56731 groups: Fixes breadcrumb when returning to groups/index.php

8 years agoweekly release 3.0.6+
Dan Poltawski [Fri, 4 Nov 2016 11:17:55 +0000 (11:17 +0000)]
weekly release 3.0.6+

8 years agoMDL-56673 tool_templatelibrary: fix externallib backwards compat
Dan Poltawski [Fri, 4 Nov 2016 09:59:36 +0000 (09:59 +0000)]
MDL-56673 tool_templatelibrary: fix externallib backwards compat

The function now matches the VALUE_DEFAULT option of the service.