Commit Graph

77399 Commits

Author SHA1 Message Date
Russell Smith ffd94de398 MDL-55272 lib: Allow random_bytes() to return large values.
PHP has a recursion limit and random_bytes on PHP5.6 without openssl
will error if sent a large value.  Using a loop has lower overhead than
recursion as well.
2016-08-16 12:16:45 +10:00
Andrew Nicols d418f42040 weekly release 3.0.5+ 2016-08-11 13:17:12 +08:00
Andrew Nicols 02d570966a Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE 2016-08-11 13:17:08 +08:00
AMOS bot 3ea6de7502 Automatically generated installer lang files 2016-08-10 00:05:07 +08:00
Dan Poltawski c6cb45fce7 Merge branch 'wip-MDL-55425-30' of git://github.com/marinaglancy/moodle into MOODLE_30_STABLE 2016-08-09 10:58:42 +01:00
Dan Poltawski 7502cdf6c6 MDL-51078 report_log: use simpler/faster str_split over preg_split 2016-08-09 09:09:15 +01:00
Stephen Bourget d1a50dce98 MDL-51078 report_log: Allow filtering by all changes 2016-08-09 09:09:09 +01:00
Andrew Nicols 95cc9d3b53 Merge branch 'wip-mdl-55329-m30' of https://github.com/rajeshtaneja/moodle into MOODLE_30_STABLE 2016-08-09 14:28:19 +08:00
Andrew Nicols c8c910b1bd MDL-55274 mod_chat: Add unit tests for special commands 2016-08-09 10:49:53 +08:00
Andrew Nicols 6c0deebbd9 Merge branch 'MDL-55274-30' of git://github.com/lameze/moodle into MOODLE_30_STABLE 2016-08-09 10:49:47 +08:00
Dan Poltawski 771f142254 Merge branch 'MDL-55398_m30v1' of https://github.com/sbourget/moodle into MOODLE_30_STABLE 2016-08-08 10:40:50 +01:00
Mark Nielsen 339ca4ca04 MDL-55453 core_lib: Fix usage of js_send_uncached 2016-08-08 09:54:22 +01:00
Russell Smith 42a4a52a4c MDL-55292 performance: Allow Tideways profiler extension.
PHP7 doesn't have any default XHProf support and all other
investigated forks don't have stable PHP7.  Tideways is under
active development and is easy to install.  The data format
is compatible with XHProf so it is a drop-in replacement in that way.
2016-08-08 15:26:42 +08:00
Nick Phillips 06c9734dc8 MDL-55274 mod_chat: regain beep and / command in mod_chat.
format_text cannot be called on the whole input text, but must be
called on user-supplied text that will be output into chats. This
means it cannot simply be called in one place, but must instead be
called on the relevant parts of text once commands have been matched.
2016-08-08 12:29:32 +08:00
Andrew Nicols 2cfeebee65 Merge branch 'MDL-55454_30' of git://github.com/timhunt/moodle into MOODLE_30_STABLE 2016-08-08 10:04:18 +08:00
AMOS bot 32a9efd6dc Automatically generated installer lang files 2016-08-06 00:05:20 +08:00
Marina Glancy 6ed74faf27 MDL-55425 user: allow to update another user editor pref 2016-08-05 09:39:36 +08:00
Andrew Nicols e7c8da0fb8 weekly release 3.0.5+ 2016-08-04 09:58:53 +08:00
Andrew Nicols 4c9af61327 Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE 2016-08-04 09:58:50 +08:00
Rajesh Taneja 0944b1641a MDL-54656 behat: Skip test if db family is not mysql or postgres 2016-08-04 08:47:42 +08:00
Tim Hunt f19f239c98 MDL-55454 quiz: loses shufflequestion setting restoring old backups 2016-08-03 18:43:28 +01:00
Eloy Lafuente (stronk7) b7f6ea3578 Merge branch 'MDL-54656_m30v3' of https://github.com/sbourget/moodle into MOODLE_30_STABLE 2016-08-03 00:51:52 +02:00
Eloy Lafuente (stronk7) 95086f294b Merge branch 'MDL-55166-30-blocksettings' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE 2016-08-03 00:34:11 +02:00
Dan Poltawski a896f02f1f MDL-54847 tests: fix unused var 2016-08-02 20:16:45 +01:00
Cameron Ball 4f9a64b6ff MDL-54847 weblib: Test media attributes individually 2016-08-02 20:16:41 +01:00
Dan Poltawski 10ba40f1c3 Merge branch 'wip-MDL-33741-m30' of git://github.com/marinaglancy/moodle into MOODLE_30_STABLE 2016-08-02 12:20:33 +01:00
Dan Poltawski 6e882379f4 Merge branch 'MDL-54847-30' of git://github.com/cameron1729/moodle into MOODLE_30_STABLE 2016-08-02 10:59:55 +01:00
Cameron Ball d2d65178fa MDL-54847 weblib: Support basic HTML media tags 2016-08-02 15:55:39 +08:00
Andrew Nicols 500e6d4519 Merge branch 'MDL-55376-30-fix' of git://github.com/cameron1729/moodle into MOODLE_30_STABLE 2016-08-02 12:06:29 +08:00
Cameron Ball 4847d73829 MDL-55376 mod_assign: Update behat test 2016-08-02 10:43:37 +08:00
Stephen Bourget 8ecd647160 MDL-55398 mod_feedback: prevent direct script access to lib files. 2016-08-01 20:56:14 -04:00
Dan Poltawski 79598473d2 Merge branch 'MDL-55360-30-workshopgradepass' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE 2016-08-01 18:57:22 +01:00
AMOS bot 8312bbfd7c Automatically generated installer lang files 2016-08-02 00:04:37 +08:00
Dan Poltawski 32949a75a7 MDL-55376 assign: trailing whitespace 2016-08-01 16:08:02 +01:00
Dan Poltawski 2e9332b85d Merge branch 'MDL-55376-30' of git://github.com/cameron1729/moodle into MOODLE_30_STABLE 2016-08-01 16:06:58 +01:00
Dan Poltawski b907a57262 Merge branch 'MDL-53691-M30' of git://github.com/lazydaisy/moodle into MOODLE_30_STABLE 2016-08-01 11:47:44 +01:00
Andrew Nicols cc3126b724 Merge branch 'MDL-53152-30' of git://github.com/junpataleta/moodle into MOODLE_30_STABLE 2016-08-01 15:08:14 +08:00
Jun Pataleta b5eaf7a60a MDL-53152 theme: Add parentheses to variable calculations 2016-08-01 13:43:30 +08:00
Marina Glancy 4fdeed4bec MDL-33741 file_info: show courses in hidden categories
This also has a couple of bugfixes:
- file_info_context_system::get_children() was looking for courses with parent=0, it is impossible, block removed;
- file_info_context_coursecat::get_area_coursecat_description() was checking the wrong capability to view files in description
2016-08-01 09:15:22 +08:00
Marina Glancy d9bea44f18 MDL-33741 file_info: check capability when serving file in coursecat description 2016-08-01 09:15:15 +08:00
Cameron Ball b61059dbd2 MDL-55376 mod_assign: Fix bug stopping admin from editing submissions 2016-07-29 19:09:07 +08:00
AMOS bot 306c38dfcd Automatically generated installer lang files 2016-07-29 00:06:01 +08:00
David Mudrák 4d5707a128 MDL-55360 workshop: Add tests for setting grades to pass via mod form
These scenarios should cover common cases of defining the grades to pass
pass via the workshop settings form. Note that behaviour of the fields
in terms of locale-specific decimals input (MDL-51806) is not covered
with these tests as I want to avoid installation of additional language
pack. Instead, I assume that functionality of unformat_float() is tested
separately in the core.
2016-07-28 09:54:46 +02:00
David Mudrák 2510fae394 MDL-55360 workshop: Emptying grades to pass should set them to zero
When editing existing workshop with a grade to pass defined, when the
field is emptied, it should be interpreted as setting it to zero. This
was not happening because unformat_float replaces the field with null,
therefore effectively unsetting it.

By casting to float, we interpret all empty values (including null) as
zeros. This behaviour is consistent with how gradebook setup UI works.
2016-07-28 09:54:46 +02:00
David Mudrák cd830f4e2c MDL-55360 workshop: Allow creating workshops with empty grades to pass
As a regression of MDL-55360, it was not possible to create new
workshops if the field "Submission grade to pass" or "Assessment grade
to pass" was left empty. The validation failed with "You must enter a
number here".

The fields submissiongradepass and gradinggradepass are always present
as we explicitly define them in the mod form. So the isset() condition
in the validation was useless and it did not allow to submit the form
with these fields empty.

Additionally, the unformat_float() returns null only if it receives
empty value on the input. Which can't happen in our case so I am
removing this condition to improve the readability of the code.
2016-07-28 09:54:46 +02:00
David Monllao bcf700b088 weekly release 3.0.5+ 2016-07-28 12:07:23 +08:00
David Mudrák 5914ef444c MDL-55166 admin: Fix display of misleading debug warning on manage block
Blocks can declare has_config() as true without actually using the
default node in the admin tree. Typical use case is when the block
injects its settings to other parts of the admin tree and it assigns
null to its $setting node in its settings.php file.

As Janek L.B. correctly spotted, this led to false debugging message
on admin/blocks.php as the code interpreted it as missing settings.php
file.

The patch adds explicit file existence test for this rare case.
2016-07-27 23:16:34 +02:00
Rajesh Taneja 7c74b0aeb8 MDL-55329 behat: PyStrings should end with : (colon) 2016-07-27 07:02:34 +08:00
Rajesh Taneja d574272a0c MDL-55337 behat: After posting click to redirect page 2016-07-27 06:39:40 +08:00
lazydaisy d9d3ec4e55 MDL-53691 theme_bootstrapbase: Backport of MDL-53147 2016-07-26 21:43:44 +01:00