Compare commits

..

8088 Commits

Author SHA1 Message Date
Dan Poltawski 258d07d37e Moodle release 3.2beta
Make Moodle Great Again ;-)
2016-11-08 10:25:31 +00:00
Dan Poltawski fc760dd19e NOBUG: Fixed SVG browser compatibility 2016-11-08 10:19:16 +00:00
Dan Poltawski 060171774b Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-11-08 10:19:15 +00:00
Rajesh Taneja e4c98de168 MDL-56630 behat: Click on link in specificed block/region 2016-11-08 18:06:09 +08:00
David Monllao d72c9774ae Merge branch 'wip-mdl-56630' of git://github.com/rajeshtaneja/moodle 2016-11-08 14:47:25 +08:00
Rajesh Taneja dc90838aaa MDL-56630 behat: Click on link in specificed block/region 2016-11-08 14:45:43 +08:00
Andrew Nicols 3739b8b886 Merge branch 'wip-mdl-55215' of https://github.com/rajeshtaneja/moodle 2016-11-08 14:31:33 +08:00
Rajesh Taneja eaefd5bc57 MDL-55215 behat: autocomplete field requires javascript 2016-11-08 14:21:52 +08:00
Jake Dallimore 89e20c74d5 MDL-54751 core_course: Fixed event type checks in adhoc deletion tests 2016-11-08 13:53:00 +08:00
Andrew Nicols 3e85e02a98 Merge branch 'MDL-55992-master' of git://github.com/jleyva/moodle 2016-11-08 13:41:22 +08:00
Andrew Nicols 11361f35be MDL-56737 externallib: Fetch token after inserting 2016-11-08 12:45:57 +08:00
David Monllao dc3852ae1e Merge branch 'MDL-56601-master-3' of git://github.com/cameron1729/moodle 2016-11-08 12:25:31 +08:00
Cameron Ball c86500a4b7 MDL-56601 core_user: Disable profile picture field if user is not setup
Sometimes it is possible that a user is presented with the profile
edit form, but is in a state where they are not considered fully
set up (one example is when a site is installed using the CLI script)

In these cases the filepicker gets upset when the user tries
to upload a profile picture.

This patch simply disables that field in these cases and replaces it
with an error message explaining what's wrong.
2016-11-08 12:13:51 +08:00
David Monllao 1fd6b25579 MDL-56561 bootstrapbase: Remove empty line 2016-11-08 11:39:28 +08:00
David Monllao 23e6d7f36c Merge branch 'MDL-56561-master' of git://github.com/damyon/moodle 2016-11-08 11:38:49 +08:00
David Monllao d5e22210b6 Merge branch 'MDL-29795-master-fix-backup-restore' of git://github.com/ilya-catalyst/moodle 2016-11-08 11:12:17 +08:00
Damyon Wiese aad8c7167f MDL-56561 admin: Style admin page listing entire admin tree
It was an unstyled list of links. This changes it to tabs with sub-headings.
2016-11-08 11:04:10 +08:00
Andrew Nicols 9c5a55b52a Merge branch 'wip-MDL-56120-master-v2' of git://github.com/abgreeve/moodle 2016-11-08 10:31:12 +08:00
David Monllao 929190533f Merge branch 'MDL-56818-master' of git://github.com/lameze/moodle 2016-11-08 10:27:36 +08:00
Simey Lameze 0b20349f32 MDL-56818 messages: remove duplicated messaging enabled check 2016-11-08 10:26:39 +08:00
Ilya Tregubov f67f5f0245 MDL-29795 assign: add missing sortorder column for overrides when backing up a course 2016-11-08 13:23:22 +11:00
Andrew Nicols f4e203209d Merge branch 'MDL-54751_master-fix-cron-user' of git://github.com/dmonllao/moodle 2016-11-08 10:01:04 +08:00
David Monllao d0cccb4fdb Merge branch 'MDL-53718' of git://github.com/aolley/moodle 2016-11-08 09:59:31 +08:00
David Monllao 44eb1490c4 MDL-54751 course: Set adhoc task user
We should complete the deletion process using the same
user that started it.

Added a new param to loginas() to prevent the event to be generated as
there is no need to generate an new event for that as the user didn't
explicitly loginas again.
2016-11-08 09:45:07 +08:00
Eloy Lafuente (stronk7) 42fe364f41 Merge branch 'MDL-56765-master' of git://github.com/jleyva/moodle 2016-11-08 01:27:39 +01:00
Eloy Lafuente (stronk7) a584a403cd Merge branch 'MDL-54916' of https://github.com/mr-russ/moodle 2016-11-07 16:19:06 +01:00
Dan Poltawski 77b0bafa6d Merge branch 'MDL-56696-master' of git://github.com/lameze/moodle 2016-11-07 11:33:55 +00:00
Dan Poltawski 13ab169cb7 Merge branch 'wip-MDL-56788-master' of git://github.com/abgreeve/moodle 2016-11-07 09:01:24 +00:00
Adrian Greeve cbbca0d00f 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.
2016-11-07 16:48:16 +08:00
Adrian Greeve 7a33494d71 MDL-56120 calendar: Fix disabled modules showing events.
calendar_get_events now checks for disabled activities
and only shows events for active modules.
2016-11-07 16:47:14 +08:00
Dan Poltawski 912d854dc8 Merge branch 'MDL-56684-master-fix1' of http://github.com/damyon/moodle 2016-11-07 08:19:16 +00:00
Damyon Wiese c81a34774e MDL-56684 boost: Fix for competency behat tests with boost theme 2016-11-07 16:02:44 +08:00
Andrew Nicols 09b7cfc559 Merge branch 'MDL-56025-master' of git://github.com/damyon/moodle 2016-11-07 15:09:47 +08:00
Andrew Nicols f1b018f511 Merge branch 'MDL-55215-master-fix2' of http://github.com/damyon/moodle 2016-11-07 15:01:46 +08:00
David Monllao 5ffd3f3309 Merge branch 'MDL-54751-master-gradeitemfix' of git://github.com/snake/moodle 2016-11-07 14:43:23 +08:00
Damyon Wiese c3e7274369 MDL-56025 messages: Reduce the height on short screens
On windows shorter than 670px reduce the height of the message area.
2016-11-07 14:41:21 +08:00
Jake Dallimore a9ac13885c MDL-54751 core_grade: Fix missing require_once in grade_item get_name 2016-11-07 14:35:16 +08:00
Simey Lameze b445f4b342 MDL-56696 message: link user full name to contact options 2016-11-07 14:35:13 +08:00
Damyon Wiese 737b54fe9e MDL-55215 lesson: JS is required for some lesson behats
Lesson is using the searchselector which only supports JS - so some
tests need javascript tags.

Also fixed support for filling a passwordunmask field with JS enabled by
id.
2016-11-07 14:23:46 +08:00
David Monllao d7480befdd Merge branch 'wip-MDL-38158-fix3' of https://github.com/marinaglancy/moodle 2016-11-07 14:19:15 +08:00
David Monllao 2a9275601a Merge branch 'master_MDL-54575' of git://github.com/danmarsden/moodle 2016-11-07 13:58:04 +08:00
Adam Olley b4846b88d9 MDL-53718 badges: Dont display course badges when disabled 2016-11-07 15:56:26 +10:30
Andrew Nicols a2c0528802 Merge branch 'MDL-56737-master' of git://github.com/jleyva/moodle 2016-11-07 13:25:41 +08:00
David Monllao b03a53576d Merge branch 'MDL-56630-master' of git://github.com/damyon/moodle 2016-11-07 13:15:03 +08:00
Marina Glancy fbb36ed1e6 MDL-38158 media: some players do not want fallback to other players
there is already logic to determine whether html5 is supported;
otherwise we may end up with nested <audio> or <video> tags
2016-11-07 11:55:05 +08:00
Marina Glancy 737638d950 MDL-38158 media: mpeg is not html5 supported format 2016-11-07 11:44:59 +08:00
Andrew Nicols 235a80b2d5 Merge branch 'MDL-55215-master-fix1' of http://github.com/damyon/moodle 2016-11-07 11:39:45 +08:00
Adrian Greeve f0568ed9af MDL-56788 themes: Update require to use admin setting.
The renderer now uses the $CFG->admin setting in the
require_once call.
2016-11-07 11:16:34 +08:00
David Monllao d2790f5c8f Merge branch 'MDL-56129-master' of git://github.com/andrewnicols/moodle 2016-11-07 11:15:58 +08:00
Damyon Wiese 9f592c243c MDL-55215 forms: Searchable selector was reindexing keys 2016-11-07 11:03:17 +08:00
David Monllao ab7c5d1068 Merge branch 'MDL-56731_master' of https://github.com/tonynlin/moodle 2016-11-07 10:44:32 +08:00
Damyon Wiese 72deb9c861 MDL-56630 theme_boost: Edit settings menu not always showing when it should 2016-11-07 10:44:19 +08:00
Damyon Wiese a0bdffbd73 MDL-56630 theme_boost: show blocks under content on small screens
This is tablet size and down.
2016-11-07 10:37:13 +08:00
Andrew Nicols 3e24a75ec3 Merge branch 'MDL-56241-master' of git://github.com/damyon/moodle 2016-11-07 10:22:25 +08:00
Jonathon Fowler 6b0d172379 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.
2016-11-07 09:55:49 +08:00
Damyon Wiese 1d4928003c MDL-56241 boost: Wrap block footer in a div to emulate old layout
Some block styles are looking for .footer so we'll add it back.
2016-11-07 09:51:39 +08:00
David Monllao cf36f123d5 Merge branch 'MDL-55203' of https://github.com/mr-russ/moodle 2016-11-07 09:49:33 +08:00
Dan Poltawski fb42071776 MDL-56241 theme_boost: add example context to block.mustache 2016-11-07 09:41:05 +08:00
Damyon Wiese f93be27185 MDL-56241 theme_boost: Add content class to blocks
Some of the plugin styles assume .content in the selectors.
2016-11-07 09:41:04 +08:00
Marina Glancy 2a63c0b1c2 MDL-38158 media: missing require and videojs fallback
Problems picked up by behat tests
2016-11-07 09:22:32 +08:00
David Monllao b667a67c47 MDL-29795 mod_assign: Remove empty line 2016-11-07 09:22:02 +08:00
David Monllao cf4019cf40 Merge branch 'MDL-29795_master' of https://github.com/dmonllao/moodle 2016-11-07 09:20:59 +08:00
David Monllao 325ac748b2 MDL-29795 behat: Narrow Edit link scope 2016-11-07 09:19:41 +08:00
Andrew Nicols 741c0e6abe MDL-55215 forms: Rename searchableselector params 2016-11-07 09:06:40 +08:00
Andrew Nicols 0e5db67d8e Merge branch 'MDL-55215-master' of git://github.com/damyon/moodle 2016-11-07 09:04:34 +08:00
David Monllao c9af13123d MDL-54751 course_modules: New major upgrade point
Also trailing whitespace cleaned.
2016-11-07 08:59:04 +08:00
David Monllao 90abff01b3 Merge branch 'MDL-54751-master-v5' of https://github.com/snake/moodle 2016-11-07 08:55:44 +08:00
Russell Smith 57a5974a10 MDL-55203 forms: Use correct admin folder name.
When the admin folder if renamed, the system must replace that when
adding the competencies form elements to the QuickForm Library.
2016-11-07 11:15:34 +11:00
David Monllao 1370e6ca52 Merge branch 'MDL-56149-master' of git://github.com/damyon/moodle 2016-11-07 07:47:27 +08:00
Jake Dallimore f939a6d452 MDL-54751 core_completion: Exclude activities pending deletion 2016-11-07 07:41:59 +08:00
Jake Dallimore ff4230d88e MDL-54751 behat: Support for adhoc module and section deletion in behat
Introduced new behat step for running all pending adhoc tasks and
modified the relavant behat tests.
2016-11-07 07:41:59 +08:00
Jake Dallimore 3704ff8cde MDL-54751 phpunit: Support adhoc module and section deletion in phpunit
Created a new phpunit util function run_all_adhoc_tasks which runs any
pending tasks, for use in unit tests. Added new recyclebin and course
unit tests covering the new functionality.
2016-11-07 07:41:59 +08:00
Jake Dallimore 2f6e0d92b7 MDL-54751 core_availability: Module restrictions exclude deletions
To make sure users can't add an access restriction based on a
course module scheduled for deletion, or its respective grade items.
2016-11-07 07:41:59 +08:00
Jake Dallimore 45bd824e59 MDL-54751 core_grades: Gradebook highlights modules pending deletion
Added warning to all gradebook pages if any modules are pending
deletion. Modified the return values for get_name, and is_locked for
affected grade items to indicate their pending deletion.
2016-11-07 07:41:59 +08:00
Jake Dallimore 3869d77411 MDL-54751 core_course: Edit course libs to support deletion flag
Changed the course libs such that module and section deletion is now
handed off to relevant functions in the util class and exempted
modules scheduled for deletion from the course backups.
2016-11-07 07:41:59 +08:00
Jake Dallimore 37da62f360 MDL-54751 core_course: Create adhoc task for course module deletion 2016-11-07 07:41:59 +08:00
Jake Dallimore 048f909b07 MDL-54751 core: introduce deletion flag for course modules
Created a flag, 'deletioninprogress' on the course_modules table to be
used when deleting course modules and course sections. Modified
modinfolib caches such that, when rebuilt, these caches hide the
relevant modules based on the value of the flag.
2016-11-07 07:41:59 +08:00
AMOS bot 55cbca98ff Automatically generated installer lang files 2016-11-07 00:04:41 +08:00
Eloy Lafuente (stronk7) b23b9a5b38 MDL-38158 core_media: bump upgrade / version and fix filter test 2016-11-06 02:11:20 +01:00
Eloy Lafuente (stronk7) 6e29346609 Merge branch 'wip-MDL-38158-master' of https://github.com/marinaglancy/moodle 2016-11-06 02:11:19 +01:00
Juan Leyva 1f2e3279b2 MDL-56765 webservice: On new session is started unset old preferences 2016-11-04 19:33:31 +00:00
Juan Leyva a947ecd634 MDL-56737 tool_mobile: Support private tokens in launch.php 2016-11-04 15:37:42 +00:00
Dan Poltawski f0049415af MDL-56684 competencies: fix eslint probs in templates 2016-11-04 14:59:57 +00:00
Damyon Wiese 207136f279 MDL-56684 competencies: Boost for competency templates
Add BS4 markup to all competencies templates. Also tweaked the template library to make it
easier in future when modifying templates and reloading.
2016-11-04 14:45:58 +00:00
Dan Poltawski f95c00e551 Merge branch 'wip-MDL-54986-master' of https://github.com/Beedell/moodle 2016-11-04 14:31:00 +00:00
Dan Poltawski b7b5b35cf5 Merge branch 'MDL-56668-m' of https://github.com/micaherne/moodle 2016-11-04 14:23:10 +00:00
Dan Poltawski 246288c3f9 Merge branch 'MDL-56654-master' of git://github.com/damyon/moodle 2016-11-04 14:20:14 +00:00
Dan Poltawski 1e1e4ff8e5 Merge branch 'MDL-56535-master' of git://github.com/jleyva/moodle 2016-11-04 14:10:48 +00:00
Dan Poltawski 808005ddf9 Merge branch 'MDL-53945' of git://github.com/aolley/moodle 2016-11-04 14:07:26 +00:00
Tony Lin ce1249be58 MDL-56731 groups: Fixes breadcrumb when returning to groups/index.php 2016-11-04 13:21:43 +00:00
Dan Poltawski 7eb34671c1 on-demand release 3.2dev+ 2016-11-04 11:20:34 +00:00
Dan Poltawski 6765172ed1 NOBUG: Fixed file access permissions 2016-11-04 11:20:33 +00:00
Eloy Lafuente (stronk7) ba611c4d61 Merge branch 'MDL-56673-fix' of git://github.com/danpoltawski/moodle 2016-11-04 11:40:43 +01:00
Dan Poltawski 6d368fc2f6 MDL-56673 tool_templatelibrary: fix externallib backwards compat
The function now matches the VALUE_DEFAULT option of the service.
2016-11-04 10:38:15 +00:00
Eloy Lafuente (stronk7) 79322e0087 Merge branch 'MDL-56740-master' of git://github.com/danpoltawski/moodle 2016-11-04 11:11:32 +01:00
Marina Glancy 7e3f637301 MDL-38158 media_videojs: Add Video.JS player 2016-11-04 17:30:43 +08:00
Marina Glancy fab11235d8 MDL-38158 core_media: Convert media players to new plugin type
AMOS BEGIN
  MOV [siteyoutube,core_media],[pluginname,media_youtube]
  MOV [siteyoutube_desc,core_media],[pluginname_help,media_youtube]
  MOV [sitevimeo,core_media],[pluginname,media_vimeo]
  MOV [sitevimeo_desc,core_media],[pluginname_help,media_vimeo]
  MOV [html5audio,core_media],[pluginname,media_html5audio]
  MOV [html5audio_desc,core_media],[pluginname_help,media_html5audio]
  MOV [html5video,core_media],[pluginname,media_html5video]
  MOV [html5video_desc,core_media],[pluginname_help,media_html5video]
  MOV [flashanimation,core_media],[pluginname,media_swf]
  MOV [flashanimation_desc,core_media],[pluginname_help,media_swf]
AMOS END
2016-11-04 17:30:40 +08:00
Marina Glancy 3c73b26c4b MDL-38158 core_media: more correct semantic for html5 video audio tags 2016-11-04 17:30:31 +08:00
Jun Pataleta ac67c97ccb MDL-55825 enrol_lti: Fix display of unenrol count on sync 2016-11-04 09:21:02 +00:00
Dan Poltawski 2fe28e0dc3 MDL-56740 geoip tests: update to a more reliable ipv6 location
Hopefully. It's quite difficult for us to test this funcionality with
altering data sets. Hoping this UCLA v6 address will be more reliable.
2016-11-04 08:52:40 +00:00
David Monllao d3c6ad5892 Merge branch 'MDL-46903-master-fix' of git://github.com/junpataleta/moodle 2016-11-04 14:23:16 +08:00
Andrew Nicols f5ddff27af Merge branch 'MDL-56673-master-fix1' of http://github.com/damyon/moodle 2016-11-04 13:57:16 +08:00
Jun Pataleta 17f63d18a5 MDL-46903 mod_scorm: Apply alias to compare text column 2016-11-04 13:32:24 +08:00
Andrew Nicols 70aa00de87 MDL-56748 cache: Removes cache definition instances in purge_store
Previously a purge_store was only purging caches but it was leaving a
reference to the store instance for the cache definition.

As a result, the cache was never cleared away correctly and, in cases
where the cache store makes a TCP connection to a backend system, the
number of open sockets was increasing for each store instance.

After a complete purge, as found in the unit test reset, the cache
definitions should be both purged and removed.

This change should also lead to a drop in memory consumption for unit
tests as there will no longer be references to unused definition stores.
2016-11-04 13:26:46 +08:00
Damyon Wiese a11c74d186 MDL-56673 tool_templatelibrary: Don't show templates from other themes 2016-11-04 12:52:38 +08:00
Andrew Nicols da31fc5bff Merge branch 'MDL-56576_master-fix' of git://github.com/dmonllao/moodle 2016-11-04 08:28:08 +08:00
David Monllao e1074d6ffd Merge branch 'master_MDL-46903' of https://github.com/danmarsden/moodle 2016-11-04 08:24:43 +08:00
David Monllao 629d3e5770 MDL-56576 theme_boost: Add save-settings param to admin search 2016-11-04 08:16:58 +08:00
Adam Olley 4bd8e65273 MDL-53945 mnet: Use moodle_url to provide string with url
Using moodle_url where possible is preferable to hardcoding uri's as
moodle_url is able to take care of alot of the formatting for us.

In this instance, it handles the $CFG->admin url path for us.
2016-11-04 09:10:31 +10:30
Michael Aherne fc60769302 MDL-56668 competencies: Correct namespacing of coding_exception 2016-11-03 13:59:13 +00:00
David Monllao 8b0064d5e7 Merge branch 'MDL-56576-master' of git://github.com/damyon/moodle 2016-11-03 15:14:41 +08:00
Andrew Nicols 11bafc2b21 Merge branch 'MDL-56641-master' of git://github.com/damyon/moodle 2016-11-03 15:07:01 +08:00
Andrew Nicols eff0a3e97f Merge branch 'MDL-56677_master-fix' of git://github.com/dmonllao/moodle 2016-11-03 14:56:32 +08:00
David Monllao 34ef8fa13a Merge branch 'MDL-56481-master' of git://github.com/junpataleta/moodle 2016-11-03 14:51:51 +08:00
David Monllao 18bb2883ce MDL-56677 cohort: Fix cohort search box misalignment 2016-11-03 14:33:07 +08:00
Tim Lock 6e10972bec MDL-56481 tool_lpmigrate: Fix notice when cancelling framework migration 2016-11-03 14:16:36 +08:00
Andrew Nicols bc378b50ec Merge branch 'wip-MDL-44467-master' of git://github.com/abgreeve/moodle 2016-11-03 14:08:21 +08:00
David Monllao 5d0299e275 Merge branch 'MDL-56666-master' of git://github.com/jleyva/moodle 2016-11-03 10:28:59 +08:00
Damyon Wiese 057e1a1f6d MDL-56576 admin: Cannot edit blocks on search page
Admin search page was processing the blocks delete request before the blocks
could process it.

Added a hidden field to the search results form so it can be sure the form submission
was for saving admin settings.
2016-11-03 09:40:53 +08:00
Damyon Wiese 2a7c540c48 MDL-56641 admin: Managers can access search page 2016-11-03 09:36:33 +08:00
Damyon Wiese 5ae35b9dee MDL-56654 blogs: Display RSS link in the page 2016-11-03 09:22:51 +08:00
Adam Olley 20ec56504f MDL-53945 mnet: replace hardcoded admin dir with cfg
Several places in admin/mnet pull in required files using a hardcoded
admin dir string, as this is configurable it needs to use $CFG->admin
instead.

Places where the url is passed through moodle_url don't need to be
updated as that already automatically translates the urls for us.
2016-11-03 11:12:32 +10:30
David Monllao 205577718b Merge branch 'MDL-56691-master' of git://github.com/damyon/moodle 2016-11-03 08:22:25 +08:00
John Beedell 6e1e299554 MDL-54986 Quiz: Disable add button for quiz with attempts 2016-11-02 17:02:59 +00:00
Dan Poltawski 56f763b1f9 Merge branch 'MDL-55841-master' of https://github.com/xow/moodle 2016-11-02 15:24:33 +00:00
Dan Poltawski ab64cd40b0 Merge branch 'MDL-56372_static_bind_clean_return_val' of https://github.com/BenKelada/moodle 2016-11-02 15:14:46 +00:00
Dan Poltawski cb2b9a905c Merge branch 'MDL-55825-master' of git://github.com/junpataleta/moodle 2016-11-02 14:41:10 +00:00
Dan Poltawski 4d27d62d08 Merge branch 'wip-MDL-55927-master' of git://github.com/abgreeve/moodle 2016-11-02 14:00:29 +00:00
Dan Poltawski 930cae5bb5 MDL-56637 version: bump 2016-11-02 13:56:46 +00:00
Dan Poltawski de8388f529 Merge branch 'MDL-56637-master' of git://github.com/dpalou/moodle 2016-11-02 13:56:22 +00:00
Dan Poltawski 867dc76f64 MDL-56582 boost: add some misisng template context 2016-11-02 13:55:05 +00:00
Dan Poltawski c624351e97 Merge branch 'MDL-56582-master' of https://github.com/xow/moodle 2016-11-02 13:49:50 +00:00
Juan Leyva 2521afd2e8 MDL-56666 message: New WS core_message_get_user_message_preferences 2016-11-02 12:16:23 +00:00
Dan Poltawski ebdd54f476 MDL-56161 boost: fix confict resolution mistake 2016-11-02 10:20:34 +00:00
Dan Poltawski e5c726353f MDL-56161 boost: add missing example context 2016-11-02 10:14:00 +00:00
Dan Poltawski 540b01b60d Merge branch 'MDL-56161-master' of git://github.com/damyon/moodle 2016-11-02 09:36:09 +00:00
Dan Poltawski 25b0727e50 Merge branch 'MDL-56433-master' of git://github.com/damyon/moodle 2016-11-02 09:33:28 +00:00
Dan Poltawski b4b8d4fcc2 Merge branch 'MDL-56621-master-fix' of http://github.com/damyon/moodle 2016-11-02 09:03:05 +00:00
Damyon Wiese d8cfd61145 MDL-56582 theme_boost: Insert a proxy div for settings menu
This forces text in the page to wrap around the settings cog. Also
notifications background color goes underneath the div for the
settings cog - so we give it a background color.
2016-11-02 15:40:17 +08:00
Andrew Nicols 0c6fa2e9a8 Merge branch 'MDL-56698-master' of git://github.com/damyon/moodle 2016-11-02 15:34:06 +08:00
Damyon Wiese a5d4b54890 MDL-56698 mod_feedback: Make it look ok in boost 2016-11-02 15:25:18 +08:00
Simey Lameze 1d9356d7e9 MDL-56671 mod_scorm: fix styling issues on scorm module 2016-11-02 14:57:13 +08:00
David Monllao d27db408b9 Merge branch 'MDL-56677-master' of git://github.com/lameze/moodle 2016-11-02 14:55:00 +08:00
Damyon Wiese b07981e1e1 MDL-56621 forms: Give a default value if format not set
For forms with a text area, we need to provide a default for the format.
This only affects boost because it is export_for_template.
2016-11-02 14:42:33 +08:00
Andrew Nicols 8fa816e0b0 Merge branch 'wip-mdl-56273' of https://github.com/rajeshtaneja/moodle 2016-11-02 14:30:08 +08:00
Rajesh Taneja 4a910b9aa6 MDL-56273 cache: Fixed initialise call
After store is created, it should be checked if
it's ready before calling initialise
2016-11-02 14:26:50 +08:00
Simey Lameze 4bd9a67bf1 MDL-56677 core_cohort: fix style issues on cohort search fields 2016-11-02 14:10:24 +08:00
Andrew Nicols e84e836889 Merge branch 'MDL-56634-master' of git://github.com/ankitagarwal/moodle 2016-11-02 14:01:15 +08:00
David Monllao 93dfcf3274 Merge branch 'MDL-56670-master' of git://github.com/lameze/moodle 2016-11-02 13:29:46 +08:00
Simey Lameze 6e4b3752f2 MDL-56670 mod_lesson: adds padding to end of lesson links 2016-11-02 13:12:32 +08:00
David Monllao eaef8faa61 Merge branch 'MDL-56323-master' of git://github.com/l-campbell/moodle 2016-11-02 13:12:07 +08:00
David Monllao e14f5db6a0 Merge branch 'wip-MDL-55930-master' of https://github.com/Beedell/moodle 2016-11-02 12:49:46 +08:00
David Monllao cf0450185e Merge branch 'wip_MDL-55913_master' of git://github.com/gjb2048/moodle 2016-11-02 12:41:48 +08:00
Ankit Agarwal 9d72acb7ed MDL-56634 webservices: Remove script from api desc and clean desc printing 2016-11-02 10:06:05 +05:30
David Monllao a5f53db190 Merge branch 'MDL-43796_master_blindmarking' of https://github.com/SWiT/moodle 2016-11-02 12:28:43 +08:00
Andrew Nicols 328628544b Merge branch 'MDL-56673-master' of git://github.com/danpoltawski/moodle 2016-11-02 12:07:18 +08:00
Andrew Nicols 6055809311 Merge branch 'MDL-56469-M32' of git://github.com/lazydaisy/moodle 2016-11-02 11:31:32 +08:00
Damyon Wiese 6ec7fb8dc1 MDL-56691 theme_boost: Fix height of nav drawer
It should not be more than the height of the page or you can't scroll to the
last item in the list.
2016-11-02 10:17:41 +08:00
Andrew Nicols c6ae02c184 Merge branch 'MDL-48468' of https://github.com/mr-russ/moodle 2016-11-02 10:13:42 +08:00
David Monllao 2f8b51f4b7 Merge branch 'MDL-56296-master' of git://github.com/damyon/moodle 2016-11-02 09:57:45 +08:00
David Monllao f5d9072e51 Merge branch 'MDL-56462-master' of git://github.com/damyon/moodle 2016-11-02 09:14:09 +08:00
Damyon Wiese 9e2f13125a MDL-56161 boost: alignment static form elements
Wrap the HTML from a static form element with "form-control-static" to apply correct padding.

Also use a span, not a label for unlabelable static form elements.
2016-11-02 09:06:12 +08:00
Dan Poltawski b7959d831d Merge branch 'MDL-54112-master' of https://github.com/hcpss-banderson/moodle 2016-11-01 21:31:04 +00:00
Dan Poltawski 777760b6ae Merge branch 'master_MDL-47500' of git://github.com/danmarsden/moodle 2016-11-01 21:29:32 +00:00
Juan Leyva 56c8413712 MDL-55992 webservice: Fix debugging notice when creating token
This patch also avoid to propagate to logs the private token as is done
in login/token.php
2016-11-01 21:26:40 +00:00
Dan Poltawski f99e7ef116 Merge branch 'mdl55456-master' of https://github.com/tlock/moodle 2016-11-01 21:26:05 +00:00
Dan Poltawski 3a24b255ba Merge branch 'MDL-56402-master' of git://github.com/lameze/moodle 2016-11-01 21:24:57 +00:00
Dan Poltawski 20fd5e538c Merge branch 'MDL-56530-master' of git://github.com/andrewnicols/moodle 2016-11-01 21:21:22 +00:00
Dan Poltawski b9703b8e05 Merge branch 'MDL-56621-master' of git://github.com/damyon/moodle 2016-11-01 21:20:53 +00:00
Juan Leyva 30861fbdaa MDL-56535 forum: Do not return user information in single discussion
This patch fixes the forum external functions
2016-11-01 20:52:58 +00:00
Eloy Lafuente (stronk7) cad8adccc7 on-demand release 3.2dev+ 2016-11-01 19:48:41 +01:00
Dan Poltawski 57911c1f40 Merge branch 'MDL-47162' of https://github.com/stronk7/moodle 2016-11-01 12:13:19 +00:00
Eloy Lafuente (stronk7) f593e8271a MDL-47162 badges: site & profile badges do not have courseid
Because of that, we need to set the, now mandatory, SITEID for
those message events to be happy. This does not affect course or
activity badges, both coming with correct courseid.
2016-11-01 12:47:54 +01:00
Dan Poltawski 9f02188575 Merge branch 'MDL-56587-master' of git://github.com/cameron1729/moodle 2016-11-01 11:35:36 +00:00
John Beedell 7983265241 MDL-55930 Quiz: "Next page button" showing in sequential mode 2016-11-01 11:22:39 +00:00
Dan Poltawski 840ba76c0c MDL-56673 templatelibrary: return false when core template doesn't exist 2016-11-01 10:18:17 +00:00
Dan Poltawski 9bf205fb73 Merge branch 'MDL-55732-master' of git://github.com/damyon/moodle 2016-11-01 09:47:11 +00:00
Dan Poltawski e0d5d8caed Merge branch 'MDL-56651-master' of git://github.com/lameze/moodle 2016-11-01 09:10:08 +00:00
Dan Poltawski 0cbba93206 Merge branch 'MDL-56514-master-fix1' of https://github.com/lameze/moodle 2016-11-01 08:43:09 +00:00
Simey Lameze 67c89858aa MDL-56402 core_message: remove tabindex attr of not selected users 2016-11-01 15:49:16 +08:00
Simey Lameze 56fa3e011a MDL-56514 core_message: remove messaging enabled check 2016-11-01 14:15:32 +08:00
Damyon Wiese 757f42cb15 MDL-56587 theme_boost: Align header items
Remove chunks of conflicting CSS added in various places and add navbar-nav -> nav-link to header items.
2016-11-01 11:36:08 +08:00
Andrew Nicols 326b285467 Merge branch 'MDL-56273' of https://github.com/mr-russ/moodle 2016-11-01 10:55:23 +08:00
Andrew Nicols 0d80a4bd0b Merge branch 'wip-MDL-56489-master-v2' of git://github.com/abgreeve/moodle 2016-11-01 10:45:29 +08:00
Andrew Nicols 41c1314fbd MDL-56509 tool_usertours: Fetch all role shortnames 2016-11-01 10:14:48 +08:00
Adrian Greeve 839b391f74 MDL-56489 Lib: force_settings_menu added to pagelib.
This introduces a flag to force the settings menu
to be displayed on the page if the theme uses a settings
menu. This is for use by activities and resources.
2016-11-01 10:00:12 +08:00
Simey Lameze 0051b08560 MDL-56651 core_role: add styling to submit buttons 2016-11-01 09:40:53 +08:00
Dan Marsden 3dc868478b MDL-54575 scorm: fix typo in data_preprocessing function
thanks to Mike Finch for the patch/report.
2016-11-01 12:11:54 +13:00
Dan Marsden a2096721c7 MDL-46903 scorm: Fix db error in objectives report for oracle.
also improve 2004 report handling to help with testing.
2016-11-01 12:05:35 +13:00
Eloy Lafuente (stronk7) a1f6a27c80 Merge branch 'MDL-47162' of git://github.com/merrill-oakland/moodle 2016-10-31 22:45:37 +01:00
Eloy Lafuente (stronk7) 8df0fb490b Merge branch 'wip-MDL-56615-master' of git://github.com/marinaglancy/moodle 2016-10-31 20:25:31 +01:00
Eloy Lafuente (stronk7) 2fd11f3516 Merge branch 'MDL-56188-master' of git://github.com/damyon/moodle 2016-10-31 19:59:21 +01:00
Eloy Lafuente (stronk7) 5165c9f460 MDL-56297 forms: Normalize uses of 'url' fields to use size=60
While this is not related to this issue, when reviewing it was
detected that the size of those url fields was really small and
looking decided to add this bit of normalization over existing uses.
2016-10-31 19:47:41 +01:00
Eloy Lafuente (stronk7) 7aa17ce256 Merge branch 'MDL-56297-master' of git://github.com/damyon/moodle 2016-10-31 19:47:40 +01:00
Damyon Wiese de1af8a6ed MDL-56588 theme_boost: Nice wrapping text in flat nav
When section titles were too long they did not wrap nicely.
2016-10-31 18:24:43 +00:00
Eric Merrill 880fc15bf0 MDL-47162 core_message: Updating all uses of messaging to add courseid 2016-10-31 14:13:13 -04:00
Eloy Lafuente (stronk7) c40a53775f Merge branch 'MDL-55799-master' of git://github.com/lameze/moodle 2016-10-31 17:23:11 +01:00
Eloy Lafuente (stronk7) 358105b309 Merge branch 'MDL-56155-master' of git://github.com/lameze/moodle 2016-10-31 17:11:21 +01:00
Dan Poltawski 9e972b3da4 Merge branch 'MDL-56627-master' of git://github.com/damyon/moodle 2016-10-31 15:54:22 +00:00
Dan Poltawski a9f119efd6 Merge branch 'wip-MDL-56633-master' of https://github.com/marinaglancy/moodle 2016-10-31 15:36:21 +00:00
Dan Poltawski 6795b0a0c7 Merge branch 'MDL-56580-master' of git://github.com/junpataleta/moodle 2016-10-31 15:20:45 +00:00
Dan Poltawski f2263f7c06 Merge branch 'MDL-56542-master-enfix' of git://github.com/mudrd8mz/moodle 2016-10-31 15:15:09 +00:00
Dan Poltawski 5ad34c43f6 Merge branch 'MDL-56597-master' of git://github.com/damyon/moodle 2016-10-31 15:10:02 +00:00
Dan Poltawski 0e86392133 Merge branch 'MDL-56578-master' of git://github.com/damyon/moodle 2016-10-31 15:04:55 +00:00
Damyon Wiese 155b0bc0b9 MDL-56578 theme_boost: Dismiss help popovers on next click 2016-10-31 22:01:19 +08:00
Damyon Wiese 2259c0f078 MDL-56621 templates: Add missing example contexts 2016-10-31 21:27:52 +08:00
Dan Poltawski b0f7a97c42 Merge branch 'MDL-56610-master' of git://github.com/damyon/moodle 2016-10-31 10:20:08 +00:00
Dan Poltawski f7614c6007 Merge branch 'MDL-56523-master' of git://github.com/lazydaisy/moodle 2016-10-31 10:19:13 +00:00
Dan Poltawski e90d0c90b4 MDL-56514 message: fix whitespace 2016-10-31 10:06:26 +00:00
Dan Poltawski 868f5c8709 Merge branch 'MDL-56514-master' of git://github.com/lameze/moodle 2016-10-31 10:03:59 +00:00
Dan Poltawski 703863ce82 Merge branch 'MDL-56599-master' of git://github.com/damyon/moodle 2016-10-31 09:57:03 +00:00
Dan Poltawski b7f3b1365d Merge branch 'MDL-56509-master' of git://github.com/andrewnicols/moodle 2016-10-31 09:35:21 +00:00
Dan Poltawski 75de2e6199 Merge branch 'MDL-56631-master' of git://github.com/damyon/moodle 2016-10-31 09:10:06 +00:00
Russell Smith a330e83ade MDL-56273 cache: Use is_ready() to determine if cache is really ready. 2016-10-31 19:44:05 +11:00
Damyon Wiese a2d9a89f5a MDL-56149 permissions: Alignment of icons should not wrap
/admin/roles/permissions.php?contextid=2 the icons should not wrap.
2016-10-31 16:24:11 +08:00
Damyon Wiese 6fb8a7ab7e MDL-56621 forms: Hide format menu if only one
This was a regression in the new templates for editors.
2016-10-31 15:06:50 +08:00
Simey Lameze a2c7227ab8 MDL-56514 core_message: add missing is messaging enabled checks 2016-10-31 15:06:50 +08:00
Damyon Wiese ad785e699e MDL-56631 passwordunmask: Admin setting for password unmask not working
Andrew refactored the way it rendered the element, but did not update all the
templates (there is mforms element AND admin settings element).

See 3778a9226f for Andrews original change.
2016-10-31 14:45:07 +08:00
Andrew Nicols 0b03040605 Merge branch 'MDL-56501-master' of git://github.com/lameze/moodle 2016-10-31 14:10:37 +08:00
Simey Lameze 343ba16c31 MDL-56501 message: introduce new manageallmessaging capability 2016-10-31 14:09:03 +08:00
Andrew Nicols de32120676 Merge branch 'MDL-56577-master' of git://github.com/junpataleta/moodle 2016-10-31 14:02:27 +08:00
Andrew Nicols 42a372e20f Merge branch 'MDL-56273' of https://github.com/mr-russ/moodle 2016-10-31 14:00:36 +08:00
Andrew Nicols 711e2ab184 Merge branch 'MDL-56583-master' of git://github.com/crazyserver/moodle 2016-10-31 13:42:46 +08:00
Russell Smith f9599c77cc MDL-56273 cache: Ensure requirements are met for cache stores.
Ensure that the cache store requirements are met prior to attempting
to instantiate a class.  Many of the constructors create connections
to external services requiring the installation and availability of
classes that are specified in are_requirements_met().  If they are
not checked properly you end up with PHP Fatal errors rather than
falling back to a different store that is capabable without the
the extra classes loaded.
2016-10-31 16:04:51 +11:00
Jun Pataleta 6af2ccda91 MDL-56577 core_form: Let other option attrs to be set in select elements 2016-10-31 12:19:21 +08:00
Andrew Nicols 4e5d96ee3a Merge branch 'MDL-56282-master' of git://github.com/damyon/moodle 2016-10-31 12:18:22 +08:00
Frédéric Massart 77bec234e0 MDL-56282 enrol_meta: Fix error when editing existing instances
We had a few problems here.

1/ The auto complete element was displaying the picker though the
   field was frozen.
2/ Checking for existing enrolment including the courses chosen was
   not checking if the courses found were in the instance we edit.
3/ Upon creation we support multiple courses but when editing we
   should not expect more than the course in the instance being edited.
2016-10-31 12:15:02 +08:00
Andrew Nicols c86fb21789 Merge branch 'MDL-56573-master' of git://github.com/junpataleta/moodle 2016-10-31 12:03:00 +08:00
Andrew Nicols 09a05b798b MDL-56138 messaging: Add tests for viewparticipants search restriction 2016-10-31 11:58:29 +08:00
Andrew Nicols 46dd48129b Merge branch 'wip-MDL-56138-master' of git://github.com/abgreeve/moodle 2016-10-31 11:35:47 +08:00
Andrew Nicols cf6fc0abe1 Merge branch 'MDL-56638-master' of git://github.com/crazyserver/moodle 2016-10-31 11:01:25 +08:00
Adrian Greeve 87d4ab654b MDL-56138 messaging: Update to messaging unit tests. 2016-10-31 10:52:05 +08:00
Adrian Greeve f324957724 MDL-56138 messaging: Limit course search to enrolled courses. 2016-10-31 10:52:05 +08:00
Andrew Nicols 72c0d69d5c Merge branch 'wip-MDL-56625-master' of git://github.com/abgreeve/moodle 2016-10-31 10:47:29 +08:00
Andrew Nicols 236778b905 MDL-56078 theme_boost: Update ignorefiles 2016-10-31 10:46:14 +08:00
Andrew Nicols 43dadab50b Merge branch 'MDL-56078-master' of git://github.com/damyon/moodle 2016-10-31 09:30:15 +08:00
Andrew Nicols bcabf4d530 Merge branch 'MDL-56427-master' of git://github.com/lameze/moodle 2016-10-31 09:16:10 +08:00
Jun Pataleta 5a3f6ceb57 MDL-55825 enrol_lti: Unit tests for upgraded memberships sync
* sync_members tests
* data_connector tests for new methods
2016-10-31 09:09:43 +08:00
Jun Pataleta 08237c3aa8 MDL-55825 enrol_lti: Upgrade member sync to use the new LTI library 2016-10-31 09:09:06 +08:00
Russell Smith a169739d5d MDL-56273 cache: Use cache initialise always.
purge_all() and purge_by_definition() look in the configuration
for which caches are available and then creates them to purge them.
The configuration stores the values used by initialise(), not
initialise_unit_test_instance() and would therefore fail to purge
all caches if they were not purged by another means.

In the case of filestore, it's purged by unit tests, in the case
of memcache(d), it purges the whole store when a single definition
is requested.

Therefore all configuration was moved into the configuration file
during unit tests and does not have any special override codes in
the unit test infrastructure.
2016-10-30 13:42:43 +11:00
Tomasz Sanecki fd7bb5a8d9 MDL-48468 cache: add support for port in server address 2016-10-30 13:34:43 +11:00
Russell Smith 68b1e13094 MDL-48468 cache: Import Redis cachestore
This code was originally taken from; https://github.com/durana/moodle-cachestore_redis
Special thanks to Mark Nielsen and Adam Durana for their work on this.

Since the original import;
- Mode session support has been added.
- Some cleanup of names has been made.
- Data guarantee and references support was added.
2016-10-30 13:34:43 +11:00
Pau Ferrer Ocaña 1f84c2c5ea MDL-56638 assign: Don't check sesskey using submit_grading_form from WS 2016-10-28 13:44:19 +02:00
Dani Palou 6d2f938cbd MDL-56637 ws: Add core_user_update_user_preferences to Mobile service 2016-10-28 12:40:18 +02:00
Dan Poltawski 85c9053aec Merge branch 'MDL-56339-master' of git://github.com/junpataleta/moodle 2016-10-28 09:47:15 +01:00
Marina Glancy c05be214aa MDL-56633 theme_boost: activity label should not be centered 2016-10-28 15:20:47 +08:00
Simey Lameze fd5797aa3b MDL-55799 inplace_editable: add form-control class to fields 2016-10-28 15:04:54 +08:00
Simey Lameze 823ae9f062 MDL-56155 theme_boost: fix wrong padding on inline field help text
Thanks John Okely!
2016-10-28 14:45:28 +08:00
Damyon Wiese 4821f45961 MDL-56188 theme_boost: Better alignment for form fields help 2016-10-28 14:40:00 +08:00
Adrian Greeve 159c2c91be MDL-55927 auth_radius: Move to third party plugin. 2016-10-28 14:35:54 +08:00
Adrian Greeve 25ea0caaa2 MDL-44467 lib: Move lang string to admin file.
AMOS BEGIN
 MOV [allowattachments,message_email],[allowattachments,admin]
 MOV [allowusermailcharset,message_email],[allowusermailcharset,admin]
 MOV [configallowattachments,message_email],[configallowattachments,admin]
 MOV [configallowusermailcharset,message_email],[configallowusermailcharset,admin]
 MOV [configmailnewline,message_email],[configmailnewline,admin]
 MOV [confignoreplyaddress,message_email],[confignoreplyaddress,admin]
 MOV [configsitemailcharset,message_email],[configsitemailcharset,admin]
 MOV [configsmtpauthtype,message_email],[configsmtpauthtype,admin]
 MOV [configsmtphosts,message_email],[configsmtphosts,admin]
 MOV [configsmtpmaxbulk,message_email],[configsmtpmaxbulk,admin]
 MOV [configsmtpsecure,message_email],[configsmtpsecure,admin]
 MOV [configsmtpuser,message_email],[configsmtpuser,admin]
 MOV [doesnotfit,message_email],[doesnotfit,admin]
 MOV [doesnotfitdetail,message_email],[doesnotfitdetail,admin]
 MOV [mailnewline,message_email],[mailnewline,admin]
 MOV [none,message_email],[none,admin]
 MOV [noreplyaddress,message_email],[noreplyaddress,admin]
 MOV [noreplydomain,message_email],[noreplydomain,admin]
 MOV [noreplydomaindetail,message_email],[noreplydomaindetail,admin]
 MOV [sitemailcharset,message_email],[sitemailcharset,admin]
 MOV [smtp,message_email],[smtp,admin]
 MOV [smtpauthtype,message_email],[smtpauthtype,admin]
 MOV [smtpdetail,message_email],[smtpdetail,admin]
 MOV [smtphosts,message_email],[smtphosts,admin]
 MOV [smtpmaxbulk,message_email],[smtpmaxbulk,admin]
 MOV [smtppass,message_email],[smtppass,admin]
 MOV [smtpsecure,message_email],[smtpsecure,admin]
 MOV [smtpuser,message_email],[smtpuser,admin]
AMOS END
2016-10-28 13:27:00 +08:00
Adrian Greeve e0789335ee MDL-44467 lib: Unit test updates. 2016-10-28 13:27:00 +08:00
Adrian Greeve 9715f61a26 MDL-44467 lib: Fix return path to noreply.
Added code to show emails from users on controlled domains.
Moved admin settings from message_email to admin.
2016-10-28 13:27:00 +08:00
Damyon Wiese e2c8fb8515 MDL-55215 forms: Pass options and correctly merge choices 2016-10-28 13:23:48 +08:00
Damyon Wiese f7ed5cee30 MDL-56171 javascript: Make searchableselector wrap autocomplete
One less yui module.

Conflicts:
	lib/upgrade.txt
2016-10-28 13:13:22 +08:00
Simey Lameze 253ae23058 MDL-44467 core: always send email from noreplyaddress 2016-10-28 13:04:09 +08:00
Simey Lameze ff2abc4b7d MDL-44467 core: mail settings and navigation improvements
This commit groups all mail settings under Server node, splitting into
two categories: Outgoing mail configuration and Incoming mail configuration.
Also, it make maildomain setting available on the Email settings page.
2016-10-28 13:04:09 +08:00
Damyon Wiese 0f13ffbc63 MDL-56297 theme_boost: Obey usefilepicker option
URL form fields support 'usefilepicker' option to show/hide the file picker in some forms.
2016-10-28 12:57:08 +08:00
Damyon Wiese 58488d0ff0 MDL-56462 boost: Fix assign grading options form
Classes attribute was not being honoured by all form element templates.
Formchangechecker was only looking for the ignoredirty class on the element,
in boost it is on the container.
Assign had specific styles to hide the submit buttons that were not matching in boost.
2016-10-28 12:24:50 +08:00
Marina Glancy 3abda0332d MDL-56615 portfolio_googledocs: add basic unittests 2016-10-28 12:13:33 +08:00
Jun Pataleta 5306a00ab0 MDL-56580 core_form: Unescape select attributes 2016-10-28 12:02:06 +08:00
Marina Glancy 761ef5d33a MDL-56615 portfolio: fix php 7.0.9 warning 2016-10-28 11:56:42 +08:00
Adrian Greeve 1d4490d366 MDL-56625 authentication: Email registration works again.
Creation via email accounts was broken due to a missing
require for the auth library.
2016-10-28 11:17:28 +08:00
Damyon Wiese 70f0010712 MDL-56627 theme_boost: Move help buttons outside labels
For radios and checkboxes where clicking on the label would toggle the state.
2016-10-28 11:04:28 +08:00
Jun Pataleta 826ee7370e MDL-55825 enrol_lti: Added context type column to enrol_lti_lti2_context 2016-10-28 10:10:43 +08:00
Jun Pataleta a78d184c05 MDL-55825 core_lib: LTI tool provider library fixes
* Define consumer profile member variable for ToolConsumer class
* Added context type property for Context class
* Set context type if 'context_type' parameter was submitted through POST

This commit can be dropped once the pull requests for these changes have
been integrated upstream.
2016-10-28 10:10:43 +08:00
Jun Pataleta f30f627501 MDL-56339 enrol_lti: Force page layout to embedded from custom setting 2016-10-28 10:05:02 +08:00
Jun Pataleta 59eb63612b MDL-56573 enrol_lti: Non-null default for tool_consumer_instance_name 2016-10-28 10:03:19 +08:00
Brian Barnes ea6763e421 MDL-47500 scorm: improved height calculation 2016-10-28 13:41:18 +13:00
Eloy Lafuente (stronk7) a29bcf7819 MDL-47162 core_message: debug whenever courseid is missing
Instead of silently defaulting to SITEID when courseid (coming
from message_send()/\core\message\manager::send_message()) is missing,
now a debugging message is shown to allow developers to fix their
messages to, always, include courseid.

Raw creation of events via message_sent::create() missing other[courseid]
leads to coding exception since now (there shouldn't be any legacy use, as far as
they are always created via create_from_ids() when sending a message.

Updated upgrade.txt notes a little bit, added references the 3.6 final
deprecation issue (MDL-55449) and covered with unit tests.
2016-10-28 00:30:02 +02:00
Eric Merrill 9d0e8a4f6d MDL-47162 core_message: Remove changes to small messages 2016-10-27 18:12:43 +02:00
Eric Merrill 0e8b51607b MDL-47162 core_message: Cleanup of messaging course ids code 2016-10-27 18:12:42 +02:00
Amanda Doughty cc350fd9c8 MDL-47162 core_message: Add course id to message eventdata 2016-10-27 18:11:27 +02:00
lazydaisy 808955143e MDL-56469 theme_boost: reduce section activity indent when not editing. 2016-10-27 15:22:23 +01:00
lazydaisy 13a8c3d89b MDL-56523 theme_boost: Removed region-main-box in maintenance.mustache 2016-10-27 15:18:58 +01:00
Brendan Anderson c28c76450b MDL-54112 mod_assign: Add scale null grade filter 2016-10-27 09:58:56 -04:00
Pau Ferrer Ocaña 59111fa937 MDL-56583 assign: Add info about the user submission capability 2016-10-27 15:40:03 +02:00
Dan Poltawski 577bd70d38 weekly release 3.2dev 2016-10-27 12:19:27 +01:00
Dan Poltawski 2062b6de90 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-10-27 12:19:25 +01:00
John Okely 3a5e14a5d0 MDL-55841 mod_lti: Improve interface usability & consistency
* Always say "Tool URL"
* Add help strings to cartridge interface
2016-10-27 17:13:22 +08:00
Dan Poltawski 1810eb1bf8 Revert "Merge branch 'MDL-56129-master' of git://github.com/andrewnicols/moodle"
This reverts commit aaa2788e42, reversing
changes made to 80b74762c9.
2016-10-27 09:59:38 +01:00
Eloy Lafuente (stronk7) 6a17bdec92 Merge branch 'MDL-56594-master' of git://github.com/damyon/moodle 2016-10-27 10:47:51 +02:00
Damyon Wiese 7744f89275 MDL-56296 theme_boost: Do not hide server-side validation errors
When the client side validation passes - do not hide errors that were not
generated by client side validation.
2016-10-27 15:51:56 +08:00
Simey Lameze 4a7fdb4abb MDL-56427 message: style fixes for notification and message preferences 2016-10-27 15:27:11 +08:00
Damyon Wiese 9629c86f6c MDL-56433 theme_boost: Fix styling for autocompletes
This is for when the autocomplete is used outside of an mform - the drop down arrow was misaligned because
of conflicts with the bootstrap form-control class.
2016-10-27 15:23:50 +08:00
Andrew Nicols 77cfc19a85 Merge branch 'MDL-56015-master-fix1' of http://github.com/damyon/moodle 2016-10-27 15:12:49 +08:00
Kenneth Hendricks e47c002c75 MDL-29795 assign: Tweak user-info section in grader view
- also mirror due date removal in boost template
2016-10-27 17:09:58 +11:00
Kenneth Hendricks 84a303b5d2 MDL-29795 assign: Fix mustache template 2016-10-27 15:52:28 +11:00
Andrew Nicols ce434c7664 Merge branch 'wip-mdl-55074-fix2' of https://github.com/rajeshtaneja/moodle 2016-10-27 12:16:43 +08:00
Rajesh Taneja 0fa66b5383 MDL-55074 behat: Remove js tag as the feature can run without it 2016-10-27 12:11:45 +08:00
Kenneth Hendricks eeaefbb850 MDL-29795 assign: Add 'Duplicate override' breadcrumb 2016-10-27 14:10:43 +11:00
Kenneth Hendricks a13f1f4996 MDL-29795 assign: Only display date columns if overrides 2016-10-27 14:10:35 +11:00
Damyon Wiese b7d127aa93 MDL-55732 theme_boost: Add separator logic to group templates 2016-10-27 11:05:08 +08:00
Frédéric Massart b24212515c MDL-55732 theme_boost: Export elements separator in groups 2016-10-27 10:54:02 +08:00
Frédéric Massart 4b021492d6 MDL-55732 theme_boost: Bulk user actions form adjustments
- The 'add' and 'remove' buttons consistently wrap on two lines
- Multiple select fields use the size attribute to set the options seen
2016-10-27 10:54:02 +08:00
Damyon Wiese bff9fd896a MDL-56597 theme_boost: Maintenance warning styles 2016-10-27 10:41:42 +08:00
Damyon Wiese f1f6d80e69 MDL-56610 theme_boost: White background on the maintenance pages 2016-10-27 09:39:39 +08:00
lazydaisy 8b590de0b7 MDL-56523 theme_boost: Removed region-main-box in maintenance.mustache 2016-10-27 09:32:19 +08:00
Damyon Wiese 58473a6776 MDL-56015 theme_boost: change theme preview screenshot 2016-10-27 09:20:35 +08:00
Kenneth Hendricks 34fac159fb MDL-29795 assign: Add course to user profile link 2016-10-27 11:38:40 +11:00
Kenneth Hendricks f73c5b519c MDL-29795 assign: Add missing inactiveoverridehelp lang string 2016-10-27 10:39:49 +11:00
Eloy Lafuente (stronk7) 6f01090159 Merge branch 'MDL-56448-master' of git://github.com/danpoltawski/moodle 2016-10-26 16:11:44 +02:00
Dan Poltawski f07cb88c57 MDL-56448 mustache: fix json errors in example context 2016-10-26 12:35:45 +01:00
Dan Poltawski 2300b95dbf Merge branch 'MDL-56184-master-master' of git://github.com/damyon/moodle 2016-10-26 12:11:56 +01:00
Dan Poltawski add9db49f4 MDL-56334 tests: add some trivial cases to domain tests
This gets us to 100% code coverage.
2016-10-26 09:58:05 +01:00
Dan Poltawski e376b4bd64 Merge branch 'MDL-56334-master-v2' of git://github.com/snake/moodle 2016-10-26 09:57:50 +01:00
David Mudrák dfe73442f7 MDL-56542 lang: Fix coding style of qtype_calculated strings file
This patch does not actually change the value of strings. It only fixes
the coding style issues raised by the prechecker (missing spaces around
the assignment operator).
2016-10-26 10:47:15 +02:00
Damyon Wiese 11774d9014 MDL-56599 theme_boost: Move region settings menu out of content div
This is because the content div has it's own rules for scrolling and overflow,
and they don't work well with the action menu for the region.
2016-10-26 16:46:29 +08:00
Eloy Lafuente (stronk7) c64230234f Merge branch 'MDL-56090-master-fix' of github.com:andrewnicols/moodle 2016-10-26 10:38:36 +02:00
Adrian Greeve 020c98e373 MDL-56334 libraries: Addition of domain checker.
Added a function for checking if a domain is allowed
against a list of domains that could contain wildcards.
2016-10-26 15:51:32 +08:00
Jake Dallimore 6d6e36923b MDL-56334 libraries: Add new internet protocol library to core
New library providing utilities for IP addresses, DNS and other
internet-protocol-related information.
2016-10-26 15:49:03 +08:00
Andrew Nicols ebc746dcc2 MDL-56090 message: Make key in union unique
This also fixes the unit test to use the correct indices.
2016-10-26 15:43:56 +08:00
Damyon Wiese 76132d1eb9 MDL-56078 theme_boost: Preset settings for release
Allow user uploaded preset files and remove the bootswatch based existing presets.
2016-10-26 15:27:43 +08:00
David Monllao 01435b4ebd Merge branch 'MDL-53048-master-fix' of git://github.com/andrewnicols/moodle 2016-10-26 15:11:27 +08:00
Frédéric Massart a4a6d85b5b MDL-56184 theme_boost: Constrain inline form elements to form width 2016-10-26 15:06:59 +08:00
Andrew Nicols 7eafebbcf7 Merge branch 'MDL-53366-master' of github.com:ankitagarwal/moodle 2016-10-26 14:15:49 +08:00
Andrew Nicols 3778a9226f MDL-53048 core_form: passwordunmask must exist on page for validation
The initial approach I took was to provide a noscript area containing the
standard input element, and to move it to a hidden input element as part of
the passwordunmask setup.

This allowed behat tests to pass both with and without JS enabled (i.e.
with Goutte and real browsers), and also ensured that the real input did
not appear on screen.

However, the standard formslib validation occurs before other page JS is
run and hooks into the elements on page during its setup.
Since noscript elements are not accessible to scripts as standard elements,
the form validation would fail for _client_ side validation and work for
server-side validation.

This change creates creates the hidden input element in the template
instead, as well as the password element in the noscript tag.

Doing this means that when JS is disabled, the form has two elements of the
same name - one hidden, and the second a visible password field.
Since the latter element will always override the former one on form
submission, and the noscript variant is last, the noscript variant wins
when JS is disabled and tests continue to pass.

When JS is enabled, the noscript variant is not a valid part of the DOM
(the browser sees it as a hidden text field essentially). The password is
not automatically entered into the hidden field, so the autocomplete
prevention continues to work as expected.
2016-10-26 13:33:10 +08:00
Ankit Agarwal ff67562eca MDL-53366 antivirus_clamav: Remove Quarantine directory setting 2016-10-26 09:47:27 +05:30
David Monllao ee61e3ef83 Merge branch 'wip-mdl-55074-fix' of https://github.com/rajeshtaneja/moodle 2016-10-26 10:31:09 +08:00
Damyon Wiese 181179de54 MDL-55074 message: Display modal window in message, BS2 compatible 2016-10-26 10:24:20 +08:00
Damyon Wiese 33cb7031de MDL-55074 behat: Fix zoom in/out dom insertion 2016-10-26 10:18:52 +08:00
Rajesh Taneja eb1335c63c MDL-55074 behat: Click on the internal div to ensure driver don't click at wrong node 2016-10-26 10:15:59 +08:00
Rajesh Taneja 7f8c9bb852 MDL-55074 behat: Use full navigation path 2016-10-26 10:15:18 +08:00
Andrew Nicols 71c47e774f Merge branch 'wip-mdl-56532-fix' of https://github.com/rajeshtaneja/moodle 2016-10-26 10:12:25 +08:00
Rajesh Taneja 0c4c697dac MDL-56532 behat: Fixed language string 2016-10-26 10:11:17 +08:00
Andrew Nicols 7f650fdec8 Merge branch 'MDL-29110-master' of git://github.com/lameze/moodle 2016-10-26 09:48:25 +08:00
Simey Lameze 0ab8b33754 MDL-29110 enrol_self: improve send course welcome message setting
This commit change send course welcome message to a drop-down that now supports sending emails from:
- Course contact
- Enrolment key holder
- No reply address
Also moves part of the logic of handling send welcome email from to a new method get_welcome_email_contact() and unit test for this new method.
2016-10-26 09:38:09 +08:00
Eloy Lafuente (stronk7) 7c7928b2d8 Merge branch 'MDL-56354' of https://github.com/mr-russ/moodle 2016-10-26 03:02:53 +02:00
Andrew Nicols f34d743dd4 Merge branch 'wip-mdl-56532' of https://github.com/rajeshtaneja/moodle 2016-10-26 08:27:14 +08:00
Andrew Nicols dc213b45ec MDL-50888 antivirus: Add note to upgrade.txt 2016-10-26 08:23:20 +08:00
Damyon Wiese 9de8c56136 MDL-56594 theme_boost: The template for checkboxes has a nesting error
This throws and exception which is caught - and the renderer fall back to the
legacy HTML for the element.
2016-10-26 08:19:41 +08:00
Andrew Nicols 8d3c33c693 Merge branch 'MDL-50888-master' of https://github.com/lucisgit/moodle 2016-10-26 08:19:23 +08:00
Rajesh Taneja a4da15d472 MDL-56532 behat: Fixed language string 2016-10-26 08:14:58 +08:00
Russell Smith ef15173794 MDL-56354 unittests: Put debug messages in the failure notice. 2016-10-26 08:39:10 +11:00
Dan Poltawski a360594259 Merge branch 'MDL-56136' of git://github.com/timhunt/moodle 2016-10-25 20:44:42 +01:00
Dan Poltawski 7af5ad97c1 MDL-46942 events: fix naming of other param
originalcourseid matches coding style
2016-10-25 20:18:35 +01:00
Dan Poltawski 7e670910ed Merge branch 'MDL-46942-added-original-course' of https://github.com/jmalmsten-panopto/moodle 2016-10-25 20:15:55 +01:00
Eloy Lafuente (stronk7) 717845b52d Merge branch 'MDL-54833-master-workshopuserplan' of git://github.com/mudrd8mz/moodle 2016-10-25 20:46:30 +02:00
David Mudrák 98892c0467 MDL-56542 lang: Use the reworded string in the Behat scenario 2016-10-25 20:23:56 +02:00
Eloy Lafuente (stronk7) 0d80f6984b Merge branch 'MDL-56250-32-formvalidation' of https://github.com/roperto/moodle 2016-10-25 20:23:12 +02:00
Helen Foster c9636ddd51 MDL-56542 lang: Merge English strings from the en_fix language pack 2016-10-25 20:12:52 +02:00
Eloy Lafuente (stronk7) f07a1ae8a3 Merge branch 'master' of https://github.com/yuriy-os/moodle 2016-10-25 20:11:27 +02:00
Dan Poltawski 607bdc3829 Merge branch 'MDL-53366-master' of https://github.com/lucisgit/moodle 2016-10-25 19:05:00 +01:00
Dan Poltawski d5e902d3ab Merge branch 'MDL-55143' of https://github.com/mr-russ/moodle 2016-10-25 18:40:06 +01:00
Eloy Lafuente (stronk7) c52cc59877 Merge branch 'MDL-54781_master' of git://github.com/markn86/moodle 2016-10-25 19:37:11 +02:00
Eloy Lafuente (stronk7) bab82353f6 Merge branch 'MDL-56444' of https://github.com/mr-russ/moodle 2016-10-25 18:56:00 +02:00
AMOS bot 2c07cc5cf8 Automatically generated installer lang files 2016-10-26 00:04:31 +08:00
Dan Poltawski 98363b9d52 MDL-56017 filter_mathjax: bump version 2016-10-25 10:38:03 +01:00
Dan Poltawski 64ce747448 Merge branch 'MDL-56017-master' of git://github.com/lameze/moodle 2016-10-25 10:36:51 +01:00
David Monllao 26aa08b2f8 Merge branch 'MDL-56307-master' of git://github.com/jleyva/moodle 2016-10-25 17:33:08 +08:00
Dan Poltawski 274c5837e7 Merge branch 'MDL-56536-master' of git://github.com/jleyva/moodle 2016-10-25 10:12:54 +01:00
Juan Leyva 25adfbaa4a MDL-56307 course: Support new returned data in WS 2016-10-25 10:10:55 +01:00
Juan Leyva 65b2669d98 MDL-56307 course: Return time updated and times updated 2016-10-25 10:10:55 +01:00
Russell Smith cebce76f61 MDL-56307 course: Refactor file_storage 2016-10-25 10:10:53 +01:00
Juan Leyva 26659f626a MDL-56307 course: New Web Service core_course_check_module_updates 2016-10-25 10:10:53 +01:00
Juan Leyva 02a73d767c MDL-56307 course: New course_check_module_updates_since method 2016-10-25 10:10:52 +01:00
Juan Leyva 1896b8009a MDL-56307 course: API changes to support retrieve by time 2016-10-25 10:10:52 +01:00
Dan Poltawski ad07960d89 Merge branch 'wip-MDL-56395-master' of https://github.com/Beedell/moodle 2016-10-25 09:30:46 +01:00
Dan Poltawski b580f39556 Merge branch 'MDL-56403_master' of git://github.com/markn86/moodle 2016-10-25 09:27:42 +01:00
John Okely 51478048cd MDL-55841 enrol_lti: Make published tool list more user friendly 2016-10-25 16:13:01 +08:00
John Okely 23146bad48 MDL-55841 core: Allow copy box to be used multiple times in one template 2016-10-25 16:13:01 +08:00
Dan Poltawski 737e3c3b67 Merge branch 'MDL-56487-master' of git://github.com/andrewnicols/moodle 2016-10-25 08:42:58 +01:00
David Monllao ab9ca549e7 Merge branch 'wip-mdl-56347' of https://github.com/rajeshtaneja/moodle 2016-10-25 15:20:06 +08:00
Andrew Nicols 9c792b9861 Merge branch 'MDL-55922' of https://github.com/mr-russ/moodle 2016-10-25 15:11:43 +08:00
Dan Poltawski c435523ac5 Merge branch 'MDL-56468-master' of git://github.com/andrewnicols/moodle 2016-10-25 08:11:05 +01:00
David Monllao bf91437d25 Merge branch 'wip-mdl-55074' of https://github.com/rajeshtaneja/moodle 2016-10-25 15:09:24 +08:00
David Monllao 1d58c301c7 Merge branch 'MDL-56156-master' of git://github.com/damyon/moodle 2016-10-25 15:05:17 +08:00
Andrew Nicols b146ff9451 MDL-56004 theme_bootstrapbase: Rebuild less 2016-10-25 14:24:32 +08:00
Andrew Nicols 2979c25683 Merge branch 'MDL-56004-master' of https://github.com/damyon/moodle 2016-10-25 14:13:19 +08:00
David Monllao 5c39800880 Merge branch 'wip-mdl-53048' of https://github.com/rajeshtaneja/moodle 2016-10-25 14:00:29 +08:00
Dan Poltawski 3b89ce210d Merge branch 'MDL-56442-master' of https://github.com/StudiUM/moodle 2016-10-25 06:56:44 +01:00
Rajesh Taneja c99dffb69c MDL-55074 behat: Fixed new theme related changes 2016-10-25 13:48:51 +08:00
Dan Poltawski 0579372b70 Merge branch 'MDL-56552_master' of git://github.com/dmonllao/moodle 2016-10-25 06:45:15 +01:00
Dan Poltawski 1a2497c3c2 Merge branch 'MDL-55902-master' of git://github.com/junpataleta/moodle 2016-10-25 06:38:13 +01:00
Damyon Wiese fb045b4e15 MDL-56004 theme: upgrade.txt note about bootstrap compatibility 2016-10-25 13:36:29 +08:00
Damyon Wiese 0862719092 MDL-56004 theme: Add some BS2 compatibility to BS4.
This is for user-created texts (e.g. the people have used the generico filter to inject BS2 markup into user tests).

It is also for existing old HTML that we have not had time to upgrade yet.
2016-10-25 13:36:23 +08:00
Damyon Wiese fe4a6c3bdb MDL-56004 theme: Add some BS4 compatibility to BS2 2016-10-25 13:36:18 +08:00
David Monllao 1e56070d34 Merge branch 'wip-mdl-55981' of https://github.com/rajeshtaneja/moodle 2016-10-25 13:29:03 +08:00
Rajesh Taneja 39946dc135 MDL-53048 behat: Fixed unmasked password field to select 2016-10-25 13:23:36 +08:00
Rajesh Taneja cdb4975a44 MDL-55981 behat: Fixed groups seen by user 2016-10-25 13:19:32 +08:00
Dan Poltawski 76a6dc685d Merge branch 'MDL-56534-master' of git://github.com/crazyserver/moodle 2016-10-25 06:08:48 +01:00
David Monllao f5b07540c7 Merge branch 'MDL-56532-master' of git://github.com/andrewnicols/moodle 2016-10-25 12:43:36 +08:00
David Monllao 0add237ef5 Merge branch 'MDL-56516-master' of git://github.com/andrewnicols/moodle 2016-10-25 12:37:44 +08:00
Andrew Nicols 14d9b4fd85 MDL-56532 tool_usertours: Correct langstring uses for top/bottom 2016-10-25 12:15:34 +08:00
David Monllao 74965e29f6 Merge branch 'MDL-56006-master' of git://github.com/damyon/moodle 2016-10-25 11:51:21 +08:00
Rajesh Taneja d87dac7e70 MDL-56006 behat: Load proper context by helper 2016-10-25 11:21:53 +08:00
Russell Smith 261bfabc6f 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.
2016-10-25 14:10:36 +11:00
Andrew Nicols 85f33abf3e Merge branch 'MDL-56015-master' of git://github.com/damyon/moodle 2016-10-25 10:37:36 +08:00
Damyon Wiese 848db61636 MDL-56006 blocks: Fix installation with no required blocks
Boost requires no blocks which was causing a failure on installation.
2016-10-25 10:15:20 +08:00
Rajesh Taneja 4422ffc55e MDL-56006 behat: Get proper feature and context for default theme
No matter which theme is default theme, overridden
context and blacklisted features should be respected
2016-10-25 10:15:20 +08:00
Damyon Wiese e56b58e3c9 MDL-56006 theme: Set Boost as the default theme
Units tests have been adjusted e.g. 'boost' instead of 'clean' in pix urls.

Some places I didn't update the test to reflect the boost markup and reset
the theme to clean. This is because the test was not testing the markup - but the
functionality (e.g. looking for specific structures to indicate an error in a form element).
2016-10-25 10:15:20 +08:00
Damyon Wiese 976b635d7b MDL-56015 theme_boost: Clean up pix folder
Add real screenshot of new theme and delete unused images and icons.
2016-10-25 10:09:07 +08:00
Andrew Nicols 6db92c6c37 MDL-56516 tool_usertous: Remove eroneous test 2016-10-25 08:54:33 +08:00
Andrew Nicols 67b49f27a4 MDL-56516 tool_usertours: Adjust tour query for MySQL 2016-10-25 08:39:36 +08:00
Eloy Lafuente (stronk7) 6858c7acec Merge branch 'MDL-48350-M32' of git://github.com/lazydaisy/moodle 2016-10-24 20:30:11 +02:00
Eloy Lafuente (stronk7) d6ab5917fa Merge branch 'MDL-56532-master' of git://github.com/andrewnicols/moodle 2016-10-24 20:05:03 +02:00
jmalmsten-panopto 3480411e0d MDL-46942 core_backup: added original course id to restore event 2016-10-24 09:01:34 -07:00
Dan Poltawski b5c5d741c4 Merge branch 'MDL-56538-master' of git://github.com/crazyserver/moodle 2016-10-24 15:50:55 +01:00
Dan Poltawski b37895a13a Merge branch 'MDL-56531-master' of git://github.com/andrewnicols/moodle 2016-10-24 15:43:27 +01:00
Dan Poltawski 2eb61a66dc Merge branch 'wip-MDL-56439-master' of git://github.com/marinaglancy/moodle 2016-10-24 14:33:53 +01:00
Andrew Nicols c6698a4f0f MDL-56532 tool_usertours: Improve help for step editing 2016-10-24 21:21:44 +08:00
Andrew Nicols 3f41a803e7 MDL-56531 tool_usertours: Run step title/content through filters 2016-10-24 21:18:10 +08:00
Pau Ferrer Ocaña 8845688ce4 MDL-56534 assign: Add grading status on get_submissions WS 2016-10-24 13:24:18 +02:00
John Beedell 0cfeb01496 MDL-56395 Gradebook item titles - adjusting category titles 2016-10-24 11:43:10 +01:00
Juan Leyva a18cb9d84f MDL-29795 assign: Apply overrides to get_assignments
This commit also fix a problem in the previous commit
2016-10-24 11:24:40 +01:00
Damyon Wiese 6b8e798db1 MDL-29795 assign: Apply overrides before saving a submission
From the webservice.
2016-10-24 11:04:10 +01:00
Ilya Tregubov d685b95935 MDL-29795 mod_assign: Add user/group override assignment module 2016-10-24 11:03:49 +01:00
John Beedell 89eacee7a2 MDL-56395 Gradebook: Make long item titles more accessible 2016-10-24 10:51:59 +01:00
Frédéric Massart 17553c6350 MDL-56213 theme_boost: Visual inconsistencies in backup/restore
* Some additional SCSS rules were added to be more visually pleasing
* Javascript had to be tweaked as targets were too specific
2016-10-24 10:29:38 +01:00
Lee Campbell 74866f8f16 MDL-56323 core_user: User profile field default value not on signup page
The default value of a configured text input user profile field is not rendering on signup page
2016-10-24 09:32:32 +01:00
Dan Poltawski a809969691 Merge branch 'MDL-56350-master' of git://github.com/andrewnicols/moodle 2016-10-24 09:17:52 +01:00
David Monllao 8823be0b60 Merge branch 'MDL-56516-master' of git://github.com/andrewnicols/moodle 2016-10-24 15:41:34 +08:00
David Monllao 3ea1fa18cc Merge branch 'mdl56466-master' of https://github.com/tlock/moodle 2016-10-24 15:23:51 +08:00
Andrew Nicols 6511cf7795 MDL-56509 tool_usertours: Remove guest from list and add admin
It is not possible to display a tour to users with the guest role so remove
all users with this archetype from the list.

This also changes behaviour such that it is possible to target a tour just
to administrators and administrators are not shown the tours for roles
which they do not have in the current context.
2016-10-24 15:11:54 +08:00
David Monllao 1b14f1a497 Merge branch 'MDL-55981-master' of git://github.com/andrewnicols/moodle 2016-10-24 14:06:17 +08:00
Andrew Nicols 5fe4bd6422 MDL-55981 core: Correct availability tests to use editingteacher 2016-10-24 13:59:33 +08:00
Andrew Nicols 33492029de Merge branch 'MDL-56321-master' of git://github.com/damyon/moodle 2016-10-24 13:29:31 +08:00
David Monllao c10cd185a9 Merge branch 'MDL-55981-master' of git://github.com/andrewnicols/moodle 2016-10-24 13:20:42 +08:00
David Monllao 0c6cf86925 MDL-55074 theme_boost: Deleting old file 2016-10-24 13:11:38 +08:00
David Monllao 93432c781e MDL-56552 tool_mobile: No phpunit timing issues 2016-10-24 12:57:52 +08:00
David Monllao 947970fc49 MDL-55074 boost: Fixing issues reported by stylelint 2016-10-24 12:40:40 +08:00
David Monllao 48f43096e0 Merge branch 'MDL-55074-master' of git://github.com/damyon/moodle 2016-10-24 12:33:51 +08:00
Damyon Wiese df25a884e8 MDL-56321 theme_boost: Remove extra styling from context_header 2016-10-24 12:11:13 +08:00
Frédéric Massart e9a009dcd6 MDL-56321 theme_boost: Profile page adjustments
- Removed the border overlapping a user's avatar. This only affected
  course profiles and the default preset.
- Do not break the sections when they wrap from one column to another
- Sneaked in a change to remove left/right padding on .box. I've been
  wanting to change that since I added it. The padding on top and bottom
  is sometimes useful to separate boxes, but the left/right padding
  should be applied by the general structure.
2016-10-24 12:11:12 +08:00
Andrew Nicols 49b78f21b4 Merge branch 'MDL-56533-master' of git://github.com/crazyserver/moodle 2016-10-24 12:07:40 +08:00
Damyon Wiese 4b937932a2 MDL-55074 theme_behat: Behat fixes for user_grade_navigation 2016-10-24 12:00:23 +08:00
David Monllao aaa2788e42 Merge branch 'MDL-56129-master' of git://github.com/andrewnicols/moodle 2016-10-24 11:56:06 +08:00
Andrew Nicols c823bfee62 MDL-56129 core: Set a timeout on the session cookie
This is primarily because iOS has changed something under the hood which
means that only session cookies which have an expiry are passed around the
OS.

In order to make media playable outside of the browser (e.g. a video), we
must set a session cookie timeout.

Since the session timeout is configurable, this patch sets the cookie
timeout to the session timeout plus a period of one week.

This ensures that videos continue to work, and that the expired session
message is shown on the login page, but without requiring excessively long
session times.
2016-10-24 11:47:06 +08:00
Andrew Nicols 1093e43bda MDL-56516 tool_usertours: Cache tours and steps 2016-10-24 11:34:10 +08:00
David Monllao 80b74762c9 DML-53048 forms: Remove conflict resultion remaining bit
Change wrong alternative references as well.
2016-10-24 11:16:53 +08:00
David Monllao 8f68e0343a Merge branch 'MDL-53048-master' of git://github.com/andrewnicols/moodle 2016-10-24 11:12:25 +08:00
Luke Carrier 14d6c1cf79 MDL-55902 my: Add additional information to dashboard reset events
* Add $private and $pagetype information to the 'other' parameter of
the dashboard(s) reset events.
2016-10-24 11:03:10 +08:00
Damyon Wiese 3f1fa45771 MDL-55074 theme_boost: Phantomjs robustness
Raj was seeing some fails with phantomjs because the action menus were not open after clicking
on the link to open them. Make sure we look for the open menu before continuing.
2016-10-24 10:38:43 +08:00
David Monllao 055cc7d037 Merge branch 'MDL-56252-master' of git://github.com/ryanwyllie/moodle 2016-10-24 10:25:32 +08:00
Andrew Nicols ab00bf59a5 Merge branch 'MDL-56341-master' of git://github.com/damyon/moodle 2016-10-24 10:11:20 +08:00
David Monllao 40e342718b Merge branch 'MDL-56380_master' of git://github.com/markn86/moodle 2016-10-24 10:04:45 +08:00
Damyon Wiese 8387614051 MDL-55074 theme_boost: Undefined variable in perf footer 2016-10-24 10:03:04 +08:00
Andrew Nicols c071a83c94 Merge branch 'MDL-56355-master' of git://github.com/ryanwyllie/moodle 2016-10-24 09:47:43 +08:00
David Monllao 8cf4139074 Merge branch 'MDL-56090_master' of git://github.com/markn86/moodle 2016-10-24 09:35:28 +08:00
Andrew Nicols ca25005c69 MDL-53048 form: Rewrite passwordunmask
This version:
* should work with the Behat Goutte driver
* should not suffer from password autofill anxiety
* should allow unmasking (and masking) of a password
* should allow editing of passwords in either masked, or unmasked form

AMOS BEGIN
 MOV [revealpassword,core_form],[passwordunmaskrevealhint,core_form]
AMOS END
2016-10-24 09:24:39 +08:00
Andrew Nicols ac157b0bbe MDL-53048 forms: Deprecate prevent_form_autofill_password 2016-10-24 08:19:44 +08:00
Yuriy Osychenko 6e7f41715f MDL-53098 lib: Mark form as submitted in confirmation dialog.
If the quiz attempt use popup window with Javascript security it will
show to the user misleading message that he is going to lose entered
data.
To avoid this we should mark form as submitted to turn off browser`s
pop-up window when user confirms finishing attempt.
Also we need to check if core_formchangechecker is present on a page.
2016-10-24 00:39:28 +03:00
David Mudrák 5b1a074d89 MDL-54833 workshop: Provide accessible links to the current phase tasks
The screen reader had to read through all the phases tasks. This patch
adds an accessibility link to the list of the current phase tasks so the
user can skip directly to them.
2016-10-21 22:57:58 +02:00
David Mudrák 56201bcdef MDL-54833 workshop: Enhance usability of switching to the next phase
Many users did not realize the need to switch the phase manually. This
patch adds a new explicit task to the current phase to do that.
2016-10-21 17:10:32 +02:00
Loc Nguyen 52554b172f MDL-54833 workshop: Enhance accessibility of the userplan widget
Change userplan HTML structure from table to unordered definition list
<dl> <dt> and <dd>. Add accessibility string for task-todo, task-done,
task-fail, task-info to be read by screen reader
2016-10-21 17:03:06 +02:00
Eloy Lafuente (stronk7) bf6cfca285 Merge branch 'MDL-56529-master' of git://github.com/junpataleta/moodle 2016-10-21 13:03:56 +02:00
Ruslan Kabalin 19f8cd61b0 MDL-53366 antivirus_clamav: Remove "Quarantine directory" setting. 2016-10-21 11:49:44 +01:00
Ruslan Kabalin f8927a7cde MDL-50888 antivirus: Unit test refactoring.
Remove all cleanup and exception test references. We expect plugin just to
respond with scanning result constant and notice where applicable.

Add tests for \core\antivirus\manager.
2016-10-21 11:48:49 +01:00
Ruslan Kabalin 4cc1b5bc0c MDL-50888 antivirus: Move post-scan logic to manager.
In the initial implementation, infected file cleanup and exception throwing
was done at the plugin level. This is somewhat incorrect from plugin
responsibility perspective. The patch moves cleanup and exception logic to
the manager. Antivirus plugin responsibility is limited to perform scanning
and respond with one of the result statuses defined in the
\core\antivirus\scanner.
2016-10-21 11:48:49 +01:00
Ruslan Kabalin 83a43b88fe MDL-50888 antivirus_clamav: Unit tests refactoring.
Due to configurable nature of scanning method selection, unit test needs to
be updated to always point to commadline method. There is no need to write
separate tests for socket scanning method, as the scanning method needs to
be mocked anyway (i.e. will be identical to commandline scanning from test
perspective).
2016-10-21 11:48:48 +01:00
Ruslan Kabalin 7be0d4292a MDL-50888 antivirus_clamav: Implement scan using Unix domain sockets.
This is a faster way of scanning files than using command line exec call,
but only available on unix-like systems.
2016-10-21 11:48:48 +01:00
Pau Ferrer Ocaña 896b6e3cb0 MDL-56538 assign: Fix new grading interface UI popouts 2016-10-21 12:29:20 +02:00
lazydaisy d847581601 MDL-48350 theme_bootstrapbase: restyle action icons in docked blocks 2016-10-21 10:49:59 +01:00
Juan Leyva 5d5e30c64d MDL-56536 tool_mobile: Add logos to the get_public_config WS 2016-10-21 10:30:59 +01:00
Pau Ferrer Ocaña 28ff87bec1 MDL-56533 course: Add outcome scale information on get_course_module WS 2016-10-21 10:37:44 +02:00
Mark Nelson 1f64514def MDL-56090 core_message: added API unit tests 2016-10-21 16:22:03 +08:00
Juan Leyva 6492401d1c MDL-56307 mod: Add missing FEATURE_COMMENT in modules 2016-10-21 09:21:28 +01:00
Damyon Wiese ba5c5083c5 MDL-55074 theme_boost: Behat fixes for latest theme changes
Fix I edit profile steps
Apply fixed header in css
Remove transitions from menus for behat
Be more specific about some "I follow" steps
Navigation path changes
"Current course" node removed from nav tree
Adapt tests because there are no default blocks
Force some space between action menu items
2016-10-21 16:06:54 +08:00
Andrew Nicols 741c2d4617 MDL-56350 tool_usertours: Apply aria-hidden to other page elements
Note: This patch is in the upstream library.
2016-10-21 12:41:44 +08:00
Frédéric Massart c9c1e4baf6 MDL-56272 theme_boost: Differentiate between freeze and hardFreeze 2016-10-21 12:41:33 +08:00
Damyon Wiese 245d354c6c MDL-55074 theme_boost: Unit test fixes for all these changes 2016-10-21 12:40:06 +08:00
Damyon Wiese 6e79ea5846 MDL-55074 theme_boost: Styling for grade reports 2016-10-21 12:40:06 +08:00
Damyon Wiese c6d9d29da1 MDL-55074 theme_boost: Improve the display of the menus in the footer 2016-10-21 12:40:06 +08:00
Damyon Wiese d430a7c336 MDL-55074 navigation: Menu and nav changes
"Grades" belongs in the navigation block, not the settings block.
Course / Activity menus should not include a link to the full settings page list, if it is the same as the menu.
Competencies belongs in the navigation block not the settings block.
2016-10-21 12:40:05 +08:00
Damyon Wiese 70fda55e85 MDL-55074 theme_boost: Make dropdowns consistent
Links in drop down menu items should fill the entire row and be
displayed as normal text color (they are like buttons).
2016-10-21 12:40:05 +08:00
Damyon Wiese b45fdc6838 MDL-55074 theme_boost: Move the custom menu into the footer
On mobile screen sizes only.
2016-10-21 12:40:05 +08:00
Damyon Wiese 7f20e8e7cb MDL-55074 theme_boost: Custom renderer fails on book
Handle nav tree nodes with action_links in them.
2016-10-21 12:40:05 +08:00
Damyon Wiese fe009bdeaa MDL-55074 theme_boost: Workaround for popovers
The custom-interaction events have a bug where if they are used twice, they fire 2 events.

The bug still exists - this is a workaround.
2016-10-21 12:40:05 +08:00
Damyon Wiese c13115cbfa MDL-55074 blocks: Remove default blocks from course and site 2016-10-21 12:40:05 +08:00
Damyon Wiese 6afd1c60c0 MDL-55074 theme_boost: Fix weird text wrapping in block titles 2016-10-21 12:40:05 +08:00
Damyon Wiese e85d09635d MDL-55074 theme_boost: Rename default only block region 2016-10-21 12:40:05 +08:00
Damyon Wiese a42a065a20 MDL-55074 theme_boost: Do not show flatnav by default before login 2016-10-21 12:37:33 +08:00
Damyon Wiese c9d6a04743 MDL-55074 nav: Put the course nav above the site nav 2016-10-21 12:37:33 +08:00
Damyon Wiese cbdbe7d812 MDL-55074 theme_boost: Current flat nav node should be subtle 2016-10-21 12:37:33 +08:00
Damyon Wiese 0a58ec243d MDL-55074 theme_boost: Move blocks back into the page 2016-10-21 12:37:33 +08:00
Damyon Wiese 5004baaad4 MDL-55074 theme_boost: Only show activity edit menu on first page 2016-10-21 12:37:33 +08:00
Damyon Wiese e226461dab MDL-55074 navigation: Add editing links back to nav
In theme boost - don't support edit_buttons in the page.
2016-10-21 12:37:33 +08:00
Damyon Wiese 598b3f095f MDL-55074 theme_boost: Make sections different in flat nav 2016-10-21 12:37:33 +08:00
Damyon Wiese 8a2ab5f72d MDL-55074 navigation: Always show dashboard/home in flat nav 2016-10-21 12:37:33 +08:00
Damyon Wiese 0f73f3ab42 MDL-55074 blocks: navigation and settings blocks optional
This is a theme config setting.
They are forced on for behat always.
2016-10-21 12:37:33 +08:00
Damyon Wiese 4a3d8169f3 MDL-55074 theme_boost: Prevent page scrolling when scrolling in a drawer 2016-10-21 12:37:33 +08:00
Damyon Wiese 99061152af MDL-55074 theme_boost: Navigation and blocks
This patch includes a big set of changes that are all designed to work together to provide
a better way to navigate in the new theme, and a different way of working with blocks.

Blocks have been moved to a "drawer" that can be opened and closed (this is remembered in a user pref).

A new "flat navigation" element is also available in a drawer - which should let you do 90% of things
without needing to open the "blocks" drawer.

The flat navigation is build from specific parts of the nav tree - the top nodes like "calendar, dashboard" are
hand picked. There is a mycourses node listing your enrolled courses.

There is a node for the current course, built from the top nodes in the current course node in the nav tree.

Administrators have a link to the Site admin settings here too.

These nav elements are used by the templates for the new theme, which also has a resigned layout for login and signup.

There have also been some additional fixes / improvements to the scss for the new theme which goes along with these
layout changes.

This set of changes is a collaboration between Martin, Damyon and Alberto (thanks!).
2016-10-21 12:37:33 +08:00
Jun Pataleta 0766dd669b MDL-56529 enrol_lti: Fix for tool_provider_test
* Use -1 for simulating a non-existent tool for
  tool_provider_testcase::test_constructor_with_non_existent_tool()
2016-10-21 12:34:00 +08:00
Mark Nelson c7ef6d8f3b MDL-54781 core_theme: removed unused message styles 2016-10-21 11:26:01 +08:00
Andrew Nicols 1e5da52de8 MDL-56530 tool_usertours: Correct arrow location 2016-10-21 11:08:56 +08:00
Andrew Nicols b7daff836d MDL-56487 tool_usertours: Sort blocks alphabetically 2016-10-21 10:53:21 +08:00
Russell Smith ae9e735c77 MDL-56347 caching: Better class variables for notices. 2016-10-21 09:21:11 +08:00
Rajesh Taneja 502b66f53d MDL-56347 phpunit: Set class for alternative cache store
If alternative cache store is sued, then set the class
and warn user about this.
2016-10-21 09:20:37 +08:00
Andrew Nicols 4ceed4dfa6 MDL-55981 core: Remove site:accessallgroups from teacher 2016-10-21 08:55:58 +08:00
Daniel Thee Roperto 8b9ca065d8 MDL-56250 forms library: Changed form to validate once per object.
If two instances of moodleforms are validated in the same run, most
likely a phpunit test run, it would store the first validation result.
Now it stores the validation result per instance, not for all instances.
2016-10-21 10:43:03 +11:00
David Ligne f2510387e5 MDL-56442 administration: Display hours in maintenance mode messages 2016-10-20 13:17:07 -04:00
Eloy Lafuente (stronk7) 919b9dfabd weekly release 3.2dev 2016-10-20 17:52:33 +02:00
Eloy Lafuente (stronk7) 42b5234209 NOBUG: Fixed file access permissions 2016-10-20 17:52:32 +02:00
Eloy Lafuente (stronk7) f8e7143fca Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-10-20 17:52:29 +02:00
Mark Nelson f9408b6dd7 MDL-56403 message_popup: removed unnecessary sesskey from URL 2016-10-20 17:42:10 +08:00
Mark Nelson fcc13c6527 MDL-56380 core_message: prevent default behaviour for links 2016-10-20 16:36:59 +08:00
Dan Poltawski 9876856dca Merge branch 'MDL-52777-master-bug' of github.com:andrewnicols/moodle 2016-10-20 08:02:08 +01:00
Andrew Nicols 31c3b7a2e1 MDL-52777 tool_usertours: Stop testing pending upgrades 2016-10-20 14:51:57 +08:00
Andrew Nicols aea13e1c26 MDL-52777 tool_usertours: Fix matching tour test 2016-10-20 14:51:57 +08:00
Ryan Wyllie 54d83992b4 MDL-56252 message: clean message text in message area
Remove the HTML tags from any message in the message area when updating
the last message on the contact otherwise the styling breaks and also
allows <script> tags to be added to the page.
2016-10-20 06:49:26 +00:00
David Monllao c6509ee31d Merge branch 'MDL-52777-master-bug' of github.com:andrewnicols/moodle 2016-10-20 14:09:57 +08:00
Andrew Nicols 55dba8058f MDL-52777 tool_usertours: Only return tours with steps 2016-10-20 13:44:18 +08:00
Russell Smith 0de42ff66a MDL-56444 logstore: Stop gc during memory size test. 2016-10-20 15:56:42 +11:00
Frédéric Massart a89cf23744 MDL-56341 mustache: JS engines handles strings wrapped in quote
Prior to the patch the strings wrapped as the following one
where not found and replaced when rendering the template via Javascript

{{#quote}}{{#str}}string,component{{/str}}{{/quote}}
2016-10-20 12:13:42 +08:00
David Monllao 1b07e80edf Merge branch 'MDL-52777-master-bug' of github.com:andrewnicols/moodle 2016-10-20 11:50:32 +08:00
David Monllao 664b637101 Merge branch 'wip-mdl-55926' of https://github.com/rajeshtaneja/moodle 2016-10-20 11:48:53 +08:00
Rajesh Taneja 48cf062595 MDL-55926 behat: Fixed undefined steps 2016-10-20 11:26:27 +08:00
Andrew Nicols c4d5fb53ce MDL-52777 tool_usertours: Only check plugin for needs update
The moodle_needs_upgrade() function includes every version.php in Moodle
which poses a performance issue, especially when called on every page.
2016-10-20 11:16:54 +08:00
David Monllao 04ec8f6ef8 Merge branch 'MDL-52777-master-bug' of github.com:andrewnicols/moodle 2016-10-20 10:09:28 +08:00
Andrew Nicols a8dded9bfc MDL-52777 tool_usertours: Correct & to && in test 2016-10-20 09:54:26 +08:00
Eloy Lafuente (stronk7) ed971b90eb Merge branch 'MDL-53832-master-review-fixes' of https://github.com/junpataleta/moodle 2016-10-20 02:25:59 +02:00
Dan Poltawski 2d13900f6d Merge branch 'MDL-55823_master' of git://github.com/markn86/moodle 2016-10-19 10:47:35 +01:00
Damyon Wiese 058f2fb68e MDL-56156 theme_boost: enrol_users filter form styles
Allow wrapping any mform in a "form-inline" div to make it a responsive inline form.
Use this for the enrol users filter for and get rid of a good chunk of custom styles.
2016-10-19 17:10:22 +08:00
Mark Nelson 6aa019682c MDL-55823 core_message: added WS unit tests 2016-10-19 17:07:58 +08:00
Jun Pataleta b75d0f0de2 MDL-53832 enrol_lti: Update codes to use the new DB field names 2016-10-19 17:01:34 +08:00
Jun Pataleta fa015abf7b MDL-53832 enrol_lti: Update data_connector to use the new DB field names 2016-10-19 17:01:30 +08:00
Jun Pataleta d1e85a0045 MDL-53832 enrol_lti: Make DB column names more moodle-ish 2016-10-19 17:01:22 +08:00
Andrew Nicols 68855baecd MDL-52777 tool_usertours: Prepare target data when displaying form 2016-10-19 15:40:53 +08:00
David Monllao c24a410f43 Merge branch 'MDL-52777-master-bug' of github.com:andrewnicols/moodle 2016-10-19 15:02:44 +08:00
Andrew Nicols 42bb3f8b66 MDL-52777 tool_usertours: Less strict comparison for tour ID 2016-10-19 14:57:13 +08:00
Ryan Wyllie 4788031edf MDL-56337 message: fix behat for phantomjs 2016-10-19 06:35:12 +00:00
Andrew Nicols a42a5e21eb MDL-52777 tool_usertours: Remove unused template 2016-10-19 13:26:54 +08:00
Jun Pataleta 6092bbc07a MDL-53832 enrol_lti: Map consumer to tool and handle instance deletion 2016-10-19 11:14:28 +08:00
Jun Pataleta c314d6ed8e MDL-53832 enrol_lti: Unit tests for tool_provider
Original subtask: MDL-55647.
2016-10-19 11:14:27 +08:00
Jun Pataleta daebcd2801 MDL-53832 enrol_lti: Improve provider logic
* onRegister
  - Validate returnUrl and consumer object.
  - Use moodle_url for the returnURL.
  - Set success message on successful registration.
  - Reorganise code.
* Constructor
  - Remove required params we don't need (Original sub-task: MDL-56035)
* onLaunch
  - Validate consumer object.
  - Set appropriate values for OK flag and message.
* Import classes.
2016-10-19 11:14:27 +08:00
John Okely 0b72caebac MDL-53832 enrol_lti: Allow multiple LTI1 consumers with the same key 2016-10-19 11:14:27 +08:00
John Okely a618c707f2 MDL-53832 enrol_lti: Support user images
Original subtask MDL-55718.
2016-10-19 11:14:27 +08:00
John Okely 8e0038f9ea MDL-53832 enrol_lti: Only allow certain consumers for each shared tool
Original subtask: MDL-55753.
2016-10-19 11:14:27 +08:00
John Okely f8307a4b57 MDL-53832 enrol_lti: Unit test more of helper 2016-10-19 11:14:26 +08:00
John Okely 098ee549ee MDL-53832 enrol_lti: Split launch and proxy registration end points
Original subtask: MDL-55752.
2016-10-19 11:14:26 +08:00
John Okely da65fcf027 MDL-53832 enrol_lti: Separate tool launch and proxy registration logic 2016-10-19 11:14:26 +08:00
John Okely 7edf96e265 MDL-53832 enrol_lti: Add language strings and renderers 2016-10-19 11:14:26 +08:00
Jun Pataleta d49f57c886 MDL-53832 enrol_lti: Make LTI1 launch URLs work with new library
Original subtask: MDL-55562.
2016-10-19 11:14:25 +08:00
Jun Pataleta 0d26a2313c MDL-53832 enrol_lti: Unit tests for data_connector
Original subtask: MDL-55529.
2016-10-19 11:14:25 +08:00
Jun Pataleta 9191a94143 MDL-53832 enrol_lti: Add data_connector
Original subtask: MDL-55529.
2016-10-19 11:14:25 +08:00
John Okely 9161e71515 MDL-53832 enrol_lti: Add LTI2 tables to enrol_lti 2016-10-19 11:14:25 +08:00
John Okely 9a709cd5a5 MDL-53832 enrol_lti: Add interface for proxies 2016-10-19 11:14:24 +08:00
John Okely a1f3821ee0 MDL-53832 enrol_lti: Add LTI provider library 2016-10-19 11:14:24 +08:00
Ryan Wyllie 65be5b6c11 MDL-56355 message: add keyboard nav to notification page 2016-10-19 03:05:33 +00:00
David Monllao cfc561d0de MDL-52777 usertours: Toothpaste for tabs again 2016-10-19 10:58:21 +08:00
David Monllao 91aeb866e0 MDL-52777 usertours: Replacing tabs by spaces
Also dos2unix to svgs just in case.
2016-10-19 10:40:40 +08:00
David Monllao 2c2dde28f2 MDL-52777 usertours: Remove empty styles file 2016-10-19 10:34:12 +08:00
David Monllao c66027cf4e Merge branch 'MDL-52777-master' of git://github.com/andrewnicols/moodle 2016-10-19 09:59:27 +08:00
Andrew Nicols 001fc061bd MDL-52777 tool_usertours: Add the new User Tours plugin 2016-10-19 09:48:03 +08:00
David Monllao 27f01529ab Merge branch 'MDL-56218-master' of git://github.com/FMCorz/moodle 2016-10-19 09:33:06 +08:00
Eloy Lafuente (stronk7) be1ff9a1ee MDL-43230 badges: new cap version bump 2016-10-18 22:58:27 +02:00
Eloy Lafuente (stronk7) 8c88830a43 Merge branch 'MDL-43230-master' of git://github.com/ryanwyllie/moodle 2016-10-18 22:35:53 +02:00
Eloy Lafuente (stronk7) ffe9505d2b Merge branch 'MDL-56295-master' of git://github.com/andrewnicols/moodle 2016-10-18 20:02:22 +02:00
Eloy Lafuente (stronk7) e74c54ec4d Merge branch 'MDL-56270-master' of git://github.com/andrewnicols/moodle 2016-10-18 19:11:51 +02:00
Eloy Lafuente (stronk7) 05e588a056 Merge branch 'MDL-56293-master' of git://github.com/andrewnicols/moodle 2016-10-18 19:08:08 +02:00
Eloy Lafuente (stronk7) 881e611c33 Merge branch 'MDL-53752-master' of git://github.com/andrewnicols/moodle 2016-10-18 19:06:26 +02:00
Eloy Lafuente (stronk7) 3fdbba0e27 Merge branch 'MDL-29774-master-by-sam-wilson' of git://github.com/junpataleta/moodle 2016-10-18 18:26:50 +02:00
Dan Poltawski 876fc28255 MDL-56082 auth: minor tweak to login block idp links
No longer set the return url to $SESSION->wantsurl, it doens't make
sense in this context, as the user is probably on the page they want.

Also add a note about this functionality to auth/ugrade.txt
2016-10-18 17:19:03 +01:00
Dan Poltawski a477b761be Merge branch 'master' of https://github.com/rimas-kudelis/moodle 2016-10-18 17:03:21 +01:00
Dan Poltawski ad2eba780a Merge branch 'MDL-55926-master-3' of git://github.com/ryanwyllie/moodle 2016-10-18 16:31:42 +01:00
Eloy Lafuente (stronk7) 0e51800e5f Merge branch 'MDL-55858-master' of git://github.com/andrewnicols/moodle 2016-10-18 17:00:21 +02:00
Dan Poltawski 55c7a86632 Merge branch 'wip-MDL-55833-master' of git://github.com/marinaglancy/moodle 2016-10-18 15:26:31 +01:00
Dan Poltawski 0022812b71 Merge branch 'MDL-55736-master' of git://github.com/FMCorz/moodle 2016-10-18 13:48:46 +01:00
Dan Poltawski cfa69ad260 Merge branch 'MDL-56131-master' of git://github.com/andrewnicols/moodle 2016-10-18 13:44:33 +01:00
Dan Poltawski c0b1f18930 MDL-55924 behat: fix misleading comment 2016-10-18 13:24:08 +01:00
Dan Poltawski 01bc6a35bc Merge branch 'wip-mdl-55924' of https://github.com/rajeshtaneja/moodle 2016-10-18 13:22:56 +01:00
Dan Poltawski 846baba950 Merge branch 'wip-mdl-55746' of https://github.com/rajeshtaneja/moodle 2016-10-18 12:37:32 +01:00
Dan Poltawski 551c7e6c38 Merge branch 'wip-MDL-55087-master' of git://github.com/abgreeve/moodle 2016-10-18 12:32:08 +01:00
Dan Poltawski d98ab2a585 Merge branch 'MDL-56062-master' of https://github.com/lucisgit/moodle 2016-10-18 12:06:27 +01:00
Dan Poltawski 1bcaff71d8 Merge branch 'MDL-56159_master-phpunit-fix' of git://github.com/dmonllao/moodle 2016-10-18 11:26:18 +01:00
David Monllao 8d92dbd1fc MDL-56159 user: Fix unit test
The exception that is being thrown changed to moodle_exception
with usernotfullysetup error code.
2016-10-18 18:24:47 +08:00
Dan Poltawski c70b9e8451 Merge branch 'MDL-56081-master' of git://github.com/andrewnicols/moodle 2016-10-18 11:24:36 +01:00
Eloy Lafuente (stronk7) 772c7b4733 Merge branch 'MDL-56275-master' of git://github.com/danpoltawski/moodle 2016-10-18 12:16:28 +02:00
Dan Poltawski 9def79f79a MDL-56275 blog: do not display the 'choose a link' button
When registereing an external blog the choose a link button is
misleading, we don't have any repos which restrict to RSS feeds, so the
majority of results you get from the repo picker will be wrong.
2016-10-18 11:07:54 +01:00
David Monllao 5f02fd5072 Merge branch 'MDL-56159-master' of git://github.com/jleyva/moodle 2016-10-18 17:27:48 +08:00
Eloy Lafuente (stronk7) 8e13213427 Merge branch 'MDL-56436-master' of git://github.com/danpoltawski/moodle 2016-10-18 11:21:31 +02:00
David Monllao d244cf1fd7 MDL-56277 theme_boost: Converting EOLs to unix style 2016-10-18 17:14:11 +08:00
Juan Leyva 43d8e805bb MDL-56159 webservice: Tolerate exceptions in the get_autologin_key ws 2016-10-18 09:44:10 +01:00
Juan Leyva 80e0f0b85b MDL-56159 webservice: Improve not fully setup and missing pwd checks
Removing the check in login/token.php is secure since the
auth_forcepasswordchange is checked in require_login that is called via
validate_context.
The user must be able to get a token even if that setting is on. With
that token we’ll redirect the user to the site or we’ll change the
password when a new WS for that is available.
2016-10-18 09:44:09 +01:00
David Monllao b7676ef92c Merge branch 'MDL-56277-master' of git://github.com/FMCorz/moodle 2016-10-18 16:33:21 +08:00
Eloy Lafuente (stronk7) 2017a60e11 MDL-55175 course: Fix typo & parenthesis 2016-10-18 10:12:30 +02:00
Eloy Lafuente (stronk7) 1f89aba18f Merge branch 'MDL-55175-master-2' of git://github.com/andrewnicols/moodle 2016-10-18 10:12:29 +02:00
David Monllao 3ac4a74777 Merge branch 'MDL-56328-M32' of git://github.com/lazydaisy/moodle 2016-10-18 16:05:53 +08:00
Eloy Lafuente (stronk7) 5dea1f12fc Merge branch 'MDL-56345-master' of https://github.com/lucisgit/moodle 2016-10-18 09:37:47 +02:00
David Monllao 51607c7ea3 Merge branch 'MDL-56214-master' of git://github.com/FMCorz/moodle 2016-10-18 15:02:41 +08:00
Andrew Nicols 6e39d07e4d MDL-56468 theme_boost: Correct heading level of modal dialogue 2016-10-18 14:19:13 +08:00
David Monllao 36259a1cc3 Merge branch 'MDL-56411-int-fix' of github.com:ryanwyllie/moodle 2016-10-18 14:00:29 +08:00
Simey Lameze acf17832d6 MDL-56017 filters: Update MathJax to version 2.7 2016-10-18 13:29:30 +08:00
Tim Lock 0ee41475ae MDL-55456 course: set context for category ajax requests 2016-10-18 12:50:21 +10:30
Ryan Wyllie f5a174f451 MDL-56411 message: dont render message area without other user
Stop the message area header and footer from being rendered if there is
no other user being messaged, otherwise notices are generated and the
messages fail to send.
2016-10-18 02:00:09 +00:00
Tim Lock 65b4dce6f8 MDL-56466 assign: fix database error with team submissions
This fixes the error when viewing the Grading summary with Blind Marking and Team submission is enabled:

ERROR: Incorrect number of query parameters. Expected 32, got 31.
2016-10-18 12:11:45 +10:30
Sam Wilson 813c0590f7 MDL-29774 core_user: Update group-membership summaries on AJAX calls 2016-10-18 09:31:36 +08:00
David Monllao 326d861978 MDL-45639 ws: Remove trailing whitespace 2016-10-18 08:40:25 +08:00
David Monllao 4455ff2cba Merge branch 'MDL-45639-master' of git://github.com/jleyva/moodle 2016-10-18 08:26:25 +08:00
Ryan Wyllie f05c1013de MDL-55926 message: add behat tests for message ui 2016-10-18 00:26:21 +00:00
Ben Kelada d96030ce07 MDL-56372 lib: use static binding to allow overrides in api 2016-10-18 11:23:49 +11:00
Eloy Lafuente (stronk7) 7da431d2ca Merge branch 'wip-MDL-48629-master' of https://github.com/Beedell/moodle 2016-10-18 01:58:31 +02:00
Eloy Lafuente (stronk7) c74bbbb6d5 Merge branch 'MDL-55518-master' of git://github.com/andrewnicols/moodle 2016-10-18 01:43:52 +02:00
Eloy Lafuente (stronk7) 7b7dbac4e8 Merge branch 'wip-mdl-56369' of https://github.com/rajeshtaneja/moodle 2016-10-18 01:32:58 +02:00
Eloy Lafuente (stronk7) b3a089e864 Merge branch 'wip-mdl-56348' of https://github.com/rajeshtaneja/moodle 2016-10-18 01:10:23 +02:00
Eloy Lafuente (stronk7) 3dd505af7d Merge branch 'MDL-56368-M32' of git://github.com/lazydaisy/moodle 2016-10-18 00:38:47 +02:00
Russell Smith 4f391d7a33 MDL-55143 unittests: Check the db rather than cache for version hash. 2016-10-18 09:35:22 +11:00
Eloy Lafuente (stronk7) a14edb9fbb Merge branch 'MDL-56022_m32v3' of https://github.com/sbourget/moodle 2016-10-18 00:07:17 +02:00
Gareth J Barnard 8deec8835f MDL-55913 themes: Long week names overflow main region. 2016-10-17 22:42:10 +01:00
Eloy Lafuente (stronk7) 682074fe5b MDL-56100 mod_folder: add missing $OUTPUT for recent activity report. 2016-10-17 23:06:54 +02:00
Eloy Lafuente (stronk7) 2aa983c006 Merge branch 'MDL-56100-master' of https://github.com/mackensen/moodle 2016-10-17 22:58:11 +02:00
Stephen Bourget 1b467cb8cf MDL-56022 Assign: Make folders structure in the downloaded zip optional
Special thanks to Matt McDermott for the contributing the Javascript
code to fix this issue.
2016-10-17 16:19:28 -04:00
Eloy Lafuente (stronk7) 087476c711 Merge branch 'MDL-56440-master' of git://github.com/danpoltawski/moodle 2016-10-17 20:55:23 +02:00
Eloy Lafuente (stronk7) b705cefa18 Merge branch 'MDL-56300_master' of git://github.com/reskit/moodle 2016-10-17 18:50:07 +02:00
Eloy Lafuente (stronk7) aa46cb9503 Merge branch 'MDL-56057_master' of git://github.com/dmonllao/moodle 2016-10-17 18:42:14 +02:00
Eloy Lafuente (stronk7) cfe55553e0 Merge branch 'MDL-56005-master' of git://github.com/FMCorz/moodle 2016-10-17 18:12:33 +02:00
Dan Poltawski 54c1da6690 Merge branch 'MDL-56208-master' of git://github.com/andrewnicols/moodle 2016-10-17 12:52:26 +01:00
Dan Poltawski a4c7a0bd95 Merge branch 'MDL-54945-master-workshopportfolio' of git://github.com/mudrd8mz/moodle 2016-10-17 12:06:42 +01:00
Dan Poltawski 2ee939fb19 Merge branch 'MDL-56262-master' of git://github.com/FMCorz/moodle 2016-10-17 11:01:27 +01:00
Dan Poltawski 6578ffe4e0 Merge branch 'MDL-55630-master' of https://github.com/StudiUM/moodle 2016-10-17 10:23:35 +01:00
Dan Poltawski a227cf1278 Merge branch 'MDL-31465-master' of git://github.com/lameze/moodle 2016-10-17 10:00:08 +01:00
David Monllao c8bd606475 Merge branch 'MDL-56423-master' of git://github.com/danpoltawski/moodle 2016-10-17 15:51:51 +08:00
David Monllao 99218e916b Merge branch 'MDL-56393-master' of git://github.com/ryanwyllie/moodle 2016-10-17 15:32:33 +08:00
David Monllao 0998896e9e Merge branch 'MDL-56411-master' of git://github.com/ryanwyllie/moodle 2016-10-17 15:29:13 +08:00
David Monllao 4456e7efa6 Merge branch 'MDL-56415-master' of git://github.com/ryanwyllie/moodle 2016-10-17 15:17:16 +08:00
David Monllao 542452a97e Merge branch 'MDL-56430-master' of git://github.com/ryanwyllie/moodle 2016-10-17 15:03:51 +08:00
David Monllao 94926e5d74 Merge branch 'MDL-55510-master' of git://github.com/danpoltawski/moodle 2016-10-17 14:25:00 +08:00
Michael Aherne 0c5994269f MDL-56131 choice: Set maximum lifetime for lock 2016-10-17 13:50:42 +08:00
Andrew Nicols 608edec5ca MDL-56208 mod_forum: Move Display period below Group 2016-10-17 11:46:36 +08:00
Andrew Nicols f0f4c1939c MDL-55175 course: Begin deprecation process for pring_log_* 2016-10-17 11:08:20 +08:00
Ryan Wyllie fd8eab572d MDL-56415 message: style toggle contact button on user profile page
Changed the styles in theme_bootstrapbase for the ajax toggle
button so that the loading icon is overlaid on the element
rather than replacing it to stop the interface jarring.

Also ported those same styles to theme_boost for consistency.
2016-10-17 03:07:15 +00:00
Ryan Wyllie 54e22257c7 MDL-56338 message_popup: add behat tests for message popover 2016-10-17 01:07:59 +00:00
Adrian Greeve f34d7af0ae MDL-55087 lib: Update to htmlpurifier lib. 2016-10-17 08:43:41 +08:00
Adrian Greeve b36b997b7f MDL-55087 lib: Update htmlpurifier to v4.8.0. 2016-10-17 08:43:41 +08:00
Ryan Wyllie cdff0944b6 MDL-56430 message: fix php7 incompatibility in processor form 2016-10-17 00:27:56 +00:00
Rimas Kudelis 3e82b7ac3c MDL-56082 Expose external authentication methods in login block
Unlike the login page, login block currently does not list any configured external auth methods.
This makes it practically useless in cases where external auth (e.g. OpenID Connect) is the main login method.

This patch adds the necessary bits to make the login block great again.
2016-10-16 22:14:59 +03:00
AMOS bot 40a90b62ac Automatically generated installer lang files 2016-10-17 00:06:40 +08:00
Matthew Switlik f6beb73bdc MDL-43796 assign: Reset revealidentities on restore
Set revealidentities to 0 when restoring with blindmarking and no user data.
2016-10-14 14:10:29 -04:00
AMOS bot 3affb72c12 Automatically generated installer lang files 2016-10-15 00:04:34 +08:00
John Beedell fa677bc9df MDL-48629 Quiz: Change separator for matching correct answer feedback 2016-10-14 16:41:49 +01:00
lazydaisy 7cfb9175ac MDL-56368 theme_bootstrapbase: Settings for Restrict Access not inline. 2016-10-14 15:34:39 +01:00
lazydaisy 3cc973a082 MDL-56328 theme_bootstrapbase: reduce activity indent when not editing 2016-10-14 15:33:04 +01:00
Jean-Philippe Gaudreau 6399ecd743 MDL-55630 mod_assign: Exclude users courses from user details
Exclude users' enrolled courses for performance reason.
A new 'includeenrolments' parameter was added
to mod_assign::list_particpants.
2016-10-14 09:28:18 -04:00
Charles Fulton 1de06aa19b MDL-56100 mod_folder: add support for recent activity 2016-10-14 08:57:56 -04:00
Juan Leyva 961c95499e MDL-45639 tool_mobile: Support auto-login from the app to the site
We din't call it SSO because:
- SSO usually requires a 3rd party for authentication
- SSO term is already used in tool_mobile when supporting using auth methods like CAS or Shibboleth
2016-10-14 12:32:37 +01:00
Juan Leyva 69cbe35943 MDL-45639 webservice: Support private tokens
Private tokens are generated at the same time that the token.
They must be stored safely by the ws client, and they must be transmitted only via  https.
2016-10-14 12:32:30 +01:00
Dan Poltawski 0a51a20928 MDL-55510 upgrade: remove repository_alfresco config
This was missing from MDL-49533 and caused a complaint about alfresco
on every upgrade.
2016-10-14 09:41:31 +01:00
Ryan Wyllie 8387932ddd MDL-56393 themes: unread notification style in popover 2016-10-14 07:52:04 +00:00
Dan Poltawski e816b872ad MDL-56440 theme_boost: fix logic errors in templates 2016-10-14 08:43:22 +01:00
Dan Poltawski f60c7eae73 MDL-56436 mustache: update import docs 2016-10-14 08:31:23 +01:00
Marc Català 260713fc8e MDL-56300 mod_assign: Filtering students throws a javascript error 2016-10-14 09:28:20 +02:00
Ryan Wyllie 703ab16475 MDL-56411 message: new message to user renders message area
When messaging a user for the first time from the message button on
their profile page the message area should still be rendered.
2016-10-14 07:13:58 +00:00
acorbier 1b372a77a5 MDL-56369 behat: Updated comment for i_look_for_exceptions
After upgrade to Behat 3.x, i_look_for_exception is called from
Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester
2016-10-14 13:22:04 +08:00
Andrew Nicols 4f1f2a3468 MDL-53752 mod_book: Clarify book title 2016-10-14 12:48:10 +08:00
Andrew Nicols 8ad2afd316 MDL-55518 travis: Enable redis tests 2016-10-14 12:16:36 +08:00
Andrew Nicols 2fff69ec72 MDL-55858 mod_forum: Remove subscription links when not relevant
When a forum is force-subscribed or subscription is disabled, do not
include the subscription link in forum posts.
2016-10-14 12:14:58 +08:00
Andrew Nicols 985ec99359 MDL-56295 mod_book: Refactor of chapter delete page 2016-10-14 12:14:07 +08:00
Andrew Nicols 6942122290 MDL-56295 mod_book: JS Confirmation of chapter removal 2016-10-14 11:29:16 +08:00
Simey Lameze 8490014955 MDL-31465 core_user: Suspended field must be boolean 2016-10-14 10:44:08 +08:00
Andrew Solomon 511db62153 MDL-31465 core_user: Incorporate user suspension into webservices 2016-10-14 10:13:49 +08:00
Ryan Wyllie 658dbdf7dd MDL-56337 message_popup: add behat tests for notification popover 2016-10-14 01:32:29 +00:00
Marina Glancy 5e4f1cfff0 MDL-56439 course: added missing require 2016-10-14 08:20:41 +08:00
Eloy Lafuente (stronk7) 6a69cda97d weekly release 3.2dev 2016-10-13 20:02:19 +02:00
Eloy Lafuente (stronk7) 43f5b288c2 NOBUG: Fixed SVG browser compatibility 2016-10-13 20:02:16 +02:00
Eloy Lafuente (stronk7) b87a9ac7a1 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-10-13 20:02:15 +02:00
Eloy Lafuente (stronk7) 1c56029fa4 Merge branch 'wip-MDL-56110-master' of https://github.com/marinaglancy/moodle 2016-10-13 19:35:48 +02:00
David Monllao dd8f30dd4f Merge branch 'wip-mdl-56299-fix' of https://github.com/rajeshtaneja/moodle 2016-10-13 19:35:48 +02:00
Rajesh Taneja d4b28e0b16 MDL-56299 behat: Popover doesn't work with phantomjs 2016-10-13 19:35:47 +02:00
David Monllao 7edfe14159 Merge branch 'wip-mdl-56087' of https://github.com/rajeshtaneja/moodle 2016-10-13 19:35:46 +02:00
Rajesh Taneja a79c2aace8 MDL-56087 behat: Fixed no messages string 2016-10-13 19:35:46 +02:00
Rajesh Taneja c5a566dc15 MDL-55522 behat: Commented failing transformations
- Reverted the order of transformations in order they are expected
- Commented failing transformation steps - MDL-56397
They should be fixed by https://github.com/Behat/Behat/issues/959
2016-10-13 19:35:45 +02:00
Mark Nelson c96717fcd9 MDL-54682 core_message: do not disable left panel when deleting messages 2016-10-13 19:32:12 +02:00
Dan Poltawski 49ba9f8fd0 Merge branch 'MDL-56384_master' of https://github.com/markn86/moodle 2016-10-13 19:32:11 +02:00
David Monllao 650beea243 Merge branch 'MDL-56095-master-fix' of git://github.com/cameron1729/moodle 2016-10-13 19:32:10 +02:00
Mark Nelson 448212ecf6 MDL-56384 message_popup: fixed oracle PHPUnit failures 2016-10-13 19:32:10 +02:00
Cameron Ball 3aa8696ce6 MDL-56095 output: Properly set prototype on custom event for IE 2016-10-13 19:32:09 +02:00
Rajesh Taneja fbaf5d17d8 MDL-27072 behat: Removed wrong tag from feature 2016-10-13 19:32:08 +02:00
David Monllao d5bd89308e Merge branch 'wip-mdl-27072' of git://github.com/rajeshtaneja/moodle 2016-10-13 19:32:08 +02:00
David Monllao 1686d93a1c MDL-55393 message: Missing latest blocker issue code updates 2016-10-13 19:32:07 +02:00
Rajesh Taneja 25b225a995 MDL-27072 behat: Fixed table separators 2016-10-13 19:32:07 +02:00
Juan Leyva e86f0cb4a1 MDL-55393 message: New WS get_user_notification_preferences 2016-10-13 19:32:06 +02:00
Eloy Lafuente (stronk7) c405d31bef Merge branch 'MDL-56319-m' of https://github.com/micaherne/moodle 2016-10-13 19:32:05 +02:00
Juan Leyva 53522c6e38 MDL-55393 message: Add some external functions to mobile service 2016-10-13 19:32:05 +02:00
Eloy Lafuente (stronk7) 403b817857 Merge branch 'wip-mdl-55522' of https://github.com/rajeshtaneja/moodle 2016-10-13 19:32:04 +02:00
Dan Poltawski 36650f11d3 MDL-56423 stylelint: ignore custom.css files
The files have non-standard css syntax and with stylelint 7.4.1
it can no longer cope with it.
2016-10-13 10:01:31 +01:00
Dan Poltawski 5c8445b5cd MDL-56423 stylelint: bump to v7.4.1
Fixes a false positive with  declaration-block-no-ignored-properties and
display: inline.
2016-10-13 10:01:30 +01:00
Dan Poltawski 53843cc18d MDL-56423 boostrap: fix eranously removed css 2016-10-13 10:01:30 +01:00
Marina Glancy fa8e0af1f0 MDL-55833 mod_feedback: display in outline and complete reports 2016-10-13 13:49:16 +08:00
David Monllao beb505fab1 Merge branch 'wip-mdl-56299-fix' of https://github.com/rajeshtaneja/moodle 2016-10-13 10:51:12 +08:00
Rajesh Taneja 2761e0d604 MDL-56299 behat: Popover doesn't work with phantomjs 2016-10-13 10:47:32 +08:00
David Monllao f5e8a744bf Merge branch 'wip-mdl-56087' of https://github.com/rajeshtaneja/moodle 2016-10-13 10:18:20 +08:00
Rajesh Taneja deb71a0032 MDL-56087 behat: Fixed no messages string 2016-10-13 09:57:53 +08:00
Rajesh Taneja 664a2a2900 MDL-55522 behat: Commented failing transformations
- Reverted the order of transformations in order they are expected
- Commented failing transformation steps - MDL-56397
They should be fixed by https://github.com/Behat/Behat/issues/959
2016-10-13 09:41:15 +08:00
Marina Glancy 62a3c42947 MDL-56110 forms: debug message for php 7.1 compat
Follow up for MDL-55123
2016-10-13 09:18:34 +08:00
David Mudrák 0cc5c64608 MDL-54945 workshop: Improve the portfolio API implementation
* Use a single capability 'mod/workshop:exportsubmissions' to control
  who is able to export a submission and all associated visible
  peer-assessments.
* The export capability is by default granted to teachers and managers
  as well.
* Simplify the integration of the export button into the submission
  page. There is now a single place where the export button appears - at
  the buttom of the submission page.
* Clean up the new strings introduced for this feature.
* Rewrite the portfolio caller class so that it better mimics the
  behaviour of the submission.php page. It must not be possible to get
  access to contents otherwise not available via the UI.
* Fix phpunit tests.
* Improve behat tests so that they can run in headless browser
  (performance).

During the development, some problems were detected in the underlying
portfolio API, especially with LEAP2A format and files collisions
handling. These may be eventually fixed in the future, should there be a
demand for it.
2016-10-12 18:35:02 +02:00
Tony Butler 23f2f64452 MDL-56062 mod_assign: Use $gradeitem->get_decimals() for grade display 2016-10-12 17:33:23 +01:00
Dan Poltawski f6b8aec404 Merge branch 'MDL-54682_master-fix-alt' of https://github.com/markn86/moodle 2016-10-12 15:21:02 +01:00
Dan Poltawski 17ab49e9b1 Merge branch 'MDL-56324-master' of https://github.com/lucisgit/moodle 2016-10-12 14:53:01 +01:00
Mark Nelson 2127ca2cde MDL-54682 core_message: do not disable left panel when deleting messages 2016-10-12 21:45:33 +08:00
Tony Butler 88d309d947 MDL-56324 assignfeedback_editpdf: Use correct page in save_current_page 2016-10-12 14:17:48 +01:00
Dan Poltawski d68472984a Merge branch 'MDL-56384_master' of https://github.com/markn86/moodle 2016-10-12 09:26:26 +01:00
David Monllao 6beb7a780c Merge branch 'MDL-56095-master-fix' of git://github.com/cameron1729/moodle 2016-10-12 15:17:37 +08:00
Mark Nelson d29be93807 MDL-56384 message_popup: fixed oracle PHPUnit failures 2016-10-12 15:14:30 +08:00
Ryan Wyllie 2e39117f75 MDL-43230 badges: fix award_badge behat test 2016-10-12 05:11:13 +00:00
Cameron Ball 00d3a8c5f4 MDL-56095 output: Properly set prototype on custom event for IE 2016-10-12 13:10:30 +08:00
Ryan Wyllie addb9430f9 MDL-43230 badges: move badge revoke event into api 2016-10-12 05:10:17 +00:00
Matt Davidson b7374faca6 MDL-43230 badges: manually revoke awarded badges
A user can be manually awarded a badge, but if given by mistake an
awarded badge cannot be removed.
2016-10-12 05:06:38 +00:00
Rajesh Taneja cd5e416560 MDL-27072 behat: Removed wrong tag from feature 2016-10-12 12:57:22 +08:00
David Monllao 0115782157 Merge branch 'wip-mdl-27072' of git://github.com/rajeshtaneja/moodle 2016-10-12 11:29:59 +08:00
Rajesh Taneja c76e57aace MDL-27072 behat: Fixed table separators 2016-10-12 11:05:07 +08:00
David Monllao bc8a896208 MDL-55393 message: Missing latest blocker issue code updates 2016-10-12 10:45:34 +08:00
Juan Leyva 67d76e2fe2 MDL-55393 message: New WS get_user_notification_preferences 2016-10-12 09:43:16 +08:00
Juan Leyva 311f5e4025 MDL-55393 message: Add some external functions to mobile service 2016-10-12 09:41:59 +08:00
David Monllao b805d3f8ef MDL-56057 search: Fix incorrectly reported no enabled search areas
Also improved performance caching enabled search areas and
all search areas at the same time.
2016-10-12 08:30:23 +08:00
Eloy Lafuente (stronk7) 2660c96098 Merge branch 'MDL-56319-m' of https://github.com/micaherne/moodle 2016-10-11 20:24:13 +02:00
David Mudrák 931bba6054 MDL-54945 workshop: Introduce workshop::check_group_membership() method
This is just a refactored code block present at two different places. We
will need the same logic in the portfolio caller class soit made sense
to implement it as a new method, rather than make another copy&paste.

As a side effect, the logic is now properly unit tested.
2016-10-11 20:23:55 +02:00
Eloy Lafuente (stronk7) d5bc94628c Merge branch 'wip-mdl-55522' of https://github.com/rajeshtaneja/moodle 2016-10-11 20:13:04 +02:00
Dan Poltawski 287a906645 Merge branch 'MDL-56324-master' of https://github.com/lucisgit/moodle 2016-10-11 17:35:07 +01:00
AMOS bot 6ceebb9d56 Automatically generated installer lang files 2016-10-12 00:04:48 +08:00
Eloy Lafuente (stronk7) a34625a17c Merge branch 'MDL-55345' of https://github.com/paulholden/moodle 2016-10-11 17:06:17 +02:00
Dan Poltawski 412a4a6d8b MDL-54682 message: fix eslint issues 2016-10-11 13:29:56 +01:00
Dan Poltawski 34930e37cd MDL-54682 deprecatedlib: fix trailing whitespace 2016-10-11 13:17:42 +01:00
Dan Poltawski c8303131be Merge branch 'MDL-54682_master' of git://github.com/markn86/moodle 2016-10-11 12:53:11 +01:00
Loc Nguyen 5fd75ed889 MDL-54945 workshop: Workshop portfolio API integration
Users can export their own submission
Users can export feedback/assessment received from other users
2016-10-11 12:51:15 +02:00
Eloy Lafuente (stronk7) 1e1dbc669f Merge branch 'MDL-56147-master' of git://github.com/FMCorz/moodle 2016-10-11 12:49:56 +02:00
Eloy Lafuente (stronk7) 77348a62db Merge branch 'MDL-55954_master' of git://github.com/dmonllao/moodle 2016-10-11 12:46:32 +02:00
Eloy Lafuente (stronk7) 44e7b8b827 Merge branch 'wip-mdl-56248' of https://github.com/rajeshtaneja/moodle 2016-10-11 12:15:05 +02:00
David Monllao 85d7a13ab0 Merge branch 'master_MDL-51401' of https://github.com/janeklb/moodle 2016-10-11 17:58:05 +08:00
Eloy Lafuente (stronk7) 537054ec27 Merge branch 'MDL-55921' of https://github.com/mr-russ/moodle 2016-10-11 11:54:23 +02:00
David Monllao b65c33ace5 Merge branch 'MDL-52051-master' of git://github.com/andrewnicols/moodle 2016-10-11 17:11:21 +08:00
Dan Poltawski 988ff9f57f Merge branch 'MDL-36611-master' of git://github.com/junpataleta/moodle 2016-10-11 08:53:06 +01:00
Mark Nelson d4b2c195e1 MDL-54682 core: build amd modules 2016-10-11 14:39:24 +08:00
Mark Nelson 16f91ae12a MDL-56299 core: fixed failing Behat tests
This also involved removing legacy Behat tests.
2016-10-11 14:39:24 +08:00
Ryan Wyllie 6b5d0e976a MDL-56087 message: change conversations to messages 2016-10-11 14:39:24 +08:00
Ryan Wyllie f54a16fc73 MDL-56274 message: unlock tabs and search after delete all 2016-10-11 14:39:24 +08:00
Mark Nelson fd9a64a302 MDL-56336 core_message: fix WS exception when 'forcepasswordchange' set 2016-10-11 14:39:24 +08:00
Ryan Wyllie 963ba88970 MDL-56234 message: fix messaging UI in theme boost 2016-10-11 14:39:24 +08:00
Ryan Wyllie 641b36e2ab MDL-56292 message: move notifications page into popup plugin 2016-10-11 14:39:23 +08:00
Ryan Wyllie 9f7b7b7c88 MDL-56292 message: fix style for notification popover and page 2016-10-11 14:39:23 +08:00
Ryan Wyllie 14617a566b MDL-56292 message: mustache template docs 2016-10-11 14:39:23 +08:00
Ryan Wyllie 8b99e16358 MDL-56292 core: add note to upgrade.txt for context_header change 2016-10-11 14:39:23 +08:00
Ryan Wyllie 7d69958e6b MDL-56292 message: move popover code into output plugin 2016-10-11 14:39:23 +08:00
Ryan Wyllie f8e4145feb MDL-56292 core: change size of 'component' DB column 2016-10-11 14:39:22 +08:00
Rajesh Taneja ca9a79dae3 MDL-56348 cache: Removed second parameter
There is no second parameter in the api
and identifier should be set by set_identifiers
2016-10-11 12:50:10 +08:00
Andrew Nicols 066963cd18 MDL-52051 repository_dropbox: Migrate to v2 API 2016-10-11 11:17:09 +08:00
Kirill Astashov f3ced08622 MDL-36611 outcome: Set page context when editing outcome 2016-10-11 10:01:01 +08:00
Eloy Lafuente (stronk7) db43b23848 Merge branch 'wip-MDL-27072-master' of https://github.com/Beedell/moodle 2016-10-11 02:42:02 +02:00
Eloy Lafuente (stronk7) dcd5c7cd1b Merge branch 'MDL-56228-master' of https://github.com/snake/moodle 2016-10-11 02:02:23 +02:00
Eloy Lafuente (stronk7) 6bf8e9b021 Merge branch 'MDL-55835-master' of git://github.com/danpoltawski/moodle 2016-10-11 01:21:14 +02:00
Eloy Lafuente (stronk7) 209d36cc78 Merge branch 'MDL-56220-m' of https://github.com/micaherne/moodle 2016-10-11 01:17:33 +02:00
Eloy Lafuente (stronk7) 049a4f9a20 Merge branch 'MDL-56331-master' of git://github.com/danpoltawski/moodle 2016-10-11 01:12:00 +02:00
Eloy Lafuente (stronk7) 73c5f7b7a9 Merge branch 'MDL-56261-master-taglist' of git://github.com/mudrd8mz/moodle 2016-10-11 00:32:21 +02:00
Eloy Lafuente (stronk7) 76d521e14c Merge branch 'MDL-56308' of https://github.com/mr-russ/moodle 2016-10-10 19:05:22 +02:00
Eloy Lafuente (stronk7) 45dd1dc052 Merge branch 'MDL-53695-master' of git://github.com/danpoltawski/moodle 2016-10-10 18:25:18 +02:00
Eloy Lafuente (stronk7) f0077d4c42 Merge branch 'MDL-56316-master' of git://github.com/andrewnicols/moodle 2016-10-10 18:11:56 +02:00
Eloy Lafuente (stronk7) 6a8f40c394 Merge branch 'MDL-51633_master' of git://github.com/lazydaisy/moodle 2016-10-10 17:40:34 +02:00
Dan Poltawski 518ba4906d Merge branch 'MDL-56192-master' of git://github.com/FMCorz/moodle 2016-10-10 16:16:17 +01:00
David Monllao 97f1af7575 Merge branch 'MDL-56050-master' of git://github.com/lameze/moodle 2016-10-10 23:14:43 +08:00
Tony Butler c156b7b76d MDL-56345 assignfeedback_editpdf: Use correct strings for tool alt text 2016-10-10 16:13:37 +01:00
David Monllao 3e1dd8791b Merge branch 'MDL-54854-master' of git://github.com/jleyva/moodle 2016-10-10 23:00:31 +08:00
David Monllao 886207f70e Merge branch 'MDL-55923-master' of git://github.com/jleyva/moodle 2016-10-10 22:57:34 +08:00
David Monllao 576ce0af0c Merge branch 'MDL-30179-master' of git://github.com/merrill-oakland/moodle 2016-10-10 22:38:29 +08:00
Dan Poltawski bd296fc280 Merge branch 'MDL-56209-master' of git://github.com/FMCorz/moodle 2016-10-10 15:18:24 +01:00
Dan Poltawski e210a4b2d8 Merge branch 'MDL-56052-master' of git://github.com/damyon/moodle 2016-10-10 14:18:33 +01:00
Eric Merrill ca2cb90fed MDL-30179 gradereport_user: Add ability to view report as other user 2016-10-10 09:03:11 -04:00
Dan Poltawski 5f85134187 Merge branch 'MDL-55999-master' of git://github.com/lameze/moodle 2016-10-10 13:40:16 +01:00
Dan Poltawski 0b7aef7b20 Merge branch 'MDL-51584' of https://github.com/mr-russ/moodle 2016-10-10 13:23:59 +01:00
Dan Poltawski 1573c3031b MDL-53695 lib/javascript.php: ensure full env for core_minify
This applies the same approach to generating minified js as is already
used in theme/javascript.php and other scripts. When we need to do the
minification, we load the full Moodle environment, so we can use the
libraries.

The reason this was required was because now the minifier uses
autoloaded classes, which are not autoloaded when doing
ABORT_AFTER_CONFIG.

Fred persuaded me that it's probably safer to keep it that way, rather
than alllow ABORT_AFTER_CONFIG scripts from autoloading the world and
their dog (especially for resource serving scripts, they are intended to
be lightweight when serving from cache).
2016-10-10 13:17:04 +01:00
Dan Poltawski 4cb24aa9d7 MDL-53695 minify: switch to MatthiasMullie\Minify
The previously used minification libraries were:
a) Unmaintained
b) Had some silly licensing issues (MDL-36457)

The new library is smaller, maintained, active and GPL-compatible.
2016-10-10 13:17:04 +01:00
Dan Poltawski ef3e4d6cc4 Merge branch 'MDL-56095-master-fixup' of https://github.com/FMCorz/moodle 2016-10-10 13:13:08 +01:00
Frédéric Massart fc72f49da3 MDL-56095 output: Moving progress_bar from weblib to outputcomponents
And revert the change in the order of the require_once in setup.php.
2016-10-10 13:25:37 +02:00
Dan Poltawski e99efa171c Merge branch 'MDL-55597-master' of git://github.com/FMCorz/moodle 2016-10-10 11:33:12 +01:00
Dan Poltawski 6a694f9a95 Merge branch 'MDL-56178-master' of git://github.com/FMCorz/moodle 2016-10-10 11:22:16 +01:00
Juan Leyva 78310c30d0 MDL-54854 grade: New WS gradereport_overview_view_grade_report 2016-10-10 11:16:02 +01:00
Juan Leyva 7cd19312f5 MDL-54854 grade: New WS gradereport_overview_get_course_grades 2016-10-10 11:16:01 +01:00
Juan Leyva 91bbfdfeca MDL-54854 grade: Refactor gradereport_overview code 2016-10-10 11:16:01 +01:00
Dan Poltawski 49e12de63f Merge branch 'MDL-56285-master' of git://github.com/StudiUM/moodle 2016-10-10 11:14:22 +01:00
John Beedell 10c4fce520 MDL-27072 Quiz: Remove get_users_by_capability from quiz reports 2016-10-10 11:05:15 +01:00
Frédéric Massart 5d2f105e50 MDL-56178 theme_boost: Display drop zones labels
The markup has changed so we now need to target .sr-only rather
than just .accesshide. I did keep the latter in case it's still used
somewhere, in a custom form field for instance.

The ideal solution was to tell QuickForm to display the labels of
those elements in the group. That works for Boost, but that did not
work for Clean. The rendering mechanics of QuickForm decides to not
print the label, unless it's set as hidden... the CSS hack remains.
2016-10-10 11:32:08 +02:00
Dan Poltawski 80156d01c4 Merge branch 'MDL-56095-master-2nd' of git://github.com/FMCorz/moodle 2016-10-10 10:09:46 +01:00
Frédéric Massart d195128300 MDL-56005 adminlib: Display saved value in colourpicker 2016-10-10 11:00:00 +02:00
Frédéric Massart 258143e34d MDL-56005 output: Support prepending SCSS code instead of variables only 2016-10-10 10:59:52 +02:00
David Monllao e8cd446ecd Merge branch 'MDL-45388-master' of git://github.com/danpoltawski/moodle 2016-10-10 16:59:06 +08:00
Tony Butler 3cd718e859 MDL-56324 assignfeedback_editpdf: Get current page no from page selector
When navigating to next/previous page or jumping to a comment
2016-10-10 09:52:19 +01:00
David Monllao 47e863bb73 Merge branch 'MDL-56162-master' of git://github.com/FMCorz/moodle 2016-10-10 16:48:07 +08:00
Dan Poltawski a4a815f31c MDL-56331 tests: update with current coordinates
The previous commit will minor updates to pass, but this updates
to current values.
2016-10-10 09:10:07 +01:00
Dan Poltawski 0b73876317 MDL-56331 tests: increase tolerance of coordinate tests
1) It seems the maxmind database is getting relatively frequent updates
which are causing differences in exact coordinates

2) GeoIP location lookups are not an exact science, I tried to pick some
ips which I thought would remain fairly static, but these things are
just guesses.

3) Moving to 2 decimal places should give us good enough results for
this test, according to:
http://gis.stackexchange.com/questions/8650/measuring-accuracy-of-latitude-and-longitude

  "The second decimal place is worth up to 1.1 km: it can separate one
   village from the next."
  "The third decimal place is worth up to 110 m: it can identify a
   large agricultural field or institutional campus."
2016-10-10 09:07:38 +01:00
Andrew Nicols 3a4c497c15 MDL-52051 oauth: expires_in is optional 2016-10-10 14:02:20 +08:00
David Monllao e84c33d694 Merge branch 'MDL-56232-master' of git://github.com/junpataleta/moodle 2016-10-10 13:27:50 +08:00
Jun Pataleta 2d3130532c MDL-56232 mod_lti: Fix logic for disabling mod_form fields
* Disable tool "Select content" button if selected preconfigured tool
  does not support Content-Item, and if the selected option is set to
  "Automatic, based on launch URL".
* Disable tool configuration form fields if selected preconfigured tool
  does not support Content-Item, but enable these fields if the selected
  option is set to "Automatic, based on launch URL".
* Behat tests also updated to check disabling/enabling of launch url field.
2016-10-10 13:16:25 +08:00
David Monllao 96d2a6fd5f Merge branch 'MDL-56254-master' of git://github.com/FMCorz/moodle 2016-10-10 13:01:40 +08:00
David Monllao fae446b9cb Merge branch 'MDL-56097' of git://github.com/stronk7/moodle 2016-10-10 12:57:27 +08:00
David Monllao cf489b75ef Merge branch 'MDL-56216-master' of git://github.com/danpoltawski/moodle 2016-10-10 12:49:07 +08:00
Ryan Wyllie a92eda4b26 MDL-56292 core: make popover region event bindings on open 2016-10-10 12:48:52 +08:00
Ryan Wyllie 0d602fdd37 MDL-56292 message: fix message_get_recent_conversations
Renamed the $user param to a more common pattern and removed the
readtable flags from the SQL, which are no longer required.
2016-10-10 12:48:52 +08:00
Ryan Wyllie 2d552f37b8 MDL-56292 core: auto_rows should fire event on element 2016-10-10 12:48:52 +08:00
Ryan Wyllie eea7dd4156 MDL-56292 messages: made popover region css less specific 2016-10-10 12:48:52 +08:00
Ryan Wyllie bab2ec4664 MDL-56292 message: fix param in notificationpreferences.php 2016-10-10 12:48:52 +08:00
Ryan Wyllie df9986c87f MDL-56292 message: split up preferences templates 2016-10-10 12:48:52 +08:00
Ryan Wyllie 5cdebf2d7e MDL-56292 message: simplify get_popup_notifications function 2016-10-10 12:48:51 +08:00
Ryan Wyllie dff7c82ecb MDL-56292 message: fix sql query in mark_all_read_for_user 2016-10-10 12:48:51 +08:00
Mark Nelson cc22b515ea MDL-56333 core_message: fixed return type for get_profile WS 2016-10-10 12:48:51 +08:00
Russell Smith 82905c097c MDL-51584 gradebook: use direct $CFG access for freeze.
get_config() is called a lot of times on freeze and is expensive,
using $CFG is much lower overhead.
2016-10-10 15:42:04 +11:00
Rajesh Taneja 389e5a0ff4 MDL-55522 behat: test realtive dates 2016-10-10 11:54:13 +08:00
Rajesh Taneja 45ff0ff5d8 MDL-55522 behat: Add support for relative dates 2016-10-10 11:54:13 +08:00
Frédéric Massart 7001a3b273 MDL-56081 theme_boost: Adjust user menu for switched role and login as 2016-10-10 10:22:43 +08:00
Jake Dallimore 4c1bc2422d MDL-56228 phpunit: Force sort order in mod data generator test 2016-10-10 09:32:24 +08:00
AMOS bot 3a39ef7fb6 Automatically generated installer lang files 2016-10-09 00:06:11 +08:00
lazydaisy 42bbb05f44 MDL-51633 theme_bootstrapbase: Restyled ADD BLOCK to remove max-width. 2016-10-07 18:50:46 +01:00
AMOS bot 5f9aead5aa Automatically generated installer lang files 2016-10-08 00:04:30 +08:00
Frédéric Massart ba92a049f4 MDL-55736 theme_boost: Subtle highlighting of a section 2016-10-07 16:54:27 +02:00
Frédéric Massart 82b945dbbe MDL-56095 output: Make the progress bar templatable
The order of inclusion of weblib and outputlib had to change
as the progress_bar (weblib) uses interfaces defined in outputlib.
2016-10-07 16:40:38 +02:00
Frédéric Massart ff274ab0e5 MDL-56277 theme_boost: Define core maintenance renderer 2016-10-07 11:38:36 +02:00
Dan Poltawski e4edbce35d MDL-55835 js: fix lint issues
Some caused by eslint checks being better, some just not detected
because we don't show warnings well (MDL-54930).
2016-10-07 10:03:43 +01:00
Dan Poltawski 00c714f05c MDL-55835 eslint: bump to v3.7.1
1) Bump eslint verson in npm
2) Enable tabs rule introduced in 3.2.0
3) With rules deprecated in 3.3.0 to their replacements
   http://eslint.org/blog/2016/08/eslint-v3.3.0-released
4) Deprecate the use of M.str (fixes MDLSITE-3646) with new
   no-restricted-properties introduced in 3.5.0
5) Fixup no-unused-vars - remove argsIgnorePattern which shouldn't have allowed
   partial matches and turns out to be uncesssary
   (detected because of https://github.com/eslint/eslint/issues/7250 in 3.6.0)
2016-10-07 10:00:26 +01:00
Michael Aherne 4582da2464 MDL-56319 blocks: Observe empty default blocks setting 2016-10-07 09:59:09 +01:00
Mark Nelson de55cb1b53 MDL-56089 core_message: modified API so it is not tied to renderables
Also did some minor refactoring/tidying of the code.
2016-10-07 16:37:56 +08:00
Ryan Wyllie a038fcf5d6 MDL-55635 message: create notifications page 2016-10-07 16:37:56 +08:00
Mark Nelson e68a1cbdaa MDL-55942 core: do not show popovers to the guest user 2016-10-07 16:37:56 +08:00
Mark Nelson c476de1872 MDL-55942 core_message: moved SELECTORS and EVENTS to modules
Also took this time to capitalise the local module names.
2016-10-07 16:37:56 +08:00
Mark Nelson 48e8bdba13 MDL-55942 core_message: renamed the term 'people' to 'user' 2016-10-07 16:37:56 +08:00
Mark Nelson 66e1bdda3f MDL-55942 core_message: cleaned the index.php page
Also removed the no longer used send_form.php file.
2016-10-07 16:37:55 +08:00
Mark Nelson 5b0769db68 MDL-54744 core_message: deprecated functions in message/lib.php
Also -

1) Made note of the deprecation as well as the functions and
   files that were removed earlier in upgrade.txt.
2) Added new functions to api.php to replace the deprecated ones
   that were being used in unit tests.
3) Removed files that are no longer being used.
2016-10-07 16:35:25 +08:00
Ryan Wyllie 7b477f5982 MDL-55813 message: add online/offline help icons on preferences page 2016-10-07 16:26:40 +08:00
Ryan Wyllie fadb831658 MDL-56028 message: change forced to locked on preferences page 2016-10-07 16:26:40 +08:00
Mark Nelson 7b55aaa12e MDL-55942 core: obey the mighty CiBoT 2016-10-07 16:26:40 +08:00
Mark Nelson 79f6c36c12 MDL-55942 core_message: moved added functionality from message/lib.php 2016-10-07 16:26:40 +08:00
Mark Nelson c598f278ca MDL-55942 core_message: removed WS function core_user_update_user
This function was ignoring any capabilities and was only used to
update the preferences, but could be potentially used to update
any user attribute. A new WS function has been introduced to
handle user preferences with the necessary capability checks.
2016-10-07 16:26:40 +08:00
Mark Nelson ebf4e53209 MDL-55814 core_message: removed 'Web' notification hack
Reverts: MDL-54698 core_message: remove 'offline' checkbox
for popup processor
2016-10-07 16:26:40 +08:00
Mark Nelson 5f8e4733b8 MDL-56024 core_message: prevent WS error when messaging disabled 2016-10-07 16:26:40 +08:00
Mark Nelson 837941e9bc MDL-55909 core_message: added missing WS capability checks 2016-10-07 16:26:40 +08:00
Ryan Wyllie 9d8f6f4af0 MDL-55972 message: confirmation modal when deleting conversation 2016-10-07 16:26:40 +08:00
Ryan Wyllie 10ea82701a MDL-55972 core: add confirmation modal 2016-10-07 16:26:40 +08:00
Ryan Wyllie eeee7bca80 MDL-55822 message: accessibility improvements for popovers 2016-10-07 16:26:40 +08:00
Ryan Wyllie 99c7f0a731 MDL-55801 message: responsive styling for message app 2016-10-07 16:26:40 +08:00
Mark Nelson 3f4f5d3bd2 MDL-55851 core: fixed AJAX error when user not set up 2016-10-07 16:26:40 +08:00
Ryan Wyllie 0b19d04836 MDL-55812 message: simplify notification popover items 2016-10-07 16:26:40 +08:00
Mark Nelson 30aac24d7a MDL-55947 core_message: fixed order of notifications in popover 2016-10-07 16:26:40 +08:00
Mark Nelson 89a70ba1a5 MDL-55623 core_message: indicate who the message is from 2016-10-07 16:26:40 +08:00
Mark Nelson 94e1db613c MDL-55623 core_message: create helper function for WS to define messages 2016-10-07 16:26:40 +08:00
Mark Nelson 10d38e66b1 MDL-55895 core_message: do not display whole conversation on page load 2016-10-07 16:26:40 +08:00
Mark Nelson 82073cb11d MDL-55870 core_message: fixed order of conversations in popover
Also made changes to message_area_contacts.js as we can not
rely on the number of conversations being displayed for the
limit in our SQL, see MDL-55908.
2016-10-07 16:26:40 +08:00
Mark Nelson 0dc4a56683 MDL-55852 core_message: add properties to renderables
Also improved PHPDocs and performed minor code changes.
2016-10-07 16:26:40 +08:00
Mark Nelson 658d0b2fd7 MDL-55770 core_message: remove the send message pop-up
Revert "MDL-48933 core_message: New dialog to send a message to a user"
Revert "MDL-48933 core_message: Behat tests to cover messenger dialogs"
2016-10-07 16:26:40 +08:00
Mark Nelson 5bf0ff278a MDL-55811 core_message: ensure contact always shown 2016-10-07 16:26:40 +08:00
Mark Nelson dd0c1403a1 MDL-55637 core_message: display icon for blocked users 2016-10-07 16:26:40 +08:00
Mark Nelson a3e3a3a179 MDL-55637 core_message: create helper function for WS to define contacts 2016-10-07 16:26:40 +08:00
Ryan Wyllie 443dbb82b3 MDL-55571 message: change profile information to a list 2016-10-07 16:26:40 +08:00
Mark Nelson 91ac67db9e MDL-55774 core_message: ensure selectors are isolated 2016-10-07 16:26:40 +08:00
Mark Nelson c9ead36a92 MDL-55582 core_message: show message when there are no search results 2016-10-07 16:26:40 +08:00
Ryan Wyllie b6723f5b22 MDL-55595 message: fix message preferences for multiple processors 2016-10-07 16:26:40 +08:00
Mark Nelson d7d7ca2ea1 MDL-55754 core_message: fixed unread message count 2016-10-07 16:26:40 +08:00
Mark Nelson 4d1b76ee36 MDL-55638 core_message: add message when there are no contacts 2016-10-07 16:26:40 +08:00
Mark Nelson ab95d755b4 MDL-55638 core_message: fixed contacts overflow CSS setting 2016-10-07 16:26:40 +08:00
Ryan Wyllie 09c3c73201 MDL-55570 message: replace online asterix with green dot 2016-10-07 16:26:40 +08:00
Ryan Wyllie 9d783a8d2c MDL-55543 message: disabled search when deleting messages 2016-10-07 16:26:40 +08:00
Ryan Wyllie 59181e559c MDL-55624 message: disable textarea when sending message 2016-10-07 16:26:40 +08:00
Ryan Wyllie 07adfdacd1 MDL-55542 message: update popover hover colours 2016-10-07 16:26:40 +08:00
Ryan Wyllie b1e3f76150 MDL-55542 message: update hover colour for message interface 2016-10-07 16:26:40 +08:00
Ryan Wyllie 3a2b3bd97e MDL-55583 message: stop page reload when enter pressed in search 2016-10-07 16:26:40 +08:00
Ryan Wyllie 61868b7956 MDL-54687 message: add unread message count to conversations 2016-10-07 16:26:40 +08:00
Ryan Wyllie c33b7d8913 MDL-54701 message: add unread message count to messages 2016-10-07 16:26:40 +08:00
Ryan Wyllie 52fa054902 MDL-54708 message: remove user profile link from notifications 2016-10-07 16:26:40 +08:00
Ryan Wyllie 6af2bd0985 MDL-54682 message: update js to use data values in selectors 2016-10-07 16:26:40 +08:00
Ryan Wyllie b7e68d1059 MDL-54698 message: consolidate preference page checkbox styling 2016-10-07 16:26:40 +08:00
Mark Nelson 065ff1b0f2 MDL-54698 core_message: remove 'offline' checkbox for popup processor 2016-10-07 16:26:40 +08:00
Mark Nelson 812cc6f63f MDL-54698 core_message: moved 'disable/enable' notifications setting 2016-10-07 16:26:40 +08:00
Mark Nelson e0c67b89cb MDL-54698 core: removed 'title-case' CSS usage and rule 2016-10-07 16:26:40 +08:00
Ryan Wyllie 7e12045152 MDL-54698 message: fix message preferences context blocknoncontacts 2016-10-07 16:26:40 +08:00
Ryan Wyllie c4624a76c9 MDL-54701 message: remove profile link from message popover 2016-10-07 16:26:40 +08:00
Ryan Wyllie fe8664b1ef MDL-54698 message: update preference processor display names 2016-10-07 16:26:40 +08:00
Ryan Wyllie 14501b1c13 MDL-54698 message: add preferences pages to breadcrumbs 2016-10-07 16:26:40 +08:00
Ryan Wyllie 8c125526f1 MDL-54698 message: move notifications prefs into own page 2016-10-07 16:26:40 +08:00
Mark Nelson bf4c393c09 MDL-55573 core_message: keep conversation and contact panels up-to-date 2016-10-07 16:26:40 +08:00
Mark Nelson 6c3b954114 MDL-54687 core_message: mark messages as read when viewing conversation
Also -

- Highlight a conversation when there are unread messages.
- Update the number in the message menu when conversation
  containing unread messages is selected.
2016-10-07 16:26:40 +08:00
Damyon Wiese eaabf0934a MDL-55569 messages: Throw an error when the message fails to send
This shows an alert to the user to let them know something went wrong.
If debugging is 0 - the alert does not contain all the debugging stuff and looks OK.
2016-10-07 16:26:40 +08:00
Damyon Wiese 14968ca9ac MDL-55567 messages: Use FORMAT_MOODLE as default for sending messages
This is like plain text, but it preserves new-lines and has some
other special features.
2016-10-07 16:26:40 +08:00
Damyon Wiese edac7c8003 MDL-55541 messages: Always return at least a minimal record for a user
Messages allows anyone to find anyone on the site - even if they don't share any permissions
in a course. So we need to make at least their name and id discoverable.
2016-10-07 16:26:40 +08:00
Damyon Wiese 4131cf1d6f MDL-54687 messages: Fix height bug with auto-rows textarea
Firefox reserves height for the horizontal scroll bars in a textarea. This
mucks up the height calculations for this element. Prevent it with overflow-x.
2016-10-07 16:26:40 +08:00
Mark Nelson 358e66f913 MDL-54687 core_message: ensure messages wrap 2016-10-07 16:26:40 +08:00
Mark Nelson dd06ca781a MDL-54687 core_message: scroll to bottom of messages on page load 2016-10-07 16:26:40 +08:00
Mark Nelson 62e82a7df9 MDL-54687 core_message: prevent multiple sent messages 2016-10-07 16:26:40 +08:00
Ryan Wyllie 8c250260e6 MDL-54687 message: show most recent conversation by default 2016-10-07 16:26:40 +08:00
Ryan Wyllie c1fec732c6 MDL-54687 message: add enter to send message 2016-10-07 16:26:40 +08:00
Ryan Wyllie 0ae7a72082 MDL-54687 message: adjust messages area height with response height 2016-10-07 16:26:40 +08:00
Mark Nelson bf58081d59 MDL-54687 core_message: return online status for messages and profile 2016-10-07 16:26:40 +08:00
Mark Nelson cd03b8d7f2 MDL-54687 core_message: added search functionality 2016-10-07 16:26:40 +08:00
Mark Nelson d29cdf3a1f MDL-54687 core_message: remove contact from DOM if no messages remain 2016-10-07 16:26:40 +08:00
Mark Nelson 6d3445de77 MDL-54687 core_message: removed unused function and data attribute 2016-10-07 16:26:40 +08:00
Ryan Wyllie 358717d59e MDL-54708 message: style notification popover actions 2016-10-07 16:26:40 +08:00
Mark Nelson 2c1b3775f0 MDL-54687 core_message: do not send message if it is empty 2016-10-07 16:26:40 +08:00
Mark Nelson 2be15a66c4 MDL-54687 core_message: fixed lint errors 2016-10-07 16:26:40 +08:00
Mark Nelson d9fad93dc5 MDL-54687 core_message: removed unused YUI module 2016-10-07 16:26:40 +08:00
Mark Nelson 49aaadc3fb MDL-54687 core_message: corrected return type of webservices
Also minor tidy up of docs.
2016-10-07 16:26:40 +08:00
Ryan Wyllie 4d0fa50125 MDL-54687 message: messaging widget styling 2016-10-07 16:26:40 +08:00
Mark Nelson ef735275de MDL-54687 core_message: removed 'conversationsselected' variable 2016-10-07 16:26:40 +08:00
Ryan Wyllie efa079072c MDL-54698 message: change preferences to on/off text 2016-10-07 16:26:40 +08:00
Ryan Wyllie fbdcd49993 MDL-54687 message: add keyboard navigation to message widget 2016-10-07 16:26:40 +08:00
Mark Nelson 065fd12021 MDL-54687 core_message: changed outder div's CSS class 2016-10-07 16:26:40 +08:00
Mark Nelson ed6a141d5d MDL-54687 core_message: reduce amount of JS in templates 2016-10-07 16:26:40 +08:00
Ryan Wyllie 8c55bd6c34 MDL-54701 message: add message popover count and mark as read 2016-10-07 16:26:40 +08:00
Ryan Wyllie 24a76780f6 MDL-54708 message: add renderer for get_popup_notification 2016-10-07 16:26:40 +08:00
Ryan Wyllie 34eb5fcb60 MDL-54698 message: move general settings from preference page 2016-10-07 16:26:40 +08:00
Mark Nelson 1e5f751ffc MDL-54687 core_message: moved renderables to 'messagearea' namespace 2016-10-07 16:26:40 +08:00
Mark Nelson 8ec78c48fa MDL-54687 core_message: added ajax scrolling for messages 2016-10-07 16:26:40 +08:00
Mark Nelson 90525930e5 MDL-54687 core: added prependNodeContents() to the AMD templates module 2016-10-07 16:26:40 +08:00
Mark Nelson 9661810ea6 MDL-54687 core_message: added ajax scrolling for contacts 2016-10-07 16:26:40 +08:00
Mark Nelson 2a4bbaa3ff MDL-54687 core_message: added SELECTORS and EVENTS variables to tidy JS 2016-10-07 16:26:40 +08:00
Ryan Wyllie a4a804b8f9 MDL-54698 message: add save/cancel button to processor popup 2016-10-07 16:26:40 +08:00
Ryan Wyllie b6cd1c1151 MDL-54698 message: combine message preferences into single table 2016-10-07 16:26:40 +08:00
Ryan Wyllie ada7695d7c MDL-54708 message: notification popover respects message preferences 2016-10-07 16:26:40 +08:00
Ryan Wyllie 643b015db2 MDL-54698 message: make processor settings dialogue 2016-10-07 16:26:40 +08:00
Ryan Wyllie e9cce46cf0 MDL-54698 message: change preferences to checkboxes 2016-10-07 16:26:40 +08:00
Ryan Wyllie 195a683b27 MDL-54701 message: rename module imports in js 2016-10-07 16:26:40 +08:00
Ryan Wyllie d4555a3d03 MDL-54701 message: renamed mdl-popover to popover-region 2016-10-07 16:26:40 +08:00
Mark Nelson 6b2657d981 MDL-54687 core_message: prefixed 'message_area' to JS and template files 2016-10-07 16:26:40 +08:00
Mark Nelson 00d80c7e4a MDL-54687 core_message: decreased size of messaging area 2016-10-07 16:26:40 +08:00
Mark Nelson b8a6beec40 MDL-54687 core_message: removed loading template 2016-10-07 16:26:40 +08:00
Ryan Wyllie e48a092a40 MDL-54698 message: add context to preferences templates 2016-10-07 16:26:40 +08:00
Ryan Wyllie 5ee31614c7 MDL-54698 message: split message preference page into renderables 2016-10-07 16:26:40 +08:00
Ryan Wyllie 39986f5044 MDL-54698 message: split message preferences page js 2016-10-07 16:26:40 +08:00
Ryan Wyllie eda6bc19e6 MDL-54701 message: added isread to data_for_messagearea_conversations 2016-10-07 16:26:40 +08:00
Ryan Wyllie c826fa230a MDL-54701 message: add user profile links to popovers
Make the user name link to the user's profile page for the message and
notification popovers.
2016-10-07 16:26:40 +08:00
Ryan Wyllie 540fec1e86 MDL-54701 message: allow relativeUrl to take params 2016-10-07 16:26:40 +08:00
Ryan Wyllie 9e8a29c95d MDL-54708 message: fix js module naming 2016-10-07 16:26:40 +08:00
Ryan Wyllie 406243381c MDL-54701 message: add message notification popover 2016-10-07 16:26:40 +08:00
Ryan Wyllie 607454d6f3 MDL-54708 message: change popover processor to nav bar notification 2016-10-07 16:26:40 +08:00
Ryan Wyllie c5dd16a111 MDL-54708 message: add ability to block popup notifications 2016-10-07 16:26:40 +08:00
Ryan Wyllie a0eabdd3c8 MDL-54698 message: make preferences page ajax save 2016-10-07 16:26:40 +08:00
Ryan Wyllie a0e358a64a MDL-54708 message: add notification popover to nav bar 2016-10-07 16:26:40 +08:00
Ryan Wyllie 3274d5ca66 MDL-54708 message: add backend APIs for notifications popover 2016-10-07 16:26:40 +08:00
Frédéric Massart d13880db8b MDL-55597 tool_templatelibrary: Re-inforce logic to skip theme templates 2016-10-07 10:24:50 +02:00
Ryan Wyllie 12d8c7b222 MDL-54700 message: added toggle contact button to user profile 2016-10-07 16:20:51 +08:00
Mark Nelson dec0cd9998 MDL-54687 core_message: added ability to delete conversations 2016-10-07 16:20:51 +08:00
Mark Nelson 16245a40b9 MDL-54687 core_message: added menu bar 2016-10-07 16:20:51 +08:00
Mark Nelson e237d2bd39 MDL-54687 core_message: refactored JS
- Created smaller AMD modules to handle specific tasks.
- Used JS events to notify AMD modules when an action has happened.
- Used data-* selectors, rather than CSS selectors (and removed
  any unused CSS selectors).
- Minor changes to behaviour when sending and deleting messages.
- Added JSDocs.
- General improvements to JS.
2016-10-07 16:20:51 +08:00
Mark Nelson f7775c9a0c MDL-54687 core: added appendNodeContents() to the AMD templates module 2016-10-07 16:20:51 +08:00
Mark Nelson 3090f52f9d MDL-54687 core_message: added ability to delete messages 2016-10-07 16:20:51 +08:00
Mark Nelson c6e97f5428 MDL-54687 core_message: added ability to view a contact's profile
Also added functionality to the profile page -

- View user's profile.
- Send the user a message.
- Block the user.
- Remove the user as a contact.
2016-10-07 16:20:51 +08:00
Mark Nelson 34c2f34762 MDL-54687 core_message: added userid parameter for altering contacts 2016-10-07 16:20:51 +08:00
Mark Nelson c060cd4904 MDL-54687 core_message: added ability to send messages 2016-10-07 16:20:51 +08:00
Mark Nelson 3cd13828ff MDL-54687 core_message: added ability to view messages 2016-10-07 16:20:51 +08:00
Mark Nelson 9aa012b5a1 MDL-54687 core_message: added ability to toggle between tabs 2016-10-07 16:20:51 +08:00
Mark Nelson 879e2bef23 MDL-54687 core_message: created page for new messaging interface
This commit introduces the templates, renderer and initial API
that will be used for further development.
2016-10-07 16:20:51 +08:00
Mark Nelson 0dec2f9f23 MDL-54687 theme: removed message related CSS 2016-10-07 16:20:51 +08:00
Mark Nelson f3c0e69232 MDL-54687 core_message: removed 'message_print_*' functions 2016-10-07 16:20:51 +08:00
Janek Lasocki-Biczysko 0bb7f79d31 MDL-51401 enrol: ensures correct order of roles in UI components
Role sort order was not available in the UI (in JavaScript) due to
the use of PHP assoc arrays and JSON encoding/decoding. This patch
addresses this by sending the roles in a json array, rather than
json object.
2016-10-07 08:30:25 +01:00
Andrew Nicols 070015004e MDL-56316 tests: Ensure consistent assertion count 2016-10-07 14:45:36 +08:00
Rajesh Taneja e1ad3a959d MDL-55924 behat: Add core features to specified theme's 2016-10-07 10:55:41 +08:00
Rajesh Taneja 95e1d5e50f MDL-55746 behat: Support blacklist theme features by tags 2016-10-07 09:05:26 +08:00
Russell Smith eca7dd65ad MDL-56308 cache: Fix APC ready rules for CLI scripts
When APCu is enabled, but the CLI is not it's possible for
calls to enable APCu to fail because it's not configured on the
command line.
2016-10-07 12:02:37 +11:00
Rajesh Taneja 5483ef5c7d MDL-56248 phpunit: Update phpunit to 5.5.6 2016-10-07 07:18:38 +08:00
Eloy Lafuente (stronk7) 85ef6fe2d9 MDL-56097 install: update the list of stale files for 3.2 2016-10-07 00:41:11 +02:00
Eloy Lafuente (stronk7) d9520bc04e weekly release 3.2dev 2016-10-06 22:31:27 +02:00
Eloy Lafuente (stronk7) badaed3224 Merge branch 'MDL-56306-master' of git://github.com/danpoltawski/moodle 2016-10-06 22:25:46 +02:00
Dan Poltawski 41a9a9219a MDL-56303 quiz: lack of quiz filtering
Also, correctly feed completiongradeitemnumber with grade item numbers
and not with grade item ids.
2016-10-06 22:24:57 +02:00
Dan Poltawski 636ec5010f MDL-56306 tests: make upgrade_util_test compatible with travis 2016-10-06 18:01:43 +01:00
Issam Taboubi fd8043b2de MDL-56285 competency: fix move competencies capabilities
In learning plan templates, cannot move competencies
around even if capability templatemanage is given
to the role because of bad context check
2016-10-06 10:33:32 -04:00
Frédéric Massart bcc4af3c7c MDL-56262 theme: Missing hash symbol in skip to maincontent anchor link 2016-10-06 12:54:44 +02:00
Dan Poltawski 586cf92909 MDL-45388 admin: warn of themedesignermode in /admin/ and perf footer
This is:
a) To help avoid devs going on a wild goose chase to find a perf issue
when it's caused by css building
b) To make it clearer that this should never be enabled on production
sites (we already have a warning in the performance report, but who
looks at that)

Now that boost is the default theme and builds css itself, it's more
critical.
2016-10-06 11:49:17 +01:00
Eloy Lafuente (stronk7) f73f938469 weekly release 3.2dev 2016-10-06 11:51:28 +02:00
Eloy Lafuente (stronk7) b79069d233 NOBUG: Fixed file access permissions 2016-10-06 11:51:28 +02:00
Eloy Lafuente (stronk7) a2884f8b6c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-10-06 11:51:24 +02:00
Dan Poltawski 47c12e2095 MDL-56216 theme_boost: correct favicon 2016-10-06 10:45:24 +01:00
Dan Poltawski c6c50e04d9 MDL-22078 lib: bump redirect_if_major_update_required()
Changes to the course table enforce an update
2016-10-06 09:24:52 +01:00
Andrew Nicols d93c3b6890 MDL-56293 mod_book: Add ToC block in chapter edit/deletes 2016-10-06 15:43:03 +08:00
Andrew Nicols 4dfc6a3296 Merge branch 'wip-mdl-55986-fix-2' of https://github.com/rajeshtaneja/moodle 2016-10-06 15:07:16 +08:00
Rajesh Taneja f32c2fd781 MDL-55986 behat: use double quotes not single
On windows we need option value to be in
double quotes, else it fails
2016-10-06 15:03:56 +08:00
Andrew Nicols 0223a663a9 Merge branch 'MDL-22078_master-fix' of git://github.com/dmonllao/moodle 2016-10-06 10:38:24 +08:00
Andrew Nicols a4b2896238 Merge branch 'wip-mdl-55739' of https://github.com/rajeshtaneja/moodle 2016-10-06 10:08:14 +08:00
David Monllao 40eea06c7d MDL-22078 course reset: No enddate time shift if no enddate 2016-10-06 10:07:22 +08:00
Rajesh Taneja 16e62ecc56 MDL-55739 core_course: Check if gradepass is set and not empty
Default value of gradepass is 0.00000 and empty check
passes. But on oracle gradepass value is 0, so just
check if the field is set and that should be enough
2016-10-06 09:50:21 +08:00
Andrew Nicols 952ffbc2b2 MDL-56092 auth_email: Correct assumed ordering in unit test 2016-10-06 09:07:08 +08:00
Eloy Lafuente (stronk7) 21d8921112 Merge branch 'wip-mdl-55713' of https://github.com/rajeshtaneja/moodle 2016-10-06 01:58:58 +02:00
Rajesh Taneja 904306389f MDL-55713 behat: Include named and partial behat selector files 2016-10-06 07:55:51 +08:00
Juan Leyva 5101310d51 MDL-53777 tool_mobile: Fix incorrect and untranslated string 2016-10-06 01:48:19 +02:00
Juan Leyva 9d382a948e MDL-55923 webservice: Allow user to sign-out systems on pwd change 2016-10-05 20:34:06 +01:00
Juan Leyva 6a09295857 MDL-55923 webservice: Add global setting for forcing token deletion 2016-10-05 20:34:01 +01:00
Paul Holden 546bc40c13 MDL-55345 user: correct userid when linking to iplookup from profile 2016-10-05 15:08:38 +01:00
Dan Poltawski 520ee366f4 Merge branch 'MDL-54802-master-fix-2' of git://github.com/cameron1729/moodle 2016-10-05 14:34:11 +01:00
Cameron Ball 2ce9628484 MDL-54802 mod_quiz: Improve validation when editing a quiz uusing require passing grade
When editing a quiz that is using the require passing grade completion method,
the grade to pass cannot be zero. Since the completion method is locked we
cannot recommend that the completion method is changed (as we do when the quiz
is being created). Instead we have to inform the user that the grade to pass
must not be zero.
2016-10-05 19:21:40 +08:00
Eloy Lafuente (stronk7) adc77f07c5 Merge branch 'MDL-22078_master' of https://github.com/dmonllao/moodle 2016-10-05 12:22:07 +02:00
Frédéric Massart d2e09f2b08 MDL-56162 theme_boost: Moodle modals are working and styled for Boost 2016-10-05 12:15:33 +02:00
Dan Poltawski 4f11002077 Merge branch 'MDL-54802-master-fix' of git://github.com/cameron1729/moodle 2016-10-05 10:33:14 +01:00
Dan Poltawski f3da9c49a8 Merge branch 'MDL-56194-master' of git://github.com/FMCorz/moodle 2016-10-05 10:25:30 +01:00
Cameron Ball 26cb467b47 MDL-54802 mod_quiz: Move grade to pass error to require passing grade element
When using a passing grade of zero, with the required passing grade
option, an error was displayed on the "grade to pass" element.
This was confusing as the error message is referring to the
"Require passing grade" element. This patch moves the message to
the "Require passing grade" element.

Additionaly this patch fixes a small typo in a comment.
2016-10-05 17:14:00 +08:00
David Monllao 5be1491759 Merge branch 'wip-mdl-56210-fix' of https://github.com/rajeshtaneja/moodle 2016-10-05 15:51:43 +08:00
Rajesh Taneja 86ebbed6ca MDL-56210 behat: Test for disabled button later
With phantomjs, dom is not updated by the time
next step is executed, so suffle it to ensure
this scenario pass
2016-10-05 15:45:22 +08:00
David Monllao b02c16399e Merge branch 'MDL-55713-master-fix' of git://github.com/andrewnicols/moodle 2016-10-05 15:26:36 +08:00
Andrew Nicols d98217550b MDL-55713 behat: Bad rebase conflict resolution fix 2016-10-05 15:19:07 +08:00
Dan Poltawski e43bab742d Merge branch 'MDL-55129-master' of git://github.com/jleyva/moodle 2016-10-05 08:08:11 +01:00
Andrew Nicols 77371e2d4a Merge branch 'MDL-55767-master-fix1' of http://github.com/damyon/moodle 2016-10-05 14:24:09 +08:00
Damyon Wiese 9b807e6dbf MDL-55767 tool_lpimportcsv: Find existing scales on the site
The code was trying to match the imported scale to an existing scale for the site. It was
not loading the items before comparing them, so the matching always failed.
2016-10-05 14:23:10 +08:00
Andrew Nicols 4187b3e521 MDL-55713 behat: Correct all references to selectortype 2016-10-05 14:10:26 +08:00
David Monllao 8643c576c7 MDL-22078 course: Complete proposed patch
- New site setting to define the default course duration (used to set
  the default end date for some course formats)
- End date setting out of restore
- Fix tool_uploadcourse
- Other fixes here and there
2016-10-05 12:31:05 +08:00
Andrew Nicols b31984d5a2 MDL-55713 2016-10-05 11:46:49 +08:00
Andrew Nicols 3cf1fea55a MDL-56270 mod_book: Add next/prev chapter to attributes
This adds the details of the next/previous chapter to the image
attributes and link for the in-page chapter-to-chapter navigation.
2016-10-05 11:38:18 +08:00
Simey Lameze a4ea86f65a MDL-56050 core: set missing context to maintenance mode 2016-10-05 11:23:38 +08:00
Andrew Nicols 6ee51d010f MDL-55713 behat: Correct copy/paste error 2016-10-05 11:04:56 +08:00
Simey Lameze 9a15bf217f MDL-55999 lib: Update thirdpartylibs.xml and readme_moodle.txt 2016-10-05 10:58:10 +08:00
Simey Lameze f7035bb964 MDL-55999 lib: Update ADOdb to version 5.20.7 2016-10-05 10:57:42 +08:00
Andrew Nicols 9bf212b072 Merge branch 'wip-mdl-56092' of https://github.com/rajeshtaneja/moodle 2016-10-05 10:08:15 +08:00
Rajesh Taneja a4c970ff0e MDL-56092 phpunit: Add auth/tests to phpunit.xml.dist 2016-10-05 10:03:46 +08:00
David Monllao d905fc31bd Merge branch 'wip-mdl-55986-fix' of git://github.com/rajeshtaneja/moodle 2016-10-05 09:46:36 +08:00
David Monllao c7fc66f2ac Merge branch 'MDL-45969-master' of git://github.com/damyon/moodle 2016-10-05 09:42:17 +08:00
Rajesh Taneja b9b474182a MDL-55986 behat: all options are not valid for single run
Sanitize options which are valid for single run only
2016-10-05 09:39:26 +08:00
Andrew Nicols 2a864ee9a8 Merge branch 'MDL-56092-master' of git://github.com/jleyva/moodle 2016-10-05 08:30:35 +08:00
Andrew Nicols 5bba36f63f Merge branch 'MDL-56016-master' of git://github.com/FMCorz/moodle 2016-10-05 08:10:02 +08:00
Eloy Lafuente (stronk7) 7ad3d5db04 Merge branch 'MDL-56231-32-flexible_table-construct-phpdoc' of https://github.com/roperto/moodle 2016-10-05 01:48:49 +02:00
Eloy Lafuente (stronk7) bd1edc8314 MDL-55713 behat: fix mistakenly broken php 2016-10-05 01:21:32 +02:00
Eloy Lafuente (stronk7) 8497955eb4 Merge branch 'MDL-56126-master' of git://github.com/jleyva/moodle 2016-10-05 01:05:27 +02:00
Eloy Lafuente (stronk7) b976e22a7e Merge branch 'MDL-55713-master-3' of git://github.com/andrewnicols/moodle 2016-10-05 00:34:01 +02:00
Eloy Lafuente (stronk7) 2720dce627 Merge branch 'wip-mdl-55986' of https://github.com/rajeshtaneja/moodle 2016-10-05 00:29:29 +02:00
Juan Leyva 30cdddb017 MDL-55129 mod_assign: Allow plugins to handle configs for external
Until now in the get_assignments WS all the settings for assignment
plugins (submission and feedback) are returned, this was bad because:

- It was returning settings for plugins that may not be enabled
- It was returning settings that would be a security risk (a third
party plugin including a password or credentials for connecting a
remote site)
- Some values was returned "raw" without further processing, for
example, maxsubmissionsizebytes returned 0 when using the plugin
default value instead a valid size
- Assignment plugins implemented an API for communication with the
external API, see for example: get_external_parameters, it didn’t make
sense had an API for the received parameters and not the returned data.
2016-10-04 20:28:38 +01:00
Dan Poltawski 4089c42e12 MDL-55404 upgrade: dramatically simplify test code
Fixing http://xunitpatterns.com/Obscure%20Test.html
2016-10-04 20:00:59 +01:00
Dan Poltawski 6658ef6cd9 Merge branch 'MDL-55404-master' of git://github.com/cameron1729/moodle 2016-10-04 18:23:36 +01:00
Dan Poltawski a57e3d3b1f MDL-56011 lib: move Mustache loading to core_component autoloader 2016-10-04 18:17:22 +01:00
Dan Poltawski 38c1cbceb7 Merge branch 'MDL-56011-master' of https://github.com/snake/moodle 2016-10-04 18:16:04 +01:00
Dan Poltawski 55e8426f73 MDL-55739 course: more whitespace 2016-10-04 18:12:41 +01:00
Dan Poltawski c7ecbc9e3d MDL-55739 course: fix trailing whitespace 2016-10-04 18:07:08 +01:00
Dan Poltawski 742d23c68f Merge branch 'MDL-55739-master' of git://github.com/jleyva/moodle 2016-10-04 17:58:27 +01:00
AMOS bot 6600899b37 Automatically generated installer lang files 2016-10-05 00:05:47 +08:00
Dan Poltawski 37705564ec Merge branch 'MDL-55100-master' of git://github.com/jleyva/moodle 2016-10-04 17:00:53 +01:00
Dan Poltawski eedf01895e Merge branch 'MDL-54866-master' of git://github.com/jleyva/moodle 2016-10-04 15:50:44 +01:00
Dan Poltawski ed3956a39a Merge branch 'MDL-55861-master' of https://github.com/dj4452/moodle 2016-10-04 15:43:51 +01:00
Eloy Lafuente (stronk7) 461e98cdd7 Merge branch 'MDL-56069' of git://github.com/timhunt/moodle 2016-10-04 16:34:50 +02:00
Eloy Lafuente (stronk7) aef4de1b61 Merge branch 'empty-checks' of https://github.com/danpoltawski/moodle 2016-10-04 16:16:36 +02:00
Dan Poltawski 038dc234f6 MDL-55059 output: fix empty checks 2016-10-04 15:08:12 +01:00
David Mudrák 4139259cc6 MDL-56261 tags: Do not follow the empty anchor link on more/less toggle
Some browsers tend to follow the empty <a href="#"> link and scroll to
the top of the page.
2016-10-04 15:22:46 +02:00
Andrew Nicols 5736b0e15d Merge branch 'MDL-56168-master-fixup' of https://github.com/FMCorz/moodle 2016-10-04 20:54:27 +08:00
Dan Poltawski d6c8732844 Merge branch 'wip-mdl-55769' of https://github.com/rajeshtaneja/moodle 2016-10-04 13:13:26 +01:00
Dan Poltawski 867b1fad2f Merge branch 'MDL-45890_m32v3' of https://github.com/sbourget/moodle 2016-10-04 13:11:37 +01:00
Juan Leyva 796876b0ab MDL-55739 course: Update get_course_module to return new data 2016-10-04 13:00:35 +01:00
Dan Poltawski a553501042 Merge branch 'wip-MDL-56001-master' of git://github.com/abgreeve/moodle 2016-10-04 12:42:25 +01:00
Juan Leyva 7c1cb3bf5a MDL-54866 tool_mobile: Rename WS get_site_public_settings 2016-10-04 12:14:10 +01:00
Juan Leyva 6b4926281b MDL-54866 tool_mobile: New Web Service tool_mobile_get_config 2016-10-04 12:09:02 +01:00
Juan Leyva 5c6daf139d MDL-55059 tool_mobile: Support Smart App Banners for iOs 2016-10-04 11:49:34 +01:00
Dan Poltawski 43cb92b4b0 MDL-56007 jquery: add back non-minified files
Sorry Simey, I lead you astray (detected by unit tests)
2016-10-04 11:16:29 +01:00
Dan Poltawski 93835cab84 Merge branch 'MDL-56257-master' of git://github.com/FMCorz/moodle 2016-10-04 10:57:35 +01:00
Frédéric Massart 5f22879c3d MDL-56257 theme_boost: Killing that typo monster 2016-10-04 11:37:37 +02:00
Dan Poltawski 8e8b46cd87 Merge branch 'MDL-55226_master' of git://github.com/lazydaisy/moodle 2016-10-04 10:37:36 +01:00
Dan Poltawski a5a86826fd Merge branch 'MDL-56007-master' of git://github.com/lameze/moodle 2016-10-04 10:29:42 +01:00
Juan Leyva 3e8145a37a MDL-56126 user: New WS core_user_agree_site_policy
This commit includes a change in moodlelib to throw the
sitepolicynotagreed exception in a way that can be captured and
identified by external systems.
2016-10-04 10:20:59 +01:00
Dan Poltawski 917a59a1a0 Merge branch 'MDL-55728-master' of git://github.com/jleyva/moodle 2016-10-04 10:15:37 +01:00
Juan Leyva 83e4dc1796 MDL-56092 core_auth: New WS core_auth_confirm_user 2016-10-04 09:50:32 +01:00
Juan Leyva e66a45d994 MDL-56092 auth_email: New WS auth_email_signup_user 2016-10-04 09:50:04 +01:00
Juan Leyva 4e2f7e0cd8 MDL-56092 auth_email: New WS auth_email_get_signup_settings 2016-10-04 09:50:03 +01:00
Juan Leyva 3ee392c8e8 MDL-56092 core_user: Changes in profilelib to support WS 2016-10-04 09:50:02 +01:00
Juan Leyva f1062815e2 MDL-56092 core_auth: Refactor recaptcha lib 2016-10-04 09:49:27 +01:00
Juan Leyva 574b9d86e9 MDL-56092 core_auth: Move signup code from form to authlib 2016-10-04 09:49:26 +01:00
Frédéric Massart 98f1034ccd MDL-56254 theme_boost: Cannot use $this as function parameter 2016-10-04 10:41:15 +02:00
Dan Poltawski c9568860cb Merge branch 'wip-MDL-56012-master' of git://github.com/abgreeve/moodle 2016-10-04 09:40:34 +01:00
Andrew Nicols 1f5ae5f4e6 MDL-56010 libraries: Add missing comment back to loglevel 2016-10-04 16:33:31 +08:00
Andrew Nicols 109c3a1c57 Merge branch 'MDL-56010-master' of git://github.com/lameze/moodle 2016-10-04 16:21:05 +08:00
Frédéric Massart b90843c821 MDL-56168 theme_boost: Cannot use a null value for colour pickers 2016-10-04 10:21:01 +02:00
Simey Lameze f2b169ec03 MDL-56010 libraries: remove jshint changes and update comment block 2016-10-04 16:05:41 +08:00
Simey Lameze 530198c98c MDL-56007 lib: Update readme_moodle.txt and thirdpartylibs.xml 2016-10-04 15:43:17 +08:00
Simey Lameze 9427ff510a MDL-56007 lib: Upgrade JQuery UI to version 1.12.1 2016-10-04 15:41:55 +08:00
Andrew Nicols a955953c41 Merge branch 'MDL-55928-master' of git://github.com/jleyva/moodle 2016-10-04 14:59:11 +08:00
Andrew Nicols d4566644f6 Merge branch 'MDL-56009-master' of git://github.com/lameze/moodle 2016-10-04 14:54:12 +08:00
Andrew Nicols 948673efae Merge branch 'MDL-55886-master' of git://github.com/danpoltawski/moodle 2016-10-04 11:20:24 +08:00
Andrew Nicols febceada8c Merge branch 'MDL-56000-master' of git://github.com/lameze/moodle 2016-10-04 10:59:18 +08:00
Adrian Greeve dd9ee3d837 MDL-56012 lib: Update of readme and xml file.
Also made edits to use the PSR-4 autoloader.
2016-10-04 10:47:06 +08:00
Andrew Nicols eba8a38200 Merge branch 'MDL-56056-master' of git://github.com/FMCorz/moodle 2016-10-04 10:35:25 +08:00
Adrian Greeve cd198eafd6 MDL-56012 lib: Update spout to version 2.6.0 2016-10-04 10:12:29 +08:00
Adrian Greeve ef783842df MDL-56001 lib: Update of moodle documentation.
Update of readme_moodle.txt and thirdpartylibs.xml
with information about the update to 1.4.2
2016-10-04 10:01:15 +08:00
Adrian Greeve d6d51786d5 MDL-56001 lib: Upgrade simplepie to 1.4.2 2016-10-04 09:59:25 +08:00
Andrew Nicols a4bf84ebda Merge branch 'wip-MDL-31243-master' of https://github.com/Beedell/moodle 2016-10-04 09:19:42 +08:00
Andrew Nicols 520071f0bd MDL-55713 behat: Adjust how NamedPartials are loaded 2016-10-04 09:18:02 +08:00
Andrew Nicols c8379882b8 Merge branch 'MDL-56198' of git://github.com/timhunt/moodle 2016-10-04 09:01:25 +08:00
David Monllao d0b4772c88 MDL-55954 search_solr: Check connection before anything else
- Silents the system call when no correct data provided
- Converts long exception messages to standard server
  error + debugging message with the exception
2016-10-04 08:59:59 +08:00
Andrew Nicols 2e80ff16dd MDL-53777 tool_mobile: Adjust langstring 2016-10-04 08:53:19 +08:00
Andrew Nicols 27ed5be84f Merge branch 'MDL-53777-master' of git://github.com/jleyva/moodle 2016-10-04 08:51:24 +08:00
Eloy Lafuente (stronk7) b8c241b1fd Merge branch 'MDL-56172-master' of git://github.com/danpoltawski/moodle 2016-10-04 00:53:02 +02:00
Eloy Lafuente (stronk7) 8f900947e9 Merge branch 'MDL-56166-master' of git://github.com/FMCorz/moodle 2016-10-04 00:41:00 +02:00
Eloy Lafuente (stronk7) ed66d725e6 Merge branch 'MDL-56160-master' of git://github.com/dpalou/moodle 2016-10-04 00:39:06 +02:00
Juan Leyva c8743f62b4 MDL-55728 webservice: Return editor files in Web Services 2016-10-03 16:49:13 +01:00
Dan Poltawski e22ce8ab82 Merge branch 'MDL-56181-master-czechia' of git://github.com/mudrd8mz/moodle 2016-10-03 16:43:52 +01:00
Dan Poltawski b9c3211c92 Merge branch 'MDL-56143-master-typo-boost' of git://github.com/mudrd8mz/moodle 2016-10-03 16:42:39 +01:00
Dan Poltawski 4e0f7f98ec Merge branch 'MDL-52317' of https://github.com/NeillM/moodle 2016-10-03 16:09:25 +01:00
Tim Hunt 9bee35d5ad MDL-56198 assignment: improve grading info responsiveness 2016-10-03 16:09:21 +01:00
Dan Poltawski 8ba8b13bd9 Merge branch 'MDL-55786-master' of git://github.com/jleyva/moodle 2016-10-03 15:44:40 +01:00
Dan Poltawski 2d71da6851 Merge branch 'MDL-54802-master' of git://github.com/lameze/moodle 2016-10-03 14:46:43 +01:00
Juan Leyva afb7799a6d MDL-55786 rating: New Web Service core_rating_add_rating 2016-10-03 12:22:29 +01:00
Juan Leyva a497458c89 MDL-55786 rating: Move common code to new function 2016-10-03 12:17:09 +01:00
Dan Poltawski 5e0e9f3674 MDL-55740 mod_assign: bump version 2016-10-03 11:18:43 +01:00
Dan Poltawski b885488c02 Merge branch 'MDL-55740-master' of git://github.com/jleyva/moodle 2016-10-03 11:16:09 +01:00
Dan Poltawski c59a6ffd53 Merge branch 'MDL-55347-master' of git://github.com/jleyva/moodle 2016-10-03 10:31:52 +01:00
Frédéric Massart 63ff4f27da MDL-56214 theme_boost: Autocomplete element options can contain HTML 2016-10-03 11:30:43 +02:00
Dan Poltawski 3324250395 Merge branch 'wip-MDL-55911-master' of https://github.com/Beedell/moodle 2016-10-03 10:24:59 +01:00
Juan Leyva 649777fb8d MDL-55347 user: New WS core_user_set_users_preferences 2016-10-03 10:22:07 +01:00
Juan Leyva 0a90f6247d MDL-53777 tool_mobile: New script for launching the mobile app 2016-10-03 10:02:33 +01:00
Juan Leyva c951f1fe58 MDL-53777 tool_mobile: New setting typeoflogin, including WS 2016-10-03 10:02:33 +01:00
Juan Leyva 8a0a7414b2 MDL-53777 tool_mobile: Move mobile settings to the admin tool 2016-10-03 10:02:32 +01:00
Frédéric Massart f1ba3b0a52 MDL-56192 theme_bootstrapbase: Properly display theme_boost default tab 2016-10-03 10:05:01 +02:00
Andrew Nicols cd40761f63 Merge branch 'MDL-56003-master-int' of https://github.com/FMCorz/moodle 2016-10-03 15:57:46 +08:00
Frédéric Massart 13ca1c3101 MDL-56003 theme_boost: Update thirdpartylib.xml to reflect BS4 update 2016-10-03 09:48:37 +02:00
Rajesh Taneja a1d92ef25d MDL-55986 behat: Fix unit tests to use fixtures 2016-10-03 15:38:24 +08:00
Rajesh Taneja b04ca8c8a1 MDL-55986 behat: Added option to optimize parallel runs by tags
run.php should only be used for running behat
before this patch if tags were passed, then behat.yml
was being re-written with features havings tags.
As this is not ideal, this option is now removed and
features with tags will be optimally split
by init.php when --optimize-run option is passed
2016-10-03 15:38:04 +08:00
David Monllao c41132f075 Merge branch 'MDL-55168-master' of git://github.com/danpoltawski/moodle 2016-10-03 14:33:24 +08:00
David Monllao 2e5a8fd7aa Merge branch 'wip-mdl-56210' of https://github.com/rajeshtaneja/moodle 2016-10-03 13:53:29 +08:00
David Monllao 6a9dc6b899 Merge branch 'MDL-55165-master' of git://github.com/danpoltawski/moodle 2016-10-03 13:31:36 +08:00
Simey Lameze bc963d98d8 MDL-56009 lib: update RequireJS to 2.3.2 2016-10-03 13:21:33 +08:00
Daniel Thee Roperto 29406dded1 MDL-56231 library: Fixed PhpDoc for flexible_table constructor.
The flexible_table::__construct($uniqueid) accepts a string, not an int
as previously noted in the PhpDoc.
2016-10-03 16:07:11 +11:00
David Monllao 2f234a4af8 Merge branch 'MDL-56164-master' of git://github.com/danpoltawski/moodle 2016-10-03 13:07:01 +08:00
Rajesh Taneja 24c2dcada5 MDl-56210 behat: Ensure page is loaded, before checking button 2016-10-03 13:03:51 +08:00
David Monllao 7b7ddd97b9 Merge branch 'wip-MDL-55990-master' of git://github.com/marinaglancy/moodle 2016-10-03 13:00:08 +08:00
Andrew Nicols dbab30b127 MDL-55767 competency: Deprecate langstring and replace 2016-10-03 12:59:32 +08:00
Andrew Nicols aac3b0bebb Merge branch 'MDL-55767-master' of git://github.com/damyon/moodle 2016-10-03 12:55:06 +08:00
David Monllao dae538606f Merge branch 'MDL-55964_master' of https://github.com/StudiUM/moodle 2016-10-03 12:40:25 +08:00
Jake Dallimore d5553254e9 MDL-56010 libraries: Upgrade loglevel.js to 1.4.1 - post-import changes 2016-10-03 12:25:42 +08:00
Jake Dallimore 0b8cdaf6cb MDL-56010 libraries: Upgrade loglevel.js to 1.4.1 - library import 2016-10-03 12:23:28 +08:00
Damyon Wiese 9e14057444 MDL-55767 competencies: Better exceptions for persistent
The persistent exceptions "squash" all the details and only display
them to developers. This leads to generic "Invalid persistent" messages
with no explanation. Instead lets include the message detail always.
2016-10-03 12:01:56 +08:00
Rajesh Taneja f5d3befb72 MDL-55769 behat: Point to moodle-behat-extension 3.32.3 2016-10-03 11:50:51 +08:00
Damyon Wiese 5e4fffa013 MDL-55767 tool_lpimportcsv: import/export competency fmwks 2016-10-03 11:47:07 +08:00
David Monllao c31610afde Merge branch 'MDL-56127' of git://github.com/stronk7/moodle 2016-10-03 11:09:16 +08:00
David Monllao 92e3294dfc Merge branch 'MDL-56167-master' of git://github.com/danpoltawski/moodle 2016-10-03 11:04:34 +08:00
Andrew Nicols 580d3fe780 Merge branch 'MDL-56003-master' of git://github.com/FMCorz/moodle 2016-10-03 10:51:43 +08:00
Andrew Nicols 5f21d5e8ab Merge branch 'MDL-39117' of git://github.com/mr-russ/moodle 2016-10-03 10:13:09 +08:00
David Monllao 9b7f058cee MDL-22078 course: End date tests 2016-10-03 09:51:36 +08:00
Daniel Neis Araujo fbcdb0d710 MDL-22078 course: add end date 2016-10-03 09:51:36 +08:00
Andrew Nicols 8bb7148a9a Merge branch 'MDL-56168-master' of git://github.com/FMCorz/moodle 2016-10-03 08:20:38 +08:00
lazydaisy 0ef2631d1c MDL-55226 theme/index.php: Tidy up irregular spacing in original markup 2016-10-01 15:14:57 +01:00
lazydaisy 4b58fc61dd MDL-55226 theme/index.php: Make theme selector responsive. 2016-10-01 14:58:12 +01:00
Tim Hunt 67c8c9b493 MDL-56069 quiz: nav buttons don't scroll to the right question
When there is more than one question on a page, say questions 2, 3 & 4.
Then when you click the navigation button for Q4, then it should load
the next page scrolled down so that Q4 is visible. That was not working.
2016-09-30 15:05:02 +01:00
Michael Aherne 220f1cba3e MDL-56220 cache: Call static method correctly 2016-09-30 14:49:46 +01:00
Frédéric Massart 13623ce81e MDL-56147 theme_boost: Styling for fake calendar events filter block 2016-09-30 14:28:36 +02:00
Frédéric Massart 1497268b5e MDL-56218 theme_boost: Retire .boxalign* and .boxwidth* classes 2016-09-30 12:18:13 +02:00
Frédéric Massart a5e92a4183 MDL-56209 question: Fix icon sizing issues apparent in Boost 2016-09-30 11:56:42 +02:00
John Beedell b5cbcc4dfb MDL-55911 Quiz: Accessibility, Label blanks in DD questions 2016-09-30 09:43:59 +01:00
John Beedell 905953909f MDL-31243 access/enrol libs: rename new groups functions 2016-09-30 09:27:59 +01:00
John Beedell 9121bb2d23 MDL-31243 access/enrol libs: new fns returning useful SQL fragments
Refactor similar SQL generation code from get_users_by_capability
and get_enrolled_uses to make get_with_capability_sql.
Modified files: accesslib.php, enrollib.php, grouplib.php, new tests.
2016-09-30 09:27:56 +01:00
John Beedell 9f5170e955 MDL-31243 access/enrol libs: move enrol functions 2016-09-30 09:27:53 +01:00
Dan Poltawski e63d89a51d MDL-55168 assign: fix some incorrectly defined css transitions
The lint error suggests as though we were waiting 0s to do a
transiition of duration of 0s (i.e.  nothing), but thats not actually
the case.
2016-09-30 09:25:30 +01:00
Dan Poltawski efd03a8e71 MDL-55168 report_competency: delete empty css file 2016-09-30 09:25:26 +01:00
Dan Poltawski 693652b78d MDL-55168 css: fix various errors detected by stylelint
Ignored properties, invalid propertiies, duplicates, invalid selectors..

Detected by stylelint rules:

http://stylelint.io/user-guide/rules/declaration-block-no-ignored-properties
http://stylelint.io/user-guide/rules/selector-type-no-unknown
http://stylelint.io/user-guide/rules/declaration-block-no-duplicate-properties
http://stylelint.io/user-guide/rules/max-line-length
http://stylelint.io/user-guide/rules/no-browser-hacks
2016-09-30 09:25:25 +01:00
Dan Poltawski 99fe296eb2 MDL-55168 css: remove 0-length units 2016-09-30 09:25:25 +01:00
Dan Poltawski aea8eaecde MDL-55168 css: use shorthand colour props when possible 2016-09-30 09:25:24 +01:00
Dan Poltawski e90cef839c MDL-55168 css: ignore some stylelint complains
1) Legacy css where it would not be a good use of time to
   update.

2) Ignored some long lines and added todo

3) Fixed some line length issues
2016-09-30 09:25:24 +01:00
Dan Poltawski ed6aea6002 MDL-55168 css: fix spacing of selectors 2016-09-30 09:25:24 +01:00
Dan Poltawski bc33e9bd3f MDL-55168 css: reformat plain css with stylefmt 2016-09-30 09:25:23 +01:00
Dan Poltawski d5dff6316a MDL-55168 grunt: Add plain css linting 2016-09-30 09:25:23 +01:00
Frédéric Massart 6261200f98 MDL-56209 mod_quiz: Override styles inherited from course format
Why is that even using the same classes?!
2016-09-30 10:22:52 +02:00
Dan Poltawski 195f42de40 MDL-56164 theme_boost: remove empty stylesheet 2016-09-30 08:55:06 +01:00
Dan Poltawski ad9da28cb5 MDL-56164 theme_boost: remove empty stylesheet 2016-09-30 08:50:47 +01:00
Neill Magill c3e1c98f04 MDL-52317 Atto: Large resized images may display scroll bars
When an image was added via Atto and it was set to resize automatically
if the alignment was set to Top, Middle or Bottom when it was made
smaller then a vertical scroll bar would be displayed.

This was caused by the interaction of the margin settings on the image
and the 100% width set via the img-responsive css class. The width of
an element only includes the content area and not any borders, padding
or margins.

This change stops atto hardcoding the styles for image alignment into
the images style tag, it instead adds a class that defines the alignment
the image should have.

This change has the benefit that themers will now be able to adjust
how atto image alignments work if they wish.

Images added before this patch will continue to have the issue
until they are edited by the plugin, at which time their legacy style
will be removed and the new alignment method will be added.

Thanks to Andrew Nicols who provided a refactor for the Alignment
and style detection code.
2016-09-30 08:48:33 +01:00
Rajesh Taneja c2b0213b08 MDL-55986 behat: Re-factor exiting api's
Return all features and contexts, so they can
be filtered well at one place
2016-09-30 13:32:20 +08:00
Damyon Wiese f5ba9ac995 MDL-45969 editpdf: The logic for showing a previous attempt is wrong
It originally was only ever going to show static pdfs for older versions,
but this doesn't make sense in the UI for 3.1.
2016-09-30 13:15:00 +08:00
Rajesh Taneja eed52d64bb MDL-56210 behat: Ensure behat waits for dependancy manager 2016-09-30 10:19:09 +08:00
Jake Dallimore 20df227e22 MDL-56011 libraries: upgrade mustache.php to 2.11.1 2016-09-30 08:40:41 +08:00
Dan Poltawski c561b23d8f MDL-55886 block_rss_client: fix oracle compatibility 2016-09-29 16:55:07 +01:00
Deepa Jayaprakash 9b24ebd665 MDL-55861 course: Click drag&drop icon, incorrect activities shown 2016-09-29 16:42:10 +01:00
Dan Poltawski 81c9e018b4 MDL-56172 admin: remove cssoptimiser config options 2016-09-29 16:41:29 +01:00
Dan Poltawski d52ebf11d3 MDL-56172 css: remove css optimiser
This functionality no longer makes sense inside Moodle now that we have
external tools like stylelint to help us with this. It was not able to
be used by any core themes.

The code was always marked as not for external use.
2016-09-29 16:40:40 +01:00
Dan Poltawski cdcfc4bcd2 MDL-55165 bootstrap: built css 2016-09-29 16:39:30 +01:00
Dan Poltawski 13e0d7f3e6 MDL-55165 stylelint: remove unset redundant properities rule
http://stylelint.io/user-guide/rules/shorthand-property-no-redundant-values/

Fred and I had discussed enabling this rule, but think it's better for
CSS newcomers to be disabled, so lets remove trace of it.
2016-09-29 16:39:30 +01:00
Dan Poltawski 07482105c1 MDL-55165 less: use lowercase hex codes for colours
And use shorthand where possible.

Detected by
http://stylelint.io/user-guide/rules/color-hex-case/
http://stylelint.io/user-guide/rules/color-hex-length/

When reviewing this change, you can hide the case changes by
reviewing with:
GIT_EXTERNAL_DIFF='diff -ipu   #' git diff --ext-diff
2016-09-29 16:39:30 +01:00
Dan Poltawski 65f9a71fbd MDL-55165 less: ensure no units on 0 length things
Detected by http://stylelint.io/user-guide/rules/length-zero-no-unit/
2016-09-29 16:39:30 +01:00
Dan Poltawski 62ce522cde MDL-55165 less: fix various errors in less
Detected by stylelint rules:

http://stylelint.io/user-guide/rules/declaration-block-no-ignored-properties/
http://stylelint.io/user-guide/rules/declaration-block-no-duplicate-properties/
http://stylelint.io/user-guide/rules/declaration-block-no-shorthand-property-overrides/
http://stylelint.io/user-guide/rules/value-keyword-case/
http://stylelint.io/user-guide/rules/selector-type-no-unknown/
http://stylelint.io/user-guide/rules/selector-type-no-unknown/
2016-09-29 16:39:30 +01:00
Eloy Lafuente (stronk7) 83edfba240 MDL-56127 forms: multiple select dependencies fixed
This is a fix for a regressions introduced by MDL-54778. It
seems that escaped all our tests because there isn't any case
of such a dependency in core, but Daniele Cordella was facing
it within his surveypro module.
2016-09-29 16:53:08 +02:00
Frédéric Massart 239fd05cc9 MDL-56016 theme_boost: Add plain preset for plain Moodle & Bootstrap 2016-09-29 15:18:40 +02:00
Frédéric Massart a4808411a4 MDL-56056 theme_boost: Align completion icons with activity menus 2016-09-29 15:04:13 +02:00
Dan Poltawski ddd8dc0d1b weekly release 3.2dev 2016-09-29 12:42:50 +01:00
Dan Poltawski e77a0e0922 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-09-29 12:42:48 +01:00
Juan Leyva 80adabef0e MDL-55100 course: New Web Service get_courses_by_field 2016-09-29 12:20:49 +01:00
Frédéric Massart 23faa312a3 MDL-56194 admin: Allow HTML in admin setting headings 2016-09-29 13:18:35 +02:00
David Mudrák b706012657 MDL-56181 lang: Fix CI and CZ country short names to match ISO 3166 2016-09-29 11:47:11 +02:00
Frédéric Massart 36553104da MDL-56168 theme_boost: Make default accent colour match preset 2016-09-29 10:02:13 +02:00
Simey Lameze 48dc4059da MDL-56000 lib: upgrade PHPMailer to 5.2.16 2016-09-29 15:09:10 +08:00
Jun Pataleta 6c43d831f0 MDL-49609 mod_lti: Fixes for problems found in testing
* Load contentitem_return doc before processing
* Also use new AMD modal instead of the YUI one.
* Remove conversion of text columns in union queries
  - Since the value column in lti_types_config was changed to a
    text type, there is no need to use $DB->sql_compare_text()
    for the lti_types columns involved in the union queries in
    lti_get_type_config().
2016-09-29 11:13:50 +08:00
Eloy Lafuente (stronk7) d231f3cb0d Merge branch 'MDL-53870-master' of git://github.com/jleyva/moodle 2016-09-29 01:45:02 +02:00
Eloy Lafuente (stronk7) d0deb28c24 Merge branch 'MDL-55804_master' of git://github.com/dmonllao/moodle 2016-09-29 01:14:33 +02:00
Rajesh Taneja 71ee163664 MDL-49609 behat: Replace deprecated step 2016-09-29 07:06:26 +08:00
Eloy Lafuente (stronk7) b3823c4365 Merge branch 'MDL-56019-master' of git://github.com/dpalou/moodle 2016-09-28 20:08:31 +02:00
Eloy Lafuente (stronk7) 1138bbc69e Merge branch 'wip-mdl-55879' of https://github.com/rajeshtaneja/moodle 2016-09-28 20:05:08 +02:00
Eloy Lafuente (stronk7) 7bc32ebccd Merge branch 'MDL-55785-master' of git://github.com/jleyva/moodle 2016-09-28 19:59:20 +02:00
Serge Gauthier ceee6e9bd8 MDL-55964 report_competency: Missing blocks in Competency breakdown
Fix also the breadcrumb.
2016-09-28 13:16:45 -04:00
Dan Poltawski 2b53e97cd3 MDL-56167 setup: bail out on lower version requirements in all cases
It's quite possible to get incomrehensible errors otherwise
2016-09-28 15:35:34 +01:00
Frédéric Massart d1de864fab MDL-56166 theme_boost: Apply default dashboard styles to dashboard only 2016-09-28 15:31:58 +02:00
Dan Poltawski cf1d2cb073 Merge branch 'MDL-55420-master' of git://github.com/FMCorz/moodle 2016-09-28 14:03:52 +01:00
Frédéric Massart 89d9895b8c MDL-55420 theme_boost: Migrate CSS added since Boost development started 2016-09-28 14:51:29 +02:00
Frédéric Massart bf089a18f3 MDL-56003 theme_boost: Update Bootstrap to v4.0.0-alpha.4 2016-09-28 13:00:58 +02:00
Dan Poltawski 8793ebdd15 Merge branch 'MDL-55071-master-behat-fixes-is-back' of https://github.com/FMCorz/moodle 2016-09-28 12:00:17 +01:00
Dani Palou 43695b6a72 MDL-56160 ws: Return site course ID in get_site_info 2016-09-28 12:26:32 +02:00
Frédéric Massart 17a6f94749 MDL-55071 behat: Action menus can be opened without Javascript
Standard action menus expand automatically when Javascript is disabled
thus there is no need to open them. In Boost, they expand when they're
hovered or when the focus is set on their trigger.
2016-09-28 11:50:09 +02:00
Frédéric Massart a82c49473b MDL-55071 behat: Adapting form_row selector to reflect recent changes
Labels are no longer used for static elements. The form row selector
has been changed to include "labels" from static elements.
2016-09-28 11:13:53 +02:00
Frédéric Massart d8f90ec628 MDL-56042 output: Post process with tree structure always returns CSS
A certain combination of booleans could cause some of the processes
not to take effect as the tree was not converted back into a string.
2016-09-28 09:58:47 +01:00
Juan Leyva 74804b57a4 MDL-53870 mod_quiz: Return sequence and time information for questions 2016-09-28 09:25:19 +01:00
Juan Leyva 5635ead8e6 MDL-53870 mod_quiz: New access rule for allowing offline attempts 2016-09-28 09:25:18 +01:00
Juan Leyva 8a972ab377 MDL-53870 mod_quiz: New settings for quiz attempts in the mobile app 2016-09-28 09:25:18 +01:00
Dan Poltawski 14d6945e65 Merge branch 'MDL-56102-master' of https://github.com/xow/moodle 2016-09-28 08:16:28 +01:00
John Okely 8e55ffc6c3 MDL-56102 enrol_lti: Removed unused lines in unit test 2016-09-28 14:54:04 +08:00
David Mudrák 17f6270175 MDL-56143 theme_boost: Fix a typo in the readme string 2016-09-28 08:30:02 +02:00
David Monllao e1555a7b36 Merge branch 'MDL-56070-master' of git://github.com/jleyva/moodle 2016-09-28 11:20:00 +08:00
David Monllao 303d122ae5 Merge branch 'MDL-55963-master' of git://github.com/lazydaisy/moodle 2016-09-28 09:34:52 +08:00
David Monllao d830f1518a MDL-49609 mod_lti behat: Removing unexisting components 2016-09-28 09:03:09 +08:00
David Monllao f747e45411 Merge branch 'MDL-49609-master-5' of git://github.com/junpataleta/moodle 2016-09-28 08:59:22 +08:00
David Monllao bdab41d71b Merge branch 'MDL-56072-master' of git://github.com/cameron1729/moodle 2016-09-28 08:37:48 +08:00
Eloy Lafuente (stronk7) df4de02f17 Merge branch 'MDL-55866-master' of git://github.com/andrewnicols/moodle 2016-09-28 02:29:45 +02:00
Eloy Lafuente (stronk7) ccc777032d MDL-46946 user: Document user_not_fully_set_up() changes 2016-09-28 02:18:43 +02:00
Eloy Lafuente (stronk7) 4dbddd0874 Merge branch 'MDL-46946-master-reqcusfield' of git://github.com/mudrd8mz/moodle 2016-09-28 02:12:59 +02:00
Rajesh Taneja 2ee249ac90 MDL-55957 behat: Set some text before selecting in Atto 2016-09-28 07:35:26 +08:00
Eloy Lafuente (stronk7) b58bbbd4f1 Merge branch 'MDL-55951-master' of git://github.com/crazyserver/moodle 2016-09-27 23:59:21 +02:00
Tim Hunt 70e85280f4 MDL-56136 restore: better error handling copying file at start 2016-09-27 18:07:50 +01:00
Dan Poltawski 8a28a2a393 Merge branch 'MDL-56013-master' of git://github.com/lameze/moodle 2016-09-27 17:30:02 +01:00
AMOS bot 3388603eda Automatically generated installer lang files 2016-09-28 00:04:32 +08:00
Dan Poltawski f4760ed4bf Merge branch 'MDL-55071-master-behat-fixes' of https://github.com/FMCorz/moodle 2016-09-27 16:42:06 +01:00
Frédéric Massart ce1a09f124 MDL-55071 mod_quiz: Fix behat selector for question chooser
The chooser template now re-uses a core one which caused the
IDs of the fields to be changed. The behat tests have been changed
to target the new IDs. Note: using the label values did not work
because more than one matched due to loose checking.
2016-09-27 17:39:46 +02:00
Frédéric Massart b3d0a8b4a7 MDL-55071 behat: Normalise space on multi-field admin elements 2016-09-27 17:39:29 +02:00
Frédéric Massart adbe0fcb70 MDL-55071 mod_quiz: Action menu items were hidden
The CSS rule was too vague and cause the menu items to be
hidden rather than just the first item.
2016-09-27 17:39:12 +02:00
Dan Poltawski f6acae933c Merge branch 'MDL-56103-master' of git://github.com/dpalou/moodle 2016-09-27 16:17:57 +01:00
Dani Palou 7f98de7d9d MDL-56103 wiki: Return version in get_page_contents 2016-09-27 16:19:23 +02:00
Dan Poltawski ec91fe32c3 Merge branch 'MDL-56040-master' of https://github.com/StudiUM/moodle 2016-09-27 14:57:18 +01:00
Dan Poltawski 6036184fab Merge branch 'MDL-56045-master' of git://github.com/jleyva/moodle 2016-09-27 12:24:59 +01:00
Dan Poltawski 76ff730228 Merge branch 'MDL-55987-master-grademem' of git://github.com/mudrd8mz/moodle 2016-09-27 11:23:51 +01:00
Dan Poltawski 6027b0de05 Merge branch 'MDL-54793-master' of git://github.com/cameron1729/moodle 2016-09-27 11:13:35 +01:00
Dan Poltawski 03b2e3a04d Merge branch 'MDL-55957-master-workshopfiles' of git://github.com/mudrd8mz/moodle 2016-09-27 10:37:06 +01:00
David Monllao d656122f8a Merge branch 'MDL-37669-master' of git://github.com/andrewnicols/moodle 2016-09-27 17:34:24 +08:00
Dan Poltawski 13a18809e6 Merge branch 'MDL-55760-master' of https://github.com/StudiUM/moodle 2016-09-27 10:18:35 +01:00
David Monllao f258a958a4 MDL-55804 tool_uploadcourse: strftime only to user input
Default value already comes as a timestamp.
2016-09-27 08:11:56 +08:00
David Monllao 80180e0f92 MDL-55804 forms: Return exported data through _prepareValue 2016-09-27 08:11:56 +08:00
Dan Poltawski 6e181725ca Merge branch 'MDL-55472-assign-extend-ignored-validation' of https://github.com/ilya-catalyst/moodle 2016-09-26 15:31:30 +01:00
Dan Poltawski 62398cd807 Merge branch 'wip-MDL-55519-master' of git://github.com/abgreeve/moodle 2016-09-26 15:23:32 +01:00
Dan Poltawski c90ad348f1 MDL-55071 theme_boost: fix import-bootswatch.php phpdocs 2016-09-26 13:14:46 +01:00
Frédéric Massart afde59d26b MDL-55071 admin: Remove reference to former localisedtext class 2016-09-26 10:28:47 +01:00
Dan Poltawski dd460c22ed Merge branch 'MDL-55071-rebased' of git://github.com/danpoltawski/moodle 2016-09-26 10:28:12 +01:00
Stephen Bourget 02ce2e413c MDL-45890 Blog: add additional events 2016-09-25 15:06:54 -04:00
Ilya Tregubov ffcfffbe64 MDL-55472 assign: Show userlist on extension form error page 2016-09-25 11:29:43 +10:00
lazydaisy 3299dab377 MDL-55963 theme_bootstrapbase: Remove depreciated Legacy CSS in 3.2 2016-09-24 12:47:00 +01:00
AMOS bot 4f660cea7d Automatically generated installer lang files 2016-09-24 00:04:25 +08:00
Issam Taboubi 22690d6d71 MDL-55760 tool_lp: Wrong rating display when more than one scale set 2016-09-23 11:01:32 -04:00
Jean-Philippe Gaudreau 32a904e0a5 MDL-56040 behat: Fixing missing "|" in tables 2016-09-23 09:19:35 -04:00
Juan Leyva d44e2e42dc MDL-56070 user: New Web Service core_user_update_picture 2016-09-23 12:54:23 +01:00
Frédéric Massart 5142f56402 MDL-56063 theme_boost: Check and remove extraneous !important rules
Progress bar styling has been removed as they do not appear to
be used anywhere, though MDL-56095 has been created to style them
as (with or without the styles) they remain unstyled.

The file responsive.scss has been removed, it was not used.

Part of MDL-55071
2016-09-23 11:04:33 +01:00
Dan Poltawski 5cb8ca8610 MDL-55071 theme_boost: fixup bootswatch thirdpartylibs
Allow longhand colour codes for asthetics..
2016-09-23 10:57:54 +01:00
Dan Poltawski d5d0a8028d MDL-55071 theme_boost: prevent phpcs complaints
The commenting rule is a bit weird, but we can get round it easily.
2016-09-23 10:57:54 +01:00
Dan Poltawski dd9dd09587 MDL-55071 less: fix some lint issues we touched
(These will all be gone soon!)
2016-09-23 10:57:54 +01:00
Dan Poltawski 59652db27f MDL-55071 css: fix some lint issues 2016-09-23 10:57:53 +01:00
Dan Poltawski 0b2dc2751f MDL-55071 css: reformat some css files we touch with stylefmt 2016-09-23 10:57:36 +01:00
Dan Poltawski 46c1713c40 MDL-55071 theme_boost: fix stylelint detected issues in scss
Duplicate properties, star hacks
2016-09-23 10:57:36 +01:00
Frédéric Massart f8ac90a753 MDL-56061 core: Permit usage of REM in CSS
Part of MDL-55071
2016-09-23 10:57:36 +01:00
Damyon Wiese e584e6ae46 MDL-55071 theme/output: PHPCS fixes for new theme branch
Part of MDL-55071
2016-09-23 10:57:36 +01:00
Damyon Wiese e8272e748c MDL-55071 theme_boost: Fix relevant JS warnings
Part of MDL-55071
2016-09-23 10:57:36 +01:00
Dan Poltawski 841d25a984 MDL-55071 grunt: add stylelint:scss to default css task
Part of MDL-55071
2016-09-23 10:57:36 +01:00
Dan Poltawski c037f043ef MDL-55071 theme_boost: remove empty blocks in scss
Part of MDL-55071
2016-09-23 10:57:36 +01:00
Dan Poltawski fde35b8f0f MDL-55071 theme_boost: fix 0px and colour shorthand
Part of MDL-55071
2016-09-23 10:57:36 +01:00
Dan Poltawski f4143537a0 MDL-55071 theme_boost: Use stylefmt to fix css formating issues
Part of MDL-55071
2016-09-23 10:57:36 +01:00
Dan Poltawski 9cb41231fd MDL-55071 theme_boost: fix indentation in scss files
Part of MDL-55071
2016-09-23 10:57:36 +01:00
Dan Poltawski 773e68b0f8 MDL-55071 stylelint: Config & grunt task for scss
Part of MDL-55071
2016-09-23 10:57:36 +01:00
Frederic Massart 8a40bc36a6 MDL-51948 admin: Guess RTL compatibility of settings using PARAM_ types
Part of MDL-55071
2016-09-23 10:57:35 +01:00
Damyon Wiese 80db019249 MDL-55071 theme_boost: We don't need the generated css
Part of MDL-55071
2016-09-23 10:57:35 +01:00
Damyon Wiese 10617d6942 MDL-55071 templates: Add correct docs for new templates
These are just the admin settings templates.

Part of MDL-55071
2016-09-23 10:57:35 +01:00
Damyon Wiese 5d9f0bb3fe MDL-55071 psr4: Use psr4 classloader for scss, rtlcss and cssparser
Part of MDL-55071
2016-09-23 10:57:35 +01:00
Damyon Wiese ff392efc89 MDL-55071 forms: Add upgrade.txt note about submitlink
We are deprecating submitlink because it was added a long time ago
and never used in Moodle. We can't test it or maintain it.

Part of MDL-55071
2016-09-23 10:57:13 +01:00
Damyon Wiese 13075628ab MDL-55071 core_auth: Move new login renderable to core_auth
Part of MDL-55071
2016-09-23 10:57:13 +01:00
Damyon Wiese 256edb99de MDL-55071 theme_boost: Fix stylelint issues
Part of MDL-55071
2016-09-23 10:57:13 +01:00
Damyon Wiese 890c260307 MDL-55071 phpunit: Fix failing tests due to changes in default output
Part of MDL-55071
2016-09-23 10:57:13 +01:00
Damyon Wiese 2ede86d797 MDL-55996 theme_boost: Rename theme noname to theme boost
Part of MDL-55071
2016-09-23 10:57:13 +01:00
Frederic Massart 137c289a19 MDL-55593 theme_noname: Post-prod on preset default styling
Some styles were moved to be part of the core SCSS rules. Extra
variables were removed, and other styles where adapted.

Part of MDL-55071
2016-09-23 10:55:18 +01:00
Frederic Massart a13dd17cf6 MDL-55593 core: Drag & drop accessible menu uses aria attributes
Part of MDL-55071
2016-09-23 10:55:18 +01:00
Frederic Massart f572e724ad MDL-55593 theme_noname: Cancel button should be secondary
Part of MDL-55071
2016-09-23 10:55:18 +01:00
Frederic Massart 3264bf5b56 MDL-55593 form: Wrap skip validation variable in script tag
Part of MDL-55071
2016-09-23 10:55:18 +01:00
Barbara Ramiro 928177d139 MDL-55593 Theme: Style for the course page
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 77f5a9b01d MDL-55593 Theme: Style for the forums page
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 6e2aefd527 MDL-55593 Theme: Style for the edit settings page
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 8d923368a7 MDL-55593 Theme: Style for the frontpage
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 8e62956e10 MDL-55593 Theme: Style for the blocks heading
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro e1265d001d MDL-55593 Theme: Add top and bottom padding to region-main
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 771fe96b54 MDL-55593 Theme: Align page container and blocks with the top navbar
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 4553c8bdca MDL-55593 Theme: Style for the login page
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 7dbd1f954e MDL-55593 Theme: Remove rounded corners for the top navbar
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 463ae17699 MDL-55593 Theme: Centering navbar
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 4a59602a77 MDL-55593 Draft colour swatches and styles
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Barbara Ramiro 2876221386 MDL-55593 Theme: Copy of all variables from _variables.scss
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Frederic Massart 9189888989 MDL-55797 mod_quiz: Convert question chooser to template
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Frederic Massart 891750bcfa MDL-55797 core_question: Make static getter for chooser
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Frederic Massart 7f8b7b2bb3 MDL-55797 output: Support form method in chooser
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Frederic Massart 6f0993ccbc MDL-55797 core_question: Convert the chooser to template
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Frederic Massart 370e7637c6 MDL-55904 output: Deprecate action_menu::do_not_enhance()
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Damyon Wiese 63e4df60f6 MDL-55839 behat: Behat fixes for theme_noname
This is a squash of many small fixes.
The list of changes are:

Initial set of behat selectors overrides required for new theme.

set core behat selectors if not overridden by theme

Remove pause

Fix for checkboxes not saving properly

Custom override for click in the user menu

Fix for behat guessing the field type.

Behat fix for guessing the correct field type.

Fix for missing closeElementBefore mforms mess.

Fix for textareas not displaying their contents.

Fix availability form element

Fix action menu selectors for activities in a course page

Fix textareas not retaining their values

Fix selector for blocks

I had to change the single select template to use an input instead of a button because of a
behat bug we have not tracked down yet.

Fix for frozen attribute in form elements

Use input instead of button while behat is still broken

Fix for navigation selector override

Behat selector fixes and multi-select fixes for templated select

Fix for configure blocks selector + booleans for autocomplete

Fixes for course_summary behat tests

Allow optgroups in single_select

Behat fixes for block_navigation

Fixes for url form element and activity chooser selectors

blocks_social - fix specific selector for behat

Fix export_for_template for selectgroups element.

Dont set empty id on the form

Fix direct call to behat_navigation in backup context

Checkbox empty value fix

Fix for assign grading panel popouts

file picker overrides to find a file manager in the page

Fix chat tests to use element name

Make selectors in mod_data behat less specific

MDL-55839: recent activity behat test relies on time()

SQUASH Honour mform element "class" attribute on the container

SQUASH Fixes for behat in mod_forum

SQUASH search form template showing value as text next to the button

SQUASH undo double selectgroup fix

SQUASH - The slightly different structure to action menus breaks course drag and drop

SQUASH Wrap loading icon in a span so the selector still works.

SQUASH Fix fragile javascript in report_loglive

SQUASH Fix tabtree, and selectgroups for mod_feedback

Also - do-not enhance the action menu - we are dropping support for this.

SQUASH Fix filemanager selector and pix_icon template for mod_forum tests.

SQUASH Fixes to breadcrumb and add formid to single select (fixes mod_glossary tests)

SQUASH lesson behat fixes. 95% of lesson styles were rubbish so they were disgarded.

SQUASH Fix lti behat tests - they were cheating and using a context step from quiz

SQUASH Behat fixes for quiz with new theme

SQUASH behat fixes for mod_wiki

SQUASH Workshop behat fixes

SQUASH Frozen form elements cannot use a readonly form element because it screws with the form JS "disabledIf" stuff.

SQUASH Fixes for grades behat tests

SQUASH behat fixes for groups

SQUASH blacklist action menu tests

SQUASH Fix for tag form element missing "manage standard tags" link

SQUASH Incomplete fixes for course behat tests

SQUASH behat fixes for badges

SQUASH Tags fixes for behat

SQUASH filepicker fixes for behat

SQUASH Abort guessing field type when we hit 'html'

SQUASH Fix for admin/tool/behat tests

SQUASH fix for admin tool behat tests

SQUASH fix for availabilty conditions hiding "aria-hidden" elements

SQUASH give the blocks more room. We get behat files because nav tree nodes are not in view

SQUASH Blocks fixed

Fix behaviour of unchecked checkboxes

SQUASH Remove incorrect step in user test

SQUASH behat fixes for course tests

Part of MDL-55071
2016-09-23 10:55:16 +01:00
Damyon Wiese 428de3dcc3 MDL-55793 theme_noname: Use fixed width container
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart d6a5c5601b MDL-55793 theme_noname: Drop columns3 layout
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Damyon Wiese 60d17ecdfc MDL-55831 blocks: Fix block headings with action menu changes
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart 3fd04d5242 MDL-55831 mod_quiz: Contain input fields within dialogues
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart c2f12b0d16 MDL-55831 mod_quiz: Fix selectors to handle renderer overrides
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart 132093f05c MDL-55831 theme_noname: Adapt action menu templates
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart f15024c18e MDL-55831 output: Convert action menu to templates
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart 45fe470eec MDL-55831 theme_noname: Single button uses new actions partial
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart 11ba3fd4c1 MDL-55831 output: Convert action_link to template
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart 0f24d9cb25 MDL-55830 form: Selectgroups option values where not passed to template
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Barbara Ramiro 4c9a20e84c MDL-55855 Theme: Centering navbar
Conflicts:
	theme/noname/templates/columns1.mustache
	theme/noname/templates/columns2.mustache
	theme/noname/templates/columns3.mustache
	theme/noname/templates/secure.mustache

Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart df07fead55 MDL-55829 form: Define 'skipClientValidation' as a global JS var
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Damyon Wiese ede7f999e8 MDL-55598 filemanager: Fix RTL icon positions in noname
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart b843914d60 MDL-55598 theme: RTL styles for file picker/manager and tree view
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Damyon Wiese 3313fdd690 MDL-55802 output: Hide site name and user name on xs screens
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart 5f18da120e MDL-55802 theme_noname: Navbar is responsive and better styled
Still not perfect, but better...

Conflicts:
	theme/noname/templates/columns1.mustache
	theme/noname/templates/columns2.mustache
	theme/noname/templates/columns3.mustache

Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart ba252fca41 MDL-55798 theme_noname: Choosers adapt to xs screen sizes
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Damyon Wiese 7d547564a8 MDL-55796 output: Add missing include to new chooser renderable
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart 9af62dfc6f MDL-55796 theme_noname: Override default chooser template
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart 9f76a701bf MDL-55796 theme_noname: Keep modchooser items after icon
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart 4f2378d929 MDL-55796 core_course: Convert course modchooser to templates
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart ee9dd6a278 MDL-55796 core: Do not escape pix_icon URLs
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart e119bf6f2b MDL-55805 theme_noname: Arrangments for the choosers
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart 1149c23596 MDL-55805 theme_noname: Adjustments made to block controls
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart 2668487eb3 MDL-55805 theme_noname: Footer adjusments and made sticky
Conflicts:
	theme/noname/templates/columns1.mustache
	theme/noname/templates/columns2.mustache
	theme/noname/templates/columns3.mustache

Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart bc8594bd03 MDL-55805 theme_noname: File manager/picker layout adjustments
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart 4121391d34 MDL-55805 admin: Convert admin search results to use a template
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart d5732f7f40 MDL-55805 admin: Notices displayed on validation errors
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart 32e3a8dd8c MDL-55805 theme_noname: Prevent singleselect from expanding beyond edges
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart e72cb21d44 MDL-55805 theme_nonane: Use darker colour for backdrop
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart b6bd02e7df MDL-55805 block_activity_results: Kill default centering
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart 7a2999e9fe MDL-55805 block_navigation: Tree items should not expand beyond edges
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart e919c48852 MDL-55805 theme_noname: Adjust form fieldsets spacing
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart 1ecc3daf09 MDL-55805 theme_noname: Adjust margins, paddings and grid
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart 7fcfc07344 MDL-55805 theme_noname: Adding padding to all boxes
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart f4c1c30db5 MDL-55805 theme_noname: Padding and selectors for the login page
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart 326a8e0c99 MDL-55805 mod_forum: Convert 'Add a new topic' to true single_button
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart feb1e8d1c3 MDL-55805 course: Convert the course search form to a template
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart b71c82adb8 MDL-55747 theme_noname: Display logos in the different pages
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Damyon Wiese fa02f6e6bf MDL-55657 theme_noname: Re-use the password template.
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Andrew Nicols 2c3a6e2479 MDL-55657 theme_noname: Use a separate template for passwordunmask
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Damyon Wiese 31d288cfa5 MDL-51948 admin: Clarify the upgrade.txt message
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart 525ef9c8b4 MDL-51948 core: Patch core areas for LTR forms
Part of MDL-55071
2016-09-23 10:55:14 +01:00
Frederic Massart fc7f69e7e8 MDL-51948 formslib: Support forcing LTR on form elements
Part of MDL-55071
2016-09-23 10:54:49 +01:00
Frederic Massart 113efed5b0 MDL-51948 admin: Make admin settings RTL friendly
Part of MDL-55071
2016-09-23 10:54:22 +01:00
Frederic Massart a47e73ff7c MDL-55594 output: Adding template name to filenotfound exception
Part of MDL-55071
2016-09-23 10:53:57 +01:00
Frederic Massart 10deddd34e MDL-55594 mod_forum: Convert 'big' search form to templates
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart 14395f9789 MDL-55594 output: Adding template for html_writer::select_time
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Damyon Wiese d893a4111e MDL-55700 theme_noname: Allow text nodes in breadcrumb
The new theme was showing all nodes in the breadcrumb as links even when there is no
valid link.

Part of MDL-55071
2016-09-23 10:53:56 +01:00
Damyon Wiese b4e5fcf5e2 MDL-55711 theme_noname: CSS fix for settings block
Make the branches and leaves line up.

Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart a84eadb88e MDL-55701 output: Adding core template for help_icon
We didn't intend to do this, but as I made the mistake of extending
core/help_icon in a core template without realising that it
works solely because I had that template in the new theme, I
decided to add this template to core too.

Part of MDL-55071
2016-09-23 10:53:56 +01:00
Andrew Nicols ecfad63d28 MDL-55696 output: Correct handling of url_select nothingvalue
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Damyon Wiese 126e1b2436 MDL-55658 theme_noname: Move the footer out of the content region
So it can be 100% wide.

Part of MDL-55071
2016-09-23 10:53:56 +01:00
Damyon Wiese d6f2ce1486 MDL-55656 theme_noname: Include advanced and required field markup
The new form elements were not including the markup for advanced
and required fields. I used an <abbr> tag in the label to give
and accessible indication of the advanced and required fields.

Part of MDL-55071
2016-09-23 10:53:56 +01:00
Damyon Wiese 072364df0f MDL-55607 theme_noname: Remove icon styles - We only need .icon everywhere.
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart c1d6e95b52 MDL-55584 theme_noname: Patching for better feel in grades
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart d68a9ece86 MDL-55584 core_grades: Convert part of set-up screen to template
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart ec3857fee2 MDL-55584 gradereport_singleview: Convert some elements to template
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart 376e14fa34 MDL-55564 theme_noname: Use alert-danger rather than alert-error
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart 2c773bb359 MDL-55564 theme_noname: Override admin setting templates
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart df7602298a MDL-55564 core_admin: Convert admin settings to use templates
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart 58357d41af MDL-55564 output: Single select label wasn't translated
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart cd7a164bdf MDL-55564 output: Use template for password autofill hack
Part of MDL-55071
2016-09-23 10:53:55 +01:00
Frederic Massart d3c35f934a MDL-55399 theme: Update upgrade.txt to reflect API changes
Part of MDL-55071
2016-09-23 10:53:55 +01:00
Frederic Massart bffc0ef1f9 MDL-55508 theme_noname: Fix styling of the assignment grading interface
Part of MDL-55071
2016-09-23 10:53:31 +01:00
Damyon Wiese ce18fb1e86 MDL-55417 forms: Change iscancel property to issecondary for submit buttons
This is more future proof for the template.

Part of MDL-55071
2016-09-23 10:53:31 +01:00
Damyon Wiese 7e2cd5b84e MDL-55417 forms: Improve some of the new templates for form elements
Also - un-deprecate selectwithlink (Fred convinced me).

Part of MDL-55071
2016-09-23 10:53:30 +01:00
Damyon Wiese 97a00c9b8e MDL-55417 forms: Keep the JS for autocomplete in the template
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Damyon Wiese 4691b2d08e MDL-55417 theme_noname: Update mform templates to re-use javascript
Use an amd module instead of repeating JS in the templates.

Part of MDL-55071
2016-09-23 10:53:30 +01:00
Damyon Wiese 344321e1ef MDL-55417 forms: Clean up form element template patch
Use a trait and a base mustache template for all form elements to reduce code
duplication and increase standardisation.

Part of MDL-55071
2016-09-23 10:53:30 +01:00
Damyon Wiese 91bda4cd45 MDL-55417 forms: Render form elements with a template
This change allows form elements to be overridden with a mustache template.
The template can even listen for form validation errors and supply the JS to
change the look of the form element when there is/isn't a validation error.

Initial support is for all core form elements including:

text, select, selectyesno and checkboxes, groups, dateselector, datetimeselector,
autocomplete, modvisible, advcheckbox, button, duration, filemanager, filepicker, editor, static, grading,
warning, textarea, password, url, submit, questioncategory, recaptcha.

Part of MDL-55071
2016-09-23 10:53:30 +01:00
Damyon Wiese ef18a21f93 MDL-55563 theme_noname: Added a bootswatch importer and 3 default bootswatches
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Damyon Wiese 75d6a7d318 MDL-55517 theme_noname: Tweak the size of the username/passwords
They looked a bit to large on smaller screen sizes.

Also removed trailing whitespace from the template.

Part of MDL-55071
2016-09-23 10:53:30 +01:00
Frederic Massart 386f269fae MDL-55517 theme_noname: Style the login page
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Frederic Massart 1fe8e35f54 MDL-55517 login: Converting login page to use renderer/renderable
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Didier 'OdyX' Raboud 23ef5a971c MDL-55517 login: Rework the login/index.php through a mustache template
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Damyon Wiese 400274bc61 MDL-55561 theme_noname: Fix bad padding in settings and nav block
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Frederic Massart d48dbde977 MDL-55384 theme_noname: Admin settings to customise the theme
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Ryan Wyllie 6bde9450b8 MDL-55384 theme_noname: Support tabs in theme settings
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Frederic Massart d6d695b809 MDL-55381 theme_noname: Auto prefix CSS
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Frederic Massart 99a6118f28 MDL-55381 output: Themes can post process CSS using a CSS tree object
Part of MDL-55071
2016-09-23 10:53:30 +01:00
Frederic Massart 515ceadddd MDL-55381 php-css-parser: Patch for Sabberworm/PHP-CSS-Parser#115
REMOVE ME ONCE Sabberworm/PHP-CSS-Parser#115 is merged

Part of MDL-55071
2016-09-23 10:53:30 +01:00
Frederic Massart 66bb9eadfe MDL-55497 mod_forum: Converted quick forum search to a renderable
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart d7c657528a MDL-55479 output: Single button uses templates
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart f1b34660ed MDL-55495 output: Make url_select a templatable
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Damyon Wiese 8a47abcd8a MDL-55496 theme_noname: Limit the number of pagination pages
The pagination bar is not usable showing > 10 links forwards and backwards.

Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart b0da86e03b MDL-55496 output: Make paging_bar a templatable
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart 270dd87113 MDL-55474 block_search_forums: Convert search form to templates
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Damyon Wiese 9727e142b6 MDL-55388 theme_noname: Define the purpose of bootstrap-rtl.scss
Add a comment explaining what the bootstrap-rtl.scss file is for (and what it is not for).

Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart 92e32fc45c MDL-55388 theme_noname: Adjustments for RTL
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart 11efad5ccc MDL-55473 theme_noname: Use template for admin search form
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart bf7f35e945 MDL-55463 output: Make single select a templatable
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart b42cf867d6 MDL-55377 output: Minor fixes for RTL installation
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart 69b06947d6 MDL-55377 output: Minor adjustments for automatic RTL support
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart d99949ab66 MDL-55377 theme_bootstrapbase: Adapt for RTL auto flipping
Part of MDL-55071
2016-09-23 10:53:08 +01:00
Damyon Wiese b7e95263fd MDL-55462 output: Make help_icon templatable
Render it with a template in the new theme.

Part of MDL-55071
2016-09-23 10:49:50 +01:00
Damyon Wiese a26d57e414 MDL-55471 javascript: Fix conflict between bootstrapbase and bootstrap4
Part of MDL-55071
2016-09-23 10:49:50 +01:00
Damyon Wiese 13d07a01b0 MDL-55416 theme_noname: Bootstrap alpha3 support
Part of MDL-55071
2016-09-23 10:49:50 +01:00
Frederic Massart da92b73840 MDL-55416 theme_noname: Fixes for Bootstrap 4 alpha 3
Part of MDL-55071
2016-09-23 10:49:50 +01:00
Frederic Massart ed7844b5f4 MDL-55224 theme_noname: RTL adjustments for auto-flipping era
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart 1d987cae5f MDL-55224 output: Support automatic flipping to RTL styles
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart fbe18cc022 MDL-55224 core: Import PHP-CSS-Parser into core
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart e86eb6b80d MDL-55224 core: Import RTLCSS-PHP into core
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese ac4a389eb8 MDL-55414 theme_noname: Update preferences page to template
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese 3f0544b839 MDL-55413 theme_noname: action-menu conversion
Convert action-menus to templates using bootstrap4 markup.
Includes changes to iconsmall/smallicon.

Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart da4d9eb7be MDL-55412 theme_noname: Render tabs using bootstrap classes
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart 11268ae1c4 MDL-55412 output: Make tabtree and tabobject templatables
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart 65b8336ed3 MDL-55286 theme: Support compiling SCSS on-demand from a theme
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart 321c986c86 MDL-55285 core: Include library scssphp in core
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese 88af020839 MDL-55411 theme_noname: Style the filepicker for bootstrap 4
Uses templates.

Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese f130c411d9 MDL-55410 theme_noname: Convert custom menu renderer to render bootstrap4 menus.
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese bbe79e0e37 MDL-55409 theme_noname: Add better default button styles
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese 25f908968c MDL-55408 theme_noname: Add more styles for bootstrap modals
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese d7fbf722c7 MDL-55407 theme_noname: Remove styling and JS from blocks
Also:
Remove styles for the dock.
Remove drag and drop for blocks.
Blocks spacing improvements
After looking for a while - the blocks need some separation, so using .card now.
Adjusted the block column sizes as well.

Part of MDL-55071
2016-09-23 10:49:48 +01:00
Damyon Wiese d2645a6a64 MDL-55403 theme_noname: Add bootstrap4 js to moodle
Part of MDL-55071
2016-09-23 10:49:48 +01:00
Damyon Wiese 536f046033 MDL-55402 theme_noname: Convert bootstrapbase to bs4
All moodle less files are converted to sass with layouts etc
written as mustache templates.

Bootstrap 4 sass files are imported to scss/bootstrap.

Part of MDL-55071
2016-09-23 10:49:48 +01:00
Frederic Massart 3ba0023871 MDL-55401 theme_noname: Scaffolding
Part of MDL-55071
2016-09-23 10:49:48 +01:00
Jun Pataleta 1e7490ad9a MDL-49609 mod_lti: Content-Item message type-related unit tests 2016-09-23 16:29:27 +08:00
Jun Pataleta 6696cdab8f MDL-49609 mod_lti: Content-Item message type-related Behat tests 2016-09-23 16:29:27 +08:00
Jun Pataleta c1fae2b928 MDL-49609 mod_lti: Refactor content-item and make it work using JS
* Rebase and resolve conflicts from initial patch.
* Reorganise contentitem and contentitem_return pages.
* Add capability checks for contentitem and contentitem_return pages.
* Move the building of Content-Item selection request to a local
  lib function.
* Move contentitem_return processing logic to a local lib function.
* Fix type settings update. Content-item checkbox does not get
  checked/unchecked on load.
* Fix  tool settings update. Disabled content-item checkbox gets unchecked when
  tool settings form is submitted.
* Add "Select content" button on load which launches the content item
  selection dialogue.
* Move hardcoded HTML and JS to mustache templates and AMD modules.
* Use standard YUI dialog for displaying the Content-Item selection page.
* Added processing for the following Content-Item properties:
  - text
  - icon
* On ContentItem selection, fill out form with the configuration data retrieved,
  instead of automatically saving the tool and redirecting to the course page.
* Removed section- and sectionreturn-related code since we're not automatically
  adding the tool on ContentItem selection.
* On mod_lti_mod_form, enable configuration fields if they support ContentItem
  selection.
* New form-field module for setting fields using JS
* Change types_config table's 'value' column from char(255) to text
2016-09-23 16:29:19 +08:00
Eloy Lafuente (stronk7) 26162efe4a weekly release 3.2dev 2016-09-23 10:01:31 +02:00
Eloy Lafuente (stronk7) 54caa85cba Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-09-23 10:01:26 +02:00
Cameron Ball 676e5dcdcc MDL-56072 filelib: Add new groups and extensions.
This patch adds the following groups:

* html_audio: For source files of <audio> tags
* html_video: For source files of <video> tags
* html_track: For source files of <track> tags

It also adds the .vtt extension for track sources, and the flac
extension.
2016-09-23 14:13:48 +08:00
Andrew Nicols 352e65861d Merge branch 'MDL-55327' of https://github.com/stronk7/moodle 2016-09-23 10:00:20 +08:00
Eloy Lafuente (stronk7) 0fba5b440d MDL-55327 mod_lesson: better convert back to plain response_editor 2016-09-22 19:17:47 +02:00
AMOS bot 14145ad5ae Automatically generated installer lang files 2016-09-23 00:04:32 +08:00
Andrew Nicols dd193ba2ea Merge branch 'wip-MDL-55327-master-fix' of git://github.com/abgreeve/moodle 2016-09-22 15:51:04 +08:00
Andrew Nicols be16d66087 MDL-55379 phpunit: Coding style fix 2016-09-22 15:11:16 +08:00
Andrew Nicols a2b48e4127 Merge branch 'wip-mdl-55379-fix2' of https://github.com/rajeshtaneja/moodle 2016-09-22 15:09:43 +08:00
Rajesh Taneja 095883d1ea MDL-55379 phpunit: Remove directory seperator if present 2016-09-22 12:56:48 +08:00
Damyon Wiese ecdccb918d MDL-55837 themes: Remove re-setting of user/site/course theme
These themes cannot be chosen, so this part of the upgrade step is not necessary.
2016-09-22 12:34:38 +08:00
David Monllao 791844d25a Merge branch 'wip-mdl-55379-fix' of https://github.com/rajeshtaneja/moodle 2016-09-22 10:59:48 +08:00
Rajesh Taneja 544de35bc3 MDL-55379 phpunit: Preserve config option if passed 2016-09-22 10:45:47 +08:00
Russell Smith 58665ecd62 MDL-39117 cachestore_apcu: Update to APCu
We now use APCu as it's support by PHP7 and provides the
functionality we need.
2016-09-22 11:58:27 +10:00
Simey Lameze 981356b23d MDL-54802 mod_quiz: Add validation to require passing grade greater than 0
This commit adds a form validation to prevent the creation of quizzes
using zero or null grade to pass when using require passing grade.
2016-09-22 08:48:11 +08:00
Andrew Nicols 41ff0ee58b MDL-55982 mod_forum: Allow discussion view in locked blog 2016-09-22 08:22:13 +08:00
Eloy Lafuente (stronk7) 64573a35e9 Merge branch 'MDL-55124' of https://github.com/mr-russ/moodle 2016-09-22 00:52:30 +02:00
Russell Smith d59f1d3150 MDL-55124 database: Mode connection test to after connection.
To verify the client encoding and other data is correct then
the connection must have been made first.
2016-09-22 08:40:03 +10:00
David Mudrák 8df850ad6f MDL-46946 user: Make missing required custom fields trigger profile edit
If there is a required custom field that the user can fill by editing
their profile, and that field is missing, the user should be considered
as not fully set up. Instead, we want to redirect them to edit their
profile first.

There are some exceptions when we want to fall back to the previous
behaviour and check just the name and email fields. These exceptional
cases include checking remote user data in incoming MNet request (no
user id, no custom fields supported) and calls to require_login() with
redirecting disabled (typically ajax filepicker requests on profile
editing page itself).

Additional plugins that call the function user_not_fully_set_up()
themselves, should perform the strict check in most/typical cases. So
the strict mode is enabled by default even if it changes the behaviour
slightly. In improbable case of additional plugins relying on the
previous behaviour of the function, they can use the $strict parameter
and keep performing the lax check. However, I am sure the correct fix in
that case will likely be to stop abusing this function.

Note that custom fields are not currently transferred during the MNet
roaming. So having custom fields configured as required on MNet service
provider site (where users can't edit their profiles) is expected to
display an error (as the site is considered as misconfigured).
2016-09-21 17:46:30 +02:00
Adrian Greeve f4eef5fb25 MDL-55327 mod_lesson: Fix for copying essay and match.
Matching and essay questions would display errors when
being duplicated.
2016-09-21 18:04:08 +08:00
Juan Leyva 65e961e4f2 MDL-56045 message_airnotifier: New WS message_airnotifier_enable_device 2016-09-21 10:45:13 +01:00
Juan Leyva 95f53a652a MDL-56045 message_airnotifier: Move enable device code to manager class 2016-09-21 10:44:56 +01:00
Juan Leyva 618cba3494 MDL-56044 message_airnotifier: New WS message_airnotifier_get_user_devices 2016-09-21 09:47:26 +01:00
Dan Poltawski 948e6e3fca MDL-48766 lib: fix another stupid case sensitivity issue 2016-09-21 09:31:54 +01:00
Damyon Wiese a8225336d9 MDL-56052 block_settings: race condition
YUI events module must be loaded before global events can be used.
2016-09-21 12:21:39 +08:00
Eloy Lafuente (stronk7) 6cc077e90f Merge branch 'MDL-55982-master' of git://github.com/andrewnicols/moodle 2016-09-21 03:04:36 +02:00
Andrew Nicols 0f3bbfd4f8 MDL-55982 mod_forum: Add time-based discussion locking
This patch adds support for time-based locking of discussions.
Discussions are automatically locked after a user-definable period of
inactivity. After this time, only those with the the relevant capability
are able to add replies.

This has been designed to add support for other types of discussion locking
at a later date with relative ease.
2016-09-21 09:03:42 +08:00
Simey Lameze f096f1bdd3 MDL-56013 lib: Create a page to test Chart.js 2016-09-21 08:25:13 +08:00
Simey Lameze e38239b487 MDL-56013 lib: Upgrade Chart.js to version 2.2.2 2016-09-21 08:25:13 +08:00
Eloy Lafuente (stronk7) 349a6430e6 Merge branch 'MDL-45752_m32v3' of https://github.com/sbourget/moodle 2016-09-20 17:36:51 +02:00
Eloy Lafuente (stronk7) 73b2a94c7f MDL-55405 enrol_paypal: Fix set_context() call
Note that setting the page context more than once is not ideal
but as far as system->course switches are allowed, this should
not hurt, while providing more accurate messages than keeping
system context.
2016-09-20 12:27:35 +02:00
Eloy Lafuente (stronk7) 43f53ded83 Merge branch 'MDL-55405-master' of git://github.com/cameron1729/moodle 2016-09-20 12:21:37 +02:00
Eloy Lafuente (stronk7) ce7863ba36 Merge branch 'MDL-55124' of https://github.com/mr-russ/moodle 2016-09-20 12:13:10 +02:00
Russell Smith f834a8f5eb MDL-55124 database: Allow option to not send options.
pgbouncer doesn't accept the PostgreSQL options command as it can't
process it.  If you are using pgBouncer you need to make sure your
database is configured to set client encoding and standard_conforming_strings
correctly on each connection.  pgBouncer can do this, as can ALTER
commands.

Also using sockets without a filename did not allow different ports to work.
This is because you either specify a filename which includes a port or
you just specify a port and libpq works out the correct socket location.
2016-09-20 19:53:01 +10:00
Juan Leyva fad980b26f MDL-55785 mod_glossary: Check user can create new entries 2016-09-20 10:52:53 +01:00
Juan Leyva f0e1808fc4 MDL-55785 mod_glossary: New Web Service mod_glossary_add_entry 2016-09-20 10:52:53 +01:00
Juan Leyva e6de11d7b7 MDL-55785 mod_glossary: Move edit.php code to new lib function
Most of the code that was in mod/glossary/edit.php has been moved to
mod/glossary/lib.php:glossary_edit_entry
2016-09-20 10:48:41 +01:00
Juan Leyva 114eaf519d MDL-55740 assign: Add assignment WS to the mobile service
* mod_assign_submit_grading_form
* mod_assign_get_participant to the mobile service
2016-09-20 10:31:50 +01:00
Sam Hemelryk cb3e2e144a MDL-39117 cachestore_apc: imported into core 2016-09-20 18:52:03 +10:00
Dan Poltawski 89ae98f134 Merge branch 'MDL-55916-maintmode-503-moodle' of https://github.com/brendanheywood/moodle 2016-09-20 09:31:41 +01:00
Cameron Ball 4abbb4180b MDL-55405 enrol_paypal: Create utility class
Some helper functions were in the IPN file. They really should be
in their own utility class to facilitate better testing.
2016-09-20 12:38:31 +08:00
Andrew Nicols 2fc56dd571 MDL-51361 backup: Documentation phpcs fix 2016-09-20 12:21:41 +08:00
Andrew Nicols 91d52985c5 Merge branch 'MDL-51361' of https://github.com/bostelm/moodle 2016-09-20 11:58:24 +08:00
Andrew Nicols 674de8e51e Merge branch 'MDL-55191_master' of git://github.com/dmonllao/moodle 2016-09-20 11:41:03 +08:00
Andrew Nicols 5a766a9e21 MDL-55327 mod_lesson: Whitespace fix 2016-09-20 11:19:28 +08:00
Andrew Nicols 25804281f1 Merge branch 'wip-MDL-55327-master' of git://github.com/abgreeve/moodle 2016-09-20 11:15:54 +08:00
Adrian Greeve 329b68c9ca MDL-55327 mod_lesson: Behat test for page duplication. 2016-09-20 10:36:13 +08:00
Adrian Greeve f847669e33 MDL-55327 mod_lesson: Unit tests for the new function 2016-09-20 10:36:13 +08:00
Adrian Greeve 9f937c3bb3 MDL-55327 mod_lesson: Added the ability to duplicate pages. 2016-09-20 10:36:13 +08:00
Brendan Heywood f1c6d647bc MDL-55916 setup: Maintenance mode serves HTTP 503 2016-09-20 11:59:39 +10:00
Marina Glancy 2b1c3e4d68 MDL-55990 tags: remove unnecessary index creation 2016-09-20 09:30:40 +08:00
Andrew Nicols 77391e9f09 Merge branch 'MDL-55876-master' of git://github.com/lameze/moodle 2016-09-20 09:10:43 +08:00
Adrian Greeve 6965ffe041 MDL-55519 activities: mform element shows correct maxgrade.
In certain circumstances the max grade value would revert
back to the default max grade value.
2016-09-20 08:56:24 +08:00
Andrew Nicols 13c8792606 Merge branch 'MDL-55586-master' of https://github.com/StudiUM/moodle 2016-09-20 08:17:37 +08:00
Eloy Lafuente (stronk7) 0f4b338fbb Merge branch 'wip-mdl-55379' of https://github.com/rajeshtaneja/moodle 2016-09-20 02:06:32 +02:00
Eloy Lafuente (stronk7) 8dcc999d96 Merge branch 'wip-MDL-55827-master' of git://github.com/marinaglancy/moodle 2016-09-20 01:02:06 +02:00
Eloy Lafuente (stronk7) 55a1e66cfc Merge branch 'MDL-55856-master' of git://github.com/danpoltawski/moodle 2016-09-20 00:51:36 +02:00
Ruslan Kabalin 8292fa8184 MDL-55776 enrol: Optimise enrolled users listing.
Here we optimise SQL queries for enrolled users list. Expensive subquery is
replaced with faster LEFT JOIN and the whole groups filtering component is
aded on demand.
2016-09-19 23:46:28 +02:00
Ruslan Kabalin d76749b42c MDL-55776 enrol: Add unit tests for enrolment manager. 2016-09-19 23:46:20 +02:00
AMOS bot dbe75154b6 Automatically generated installer lang files 2016-09-20 00:04:28 +08:00
Issam Taboubi 0d12feb6c8 MDL-55586 report_competency: Translation strings in competencies 2016-09-19 12:02:54 -04:00
Issam Taboubi c2cd126033 MDL-55586 blocks_lp: Translation strings in competencies 2016-09-19 12:01:19 -04:00
Dan Poltawski 771a8d3394 Merge branch 'wip-mdl-55117' of https://github.com/rajeshtaneja/moodle 2016-09-19 11:39:41 +01:00
Dan Poltawski a2184f971f Merge branch 'master_MDL-55820' of git://github.com/danmarsden/moodle 2016-09-19 11:32:19 +01:00
Dan Poltawski daa571af9f Merge branch 'MDL-55944' of https://github.com/mr-russ/moodle 2016-09-19 11:25:12 +01:00
Eloy Lafuente (stronk7) cecba1d92e Merge branch 'wip-MDL-29332-master-3' of git://github.com/marinaglancy/moodle 2016-09-19 11:51:08 +02:00
Dani Palou d33c67bc47 MDL-56019 ws: Use itemid null when getting modules intro 2016-09-19 11:33:55 +02:00
Dan Poltawski a878a09bce MDL-48766 thirdpartylibs: fix incorrect casing on path 2016-09-19 10:30:34 +01:00
David Monllao 9b0cc781c5 Merge branch 'MDL-48766-master' of git://github.com/danpoltawski/moodle 2016-09-19 16:38:17 +08:00
Dan Poltawski c307689792 MDL-48766 tests: move from Liberec to Cambridge
(liberec ip seemed to have been identified as a new location nearby now,
hoping cambridge will be stable)
2016-09-19 08:59:39 +01:00
Dan Poltawski 0ddc7e5582 MDL-48766 lib: remove unused pear::Net::GeoIP
This was used for the previous geoip database.
2016-09-19 08:59:39 +01:00
Dan Poltawski 3fad0f1a24 MDL-48766 iplookup: Update to geoip2 db to support ipv6
The previous maxmind geoip database is now legacy and the GeoIP2
version supports ipv6.
2016-09-19 08:59:39 +01:00
Dan Poltawski eacc36a26b MDL-48766 lib: Import MaxMind GeoIP2 PHP API
No changes from the upstream version have been made, it is recommended by
upstream to install these depdencies via composer - but the composer
installation is bundled with a load of test files, shell scripts etc (and
we don't use composer to manage 'production dependencies') so we have to
do it manually.
2016-09-19 08:59:38 +01:00
Simey Lameze 12b9401602 MDL-55876 core_course: prevent changes on front page course 2016-09-19 15:45:43 +08:00
David Monllao 9df9382e4d Merge branch 'MDL-42041-master' of git://github.com/andrewnicols/moodle 2016-09-19 15:08:56 +08:00
David Monllao 564cabb97a MDL-55837 theme_base: Remove missing file
Probably missed during rebase.
2016-09-19 14:59:56 +08:00
David Monllao 073163ffc3 Merge branch 'MDL-55837-master' of git://github.com/damyon/moodle 2016-09-19 14:15:59 +08:00
Damyon Wiese 644fcbb629 MDL-55837 themes: base and canvas themes removed
Look for them in the plugins DB if you still need them.
2016-09-19 13:35:13 +08:00
Marina Glancy e7ba25f1b1 MDL-29332 question: calculated variables may differ in case only 2016-09-19 10:37:43 +08:00
Andrew Nicols 96872ab271 Merge branch 'MDL-55932-master' of https://github.com/eberhardt/moodle 2016-09-19 08:32:54 +08:00
Henning Bostelmann 4151ed984a MDL-51361 backup: Adding default settings for course import
Also adding "calendar events" and "competencies" default setting for other backup modes.
2016-09-18 23:39:57 +01:00
spvickers d8f9109a12 MDL-49609 mod_lti: Add Content-Item message
Added option for tools to support Content-Item message and redirect
to/from tool provider when creating an instance.
2016-09-18 22:16:10 +08:00
AMOS bot e2625817a1 Automatically generated installer lang files 2016-09-17 00:04:27 +08:00
David Mudrák d676f6bd19 MDL-55987 gradebook: Claim extra memory when updating final grades
As we experienced in a bigger moodle.org course (7500 users, 70 grade
items), the standard memory limit 256M may not be enough here. We were
not able to find any obvious memory leak in the processing. Requiring
extra memory helped in this particular case and it seems reasonable to
have it in the core.
2016-09-16 12:39:47 +02:00
Juan Leyva 08d7965e63 MDL-55928 gradereport_user: New WS for retrieve grade items
It includes a refactor of the complete externallib.
Previously it was not possible to filter the report by groups.
2016-09-16 09:55:14 +01:00
Juan Leyva 345330d172 MDL-55928 gradereport_user: Return grade items data among the table data 2016-09-16 09:55:13 +01:00
AMOS bot fdf5335d70 Automatically generated installer lang files 2016-09-16 00:04:42 +08:00
Eloy Lafuente (stronk7) 03d27c303d MDL-29332 tests: Cover the new sql_equal() function
- For CS, CI and AS
- Not for AI (it's not cross-db)
- equal (=) and not equal (<>)
- delete old test_sql_binary_equal() now with cross-db solution.
2016-09-15 16:33:08 +02:00
Eloy Lafuente (stronk7) 9d5c12bee4 MDL-29332 dml: new sql_equal() to force cs/ci behavior on varchar matching 2016-09-15 16:33:00 +02:00
Dan Poltawski d2c7175a34 MDL-55856 grunt: fail gracefully when node version too old
Unfortunately the engine requirement in packages.json is not a fatal
error, so you can get unhelpful errors with grunt if using an
unsupported version.
2016-09-15 15:32:32 +01:00
Dan Poltawski 054da30ba9 MDL-48766 moodlelib: introduce ip_is_public()
For determining if an IP is publicly addressable
2016-09-15 14:53:14 +01:00
Jan Eberhardt 2c99429375 MDL-55932 block_rss_client: Namespace fixes 2016-09-15 13:24:36 +00:00
Dan Poltawski 1f2744851f weekly release 3.2dev 2016-09-15 11:14:54 +01:00
Dan Poltawski a8cf3454ce Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-09-15 11:14:52 +01:00
David Monllao 37a8e5223d Merge branch 'MDL-55945-master' of https://github.com/snake/moodle 2016-09-15 12:38:43 +08:00
David Monllao e71061a22b MDL-55191 search: Generate an search result viewed event 2016-09-15 09:36:49 +08:00
Jake Dallimore db8c2cf6d4 MDL-55945 login: fix https support for forgot_password.php 2016-09-15 09:19:39 +08:00
Andrew Nicols 4e2e54eed0 MDL-55866 mod_data: Remember editor enabled state for templates
Some templates can legitimately contain invalid HTML (e.g. mismatched tags)
because the templates operate in pairs.

In these instances we should not use an editor because the nature of the
editor (content editable) means that the browser automatically corrects all
HTML supplied to it, thus breaking the template entirely.

Therefore we need to disable HTML editors for some templates, and do so in
a way tied to the instance of the activity, rather than to a specific user.

This patch adds a new 'config' field, with matching setters and getters, to
allow such per-instance values to be stored.
2016-09-15 08:38:10 +08:00
David Mudrák 161131f057 MDL-55957 workshop: Add behat tests for embedded images
This tests basic functionality of the images embedded into the
instructions and conclusion fields.
2016-09-14 14:25:41 +02:00
David Mudrák e46aec4c45 MDL-55957 workshop: Fix the embedded files serving
There was a bug with serving the files from the areas instructauthors,
instructreviewers and conclusion. These three areas should not use the
itemid in the plugininfo URLs. But they did use 0 as the itemid which
broke the file previews when browsing via server files repository.

The first part of the patch fixes all relevant calls to
file_rewrite_pluginfile_urls() so that null is now properly used instead
of zero.

The second part of the fix is that we no longer delete the first $args
element in the workshop_pluginfile() function - the itemid is not
supposed to appear there now.

The last part of the patch is that instead of repeating the same code
block copy&pasted for each file area in workshop_pluginfile(), we now
have a single block covering them all.
2016-09-14 12:14:56 +02:00
David Monllao 8beee5a449 MDL-55921 profiling: Adding missing vars 2016-09-14 13:48:38 +10:00
Russell Smith ff3b8f6c89 MDL-55921 profiling: Enable util script to be profiled.
Enable util scripts to be profiled again and ensure
that non-util script runs that don't include version.php
are also able to provide some output.

See David's commit for how export ensures version is used.
2016-09-14 13:48:15 +10:00
Rajesh Taneja a396321e44 MDL-55117 behat: Re-initialise to ensure modified config is not used
As behat cli process is 1 run for features
Any modification in  will be reflected
in later runs on cli. In this case
- disabling enablebadges in block_badges.feature
- reflected while running cron in award_badges.feature
2016-09-14 10:46:19 +08:00
Andrew Nicols 8bdd97a35a MDL-54872 mod_assign: Allocate Unique IDs before tests 2016-09-14 09:20:33 +08:00
Russell Smith 74ee9d29d2 MDL-55944 testing: Reduce sleep usage.
Remove sleep() and replace with waiting for a second to roll over,
this results in a simpler call the guarantee time() has moved forward
2016-09-14 09:49:30 +10:00
Eloy Lafuente (stronk7) b5830334e7 Merge branch 'wip-mdl-55466' of https://github.com/rajeshtaneja/moodle 2016-09-14 01:38:51 +02:00
Rajesh Taneja 234e1449a1 MDL-55466 lib: Create clean alternateloginurl 2016-09-14 07:37:08 +08:00
Stephen Bourget 768e3613a9 MDL-45752 Course: Add additional events 2016-09-13 19:23:59 -04:00
Dan Poltawski 5d602e314b Merge branch 'wip-MDL-55864-master' of git://github.com/marinaglancy/moodle 2016-09-13 14:56:27 +01:00
Pau Ferrer Ocaña 9201a00a5d MDL-55951 output: Add errorcode to fatal_error when available 2016-09-13 15:30:01 +02:00
Dan Poltawski eb81115f20 Merge commit '2bcef5594aa7aef9329e750210f09c8cd506c85b' 2016-09-13 10:05:57 +01:00
Dan Poltawski 3ec4a8085c Merge branch 'MDL-55791_master' of https://github.com/Syxton/moodle 2016-09-13 09:40:33 +01:00
Ryan Wyllie 2bcef5594a MDL-55727 javascript: Add modal module 2016-09-13 02:44:30 +00:00
David Monllao c46432ad6c Merge branch 'MDL-54872-master' of git://github.com/andrewnicols/moodle 2016-09-13 10:05:26 +08:00
Marina Glancy 9e21f12dbd MDL-55864 general: fix PHP7.1 strict warnings 2016-09-13 09:39:26 +08:00
Eloy Lafuente (stronk7) ed55d47d03 Merge branch 'wip-MDL-55123-master' of git://github.com/marinaglancy/moodle 2016-09-12 19:37:40 +02:00
Eloy Lafuente (stronk7) 9579b52372 Merge branch 'wip-MDL-55505-master' of git://github.com/abgreeve/moodle 2016-09-12 19:19:45 +02:00
Eloy Lafuente (stronk7) 4e25d5e5ea Merge branch 'wip-MDL-55654-master' of git://github.com/marinaglancy/moodle 2016-09-12 19:14:00 +02:00
Eloy Lafuente (stronk7) 61b246fd0e Merge branch 'MDL-55632-master' of git://github.com/andrewnicols/moodle 2016-09-12 19:12:26 +02:00
Eloy Lafuente (stronk7) 9d821b6faf Merge branch 'MDL-55874-master' of git://github.com/danpoltawski/moodle 2016-09-12 18:29:42 +02:00
AMOS bot 415fb6ca10 Automatically generated installer lang files 2016-09-13 00:04:35 +08:00
Eloy Lafuente (stronk7) fa7c2bd050 Merge branch 'MDL-55725-master' of git://github.com/merrill-oakland/moodle 2016-09-12 17:54:59 +02:00
Eloy Lafuente (stronk7) b8c5fc8620 Merge branch 'MDL-55755_master' of git://github.com/dmonllao/moodle 2016-09-12 17:34:21 +02:00
Matt Davidson 59c66f926f MDL-55791 admin: maintenance mode access capability
Add capability to allow certain non-admin users through maintenance
mode.
2016-09-12 10:37:25 -04:00
Dan Poltawski 2a786e7bad Merge branch 'MDL-52798_m32v2' of https://github.com/sbourget/moodle 2016-09-12 12:17:40 +01:00
Dan Poltawski 0fcbfb63a5 Merge branch 'wip-mdl-55353' of https://github.com/rajeshtaneja/moodle 2016-09-12 11:49:33 +01:00
Dan Poltawski 3e6ac53831 Merge branch 'wip-mdl-55759' of https://github.com/rajeshtaneja/moodle 2016-09-12 11:36:18 +01:00
Dan Poltawski 4bbe995c89 Merge branch 'wip-mdl-55610' of https://github.com/rajeshtaneja/moodle 2016-09-12 10:18:18 +01:00
David Monllao a8a75c865f Merge branch 'MDL-55122-master' of git://github.com/lameze/moodle 2016-09-12 12:49:27 +08:00
David Monllao 7f09438a49 Merge branch 'MDL-55626-MASTER' of git://github.com/lazydaisy/moodle 2016-09-12 12:37:44 +08:00
Marina Glancy 721e2def56 MDL-55123 forms: do not call non-static methods statically
this breaks in PHP7.1
2016-09-12 12:06:18 +08:00
Marina Glancy 64c45a2928 MDL-55123 forms: correctly create elements in unittests 2016-09-12 11:56:04 +08:00
David Monllao 1e4233434b Merge branch 'MDL-55873-master' of git://github.com/lameze/moodle 2016-09-12 11:55:51 +08:00
Simey Lameze 90d8bf59e7 MDL-55873 login: change back username fields to use PARAM_RAW 2016-09-12 11:49:14 +08:00
Russell Smith ec4b83b92a MDL-55922 cache: Improve static cache performance
Static cache has a very flexible storage capability
and does not need all the checks performed on it.
Enabling dereferencing handling and multiple identifiers
removes a lot of unneeded overhead for request caches that
have many get calls.

The changes were modelled on the static acceleration changes
done in MDL-53208.
2016-09-12 11:58:55 +10:00
Rajesh Taneja 1b319d3d3b MDL-55379 phpunit: Fix dir separator for cli commands 2016-09-12 09:48:40 +08:00
Rajesh Taneja a7f202de4e MDL-55379 phpunit: Fixed hint_result for rerun 2016-09-12 09:48:39 +08:00
Andrew Nicols eb4c466162 MDL-54872 assign: Order blindly marked assignments more blindly 2016-09-12 09:29:45 +08:00
Ryan Wyllie e845b96b83 MDL-55727 javascript: add custom interaction event module 2016-09-12 01:22:20 +00:00
Ryan Wyllie 57a4aba799 MDL-55727 templates: add loading icon template 2016-09-12 01:22:19 +00:00
lazydaisy 8133912c6f MDL-55626 theme_clean: Fixed clean theme missing desktop-first-column 2016-09-10 01:18:29 +01:00
Marina Glancy 88c9c42da2 MDL-55654 user: apply format_string to field names 2016-09-09 14:31:16 +08:00
Rajesh Taneja 3c0b682d39 MDL-55353 behat: Ensure teacher edit activity at different time
Recent activity is showing activities which were
updated since user last logged in and first modification
done on the activity. So ensure update happens at different
time than activity created.
2016-09-09 10:14:05 +08:00
Simey Lameze 02d6873ff0 MDL-55122 enrol: remove duplicated updown variable 2016-09-09 08:48:00 +08:00
Simey Lameze ddd6bea1c7 MDL-53893 core_badges: Behat for all selected roles award badges 2016-09-09 08:40:48 +08:00
Simey Lameze 294f7773db MDL-53893 core_badges: Add strictness to manual badge criteria 2016-09-09 08:40:48 +08:00
David Monllao 1ef29fd28f MDL-55755 search: Correct event link 2016-09-09 07:57:22 +08:00
Adrian Greeve a14cde804e MDL-55505 mod_assign: Editing previous attempt works correctly.
Editing a previous attempt keeps the current feedback and grades
as it should and does not override them.
2016-09-08 20:31:05 +08:00
Dan Poltawski 0344082208 weekly release 3.2dev 2016-09-08 10:25:48 +01:00
Dan Poltawski 3989f4597c Merge branch 'MDL-55504_no-phpunit-utils' of git://github.com/dmonllao/moodle 2016-09-08 09:15:14 +01:00
David Monllao 30fbc3ecab MDL-55504 profiling: No profiling for PHPUNIT_UTIL stuff 2016-09-08 15:32:46 +08:00
Dan Poltawski d6713a430e MDL-55874 report_particiption: fix invalid html
When messaging disabled.
2016-09-08 08:03:05 +01:00
David Monllao 1e1fa3a23e weekly release 3.2dev 2016-09-08 13:56:33 +08:00
Rajesh Taneja ec757a2ef9 MDL-55415 phpunit: Option values are set to false by default 2016-09-08 07:11:10 +08:00
Eric Merrill 1aaead91f9 MDL-55725 search: Index proper time modified with indexed files 2016-09-07 17:33:28 -04:00
Juan Leyva c874d9aa81 MDL-55415 course: Fix unit tests after fixing beat issues 2016-09-07 15:00:56 +01:00
Dan Poltawski 29788d1b3c Merge branch 'wip-mdl-55415' of https://github.com/rajeshtaneja/moodle 2016-09-07 11:39:16 +01:00
Rajesh Taneja 247bdccfb1 MDL-55415 course: Set default options to false for frontpage 2016-09-07 17:12:50 +08:00
Adrian Greeve 80753d3107 MDL-41174 mod_workshop: Added workshop_refresh_events
This function was missing from this activity.
2016-09-07 14:29:13 +08:00
Rajesh Taneja b468dbf533 MDL-55879 behat: Only hook BeforeSuite once
Before suite check and initialise behat env,
this is valid for the whole run, so no need
to do the inilialsation again
2016-09-07 14:24:09 +08:00
Andrew Nicols 64ebf3955b MDL-37669 mod_forum: Mark posts as read on notify to user pref
Some people prefer to have posts marked as read when they receive them, and
some prefer not to. Let us allow them to choose.
2016-09-07 12:32:42 +08:00
Stephen Bourget 9629790b1b MDL-52798 calendar: Move calendar preferences to a user preferences page
This is based on the work of Shamim Rezaie and will also resolve
MDL-52375 and MDL-50378
2016-09-06 21:29:34 -04:00
Jake Dallimore 7ceab0d993 MDL-50803 login: Remove token from URL in forgot password process
Store the token value in the session and redirect to self, thus
removing the token from the URL and eliminating the problem where
the token is exposed via the http referer header.
2016-09-07 09:07:29 +08:00
Juan Leyva 753504fbe0 MDL-49026 webservice: Remove tokens on password change 2016-09-07 09:07:29 +08:00
Eloy Lafuente (stronk7) 8c2bb3aec8 Merge branch 'wip-mdl-55764' of https://github.com/rajeshtaneja/moodle 2016-09-07 03:06:12 +02:00
Eloy Lafuente (stronk7) a6a787c011 Merge branch 'MDL-55236' of https://github.com/bostelm/moodle 2016-09-06 20:30:49 +02:00
Eloy Lafuente (stronk7) 1cce237bac Merge branch 'MDL-55618' of https://github.com/NeillM/moodle 2016-09-06 16:20:32 +02:00
Eloy Lafuente (stronk7) 8c8057065a Merge branch 'wip-MDL-55844-master' of git://github.com/marinaglancy/moodle 2016-09-06 16:08:17 +02:00
Eloy Lafuente (stronk7) 69e18dbf70 Merge branch 'wip-MDL-55832-master' of git://github.com/marinaglancy/moodle 2016-09-06 15:56:01 +02:00
Dan Poltawski 2e79c7305d MDL-42125 quiz stats: removal trivial additional phpdocs newline 2016-09-06 11:47:57 +01:00
Dan Poltawski 7c5b0bbcbe Merge branch 'MDL-42125' of git://github.com/timhunt/moodle 2016-09-06 11:46:52 +01:00
Dan Poltawski aed3367f1e MDL-55415 course: fix trailing whitespace 2016-09-06 10:50:49 +01:00
Dan Poltawski 05842d741b Merge branch 'MDL-55415-master' of git://github.com/jleyva/moodle 2016-09-06 10:49:39 +01:00
Dan Poltawski f0ca10fb1b Merge branch 'wip-mdl-55749' of https://github.com/rajeshtaneja/moodle 2016-09-06 08:43:52 +01:00
Marina Glancy 308ce5b46f MDL-55827 tests: @ does not suppress wrong number of arguments in php7.1 2016-09-06 15:37:30 +08:00
Cameron Ball ab3759fff5 MDL-55404 core_upgrade: Add libcurl environment checks
This patch adds logic to test whether or not the
libcurl (used by PHP/cURL)  was compiled against a compatible
SSL/TLS library.
2016-09-06 11:34:46 +08:00
David Monllao 500af4968b Merge branch 'MDL-55504' of https://github.com/mr-russ/moodle 2016-09-06 11:30:13 +08:00
Russell Smith 8f7dcb3453 MDL-55504 profiling: Support for PHPUnit and big profiles.
To support PHPUnit we need to support large profiles, these may
include backups and restores. To do that the following was required;
- gzcompress for database space saving.
- gzcompress for XML DomDocument field to say < 10Mb and allow imports.
- Save PHPUnit runs directly to a file so they can be imported to the normal database.
- Memory allowance on profiling view pages increases to support large profiles.
2016-09-06 12:41:56 +10:00
Rajesh Taneja 3b73ba8fa4 MDL-55749 badges: define global before using it 2016-09-06 10:27:44 +08:00
David Monllao 9f3ba5c425 Merge branch 'MDL-55617' of https://github.com/NeillM/moodle 2016-09-06 10:17:49 +08:00
David Monllao 6f42301b2e Merge branch 'wip-mdl-55288' of https://github.com/rajeshtaneja/moodle 2016-09-06 10:15:31 +08:00
David Monllao 370fe0634d Merge branch 'MDL-55587-master' of git://github.com/cameron1729/moodle 2016-09-06 10:07:00 +08:00
Eloy Lafuente (stronk7) e1683ea5a3 Merge branch 'MDL-55239_m32v1' of https://github.com/sbourget/moodle 2016-09-05 19:23:13 +02:00
Eloy Lafuente (stronk7) f30c075d69 Merge branch 'MDL-55663-master' of git://github.com/FMCorz/moodle 2016-09-05 18:06:40 +02:00
Eloy Lafuente (stronk7) a1a564c84a Merge branch 'MDL-55717_master' of git://github.com/markn86/moodle 2016-09-05 18:01:21 +02:00
Eloy Lafuente (stronk7) 5e16bdb25c Merge branch 'MDL-55724-master' of https://github.com/sammarshallou/moodle 2016-09-05 17:33:25 +02:00
Juan Leyva b9050b106e MDL-55415 course: New WS core_course_get_user_administration_options 2016-09-05 15:42:48 +01:00
Juan Leyva b2392037e7 MDL-55415 course: Move admin options permission check to API 2016-09-05 15:42:47 +01:00
Juan Leyva c115ff6ab5 MDL-55415 course: New WS core_course_get_user_navigation_options 2016-09-05 15:42:47 +01:00
Juan Leyva e200200938 MDL-55415 webservice: Allow validate_courses to return contexts 2016-09-05 15:42:45 +01:00
Juan Leyva d6cd89b110 MDL-55415 course: Move options permission check to API 2016-09-05 15:42:45 +01:00
Dan Poltawski 9423674717 Merge branch 'MDL-55627' of https://github.com/bostelm/moodle 2016-09-05 14:09:09 +01:00
Dan Poltawski dca4a87101 Merge branch 'MDL-55742-master' of https://github.com/xow/moodle 2016-09-05 10:50:47 +01:00
Henning Bostelmann f617ac5c75 MDL-55627 filter_mathjaxloader: use correct string concatenation op 2016-09-05 11:40:04 +02:00
Henning Bostelmann e5e89cacfb MDL-55236 mod_assign: Allow subplugins to backup files 2016-09-05 11:39:12 +02:00
Dan Poltawski 9dd516c432 Merge branch 'MDL-55771_master' of git://github.com/markn86/moodle 2016-09-05 10:18:53 +01:00
Dan Poltawski a46f187431 Merge branch 'wip-mdl-55766' of https://github.com/rajeshtaneja/moodle 2016-09-05 09:24:27 +01:00
Dan Poltawski eccebeebf5 Merge branch 'MDL-55815' of git://github.com/timhunt/moodle 2016-09-05 08:27:58 +01:00
Dan Poltawski e7b4f3d3ae Merge branch 'wip-MDL-55826-master' of git://github.com/marinaglancy/moodle 2016-09-05 08:18:32 +01:00
Dan Poltawski e5c5f5d3ff Merge branch 'MDL-54113-master' of git://github.com/andrewnicols/moodle 2016-09-05 07:53:26 +01:00
Rajesh Taneja 9b9afffe5b MDL-55288 forms: Set data attribute to form fields 2016-09-05 14:10:24 +08:00
David Monllao 94c9d470d1 Merge branch 'wip-MDL-41174-master' of git://github.com/abgreeve/moodle 2016-09-05 13:44:36 +08:00
Marina Glancy f9e2d3d451 MDL-55832 mod_feedback: apply filters to multichoice quesitons 2016-09-05 13:29:57 +08:00
Andrew Nicols 63d7b1acc0 MDL-42041 mod_book: Add Turn Editing On to page body 2016-09-05 13:08:24 +08:00
Marina Glancy c6745991b1 MDL-55844 profile: display formatted course name 2016-09-05 13:05:56 +08:00
David Monllao 2ab5bbc409 Merge branch 'MDL-55457-master' of https://github.com/xow/moodle 2016-09-05 11:48:34 +08:00
David Monllao af12b3c663 Merge branch 'wip_MDL-53724_master' of git://github.com/gjb2048/moodle 2016-09-05 11:34:06 +08:00
David Monllao f1ef913364 Merge branch 'wip-MDL-55707-master' of git://github.com/abgreeve/moodle 2016-09-05 10:46:57 +08:00
Rajesh Taneja 54ced30d03 MDL-55610 behat: Clear static file cache
php file cache might be out-of-sync
to ensure full directory is deleted
clear php file cache
2016-09-05 10:18:19 +08:00
Adrian Greeve 9851111f7a MDL-41174 course: Module name change updates calendar. 2016-09-02 11:46:09 +08:00
Marina Glancy d47af580bd MDL-55826 question: fix PHP7.1 strict warnings 2016-09-02 10:52:02 +08:00
John Okely d51757a729 MDL-55457 mod_lti: Support object icon_info in tool proxy 2016-09-02 09:39:31 +08:00
Gareth J Barnard efe67d05b2 MDL-53724 themes: Inconsistent padding when >= one blocks are docked. 2016-09-01 18:22:28 +01:00
Tim Hunt 6ae04c2684 MDL-42125 quiz stats: fix regression caused by MDL-51603 2016-09-01 12:38:30 +01:00
Tim Hunt 9e5e0d8de4 MDL-42125 quiz stats: clearer message when manual grading required 2016-09-01 12:34:40 +01:00
Neill Magill 31c62848f0 MDL-55617 backup: Possible fatal errors in backup and restore
The unserialize() function will not always return an object
especially when as can happen the controller field of a
record in the backup_controllers table is empty.

This change ensures that in this case the script will
not cause a fatal error, but instead throw an error.
2016-09-01 08:51:25 +01:00
Neill Magill fefd9fed83 MDL-55618 backup: Header should not be output twice
Before this patch if the pre-check failed during
the final stage of an import a request for the
page header to be output was made for a second
time, this caused a coding_error to occur.

This change removes the second request to
output the page header, which will allow the user
to see the reasons the pre-check failed.
2016-09-01 08:43:45 +01:00
Cameron Ball b8d0f90ec7 MDL-54793 webservice_xmlrpc: Don't treat GET and POST as arguments 2016-09-01 15:15:10 +08:00
John Okely 3b4491e8aa MDL-55742 mod_lti: Remove support for get_magic_quotes_gpc
Thanks to Bishop Bettini for the original patch.
2016-09-01 14:58:29 +08:00
David Monllao 5c33a0db21 weekly release 3.2dev 2016-09-01 11:14:03 +08:00
David Monllao c067ae4f33 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-09-01 11:14:01 +08:00
Adrian Greeve 93d3f310b0 MDL-55707 grades: Stop infinite loop when regrading. 2016-09-01 10:25:13 +08:00
Dan Marsden 5d453ff40e MDL-55820 scorm: use correct displayattempt default options 2016-09-01 13:19:35 +12:00
Marina Glancy 6f9f8b59fa MDL-55665 charts: correction to stacked bar charts 2016-09-01 09:17:36 +08:00
Tim Hunt d0f8daef12 MDL-55815 quiz review: after close should beat immediately after
This only arises in specific situations: student submitted less than 2
mintues before time close, or when a teacher previews after the close
date. However, in those cases, the old behaviour was confusing. Now,
'After the quiz is closed' takes priority.
2016-08-31 12:55:21 +01:00
Tim Hunt daf6becfb0 MDL-55815 quiz: convert attempt state tests to a data provider 2016-08-31 12:54:18 +01:00
David Monllao f038a3e670 Merge branch 'wip-MDL-38105-master' of https://github.com/marinaglancy/moodle 2016-08-31 09:57:31 +08:00
Rajesh Taneja 31c8fd3e83 MDL-55766 behat: set core behat selectors if not overridden by theme 2016-08-31 07:23:13 +08:00
Eloy Lafuente (stronk7) 4bdb1298c4 Merge branch 'MDL-55237_master' of git://github.com/dmonllao/moodle 2016-08-30 12:54:46 +02:00
sam marshall 3bf0482841 MDL-55724 Glossary: Prevent infinite loop in trusttext_strip 2016-08-30 10:25:38 +01:00
David Monllao dacfc6f816 Merge branch 'MDL-55372-master' of git://github.com/danpoltawski/moodle 2016-08-30 16:38:18 +08:00
David Monllao 7db19614f0 Merge branch 'MDL-55452-master' of git://github.com/danpoltawski/moodle 2016-08-30 16:25:28 +08:00
Marina Glancy dfc261be66 MDL-38105 gradingform_rubric: option to lock 0 level for rubrics
this also allows using negative scores
2016-08-30 14:55:43 +08:00
Mark Nelson 8354d12d39 MDL-55771 core: added title attribute when using JS to render {{pix}} 2016-08-30 14:49:44 +08:00
Rajesh Taneja b9b1ca9ed1 MDL-55759 behat: No profile guided alloaction in phpunit 2016-08-30 14:49:08 +08:00
Marina Glancy 0df9dce716 MDL-55581 htmlpurifier: test for attributes in video tag 2016-08-30 13:44:13 +08:00
David Monllao bb75b82e21 Merge branch 'MDL-54873-master' of git://github.com/andrewnicols/moodle 2016-08-30 12:52:38 +08:00
Andrew Nicols 5e171c6986 MDL-54873 assign: Seed recordid to print_recent_activity 2016-08-30 11:57:57 +08:00
Andrew Nicols c06ce32d85 MDL-54873 assign: Add recordid fetching participants
get_submission_info_for_participants is primarily used by externallib.php
2016-08-30 11:46:21 +08:00
Andrew Nicols cf29b1e08d MDL-54873 assign: Fetch mapping id for blind marking in cron 2016-08-30 11:46:20 +08:00
Andrew Nicols 4ed4be4988 MDL-54873 assign: Fetch mapping id for blind marking grading
This change modifies the grading table to pre-seed record ids where they
already exist.

Where they do not exist, they are still fetched.
2016-08-30 11:46:20 +08:00
Frederic Massart e5e2f39ed5 MDL-55663 filter: Filters could be incorrectly reported as inactive 2016-08-30 11:22:53 +08:00
David Monllao 8bee2d8df6 MDL-55237 core_component: Fix last namespace level matching
Thanks to Andreas Grabs for proposing a fix.
2016-08-30 11:15:27 +08:00
Eloy Lafuente (stronk7) e6166d9bf7 Merge branch 'MDL-53634-master' of git://github.com/andrewnicols/moodle 2016-08-30 02:28:32 +02:00
Rajesh Taneja cc0ac30488 MDL-55764 behat: Reset static update db list
While running multiple suites we should
ensure static cli cache is also reset.
2016-08-30 08:00:01 +08:00
Eloy Lafuente (stronk7) ba982fef66 Merge branch 'MDL-55660-master-tablesql' of git://github.com/mudrd8mz/moodle 2016-08-29 18:59:13 +02:00
AMOS bot 25d3cf24c5 Automatically generated installer lang files 2016-08-30 00:04:47 +08:00
Eloy Lafuente (stronk7) ff536f4b37 Merge branch 'MDL-55667-master-participantslink' of git://github.com/mudrd8mz/moodle 2016-08-29 16:53:46 +02:00
Eloy Lafuente (stronk7) b5776e1b9f Merge branch 'MDL-55741' of git://github.com/timhunt/moodle 2016-08-29 14:08:37 +02:00
Cameron Ball 0f826e9f36 MDL-55587 core_media: Properly escape ampersand 2016-08-29 19:16:01 +08:00
David Mudrák 57b81c93f5 MDL-55667 navigation: Do not display site participants link to students
The problem here was that user/index.php checks the system level
capability moodle/site:viewparticipants when the user is on the front
page, and the moodle/course:viewparticipants on non-front pages.

But the navigation displayed the link by mistake even in situations,
when the user has the capability moodle/course:viewparticipants on the
front page (typically when the default role for the front page is set to
student).

Added behat tests for reproducing the bug and also for checking the
basic functionality of the feature.
2016-08-29 12:11:46 +02:00
David Monllao c2df528806 Merge branch 'wip-MDL-55581-master' of git://github.com/marinaglancy/moodle 2016-08-29 16:53:46 +08:00
David Monllao 6893691b34 Merge branch 'MDL-55710-master' of git://github.com/lameze/moodle 2016-08-29 14:48:54 +08:00
David Monllao ea012c47b5 Merge branch 'MDL-55650-master' of https://github.com/sammarshallou/moodle 2016-08-29 14:42:55 +08:00
David Monllao a74218d464 Merge branch 'MDL-55661-master-enfix' of git://github.com/mudrd8mz/moodle 2016-08-29 14:40:03 +08:00
David Monllao 351081b06d Merge branch 'MDL-55312_load_timeout_for_amd_modules_master' of https://github.com/gthomas2/moodle 2016-08-29 14:31:11 +08:00
David Monllao b197b33564 Merge branch 'MDL-55665-master' of git://github.com/lameze/moodle 2016-08-29 13:26:28 +08:00
Marina Glancy 28e27ac837 MDL-55581 htmlpurifier: allow track tag in videos and audios 2016-08-29 13:25:10 +08:00
David Monllao bc1ac4a89d Merge branch 'wip-MDL-55708-master' of git://github.com/marinaglancy/moodle 2016-08-29 11:18:58 +08:00
David Monllao af1cacb586 Merge branch 'MDL-55477' of git://github.com/timhunt/moodle 2016-08-29 11:14:11 +08:00
David Monllao 80e31fdeaa Merge branch 'MDL-55668-master' of git://github.com/danpoltawski/moodle 2016-08-29 10:26:51 +08:00
Tim Hunt 972a367b98 MDL-55741 phpunit: does not reset get_log_manager cache 2016-08-26 17:14:17 +01:00
AMOS bot 3602db85e2 Automatically generated installer lang files 2016-08-27 00:04:38 +08:00
Dan Poltawski 6bb410c32e MDL-55372 stylelint: fully replace csslint
Remove the csslint config, remove an invalid property.

Kept csslint ignore lines becacase stylelint seems to respect them and
more work will be happening on css cleanup in MDL-55372.
2016-08-26 11:09:11 +01:00
Dan Poltawski eb69520763 MDL-55452 stylelint: prevent use of !important
Don't try and fix existing issues, just prevent new ones landing..
2016-08-26 11:08:14 +01:00
Andrew Nicols c42c23557e MDL-53634 forum: Switch digest selection to inplace_editable 2016-08-26 15:05:05 +08:00
Simey Lameze b02e738c4f MDL-55710 core: Add support for doughnut charts 2016-08-26 13:30:02 +08:00
Simey Lameze c574995dde MDL-55665 core: Add support for stacked bar charts 2016-08-26 13:30:01 +08:00
Dan Poltawski 35d5053ba2 weekly release 3.2dev 2016-08-25 16:07:36 +01:00
Dan Poltawski 05fd5c4d34 MDL-55072 tests: work around reset bug 2016-08-25 16:04:42 +01:00
Helen Foster b61b927356 MDL-55661 lang: Merge English strings from the en_fix language pack 2016-08-25 14:38:07 +02:00
Dan Poltawski 4c0385d5db weekly release 3.2dev 2016-08-25 12:09:35 +01:00
Dan Poltawski bcec0c3e0c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-08-25 12:09:33 +01:00
Dan Poltawski baa5375a0c Merge branch 'MDL-55127_master-fix-everything' of git://github.com/dmonllao/moodle 2016-08-25 10:26:21 +01:00
David Monllao fa90f52986 MDL-55127 mod_data: Search entries fixes
- If the database contains has than 4 valid fields all fields from the 4th one
  to the last one will be merged into the 4th one so we index all entry contents
- get_content_value now receives the whole data_content record as fields may need
  other values than just the content to prepare the value
- phpunit database generator changes to separate checkboxes from radio buttons options
  and to separate multimenu options from menu options
2016-08-25 16:50:15 +08:00
Mark Nelson c0abfdabb4 MDL-55717 core: add 'ignoredirty' class to inplace editable 2016-08-25 16:01:53 +08:00
Dan Poltawski c52d34b255 Merge branch 'MDL-55320-master-fix2' of https://github.com/lameze/moodle 2016-08-25 08:07:31 +01:00
Simey Lameze 787a4da9f1 MDL-55320 core: Add generaltable class to chart data table 2016-08-25 14:38:36 +08:00
David Monllao 195288fb97 Merge branch 'wip-mdl-55072-fix' of git://github.com/rajeshtaneja/moodle 2016-08-25 10:58:01 +08:00
Simey Lameze a5ee89f817 MDL-55665 core: Add support for stacked bar charts 2016-08-25 10:37:20 +08:00
Rajesh Taneja cb5949e3f0 MDL-46514 behat: Get config value from db, to avoid cache 2016-08-25 10:33:32 +08:00
Marina Glancy 92c9be1978 MDL-55708 mod_assign: display formatted acitvity names 2016-08-25 09:53:29 +08:00
Rajesh Taneja 6c1cc55d92 MDL-55072 behat: Cache themesuite and theme contexts 2016-08-25 09:17:38 +08:00
Rajesh Taneja 14f3abee2e MDL-55072 behat: Changed option to run-with-theme 2016-08-25 08:36:08 +08:00
AMOS bot 587089a516 Automatically generated installer lang files 2016-08-25 00:05:02 +08:00
Damyon Wiese 43b0df2601 MDL-55668 assign: Don't link to user profile if blind marking is enabled 2016-08-24 11:21:31 +01:00
Dan Poltawski c46077284a Merge branch 'MDL-55320-fix' of https://github.com/lameze/moodle 2016-08-24 08:20:57 +01:00
Simey Lameze 21575ea31c MDL-55320 theme: remove unnecessary styling 2016-08-24 14:27:39 +08:00
Andrew Nicols 8497f5ece9 Merge branch 'MDL-55127_master-fix-requires' of git://github.com/dmonllao/moodle 2016-08-24 14:04:07 +08:00
David Monllao 70003837db MDL-55127 mod_data: Adding missing required classes 2016-08-24 13:57:44 +08:00
Rajesh Taneja 3037458049 MDL-55072 behat: Fixed behat_selectors to be removed from contexts 2016-08-24 13:24:34 +08:00
Andrew Nicols f42288ea62 MDL-54113 assign: Open files in new window
Open files in a new window when viewing to ensure that the form change
checker does not warn about the page reloading.
2016-08-24 11:33:09 +08:00
David Monllao 4b5e0c542a MDL-55604 cache: Updating comment according to code changes 2016-08-24 09:39:15 +08:00
David Monllao 086ef7d418 Merge branch 'MDL-55604' of https://github.com/mr-russ/moodle 2016-08-24 09:35:39 +08:00
David Monllao 30daa61475 Merge branch 'wip-mdl-55072' of https://github.com/rajeshtaneja/moodle 2016-08-24 09:26:29 +08:00
Russell Smith 7ff43e1acf MDL-55604 cache: Fix identifier and cacheable_object
When a cachable object is store in the static cache from
the backing store, it was incorrect serialised rather than
using the wake function.  This has been resolved and tests added.

During the investigation into cacheable_object, it was discovered
that set_identifiers never removes identifiers when you call it,
so set_identifiers(array('a')) and set_identifiers(array('b')) really
resulted in array('a','b') as the identifiers rather than 'b'.

The fix for this issue depends on the set_identifiers fix and
they have been coupled together as a result.
2016-08-24 11:26:20 +10:00
Rajesh Taneja b4bc4286bb MDL-55072 behat: Allow behat_selectors to be overridden
if theme/tests/behat/behat_theme_{THEME_NAME}_behat_selectors.php
file exits, and has class with same file name then we will
call behat_theme_{THEME_NAME}_behat_selectors::register_moodle_selectors()
to register theme specific selectors. If they are different
then core then they will override
2016-08-24 09:13:13 +08:00
Rajesh Taneja 5aa9b5cee3 MDL-55072 behat: Added support for overriding theme tests 2016-08-24 08:57:15 +08:00
David Monllao bae868b903 Merge branch 'MDL-55385_master' of https://github.com/marxjohnson/moodle 2016-08-24 08:24:21 +08:00
gthomas2 16ddfd5fc2 MDL-55312 requirejs: Fix timeouts with infinite waitSeconds 2016-08-23 17:48:35 +01:00
Dan Poltawski 28b606819b Merge branch 'MDL-55628-master' of https://github.com/sammarshallou/moodle 2016-08-23 15:48:11 +01:00
Dan Poltawski 13b3bf6cd5 MDL-55423 tests: remove non-cross-db testcase
This isn't used in moodle core and is problematic on oracle, don't test
it.
2016-08-23 12:36:28 +01:00
Mark Johnson e1093c7fa8 MDL-55385 output: Support non-integer output_buffering values 2016-08-23 11:19:04 +01:00
Dan Poltawski 7c085e1a2d Merge branch 'wip-MDL-55127_master' of https://github.com/dg711/moodle 2016-08-23 11:12:46 +01:00
Andrew Nicols f71df007d1 MDL-46654 mod_forum: Reduce complexity of closure 2016-08-23 16:17:07 +08:00
Dan Poltawski 3f92140fc8 Merge branch 'wip-mdl-46514' of https://github.com/rajeshtaneja/moodle 2016-08-23 08:59:24 +01:00
David Monllao 86d6ff2dc8 Merge branch 'MDL-46654-master' of git://github.com/andrewnicols/moodle 2016-08-23 15:30:54 +08:00
Dan Poltawski 0969f0da5b Merge branch 'MDL-48773_m32v1' of https://github.com/sbourget/moodle 2016-08-23 08:18:16 +01:00
Rajesh Taneja bdcd90b2f3 MDL-46514 behat: section should be set before switch-case 2016-08-23 15:14:39 +08:00
Rajesh Taneja 0c1bcb63c6 MDL-46514 behat: Catch php errors in shutdown hook
If error is not displayed in web browser then
it will be caught in shutdown hook, so we can
show it to user
2016-08-23 15:14:38 +08:00
David Monllao 132b75d067 Merge branch 'MDL-55391-master' of git://github.com/danpoltawski/moodle 2016-08-23 13:24:29 +08:00
David Monllao bab59f1c08 Merge branch 'MDL-54838-master' of https://github.com/nashtechdev01/moodle 2016-08-23 12:42:52 +08:00
sam marshall 5c2ef08fa3 MDL-55628 Completion: Use simpledata for completion cache
The completion cache is currently not marked as simpledata. On the
course page it is frequently retrieved hundreds of times which results
in many calls to the slow unserialize function. By making a slight
change to the data format (using arrays instead of objects) we can
mark it as simpledata, which will avoid using unserialize.
2016-08-22 17:13:36 +01:00
sam marshall b16b1f86b1 MDL-55650 Library: s() function - tweak parameters for performance
The s() function includes a comment saying that parameter options
should be modified to improve performance once PHP 5.4 is required.
Since Moodle has required PHP 5.4 for some time, we should probably
make the change and remove the comment.

According to my benchmarking, these changes make s() about 7% faster
and will save a staggering 2ms from a typical course view that calls
it 8,000 times.
2016-08-22 15:38:13 +01:00
David Mudrák 4e96165e59 MDL-55660 tablelib: Fetch only a single row when auto defining columns
In a very rare cases where the columns are not declared explicitly, we
want to fetch single row only without a warning raised. This seems like
a valid use case for IGNORE_MULTIPLE flag.
2016-08-22 16:34:13 +02:00
Dan Poltawski 080f292ed7 Merge branch 'MDL-55273-cookie-secure-default' of https://github.com/brendanheywood/moodle 2016-08-22 15:25:15 +01:00
Dan Poltawski c1d5d922a8 Merge branch 'MDL-55320-master' of git://github.com/lameze/moodle 2016-08-22 15:20:17 +01:00
Dan Poltawski 42def6ef5c Merge branch 'MDL-55565-master' of https://github.com/snake/moodle 2016-08-22 14:22:38 +01:00
Dan Poltawski 4ac1bb2f34 Merge branch 'MDL-55605-lesson-restore-bug' of https://github.com/kenneth-hendricks/moodle 2016-08-22 14:13:26 +01:00
Dan Poltawski 74a53156d6 Merge branch 'MDL-55551_m32v1' of https://github.com/sbourget/moodle 2016-08-22 12:53:31 +01:00
Dan Poltawski 293857b5eb Merge branch 'MDL-55557_m32v1' of https://github.com/sbourget/moodle 2016-08-22 12:45:18 +01:00
Dan Poltawski 6f9f149b04 MDL-44712 scorm: make upgrade match install.xml defintion 2016-08-22 12:40:03 +01:00
Andrew Nicols 8381ac52cd MDL-46654 mod_forum: Remove irrelevant digest/subscribe options
If the user cannot subscribe, there is no point showing the digest options.
2016-08-22 19:12:20 +08:00
Andrew Nicols d6c05ad1f1 MDL-46654 mod_forum: Hide digestoptions when no subscription
Daily digest options should not be generated if the user cannot subscribe
to anything in the first place.
2016-08-22 19:06:06 +08:00
Dan Poltawski cfbba4a94c Merge branch 'MDL-54864-master' of https://github.com/snake/moodle 2016-08-22 11:19:32 +01:00
Dan Poltawski ccee2dc2c5 MDL-44712 readme: fix trailing whitespace 2016-08-22 10:51:34 +01:00
Dan Poltawski 4d67694b10 Merge branch 'master_MDL-44712' of git://github.com/danmarsden/moodle 2016-08-22 10:33:31 +01:00
Dan Poltawski a55ff4d9fe Merge branch 'MDL_55423_master' of https://github.com/alexandru-elisei/moodle 2016-08-22 09:26:28 +01:00
Dan Poltawski cf6ae1205e Merge branch 'wip-MDL-22183-master' of git://github.com/abgreeve/moodle 2016-08-22 09:19:59 +01:00
Jake Dallimore d7d4a09707 MDL-54864 core_question: Enforce context,stamp uniqueness for category
Added an upgrade step to remove duplicate stamps, added a unique index
on (contextid, stamp) and modified the question_category edit code such
that stamp duplication in the same context is not permitted.
2016-08-22 09:44:52 +08:00
Brendan Heywood 657ddbf592 MDL-55273 admin: Change $CFG->cookiesecure default to on 2016-08-22 09:20:32 +10:00
Tim Hunt 12a725be10 MDL-55477 quiz reports: all user fields should have repeats suppressed 2016-08-19 18:04:51 +01:00
Dan Poltawski 217ef85633 MDL-55391 block_rss: fix typo preventing feed title display 2016-08-19 09:43:32 +01:00
Devang Gaur 2af9ad7d30 MDL-55127 mod_data: added database entries to globalsearch 2016-08-19 13:58:19 +05:30
An Pham Van d0207fdc06 MDL-54838 workshop: Differentiate labels for each comment field.
In a Workshop activity, comment fields on Assessment forms do not properly link to the corresponding Aspect.
So screen reader users may find it difficult to complete the Assessment forms.
There should be a hidden label text for each comment field.
2016-08-19 13:44:19 +07:00
Andrew Nicols 2e48384dea MDL-55632 mod_forum: Tidy up forum post messages 2016-08-19 09:38:57 +08:00
Rajesh Taneja e99f0cbba6 MDL-55072 behat: refactor behat_config_manager 2016-08-19 06:49:13 +08:00
Rajesh Taneja 39eb8abe15 MDL-46514 behat: Delete tablesupdatedbyscenario before suite
Delete tablesupdatedbyscenario before db reset to ensure
db is fully reset. In case user exits or process terminated
then the file will be left and can lead to wrong results
2016-08-19 06:46:27 +08:00
Rajesh Taneja 43759f5e23 MDL-46514 behat: Catch errors shown by JS 2016-08-19 06:46:27 +08:00
Kenneth Hendricks 504b65d2e5 MDL-55605 mod_lesson: Fix activitylinks restore bug 2016-08-18 16:35:34 +10:00
Jake Dallimore d8e73d61b9 MDL-55565 core_backup: Fix warning when restoring question categories
Fixed a call to get_records_sql, which was being used incorrectly in
restore_find_best_target_context to determine a unique contextid.
2016-08-18 10:15:51 +08:00
Adrian Greeve 3b873397e6 MDL-22183 lib: More unit tests for next day start. 2016-08-18 10:13:31 +08:00
Adrian Greeve 3cdc35b44d MDL-22183 lib: Cleanup of get_next functions. 2016-08-18 10:13:31 +08:00
Adrian Greeve 4ae0691169 MDL-22183 lib: Time settings removed for stats cron.
Old settings that should be ignored have been removed from the
statistics cron code.
2016-08-18 10:13:31 +08:00
Dan Marsden b30a884bfa MDL-44712 SCORM: Improve multi-sco activity completion. 2016-08-18 10:14:40 +12:00
Alexandru Elisei 03856ac5e8 MDL-55423 accesslib: Prevent get_role_users() false debugging messages 2016-08-17 20:43:39 +03:00
Dan Poltawski 3ca3cc77a2 weekly release 3.2dev 2016-08-17 14:47:04 +01:00
Dan Poltawski 40a952bf0f MDL-55585 bump versions 2016-08-17 12:12:00 +01:00
Dan Poltawski e3c9de6831 Merge branch 'MDL-55585_master' of git://github.com/dmonllao/moodle 2016-08-17 12:10:22 +01:00
Andrew Nicols 5019f9fd79 Merge branch 'wip-MDL-50586-master-fix' of https://github.com/marinaglancy/moodle 2016-08-17 13:22:50 +08:00
Marina Glancy a87b2d70ec MDL-50586 gradingform_rubric: 0-level warning during redirection 2016-08-17 12:59:02 +08:00
Andrew Nicols 72d088f229 Merge branch 'MDL-54973_master-fix' of git://github.com/dmonllao/moodle 2016-08-17 12:57:41 +08:00
David Monllao df762928f6 MDL-54973 message: Taking care of support and noreply users on search 2016-08-17 12:41:48 +08:00
Andrew Nicols b4bb1e65dc Merge branch 'MDL-55445-master-2nd' of git://github.com/FMCorz/moodle 2016-08-17 11:25:24 +08:00
Frederic Massart aa6b41293f MDL-55445 theme: Clean and More automatically use the branding logos
But in order to maintain smooth backwards compatibility, the logos
set in the themes themselves take precedence.
2016-08-17 10:26:31 +08:00
Frederic Massart 2258b4dc41 MDL-55445 core: New setting to host the logos 2016-08-17 10:26:31 +08:00
Frederic Massart 19efee14e2 MDL-55445 files: Helper functions related to serving and caching
The function send_content_uncached() is meant to be used when serving
content which should not be cached by browsers/proxies. You will
use this in development mode, or when the request is malformed
but you need to return some fallback content which shouldn't be stored
under the URL it was requested from.

The function file_safe_save_content() should only be used for content
not stored in the file API. Good candidates for this are resource
which fit well in the localcache. The function tries to write the
content in the most atomic way as possible to prevent incomplete
writes or concurrent writes.
2016-08-17 10:26:10 +08:00
Dan Poltawski 5fb09e48ce Merge branch 'MDL-55130-master' of git://github.com/crazyserver/moodle 2016-08-16 12:48:00 +01:00
Dan Poltawski d6e7b38844 Merge branch 'MDL-36713_m32v2' of https://github.com/sbourget/moodle 2016-08-16 12:04:18 +01:00
David Monllao 0c417cdc5c MDL-55585 search: Remove missing report/search file 2016-08-16 17:50:19 +08:00
Andrew Nicols 9d8a3055c0 Merge branch 'MDL-55272' of https://github.com/mr-russ/moodle 2016-08-16 14:55:49 +08:00
Andrew Nicols ccfd62a1ca MDL-54680 enrol_lti: Coding Style fixes 2016-08-16 14:48:17 +08:00
Andrew Nicols 88a0cdada4 Merge branch 'MDL-54680-master' of https://github.com/xow/moodle 2016-08-16 14:45:33 +08:00
John Okely 3e9ab40361 MDL-54680 enrol_lti: Offer cartridges in LTI provider 2016-08-16 14:15:02 +08:00
Damyon Wiese bb0b39b839 MDL-55520 forms: Properly format the grademax for the database 2016-08-16 11:19:51 +08:00
Andrew Nicols c544236647 Merge branch 'wip-MDL-18592-fix' of git://github.com/marinaglancy/moodle 2016-08-16 10:47:53 +08:00
Marina Glancy f32a984db7 MDL-18592 mod_choice: deprecate incorrect events 2016-08-16 10:43:54 +08:00
Russell Smith 6a3acc84de MDL-55272 lib: Improve test course create performance
Use core functions that are faster for test file creation.
To support large requests for hashes, the core hash function
must support large hashes without recursion.  PHP has a default
recursion depth of 100 and long hashes don't support this.

Remove transactions as they create performance problems for larger
courses and doesn't introduce significant benefit for developers.

Performance changes meant the times were much faster, a reasonable
guess was taken on performance of an average machine.
2016-08-16 12:00:21 +10:00
Stephen Bourget 67a1f63913 MDL-36713 Blog: Display accurate error when a guest views a user blog 2016-08-15 21:46:48 -04:00
Simey Lameze ff80d062de MDL-55320 theme: Fix chat data table alignment 2016-08-16 09:35:21 +08:00
Andrew Nicols 6677f64f8c Merge branch 'wip-MDL-50586-master' of git://github.com/marinaglancy/moodle 2016-08-16 08:52:17 +08:00
Andrew Nicols 1824951eef Merge branch 'MDL-54973_master' of https://github.com/dg711/moodle 2016-08-16 08:21:13 +08:00
Andrew Nicols e144182592 MDL-54647 tests: Clarify unoconv tests 2016-08-16 08:11:13 +08:00
Andrew Nicols 0a0eaa7dfc Merge branch 'MDL-54647-master' of git://github.com/damyon/moodle 2016-08-16 08:01:47 +08:00
Dan Poltawski c6970e9c16 Merge branch 'MDL-18592-master' of git://github.com/marinaglancy/moodle 2016-08-15 14:27:34 +01:00
Pau Ferrer Ocaña c13c21b9b5 MDL-55130 wiki: Reduce data usage when only renew lock is needed. 2016-08-15 14:40:38 +02:00
Dan Poltawski 8d37a33b16 Merge branch 'wip-MDL-55494-master' of git://github.com/marinaglancy/moodle 2016-08-15 13:15:15 +01:00
Dan Poltawski fb8723d9f5 MDL-52105 enrol_self: fix upgrade savepoint 2016-08-15 12:12:24 +01:00
Dan Poltawski 16d7b6b133 Merge branch 'MDL-55196_master' of https://github.com/andrewhancox/moodle 2016-08-15 12:00:47 +01:00
Dan Poltawski 338fd5dd57 Merge branch 'wip-MDL-55366-master' of git://github.com/abgreeve/moodle 2016-08-15 11:44:09 +01:00
Dan Poltawski e4346dad32 Merge branch 'wip-mdl-55380' of https://github.com/rajeshtaneja/moodle 2016-08-15 11:38:34 +01:00
Dan Poltawski 2595cb58c9 Merge branch 'wip-MDL-55397-master' of git://github.com/marinaglancy/moodle 2016-08-15 11:35:35 +01:00
Dan Poltawski 5e17cd21aa Merge branch 'MDL-52105-master' of git://github.com/lameze/moodle 2016-08-15 11:13:27 +01:00
Dan Poltawski 21b6554e2a Merge branch 'MDL-55533_multiresponse_feedback' of git://github.com/davosmith/moodle 2016-08-15 11:09:51 +01:00
Dan Poltawski 623f92f9f7 Merge branch 'MDL-46214-master' of git://github.com/andrewnicols/moodle 2016-08-15 09:47:02 +01:00
Damyon Wiese 36ba9c3e76 MDL-54647 tests: Reverse order of expected and actual 2016-08-15 16:34:11 +08:00
Damyon Wiese 300852ee30 MDL-54647 file_storage: Redo the test pdf every time it's viewed 2016-08-15 16:32:21 +08:00
Andrew Nicols 40cc0ba04e Merge branch 'MDL-55513-master' of https://github.com/lucisgit/moodle 2016-08-15 14:07:41 +08:00
Devang Gaur 26c0d75f3e MDL-54973 message: added messages to globalsearch 2016-08-15 11:27:25 +05:30
Simey Lameze 6fdd61a073 MDL-52105 enrol_self: Behat test for key holder feature 2016-08-15 12:56:52 +08:00
Simey Lameze 33b6da5327 MDL-52105 enrol_self: Fix wrong holdkey cap restriction for manager
This commit add an upgrade step to remove wrong CAP_PROHIBIT on enrol/self:holdkey for manager role.
Also remove the restriction from the self enrolment access file.
2016-08-15 12:56:51 +08:00
Andrew Nicols c470716854 Merge branch 'MDL-55229-master' of git://github.com/lameze/moodle 2016-08-15 12:18:19 +08:00
Andrew Nicols 098aad4f72 Merge branch 'MDL-55520-master' of git://github.com/damyon/moodle 2016-08-15 10:58:39 +08:00
Frederic Massart 0eb97bfa13 MDL-55445 files: Support for cacheability in send_file() 2016-08-15 10:54:29 +08:00
Frederic Massart 92b9ef9917 MDL-55445 gdlib: Support for resizing an image 2016-08-15 10:54:28 +08:00
Adrian Greeve bd576de814 MDL-55366 mod_lesson: Fix warning with TF page.
Having an image in the answer text would create a warning.
2016-08-15 10:17:41 +08:00
Andrew Nicols 62192d93ea MDL-46214 event: Mark previously deprecated events as deprecated 2016-08-15 09:17:02 +08:00
Andrew Nicols 51d85c7c6c MDL-46214 event: Support deprecation of events
This patch adds two new functions to the event base to allow deprecation of
the individual events, without entirely removing them from the UI.

This is different to our normal deprecation procedure because all events
must support display of historical data. It must also be possible to view
the event information in the event monitor.
2016-08-15 09:17:02 +08:00
Stephen Bourget 6ffb8fa21a MDL-55557 mod_wiki: Add missing MOODLE_INTERNAL checks 2016-08-13 21:40:41 -04:00
Stephen Bourget f12d9aa801 MDL-55551 Blog: Add missing MOODLE_INTERNAL check. 2016-08-12 20:16:04 -04:00
Marina Glancy d29a07030e MDL-55494 report_eventlist: ignore only logstore_legacy 2016-08-12 13:55:38 +08:00
Marina Glancy 951f77006a MDL-55494 tool_monitor: ignore only tool_monitor and logstore_legacy
previously any plugin type ending with _monitor or _legacy would be ignored
2016-08-12 13:40:28 +08:00
Marina Glancy 3d91ad9946 MDL-50586 gradingform_rubric: warn about missing 0-points levels 2016-08-12 13:25:54 +08:00
Rajesh Taneja 39515ba566 MDL-55380 behat: Fixed shared stats definition
Stats definition was being shared between
progress and moodle_progress format which
was causing double counting. Now they both
have there own stats counter definitions
2016-08-12 10:17:00 +08:00
Stephen Bourget dddadf5357 MDL-48773 mod_choice: Lock number of responses if selections are made. 2016-08-11 22:11:57 -04:00
Stephen Bourget 2ce8cf628f MDL-55239 Badges: Additional events for badges 2016-08-11 21:16:35 -04:00
Davo Smith a7b72fb291 MDL-55533 qtype_multianswer: fix feedback for multiresponse 2016-08-11 14:13:58 +01:00
Damyon Wiese a95014f5b4 MDL-55520 assign: Behat test for rescaling max grades bug
Verify the max grade is not silently changed back to 100 when you visit
and save the assignment settings form.
2016-08-11 15:13:31 +08:00
Damyon Wiese c3d4d3f7c1 MDL-55520 forms: Mod grade is changing values back to default
When a field is disabled in the page - no value is sent and modgrade is reverting
to the default. This change prevents the max grade from changing accidentally.
2016-08-11 14:43:05 +08:00
Andrew Nicols 6f302b17b9 weekly release 3.2dev 2016-08-11 13:17:01 +08:00
Andrew Nicols e8bfc39d07 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-08-11 13:16:58 +08:00
Tony Butler 2ee668ec56 MDL-55513 core_filestorage: Touch and test size instead of file_exists()
file_exists() can return false when file exists (in certain scenarios)
2016-08-10 09:35:23 +01:00
Tony Butler e98483d748 MDL-55513 core_filestorage: Pass full path of temp dir to remove_dir() 2016-08-10 09:35:23 +01:00
Andrew Nicols 0b490a1091 Merge branch 'MDL-41126_master' of git://github.com/dg711/moodle 2016-08-10 12:25:45 +08:00
Devang Gaur 2ac7ea8670 MDL-41126 mod_data: optimised data entry generator 2016-08-10 07:58:12 +05:30
Andrew Nicols 431a82bd8d MDL-55333 mod_feedback: Correct constant name 2016-08-10 10:13:07 +08:00
Andrew Nicols 82e025f7e3 Merge branch 'wip-MDL-55333-master' of git://github.com/marinaglancy/moodle 2016-08-10 10:01:05 +08:00
Simey Lameze 6b7a8e6682 MDL-55229 course: Handle invisible course categories 2016-08-10 09:54:17 +08:00
Andrew Nicols c3efb495fd Merge branch 'wip-mdl-52230' of https://github.com/rajeshtaneja/moodle 2016-08-10 09:53:24 +08:00
Rajesh Taneja b68de8cfe7 MDL-52230 mod_data: Fixed fieldname key for number field
AMOS BEGIN
 MOV [namedate, mod_data],[fieldtypelabel, datafield_date]
 MOV [namefile, mod_data],[fieldtypelabel, datafield_file]
 MOV [namecheckbox, mod_data],[fieldtypelabel, datafield_checkbox]
 MOV [namelatlong, mod_data],[fieldtypelabel, datafield_latlong]
 MOV [namemenu, mod_data],[fieldtypelabel, datafield_menu]
 MOV [namemultimenu, mod_data],[fieldtypelabel, datafield_multimenu]
 MOV [namenumber, mod_data],[fieldtypelabel, datafield_number]
 MOV [namepicture, mod_data],[fieldtypelabel, datafield_picture]
 MOV [nameradiobutton, mod_data],[fieldtypelabel, datafield_radiobutton]
 MOV [nametext, mod_data],[fieldtypelabel, datafield_text]
 MOV [nametextarea, mod_data],[fieldtypelabel, datafield_textarea]
 MOV [nameurl, mod_data],[fieldtypelabel, datafield_url]
AMOS END
2016-08-10 09:50:21 +08:00
AMOS bot 8400590f9a Automatically generated installer lang files 2016-08-10 00:04:38 +08:00
Dan Poltawski 298dd2f074 Merge branch 'MDL-55464_m32v1' of https://github.com/sbourget/moodle 2016-08-09 14:20:31 +01:00
Dan Poltawski 017230d576 Merge branch 'MDL-53765-master' of git://github.com/junpataleta/moodle 2016-08-09 13:56:49 +01:00
Dan Poltawski f616fc1b50 Merge branch 'wip-MDL-55425-master' of git://github.com/marinaglancy/moodle 2016-08-09 10:58:40 +01:00
Dan Poltawski a9dbd914a0 Merge branch 'MDL-55246_unoconv' of https://github.com/Syxton/moodle 2016-08-09 10:11:13 +01:00
Andrew Hancox be8c6766fd MDL-55196 mod_data: Refactor import to use update_content function 2016-08-09 09:57:27 +01:00
Dan Poltawski c728048846 Merge branch 'wip-MDL-52230-master' of git://github.com/abgreeve/moodle 2016-08-09 09:49:38 +01:00
Dan Poltawski 6259952eb2 Merge branch 'MDL-54606' of https://github.com/mr-russ/moodle 2016-08-09 09:32:46 +01:00
Dan Poltawski 8eb15b447a Merge branch 'MDL-55390_master-fix' of git://github.com/dmonllao/moodle 2016-08-09 09:29:49 +01:00
Andrew Hancox 421b2d44fe MDL-52230 mod_data: Take fieldname from field:name()
AMOS BEGIN
 CPY [namedate, mod_data],[fieldtypelable, datafield_date]
 CPY [namefile, mod_data],[fieldtypelable, datafield_file]
 CPY [namecheckbox, mod_data],[fieldtypelable, datafield_checkbox]
 CPY [namelatlong, mod_data],[fieldtypelable, datafield_latlong]
 CPY [namemenu, mod_data],[fieldtypelable, datafield_menu]
 CPY [namemultimenu, mod_data],[fieldtypelable, datafield_multimenu]
 CPY [namenumber, mod_data],[fieldtypelable, datafield_number]
 CPY [namepicture, mod_data],[fieldtypelable, datafield_picture]
 CPY [nameradiobutton, mod_data],[fieldtypelable, datafield_radiobutton]
 CPY [nametext, mod_data],[fieldtypelable, datafield_text]
 CPY [nametextarea, mod_data],[fieldtypelable, datafield_textarea]
 CPY [nameurl, mod_data],[fieldtypelable, datafield_url]
AMOS END
2016-08-09 16:22:00 +08:00
Dan Poltawski 372dd3711e Merge branch 'MDL-55225-master' of git://github.com/dpalou/moodle 2016-08-09 09:21:07 +01:00
Dan Poltawski 4aa5e355e6 MDL-51078 report_log: use simpler/faster str_split over preg_split 2016-08-09 09:04:31 +01:00
Dan Poltawski 4d31fc8444 Merge branch 'MDL-51078_m32v3' of https://github.com/sbourget/moodle 2016-08-09 08:57:09 +01:00
David Monllao f3d38863fe MDL-55390 search: is_search_area unit tests
Added extra checking for search manager get_search_area.
2016-08-09 15:51:30 +08:00
Dan Poltawski 05a9c36edc Merge branch 'MDL-54862-master' of git://github.com/dpalou/moodle 2016-08-09 08:06:35 +01:00
Andrew Nicols 5fa90114d7 MDL-55329 behat: Correct typo 2016-08-09 14:41:22 +08:00
Andrew Nicols 8173c3ef7f Merge branch 'wip-mdl-55329' of https://github.com/rajeshtaneja/moodle 2016-08-09 14:26:09 +08:00
Rajesh Taneja e259795c4f MDL-55329 behat: PyStrings should end with : (colon) 2016-08-09 14:22:21 +08:00
Andrew Nicols f1c6194f3d Merge branch 'MDL-55480-master' of git://github.com/FMCorz/moodle 2016-08-09 13:50:55 +08:00
Andrew Nicols 46c31069f3 MDL-55390 core_search: Correct variable name 2016-08-09 13:44:10 +08:00
Andrew Nicols aaf8d55a27 Merge branch 'MDL-55390' of https://github.com/dg711/moodle 2016-08-09 13:42:32 +08:00
Andrew Nicols 6c19db54f9 Merge branch 'MDL-53572-master' of git://github.com/danpoltawski/moodle 2016-08-09 12:52:13 +08:00
Andrew Nicols 19491e68fe MDL-41126 mod_data: Add type hinting 2016-08-09 12:49:01 +08:00
Andrew Nicols d5bd76f4e5 MDL-41126 mod_data: Styling fixes 2016-08-09 12:49:01 +08:00
Andrew Nicols 20195fb46a Merge branch 'wip-mdl-41126' of https://github.com/rajeshtaneja/moodle 2016-08-09 12:47:35 +08:00
Andrew Nicols 95a556c50a Merge branch 'MDL-55465-master' of git://github.com/danpoltawski/moodle 2016-08-09 12:31:46 +08:00
Andrew Nicols a5aa1b6b00 Merge branch 'MDL-53016-master' of https://github.com/xow/moodle 2016-08-09 11:41:09 +08:00
Jun Pataleta d3932d2b51 MDL-53765 core: Deprecate update_module_button functions
First stage deprecation for the functions update_module_button and
core_renderer::update_module_button().
2016-08-09 11:17:43 +08:00
Rajesh Taneja 9f2b916dee MDL_41126 phpunit: Timestamp should be less than 2038
http://php.net/manual/en/datetime.gettimestamp.php#114590
In 32-bit system the unix timestamp will overflow if the date goes beyond year 2038
and this method will return false.
2016-08-09 10:50:07 +08:00
Andrew Nicols 675345475d MDL-55274 mod_chat: Add unit tests for special commands 2016-08-09 10:44:08 +08:00
Rex Lorenzo 6a853f7521 MDL-53765 mod_resource/mod_wiki: Removed update_module_button() 2016-08-09 10:00:54 +08:00
Andrew Nicols fe88f065b7 Merge branch 'MDL-55274-master' of git://github.com/lameze/moodle 2016-08-09 09:05:09 +08:00
Dan Poltawski 763c5b0eb4 Merge branch 'MDL-48856' of https://github.com/mr-russ/moodle 2016-08-08 14:45:06 +01:00
Dan Poltawski 741bd4dfb7 Merge branch 'MDL-55061' of https://github.com/zanekarl17/moodle 2016-08-08 14:33:08 +01:00
Dan Poltawski 49924b335e Merge branch 'MDL-55398_m32v1' of https://github.com/sbourget/moodle 2016-08-08 10:40:42 +01:00
Dan Poltawski 0c4ccf73d9 Merge branch 'wip-MDL-55418-master' of https://github.com/marinaglancy/moodle 2016-08-08 10:33:46 +01:00
Dan Poltawski 1194324e80 Merge branch 'MDL-55453-master' of https://github.com/mrmark/moodle 2016-08-08 09:53:22 +01:00
Andrew Nicols 27a94d591d Merge branch 'MDL-55292' of https://github.com/mr-russ/moodle 2016-08-08 15:25:45 +08:00
Marina Glancy e96c826c3d MDL-55333 mod_feedback: work around MySQL tables in join limit 2016-08-08 14:40:27 +08:00
Marina Glancy 8676e7c3e0 MDL-18592 mod_choice: Allow teachers to make choice for students
Capability to delete reponses becomes capability to delete or modify
responses.

This also resolves MDL-51659 (incorrect events answer_submitted and
answer_updated) by deprecating them and replacing with the answer_created
2016-08-08 14:16:57 +08:00
Andrew Nicols be97f38188 Merge branch 'MDL-3782_multichoice_multiple' of git://github.com/davosmith/moodle 2016-08-08 14:04:53 +08:00
Andrew Nicols 6ab25fa0b2 Merge branch 'MDL-41126' of git://github.com/dg711/moodle 2016-08-08 13:24:25 +08:00
Nick Phillips 376be6ae86 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:30:33 +08:00
fhuebler 269bcf7e97 MDL-55480 competency: Added missing closing tag 2016-08-08 11:00:22 +08:00
Andrew Nicols e6ab38f3ca Merge branch 'MDL-55454' of git://github.com/timhunt/moodle 2016-08-08 10:00:30 +08:00
Dan Poltawski 70db37ba78 MDL-55465 grunt: ensure gruntfile is lint free
Not related to this patch, but fixed it while I was here..
2016-08-05 17:48:24 +01:00
Dan Poltawski a26d36738a MDL-55465 grunt: Add .stylelintignore
Allow it to be generated by grunt ignorefiles
Make grunt use it rather than ignoring things manually
2016-08-05 17:48:24 +01:00
AMOS bot ca0330bf8f Automatically generated installer lang files 2016-08-06 00:04:46 +08:00
Matt Davidson 826bb3547b MDL-55246 assign: convert files with spaces
If a file is sent to unoconv with a filename that contains spaces,
unoconv will fail to produce the intended results.
2016-08-05 08:14:20 -04:00
John Okely 64f631c128 MDL-53016 classloader: Load PSR-0 and PSR-4 separately, add unit tests 2016-08-05 10:11:52 +08:00
Dan Poltawski 91c07d06af MDL-53016 classloader: Load PSR-0 and PSR-4 namespaces dynamically 2016-08-05 10:11:52 +08:00
Marina Glancy e91b3e8282 MDL-55425 user: allow to update another user editor pref 2016-08-05 09:36:00 +08:00
Stephen Bourget 9f03fc3119 MDL-55464 mod_label: Add view permissions 2016-08-04 21:27:02 -04:00
Devang Gaur 400eb2d0e5 MDL-41126 mod_data: added field and entry generator 2016-08-05 04:08:50 +05:30
Devang Gaur 396d6f0a6e MDL-55390 core_search: check if a search area is real 2016-08-05 01:12:21 +05:30
Zane Karl 6db3b6d6a6 MDL-55061 Grade_Export: Grade Export Logging 2016-08-04 11:57:51 -07:00
Russell Smith 7f8a816a7d MDL-54606 session: Add redis handler with locking. 2016-08-04 21:50:11 +10:00
Russell Smith bdca62ac6d 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-04 21:10:03 +10:00
Andrew Nicols 7752762674 weekly release 3.2dev 2016-08-04 09:58:40 +08:00
Andrew Nicols 30c7ec63df Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-08-04 09:58:34 +08:00
Rajesh Taneja 99ad3223a5 MDL-54656 behat: Skip test if db family is not mysql or postgres 2016-08-04 08:46:04 +08:00
Tim Hunt 0e9132e56e MDL-55454 quiz: loses shufflequestion setting restoring old backups 2016-08-03 18:42:51 +01:00
Mark Nielsen d900d61798 MDL-55453 core_lib: Fix usage of js_send_uncached 2016-08-03 10:18:41 -07:00
Davo Smith 946ab15c72 MDL-3782 qtype_multianswer: support 'multiple-answer' subquestions 2016-08-03 08:04:49 +01:00
Andrew Nicols d21942998c Merge branch 'MDL-55367-master-fix' of https://github.com/lameze/moodle 2016-08-03 14:41:47 +08:00
Andrew Nicols 0731226023 Merge branch 'MDL-54941-master-fixes' of https://github.com/andrewnicols/moodle 2016-08-03 14:35:08 +08:00
Andrew Nicols 1a354b81b6 MDL-54941 glossary: Correct variable naming for entry files 2016-08-03 14:33:53 +08:00
Simey Lameze e3df6df02e MDL-55367 report_log: declare log array indexes to avoid errors 2016-08-03 14:23:44 +08:00
Andrew Nicols 079e06adcd Merge branch 'MDL-55355-master-fix' of https://github.com/lameze/moodle 2016-08-03 10:45:15 +08:00
Simey Lameze 472ac2d390 MDL-55355 mod_feedback: Change show chart data step to avoid errors 2016-08-03 10:22:58 +08:00
Simey Lameze 14cc6df5f9 MDL-55355 core: Fix incorrect chart link selector 2016-08-03 10:21:48 +08:00
Eloy Lafuente (stronk7) 4a3a49353c Merge branch 'MDL-24343-master' of git://github.com/andrewnicols/moodle 2016-08-03 03:22:16 +02:00
Andrew Nicols 2c2f4f17c3 MDL-24343 core: Deprecate unzip_file 2016-08-03 09:05:55 +08:00
Eloy Lafuente (stronk7) f00780105c Merge branch 'MDL-55276-master' of git://github.com/junpataleta/moodle 2016-08-03 01:01:51 +02:00
Eloy Lafuente (stronk7) bc7817edab Merge branch 'MDL-54656_m32v3' of https://github.com/sbourget/moodle 2016-08-03 00:50:19 +02:00
Eloy Lafuente (stronk7) a9b1af901b Merge branch 'MDL-55166-master-blocksettings' of git://github.com/mudrd8mz/moodle 2016-08-03 00:33:58 +02:00
Eloy Lafuente (stronk7) 8c7840df32 Merge branch 'MDL-54941-master' of git://github.com/jleyva/moodle 2016-08-03 00:29:45 +02:00
Eloy Lafuente (stronk7) dffeff0a4b Merge branch 'MDL-55322-master' of https://github.com/snake/moodle 2016-08-03 00:12:10 +02:00
Eloy Lafuente (stronk7) 5fe1db394b Merge branch 'MDL-54745_master' of https://github.com/snake/moodle 2016-08-02 23:13:25 +02:00
Eloy Lafuente (stronk7) babfc9886c Merge branch 'MDL-44369_m32v3' of https://github.com/sbourget/moodle 2016-08-02 21:25:24 +02:00
Dan Poltawski de741b1551 MDL-54847 tests: fix unused var 2016-08-02 20:11:27 +01:00
Dan Poltawski 805f1c8d0b Merge branch 'MDL-54847-master-fix' of git://github.com/cameron1729/moodle 2016-08-02 20:09:45 +01:00
Cameron Ball c353674f21 MDL-54847 weblib: Test media attributes individually 2016-08-03 02:53:29 +08:00
Eloy Lafuente (stronk7) f31c65d784 Merge branch 'MDL-55167-master' of git://github.com/danpoltawski/moodle 2016-08-02 19:54:00 +02:00
Dan Poltawski 091a1f9290 MDL-55167 npm: add stylelint-checkstyle-formatter
Useful for automations (like the Moodle prechecker)
2016-08-02 18:52:41 +01:00
Eloy Lafuente (stronk7) 648bbbbbd0 Merge branch 'MDL-55167-master' of git://github.com/danpoltawski/moodle 2016-08-02 18:54:49 +02:00
Eloy Lafuente (stronk7) e0519d032d Merge branch 'MDL-55314-master' of https://github.com/mrmark/moodle 2016-08-02 17:16:07 +02:00
Eloy Lafuente (stronk7) 8a78cb42da Merge branch 'MDL-55315-master' of https://github.com/mrmark/moodle 2016-08-02 17:07:16 +02:00
Eloy Lafuente (stronk7) 2460f3be57 Merge branch 'MDL-55316-master' of https://github.com/mrmark/moodle 2016-08-02 17:01:46 +02:00
Dan Poltawski 8ce58c99f0 MDL-53572 mathjax: always load mathjax using https
It's considered an anti-pattern now to use protocol relative urls and
reduces a setting.

(Also fixed an incorrectly placed 3.1.0 upgrade marker)
2016-08-02 15:55:23 +01:00
Eloy Lafuente (stronk7) 03961256d1 Merge branch 'MDL-55348-master' of git://github.com/dpalou/moodle 2016-08-02 16:48:26 +02:00
Dan Poltawski 8ea6cc2455 Merge branch 'wip-MDL-33741-master' of git://github.com/marinaglancy/moodle 2016-08-02 12:20:11 +01:00
Dan Poltawski bf3b8a35d8 Merge branch 'MDL-45734_m32v4' of https://github.com/sbourget/moodle 2016-08-02 12:17:03 +01:00
Dan Poltawski 2961f1075b Merge branch 'MDL-55357_master' of git://github.com/dmonllao/moodle 2016-08-02 10:54:28 +01:00
Dan Poltawski 25054c40e1 Merge branch 'MDL-54847-master' of git://github.com/cameron1729/moodle 2016-08-02 10:54:21 +01:00
Marina Glancy 134494e07a MDL-55418 behat: correct exception class name 2016-08-02 17:45:12 +08:00
Marina Glancy 145f29034b MDL-55397 block_site_main_menu: eliminate CSS conflict
CSS for '.path-admin .buttons' defines padding, border and background that affected how main menu looks on admin pages
2016-08-02 14:20:18 +08:00
Cameron Ball 37c10287be MDL-54847 MDL-54847 weblib: Support basic HTML media tags 2016-08-02 10:58:48 +08:00
Andrew Nicols 8dc3b7697b Merge branch 'MDL-55355-master' of git://github.com/lameze/moodle 2016-08-02 10:29:30 +08:00
Andrew Nicols 346cf5abb9 Merge branch 'MDL-55352-master-fix' of https://github.com/lameze/moodle 2016-08-02 10:10:38 +08:00
Simey Lameze 30452f23cb MDL-55352 mod_feedback: Change series labels on multi choice rated 2016-08-02 09:23:18 +08:00
Stephen Bourget 7c4dfba89e MDL-51078 report_log: Allow filtering by all changes 2016-08-01 21:13:05 -04:00
Andrew Nicols b34d7e700b Merge branch 'MDL-54879-master' of git://github.com/junpataleta/moodle 2016-08-02 09:10:19 +08:00
Stephen Bourget 952c6e2697 MDL-55398 mod_feedback: prevent direct script access to lib files. 2016-08-01 20:53:46 -04:00
Andrew Nicols 8f33657dae Merge branch 'MDL-55140_m32v2' of https://github.com/sbourget/moodle 2016-08-02 08:48:36 +08:00
Dan Poltawski 6349765c44 Merge branch 'MDL-55360-master-workshopgradepass' of git://github.com/mudrd8mz/moodle 2016-08-01 18:57:00 +01:00
AMOS bot fa76a5b0af Automatically generated installer lang files 2016-08-02 00:04:17 +08:00
Dan Poltawski 4638a26eca MDL-55376 assign: trailing whitespace 2016-08-01 16:07:43 +01:00
Dan Poltawski b9fe2f38d4 Merge branch 'MDL-55376-master' of git://github.com/cameron1729/moodle 2016-08-01 16:07:00 +01:00
Dan Poltawski 65a427cc64 Merge branch 'MDL-55367-master' of git://github.com/lameze/moodle 2016-08-01 14:25:38 +01:00
Dan Poltawski 066e31fd74 Merge branch 'MDL-55323-master' of git://github.com/junpataleta/moodle 2016-08-01 13:58:20 +01:00
Dan Poltawski 307e63cb00 Merge branch 'MDL-55374-master' of git://github.com/damyon/moodle 2016-08-01 13:50:37 +01:00
Dan Poltawski a5cb07477c Merge branch 'MDL-55352-master' of git://github.com/lameze/moodle 2016-08-01 09:30:33 +01:00
Andrew Nicols 1a1771b944 Merge branch 'MDL-53152-master' of git://github.com/junpataleta/moodle 2016-08-01 15:04:17 +08:00
Jun Pataleta 259bf04f8a MDL-53152 theme: Add parentheses to variable calculations 2016-08-01 13:40:38 +08:00
Simey Lameze c5a90a4a5d MDL-55367 report_log: Prevent invalid time to be passed to Charts API 2016-08-01 12:57:57 +08:00
Jake Dallimore 0cced3ced3 MDL-54745 mod_assign: Remove leftover changegradewarning string and js 2016-08-01 12:48:25 +08:00
Andrew Nicols 5ee6125591 Merge branch 'MDL-55266-master' of git://github.com/jleyva/moodle 2016-08-01 10:49:15 +08:00
Andrew Nicols f00d967b43 Merge branch 'MDL-50286_m32v3' of https://github.com/sbourget/moodle 2016-08-01 09:54:06 +08:00
Stephen Bourget 3dee255163 MDL-50286 report_log: Allow filtering by event origin. 2016-07-31 21:45:27 -04:00
Jake Dallimore 243ddbcf50 MDL-55322 assignfeedback_editpdf: Prevent scroll when moving comments
Prevent the default scroll behaviour when using gestures to move
comments on the mobile site.
2016-08-01 09:43:03 +08:00
Simey Lameze 2356c4f6f2 MDL-55355 core: Change chart link text when status change 2016-08-01 09:13:59 +08:00
Marina Glancy 07d4777816 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:12:36 +08:00
Marina Glancy b195a5b331 MDL-33741 file_info: check capability when serving file in coursecat description 2016-08-01 09:12:18 +08:00
Andrew Nicols 78c19679d6 Merge branch 'MDL-55289-master-exsubmission' of git://github.com/mudrd8mz/moodle 2016-08-01 08:46:54 +08:00
Dan Poltawski b4fe4e25b2 MDL-55167 stylelint: disable some rules in grunt
These will be fixed in a later issue
2016-07-30 13:07:54 +01:00
Dan Poltawski 3bd777652e MDL-55167 less: Add some stylelint exceptions to deal with later
1) Use of REM units in course.less
2) CSS hacks (MDL-55142)
2016-07-30 13:07:54 +01:00
Dan Poltawski 16fed4663b MDL-55167 less: fix line over length 2016-07-30 13:07:54 +01:00
Dan Poltawski c73de4d5f1 MDL-55167 less: remove empty blocks 2016-07-30 13:07:54 +01:00
Dan Poltawski 75b68df3ee MDL-55167 less: reformat one line statemets into multiple lines 2016-07-30 13:07:53 +01:00
Dan Poltawski c2d3fe21ef MDL-55167 less: add missing linebreak seperators
Detected by
http://stylelint.io/user-guide/rules/at-rule-empty-line-before/
2016-07-30 13:07:53 +01:00
Dan Poltawski 0e878352f1 MDL-55167 less: fix spacing of selectors
Detected by
http://stylelint.io/user-guide/rules/block-opening-brace-space-before/
http://stylelint.io/user-guide/rules/selector-combinator-space-after/
http://stylelint.io/user-guide/rules/at-rule-name-space-after/
http://stylelint.io/user-guide/rules/selector-list-comma-space-before/
http://stylelint.io/user-guide/rules/media-feature-colon-space-before/
http://stylelint.io/user-guide/rules/selector-list-comma-newline-after/
2016-07-30 13:07:53 +01:00
Dan Poltawski 23bb9e242a MDL-55167 less: fix missing semi colons
Detected by:
http://stylelint.io/user-guide/rules/declaration-block-trailing-semicolon/
2016-07-30 13:07:52 +01:00
Dan Poltawski 418b932843 MDL-55167 less: fix spacing on properties
Detected by stylelint rules:
http://stylelint.io/user-guide/rules/declaration-colon-space-after/
http://stylelint.io/user-guide/rules/declaration-colon-space-before/
http://stylelint.io/user-guide/rules/function-comma-space-after/
http://stylelint.io/user-guide/rules/declaration-bang-space-before/
2016-07-30 13:07:52 +01:00
Dan Poltawski 855fc5d853 MDL-55167 grunt: add stylelint css linting 2016-07-30 13:07:52 +01:00
Stephen Bourget a0e13871cf MDL-45734 Badges: Add additional events 2016-07-29 21:51:05 -04:00
Stephen Bourget 756e3c55c0 MDL-44369 Calendar: add events for subscriptions 2016-07-29 08:56:20 -04:00
Cameron Ball 867b413181 MDL-55376 mod_assign: Fix bug stopping admin from editing submissions 2016-07-29 19:05:22 +08:00
David Monllao 2a36babbc8 MDL-55357 search: Contents include UTF8 characters, adding u modifier 2016-07-29 14:36:17 +08:00
Simey Lameze 9698ca2d20 MDL-55352 core: Label values series should override tooltip 2016-07-29 13:22:59 +08:00
Damyon Wiese fca211bf05 MDL-55374 mod_assign: Force utf-8 for DOMDocument
This prevents charset issues on some sites.
2016-07-29 10:43:25 +08:00
Andrew Nicols 56b9e796af MDL-24343 core: Deprecate zip_files 2016-07-29 08:15:16 +08:00
AMOS bot 72da3d5ef2 Automatically generated installer lang files 2016-07-29 00:05:37 +08:00
Juan Leyva 45fec98358 MDL-55266 user: New WS core_user_get_user_preferences 2016-07-28 12:08:58 +02:00
Juan Leyva 145900708c MDL-54941 webservice: Refactor file handling in WS
This commit reduces boilerplate code.
It also forces WS returning files to always return the following
fields: filename, filepath, mimetype, filesize, timemodified and
fileurl.
2016-07-28 12:07:04 +02:00
Dani Palou 3b40103c2f MDL-55348 wiki: Convert 'section' WS params to PARAM_RAW 2016-07-28 10:35:24 +02:00
David Mudrák aea8c5541e 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:43 +02:00
David Mudrák 3c4cc10eff 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:43 +02:00
David Mudrák ebf0598e21 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:43 +02:00
David Mudrák 87b5c584fb MDL-55289 workshop: Fix files processing in example submissions
While testing the issue MDL-55289 I realized that attaching files to
workshop example submissions does not work at all and throws an error.

The reason was that in MDL-50794 (996f7e82), the variables $contentopts
and $attachmentopts were replaced with the result of the methods
submission_content_options() and submission_attachment_options().
But I forgot to perform the full refactoring in exsubmission.php too.

Attached behat test should cover both issues on this branch.
2016-07-28 09:51:16 +02:00
David Mudrák 21d49a3f93 MDL-55289 workshop: Include repository/lib.php to use its constants
As a result of MDL-41556 (146893d6), the repository/lib.php was included
in submission.php so that its constant FILE_INTERNAL could be used in
field options. Recent development in MDL-50794 (996f7e8) moved the
options declaration to standalone methods but we forgot to check they
work in exsubmission.php too.

This patch moves the repository/lib.php inclusion to where the
library is actually needed.

Additionally it unifies how options are set for overall feedback content
and overall feedback attachment fields.
2016-07-28 09:51:16 +02:00
Jun Pataleta fe15136d37 MDL-55323 enrol_lti: Remove unused required parameter 2016-07-28 14:44:58 +08:00
Jun Pataleta 7a05bc92c9 MDL-55276 html: New down arrow entity output $OUTPUT->darrow 2016-07-28 14:43:11 +08:00
Jun Pataleta 653b8ef24b MDL-54879 mod_lti: Add fallback options for error message upon failure 2016-07-28 14:38:29 +08:00
David Monllao d1a3ea62ef weekly release 3.2dev 2016-07-28 12:07:20 +08:00
David Mudrák 0d7c417175 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:15:48 +02:00
Mark Nielsen 123cc912ec MDL-55314 mod_lti: Several fixes to lti_load_cartridge
* Fixed XML loading when there is an error
* Fixed exception thrown by lti_load_cartridge
* By default, don't allow LTI mod generator to
  use a toolurl as that results in a cURL call.
2016-07-27 09:08:21 -07:00
Dani Palou 33ef5cdcf9 MDL-54862 quiz: Return question blocked status in WS 2016-07-27 15:38:01 +02:00
Dani Palou 38b1f8fd99 MDL-55225 assign: Format assignment submission text in WS 2016-07-27 13:30:47 +02:00
Stephen Bourget 2ff504c6b2 MDL-55140 mod_choice: Allow independent open and close dates 2016-07-27 07:18:54 -04:00
Dan Poltawski fdf50e35b6 Merge branch 'MDL-55287_master-fix' of git://github.com/dmonllao/moodle 2016-07-27 07:58:33 +01:00
David Monllao e240a6132d MDL-55287 search: Custom error message if solr extension is not installed
Correcting engine is not installed lang string as well.
2016-07-27 13:57:15 +08:00
David Monllao 52872f66eb Merge branch 'wip-mdl-54987' of https://github.com/rajeshtaneja/moodle 2016-07-27 13:17:33 +08:00
Mark Nelson e1f53120dd MDL-54984 core_cache: corrected exception message 2016-07-27 11:42:47 +08:00
Rajesh Taneja 35f7cf429c MDL-54987 behat: Fixed feedback scenarios to display chart data
Now chart data is not visible by default,
we need to click 'Show chart data' to view.
Also, extra space is not required between
% as it's done by chart library
2016-07-27 11:00:54 +08:00
Eloy Lafuente (stronk7) bdce994c5f Merge branch 'MDL-50267-master' of git://github.com/junpataleta/moodle 2016-07-27 00:59:19 +02:00
Eloy Lafuente (stronk7) ddf1d5c692 Merge branch 'MDL-55244-master' of git://github.com/danpoltawski/moodle 2016-07-27 00:19:40 +02:00
Eloy Lafuente (stronk7) 7b146b5005 Merge branch 'MDL-55245-master' of https://github.com/lucisgit/moodle 2016-07-26 23:44:54 +02:00
Eloy Lafuente (stronk7) e90c60696a Merge branch 'wip-MDL-51735-master' of git://github.com/abgreeve/moodle 2016-07-26 20:15:13 +02:00
Eloy Lafuente (stronk7) f9c46195e4 Merge branch 'MDL-54657_m32v1' of https://github.com/sbourget/moodle 2016-07-26 19:56:20 +02:00
Eloy Lafuente (stronk7) 7647f3887f Merge branch 'MDL-54801-master' of git://github.com/jleyva/moodle 2016-07-26 19:54:53 +02:00
Eloy Lafuente (stronk7) 17b2cd6839 MDL-55046 assign: document the new return values 2016-07-26 19:45:18 +02:00
Eloy Lafuente (stronk7) e23faa4c81 Merge branch 'MDL-55046-master' of git://github.com/dpalou/moodle 2016-07-26 19:40:52 +02:00
Eloy Lafuente (stronk7) 8b13e09595 Merge branch 'wip-mdl-55337' of https://github.com/rajeshtaneja/moodle 2016-07-26 13:12:07 +02:00
Rajesh Taneja 4505459083 MDL-55337 behat: Added 1 sec delay between post
Ensure post is created at different timestamp, else
returned posts will be different and test fails.
This will happen on a fast machine.
2016-07-26 18:59:51 +08:00
Dan Poltawski 773a11519d Merge branch 'MDL-55278_master' of https://github.com/dmonllao/moodle 2016-07-26 11:57:09 +01:00
Dan Poltawski be5837d797 Merge branch 'MDL-54987-master-fixes' of https://github.com/lameze/moodle 2016-07-26 09:55:33 +01:00
Dan Poltawski 3624777b24 Merge branch 'MDL-54984-master' of git://github.com/junpataleta/moodle 2016-07-26 09:52:42 +01:00
Dan Poltawski 970c8e5ba4 MDL-49533 version: bump 2016-07-26 09:41:24 +01:00
Dan Poltawski e799990454 Merge branch 'MDL-49533-master' of git://github.com/andrewnicols/moodle 2016-07-26 09:40:17 +01:00
Simey Lameze e747d65514 MDL-54987 mod_choice: Fix notices and behat failures 2016-07-26 16:24:35 +08:00
Dan Poltawski d0733c7d69 Merge branch 'MDL-50051-master' of git://github.com/junpataleta/moodle 2016-07-26 09:14:45 +01:00
Dan Poltawski 6d5a7eee0c Merge branch 'MDL-54988-master' of git://github.com/junpataleta/moodle 2016-07-26 09:13:10 +01:00
Jun Pataleta fb77333453 MDL-50267 lang: Remove deprecated strings in 2.9 2016-07-26 16:03:32 +08:00
David Monllao 72e92d0ac2 Merge branch 'MDL-55325-master' of https://github.com/xow/moodle 2016-07-26 10:33:21 +08:00
David Monllao 837cec00f9 Merge branch 'wip-mdl-55091-m' of https://github.com/rajeshtaneja/moodle
Conflicts:
	lib/upgrade.txt
2016-07-26 10:14:30 +08:00
Rajesh Taneja 52f3e060e4 MDL-55091 phpunit: Following has been deprecated.
1. getMock()
2. setExpectedException()
3. checkForUnintentionallyCoveredCode renamed to beStrictAboutCoversAnnotation
4. beStrictAboutTestSize renamed to enforceTimeLimit
5. UnitTestCase class is now fully removed.
2016-07-26 10:11:30 +08:00
David Monllao 1a9c3d587f Merge branch 'wip-MDL-55183-master' of git://github.com/abgreeve/moodle
Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
2016-07-26 09:52:51 +08:00
Andrew Nicols f1f94da496 MDL-49533 repository: Remove the Alfresco plugin
The SDK that this plugin was designed around is not compatible with recent
versions of Alfresco so the decisio has been made to move the repository to
the plugins database.
2016-07-26 08:57:34 +08:00
David Monllao db044a0997 Merge branch 'MDL-55251_m32v1' of https://github.com/sbourget/moodle 2016-07-26 05:12:00 +08:00
David Monllao 8bb1a64ad5 Merge branch 'MDL-55283-master' of git://github.com/andrewnicols/moodle 2016-07-26 05:04:03 +08:00
David Monllao 286a391b86 MDL-45753 test: Adding core_my testsuite 2016-07-26 04:35:02 +08:00
David Monllao fa2e488520 Merge branch 'MDL-55254_m32v3' of https://github.com/sbourget/moodle 2016-07-26 04:27:48 +08:00
David Monllao 46ac7b07d4 MDL-45753 events: Fix event context 2016-07-26 04:05:18 +08:00
David Monllao d6a85f46f7 Merge branch 'MDL-45753_m32v4' of https://github.com/sbourget/moodle
Conflicts:
	version.php
2016-07-26 04:03:14 +08:00
David Monllao 854695ee3f Merge branch 'MDL-51242-master' of git://github.com/andrewnicols/moodle 2016-07-26 02:40:35 +08:00
Jun Pataleta d6806d8eaf MDL-54984 cache: Added todo tags to items for 3.3 deprecations 2016-07-26 00:46:46 +08:00
Jun Pataleta 329642b9c5 MDL-54984 cache: 3.2 final deprecations 2016-07-26 00:46:37 +08:00
Jun Pataleta 7a07d34db8 MDL-54988 core: Final deprecation for lib/modinfolib methods
Final deprecation of the following methods:
- course_modinfo::build_section_cache()
- cm_info::get_deprecated_group_members_only()
- cm_info::is_user_access_restricted_by_group()

Plus throw coding exception for direct calls of the following:
- cm_info::get_url()
- cm_info::get_content()
- cm_info::get_extra_classes()
- cm_info::get_on_click()
- cm_info::get_custom_data()
- cm_info::get_after_link()
- cm_info::get_after_edit_icons()
- cm_info::obtain_dynamic_data()
2016-07-26 00:07:25 +08:00
Dan Poltawski 5d21ea9d3b Merge branch 'MDL-55287_master' of git://github.com/dmonllao/moodle 2016-07-25 15:55:48 +01:00
Dan Poltawski 12811fcc34 Merge branch 'MDL-55284-master' of git://github.com/damyon/moodle 2016-07-25 15:53:41 +01:00
Dan Poltawski c41ec1f55a Merge branch 'MDL-54987-master' of git://github.com/danpoltawski/moodle 2016-07-25 15:27:23 +01:00
Dan Poltawski 7eb71011dd MDL-54987 charts: fix method name to match coding style 2016-07-25 11:21:37 +01:00
Dan Poltawski ce323331f1 MDL-54987 charts: fix style issues 2016-07-25 11:21:31 +01:00
Simey Lameze 32917a9561 MDL-54987 core: final charts project polishing 2016-07-25 10:43:35 +01:00
Simey Lameze 1850e97e37 MDL-55208 mod_choice: Convert choice results chart to new library
Part of MDL-54987 epic.
2016-07-25 10:43:33 +01:00
Simey Lameze 7cd65bcb76 MDL-55308 mod_feedback: Convert analysis chart to the new library
Part of MDL-54987 epic.
2016-07-25 10:43:31 +01:00
Simey Lameze 08501958d3 MDL-55262 core: Add support for series values labels
Part of MDL-54987 epic.
2016-07-25 10:43:28 +01:00
Simey Lameze 5a6da80a5b MDL-55037 core: Define a set of default colors
Part of MDL-54987 epic.
2016-07-25 10:43:26 +01:00
Simey Lameze 01440dccb4 MDL-55219 core: Add support for horizontal bars
Part of MDL-54987 epic.
2016-07-25 10:43:24 +01:00
Simey Lameze 2aef5d2fd8 MDL-55025 report_stats: Use the new charting library
Part of MDL-54987 epic.
2016-07-25 10:43:22 +01:00
Simey Lameze f0f1e0310e MDL-55110 core: Add support for smooth lines
Part of MDL-54987 epic.
2016-07-25 10:43:20 +01:00
Frederic Massart cc8438d112 MDL-55146 core: Support custom labels on X axis
Note that this is still limited as the number of labels is locked
to the number of elements in the series.

Part of MDL-54987 epic.
2016-07-25 10:43:14 +01:00
Frederic Massart 2b01f9157a MDL-55146 core: Support multiple axes in charts
Part of MDL-54987 epic.
2016-07-25 10:43:12 +01:00
Frederic Massart 40912196a8 MDL-55089 core: Charts are displayed with a data table by default
Part of MDL-54987 epic.
2016-07-25 10:43:10 +01:00
Frederic Massart 4db37f3ac1 MDL-55039 core: First implementation of HTML table rendering for charts
Part of MDL-54987 epic.
2016-07-25 10:43:08 +01:00
Frederic Massart ccaa2b347d MDL-55038 core: Support multiple colours in the same series
Part of MDL-54987 epic.
2016-07-25 10:43:06 +01:00
Frederic Massart baea27e4d3 MDL-55026 quiz_statistics: Convert charts to the new library
Part of MDL-54987 epic.
2016-07-25 10:43:03 +01:00
Frederic Massart ec882623f3 MDL-55026 quiz_overview: Convert chart to the new library
Part of MDL-54987 epic.
2016-07-25 10:43:01 +01:00
Frederic Massart 601da0e693 MDL-55108 core: Document the charting library
Part of MDL-54987 epic.
2016-07-25 10:42:59 +01:00
Simey Lameze 6ce35fe0e1 MDL-55029 report_courseoverview: Convert report chart to the new library
Part of MDL-54987 epic.
2016-07-25 10:42:57 +01:00
Frederic Massart 681e1a7652 MDL-55092 core: Add support for custom Y axis labels
Part of MDL-54987 epic.
2016-07-25 10:42:54 +01:00
Frederic Massart c685dfabdc MDL-54989 scormreport_graphs: Use the new charting library
Part of MDL-54987 epic.
2016-07-25 10:42:52 +01:00
Frederic Massart 9b28bf0b83 MDL-55045 core: Remove the hardcoded canvas tag for chart.js
Part of MDL-54987 epic.
2016-07-25 10:42:49 +01:00
Simey Lameze 6cf5e0f263 MDL-54998 report_log: Convert log report graphs to the new API
Part of MDL-54987 epic.
2016-07-25 10:42:47 +01:00
Frederic Massart 8bc4583fc6 MDL-55031 core: Series color was not being exported
Part of MDL-54987 epic.
2016-07-25 10:42:44 +01:00
Frederic Massart 299e9aba66 MDL-55030 core: Bar charts defaults to using a Y axis starting at 0
Part of MDL-54987 epic.
2016-07-25 10:42:42 +01:00
Frederic Massart 826ade18f1 MDL-55030 core: Call class setter when creating a new axis
Part of MDL-54987 epic.
2016-07-25 10:42:39 +01:00
Frederic Massart a6c6faefb7 MDL-55030 core: Support setting defaults in charts
Part of MDL-54987 epic.
2016-07-25 10:42:37 +01:00
Frederic Massart 46de49dc9f MDL-55030 core: Support min and max in axes
Part of MDL-54987 epic.
2016-07-25 10:42:34 +01:00
Frederic Massart 909c5cf207 MDL-55016 core: Support stepSize in chart axes
Part of MDL-54987 epic.
2016-07-25 10:42:32 +01:00
Frederic Massart f5474e65fc MDL-55015 core: Add support for axis label in charts
Part of MDL-54987 epic.
2016-07-25 10:42:28 +01:00
Simey Lameze 858cbfdfd3 MDL-55013 core: add support for title
Part of MDL-54987 epic.
2016-07-25 10:42:19 +01:00
John Okely 4c3472a55c MDL-55325 mod_lti: Use .on('load') instead of .load()
Necessary after MDL-50937 JQuery upgrade to 3.1
2016-07-25 17:31:41 +08:00
Dan Poltawski a3ee51fe44 Merge branch 'wip-MDL-54796-master-v2' of git://github.com/abgreeve/moodle 2016-07-25 10:28:27 +01:00
Stephen Bourget 530d553580 MDL-55252 mod_chat: prevent direct script access to lib files. 2016-07-25 09:42:36 +01:00
Stephen Bourget 73b1d580aa MDL-55253 mod_choice: prevent direct script access to lib files. 2016-07-25 09:40:38 +01:00
Stephen Bourget c4b70cfc61 MDL-55255 mod_data: prevent direct script access to lib files. 2016-07-25 09:39:57 +01:00
Dan Poltawski 3a0bc0fdc4 MDL-55244 js: build changes
There should be no changes to minified code
2016-07-25 07:58:05 +01:00
Dan Poltawski bc8b6dc652 MDL-55244 js: fix various lint warnings in yui
* Incorrect brace style
* Empty functions
* Multiple var statemnts
2016-07-25 07:53:05 +01:00
Dan Poltawski 5bb4f444de MDL-55244 js: fix problems with eslint --fix
eslint --fix '**/yui/src/**/*.js'
2016-07-25 07:53:05 +01:00
Adrian Greeve 89644a400d MDL-51735 mod_lesson: A lesson with no content shows a message.
Before it would show an error.
2016-07-25 10:48:14 +08:00
Adrian Greeve b559497393 MDL-54796 forms: Editor restore event created.
The editor restore event is currently being subscribed
to by the change checkers to refresh their savedstate.
2016-07-25 10:42:58 +08:00
Adrian Greeve c17c25db05 MDL-55183 editor_atto: Fix requires error.
When using a different theme and removing an editor
plugin such as the equation plugin, atto will display
an error about a missing dependency.

A thank you to Anthony Forth for providing this patch.
2016-07-25 09:03:59 +08:00
Stephen Bourget 12306a9f0f MDL-55254 mod_data: Add view permissions 2016-07-24 21:00:57 -04:00
Mark Nielsen 3077ae6004 MDL-55315 mod_lti: Fix Nginx 405 error
It appears that Nginx doesn't allow POST
to static files.  So rename the fixture from
a HTML file to a PHP file.
2016-07-22 11:39:42 -07:00
Mark Nielsen 2b509dbc01 MDL-55316 core_completion: Expand fields for Behat
This only happens if you create the course with
one user and then try to enable completion
with another user.
2016-07-22 11:29:27 -07:00
Tony Butler b37b6cd8ef MDL-55245 assignfeedback_editpdf: Enable text in comments to be selected
Only move comment boxes if 'select' tool is selected, enabling users to
drag-select text within comments using the 'comment' tool.
2016-07-22 16:39:48 +01:00
Frederic Massart 357ec2d584 MDL-54987 core: New charting API 2016-07-22 17:33:30 +08:00
Frederic Massart 45feaec83b MDL-54987 core: Pull Chart.js in core 2016-07-22 17:33:30 +08:00
Russell Smith e868574f02 MDL-48856 dmllib: Adjust performance improvements. 2016-07-22 11:52:41 +10:00
David Monllao 379ca98642 MDL-55287 search: Check that an engine has been selected 2016-07-21 18:40:29 +02:00
David Monllao 0bd8383a8b MDL-55278 search: Updating references to area namespace 2016-07-21 18:38:18 +02:00
David Monllao 8fa1810cec MDL-55278 search: Get rid of core_search\area namespace 2016-07-21 18:38:18 +02:00
Eloy Lafuente (stronk7) 90a8bdbfc0 weekly release 3.2dev 2016-07-21 11:44:48 +02:00
Eloy Lafuente (stronk7) 3343737171 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-07-21 11:44:42 +02:00
Stephen Bourget 94c7e9f1de MDL-45753 Events: Add view and reset events for the dashboard 2016-07-20 22:50:55 -04:00
Tony Levi 73d37b20ed MDL-48856 pgsql: Performance tuning 2016-07-21 10:31:41 +10:00
Rajesh Taneja 165b70a16a MDL-55091 phpunit: Add support for findNodes, as they are now deprecated
https://github.com/sebastianbergmann/phpunit/issues/1292
2016-07-21 07:08:47 +08:00
Rajesh Taneja ef1d90480d MDL-55091 phpunit: Use latest phpunit 5.4.x 2016-07-21 07:08:46 +08:00
Damyon Wiese 771f8df153 MDL-55284 assign: Add missing webservice param 'onlyids'
Mod assign list_participants webservice is supposed to accept a param to limit the
returned data to only show user ids and not the full user details. It is missing
and so the full user records are fetched every time. This has a major impact on the
performance of the new assignment grading interface.
2016-07-20 15:18:01 +08:00
Andrew Nicols 78c09b9a60 Merge branch 'wip-mdl-51758' of https://github.com/rajeshtaneja/moodle 2016-07-20 13:06:22 +08:00
Rajesh Taneja 01082b50f0 MDL-51758 libraries: Reworded password.php not required 2016-07-20 12:55:09 +08:00
Andrew Nicols b2c2d18b28 MDL-55283 javascript: Check dir is readable before traversing them 2016-07-20 12:16:13 +08:00
Andrew Nicols 4cb32b2b52 Merge branch 'MDL-50937-fixes' of git://github.com/andrewnicols/moodle 2016-07-20 11:20:08 +08:00
Andrew Nicols eb3839dffd MDL-50937 tag: Stop using deprecated context
$.context has been deprecated for a long time - since before this code was
written. Unfortunately jQuery does not emit anything for deprecated code so
this was not picked up sooner.
2016-07-20 11:19:29 +08:00
Andrew Nicols 3c4778f5d2 MDL-50937 theme: langmenu should not have a href value 2016-07-20 11:19:23 +08:00
AMOS bot bde229738d Automatically generated installer lang files 2016-07-20 00:05:02 +08:00
Dan Poltawski ff0039689b Merge branch 'MDL-31356_master' of https://github.com/StudiUM/moodle 2016-07-19 13:01:34 +01:00
Eloy Lafuente (stronk7) 4feed61702 Merge branch 'MDL-55220-master' of git://github.com/jleyva/moodle 2016-07-19 13:21:36 +02:00
Eloy Lafuente (stronk7) a900c680ba Merge branch 'wip-mdl-55258-m' of https://github.com/rajeshtaneja/moodle 2016-07-19 12:13:00 +02:00
Dan Poltawski 29dcec6803 Merge branch 'MDL-55206-master' of git://github.com/junpataleta/moodle 2016-07-19 10:52:13 +01:00
Dan Poltawski 6851244452 MDL-50937 jquery: remove instances of migrate plugin 2016-07-19 10:34:17 +01:00
Dan Poltawski 11caf2e2e1 Merge branch 'MDL-50937-master' of git://github.com/damyon/moodle 2016-07-19 10:27:10 +01:00
Dan Poltawski 2c85472688 Merge branch 'MDL-54915-master' of http://github.com/damyon/moodle 2016-07-19 09:38:23 +01:00
Dan Poltawski 738430b863 Revert "Merge branch 'MDL-54915-master' of git://github.com/andrewnicols/moodle"
This reverts commit fa57043eb6, reversing
changes made to 36a19ecc26.
2016-07-19 09:37:01 +01:00
David Monllao 7bd5ce57d8 Merge branch 'MDL-51758-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/upgrade.txt
2016-07-19 09:29:41 +02:00
David Monllao 8942afa981 Merge branch 'MDL-55141' of https://github.com/creator23/moodle 2016-07-19 08:58:09 +02:00
David Monllao 3e2b1e179f Merge branch 'MDL-49599-master' of git://github.com/andrewnicols/moodle 2016-07-19 08:53:28 +02:00
Andrew Nicols b34ed08a12 MDL-49599 core: Fully deprecate the boxclient class 2016-07-19 14:44:51 +08:00
David Monllao fa8f88095c Merge branch 'MDL-55157_m32v6' of https://github.com/sbourget/moodle 2016-07-19 08:41:29 +02:00
Jun Pataleta 3046ee9f0d MDL-50051 core: Update todo tag comment for get_referer 2016-07-19 13:40:09 +08:00
Jun Pataleta 2a72354167 MDL-50051 core: Add deprecated tags to deprecated methods 2016-07-19 13:39:39 +08:00
Damyon Wiese 8d00afb12c MDL-54915 templates: Fix async rendering of js blocks
Mustache JS helper can overwrite JS blocks when using nested templates.

Each call to render should have it's own scope.
2016-07-19 12:55:50 +08:00
Stephen Bourget 05fbbb7731 MDL-55157 mod_feedback: Deprecate unused strings 2016-07-18 22:08:47 -04:00
Stephen Bourget b28753f5bf MDL-55157 mod_feedback: Course reset should update dates 2016-07-18 22:08:00 -04:00
Eloy Lafuente (stronk7) 5281e6a082 MDL-52544 oracle: small tweaks
This commit just:

- Moves the null => '' to better place, restricting it to PHP >= 7.0
  (bug https://bugs.php.net/bug.php?id=72524)
- Adds a couple of notes here and there.
- Changes some small details to keep the file using the same coding.
2016-07-19 04:04:32 +02:00
Eloy Lafuente (stronk7) 74ec2dd63d Merge branch 'MDL-52544-master' of git://github.com/damyon/moodle 2016-07-19 04:04:18 +02:00
Damyon Wiese d863344ad7 MDL-50937 jquery: Upgrade to 3.1, remove migrate plugins 2016-07-19 09:27:40 +08:00
Rajesh Taneja ddf36bf5aa MDL-55258 behat: Set focus on button before clicking it
Set the focus on button to ensure it is in
viewport before clicking on it.
2016-07-19 09:23:44 +08:00
Eloy Lafuente (stronk7) 9e91ff52c9 Merge branch 'MDL-51410_m32v2' of https://github.com/sbourget/moodle 2016-07-19 02:31:24 +02:00
Eloy Lafuente (stronk7) f91d6783aa Merge branch 'MDL-55207-configiplist-errors' of https://github.com/brendanheywood/moodle 2016-07-19 02:26:58 +02:00
Eloy Lafuente (stronk7) b697ad409b Merge branch 'wip-mdl-55111' of https://github.com/rajeshtaneja/moodle 2016-07-19 02:09:17 +02:00
David Monllao db26654b70 Merge branch 'MDL-55173-master' of git://github.com/andrewnicols/moodle 2016-07-19 01:48:28 +02:00
David Monllao b3b1833097 Merge branch 'MDL-54943-master' of git://github.com/jleyva/moodle
Conflicts:
	version.php
2016-07-19 01:19:13 +02:00
David Monllao 2f8da1e814 Merge branch 'MDL-55158_m32v3' of https://github.com/sbourget/moodle 2016-07-19 00:50:41 +02:00
Stephen Bourget 87d6e85a9a MDL-55158 mod_data: Add calendar events for database activities 2016-07-18 18:35:37 -04:00
David Monllao c08a7eebb6 Merge branch 'wip-MDL-55126-master' of git://github.com/abgreeve/moodle
Conflicts:
	lib/upgrade.txt
2016-07-18 20:50:47 +02:00
David Monllao 8c00f1cbc7 Merge branch 'MDL-55200_master' 2016-07-18 20:41:07 +02:00
Steffen Pegenau 51ed23519a MDL-55200 question type ddmarker: Display coordinates on image
To make the creation of dropzones easier, the mouse coordinates are shown.
2016-07-18 20:40:49 +02:00
David Monllao f60a16ad9d Merge branch 'MDL-55162-master' of git://github.com/jleyva/moodle
Conflicts:
	mod/assign/externallib.php
2016-07-18 20:35:50 +02:00
David Monllao d66e54b021 Merge branch 'MDL-55161-m' of https://github.com/micaherne/moodle 2016-07-18 20:00:18 +02:00
David Monllao 90f3675d9c Merge branch 'MDL-55163-master' of git://github.com/jleyva/moodle 2016-07-18 19:42:46 +02:00
Dan Poltawski ae76b9ed17 Merge branch 'MDL-14448_m32v1' of https://github.com/sbourget/moodle 2016-07-18 15:06:22 +01:00
Dan Poltawski 3ed88885e5 Merge branch 'wip-mdl-55174' of https://github.com/rajeshtaneja/moodle 2016-07-18 14:49:48 +01:00
Dan Poltawski bbb826f48f Merge branch 'MDL-55190-master' of git://github.com/merrill-oakland/moodle 2016-07-18 14:21:03 +01:00
Dan Poltawski 151aaa2654 Merge branch 'MDL-55012-master' of git://github.com/damyon/moodle 2016-07-18 13:55:50 +01:00
Dan Poltawski 2dbaaa9bdc Merge branch 'MDL-54963_master' of git://github.com/dmonllao/moodle 2016-07-18 13:38:36 +01:00
Dan Poltawski eab9f3d32e Merge branch 'wip-mdl-54977' of https://github.com/rajeshtaneja/moodle 2016-07-18 13:27:48 +01:00
Dan Poltawski 5e60c1d436 Merge branch 'MDL-55240-master' of git://github.com/junpataleta/moodle 2016-07-18 10:51:06 +01:00
Dan Poltawski fa57043eb6 Merge branch 'MDL-54915-master' of git://github.com/andrewnicols/moodle 2016-07-18 09:17:53 +01:00
Dani Palou 9ac99220c5 MDL-55046 assign: Return submissionstatement in get_assignments 2016-07-18 09:22:12 +02:00
Rajesh Taneja ce78e33a84 MDL-55174 core_tests: Use proper itemid while creating file 2016-07-18 10:29:23 +08:00
Andrew Nicols 21e8b48d13 MDL-51758 libraries: Remove password_compat library from core 2016-07-18 10:06:57 +08:00
Andrew Nicols d16185fd4f MDL-55173 mod_forum: Perform final deprecations 2016-07-18 08:42:33 +08:00
Andrew Nicols 9a60d5f98f MDL-54915 core: JS Blocks must not used shared variables
The JS blocks in a template must _not_ use a shared variable as they can be
executed asynchronously and complete in any order.

Instead it is stored in the only local variable available - the current
context.

Since the context can be passed in from elsewhere, we namespace it to
reduce the chance of collission.
2016-07-18 08:29:52 +08:00
Stephen Bourget 0f256bc05e MDL-55251 mod_chat: Add view permissions 2016-07-15 16:13:06 -04:00
AMOS bot 05ce84fbc1 Automatically generated installer lang files 2016-07-16 00:05:30 +08:00
Jun Pataleta 49ccaee5a9 MDL-55206 admin: Some code cleanup
* Removed unnecessary TODOs.
* Changed message prompt case to sentence case.
2016-07-15 14:44:35 +08:00
Jun Pataleta 36b88f2486 MDL-55206 admin: Remove div tags in password policy error message 2016-07-15 14:40:54 +08:00
Brendan Heywood 685e5b002c MDL-55207 adminlib: Improve help and validation errors for configiplist 2016-07-15 16:38:54 +10:00
Rajesh Taneja fc2e137750 MDL-55174 core_testing: Use proper directory separator
While searching for existing files if directory
separator is not correct then original files
and directories will be deleted. So use DIRECTORY_SEPARATOR.
2016-07-15 13:51:41 +08:00
Damyon Wiese 91445c63f8 MDL-55012 Atto: no style attrs on paste
Specifically on paste - we don't need all the random style attributes
from content on the clipboard. When you copy from a webpage - the browser
inlines all the styles from the page so that the pasted content will look
like the place it was copied from. But this is never what you want - you
want the content on paste, but with no special styling.
2016-07-15 13:34:11 +08:00
Jun Pataleta 667cec9ba1 MDL-55240 editpdf: Revert changes in MDL-54772
* Revert rendering of annotations and comments back to the
  drawing region.
* Bind events to stamp annotation when editing only.
2016-07-15 10:36:45 +08:00
Anant e370e069a7 MDL-55141 task: Add CLI debugging for tasks 2016-07-14 09:24:52 -07:00
Serge Gauthier cc6b92483a MDL-31356 enrol_imsenterprise: Continue development for added features
* Add the possibility to make it works as before (with categrory name or idnumber).
    * Add possibility to specify nested categories by name or idnumber.
    * Fix error in core_course_courselib_testcase::test_course_created_event because dependency with imsenterprise
2016-07-14 09:36:03 -04:00
Serge Gauthier 08b29336b9 MDL-31356 enrol_imsenterprise: merge with moodle3.2 2016-07-14 09:36:03 -04:00
Dan Poltawski 81e849bc71 MDL-31356 enrol_imsenterprise: add additional test coverage 2016-07-14 09:36:03 -04:00
Dan Poltawski ecf6a0ab5b MDL-31356 enrol_imsenterprise: Fix behaviour with course idnumber
When not set we shouldn't throw a warning
2016-07-14 09:36:03 -04:00
Brian Biggs 93fdbb4292 MDL-31356 enrol_imsenterprise: New Features
* Feature 1: Allow nested categories when creating courses.
* Feature 2: Allow updates to course Full Name and Short Name.
* Feature 3: Allow setting authentication type for users.
* Feature 4: Allow updates to users.

Also added tests and updated course update routines so it doesn't
muck with DB directly.
2016-07-14 09:36:02 -04:00
David Monllao 36a19ecc26 weekly release 3.2dev 2016-07-14 11:28:40 +02:00
David Monllao 78f5b1841f Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-07-14 11:28:37 +02:00
Juan Leyva 55bb8189ba MDL-55220 forum: Add string filtering in WS
The following external functions now filter the discussion and post
name and subject.
- get_forum_discussions_paginated
- get_forum_discussion_posts
2016-07-14 09:10:07 +01:00
Stephen Bourget 25d8a63a4e MDL-54657 Behat: Add tests for section_links block 2016-07-13 21:38:31 -04:00
Stephen Bourget ca97b358bb MDL-14448 mod_lesson: Add view permissions 2016-07-13 19:10:06 -04:00
Eric Merrill e0867b2222 MDL-55190 search: Limit search to non-files if disabled 2016-07-13 06:05:33 -04:00
Michael Aherne b4beaed931 MDL-55161 assign: Check for existence of gradebook feedback plugin 2016-07-13 09:01:45 +01:00
Adrian Greeve f6f0ba2d45 MDL-55126 files: Deprecate get_records_csv and put_records_csv.
Initial deprecation of the above functions.
2016-07-13 14:22:46 +08:00
JD 560cea838b MDL-54977 blocks_navigation: Use html_writer::random_id for id
uniqid() may returns the same id for faster machines (seen on iis)
so use html_writer::random_id(), to ensure id is different and
navigation don't break
2016-07-13 14:04:16 +08:00
Andrew Nicols 3142a57c69 Merge branch 'MDL-47371-master-fix' of git://github.com/cameron1729/moodle 2016-07-13 12:07:36 +08:00
Cameron Ball 48ae4707cc MDL-47371 mod_book: Fix out of scope $unescapedtitle 2016-07-13 10:26:24 +08:00
Damyon Wiese 87c6f9ab23 MDL-52544 oracle: Apply upstream pull request to AdoDB oracle driver
Upstream: https://github.com/ADOdb/ADOdb/pull/259

Prevent segfault with ocipo driver on php7.

The OCIFetchinto function is causing segfaults on php7 - probably because the fields array
is not initialised or it is optimised out. This fixes just changes to use the safer function
oci_fetch_array instead.
2016-07-13 08:45:06 +08:00
Stephen Bourget 7040f90d07 MDL-51410 mod_survey: fix notifications when saving analysis 2016-07-12 20:07:35 -04:00
Eloy Lafuente (stronk7) 5968add63f Merge branch 'MDL-55083_master' of https://github.com/tunele/moodle 2016-07-13 00:09:08 +02:00
tunele f029401b36 MDL-55083 admin: provide friendly error in case phpxml is missing 2016-07-12 23:35:15 +02:00
Eloy Lafuente (stronk7) af8b948e2b Merge branch 'MDL-54629-master' of git://github.com/jleyva/moodle 2016-07-12 21:01:02 +02:00
Eloy Lafuente (stronk7) 5748e56242 Merge branch 'MDL-54671-master' of git://github.com/danpoltawski/moodle 2016-07-12 18:14:17 +02:00
Eloy Lafuente (stronk7) 731f2989c9 MDL-53803 mod_choice: fix trailing whitespace 2016-07-12 18:05:32 +02:00
Eloy Lafuente (stronk7) 4a5bbd9cda Merge branch 'MDL-53803_m32v1' of https://github.com/sbourget/moodle 2016-07-12 18:03:08 +02:00
Eloy Lafuente (stronk7) 4a132893e0 Merge branch 'MDL-54892-master' of https://github.com/tobiasreischmann/moodle 2016-07-12 17:51:36 +02:00
Juan Leyva c1da311ad6 MDL-54801 webservice: Support 'ids' search in get_categories 2016-07-12 15:41:32 +01:00
Eloy Lafuente (stronk7) bdfb19cc2a Merge branch 'MDL-11369_m32v2' of https://github.com/sbourget/moodle 2016-07-12 15:58:59 +02:00
Eloy Lafuente (stronk7) 3c724b4218 Merge branch 'MDL-55136_dataobject' of git://github.com/davosmith/moodle 2016-07-12 15:48:13 +02:00
Juan Leyva b93ea100fc MDL-55162 mod_assign: Refactor to use new validate_assign helper 2016-07-12 14:39:24 +01:00
Juan Leyva 7336b66f05 MDL-55162 mod_assign: New WS mod_assign_view_assign 2016-07-12 14:39:24 +01:00
David Monllao eb4f0d9c84 Merge branch 'MDL-54771-master' of git://github.com/cameron1729/moodle 2016-07-12 14:53:32 +02:00
Eloy Lafuente (stronk7) 9f4c5c542b MDL-37250 mod_lesson: Move conditions to queries for better performance
While this ony seems to affect MySQL, better put the filter/conditions
on every query so the temporary view/table does not need to handle
thousands of potentially unrelated records.
2016-07-12 13:31:25 +02:00
Eloy Lafuente (stronk7) 9401ee156c Merge branch 'wip-MDL-37250-master' of git://github.com/abgreeve/moodle 2016-07-12 13:21:19 +02:00
David Monllao 7aad43e13f Merge branch 'MDL-55133-master' of git://github.com/damyon/moodle 2016-07-12 13:16:27 +02:00
David Monllao 64c1e707a9 Merge branch 'wip-MDL-55107-master' of git://github.com/abgreeve/moodle 2016-07-12 13:03:19 +02:00
David Monllao b60d4fca13 Merge branch 'MDL-55048-master' of git://github.com/danpoltawski/moodle 2016-07-12 12:20:35 +02:00
Dan Poltawski 120f4ed7ee Merge branch 'MDL-54891-master' of git://github.com/ryanwyllie/moodle 2016-07-12 10:38:56 +01:00
Dan Poltawski 815abdf4db Merge branch 'MDL-47371-master' of git://github.com/cameron1729/moodle 2016-07-12 10:15:57 +01:00
Damyon Wiese eea2fc4319 MDL-52544 oracle: php7 fixes for oci driver
These are our bugs actually - the oci docs are very clear that bound
params should be in-scope when oci_execute is called - and due to pass by value etc,
this was not true for our driver.

There is another bug that needed fixing - OCI barfs if null values are bound - this
can be avoided by setting them to '' which oci treats as null.

And finally - all our lob/clob/blob hacks were also binding to local "out-of-scope" vars.
2016-07-12 16:55:47 +08:00
David Monllao 4fcca5378b Merge branch 'MDL-55170_master' of https://github.com/nadavkav/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2016-07-12 10:30:31 +02:00
David Monllao 8178b7824d MDL-54963 search: Show no results 2016-07-12 10:27:31 +02:00
Dan Poltawski acb75afe39 Merge branch 'MDL-55007-master' of https://github.com/dthies/moodle 2016-07-12 09:20:15 +01:00
Adrian Greeve 97a85bf6f0 MDL-55107 gradebook: Unit tests for the new setting check. 2016-07-12 13:30:10 +08:00
Adrian Greeve 05156571c0 MDL-55107 gradebook: Improve the 57 letter boundary upgrade.
This fixes a setting not being checked before and also
reduces the number of false positives.
2016-07-12 13:30:10 +08:00
Damyon Wiese a066cfc843 MDL-55133 javascript: Correctly use component names in requirejs
Core subsystems must use the 'core_' prefix always.
2016-07-12 11:15:17 +08:00
Cameron Ball a9ebd43b27 MDL-47371 mod_book: Don't double escape book titles 2016-07-12 10:31:17 +08:00
Cameron Ball a530cb93f5 MDL-47371 block_navigation: Don't double escape course titles 2016-07-12 10:31:17 +08:00
Cameron Ball 6fb1a7177f MDL-47371 weblib: Add option to disable escaping 2016-07-12 10:31:17 +08:00
Eloy Lafuente (stronk7) f71eaa794d Merge branch 'MDL-55134-master' of git://github.com/danpoltawski/moodle 2016-07-12 02:53:58 +02:00
Daniel Thies fa3f814792 MDL-5507 filter_mathjaxloader: Add commeents for regexes 2016-07-11 13:20:41 -05:00
Dan Poltawski b76edf3cfa Merge branch 'MDL-54926-master' of git://github.com/merrill-oakland/moodle 2016-07-11 16:54:40 +01:00
Dan Poltawski 7402479c45 MDL-55048 travis: check npm/grunt on multiple npm versions
Check npm install and grunt execution on the higest and lowest node
versions. Included some minor tweaks along the way:

* Move the grunt execution into scripts part of the configuration (that way
  the grunt output is not collapsed and is easily visible in build output).

* Restructure the install section to be task based (thanks to Eloy for
  the suggestion) and as such, don't run composer install on the grunt
  task (speed up the build slightly).

* Switch around the grunt job to a matrix include so that every
  variation of grunt job doesn't need to be excluded.
  ( https://docs.travis-ci.com/user/customizing-the-build/#Explicity-Including-Jobs )
2016-07-11 15:53:10 +01:00
Dan Poltawski 9b62a3eb71 MDL-55048 js: rebuilt files with new version of uglifyjs 2016-07-11 15:53:10 +01:00
Dan Poltawski 0e6e19179e MDL-55048 grunt: make uglify task behave as before
Don't output the status of uglifyied JS files, just the final result,
will still report what happens in detail in verbose mode
2016-07-11 15:53:10 +01:00
Dan Poltawski 2ce9109088 MDL-55048 grunt/npm: Update dependencies
* We bump our minimum node version up to >=4. Although this isn't yet
  necessarily *required* it was spurred on because grunt dropped support
  for very early node versions and so it's likely some devs will have to
  upgrade their npm.

  We do it now which gives us more flexibility for tools going forward
  (especially for things like new theme/testing). And node has matured
  the ecosystem (especially supporting properly semver) so should result
  in less edge cases.

* We make the minimum node version explicit in package.json. Though it
  doesn't help much for older versions of node because npm doesn't
  have the functionality to warn about it.. ;-)

* Left async dependency as it was, because it's only on an RC: 2.0.0-rc.6
2016-07-11 15:53:10 +01:00
Eloy Lafuente (stronk7) cf7dc57a91 Merge branch 'MDL-54944-master' of git://github.com/danpoltawski/moodle 2016-07-11 16:50:51 +02:00
Dan Poltawski 64ec975e19 Merge branch 'MDL-55082-master' of git://github.com/merrill-oakland/moodle 2016-07-11 15:20:48 +01:00
David Monllao 26140adbb9 Merge branch 'wip-MDL-54962-master' of git://github.com/abgreeve/moodle 2016-07-11 16:15:48 +02:00
David Monllao 034544ffda Merge branch 'MDL-18599-master' of git://github.com/junpataleta/moodle 2016-07-11 15:59:44 +02:00
David Monllao 27600832aa Merge branch 'MDL-49029_m32v2' of https://github.com/sbourget/moodle 2016-07-11 15:50:29 +02:00
Dan Poltawski 8846f9950f Merge branch 'MDL-55112-master' of git://github.com/junpataleta/moodle 2016-07-11 14:42:06 +01:00
Jun Pataleta af0fc6a254 MDL-18599 mod_forum: Hide single discussion owner's name and picture
* On the discussion's page.
* On the recent activity block.
* On the recent activity page.
2016-07-11 21:40:19 +08:00
Dan Poltawski 83ecbbc0b1 Merge branch 'MDL-55137-master' of git://github.com/cameron1729/moodle 2016-07-11 14:37:56 +01:00
David Monllao c68010eaee MDL-55048 cli: Add example using new cool options
Also added short option for ignore password policy.
2016-07-11 15:17:57 +02:00
David Monllao 34127afdb6 Merge branch 'MDL-55084' of git://github.com/prg3/moodle 2016-07-11 15:06:38 +02:00
Dan Poltawski 7d650df727 Merge branch 'MDL-55128-master' of git://github.com/jleyva/moodle 2016-07-11 13:33:23 +01:00
Dan Poltawski e9da895634 Merge branch 'wip-MDL-55154-master' of git://github.com/abgreeve/moodle 2016-07-11 13:31:24 +01:00
David Monllao 728faf96c4 Merge branch 'MDL-51373-master' of git://github.com/jleyva/moodle 2016-07-11 13:58:34 +02:00
Dan Poltawski ad3f8cd18c MDL-54944 eslint: make the .eslintrc default stricter
Instead of using the more rollup-tolerant config for all files, make the
configuration stricter by default but lower in grunt for yui modules.

This means that manual runs (prechecker) or editor integrations will
flag up the errors as well as grunt.

Also add ignore lines to the core files so that eslint isn't noisy when
not running with grunt.
2016-07-11 12:44:34 +01:00
Juan Leyva aa7e371af6 MDL-51373 grade: Deprecate WS core_grade_get_grades 2016-07-11 12:41:49 +01:00
Dan Poltawski e2f79e330d Merge branch 'MDL-53222_master' of git://github.com/dmonllao/moodle 2016-07-11 11:42:41 +01:00
David Monllao 6a4c2146f9 MDL-53222 search: Replace report_search by new searchareas admin page 2016-07-11 11:49:14 +02:00
Dan Poltawski c3a95c2840 MDL-53222 admin: rejig listing of search areas 2016-07-11 11:38:41 +02:00
David Monllao e704bcc776 MDL-53222 report_search: Delete from core 2016-07-11 11:38:41 +02:00
Juan Leyva 95624eef09 MDL-55163 mod_assign: Fix mod_assign_copy_previous_attempts
- Not exposed via WS
- Have a bug when calling the api function
2016-07-11 10:35:24 +01:00
David Monllao 1d17f51a8d Merge branch 'MDL-54832-master' of https://github.com/nashtechdev01/moodle 2016-07-11 06:47:13 +02:00
Adrian Greeve 681f8f09c0 MDL-37250 mod_lesson: All actual attempts on the lesson are displayed.
The lesson overview report now shows all attempts made including hitting
the page and immediately navigating away.
2016-07-11 08:18:41 +08:00
AMOS bot 65ec0d7d77 Automatically generated installer lang files 2016-07-11 00:05:50 +08:00
Rajesh Taneja d89dc6b123 MDL-55111 behat: Use option which is available everytime for export
recentupcoming option is always available everytime calendar export
is called, rest week and month is optionally shown and may not be
visible. So use recentupcoming event option and export calendar for test
2016-07-10 11:11:31 +08:00
Nadav Kavalerchik 3bce7d0880 MDL-55170 theme_bootstrapbase: Fix user enrollment dialog, RTL 2016-07-09 14:52:21 +03:00
Dan Poltawski d7f2176fd8 MDL-54671 css: fix lint errors 2016-07-08 12:58:54 +01:00
Dan Poltawski c5ec7b698b MDL-54671 css: reformat css 2016-07-08 12:54:13 +01:00
Stephen Bourget 03064d6a89 MDL-54891 Block_activity_results: Allow admin defaults 2016-07-08 05:10:27 +00:00
Adrian Greeve d58f3a4d2a MDL-54962 mod_data: Approval status is now translated.
It was using hardcoded English. Now it uses get_string.
2016-07-08 10:53:39 +08:00
Adrian Greeve 9582e530eb MDL-55154 mod_lesson: Lesson numerical response shows images. 2016-07-08 09:54:58 +08:00
Daniel Thies b54aeb5f83 MDL-55007 filter_mathjaxloader: Change unit test 2016-07-07 18:59:08 -05:00
Daniel Thies 638b473808 MDL-55007 filter_mathjaxloader: Wrap nolink around each expresssion 2016-07-07 18:58:15 -05:00
Stephen Bourget 9be8052937 MDL-11369 mod_choice: Add calendar events for choice activities 2016-07-07 16:56:17 -04:00
Stephen Bourget 1725216aee MDL-49029 mod_choice: Add view permissions 2016-07-07 15:10:17 -04:00
Dan Poltawski d3a93557d5 MDL-55134 less: make indentation consistent 2016-07-07 14:57:14 +01:00
Dan Poltawski 6e304922fb MDL-54944 js: built files after changes 2016-07-07 12:11:07 +01:00
Dan Poltawski 5602dc1735 MDL-54944 js: ensure functions are consistent in return val
Mostly we are being incosnistent when giving an early-exit shortcut.

Detected by http://eslint.org/docs/rules/consistent-return
2016-07-07 12:11:07 +01:00
Dan Poltawski 7b7d55e11a MDL-54944 js: split variable intialisations in multiple lines
To increase code clarity, we don't allow multiple intilisations to be
confused with each other.

Detected by http://eslint.org/docs/rules/one-var-declaration-per-line
2016-07-07 12:11:06 +01:00
Dan Poltawski 2d2b6c9d22 MDL-54944 js: remove uncessary .call() uses
Detected by http://eslint.org/docs/rules/no-useless-call
2016-07-07 12:11:06 +01:00
Dan Poltawski b1c4d0f2d7 MDL-54944 js: Remove uncessary bind() calls
Most of these cases, we are already capturing this in a temporary
variable, so the bind becomes uncessary.

Discovered by http://eslint.org/docs/rules/no-extra-bind
2016-07-07 12:11:06 +01:00
Dan Poltawski c905cd233d MDL-54944 js: fix quoting of object properities coding style
Detected by http://eslint.org/docs/rules/quote-props
2016-07-07 12:11:05 +01:00
Dan Poltawski 9f5f3dcc83 MDL-54944 js: Fix spacing of objects coding style
Fixed by http://eslint.org/docs/rules/object-curly-spacing
2016-07-07 12:11:05 +01:00
Dan Poltawski 037de71996 MDL-54944 eslint: Add rules from Policy decision
Also bump eslint to v2.13.1 and make the version explicit in
package.json
2016-07-07 12:10:49 +01:00
Eloy Lafuente (stronk7) 5a1728df39 weekly release 3.2dev 2016-07-07 10:19:49 +02:00
Eloy Lafuente (stronk7) ffe0699c44 NOBUG: Fixed SVG browser compatibility 2016-07-07 10:19:45 +02:00
Eloy Lafuente (stronk7) 2487a92837 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-07-07 10:19:44 +02:00
Andrew Nicols aa49ee0f29 Merge branch 'wip-mdl-55043' of https://github.com/rajeshtaneja/moodle 2016-07-07 11:27:58 +08:00
Rajesh Taneja 56c5c9a08a MDL-55043 core_competency: Sort by id to ensure we get expected result. 2016-07-10 11:25:06 +08:00
Andrew Nicols 71f81adce9 Merge branch 'MDL-54869-master' of git://github.com/jleyva/moodle 2016-07-07 10:30:17 +08:00
Stephen Bourget 025188da5f MDL-53803 mod_choice: remove orphaned answers when removing options 2016-07-06 17:08:50 -04:00
Cameron Ball aa60ab01c3 MDL-54771 tool_recyclebin: Don't add temp course to recycle bin 2016-07-06 23:18:36 +08:00
Cameron Ball 1706352d01 MDL-54771 restore: Add deletesource to course object
Since deleting a course now triggers the pre_course_delete hook
it may be useful for hook implementations to know whether it was
a "true" course deletion, or one originating from a temporary
course created during a restore.
2016-07-06 23:11:31 +08:00
Paul Greidanus c248c3f07f MDL-55084 admin: CLI driven password reset
This patch allows for changing a user's password via the command line.
This allows for scripted password changes easily.
2016-07-06 07:00:57 -06:00
Eloy Lafuente (stronk7) 9825afd76a Merge branch 'wip-MDL-46682-master' of git://github.com/abgreeve/moodle 2016-07-06 13:50:12 +02:00
Cameron Ball 977804ed9d MDL-55137: Update PHPDoc for external_format_text 2016-07-06 17:48:07 +08:00
Davo Smith a106fb8178 MDL-55136 data_object: fix param handling in fetch_all_helper 2016-07-06 10:33:06 +01:00
Eloy Lafuente (stronk7) 080c1e798b MDL-54934 workshop: ensure "Current phase" is always separated
Apparently some readers can join 2 adjacent spans completely, simply
adding a whitespace between them prevents that, ensuring separation.,
2016-07-06 11:30:40 +02:00
Cameron Ball c30bfed180 MDL-41945 mod_assign: Add empty submission check 2016-07-06 10:07:04 +01:00
Adrian Greeve 3261b9eeea MDL-46682 auth/db: Increase of chunk size and update change.
The update query was not checking the mnet auth id and could
have been updating the wrong entry.
2016-07-06 16:41:51 +08:00
Andrew Nicols 9ce2448091 Merge branch 'MDL-54734-master' of git://github.com/lameze/moodle 2016-07-06 15:01:06 +08:00
Andrew Nicols de374c3df1 Merge branch 'MDL-53495' of https://github.com/mr-russ/moodle 2016-07-06 13:29:18 +08:00
Simey Lameze ec90722870 MDL-54734 core_user: do not cache dummy user records 2016-07-06 13:07:03 +08:00
Russell Smith 848d212e7a MDL-53495 database xmldb: Ensure field tests use constant.
Some tests were still using hard coded values which break
if the constants are changed.
2016-07-06 14:45:00 +10:00
Andrew Nicols 42f7b608ed Merge branch 'MDL-54165-master' of git://github.com/ryanwyllie/moodle 2016-07-06 12:01:51 +08:00
Ryan Wyllie 2441100db9 MDL-54165 mod_assign: Fix doc in grading_events.js 2016-07-06 03:42:25 +00:00
Rajesh Taneja d44fc20414 MDL-54844 mod_glossary: Don't append AND as it's done later 2016-07-06 11:34:18 +08:00
Andrew Nicols 06d05f461e Merge branch 'MDL-54165-master' of git://github.com/ryanwyllie/moodle 2016-07-06 11:04:40 +08:00
Ryan Wyllie f6bb3f482d MDL-54165 mod_assign: Collapsible review and grade panel 2016-07-06 02:50:24 +00:00
Andrew Nicols aa03ced86c MDL-54734 user: Add tests to demonstrate multi-user issues 2016-07-06 09:27:44 +08:00
Adrian Greeve 6c04427daa MDL-54844 mod_glossary: Limiting of glossary searching.
Searching of the glossary was returning results from all
glossaries on the site. It has now been returned to just
the glossary that you are currently viewing.
2016-07-06 09:20:32 +08:00
Eloy Lafuente (stronk7) 6e24e529c9 Merge branch 'wip-mdl-55043' of https://github.com/rajeshtaneja/moodle 2016-07-06 03:19:08 +02:00
Jerome Mouneyrac 6f08f36c49 MDL-46682 auth/db: IN clause crashes when too many users to sync 2016-07-06 09:18:41 +08:00
Rajesh Taneja 2648dddd2a MDL-55043 core_competency: Set proper sort order for each field 2016-07-06 08:12:13 +08:00
Eloy Lafuente (stronk7) a339f0dde0 Merge branch 'wip-mdl-54860-m' of https://github.com/rajeshtaneja/moodle 2016-07-06 01:42:34 +02:00
Rajesh Taneja 25fbce21e7 MDL-54860 behat: Stop execution if setup problem found 2016-07-06 07:27:41 +08:00
Andrew Nicols 6f9ad7e2db MDL-54951 webservice: Add upgrade notes for external_files 2016-07-06 07:23:32 +08:00
Eloy Lafuente (stronk7) 006e2b787a Merge branch 'MDL-54857-master' of git://github.com/jleyva/moodle 2016-07-06 00:03:39 +02:00
Eloy Lafuente (stronk7) f5be4e3d91 Merge branch 'MDL-54856-master' of git://github.com/jleyva/moodle 2016-07-05 21:18:41 +02:00
Eloy Lafuente (stronk7) ed2d12a125 Merge branch 'MDL-54955-master' of git://github.com/jleyva/moodle 2016-07-05 21:15:31 +02:00
Eloy Lafuente (stronk7) 8a8e436cf7 Merge branch 'MDL-54800-master' of git://github.com/jleyva/moodle 2016-07-05 21:10:28 +02:00
Eloy Lafuente (stronk7) 6880e350d3 Merge branch 'MDL-54602-master' of git://github.com/jleyva/moodle 2016-07-05 20:59:52 +02:00
Eloy Lafuente (stronk7) 1d44e47cc4 Merge branch 'MDL-54934-master' of https://github.com/nashtechdev01/moodle 2016-07-05 20:44:14 +02:00
Eloy Lafuente (stronk7) 4b7ac6023c Merge branch 'MDL-54867-master' of git://github.com/jleyva/moodle 2016-07-05 20:25:54 +02:00
Eloy Lafuente (stronk7) e51f7a6a20 Merge branch 'MDL-49244-master' of git://github.com/jleyva/moodle 2016-07-05 20:16:44 +02:00
Eloy Lafuente (stronk7) efb2517a2f Merge branch 'MDL-54795_master' of https://github.com/snake/moodle 2016-07-05 20:10:33 +02:00
Eloy Lafuente (stronk7) 6b43e964ac MDL-55000 grade: Use correct component names + minor jsdocs
Note the js_call_amd() call still is using incorrect 'grades'
as component name where it should be core_grades. That will be
fixed by MDL-55133.
2016-07-05 19:59:24 +02:00
Eloy Lafuente (stronk7) 17695e4b4d Merge branch 'MDL-55000-master' of git://github.com/andrewnicols/moodle 2016-07-05 19:35:56 +02:00
Eloy Lafuente (stronk7) 46da6e14ec Merge branch 'MDL-29738-master' of git://github.com/andrewnicols/moodle 2016-07-05 17:05:28 +02:00
Loc Nguyen e9bf00fb14 MDL-54832 workshop: adding landmark for userplantable
Accessibility enhance: add an aria-label on the userplan table so
that it's accessible to me through my screen reader
2016-07-05 20:37:56 +07:00
Andrew Nicols b5233f9bc9 MDL-55000 grade: Convert remaining YUI2 -> AMD 2016-07-05 20:07:46 +08:00
Andrew Nicols ff3778bf97 MDL-29738 file: Remove unused stylesheet functionality
This functionality was commented out in
78946b9bdb for MDL-20204 back in 2009.
Since then it has been wasting cycles performing utterly pointless
preg_match and preg_replace calls.

The decision has been made to deprecate it in stables, and remove it in
3.2.
2016-07-05 19:31:22 +08:00
Eloy Lafuente (stronk7) eb3b4893b5 Merge branch 'MDL-55114-master' of git://github.com/andrewnicols/moodle 2016-07-05 12:44:52 +02:00
Eloy Lafuente (stronk7) 5920c233fe Merge branch 'MDL-55113-master' of git://github.com/dpalou/moodle 2016-07-05 12:21:46 +02:00
Dan Poltawski 88dd8edf7b Merge branch 'MDL-54928-master' of git://github.com/dpalou/moodle 2016-07-05 11:20:07 +01:00
Dan Poltawski 27ade02c67 Merge branch 'MDL-54841-master' of https://github.com/nashtechdev01/moodle 2016-07-05 11:06:38 +01:00
Juan Leyva 8908432fab MDL-55128 course: Fix param type for shortname 2016-07-05 09:50:32 +01:00
Dani Palou 6f2815fa51 MDL-54928 notifications: Add username to emailto users 2016-07-05 10:34:52 +02:00
Juan Leyva 7c4e686f94 MDL-54943 webservice: New WS core_course_get_activities_overview 2016-07-05 09:10:13 +01:00
Juan Leyva 6e7bf3963b MDL-54869 webservice: Fix core_user_add_user_private_files 2016-07-05 09:01:35 +01:00
Juan Leyva 460897052e MDL-54869 files: Create new required functions
This was a complex change requiring three new functions:
file_merge_files_from_draft_area_into_filearea - To just add files from a draft area into a real one (just adding or updating, not deleting)
file_merge_draft_area_into_draft_area - To merge files from two draft areas, used by the latest for creating a draft area with all the original files plus the new ones.
file_overwrite_existing_draftfile - Required to update existing files not losing metadata or references.

The whole process is the following:

    User uploads a file (upload.php)
    Client gets a new draftid A containing the file only (return of upload.php)
    Client requests to merge that draftid in the user's private files (core_user_add_user_private_files)
    Server prepares a new UNUSED draftid B from existing area
    Server merges A into B
    Server saves the draft B into the final area
2016-07-05 09:01:34 +01:00
Juan Leyva d089e4984d MDL-54869 files: Fix file_save_draft_area_files documentation 2016-07-05 08:40:06 +01:00
Andrew Nicols 69efe54640 Merge branch 'MDL-53495' of https://github.com/mr-russ/moodle 2016-07-05 15:07:21 +08:00
Andrew Nicols 275480a0de MDL-51242 messageinbound: Guess the port from hostspec
Existing language strings for the host component suggest that the host can
be provided in the format hostname:port, but we previously did not support
this.

This patch explodes the string based on the colon character and assumes
that if there are two parts, that they are in the format hostname:port.

Note: This does not attempt to deal with full host specifications (e.g.
protocol://hostname:port), as this is beyond the scope of this change.
2016-07-05 14:52:53 +08:00
An Pham Van 1b0276d4bb MDL-54841 workshop: Combine links for attachment icon and text.
In a workshop activity, on the view submission page where having attachment(s), there's an accessibility issue.
There're 2 separate links for the icon and text which causes an issue for keyboard and screen reader users.
So the text and icon should be combined in one link.
2016-07-05 13:21:59 +07:00
Andrew Nicols f0cae2e019 Merge branch 'MDL-55001-home-noredirect' of https://github.com/brendanheywood/moodle 2016-07-05 14:15:36 +08:00
Jake Dallimore ea106d2a1d MDL-53431 tool_monitor: Access control for tool monitor subscriptions 2016-07-05 10:36:27 +08:00
Andrew Nicols 5e47d5aee5 Merge branch 'MDL-54951-master' of git://github.com/jleyva/moodle 2016-07-05 09:41:31 +08:00
Andrew Nicols 9778aa4e9c Merge branch 'MDL-54889-master' of git://github.com/danpoltawski/moodle 2016-07-05 09:27:17 +08:00
Andrew Nicols 8efafb4625 Merge branch 'MDL-53019' of git://github.com/stronk7/moodle 2016-07-05 08:48:54 +08:00
Eloy Lafuente (stronk7) 6981a039c8 MDL-53019 travis: Don't run 5.6 mysql unit tests and minor cleanup 2016-07-05 02:35:26 +02:00
Andrew Nicols 642a1d5480 Merge branch 'MDL-53019' of git://github.com/stronk7/moodle 2016-07-05 08:15:02 +08:00
Eloy Lafuente (stronk7) ae96cf6246 MDL-53019 php: bump all harcoded versions to new 5.6.5 requirement
Moodle 3.2 and up will require PHP >= 5.6.5. Hopefully some day we'll
have this centralized with MDL-39007, just it's not done yet.

Thanks to Stephen Bourget for raising this!
2016-07-05 01:50:43 +02:00
Rajesh Taneja 0908069407 MDL-50758 behat: Fixed string changes 2016-07-05 07:40:03 +08:00
Eloy Lafuente (stronk7) 68ddadc180 Merge branch 'wip-MDL-37946-master' of https://github.com/marinaglancy/moodle 2016-07-05 00:19:59 +02:00
Dan Poltawski c145e290a3 Merge branch 'MDL-48944_m32v4' of https://github.com/sbourget/moodle 2016-07-04 15:56:00 +01:00
Dan Poltawski 7fddfd3768 Merge branch 'MDL-55019-master' of git://github.com/jleyva/moodle 2016-07-04 15:29:19 +01:00
Dan Poltawski 1f0daa292e Merge branch 'MDL-54976-master' of git://github.com/junpataleta/moodle 2016-07-04 14:51:59 +01:00
Juan Leyva 6a1131e2c2 MDL-55019 webservice: Course summary text should not be cleaned 2016-07-04 14:51:14 +01:00
Dan Poltawski 98ebfabc13 Merge branch 'MDL-54994' of git://github.com/stronk7/moodle 2016-07-04 14:18:15 +01:00
Dan Poltawski 970fcc44e6 MDL-54980 mod_assign: bump version 2016-07-04 14:10:24 +01:00
Dan Poltawski 351e06e424 Merge branch 'MDL-54980-master' of git://github.com/jleyva/moodle 2016-07-04 14:09:43 +01:00
Dan Poltawski a335305f46 Merge branch 'MDL-50758' of https://github.com/creator23/moodle 2016-07-04 14:08:39 +01:00
Dan Poltawski 6e57e78652 Merge branch 'MDL-55032-master' of git://github.com/marinaglancy/moodle 2016-07-04 13:28:48 +01:00
Dan Poltawski 0cf471fbdd Merge branch 'MDL-55041_master' of https://github.com/marxjohnson/moodle 2016-07-04 12:45:55 +01:00
Dan Poltawski 2e6f52212f Merge branch 'MDL-41945-master' of git://github.com/cameron1729/moodle 2016-07-04 12:39:35 +01:00
Marina Glancy ed63718caa MDL-55069 core: escape special characters in email headers 2016-07-04 12:27:58 +01:00
Dan Poltawski 50d64a6efa Merge branch 'MDL-54794_master' of https://github.com/dg711/moodle 2016-07-04 10:52:56 +01:00
Juan Leyva 7ef49bd393 MDL-54951 webservice: Return intro text files in modules 2016-07-04 09:24:28 +01:00
Juan Leyva ae584b3b5e MDL-54951 webservice: Utility methods for generating a list of files
It includes a new external_files structure and a get_area_files method
in external_util
2016-07-04 09:24:27 +01:00
Dani Palou 5609da91fa MDL-55113 assign: Use PARAM_RAW in onlinetext text 2016-07-04 09:53:36 +02:00
Andrew Nicols e1ca4da750 MDL-55114 chat: Remove commented-out variables 2016-07-04 15:29:04 +08:00
Jun Pataleta ca7e2fc21f MDL-55112 mod_forum: Query all forum fields to avoid debug messages 2016-07-04 15:22:56 +08:00
Andrew Nicols bfccdb9600 Merge branch 'MDL-54953-master' of git://github.com/marinaglancy/moodle 2016-07-04 15:11:14 +08:00
Barbara Ramiro 40be0da500 MDL-54165 mod_assign: Layout icons for the new grading interface 2016-07-04 07:00:11 +00:00
Andrew Nicols ab698201d7 Merge branch 'MDL-55049-master' of git://github.com/jleyva/moodle 2016-07-04 14:16:54 +08:00
Andrew Nicols 91dc1e8795 Merge branch 'MDL-55053-master' of git://github.com/merrill-oakland/moodle 2016-07-04 14:04:23 +08:00
Andrew Nicols 0f6f3ccc3c Merge branch 'MDL-55057_scorm_apostrophe' of git://github.com/davosmith/moodle 2016-07-04 12:59:09 +08:00
Andrew Nicols 2110dead4f Merge branch 'wip-mdl-48114' of https://github.com/rajeshtaneja/moodle 2016-07-04 12:18:34 +08:00
Andrew Nicols 97e0cc8dbe Merge branch 'MDL-55050-master' of git://github.com/danpoltawski/moodle 2016-07-04 12:16:31 +08:00
Andrew Nicols 91e46852fc Merge branch 'MDL-54877-master-clean-on-output' of git://github.com/junpataleta/moodle 2016-07-04 11:52:05 +08:00
Cameron Ball c89d23ee6d MDL-41945 mod_assign: Properly check if submission is empty
Previous empty submission checks required the submission to
be saved to the database. This patch adds a new method to
submission plugins that lets them report whether the submission
is empty before it is saved.
2016-07-04 10:55:06 +08:00
Andrew Nicols 4ffe12b0f8 Merge branch 'MDL-55020-master-pluginzip' of git://github.com/mudrd8mz/moodle 2016-07-04 10:54:59 +08:00
Cameron Ball 16b36d376a MDL-41945 mod_assign: Check if submission has been modified
This patch adds a check that stops a user submitting an assignment
if someone else has modified it in the meantime.
2016-07-04 10:51:57 +08:00
Andrew Nicols c3d8f27a95 Merge branch 'MDL-54968-master' of git://github.com/marinaglancy/moodle 2016-07-04 10:21:06 +08:00
Andrew Nicols b4d0244b7c Merge branch 'MDL-53019' of git://github.com/stronk7/moodle 2016-07-04 09:07:39 +08:00
Eloy Lafuente (stronk7) 1de0b34bed Merge branch 'MDL-54947' of https://github.com/mr-russ/moodle 2016-07-04 01:05:12 +02:00
Stephen Bourget 1a99786ff8 MDL-48944 mod_survey: Add activity completion on submission 2016-07-03 15:34:11 -04:00
Devang Gaur 7dc0db7195 MDL-54794 user: added Users to globalsearch 2016-07-02 01:12:36 +05:30
AMOS bot 6e9f743b13 Automatically generated installer lang files 2016-07-02 00:04:54 +08:00
Mark Johnson 4d9036d6eb MDL-55041 roles: Fix JSON parsing in permission manager 2016-07-01 14:54:01 +01:00
Juan Leyva ff092320a7 MDL-54867 webservice: Document webservice/upload.php deprecation
The 'private' file area is not supported anymore, only 'draft' is
supported right now.
2016-07-01 13:13:54 +01:00
Loc Nguyen ddc9cff68b MDL-54934 workshop: indicate current phase
Indicate phase in page titles, current phase in userplan table
so that it's accessible to me through my screen reader
2016-07-01 19:08:53 +07:00
Eloy Lafuente (stronk7) 9f29c65180 MDL-53019 travis: adjust runs to use PHP 5.6 2016-07-01 13:58:18 +02:00
Eloy Lafuente (stronk7) 59f22d4b19 MDL-53019 environment: 3.2 requirements added
Changes:
 - PHP 5.6.5 required
2016-07-01 13:44:36 +02:00
Eloy Lafuente (stronk7) a763bb0553 MDL-54994 badges: Count correctly the number of external badges shown 2016-07-01 13:40:47 +02:00
Jun Pataleta 9f83ce7e0c MDL-54976 mod_scorm: Add validation for availability dates 2016-07-01 14:50:20 +08:00
Jake Dallimore 9e12b0faf7 MDL-54795 mod_assign: Fix notifications JS error in grading interface 2016-07-01 13:49:02 +08:00
Dani Palou 3ce71f4eef MDL-54928 notifications: Retrieve username from DB if empty 2016-07-01 07:45:21 +02:00
Marina Glancy 799e001c15 MDL-55032 tool_lp: check access when showing link to competencies
Also if course competencies page is accessed without capabilities do
redirect before starting output.
2016-07-01 13:42:27 +08:00
Andrew Nicols ac8d6cff54 weekly release 3.2dev 2016-07-01 10:20:17 +08:00
Andrew Nicols 762499bcd4 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-07-01 10:20:11 +08:00
David Mudrák 2785fd193d MDL-55020 admin: Fix renaming of the plugin package root folder
There was a problem with core\update\code_manager::unzip_plugin_file()
if it was used to extract a plugin package into a non-empty target
directory and the plugin package root folder was being renamed at the
same time.

The problem was caused by the underlying helper method
rename_extracted_rootdir() that worked only for ZIPs extracted to an
empty temporary location. When the plugin was extracted to the actual
dirroot with other existing plugin folders present, the method failed
badly.

The solution in the patch is to always extract the ZIP into a temporary
empty location, perform the eventual root renaming there, and only then
move the extracted contents to the final destination. Additionally we
are changing the behaviour of the rename_extracted_rootdir() method so
that now it throws exception if the plugin package contains multiple
root folders (it should not happen in normal situations as such a plugin
would not pass the pre-install validation).

Unit tests did not catch this bug before because in the tests, the
target directory had been empty. Now we are adding a new directory
"aaa_another" to the target location to test in more realistic
environment. Tests for the new behaviour of the renaming method are
added, too.

p.s. I noticed that moodle_exception class was not imported into the
namespace and this is fixed now too (and covered with unit tests).
2016-07-01 01:13:21 +02:00
Anant 4358ee3892 MDL-50758 qtype_multichoice: Displays multiple correct answers 2016-06-30 10:40:38 -07:00
Eric Merrill 55b62370aa MDL-55082 search: Update core areas to return results in time ASC order 2016-06-30 11:11:35 -04:00
Juan Leyva b8b1be1554 MDL-49244 course: Clean parameters in core_course_get_categories 2016-06-30 13:26:54 +01:00
Dan Poltawski 1fe7dfd9f0 MDL-32135 mod_choice: fix behat tests 2016-06-30 09:24:59 +01:00
Stephen Bourget 7c2041b64d MDL-32135 mod_choice: update behat tests 2016-06-30 09:24:59 +01:00
Andrew Nicols 48d1322527 Merge branch 'MDL-54610_master' of https://github.com/snake/moodle 2016-06-30 09:24:58 +01:00
Eloy Lafuente (stronk7) 47d986828e Merge branch 'wip-MDL-47113-master' of git://github.com/abgreeve/moodle 2016-06-30 09:24:58 +01:00
Eloy Lafuente (stronk7) 4a365babb6 Merge branch 'MDL-54855-master' of git://github.com/crazyserver/moodle 2016-06-30 09:24:57 +01:00
Dan Poltawski 41c18b9681 Merge branch 'MDL-54104-master' of git://github.com/jleyva/moodle 2016-06-30 09:24:57 +01:00
Dan Poltawski ab8ef75406 Merge branch 'MDL-55022-master' of git://github.com/junpataleta/moodle 2016-06-30 09:24:56 +01:00
Dan Poltawski 941b725693 Merge branch 'MDL-55027_master' of git://github.com/markn86/moodle 2016-06-30 09:24:56 +01:00
Dan Poltawski 5fd469e921 Merge branch 'MDL-54993' of https://github.com/sk-unikent/moodle 2016-06-30 09:24:56 +01:00
Dan Poltawski bb2c042b96 Merge branch 'MDL-32135_m32v2' of https://github.com/sbourget/moodle 2016-06-30 09:24:55 +01:00
Dan Poltawski be7d86e8ce Merge branch 'MDL-54865-master' of git://github.com/ryanwyllie/moodle 2016-06-30 09:24:55 +01:00
Dan Poltawski 5f4d957c21 MDL-54889 jshint: stop using for everything but shifter
Now jshint has been replaced by eslint.
2016-06-30 09:14:57 +01:00
Jun Pataleta 5c1b749d55 MDL-54877 mod_lti: Clean LTI tool type name and description on output
* Use clean_param() for name and description when displaying the tool type.
    Basically in the following functions:
    - serialise_tool_type()
    - lti_get_configured_types()
* Changed name and description's type from PARAM_TEXT to PARAM_RAW
    in tool update parameters.
* Changed name and description's type from PARAM_TEXT to PARAM_RAW
   in mod_lti_external::tool_type_return_structure()
2016-06-30 15:55:43 +08:00
Russell Smith 1b0b082a08 MDL-54947 database: Update PostgreSQL binary handling.
PostgreSQL 9.1 allows hex formating for binary which is handled better
by pg_query_params().

Getting bytea isn't required on connection, it can be used as pg_field_type()
when binary needs to be checked.
2016-06-30 12:58:53 +10:00
Davo Smith 3bc7382d10 MDL-55057 mod_scorm: fix handling of SCO identifiers with apostrophes 2016-06-29 08:44:24 +01:00
Dan Poltawski 77369c8171 Merge branch 'MDL-54868-master' of git://github.com/cameron1729/moodle 2016-06-29 15:05:26 +08:00
Dan Poltawski ce63e9b2d7 Merge branch 'MDL-55002-master-enfix' of git://github.com/mudrd8mz/moodle 2016-06-29 15:05:25 +08:00
Andrew Nicols ea5241410d Merge branch 'MDL-54991-master' of git://github.com/crazyserver/moodle 2016-06-29 15:05:24 +08:00
Andrew Nicols df4b55e05b Merge branch 'MDL-54909-master' of git://github.com/crazyserver/moodle 2016-06-29 15:05:23 +08:00
Andrew Nicols 628c52e465 Merge branch 'MDL-54601-master' of git://github.com/jleyva/moodle 2016-06-29 15:05:22 +08:00
Andrew Nicols 3654734601 Merge branch 'MDL-54910_m32v2' of https://github.com/sbourget/moodle 2016-06-29 15:05:20 +08:00
Andrew Nicols be88488274 Merge branch 'MDL-54911_m32v3' of https://github.com/sbourget/moodle 2016-06-29 15:05:19 +08:00
Andrew Nicols 53190b8077 MDL-54755 core: Correct behat language 2016-06-29 15:05:18 +08:00
Andrew Nicols ffcbabcdd0 Merge branch 'MDL-54755_master' of https://github.com/StudiUM/moodle 2016-06-29 15:05:17 +08:00
Andrew Nicols e1ac41ecc4 Merge branch 'MDL-54935_m32v1' of git://github.com/sbourget/moodle 2016-06-29 15:05:16 +08:00
Andrew Nicols e683c0837c Merge branch 'MDL-54964-master' of git://github.com/jleyva/moodle 2016-06-29 15:05:15 +08:00
Andrew Nicols f9cabe8f99 Merge branch 'wip-mdl-54974' of https://github.com/rajeshtaneja/moodle 2016-06-29 15:05:13 +08:00
Eric Merrill a02fe723dd MDL-55053 search: Display search areas in alphabetical order 2016-06-28 17:19:09 -04:00
Eric Merrill 4e2b5191d4 MDL-54926 search: Reduce over-escaping in results 2016-06-28 16:33:29 -04:00
Dan Poltawski a382101c6e MDL-55050 grunt: make eslint only build changed files on watch
Previously a watch change was causing eslint to be re-run on every file.
2016-06-28 18:21:29 +01:00
Juan Leyva 7a8744dba7 MDL-55049 webservice: Scan for viruses in webservice/upload.php 2016-06-28 16:14:16 +01:00
Cameron Ball 94ada0eaf7 MDL-54868 webservice_xmlrpc: Don't escape non-ascii characters 2016-06-28 14:41:20 +08:00
David Mudrák 46994de566 MDL-55002 lang: Fix behat scenarios using modified strings 2016-06-27 22:57:34 +02:00
Eloy Lafuente (stronk7) 22a0896767 Merge branch 'MDL-55028-master' of git://github.com/junpataleta/moodle 2016-06-27 22:13:48 +02:00
Helen Foster 25558b808e MDL-55002 lang: Merge English strings from the en_fix language pack 2016-06-27 22:03:40 +02:00
Eloy Lafuente (stronk7) d4ca1215bb Merge branch 'MDL-54599-31' of git://github.com/vadimonus/moodle 2016-06-27 20:38:18 +02:00
Eloy Lafuente (stronk7) f8ca380b47 Merge branch 'MDL-54997-master' of git://github.com/damyon/moodle 2016-06-27 20:22:14 +02:00
Eloy Lafuente (stronk7) 74eb5bb9fe Merge branch 'MDL-54707_master' of git://github.com/dmonllao/moodle 2016-06-27 20:00:43 +02:00
Eloy Lafuente (stronk7) 0efd933a1f Merge branch 'MDL-54900-master' of git://github.com/marinaglancy/moodle 2016-06-27 18:53:23 +02:00
AMOS bot 1ac8c71f4b Automatically generated installer lang files 2016-06-28 00:05:34 +08:00
Eloy Lafuente (stronk7) bc413a6078 Merge branch 'MDL-52887-master' of git://github.com/marinaglancy/moodle 2016-06-27 16:13:25 +02:00
Eloy Lafuente (stronk7) f780baf063 Merge branch 'MDL-54663-master' of git://github.com/andrewnicols/moodle 2016-06-27 13:26:34 +02:00
Juan Leyva 64d2ac2145 MDL-54964 tool_mobile: Fix tests to make it work with non-core plugins 2016-06-27 09:45:23 +01:00
Juan Leyva 5b76f88cb5 MDL-54602 webservice: Remove core_grades_update_grades from mobile 2016-06-27 08:44:11 +01:00
Pau Ferrer Ocaña ff6de75396 MDL-54991 assign: Invalid submissiongroup when not using groups 2016-06-27 09:24:29 +02:00
Marina Glancy 17c78cceb0 MDL-54968 user: change query for resetting dashboard
In case of inconsistent data the fatal error could have happen.
Also improve performance by joining several queries into one.
2016-06-27 15:08:24 +08:00
Rajesh Taneja e5f2478b9f MDL-54974 behat: Handle interupts on PHP7
As https://bugs.php.net/bug.php?id=71448 is
not going to get fixed, we need to declare tick
2016-06-27 14:30:58 +08:00
Jun Pataleta ead440b649 MDL-55028 webservice_soap: Use strlen for setting Content-Length header 2016-06-27 13:59:20 +08:00
Andrew Nicols 623395ff7b Merge branch 'MDL-53111_m32v1' of https://github.com/sbourget/moodle 2016-06-27 13:30:51 +08:00
Mark Nelson a802be7e39 MDL-55027 enrol_lti: avoid invalid image URL causing an exception 2016-06-27 13:27:23 +08:00
Andrew Nicols 04b189a875 Merge branch 'MDL-54924-master' of git://github.com/junpataleta/moodle 2016-06-27 12:53:35 +08:00
Marina Glancy 540200aee5 MDL-54900 mod_choice: correctly count number of answered users 2016-06-27 12:47:49 +08:00
Jun Pataleta eb55f72d63 MDL-55022 mod_lti: Fix undefined variable 2016-06-27 11:40:03 +08:00
Andrew Nicols 607e900e2d Merge branch 'MDL-54785-master' of git://github.com/FMCorz/moodle 2016-06-27 08:59:49 +08:00
David Monllao 25ba053ff2 MDL-54707 search: Add user context to get_areas_user_accesses 2016-06-26 21:23:16 +02:00
Damyon Wiese e824cd502d MDL-54997 competencies: Fix random unit test fail
Sorting on timecreated is not unique enough to
guarantee a predictable ordering.
2016-06-25 08:04:15 -07:00
Juan Leyva 9df9f1f096 MDL-54104 webservice: Return section number in WS get_course_contents 2016-06-24 13:55:04 +01:00
Jake Dallimore f56cbd3bbf MDL-54610 mod_lti: Fix cartridge support for admin tool add/edit forms 2016-06-24 14:14:28 +08:00
Gilles-Philippe Leblanc 975bd11258 MDL-54755 core: Incorrect redirection after password change 2016-06-23 21:24:29 -04:00
Stephen Bourget 443ab2cea9 MDL-54911 mod_feedback: start date should be before the end date 2016-06-23 17:39:48 -04:00
Stephen Bourget 316f20a0b6 MDL-54910 mod_data: Open dates should be before close dates 2016-06-23 17:32:19 -04:00
Stephen Bourget 5d3821ebcc MDL-32135 mod_choice: Open time should be before close time 2016-06-23 17:21:27 -04:00
Damyon Wiese da880d320c MDL-54997 competencies: Listing evidence contexts
When listing the evidence for a user competency in a course,
the query is missing evidences for sub-contexts in the course.
2016-06-23 09:14:19 -07:00
Pau Ferrer Ocaña 36f1d79ea2 MDL-54909 assign: Style editpdf background to differ from page bg 2016-06-23 15:06:59 +02:00
Pau Ferrer Ocaña 796161018c MDL-54855 assign: Add missing field in get_assignments 2016-06-23 15:05:17 +02:00
Brendan Heywood a181471f4e MDL-55001 theme_clean: Avoid redirects in home url 2016-06-23 17:27:52 +10:00
Andrew Nicols b8474fe0c7 weekly release 3.2dev 2016-06-23 14:49:30 +08:00
Andrew Nicols de2f6d840a Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-06-23 14:49:25 +08:00
Frederic Massart df52c272cf MDL-54785 files: Deprecate the support for $usepost and related 2016-06-23 12:41:03 +08:00
Luca Bösch 013abd64cd MDL-54865 grade: student name hyperlinked in gradebook user report
In the Gradebook, User report, the student's name (at the top) is a hyperlink
to that student's account. In most places where a student's name shows
(e.g. the Grader report) it is most often a hyperlink.
2016-06-23 04:22:10 +00:00
Frederic Massart 4f9b94fdd5 Revert "MDL-44626 files: Show the PHP max upload size instead of 'unlimited'"
This reverts commit 6f0768618a.
2016-06-23 11:51:44 +08:00
Frederic Massart 048f8073d1 Revert "Merge branch 'MDL-54110_master' of https://github.com/marxjohnson/moodle"
This reverts commit 016e0abfbc, reversing
changes made to 58a2f0ac40.
2016-06-23 11:51:44 +08:00
Frederic Massart 796f86f753 Revert "MDL-54110 repositories: Whitespace, Typo + unit test fixes"
This reverts commit 7e4d43e1a2.
2016-06-23 11:51:44 +08:00
Andrew Nicols 0f56ea9d2f Merge branch 'MDL-54948-master-fix2' of https://github.com/lameze/moodle 2016-06-23 10:50:14 +08:00
Simey Lameze 37eafbb6dc MDL-54948 core_files: return false if theres no output from unoconv 2016-06-23 08:37:23 +08:00
Skylar Kelty a5deab2d72 MDL-54993 search: Provide areaid parts to template 2016-06-22 14:51:59 +01:00
Andrew Nicols 797b7efc0b Merge branch 'MDL-35104-master-fix' of https://github.com/cameron1729/moodle 2016-06-22 14:57:09 +08:00
Andrew Nicols 1331869eb2 Merge branch 'MDL-54948-master-fix' of https://github.com/lameze/moodle 2016-06-22 14:43:35 +08:00
Cameron Ball 6a80681112 MDL-35104 auth: Always allow editing username for new users 2016-06-22 13:59:39 +08:00
Marina Glancy dcd320b5ad MDL-52887 mod_choice: backup allowmultiple option 2016-06-22 13:51:36 +08:00
Simey Lameze 84440fe3d2 MDL-54948 core_upgrade: fix check_unoconv_version logic 2016-06-22 13:44:48 +08:00
Andrew Nicols d1a62a5046 MDL-54663 forum: Correct digest link to forum preferences 2016-06-22 13:11:23 +08:00
Marina Glancy d74d4f4aab MDL-54953 mod_chat: remove Safari hack
This hack was introduced in MDL-16878 and is not needed in modern Safari versions
but it was reported that it can breaks chat in IE
2016-06-22 12:21:40 +08:00
Andrew Nicols 6c8e98ddd2 Merge branch 'wip-mdl-53399' of https://github.com/rajeshtaneja/moodle 2016-06-22 09:10:19 +08:00
Rajesh Taneja f34ab57411 MDL-53399 behat: Activity chooser link is removed. 2016-06-22 09:07:31 +08:00
Eloy Lafuente (stronk7) 0f20bf7507 Merge branch 'wip-mdl-54589-mac' of https://github.com/rajeshtaneja/moodle 2016-06-22 01:42:15 +02:00
Eloy Lafuente (stronk7) e40dd1cdcd MDL-54778 form: Make it all js style (eslint) compliant
The changes in this commit should not be problematic, just:

- different whitespace.
- some docs.
- 1 variable to camelCase.

And then, less trivial, but safe enough IMO:

- a change to camelCase some identifiers and their calculation.
2016-06-22 01:29:51 +02:00
Eloy Lafuente (stronk7) 0f30b4beeb Merge branch 'MDL-54778-master' of git://github.com/andrewnicols/moodle 2016-06-22 01:29:39 +02:00
Dan Poltawski 6a6b0085e0 Merge branch 'MDL-54983-master' of git://github.com/damyon/moodle 2016-06-21 12:56:32 -07:00
Damyon Wiese 0edd7bd7bd MDL-54983 docs: Improve phpdocs for create_user_key
Also fixed the docs for get_user_key.
2016-06-21 12:46:59 -07:00
Eloy Lafuente (stronk7) e822312af3 Merge branch 'MDL-54939-master' of git://github.com/danpoltawski/moodle 2016-06-21 20:00:36 +02:00
AMOS bot 9c084c424f Automatically generated installer lang files 2016-06-22 00:06:06 +08:00
Juan Leyva 23717c804d MDL-54980 mod_assign: Add WS list_participants to the Mobile service 2016-06-21 15:30:58 +01:00
Juan Leyva 833be5e410 MDL-54629 webservice: Change required parameters in external_format_text
component, filearea and itemid are now optional parameters.
In some contexts those parameteres are not necessary because is not
required to do a file rewrite via file_rewrite_pluginfile_urls
2016-06-21 12:16:25 +01:00
Andrew Nicols 6a359c20fb Merge branch 'wip-mdl-54940' of https://github.com/rajeshtaneja/moodle 2016-06-21 19:00:33 +08:00
Rajesh Taneja f0be6b892e MDL-54940 behat: No need to press save
Previous step press save button, so no need to press again
2016-06-21 18:53:03 +08:00
Eloy Lafuente (stronk7) 878835db7f Merge branch 'MDL-54948-master' of git://github.com/lameze/moodle 2016-06-21 11:48:10 +02:00
Tobias Reischmann c05f3109d0 MDL-54892 core: Pass proper parameter for plugin uninstall queries 2016-06-21 09:20:54 +02:00
Andrew Nicols 3584865b3a MDL-51789 users: Correct deprecation version 2016-06-21 14:59:00 +08:00
Andrew Nicols 92e4d84b62 Merge branch 'MDL-51789' of https://github.com/mr-russ/moodle 2016-06-21 14:38:51 +08:00
Russell Smith 5407c5b0f4 MDL-51789 users: Allow picture update from webservices.
useredit_update_picture as moved to user_update_picture
as it's more general.  It was also moved to user/lib.php
so it can be used by both webservices and edit without more include files.
2016-06-21 16:36:53 +10:00
Andrew Nicols bc341d4f08 Merge branch 'MDL-54920-master' of https://github.com/sammarshallou/moodle 2016-06-21 14:15:41 +08:00
Andrew Nicols 65126de122 Merge branch 'MDL-54894-master' of git://github.com/crazyserver/moodle 2016-06-21 12:09:09 +08:00
Andrew Nicols 0871afcd5f Merge branch 'MDL-54940-master' of https://github.com/LukeCarrier/moodle 2016-06-21 11:53:05 +08:00
Andrew Nicols 4a837c7ba0 Merge branch 'MDL-54881' of https://github.com/mr-russ/moodle 2016-06-21 11:31:19 +08:00
Andrew Nicols ad6b958997 Merge branch 'MDL-54652-master' of git://github.com/danpoltawski/moodle 2016-06-21 11:26:42 +08:00
Andrew Nicols b3f25cbfbf Merge branch 'MDL-35104-master-2' of git://github.com/cameron1729/moodle 2016-06-21 11:18:03 +08:00
Cameron Ball 8c2b696bf7 MDL-35104 auth: Don't allow modification of username
Presently it is either unreliable, or not possible to change
the username of a user created with an authentication plugin.
In some cases it is even hard coded to fail. Ideally we would
sync the username, and the issue MDL-21928 exists to address
that. However, in the mean time we should not allow the
username of an external user to be modified.
2016-06-21 11:15:19 +08:00
Andrew Nicols 8a46580603 Merge branch 'MDL-51505-master' of git://github.com/FMCorz/moodle 2016-06-21 10:30:22 +08:00
Andrew Nicols 62d34a4af2 Merge branch 'MDL-54654-master' of git://github.com/danpoltawski/moodle 2016-06-21 09:58:18 +08:00
Simey Lameze 6937d89be6 MDL-54948 core_upgrade: fix unoconv check on the environment page 2016-06-21 09:38:01 +08:00
Simey Lameze 9254ba09e8 MDL-54948 core_files: make the check consistent on unoconv test page 2016-06-21 09:36:44 +08:00
Andrew Nicols c6d20e61e3 Merge branch 'wip-MDL-53399' of https://github.com/JoeyAndres/moodle 2016-06-21 09:03:48 +08:00
Andrew Nicols da871bb4c1 Merge branch 'wip-MDL-53292-master' of https://github.com/marinaglancy/moodle 2016-06-21 08:46:38 +08:00
Andrew Nicols badbaa64e3 MDL-54778 form: Fix lots of issues with form dependencies
The original issue here was that each loop of the named values did not
check for prototypal properties. As a result, if there were input fields
with names such as 'sort', 'valueOf', 'constructor', etc. these would
return their prototypal functions instead of a falsy value, and be treated
as though they are array - hence the 'Cannot push to Function' type error.

Following on from this I discovered that the data stores were being created
as arrays, but used as objects. This can also cause issues with some form
input names -- e.g. if they are numeric.

These two issues were resolved together by correctly storing them in
objects, and checking that those objects had real properties
(hasOwnProperty). This itself has to use the prototypal function to cater
for the potential of a field name called 'hasOwnProperty'.

I also found that the instance value stores were being initialised in the
prototype (and therefore shared), which meant that there were numerous
issues if two forms were present on the same page, or one form replaced an
existing one (e.g. forms initialised in JS).

In addition, it also became apparant that several values were being used
outside of scope, or in the wrong scope. This caused further issues when
creating multiple forms on a page.
2016-06-21 07:58:13 +08:00
Rajesh Taneja 481a5ee517 MDL-54589 behat: Update composer to point to new tag 2016-06-21 06:31:42 +08:00
Russell Smith 8675453e82 MDL-54881 quiz: Ensure user attempts are deterministic for testing. 2016-06-21 08:31:26 +10:00
Eloy Lafuente (stronk7) 795150c550 Merge branch 'MDL-37554-master-test' of git://github.com/cameron1729/moodle 2016-06-21 00:03:45 +02:00
AMOS bot 8e4ab79297 Automatically generated installer lang files 2016-06-21 00:05:07 +08:00
AMOS bot 11070d8d28 Automatically generated installer lang files 2016-06-21 00:05:06 +08:00
Juan Leyva d889b58747 MDL-54955 webservice: Apply external_format_string in course names 2016-06-20 13:16:52 +01:00
Rajesh Taneja f55d87c55c MDL-54589 behat: Fixed failures for phantomjs standalone 2016-06-20 16:03:36 +08:00
Rajesh Taneja 6a51c58542 MDL-54589 behat: Don't allow floating headers for behat 2016-06-20 16:03:36 +08:00
Rajesh Taneja fba0ac63b8 MDL-54589 behat: Added hack for some OS/browsers 2016-06-20 16:03:36 +08:00
Pau Ferrer Ocaña 6f26fcd7e0 MDL-54894 comments: Get course from context if not informed 2016-06-20 08:58:05 +02:00
Jun Pataleta a2d5c332a2 MDL-54924 tool_lp: Make the url property optional 2016-06-20 14:57:10 +08:00
Adrian Greeve ccc9777aee MDL-47113 mod_lti: Use of html_writer rather than hard coded HTML. 2016-06-20 14:49:04 +08:00
Ben Kelada b346737e75 MDL-47113 lti: Add link to open in new window, when popup blocked 2016-06-20 14:39:39 +08:00
Andrew Nicols 5c3de4fe55 Merge branch 'wip-MDL-54590-master-test' of git://github.com/abgreeve/moodle 2016-06-20 14:09:54 +08:00
Vadim Dvorovenko 68b50753ae MDL-54590 Installer: Additional info about database name
Additional info that creating database name containing dots is not
   supported
2016-06-20 14:06:14 +08:00
Andrew Nicols 0256b7a620 Merge branch 'MDL-51163-master' of git://github.com/cameron1729/moodle 2016-06-20 11:09:47 +08:00
Rajesh Taneja 6a021f59f3 MDL-54589 group: ensure loader is available before remobing 2016-06-20 09:43:08 +08:00
Rajesh Taneja 3aaf98f62c MDL-54589 behat: Trigger change event after selecting option
After selecting option, some browsers need
explicit change event
2016-06-20 09:43:08 +08:00
Luke Carrier a48f2d3d90 MDL-54940 behat: use the fixed step 2016-06-19 17:22:17 +01:00
Luke Carrier 3ceaea2638 MDL-54940 behat: rectify section edit regression in MDL-53381 2016-06-19 17:11:31 +01:00
AMOS bot 933de74287 Automatically generated installer lang files 2016-06-20 00:04:39 +08:00
AMOS bot a399892bfc Automatically generated installer lang files 2016-06-19 00:06:02 +08:00
Dan Poltawski 7f70d548fe MDL-54939 amd: build modified files 2016-06-17 09:03:18 +01:00
Dan Poltawski c96f55e6f9 MDL-54939 amd: fix lint issues
Mostly correcting jsdoc, some other line wrapping rules and empty
functions.
2016-06-17 09:03:18 +01:00
Dan Poltawski 926ac16ef3 MDL-54654 mod: fix forum/scorm invalid css 2016-06-16 20:52:04 +01:00
Dan Poltawski c6eddafcad MDL-54654 mod_data: fix invalid css for image gallery preset 2016-06-16 20:52:04 +01:00
Dan Poltawski f909e9e5a9 MDL-54654 choice: remove CSS definitions
The 'inherit' for border colour was not valid and so no border was
displayed.

The display:inline does not work with floated elemenets.
2016-06-16 20:52:04 +01:00
Dan Poltawski 48d5c2183a MDL-54654 choice: reformat CSS 2016-06-16 20:52:04 +01:00
Dan Poltawski f567699fe4 MDL-54654 book: silence csslint warning
(Important is by design for print layout)
2016-06-16 20:52:04 +01:00
Dan Poltawski 4c62bdab0d MDL-54654 assignfeedback_editpdf: remove invalid CSS
The 'left' positioing was invalid and conflicting with the
right definition anyway, so wasn't necessary.
2016-06-16 20:52:04 +01:00
Dan Poltawski cc3ca25e57 MDL-54652 singleview: remove invalid css decleration
margin-bottom can't be used with display: inline, so use padding
instead.
2016-06-16 20:49:04 +01:00
Dan Poltawski 9072631311 MDL-54652 grade_report: fix css lint issues
max-width: initial isn't valid css and in my testing it makes no
difference, so is removed.

We also remove invalid css on exception.

This reverts commit 72ece42858
2016-06-16 20:49:04 +01:00
Dan Poltawski f3ac852859 MDL-54652 block_community: remove unused css
Fixing lint errors
2016-06-16 20:49:04 +01:00
Dan Poltawski 8a802c9032 MDL-54652 filter_mediaplugin: refomat css 2016-06-16 20:49:04 +01:00
Dan Poltawski d8b5fb1255 MDL-54652 filter_mediaplugin: removed unused invalid css
It is override by core styles anyway.
2016-06-16 20:49:04 +01:00
Dan Poltawski 64527edca2 MDL-54652 tool_lp: remove invalid css on comeptency menu bar 2016-06-16 20:49:04 +01:00
Dan Poltawski c74b305dfa MDL-54652 tool_health: make css more specific to avoid '!important'
This admin tool is unsupported anyway..
2016-06-16 20:49:04 +01:00
Dan Poltawski 0d06a20038 MDL-54939 eslint: tweak rules
1) Allow jsdoc descriptions to be empty. I think that matches our phpdoc
checker, and I think its probably better than me filling the
descriptions in poorly.

2) For the captilisation rules, don't apply to object properties (this
is because jQuery has lots of violators of this rule)
2016-06-16 19:33:00 +01:00
Dan Poltawski 35be582696 MDL-54939 amd: Fix lint issues fixable with eslint --fix 2016-06-16 19:33:00 +01:00
Eloy Lafuente (stronk7) 49619ce243 weekly release 3.2dev 2016-06-16 17:01:29 +02:00
Eloy Lafuente (stronk7) badd6b2344 NOBUG: Fixed SVG browser compatibility 2016-06-16 17:01:25 +02:00
Juan Leyva 0002056f7a MDL-54857 tool_mobile: New WS get_site_public_settings 2016-06-16 11:26:35 +01:00
Andrew Nicols eddf7994f0 Merge branch 'MDL-52127-eloy' of https://github.com/danpoltawski/moodle 2016-06-16 09:04:17 +01:00
Andrew Nicols c3081f9fac Merge branch 'wip-mdl-54899' of git://github.com/rajeshtaneja/moodle 2016-06-16 09:04:16 +01:00
Andrew Nicols d91b6854e9 Merge branch 'MDL-45762-master' of https://github.com/xow/moodle 2016-06-16 09:04:16 +01:00
Andrew Nicols a029e5212d Merge branch 'MDL-53788_modlti_master' of git://github.com/nhoobin/moodle 2016-06-16 09:04:15 +01:00
Andrew Nicols 00f99e270a Merge branch 'MDL-54649-master' of git://github.com/danpoltawski/moodle 2016-06-16 09:04:14 +01:00
Andrew Nicols 5869e4b74f Merge branch 'MDL-54559-int-master' of https://github.com/merrill-oakland/moodle 2016-06-16 09:04:14 +01:00
Eric Merrill 9c6a38063b MDL-54559 theme: Recenter search box 2016-06-16 09:04:13 +01:00
Dan Poltawski 0fd08fc7e5 Merge branch 'MDL-35628' of https://github.com/mr-russ/moodle 2016-06-16 09:04:12 +01:00
Dan Poltawski 7d78a2eee2 Merge branch 'MDL-54563-master' of git://github.com/cameron1729/moodle 2016-06-16 09:04:12 +01:00
Dan Poltawski d7c9327d48 Merge branch 'MDL-51749-master' of git://github.com/junpataleta/moodle 2016-06-16 09:04:11 +01:00
Dan Poltawski 134e4566ff Merge branch 'MASTER_MDL-53306' of https://github.com/jacac/moodle 2016-06-16 09:04:10 +01:00
Dan Poltawski 435fb13814 Merge branch 'MDL-54617-master' of git://github.com/cameron1729/moodle 2016-06-16 09:04:10 +01:00
Dan Poltawski 4f400df523 Merge branch 'MDL-54036_master' of https://github.com/liorgil/moodle 2016-06-16 09:04:09 +01:00
Dan Poltawski b08523598b Merge branch 'MDL-54622_m32v1' of https://github.com/sbourget/moodle 2016-06-16 09:04:09 +01:00
Andrew Nicols 62bc2e84c5 Merge branch 'MDL-54712-master' of git://github.com/junpataleta/moodle 2016-06-16 09:04:08 +01:00
Andrew Nicols 168b1d9885 Merge branch 'MDL-54559-master' of git://github.com/junpataleta/moodle 2016-06-16 09:04:08 +01:00
Andrew Nicols 45a0932a9e Merge branch 'MDL-54797' of git://github.com/aolley/moodle 2016-06-16 09:04:07 +01:00
Andrew Nicols 337ee7ffa2 Merge branch 'MDL-54787_master' of https://github.com/snake/moodle 2016-06-16 09:04:07 +01:00
Andrew Nicols 1e7aaed887 Merge branch 'MDL-54576_themeSelector' of https://github.com/mrmark/moodle 2016-06-16 09:04:06 +01:00
Andrew Nicols de0298d5fd Merge branch 'MDL-54859_master' of git://github.com/dmonllao/moodle 2016-06-16 09:04:05 +01:00
Andrew Nicols bb15b62ce8 Merge branch 'MDL-52127-master' of git://github.com/danpoltawski/moodle 2016-06-16 09:04:05 +01:00
Andrew Nicols 860f76e11e Merge branch 'MDL-51978-master' of https://github.com/jtc/moodle 2016-06-16 09:04:04 +01:00
Eloy Lafuente (stronk7) 392c40467f Merge branch 'MDL-54890-master' of git://github.com/danpoltawski/moodle 2016-06-16 09:04:04 +01:00
Dan Poltawski d13f2a6934 Merge branch 'MDL-51683-master' of git://github.com/FMCorz/moodle 2016-06-16 09:04:03 +01:00
Stephen Bourget 77971021ff MDL-54935 Survey: Remove duplicate event trigger 2016-06-15 17:09:17 -04:00
Juan Leyva 27c7ed0b2e MDL-54800 core_enrol: Return category id in WS get_users_courses 2016-06-15 15:59:07 +01:00
Dan Poltawski f8731225f9 MDL-52127 grunt: add .eslingingore file, keep task
Eloy prefers we keep the ignorefiles grunt task
2016-06-15 15:52:34 +01:00
Juan Leyva 89823b1ae3 MDL-54601 webservice: Order services function list by name 2016-06-15 15:40:55 +01:00
Juan Leyva 331e038b2e MDL-54856 webservice: Add core_course_get_categories to mobile service 2016-06-15 15:05:52 +01:00
Guy Thomas 8e61e0f9b9 MDL-45762 course: Error when accessing a conditionally hidden section
Show a nice error when the user accidentally views a section
that is conditionally hidden.  Otherwise, continue to show
original error when section is just hidden to them.
2016-06-15 09:53:35 +08:00
Nicholas Hoobin 1512f61710 MDL-53788 multilangupgrade: fix aggressive course cache rebuilding 2016-06-15 10:49:28 +10:00
Nicholas Hoobin 2abe0ac5a9 MDL-53788 user: fix aggressive course cache rebuilding 2016-06-15 10:42:28 +10:00
Nicholas Hoobin 99a5377bb7 MDL-53788 mod_lti: fix aggressive course cache rebuilding 2016-06-15 10:42:27 +10:00
sam marshall 5a14c4d948 MDL-54920 Behat: Allow viewport size to be set consistently
Provides a new Behat step

And I set viewport size to "800x600"
2016-06-14 12:28:24 +01:00
Dan Poltawski b18478b935 MDL-52127 grunt: fix coding style issues in gruntfile 2016-06-14 00:37:29 +01:00
Dan Poltawski 30db70abdc MDL-52127 grunt: be aware of third party paths
1) Parse thirdpartylibs.xml and generate an array of third party
file paths to use in grunt tasks
2) In the lint tasks, we filter third party files from being linted
3) We add a new task to generate ignore files - currently for eslint,
but will be potentially useful for other things in the future
4) Remove .eslintignore from source control

Why have the ability to generate a .eslintignore file? For tooling
integration - by having the eslintignore file people can use other
eslint tools without having to just use grunt (e.g. editor
integrations).
2016-06-14 00:37:29 +01:00
Dan Poltawski be4b3cc6c7 MDL-52127 js: switch to a more YUI tolerant eslint config
Instead of having the stricter configuration for all files, use
the less strict default config and switch to the stricter config
for building AMD modules.

This means that the eslint commandline/editor inspections will work
better for all files and not generate false positives when using editor
integrations. But since grunt is required to build AMD modules we still
get the stricter checking for those files on build.
2016-06-14 00:37:28 +01:00
Dan Poltawski d25e8fde45 Merge branch 'MDL-54772-master' of git://github.com/junpataleta/moodle 2016-06-13 09:35:58 +01:00
Joby Harding def383943b MDL-51505 tool_templatelibrary: Prevent jumping when selecting template 2016-06-13 09:30:37 +01:00
Dan Poltawski 88b0045106 Merge branch 'MDL-54562_master' of git://github.com/dmonllao/moodle 2016-06-13 09:17:49 +01:00
Dan Poltawski f3caf30690 Merge branch 'MDL-54837-master' of git://github.com/marinaglancy/moodle 2016-06-13 08:51:56 +01:00
Dan Poltawski 8d7bd87e6e Merge branch 'MDL-54842-master' of git://github.com/junpataleta/moodle 2016-06-13 08:36:38 +01:00
Marina Glancy 8fef061da4 MDL-53292 core: deprecate callback delete_course 2016-06-13 10:48:06 +08:00
Cameron Ball 3f897b1966 MDL-51163 course: Remove course/category.php 2016-06-13 10:24:15 +08:00
eWallah 6ae9dbc2aa MDL-37554 activities select all option 2016-06-13 10:22:16 +08:00
Jun Pataleta cdbdb2f9b7 MDL-54772 mod_assign: Fixes for PDF editor
* Render the annotations and comments within the drawing canvas, not in
the drawing region.
* Remove edit-related event bindings for stamp annotations.
2016-06-13 09:54:02 +08:00
Andrew Nicols 377b29d826 Merge branch 'MDL-24064-master' of git://github.com/FMCorz/moodle 2016-06-13 09:17:53 +08:00
Stephen Bourget 1e93eb58ce MDL-54656 Behat: Additional tests for advanced search 2016-06-12 20:50:46 -04:00
Stephen Bourget a6540f38ce MDL-54656 Behat: Add tests for search_forums block 2016-06-12 20:50:21 -04:00
Rajesh Taneja ac22c86bed MDL-54899 behat: Tag for MOODLE 32 version 2016-06-13 07:26:51 +08:00
Dan Poltawski a1587268cb MDL-52127 js: check YUI modules with eslint
Because we don't have the entire YUI rollup, we can't apply some of the
rules safely, so we ignore some rules.

At this point I am not 100% certain this configuration is robust enough,
to deal with the lack fo rollup knowledge although its a good sign that
there are no errors on our entire yui codebase.
2016-06-11 10:14:35 +01:00
Dan Poltawski 3adb62b727 MDL-52127 js: check amd files with eslint grunt task
I have spent quite a lot of time working through the current list of
eslint options and configuring them for Moodle style and I think this is
a very good basis to start us at (as well as taking some of out jshint
options out with https://www.npmjs.com/package/polyjuice ). Thanks to
Andrew Nicols, Mark Johnson and Frédéric Massart for some refinements.

With this configuration the grunt build will fail if errors are present
in the js (though you can of course tell jshint to ignore some errors,
as I have done in admin/tool/lp/amd/src/competency_rule_points.js and
defining the Y global in lib/amd/src/yui.js ).

The grunt task will not report warnings by default, but a new
--show-lint-warnings flag will help achieve that. Editor
integrations/stanadalone eslint tool will surely be a better way of
getting eslint errors rather than using the grunt task.
2016-06-11 10:14:35 +01:00
Jake Dallimore cd6dfd68d8 MDL-54787 mod_quiz: Fix notification error on regrade 2016-06-10 18:26:30 +08:00
Dan Poltawski 834f1b66d4 MDL-54890 course: remove erranous duplicated switch label
Detected by eslint rule 'no-duplicate-case'
2016-06-10 10:06:28 +01:00
Dan Poltawski 8b766dd1d8 MDL-54890 assignfeedback_editpdf: Fix missing semicolon
Detected by eslint rule 'semi'
2016-06-10 10:06:25 +01:00
Jun Pataleta 93f3988cf7 MDL-54712 mod_lti: Remove markup from LTI admin notification messages 2016-06-10 15:10:45 +08:00
Jun Pataleta 5d01400a85 MDL-54842 core_renderer: Hide additional body HTML in embedded layout 2016-06-10 14:47:14 +08:00
Rajesh Taneja 06b2c25662 MDL-48114 core: Add meta information to composer.json 2016-06-10 06:29:16 +08:00
Russell Smith 1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
Stephen Bourget fb8b18a44d MDL-53111 Lesson: Allow "end reached" criteria to be disabled 2016-06-09 12:18:34 -04:00
Dan Poltawski a0a63678a9 weekly on-sync release 3.2dev 2016-06-09 11:25:51 +01:00
Dan Poltawski b86bba12d7 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-06-09 11:25:49 +01:00
Andrew Nicols 2c4e6d6252 MDL-54853 weblib: Specify version and fixed encoding 2016-06-09 09:53:48 +08:00
Andrew Nicols 360e819fd3 Merge branch 'MDL-54853-master' of git://github.com/cameron1729/moodle 2016-06-09 09:41:53 +08:00
Cameron Ball 2549f46f7c MDL-54853 weblib: Properly specify encoding for blanktarget 2016-06-08 18:29:19 +08:00
David Monllao dc4c357435 MDL-54859 mod_wiki: Client rules only when fields are visible 2016-06-08 16:44:45 +08:00
Russell Smith 0b768e744f MDL-53495 database xmldb: Use real length restriction. 2016-06-08 11:06:16 +10:00
Andrew Nicols 147df77923 Merge branch 'MDL-53947-master' of git://github.com/junpataleta/moodle 2016-06-08 08:15:23 +08:00
Dan Poltawski 631edc10ae MDL-46721 assign: clarify ternerary statement 2016-06-07 12:15:19 +01:00
Dan Poltawski db417025d7 Merge branch 'MDL-46721-master' of git://github.com/cameron1729/moodle 2016-06-07 12:12:28 +01:00
Dan Poltawski 7bcab9d1fd Merge branch 'MDL-48756-master' of git://github.com/FMCorz/moodle 2016-06-07 11:49:39 +01:00
Dan Poltawski 654e77e74d MDL-54729 mod_forum: clarify static variable usage
After some time discussing with integrators, we decided that this
slightly yukky solution probably fits safely, so just making its usage
better explained and speciifc.
2016-06-07 10:46:53 +01:00
Adrian Greeve 09fec72819 MDL-54729 mod_forum: Deep link highlighting works in IE. 2016-06-07 10:30:18 +01:00
Dan Poltawski df4af29945 Merge branch 'MDL-54765-master' of git://github.com/junpataleta/moodle 2016-06-07 09:41:27 +01:00
David Monllao 8a4f4f576e Merge branch 'MDL-54180_master' of https://github.com/marxjohnson/moodle 2016-06-07 16:15:43 +08:00
Eric Merrill 677650c327 MDL-54559 theme: Fix padding that pushes navbar down 2016-06-07 14:52:26 +08:00
Skylar Kelty 1f5a347b46 MDL-53947 memcached: Fix memcached session warning on PHP7 2016-06-07 10:25:07 +08:00
Marina Glancy 64e9180d2e MDL-54837 tags: allow to specify static function as callback 2016-06-07 08:58:59 +08:00
Marina Glancy 6ee5e596b8 MDL-54837 tags: fixed bug when collection is locked
also fixed fatal error for upgraded plugins that did not pass tag
component to the tag form element
2016-06-07 08:38:39 +08:00
Eloy Lafuente (stronk7) 31220d5a26 Merge branch 'MDL-54739-master' of git://github.com/lameze/moodle 2016-06-07 00:04:59 +02:00
Eloy Lafuente (stronk7) 512f9def5c Merge branch 'MDL-54769-master' of git://github.com/marinaglancy/moodle 2016-06-06 23:56:25 +02:00
Eloy Lafuente (stronk7) ccbb50d2e2 Merge branch 'MDL-54805-master' of git://github.com/junpataleta/moodle 2016-06-06 18:06:36 +02:00
Dan Poltawski 4bfeaf2d5f Merge branch 'wip-MDL-50824-master' of https://github.com/cdsmith-umn/moodle 2016-06-06 15:07:01 +01:00
Dan Poltawski 015b4d22a2 Merge branch 'MDL-54820-master' of git://github.com/jleyva/moodle 2016-06-06 14:09:59 +01:00
Dan Poltawski 5bd52435b4 Merge branch 'MDL-54702_master' of https://github.com/snake/moodle 2016-06-06 13:41:48 +01:00
Dan Poltawski e750544a06 Merge branch 'MDL-53392_master' of https://github.com/snake/moodle 2016-06-06 13:21:09 +01:00
Dan Poltawski 53ee327c69 Merge branch 'MDL-54557-master' of git://github.com/marinaglancy/moodle 2016-06-06 13:17:13 +01:00
Dan Poltawski a7de32a265 Merge branch 'wip-MDL-49852-master' of git://github.com/abgreeve/moodle 2016-06-06 11:59:42 +01:00
Eloy Lafuente (stronk7) 294c242532 Merge branch 'MDL-41922-master-c' of git://github.com/FMCorz/moodle 2016-06-06 11:23:09 +02:00
Dan Poltawski f549e4b7e8 MDL-54649 quiz/question: remove uncessary !important uses
They do not seem at all necessary in testing, so probably just legacy
from lack of css understanding when added.
2016-06-05 20:29:13 +01:00
Mike Churchward b96c9a1abe MDL-54805 portfolio_download: Adding a 'require' of necessary library file 2016-06-04 21:53:34 +08:00
AMOS bot 00eff42833 Automatically generated installer lang files 2016-06-04 00:04:17 +08:00
Dan Poltawski 996a1dab8f MDL-54649 quiz/question: fix css lint errors
Mostly the rules were not having any effect so have been removed.

The text-wrap rule was removed rather than corrected because overflow
was clipped with ellipsis anyway.

An exception for !important has been added to mod/quiz/styles.css
because the use in the secure style is by design. But the exception
isn't ideal because it applied to the whole file and csslint doesn't
seem to be very intelligent at appling line rules at a more granular
level at this point in time.
2016-06-03 14:18:57 +01:00
Juan Leyva 72ac2aacfa MDL-54820 webservice: Fix regression in core_course_search_courses
Regression caused by MDL-51324
2016-06-03 12:56:11 +02:00
Jun Pataleta bb2281d53c MDL-54765 mod_assign: Use selectedIndex for setting page selection
Set the 'selectedIndex' attribute of the page selection element instead of
the 'value' attribute since YUI is having trouble with this in IE.
2016-06-03 14:55:43 +08:00
Frederic Massart ac032e0e09 MDL-41922 mod_quiz: Don't report quiz due when an attempt was finished 2016-06-03 14:52:34 +08:00
Joey Andres fdac806aef MDL-53399 core: "activity chooser off/on" in user preference
- Created a "Course preferences" for user preference. This
  is where "activity chooser off/on" option is moved.
- Changed the lib/navigationlib.php to have a new user preference
  section, which is "Course preferences".
- Removed the "activity chooser" toggle codes in javascript.
2016-06-03 00:46:16 -06:00
Andrew Nicols 4ee8ef5d41 weekly on-sync release 3.2dev 2016-06-03 12:09:19 +08:00
Andrew Nicols 841f623dad Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-06-03 12:09:16 +08:00
Simey Lameze f49a3e1791 MDL-54739 blocks: fix activity chooser link alignment
Thanks Ryan Wyllie for the help.
2016-06-03 10:55:52 +08:00
Clement Smith 126a4bc47b MDL-50824 message/externallib.php: Fix get_string call
This fixes the get_string call by adding the intended recipient's
fullname as the third argument when a user tries to message the
recipient, the recipient is blocking non-contacts from messaging
them, and the user is not in the recipient's contact list.
2016-06-02 07:11:16 -05:00
Adam Olley e9f7c4a4b2 MDL-54797 course: Add indexed field to condition of delete query
Deleting records from the course_completion_criteria table goes much
faster when we include the indexed course field in the delete query.
2016-06-02 15:43:30 +09:30
Marina Glancy 5e717d10b4 MDL-54557 course: treat section summary as contents 2016-06-02 12:56:34 +08:00
Andrew Nicols 05263307d7 MDL-54722 javascript: Add YUI depend wrapper to global event 2016-06-02 10:07:56 +08:00
AMOS bot 7087d1cfde Automatically generated installer lang files 2016-06-02 00:04:13 +08:00
Frederic Massart a5ea5149b8 MDL-48248 enrol_manual: Handle durations more precise than int days 2016-06-01 15:57:12 +08:00
Frederic Massart 240a9de4ab MDL-48756 editor_atto: Bulk atto autosave queries 2016-06-01 12:49:15 +08:00
Andrew Nicols 69dcebb04d Merge branch 'MDL-54722-master' of git://github.com/cameron1729/moodle 2016-06-01 12:24:14 +08:00
Stephen Bourget 5b40141f6d MDL-54563 Block: Only Allow completion blocks on course pages 2016-06-01 10:42:01 +08:00
Cameron Ball fd5466af99 MDL-54722 navigation: Properly overflow expanded nav trees 2016-06-01 10:15:22 +08:00
Jake Dallimore c724c98829 MDL-54702 mod_lti: Support standard cartridge icons in LTI import 2016-06-01 09:49:10 +08:00
Marina Glancy 88038050b1 MDL-54769 backup: add missing error language string 2016-06-01 09:44:42 +08:00
Andrew Nicols e68dabc756 Merge branch 'MDL-53598-master' of git://github.com/marinaglancy/moodle 2016-06-01 08:02:32 +08:00
Mark Johnson be8b89500c MDL-54180 Behat: Handle exceptions from driver when saving screenshot 2016-05-31 12:32:57 +01:00
Marina Glancy 9c3710854b MDL-53598 block_glossary_random: do not fail if glossary was deleted
This commit refactors how associated glossary is searched for and removes
unnecessary DB queries. Also prevents from situations when the global glossary or course have
been deleted
2016-05-31 15:30:41 +08:00
David Monllao 19e078dd2a Merge branch 'MDL-54065-master' of git://github.com/marinaglancy/moodle 2016-05-31 15:27:29 +08:00
Andrew Nicols b29d2b2aa8 Merge branch 'MDL-54655_m32v1' of https://github.com/sbourget/moodle 2016-05-31 13:29:48 +08:00
David Monllao 5751f7a36c Merge branch 'MDL-54667-master' of git://github.com/junpataleta/moodle 2016-05-31 12:46:59 +08:00
David Monllao 694d8c4a9e Merge branch 'MDL-54763_master' of git://github.com/markn86/moodle 2016-05-31 12:31:36 +08:00
David Monllao ba4cd26414 Merge branch 'MDL-53851-master' of https://github.com/blckct/moodle 2016-05-31 11:46:09 +08:00
David Monllao 0cdef23bdb Merge branch 'MDL-53938' of git://github.com/timhunt/moodle 2016-05-31 11:42:17 +08:00
David Monllao d1577993b6 Merge branch 'MDL-54605' of git://github.com/timhunt/moodle 2016-05-31 11:32:11 +08:00
Andrew Nicols 73b0dcb106 Merge branch 'MDL-54579_m31v1' of https://github.com/sbourget/moodle 2016-05-31 11:18:27 +08:00
Barbara Ramiro 000d660fda MDL-51683 design: New icon for competencies 2016-05-31 10:48:18 +08:00
Jakob cffd0fa138 MDL-53306 auth: Add hook for auth plugins to access user object.
Add a hook for auth plugins to be able to modify or check a user, before
raising any authentication errors.

The auth plugin needs to add a public function like this:

/**
 * Pre user_login hook.
 * This method is called from authenticate_user_login() right after the user
 * object is generated. This gives the auth plugins an option to make adjustments
 * before the verification process starts.
 *
 * @param object $user user object, later used for $USER
*/
public function pre_user_login_hook(&$user) {
    // Override if needed.
}
2016-05-30 11:57:03 -07:00
Jakub Kania 81475d2602 MDL-54667 core_lib: Fix the param name in edit profile link 2016-05-30 16:34:02 +08:00
Cameron Ball af6a424054 MDL-37138 weblib: Document blanktarget in upgrade.txt 2016-05-30 16:12:17 +08:00
David Monllao abd5f819d0 Merge branch 'MDL-54002_m32v3' of https://github.com/sbourget/moodle 2016-05-30 16:08:53 +08:00
David Monllao 4f24176f17 Merge branch 'MDL-54010-master' of git://github.com/cameron1729/moodle 2016-05-30 16:04:04 +08:00
David Monllao 7e93c2e6f6 Merge branch 'MDL-54577-master' of git://github.com/cameron1729/moodle 2016-05-30 15:45:47 +08:00
David Monllao 9812222d21 Merge branch 'MDL-29905-master' of git://github.com/FMCorz/moodle 2016-05-30 15:40:43 +08:00
David Monllao 13d04ab6c1 Merge branch 'MDL-54116-master' of git://github.com/cameron1729/moodle 2016-05-30 15:36:01 +08:00
David Monllao 42d0093d6e Merge branch 'MDL-49943-master' of git://github.com/marinaglancy/moodle 2016-05-30 15:29:22 +08:00
Andrew Nicols a29e419b2c Merge branch 'MDL-54756' of git://github.com/timhunt/moodle 2016-05-30 15:19:04 +08:00
David Monllao 1e562ebc48 Merge branch 'MDL-37138-master-2' of git://github.com/cameron1729/moodle 2016-05-30 15:02:17 +08:00
Andrew Nicols 1f9c338bc1 Merge branch 'MDL-54567-master-build' of git://github.com/FMCorz/moodle 2016-05-30 14:39:23 +08:00
Marina Glancy 42dfbb5416 MDL-49943 mod_choice: display multiple answers in complete report 2016-05-30 14:17:17 +08:00
Jun Pataleta 46b888dbd6 MDL-53425 blocklib: Raise execution time for dashboard reset process 2016-05-30 14:12:28 +08:00
Andrew Nicols 7c8f4f6b70 Merge branch 'MDL-35987-master' of git://github.com/FMCorz/moodle 2016-05-30 13:38:52 +08:00
David Monllao 485de12199 Merge branch 'MDL-53425-master-delete-by-chunks' of git://github.com/junpataleta/moodle 2016-05-30 13:35:24 +08:00
Mark Nelson e0d60498d8 MDL-54763 tool_lp: fixed typo in HTML tag 2016-05-30 13:31:31 +08:00
Andrew Nicols e67da0d792 MDL-54567 backup: Fixtures for legacy grade value rewrite 2016-05-30 13:22:04 +08:00
Frederic Massart 2a64b641e6 MDL-54567 backup: Process the calculations_freeze item upon restore 2016-05-30 13:22:03 +08:00
Cameron Ball cd29373c35 MDL-37138 chat: Use blanktarget option for chat text 2016-05-30 13:18:02 +08:00
Cameron Ball 64e8311939 MDL-37138 message: Use blanktarget option for message text 2016-05-30 13:18:01 +08:00
Cameron Ball bf9974870b MDL-37138 weblib: Add blanktarget option to format_text 2016-05-30 13:17:59 +08:00
David Monllao edf842a462 Merge branch 'MDL-48248-master' of git://github.com/FMCorz/moodle 2016-05-30 13:02:34 +08:00
Frederic Massart 31031e98c7 MDL-29905 question: Auto remove stale questions upon category deletion 2016-05-30 12:26:09 +08:00
Eric Merrill 54640aba8a MDL-29905 question: Try to delete unused hidden/random questions
Before going to display the warning about moving in use questions,
try to delete unused Random qtype questions, as well as 'hidden'
questions (these are questions that were deleted from the category),
but were in use at the time.
2016-05-30 12:25:21 +08:00
Jun Pataleta 4eba620ae3 MDL-53425 blocklib: Perform deletion of block instances by chunk 2016-05-30 11:22:47 +08:00
David Monllao 571f30b376 Merge branch 'MDL-54721-master' of git://github.com/FMCorz/moodle 2016-05-30 11:15:20 +08:00
David Monllao 3300393d05 Merge branch 'MDL-43887-master' of git://github.com/cameron1729/moodle 2016-05-30 11:08:46 +08:00
David Monllao 5baf32c038 Merge branch 'MDL-51806_master' of https://github.com/snake/moodle 2016-05-30 10:51:33 +08:00
Jake Dallimore f747f5a0d5 MDL-51806 mod_workshop: Add locale support for grade values. 2016-05-30 10:25:26 +08:00
David Monllao 0196f0101c Merge branch 'wip-MDL-45427-master' of git://github.com/abgreeve/moodle 2016-05-30 10:19:24 +08:00
Marina Glancy bc6a7431a2 MDL-54065 gradebook: correctly display module icon 2016-05-30 10:07:40 +08:00
Stephen Bourget 18875f811a MDL-54655 Behat: Tests for the online_users block 2016-05-27 18:21:25 -04:00
Tim Hunt 31c07476db MDL-54756 moodle_url: remove dangerous trim from make_file_url
This was a regression caused by MDL-50268. It broke qtype_stack.
2016-05-27 19:55:25 +01:00
Tim Hunt f027922e4f MDL-54605 quiz regrading: incorrect DB query
There were two issues. With groups, the $params array was wrong
due to PHP + vs array_merge sillyness.

Also, the first column in the SQL was not necessarily unique,
so we need to use a recordset rather than get_records.
2016-05-27 08:11:32 +01:00
Adrian Greeve 0cf8082a8f MDL-49852 mod_assign: Unit tests for activity completion. 2016-05-27 14:10:55 +08:00
Cameron Ball e6e69969c1 MDL-43887 formslib: Allow not set date field
Previously if the date field was not enabled it would
be treated as having value 0. A bug would allow this 0
to pass through and save the date as 1 January 1970
2016-05-27 01:52:57 +08:00
AMOS bot 867181ab19 Automatically generated installer lang files 2016-05-27 00:04:40 +08:00
Frederic Massart 6e91817178 MDL-54721 report_competency: Do not ignore the first user selection 2016-05-26 17:54:52 +08:00
Jake Dallimore 7eafbbf7fa MDL-53392 mod_assign: Remove old Grade Max warning string references 2016-05-26 17:16:53 +08:00
Steve Bader 9569b01cc9 MDL-49852 mod_assign: Fix group assignment completion tracking
Fixes completion tracking for group assignments where either only
one student is required to click Submit when submitting the
assignment for grading, all students are required to submit,
or no students are required to click submit (meaning that simply
uploading submits for grading).
2016-05-26 16:03:03 +08:00
Cameron Ball bb30944f49 MDL-54010 roles: Specify encoding for escaped export data 2016-05-26 10:31:28 +08:00
Nigel Cunningham d50a9a9d30 MDL-54010 roles: Fix missing HTMLspecialchars in role export code.
Role name and description fields are currently not escaped when
exporting a role. This results in an unusable file when characters
such as ampersands are used in a name or description. Fix this by
using htmlspecialchars on both fields.

Signed-off-by: Nigel Cunningham <nigelc@catalyst-au.net>
2016-05-26 10:31:28 +08:00
Daniel Neis Araujo 4b2dbdecd1 MDL-54617 block_online_users: Always show count of online users 2016-05-26 10:24:30 +08:00
Stephen Bourget 71b1761337 MDL-54577 Behat: Add tests for messages block 2016-05-26 10:21:07 +08:00
Marina Glancy c0e3e9da37 MDL-54116 block_comments: warnings when commenting outside of a course 2016-05-26 10:19:31 +08:00
Stephen Bourget f2778cc5d6 MDL-54116 block_comments: behat test 2016-05-26 10:19:31 +08:00
Eloy Lafuente (stronk7) 6a74e76fb8 weekly on-sync release 3.2dev 2016-05-26 02:15:53 +02:00
Eloy Lafuente (stronk7) ea051ef170 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-05-26 02:15:50 +02:00
Jakub Kania 10186fe83d MDL-53851 news block: Display news from all the accessible groups 2016-05-25 16:54:45 +02:00
Marina Glancy 15a237cea6 MDL-37946 mod_choice: swap horizontal and vertical graphs 2016-05-25 21:31:36 +08:00
David Monllao 3f59e20eeb Merge branch 'MDL-54059-master' of git://github.com/andrewnicols/moodle 2016-05-25 16:17:44 +08:00
Adrian Greeve 43c762ef10 MDL-45427 mod_data: Inserting tags into templates.
Allows tags to be inserted into the editor without
having to touch Atto at all.
2016-05-25 15:24:41 +08:00
Frederic Massart 9a601adc9e MDL-35987 qtype_multianswer: Prevent restore failure due to bad sequence 2016-05-25 12:23:50 +08:00
Andrew Nicols c366cb08cf MDL-54059 testing: Add grunt test 2016-05-25 10:44:36 +08:00
Andrew Nicols a24aff4edf MDL-54059 testing: Simplify travis output 2016-05-25 10:44:01 +08:00
Frederic Massart b8f414c29f MDL-48248 enrol_manual: Ensure that the default value is always selected 2016-05-25 10:16:59 +08:00
Stephen Bourget 1633ec89ad MDL-54002 Behat: tests for recent blogs block 2016-05-24 12:42:31 -04:00
AMOS bot 0fcfcd8327 Automatically generated installer lang files 2016-05-25 00:04:41 +08:00
Frederic Massart 7c9968bd9f MDL-24064 admin: Remove unused code to bulk enrol users 2016-05-24 18:48:06 +08:00
Cameron Ball 4ca7fdd26e MDL-46721 assign: Make blind marking participant numbers match
Previously emails were setting the "From" header to the incorrect
participant number.
2016-05-24 18:19:54 +08:00
Andrew Nicols 979d5c0603 Merge branch 'MDL-54715-master' of git://github.com/marinaglancy/moodle 2016-05-24 14:53:24 +08:00
Marina Glancy 3e9437f412 MDL-54715 core_question: fixed bug when importing questions with tags
Thanks to WangYang for original patch
2016-05-24 14:37:53 +08:00
David Monllao 4024b94d17 Merge branch 'MDL-54675-forum-highlight' of https://github.com/brendanheywood/moodle 2016-05-24 14:20:13 +08:00
David Monllao 7b7b990e43 Merge branch 'MDL-54582' of git://github.com/timhunt/moodle 2016-05-24 11:17:08 +08:00
Brendan Heywood d0d6902a72 MDL-54675 forum: Fixed bug with multiple adjacent hash anchors 2016-05-24 13:07:07 +10:00
Andrew Nicols 13c6946d92 MDL-53687 core_media: Comment fix 2016-05-24 09:02:36 +08:00
Andrew Nicols 939f2b31f9 Merge branch 'MDL-53687-master' of git://github.com/FMCorz/moodle 2016-05-24 08:59:47 +08:00
AMOS bot bcb51b8c87 Automatically generated installer lang files 2016-05-24 00:04:21 +08:00
Frederic Massart c2f430a813 MDL-53687 core_media: Edge does not yet support WebM and OGG 2016-05-23 16:20:15 +08:00
David Monllao e5fa1c5781 MDL-54562 mod_data: Add activities info to search 2016-05-23 16:06:00 +08:00
David Monllao 21eef94436 Merge branch 'MDL-54642-master' of git://github.com/ryanwyllie/moodle 2016-05-23 14:52:54 +08:00
David Monllao 287074207f Merge branch 'MDL-46934-master' of git://github.com/FMCorz/moodle 2016-05-23 14:38:01 +08:00
David Monllao ec7ade95db Merge branch 'MDL-54661-master' of git://github.com/junpataleta/moodle 2016-05-23 14:23:57 +08:00
David Monllao 170402cb4e Merge branch 'MDL-54664-master' of git://github.com/junpataleta/moodle 2016-05-23 09:50:44 +08:00
David Monllao 2eb57cf7a2 Merge branch 'MDL-54677' of git://github.com/stronk7/moodle 2016-05-23 09:13:40 +08:00
Eloy Lafuente (stronk7) 4da854a68b MDL-54677 upgrade: add 3.1.0 separation line to all upgrade scripts 2016-05-23 01:31:34 +02:00
Eloy Lafuente (stronk7) 7a3a3246fa MDL-54676 backup: Bump release to 3.2 2016-05-23 00:23:31 +02:00
Eloy Lafuente (stronk7) 2c952b2f38 weekly back-to-dev release 3.2dev 2016-05-22 02:46:17 +02:00
Eloy Lafuente (stronk7) 268abfacc5 Moodle release 3.1 2016-05-21 23:51:54 +02:00
Eloy Lafuente (stronk7) cd1c8d2132 Merge branch 'wip-MDL-54666-master' of git://github.com/marinaglancy/moodle 2016-05-21 12:36:51 +02:00
Eloy Lafuente (stronk7) 446e0299b9 Merge branch 'MDL-54672-master-given-i-enrol' of git://github.com/mudrd8mz/moodle 2016-05-21 12:26:01 +02:00
Marina Glancy 4ca17b63a1 MDL-54666 modedit: use default values when modgrade element is frozen 2016-05-21 12:37:46 +08:00
Eloy Lafuente (stronk7) 973641fe13 MDL-54666 tests: Verify that any activity keeps the settings
This was affecting both to rateable (forum...) and not rateable
(assignment...) activities. So tests have been completed to verify
that now saving is performed and the correct scale values stored.
2016-05-20 23:48:25 +02:00
David Mudrák ac5dad467d MDL-54672 behat: Fix i_enrol_user_as() step in non-js sessions
During the recent reimplementation of the step (eb9ca848), we did not
notice that javascript variant uses the string `assignroles` while the
non-js variant uses string `assignrole`. This caused any "Given I enrol"
steps to fail in non-javascript sessions.
2016-05-20 20:37:28 +02:00
Dan Poltawski 30c8ed5c16 Moodle release 3.1rc2 2016-05-20 10:10:15 +01:00
Frederic Massart 4700c44c01 MDL-46934 webservice_rest: Fixed undefined index on XML output 2016-05-20 17:03:23 +08:00
Jun Pataleta 16fb3f4505 MDL-54664 blocks_lp: Set the layout of to review pages to standard 2016-05-20 16:58:54 +08:00
Jun Pataleta 7af009633a MDL-54661 mod_assign: Unescape course name in grading nav template 2016-05-20 15:28:37 +08:00
David Monllao ee5c60c53a Merge branch 'MDL-54623-master' of git://github.com/junpataleta/moodle 2016-05-20 13:53:26 +08:00
Jun Pataleta 920d3a95a1 MDL-54623 mod_assign: Fix for unit test
Fix mod_assign_external_testcase::test_list_participants_returns_user_property_types()
to avoid using hardcoded user properties.
2016-05-20 12:38:29 +08:00
Andrew Nicols 04c3fef12f Merge branches 'MDL-53988-master-fix3' and 'MDL-53988-master-fix3' of https://github.com/xow/moodle 2016-05-20 12:23:36 +08:00
John Okely e1e1aad183 MDL-53988 mod_lti: Remove popup for duplicate url
If creating a proxy fails, we will show an error using the
notification API. So we can remove the notification.exception call.
But modify the docs for ToolProxy.create so that future developers
will know they need to handle failures themselves.
2016-05-20 12:06:03 +08:00
David Monllao 2be707cb5e Merge branch 'MDL-54623-master' of git://github.com/junpataleta/moodle 2016-05-20 10:36:07 +08:00
Ryan Wyllie 3fdc542fe4 MDL-54642 tool_lp: Fix learning plan button layout in FF
The learning plan buttons are floating left but the table below it wasn't
clearning floating elements so it was appearing on the same line.
2016-05-20 02:35:11 +00:00
Jun Pataleta 5684c89b93 MDL-54623 mod_assign: Fetch correct types for user properties
Utilising core_user_external::user_description() to fetch the correct
types for the user properties.
2016-05-20 10:30:29 +08:00
David Monllao 3d562d19b9 Merge branch 'MDL-54609-master' of git://github.com/junpataleta/moodle 2016-05-20 09:22:07 +08:00
Andrew Nicols 2a1400b1b8 Merge branch 'wip-mdl-54632' of https://github.com/rajeshtaneja/moodle 2016-05-20 09:17:47 +08:00
Rajesh Taneja c14701a2ce MDL-53988 behat: Fixed modified error string 2016-05-20 09:12:48 +08:00
Andrew Nicols 658fc5f0fa Merge branch 'wip-mdl-54574' of https://github.com/rajeshtaneja/moodle 2016-05-20 09:07:54 +08:00
David Monllao c879ff69f4 Merge branch 'MDL-54640_master' of git://github.com/dmonllao/moodle 2016-05-20 09:04:05 +08:00
Rajesh Taneja 442a3651ec MDL-54640 behat: add 1 sec delay before running tasks
Also just execute task, as running whole cron is not
required
2016-05-20 09:02:11 +08:00
Stephen Bourget 195b9ebb7c MDL-54579 Behat: tests for the private_files block 2016-05-19 20:01:55 -04:00
Eloy Lafuente (stronk7) 5ba78f6231 Merge branch 'MDL-54644-master' of git://github.com/merrill-oakland/moodle 2016-05-19 18:57:04 +02:00
Eric Merrill 0a0dc5d035 MDL-54644 search: Fix typo in Solr search size setting 2016-05-19 08:47:53 -04:00
Jun Pataleta d4b91dab8a MDL-54609 blocks_navigation: Fix display of navigation nodes
* Used jQuery.append() instead of jQuery.text() to append the node's
  name so that it won't be escaped twice since the name is already being
  escaped in the server side via htmlentities.
2016-05-19 20:43:54 +08:00
Dan Poltawski 5d84a61419 Merge branch 'MDL-54633-master-tinymce' of git://github.com/mudrd8mz/moodle 2016-05-19 13:00:34 +01:00
Eloy Lafuente (stronk7) 536c4e920a Merge branch 'MDL-54643-master' of git://github.com/jleyva/moodle 2016-05-19 13:50:47 +02:00
David Mudrák 929727e3ef MDL-54633 tinymce: Sync editors' iframe to textarea on form submit
The previous commit "Automatically sync editor with its textarea" was
found a not good solution as the onchange event is triggered way less
often than needed for our needs. So this reverts commit 34321d49.

Instead, we add a hack to the formslib so that when there are some
TinyMCE editors used at the page, we explicitly save them before
triggering the form validation. This simply calls save() on all editors
on the page - see the API reference:
http://archive.tinymce.com/wiki.php/API3:method.tinymce.triggerSave

Having TinyMCE hardcoded like this on this core level does not make me
happy. But it seems to be most effective solution for now (and
definitely more efficient than the previous solution). Plus there is a
precedence - we already use window.tinyMCE in formchangechecker.js YUI
module, for example.
2016-05-19 13:44:41 +02:00
Dan Poltawski c9f85a1014 MDL-54641 enrol: fix trailing whitespace in upgrade.txt 2016-05-19 11:34:38 +01:00
Dan Poltawski 0677018ec5 Merge branch 'MDL-54641_master' of https://github.com/snake/moodle 2016-05-19 11:33:53 +01:00
Dan Poltawski c56d14be37 Merge branch 'MDL-54627_master' of git://github.com/dmonllao/moodle 2016-05-19 10:59:06 +01:00
Dan Poltawski 71dadd6d26 MDL-53988 lti: build js 2016-05-19 10:57:47 +01:00
Dan Poltawski e2b58a90fd Merge branch 'MDL-53988-master-fix2' of https://github.com/xow/moodle 2016-05-19 10:56:01 +01:00
Juan Leyva b4baee42e2 MDL-54643 tool_mobile: Fix dependencies check 2016-05-19 11:55:14 +02:00
Jake Dallimore 992365f8d5 MDL-54641 enrol: Consolidate 3.1 changes into correct section header. 2016-05-19 17:38:35 +08:00
John Okely 0450f5e081 MDL-53988 mod_lti: Improve error handling and user interface
Only show one, more helpful error instead of two non-helpful errors.
Don't show the 'no configured tools' message if there is a proxy there.
Return to the Tool configure page when editing a proxy if you came
from it.
2016-05-19 17:10:00 +08:00
Dan Poltawski b887c81907 Merge branch 'MDL-54633-master-tinymce' of git://github.com/mudrd8mz/moodle 2016-05-19 09:00:12 +01:00
Jun Pataleta 7150323ecd MDL-54623 mod_assign: Unit test for list_participants() 2016-05-19 15:36:44 +08:00
Andrew Nicols 9f59bc5b2c Merge branch 'MDL-54632-master' of git://github.com/andrewnicols/moodle 2016-05-19 15:17:03 +08:00
Marina Glancy bff0a28894 MDL-54632 mod_lti: separate show as preconfigured and in activitychooser 2016-05-19 15:15:46 +08:00
David Monllao 8af3e3abb2 Merge branch 'MDL-54630_master' of git://github.com/markn86/moodle 2016-05-19 15:03:14 +08:00
Mark Nelson 1e03d74cfa MDL-54630 core_tags: preserve 'timemodified' when moving tags 2016-05-19 14:50:12 +08:00
David Monllao ca7b16fa70 Merge branch 'MDL-54638' of git://github.com/stronk7/moodle
Conflicts:
	mod/lti/version.php
2016-05-19 13:47:22 +08:00
David Monllao 505ce88467 MDL-54627 search: Ensure that all format_string strings are text.
All user input that is usually displayed through format_strings with
filters like mulitlang applied should be converted to text as well.
2016-05-19 13:16:01 +08:00
Andrew Nicols 9dfee70f6b Merge branch 'MDL-53988-master-fix' of https://github.com/xow/moodle 2016-05-19 11:58:16 +08:00
John Okely b1c8a860cb MDL-53988 mod_lti: Add language string for unactivated proxies 2016-05-19 11:55:17 +08:00
Andrew Nicols 9e550d5804 Merge branch 'MDL-54542-master-fixup' of https://github.com/FMCorz/moodle 2016-05-19 11:52:29 +08:00
Andrew Nicols 367c85d78c Merge branch 'MDL-53988-master' of https://github.com/xow/moodle 2016-05-19 11:43:27 +08:00
Frederic Massart d309f3e218 MDL-54542 competency: Really handle false negatives in plans to review 2016-05-19 11:42:15 +08:00
David Monllao a1643e66b0 Merge branch 'MDL-54578_m31v2' of https://github.com/sbourget/moodle 2016-05-19 11:41:21 +08:00
David Monllao 89fc74508b Merge branch 'MDL-54613-m' of https://github.com/micaherne/moodle 2016-05-19 11:20:58 +08:00
John Okely 811d9ff941 MDL-53988 mod_lti: Fix followup up issues
Fix function naming
Fix param types
Fix error popping up twice with incorrect URL
Add confirm dialog when you delete a tool
Show orphaned tool proxies in list
Fix interface jumping up and down
Change to use notification stack
Change capabilities in db/services.php
Add loading animation after registering tool
Show loading animation until tools are rendered
2016-05-19 11:18:21 +08:00
Andrew Nicols a88f8b2fd5 Merge branch 'MDL-54542-master-fixup' of https://github.com/FMCorz/moodle 2016-05-19 10:56:50 +08:00
Frederic Massart c07712db17 MDL-54542 competency: False negative when listing plans to review 2016-05-19 10:23:46 +08:00
Eloy Lafuente (stronk7) 29a004946b MDL-54638 versions: main version bump 2016-05-19 02:17:59 +02:00
Eloy Lafuente (stronk7) 1abca11e0a MDL-54638 versions: bump all versions and requires near release
version = 2016052300 release version
requires= 2016051900 current rc1 version
2016-05-19 02:16:15 +02:00
David Mudrák 34321d491b MDL-54633 tinymce: Automatically sync editor with its textarea
Probably as a result of recent changes in the way how forms client side
validators are trigerred (MDL-52826), the field validator has been
triggered before the underlying textarea's values property is updated by
TinyMCE. This led to marking such a field as "required" even if the
value is provided.

Inspired by http://stackoverflow.com/questions/2122085/
this patch adds a new onchange callback that automatically keeps the
underlying textarea synced with the editor iframe. Relevant API docs:
http://archive.tinymce.com/wiki.php/Configuration3x:onchange_callback

I was also trying to call the save() method via the editor's onSubmit
method but that one seems to be also triggered only after the validator.
2016-05-19 00:50:08 +02:00
Dan Poltawski 60941d4cb0 Merge branch 'MDL-54025' of https://github.com/stronk7/moodle 2016-05-18 19:20:23 +01:00
Eloy Lafuente (stronk7) 8728dbeecb MDL-54025 mod_lti: Amend tests to observe the new behavior 2016-05-18 19:37:57 +02:00
Eloy Lafuente (stronk7) a73d64585a Merge branch 'MDL-54553-master' of git://github.com/danpoltawski/moodle 2016-05-18 18:23:41 +02:00
Stephen Bourget 0fd2260069 MDL-54578 Behat: Add tests for the myprofile block 2016-05-18 09:08:24 -04:00
Eloy Lafuente (stronk7) c0fe085c24 Merge branch 'MDL-53896-master' of git://github.com/cameron1729/moodle 2016-05-18 13:36:45 +02:00
Dan Poltawski cb5167df12 Merge branch 'MDL-54025_master' of https://github.com/snake/moodle 2016-05-18 11:38:30 +01:00
Dan Poltawski 5c602bf5bb MDL-54553 behat: check statuscode of http request 2016-05-18 11:15:58 +01:00
Dan Poltawski 53b540c82a Merge branch 'MDL-54027-master' of git://github.com/FMCorz/moodle 2016-05-18 11:05:06 +01:00
Dan Poltawski 07eb3a0db7 Merge branch 'wip-mdl-53956' of https://github.com/rajeshtaneja/moodle 2016-05-18 10:45:22 +01:00
Dan Poltawski 27bdd818f6 Merge branch 'MDL-54549-master-en_fix' of git://github.com/mudrd8mz/moodle 2016-05-18 10:28:08 +01:00
David Monllao 923b230c8e Merge branch 'wip-MDL-54061-master' of git://github.com/abgreeve/moodle 2016-05-18 16:20:27 +08:00
Rajesh Taneja 7f43e2fe49 MDL-54574 phpunit: Skip xmlrpc unit test if not installed 2016-05-18 16:00:10 +08:00
Adrian Greeve 759f61fe1c MDL-54061 mod_assign: Added encoding and separator to upload form.
Added the fields of encoding and separator so that the user has
more control when uploading a csv assignment grading file.
2016-05-18 15:50:33 +08:00
David Monllao eface10d30 MDL-45390 grades: Bump build to today's date
To test backup/restore.
2016-05-18 14:12:21 +08:00
David Monllao 9d00c6e9e5 Merge branch 'wip-MDL-45390-master' of git://github.com/abgreeve/moodle 2016-05-18 14:10:31 +08:00
David Monllao d9e7af1d6a Merge branch 'MDL-54594-master' of git://github.com/ryanwyllie/moodle 2016-05-18 14:02:00 +08:00
David Monllao 50c338b84b Merge branch 'MDL-54544-master' of git://github.com/damyon/moodle 2016-05-18 13:55:05 +08:00
Ryan Wyllie 7d7e5a4cf0 MDL-54594 mod_assign: Fix editpdf toolbar breakpoints
Fixed the CSS media breakpoints for the editpdf toolbar after the
additional button was added.
2016-05-18 05:53:44 +00:00
Damyon Wiese 4f54bdc733 MDL-54544 files: Better error handling in $fs->create_converted_document() 2016-05-18 13:44:13 +08:00
David Monllao 61e1d3d96c Merge branch 'MDL-53883_master' of git://github.com/markn86/moodle 2016-05-18 13:00:29 +08:00
David Monllao f3ba5f4249 Merge branch 'MDL-53805-master' of git://github.com/cameron1729/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2016-05-18 12:24:45 +08:00
Andrew Nicols 03b5351f88 MDL-54620 rating: Add tests for get_aggregate_string 2016-05-18 12:13:52 +08:00
Andrew Nicols 134b6485e2 Merge branch 'MDL-54620_master' of git://github.com/dmonllao/moodle 2016-05-18 12:04:20 +08:00
Cameron Ball cd6041b98f MDL-53896 core: Document Html2Text run-time overrides 2016-05-18 11:37:17 +08:00
Andrew Nicols e0c901dc49 MDL-53896 core: WIP bc layer for Html2Text 2016-05-18 11:35:37 +08:00
David Monllao d7256f3a49 Merge branch 'MDL-54119-master-with_progress_bar_template' of git://github.com/junpataleta/moodle 2016-05-18 11:33:04 +08:00
David Monllao 98c3f736bb Merge branch 'MDL-54595-master' of git://github.com/junpataleta/moodle 2016-05-18 11:30:25 +08:00
Adrian Greeve 41abbbbde5 MDL-45390 gradebook: sql tidy up and version alignment. 2016-05-18 10:41:30 +08:00
Rajesh Taneja 1ef6a5e30a MDL-53956 behat: Avoid before and after step and switch
After pressing the button, if system is slow then
after step and before step might fail as the window
is closed by then. Execute steps one after other
2016-05-18 10:41:01 +08:00
Andrew Nicols 63c492ece0 Merge branch 'MDL-54049-master' of git://github.com/jleyva/moodle 2016-05-18 10:34:34 +08:00
David Monllao 6b6847bc97 Merge branch 'MDL-54164-integration-cli-fix' of git://github.com/ryanwyllie/moodle 2016-05-18 10:30:30 +08:00
David Monllao ece791dbd4 MDL-45390 grades: Courses letters using system bad boundaries
Added unit tests to highlight the existing failures and adding
unset_config between each set of tests.
2016-05-18 10:08:10 +08:00
Adrian Greeve 405b90bcd2 MDL-45390 gradebook: Grade boundary fix.
Code to upgrade, fix, and freeze the gradebook for
courses with letter boundary problems.
2016-05-18 09:56:00 +08:00
Adrian Greeve 2b98f0ea26 MDL-45390 gradebook: Behat tests for grade boundary issues. 2016-05-18 09:54:55 +08:00
Ryan Wyllie 073fcb5aa1 MDL-54164 notification: Add notification render to CLI renderer 2016-05-18 01:48:37 +00:00
Andrew Nicols 60e75de317 Merge branch 'MDL-54542-master' of git://github.com/FMCorz/moodle 2016-05-18 09:48:27 +08:00
Adrian Greeve 70dfd48f53 MDL-45390 gradebook: Unit tests for grade boundary issue. 2016-05-18 09:08:18 +08:00
Stephen Bourget db5ab8f0bb MDL-54622 Block_myprofile: Remove unused setting 2016-05-17 19:58:53 -04:00
Kevin Wiliarty 393890e168 MDL-54620 ratings: display '0' when aggregate = 0 2016-05-18 07:21:28 +08:00
David Monllao ccf323d571 Merge branch 'MDL-54164-master' of git://github.com/ryanwyllie/moodle 2016-05-18 07:11:25 +08:00
David Mudrák 50d083f07a MDL-54549 lang: Fix changed strings in behat scenario files 2016-05-17 18:29:30 +02:00
Helen Foster 75a22eb9fb MDL-54549 lang: Merge English strings from the en_fix language pack 2016-05-17 18:26:15 +02:00
Michael Aherne 0c0f01aa4c MDL-54613 unit tests: Add iteminstance to test grade_item 2016-05-17 13:06:32 +01:00
Jake Dallimore 4741c3162e MDL-54025 mod_lti: Use activity name when creating tool from cartridge. 2016-05-17 17:54:12 +08:00
Mark Nelson 40d5651302 MDL-53883 core_form: updated the group elements ID 2016-05-17 17:53:17 +08:00
Dan Poltawski 33892edf18 Moodle release 3.1rc1 2016-05-17 10:49:40 +01:00
Dan Poltawski 461a5c667d Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-05-17 10:49:38 +01:00
David Monllao fcf2064a62 NOBUG: Bumping versions after a rewrite 2016-05-17 17:16:32 +08:00
Andrew Nicols b0e9bf8e90 Merge branch 'MDL-52599_master' of https://github.com/markn86/moodle 2016-05-17 17:16:14 +08:00
Andrew Nicols 44219e686f Merge branch 'MDL-53962-master-alt' of git://github.com/cameron1729/moodle 2016-05-17 17:16:13 +08:00
Mark Nelson 15d27733dc MDL-52599 block_rss_client: fixed various PHP errors 2016-05-17 17:16:13 +08:00
Adrian Greeve 897444d761 MDL-53923 mod_assign: Put messages into notifications.
The unoconv test page was before just outputting text to
page. Now it is wrapped in a nice notification. One of the
warnings has been improved as well.
2016-05-17 17:16:13 +08:00
David Monllao f0a2dbf188 Merge branch 'MDL-54121-master' of git://github.com/damyon/moodle 2016-05-17 17:16:12 +08:00
Rajesh Taneja 13708875d3 MDL-54573 testing: don't uppercase dbtype 2016-05-17 17:16:12 +08:00
Andrew Nicols 96fd37749e Merge branch 'MDL-52599-master' of git://github.com/danpoltawski/moodle 2016-05-17 17:16:11 +08:00
Andrew Nicols 7ae90fe03c Merge branch 'wip-mdl-54600' of https://github.com/rajeshtaneja/moodle 2016-05-17 17:16:11 +08:00
Michael Aherne 39257eb39c MDL-54600 phpunit: fixed classname to follow frankenstyle 2016-05-17 17:16:11 +08:00
David Monllao 2fb0f13a87 Merge branch 'MDL-54573-master' of git://github.com/danpoltawski/moodle 2016-05-17 17:16:10 +08:00
David Monllao 2a1cfd371f Merge branch 'MDL-54108-master' of git://github.com/marinaglancy/moodle 2016-05-17 17:16:10 +08:00
Andrew Nicols c3d079c8a4 Merge branch 'MDL-54131_m31v4' of git://github.com/sbourget/moodle 2016-05-17 17:16:10 +08:00
Dan Poltawski 7b09be79d6 Merge branch 'MDL-54545-master' of git://github.com/junpataleta/moodle 2016-05-17 17:16:09 +08:00
Dan Poltawski 76943644d4 Merge branch 'MDL-54593_master' of git://github.com/markn86/moodle 2016-05-17 17:16:09 +08:00
Dan Poltawski bdabf42d9a Merge branch 'wip-MDL-54129-master' of git://github.com/abgreeve/moodle 2016-05-17 17:16:09 +08:00
Dan Poltawski 5a2283cdc0 Merge branch 'wip-MDL-53923-master' of git://github.com/abgreeve/moodle 2016-05-17 17:16:08 +08:00
David Monllao df88d9a72e Merge branch 'MDL-54584-master' of git://github.com/andrewnicols/moodle 2016-05-17 17:16:08 +08:00
David Monllao 52ccda9607 Merge branch 'MDL-54177_master' of git://github.com/markn86/moodle 2016-05-17 17:16:08 +08:00
David Monllao a7bb1dda6e Merge branch 'MDL-53311-master-moregooderer' of git://github.com/cameron1729/moodle 2016-05-17 17:16:07 +08:00
Andrew Nicols a8c2cb02ca Merge branch 'MDL-54566_master' of git://github.com/markn86/moodle 2016-05-17 17:16:07 +08:00
Jun Pataleta 9698f2dcce MDL-54119 tool_lp: Modifications for progress bars
Changes made in this patch include:
* Reverting to the original look of having the percentage label of the
  progress bar inside it.
* Setting a minimum width for the progress bar so the percentage label
  will still be visible even at 0%.
* Replaced the blank space between the percent text and the percent
  sign with a non-breaking space.
* Added relevant aria attributes for the progress bars.
* I think that this is a good opportunity to use a single template for the
  progress bars so I created one that is basically based from the core
  template columns-1to2. Column 1 contains the progress text, while column2
  contains the progress bar itself.
2016-05-17 16:01:30 +08:00
Cameron Ball 5d4dafcfa0 MDL-53805 theme: Give search icon more space 2016-05-17 13:38:52 +08:00
Ryan Wyllie 2059d6edb5 MDL-54164 upgradelib: Remove close button on success notification 2016-05-17 03:55:46 +00:00
Jun Pataleta 2664105c87 MDL-54595 mod_assign: Remove btn-group class 2016-05-17 11:53:10 +08:00
Jun Pataleta 912a183033 MDL-54595 tool_lp: Remove btn-group classes 2016-05-17 11:52:11 +08:00
Cameron Ball ad1bfe6a9c MDL-53962 webservices: Make XML-RPC backwards compatible 2016-05-17 11:39:15 +08:00
Damyon Wiese 5620177efd MDL-54544 file: Use shared tmp storage for unoconv document conversions 2016-05-17 10:58:25 +08:00
Marina Glancy ea4176c24f MDL-54108 mod_feedback: separate upgrade sql for mysql 2016-05-17 09:27:59 +08:00
Marina Glancy 8e70465aa8 MDL-54108 mod_feedback: add unique index on values for completed items 2016-05-17 09:27:58 +08:00
Stephen Bourget 18d157fe97 MDL-54131 Behat: Fix hide all courses test 2016-05-16 18:39:42 -04:00
Vadim Dvorovenko 7025aeed03 MDL-54599 Navigation: Sorting plugins by visible name
Sorting plugins name in admin settings tree by visible (localized) name.
2016-05-16 23:08:05 +07:00
Dan Poltawski 0be8dbd9b2 MDL-52599 rss block: clarifty sql and make style more moodley 2016-05-16 11:05:45 +01:00
Clement Smith af8cab9b69 MDL-52599 blocks/rss_client: Fix RSS block config page
This fixes an error where the RSS block config page would display
'Array' where the multiselect list of feeds should be when
accessed by a user who has not saved any RSS feed urls and yet the
block has been previously configured by another user.
2016-05-16 11:04:36 +01:00
Dan Poltawski fc3d70d798 MDL-54573 testing: don't uppercase dbtype 2016-05-16 08:25:10 +01:00
Mark Nelson beb3441b68 MDL-54593 tool_lp: added missing 'alert' CSS class 2016-05-16 14:49:27 +08:00
Adrian Greeve 692b53480d MDL-54129 mod_lti: Show in course checkbox works properly.
The show in course setting for LTI would always be set to true
regardless of what was set.
2016-05-16 14:38:13 +08:00
Adrian Greeve 0eecf87687 MDL-53923 mod_assign: Movement of functions to file_storage. 2016-05-16 14:32:54 +08:00
Simey Lameze c4d692285f MDL-53923 mod_assign: test unoconv path 2016-05-16 14:08:09 +08:00
Mark Nelson c7e4417533 MDL-54566 tool_lp: added message when no competencies present 2016-05-16 13:59:30 +08:00
Mark Nelson 3f3e7daae1 MDL-54177 enrol_lti: improved lang strings
Also removed unused strings.
2016-05-16 13:49:28 +08:00
Andrew Nicols 98c2893cdd Merge branch 'MDL-53221_master-information' of https://github.com/dmonllao/moodle 2016-05-16 13:06:05 +08:00
David Monllao c827acae2d MDL-53221 search: Renaming search areas
AMOS BEGIN
 CPY [modulename,mod_folder],[search:activity,mod_folder]
 CPY [modulename,mod_label],[search:activity,mod_label]
 CPY [modulename,mod_page],[search:activity,mod_page]
 CPY [modulename,mod_resource],[search:activity,mod_resource]
 CPY [modulename,mod_url],[search:activity,mod_url]
AMOS END
2016-05-16 13:02:02 +08:00
David Monllao b9103241e6 Merge branch 'MDL-54117-master' of https://github.com/barbararamiro/moodle 2016-05-16 12:50:13 +08:00
Andrew Nicols eb2a003dd3 Merge branch 'MDL-54550_master' of git://github.com/markn86/moodle 2016-05-16 12:21:20 +08:00
Mark Nelson 17fa366ab3 MDL-54550 enrol_lti: show plugin description and warning
- Updated and added plugin description to the settings page.
- Added warning when the auth_lti plugin is not enabled.
- Moved existing 'Allow frame embedding' warning above the
  'User default values' heading.
2016-05-16 12:18:09 +08:00
Andrew Nicols d45047f628 Merge branch 'MDL-54560_master' of git://github.com/dmonllao/moodle 2016-05-16 12:11:19 +08:00
Andrew Nicols dcd3dea137 Merge branch 'wip-mdl-54588' of https://github.com/rajeshtaneja/moodle 2016-05-16 12:05:34 +08:00
David Monllao bb51d20bac Merge branch 'MDL-54133_m31v1' of https://github.com/sbourget/moodle 2016-05-16 12:03:07 +08:00
David Monllao e68d274f45 Merge branch 'MDL-54131_m31v3' of https://github.com/sbourget/moodle 2016-05-16 12:01:37 +08:00
Andrew Nicols dc30770656 Merge branch 'MDL-54128_masterv2' of https://github.com/snake/moodle 2016-05-16 11:56:16 +08:00
David Monllao 2d5032db89 Merge branch 'MDL-54026-master' of git://github.com/andrewnicols/moodle 2016-05-16 11:52:02 +08:00
David Monllao 261560921d Merge branch 'MDL-54130_m31v2' of https://github.com/sbourget/moodle 2016-05-16 11:31:41 +08:00
Andrew Nicols 388a8dbc4f MDL-54584 repository: Set a default filename in prepare_file 2016-05-16 11:07:38 +08:00
vpisabeywardana 0a33c8ca94 MDL-52815 theme: group select overlapping issue
Gave minimum width for select tags which are under 'groups' and 'members' classes
2016-05-16 02:42:54 +00:00
David Monllao e716da5d13 MDL-54560 search: Search box aligned with .usermenu on .navbar 2016-05-16 10:38:14 +08:00
Eric Merrill d636043aff MDL-54560 search: Fix menu item to be correct height
Conflicts:
	theme/bootstrapbase/style/moodle.css
2016-05-16 10:28:12 +08:00
Jake Dallimore f418d89957 MDL-54128 mod_lti: Add help for custom LTI tools in activity picker 2016-05-16 10:07:29 +08:00
Rajesh Taneja 528278f78f MDL-54588 behat: Button has been replaced with link
Adding a scale has been modified to use link
on outcome page
2016-05-16 09:13:29 +08:00
AMOS bot abb9ea1a3f Automatically generated installer lang files 2016-05-15 00:04:36 +08:00
Stephen Bourget a7ea4fd62f MDL-54131 Behat: tests for the course list block 2016-05-13 22:05:33 -04:00
Stephen Bourget 412bde6fad MDL-54133 Behat: tests for the course overview block 2016-05-13 21:40:34 -04:00
Tim Hunt 795efd9c1b MDL-54582 accesslib: improve performance of load_course_context
The new query is logically equivalen, but much, much faster, at
least on Postgred. (15ms, instead of 700ms, in one example I tried
on the database for the OU's main Moodle site.)
2016-05-13 20:36:33 +01:00
jogarcia 8dabb7200d MDL-54576 theme: Redirect to show confirmation
After selecting a new theme, save the new configs
then redirect to show the confirmation and the new
theme's read me.  This prevents any odd behavior
from the old theme bleeding into the display of
the confirmation.
2016-05-13 08:57:12 -07:00
Dan Poltawski f6cbdf788a MDL-54573 testing: use dbtype rather dbvendor for diagnostics
So that we can differentiate between drivers
2016-05-13 14:49:42 +01:00
David Monllao 65cbefc403 on-demand release 3.1beta+ 2016-05-13 18:33:23 +08:00
David Monllao 60152a2828 NOBUG: Fixed SVG browser compatibility 2016-05-13 18:33:22 +08:00
David Monllao 6f8adf29fd NOBUG: ensure build number doesn't go backwards
(Due to reverts happening in MDL-45390 and MDL-52815)
2016-05-13 18:21:24 +08:00
Andrew Nicols 832ffeb204 Merge branch 'MDL-54073-master-2' of git://github.com/junpataleta/moodle 2016-05-13 18:12:33 +08:00
Andrew Nicols d58854d3bf Merge branch 'wip-mdl-54561' of https://github.com/rajeshtaneja/moodle 2016-05-13 18:12:32 +08:00
Jun Pataleta c89ba86342 MDL-54073 tool_lp: Unescape additional properties
* LP Blocks (Competency name)
* User evidence competency picker (User learning plan name)
* Template competencies (Course full name)
2016-05-13 18:12:32 +08:00
Andrew Nicols e53d7e7c04 Merge branch 'MDL-50063' of git://github.com/stronk7/moodle 2016-05-13 18:12:32 +08:00
Andrew Nicols a1057084e1 MDL-52253 scales: Correct doc 2016-05-13 18:12:31 +08:00
Damyon Wiese d03602c86b MDL-52253 scales: Prevent deletion of the last global scale 2016-05-13 18:12:31 +08:00
Damyon Wiese 8de0b1ab7d MDL-52253 scales: Add new competence scale 2016-05-13 18:12:28 +08:00
Damyon Wiese 81967b54b6 MDL-52253 scales: Install the separate and connected scale 2016-05-13 18:11:30 +08:00
Dan Poltawski 35f11c55fb Merge branch 'MDL-54101_master' of git://github.com/markn86/moodle 2016-05-13 18:11:29 +08:00
Dan Poltawski 6967b71a34 Merge branch 'MDL-54546-master' of git://github.com/junpataleta/moodle 2016-05-13 18:11:29 +08:00
Dan Poltawski 7fdd86247b Merge branch 'wip-mdl-54543' of https://github.com/rajeshtaneja/moodle 2016-05-13 18:11:28 +08:00
Andrew Nicols 07d4b49760 Merge branch 'MDL-54073-master' of git://github.com/junpataleta/moodle 2016-05-13 18:11:28 +08:00
Barbara Ramiro 378733a4c3 MDL-53822 editpdf: Much nicer icons for new drag-to-scroll feature 2016-05-13 18:11:28 +08:00
David Monllao 8ae171ed1c Merge branch 'MDL-53822-master' of git://github.com/damyon/moodle 2016-05-13 18:11:27 +08:00
David Monllao ec7b75087c Merge branch 'MDL-54098-master' of git://github.com/FMCorz/moodle 2016-05-13 18:11:27 +08:00
Frederic Massart 2140cca1db MDL-54027 mod_forum: Display sub-header on user posts/discussions page 2016-05-13 17:17:28 +08:00
Cameron Ball f65ce33f99 MDL-53311 behat: Update behat navigation steps 2016-05-13 16:01:48 +08:00
Cameron Ball a71b983db8 MDL-53311 block_settings: Update renderer
The renderer and styles require changes to match the new behaviour
introduced by the modifications to tree.js and the JavaScript renderer.

The PHP renderer now closely matches the JavaScript one, and we now use
the aria-hidden attribute to determine the node state.
2016-05-13 16:01:47 +08:00
Cameron Ball 0043daf4ca MDL-53311 block_navigation: Update renderer
The renderer and styles require changes to match the new behaviour
introduced by the modifications to tree.js and the JavaScript renderer.

The PHP renderer now closely matches the JavaScript one, and we now use
the aria-hidden attribute to determine the node state.
2016-05-13 16:01:47 +08:00
Cameron Ball 4838a19641 MDL-53311 navigation: Move treeitem role on to p
Previously the li elements had the treeitem role, which was not invalid,
but it meant that when a menu item expanded, the entire li was clickable
and clicking anywhere that was not another menu item would cause the
(sub)tree to collapse. This patch moves the treeitem role on to the p
element (which contains the node name) and uses aria-owns to expand

Mad shoutouts to Ryan Wyllie for his assistance 🙌

🌄 ᚳᚱᛒ
2016-05-13 16:01:44 +08:00
Barbara Ramiro ca112c42fd MDL-54117 design: Simple loading icon 2016-05-13 14:48:23 +08:00
Rajesh Taneja 790bf3ace0 MDL-54561 phpunit: only search with first 3 chars
Windows uses only the first three characters of prefix in
tempnam(), so only use first 3 chars to find if error
is logged
2016-05-13 13:33:52 +08:00
Andrew Nicols 6885517d78 MDL-54121 core-notification: Fix lockscroll recalc for nest dialogues 2016-05-13 12:12:05 +08:00
Stephen Bourget d83d1e34e5 MDL-54130 Behat: Add tests for Completion Status block 2016-05-12 21:15:55 -04:00
Eloy Lafuente (stronk7) 07a069f1c0 MDL-50063 unittests: Remove some unnecesary gc_collect_cycles()
Now backup and restore operations free logger resources calling
to the destroy() method. This commit ensures:

1) That gc_collect_cycles() is not used anymore in backup-related tests.
2) That all backup and restore controllers in test do always call
   to the detroy() method.
3) Some unset() calls, needed to make gc_collect_cycles() are not used
   anymore.
2016-05-13 02:50:45 +02:00
Eloy Lafuente (stronk7) fcd3bbfee0 MDL-54205 tests: verify destroy() and close() behavior 2016-05-13 01:54:37 +02:00
Eloy Lafuente (stronk7) da322ad078 MDL-54205 tool_recyclebin: Adding missing destroy() calls.
This was causing controller references not cleaned till gc
and loggers to remain open, leading to problems under windows.
2016-05-13 01:54:37 +02:00
Eloy Lafuente (stronk7) 53f95c99cb MDL-54205 backup: loggers close() and destroy()
Any backup & restore operation may be leaving opened files
if a file logger is being used. This implementes the close()
method, so every logger can close any resource.

Also, the recommended backup_controlled::destroy() method
now calls to new logger::destroy() method in charge of
deleting all the references and closing any resource.

Finally, some internally used controllers, were missing
their destroy call, leading to associated loggers to
remain open. Now all them are explicitly deltroyed.
2016-05-13 01:54:28 +02:00
Jun Pataleta e5336562db MDL-54546 tool_lp: Use correct property types for user/course exporters 2016-05-12 19:04:58 +08:00
Mark Nelson bae0f2375e MDL-54101 core: fixed core/str get_string caching issue 2016-05-12 18:58:56 +08:00
Frederic Massart 4e968dc8a7 MDL-54542 competency: Tests for listing of plans and comps to review 2016-05-12 16:16:03 +08:00
Frederic Massart bbf727f175 MDL-54542 competency: Prevent long query aliases in get_sql_fields()
Otherwise we could hit ORA-00972 because they exceed 30 characters.
2016-05-12 16:14:32 +08:00
Rajesh Taneja 80b852d0c9 MDL-54543 behat: Increase file download range
with different db's, the id and defaultgrade
might be different, so increasing the range
to avoid such failures
2016-05-12 15:48:13 +08:00
Jun Pataleta 010a00db60 MDL-54545 tool_lp: Make selected items stick to the container's bounds
Set the selection's width for the user and/or competency selector fields
stick within the panel's bounds.
2016-05-12 12:40:22 +08:00
Jun Pataleta 32cf4bcb93 MDL-54073 tool_lp: Unescape PARAM_TEXT properties in templates
Use triple-curly brackets to unescape the PARAM_TEXT properties in
templates.
Changed idnumber's type to PARAM_RAW for frameworks and competencies.
2016-05-12 11:24:51 +08:00
Tim Hunt c76789f49a MDL-53938 qformat_gift: handle multi-choice MR with one 100% choice 2016-05-11 18:07:23 +01:00
Eloy Lafuente (stronk7) 7307b2746d Merge branch 'MDL-53170_levels-fix' of git://github.com/dmonllao/moodle 2016-05-11 11:54:01 +02:00
David Monllao 724703d3e1 MDL-53170 search: Specify core_course mycourses search level 2016-05-11 17:22:24 +08:00
Dan Poltawski 57678be26e Merge branch 'MDL-54103_master' of git://github.com/markn86/moodle 2016-05-11 10:04:07 +01:00
Dan Poltawski 15ab98e4e2 Merge branch 'MDL-53293-master' of git://github.com/andrewnicols/moodle 2016-05-11 10:00:50 +01:00
Andrew Nicols 372def96c4 Merge branch 'MDL-54056-master' of git://github.com/junpataleta/moodle 2016-05-11 15:39:26 +08:00
Andrew Nicols 8e0549933e Merge branch 'MDL-54055-master' of git://github.com/junpataleta/moodle 2016-05-11 15:00:39 +08:00
Damyon Wiese ab4d78ea82 MDL-53822 editpdf: Show different cursors for select and move 2016-05-11 14:54:38 +08:00
Andrew Nicols e51176e598 Merge branch 'MDL-54125_master' of git://github.com/markn86/moodle 2016-05-11 14:11:07 +08:00
Jun Pataleta 5d15185247 MDL-54055 gradingform_guide: Skip insertion of empty comments
We should not be adding empty entries for the frequently-used comments.
2016-05-11 13:55:39 +08:00
Damyon Wiese 79e4a72f09 MDL-54121 core-notification: Make dialogues re-calculate the lockscroll
When the content of a dialogue changes after it is first opened - you need to call centerDialogue()
to make sure it still sits in the middle of the window. In addition this now recalculates the "lockScroll"
so that if you need to scroll down to see all of the dialogue you can do it.
2016-05-11 13:52:47 +08:00
Mark Nelson 2c216a6c39 MDL-54125 mod_data: fixed PHP notice
Also removed unused variables.
2016-05-11 13:01:24 +08:00
Andrew Nicols 128beb3d39 Merge branch 'MDL-53976-master' of git://github.com/jleyva/moodle 2016-05-11 12:05:43 +08:00
Andrew Nicols 7adbac5a8e Merge branch 'MDL-53580-master' of git://github.com/cameron1729/moodle 2016-05-11 11:29:57 +08:00
Andrew Nicols ccf89705fe Merge branch 'MDL-54074-master' of git://github.com/FMCorz/moodle 2016-05-11 11:22:37 +08:00
Andrew Nicols f092c0881d Merge branch 'MDL-52800-master' of git://github.com/ryanwyllie/moodle 2016-05-11 11:08:55 +08:00
Frederic Massart b5a3118ddb MDL-54074 core_tag: False negative on Oracle due to random ordering 2016-05-11 10:48:31 +08:00
Andrew Nicols 7e4d43e1a2 MDL-54110 repositories: Whitespace, Typo + unit test fixes 2016-05-11 10:39:40 +08:00
Andrew Nicols 016e0abfbc Merge branch 'MDL-54110_master' of https://github.com/marxjohnson/moodle 2016-05-11 10:10:57 +08:00
David Monllao 58a2f0ac40 Merge branch 'MDL-54044-master' of git://github.com/FMCorz/moodle 2016-05-11 09:09:11 +08:00
Andrew Nicols 2239883b56 MDL-53293 tool_lp: Destroy dragdrop instance before re-creating 2016-05-11 08:19:39 +08:00
Andrew Nicols a321eb06b7 MDL-53293 core: Add destructor phases to core-dragdrop 2016-05-11 08:19:39 +08:00
Eloy Lafuente (stronk7) fa1e76d563 Merge branch 'MDL-53170_master' of git://github.com/dmonllao/moodle 2016-05-10 18:54:57 +02:00
Frederic Massart 9f659e1af5 MDL-54075 competency: False negatives due to random ordering and latency 2016-05-10 18:41:48 +02:00
Mark Johnson 121b67411f MDL-54110 repositories: Allow repositories to ignore post_max_size
Repositories can now override usespost() if they don't upload using POST
requests. This restores the ability of users with
moodle/course:ignorefilesizelimits to upload files of unlimited size
lost in MDL-44626.
2016-05-10 16:10:24 +01:00
Cameron Ball 8ffe9aef1f MDL-53580 auth_ldap: Set default value for suspended_attribute
It was also necessary to cast some boolean values to ints as a
workaround for moodle's broken boolean validation.
2016-05-10 23:04:46 +08:00
Dan Poltawski 8c2d47d9d8 Merge branch 'MDL-50704-master' of git://github.com/FMCorz/moodle 2016-05-10 15:59:41 +01:00
Cameron Ball 5e84acc2f3 MDL-53916 mod_assign: Point update grade link to new interface 2016-05-10 15:42:05 +01:00
David Monllao 283b1d32bd Merge branch 'MDL-54009-master' of git://github.com/ryanwyllie/moodle 2016-05-10 21:58:41 +08:00
David Monllao 677e6345c2 Merge branch 'MDL-52133-master' of git://github.com/ryanwyllie/moodle 2016-05-10 21:41:15 +08:00
David Monllao b770c41277 Merge branch 'MDL-54120' of git://github.com/aolley/moodle 2016-05-10 21:38:30 +08:00
David Monllao e4b5a062d8 on-demand release 3.1beta+ 2016-05-10 18:55:50 +08:00
David Monllao 23007b4134 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-05-10 18:55:48 +08:00
Andrew Nicols 0b3c3bb8eb Merge branch 'MDL-54102_master' of git://github.com/markn86/moodle 2016-05-10 18:36:16 +08:00
Andrew Nicols 30dcc059be Merge branch 'MDL-54115_m31v1' of https://github.com/sbourget/moodle 2016-05-10 18:36:16 +08:00
Andrew Nicols 837cc5ba49 MDL-54004 behat: Whitespace fixes 2016-05-10 18:36:15 +08:00
Andrew Nicols dc7e2dcf96 Merge branch 'MDL-54004_m31v2' of https://github.com/sbourget/moodle 2016-05-10 18:36:15 +08:00
Andrew Nicols 0301e11bae Merge branch 'MDL-53821-master' of git://github.com/ryanwyllie/moodle 2016-05-10 18:36:15 +08:00
Andrew Nicols 715c3f5fef Merge branch 'MDL-52506-master' of git://github.com/ryanwyllie/moodle 2016-05-10 18:36:14 +08:00
David Monllao e314b35471 MDL-53170 search: New area for my courses
Thanks to Skylar Kelty for the initial implementation.
2016-05-10 18:15:42 +08:00
David Monllao 1f69cd819f MDL-53170 search: API fixes for core subsystems 2016-05-10 18:15:41 +08:00
Mark Nelson a9ad3002e1 MDL-54102 core: added more details about hooks 2016-05-10 15:34:49 +08:00
Mark Nelson 27d9859972 MDL-54103 enrol_lti: show frame embedding warning 2016-05-10 15:03:24 +08:00
Adam Olley 415023cefc MDL-54120 competency: Don't assume there are no existing scales
Every time a unit test for competencies adds a scale, it's creating them
with hardcoded id's - which should always be avoided. So this change has
the unit test keep track of the scale id's created without hardcoding
them.
2016-05-10 14:48:18 +09:30
Nadav Kavalerchik 7ee8effc55 MDL-52800 Theme: Fix inplace editing tooltip styling 2016-05-10 05:06:43 +00:00
Frederic Massart 525370afe1 MDL-54044 block_site_main_menu: Fixed labels not being indented 2016-05-10 12:23:29 +08:00
Ryan Wyllie 1b2f9dc60c MDL-53821 mod_assign: Hide full name when blind marking
Hide the student's full name in the new grading intferface when blind
marking is on.
2016-05-10 02:07:02 +00:00
Ryan Wyllie e6858c084a MDL-52506 mod_assign: Fix return links for atto auto save 2016-05-10 01:22:48 +00:00
Stephen Bourget bc823ac6bf MDL-54115 Behat: tests for the comments block 2016-05-09 18:55:33 -04:00
Stephen Bourget c18aac4518 MDL-54004 Behat: tests for calendar block 2016-05-09 16:12:50 -04:00
Stephen Bourget f464529a7a MDL-54004 Behat: tests for upcoming events block 2016-05-09 16:12:36 -04:00
AMOS bot 8538c6ad0d Automatically generated installer lang files 2016-05-10 00:04:19 +08:00
Frederic Massart 67ee10307f MDL-54098 external: Remove usage of require_login and $PAGE->set_context 2016-05-09 19:42:37 +08:00
Dan Poltawski 8ab776ef69 Merge branch 'MDL-54040_master' of git://github.com/dmonllao/moodle 2016-05-09 10:29:25 +01:00
Frederic Massart 16825c4e95 MDL-50704 user: Do not validate timezones in user objects
The validation of the timezone field should not occur, especially
when it is automatically cleaned. Timezones can be volatile, we
must try hard to fallback on real timezones and must not lose reset
the values arbitrarily.

"There is absolutely no need to change $CFG->timezone and user timezones
in database - the timezones may come and go. If you change the value in
upgrade or on the fly you would not be able to get it back. This is the
reason why I implemented the "invalid timezone" thing in server and
user settings instead." - Petr Skoda (MDL-49684)
2016-05-09 17:28:38 +08:00
Frederic Massart 88474db22f MDL-50704 date: Fix invalid timezone mapping for +14
The value Etc/GMT-14 was added to the list of known timezones,
and Etc/GMT+13 & Etc/GMT+14 were removed as they are not valid.

Tests were added to ensure that legacy user timezones are mapped
to known timezones. Other tests were changed to reflect the changes
with regards to Etc/GMT+13 and +-14.
2016-05-09 17:28:38 +08:00
Andrew Nicols bbdef8886f Merge branch 'MDL-52708' of https://github.com/ramdesh/moodle 2016-05-09 15:49:48 +08:00
Andrew Nicols cc47c7174b Merge branch 'MDL-54072' of git://github.com/aolley/moodle 2016-05-09 15:14:27 +08:00
Ryan Wyllie b7c7f0d10e MDL-54009 enrol_lti: Captilise language string 2016-05-09 07:09:15 +00:00
Andrew Nicols 3ff8d30246 Merge branch 'MDL-54102_master' of git://github.com/markn86/moodle 2016-05-09 15:08:54 +08:00
Ryan Wyllie 9c8ef1397f MDL-54009 mod_lti: Style LTI tool iframe border 2016-05-09 07:07:27 +00:00
David Monllao 814b5d6772 Merge branch 'wip-mdl-54100' of https://github.com/rajeshtaneja/moodle 2016-05-09 14:34:23 +08:00
Andrew Nicols 197adc93d5 Merge branch 'MDL-53914-master' of git://github.com/FMCorz/moodle 2016-05-09 14:16:56 +08:00
Mark Nelson 3fb5ddc3d6 MDL-54102 core: describe newly introduced hooks 2016-05-09 14:04:01 +08:00
Andrew Nicols b0ab1fdcff Merge branch 'm31_MDL-53837_Is_Executable_Python_Script_Windows' of https://github.com/scara/moodle 2016-05-09 13:29:32 +08:00
Rajesh Taneja 9914bd8b60 MDL-54100 behat: Catch undefined steps 2016-05-09 11:41:05 +08:00
David Monllao 33b60a4720 Merge branch 'MDL-54034-master' of git://github.com/FMCorz/moodle 2016-05-09 07:46:53 +08:00
David Monllao 8ec64e757e Merge branch 'MDL-53989-master' of git://github.com/ryanwyllie/moodle 2016-05-09 07:37:09 +08:00
Joshua Todd Cowper 78c2c3bb42 MDL-51978 admin: default course format to topics
Change default setting for default course format to topics, and also fix
coding style issue on same line (75) by adding a space after comma
Change default setting for default number of sections to 4
2016-05-08 22:38:00 +10:00
Damyon Wiese d26eae4af4 MDL-54042 user: Add unit test to cover change 2016-05-06 14:07:49 +01:00
Damyon Wiese 8eb15a38ef MDL-54042 user: Fix debugging in core_user_get_users_by_field
The course object returned by enrol_get_all_users_courses does not include the defaultgroupingid.

This course object is passed to user_get_user_details - which does need
the defaultgroupingid.

All the other group info is returned (groupmode) etc - so it makes sense to also return this extra field.
2016-05-06 14:07:48 +01:00
Frederic Massart 1d0140757a MDL-54034 ajax: Apply filters in ajax requests
This also clarified that developers can decide to force filters
to be ignored when using external_format_text, though they cannot
force filters to be turned on as the clients should be able to
opt-out from filtering should they want to.
2016-05-06 17:59:41 +08:00
Damyon Wiese 55907a738a MDL-53822 editpdf: Add a new tool for scrolling
I added a new tool to the toolbar to allow click and drag scrolling (especially useful for touchscreens).
2016-05-06 16:33:31 +08:00
Frederic Massart f058c74eba MDL-53914 mod_wiki: Do not format_text during search index 2016-05-06 16:25:26 +08:00
David Monllao 1e72daa899 on-demand release 3.1beta+ 2016-05-06 16:15:29 +08:00
David Monllao 2f2383af51 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-05-06 16:15:27 +08:00
Ryan Wyllie a6c1a1c753 MDL-52133 mod_assign: Support userid on single grade page 2016-05-06 07:18:44 +00:00
David Monllao 729738d14c Merge branch 'MDL-54058-master' of git://github.com/junpataleta/moodle 2016-05-06 13:53:07 +08:00
Adam Olley 4ec4b2b65c MDL-54072 tool_recyclebin: Avoid hardcoded course_modules count
One of the unit tests for tool_recyclebin makes an assumption that a
fresh install of Moodle has no course modules, which is true for vanilla
moodle.

However there are some third party plugins (mod_oublog and
mod_respondusws are the ones I've run into) that have a course module
added to the frontpage course on install.

So this change alters the test from comparing the count of modules in
the test course with a hardcoded value to first getting the existing
count of values before performing the actions that affect the count and
then using that value to compare with.
2016-05-06 15:04:16 +09:30
Ryan Wyllie fd83879728 MDL-53989 cbe: CMD + click selection for competency picker 2016-05-06 04:40:02 +00:00
Jun Pataleta 2cf9e3f0ca MDL-54058 tool_lp: Set framework select's width in competency picker 2016-05-06 10:34:29 +08:00
Andrew Nicols d07c339272 Revert "Merge branch 'MDL-53599' of git://github.com/nhoobin/moodle"
This reverts commit 15a813cda2, reversing
changes made to 6870e1fa77.
2016-05-06 10:18:10 +08:00
Andrew Nicols 68c1074625 Merge branch 'wip-mdl-53701' of https://github.com/rajeshtaneja/moodle 2016-05-06 09:58:28 +08:00
Dan Poltawski a9e9f96382 MDL-54062 bootstrapbase: remove unused less file
This file has never been included in our CSS.
2016-05-06 09:27:36 +08:00
Rajesh Taneja c5fe77ffe4 MDL-53810 behat: Zoom in Rubric before filling form.
div is now overflow, selenium can't get element
in viewport, zoom in before entering the value
2016-05-06 09:27:35 +08:00
Mark Nelson a8abd53a32 MDL-54030 enrol_lti: confirm tool exists before deleting users 2016-05-06 09:27:35 +08:00
Damyon Wiese 8668796317 MDL-54046 enrol: Make docs urls match the old path
Previously each enrolment method had it's own url in the docs. Because of the
refactor in 3.1 all pages are now served from the same script. We need to
manually set the docs url so that it points to the old docs pages.
2016-05-06 09:27:34 +08:00
Mark Nelson d066ed8db0 MDL-53977 enrol_lti: a hack to workaround a hack to utilise DB caching 2016-05-06 09:27:34 +08:00
Marina Glancy c0dd0e3543 MDL-41640 mod_feedback: info question should default to course
Also hide "response time" from options in case of anonymous feedback
2016-05-06 09:27:34 +08:00
Marina Glancy ac29314ed1 MDL-41640 mod_feedback: do not show 0 responsetime 2016-05-06 09:27:33 +08:00
Andrew Nicols 1c693f7226 MDL-53730 JavaScript: Build form-autocomplete 2016-05-06 09:27:33 +08:00
Adrian Greeve be8b9189c4 MDL-53730 JavaScript: Fix for competency autoselect issue.
When trying to select a user or competency the first select
would not work. Worked fine on the second select. This fixes
that problem and tidies up the code.
2016-05-06 09:27:32 +08:00
Eloy Lafuente (stronk7) 4ae653024d MDL-53944 dml: make char2real() for mysql to support decimals
- With the patch, 6 positions of scale accuracy are guaranteed
  per individual casted value.
- Backed with unit tests, both for varchar and clob.
- Added 2 missing tests about uses of the method with params
  and values.

Note: 6 was picked because looking to all databases implementation
postgres was found to be casting to real, aka, 6.
2016-05-06 09:27:32 +08:00
Frederic Massart 440b4c54ca MDL-53957 form: Support frontpage for selection in course element 2016-05-06 09:27:31 +08:00
Jun Pataleta 45b9207d7e MDL-53974 backup: Add option to backup course competencies 2016-05-06 09:27:31 +08:00
Adam Olley 11ee4f71a4 MDL-54007 mod_assign: Limit unit tests to core plugins
Without this change, the unit tests make assumptions for the output of
mod_assign functions/webservices that do not hold true when 3rd party
submission and feedback plugins are installed.
2016-05-06 09:27:31 +08:00
Skylar Kelty e594a6a8e9 MDL-53889 forms: Fix course field values after multiple value updates 2016-05-06 09:27:30 +08:00
Frederic Massart 043ae97239 MDL-54053 competencies: Teachers can rate competencies from a course 2016-05-06 09:27:30 +08:00
Frederic Massart 1eaba735f5 MDL-53730 form: Autocomplete triggers change event on change only 2016-05-06 09:27:29 +08:00
Stephen Bourget 456b8a602c MDL-54003 Behat: tests for recent badges block 2016-05-06 09:27:29 +08:00
Juan Leyva 3123c2cff5 MDL-53993 competency: Add CBE external functions to the Mobile service 2016-05-06 09:27:29 +08:00
Adrian Greeve 1a9068ae01 MDL-53888 mod_url: Choose a link option now works.
Fixed a regression from MDL-50484.
2016-05-06 09:27:28 +08:00
Ryan Wyllie d72fd8e28a MDL-53810 assign: Scroll for large rubrics on grading interface 2016-05-06 09:27:28 +08:00
Fred Woolard 1ac585fefd MDL-53713 core: account for session_start returning false 2016-05-06 09:27:27 +08:00
David Monllao 3032b16b3d MDL-53750 shibboleth: Passing a var to empty for PHP 5.4 2016-05-06 09:27:27 +08:00
Frederic Massart f824aceb50 MDL-51369 course: Adding tests to cover restoring course info 2016-05-06 09:27:27 +08:00
Frederic Massart 68bf1ff4b3 MDL-51369 backup: Respect capabilities when restoring course info
In short, when a user is creating a new course they can set
the ID number, shortname, fullname and summary. However, when
they merge a backup into a course they need the permissions to do so.
2016-05-06 09:27:26 +08:00
Frederic Massart da1296dd07 MDL-53954 user: Prevent locked profile fields from being edited 2016-05-06 09:27:26 +08:00
Andrew Nicols e90e0ea570 MDL-53755 forum: Check session when marking posts 2016-05-06 09:27:26 +08:00
Andrew Nicols 6b587d2be2 MDL-53696 forum: Check discussion in forum 2016-05-06 09:27:25 +08:00
John Okely f9ee3dbcc1 MDL-53750 auth: fix logout bug in shibboleth
Original patch by Dr. Michael Schneider
2016-05-06 09:27:25 +08:00
Tim Hunt b9cc7e01a1 MDL-53589 badges: fix capability check 2016-05-06 09:27:24 +08:00
Dan Marsden d4f96fa397 MDL-53546 SCORM: Set window.opener to null 2016-05-06 09:27:24 +08:00
Rajesh Taneja 45fb8b5983 MDL-53701 core_lib: use date_format_string for utf8
So when language is different say Hebrew then
it would pic codepage-1255. As  is json_encoded
we need to ensure we get utf8 string. so use
date_format_string instead
2016-05-05 16:34:41 +08:00
Jun Pataleta f8a5c98eb6 MDL-54056 gradingform_guide: Conditionally render comments chooser
Render the frequently-used comments only if there are defined
 frequently used comments
2016-05-05 10:29:23 +08:00
AMOS bot 1361cbb471 Automatically generated installer lang files 2016-05-05 00:04:24 +08:00
Juan Leyva 871988b0b4 MDL-54049 core_message: Add missing external format text 2016-05-04 12:52:45 +02:00
David Monllao 2e1dff9f98 MDL-54040 block_globalsearch: Centered 2016-05-04 15:59:07 +08:00
Dan Poltawski fc1ef59fbe Moodle release 3.1beta 2016-05-03 20:55:03 +01:00
Dan Poltawski 1466a40c9f Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-05-03 20:55:00 +01:00
Eloy Lafuente (stronk7) 12c52b9140 Merge branch 'MDL-54032-master' of git://github.com/jleyva/moodle 2016-05-03 18:02:01 +02:00
Dan Poltawski 8b320df059 Merge branch 'wip-mdl-53601' of https://github.com/rajeshtaneja/moodle 2016-05-03 14:42:44 +01:00
Dan Poltawski 9711647682 Merge branch 'wip-mdl-53980' of https://github.com/rajeshtaneja/moodle 2016-05-03 14:39:18 +01:00
liorgi 68873d48be MDL-54036 mod_forum: Remove unused variable in forum_print_posts_flat 2016-05-03 16:30:58 +03:00
Juan Leyva 7c357047cc MDL-54032 webservice: Fix plugin functions not using services 2016-05-03 13:00:13 +02:00
Juan Leyva ee7295eef8 MDL-54032 webservice: Use services for core functions
Include core functions into the mobile service using the services
attribute for external functions
2016-05-03 13:00:13 +02:00
Rajesh Taneja 8ade0df755 MDL-53601 behat: Fixed wrong behat steps 2016-05-03 17:26:31 +08:00
Rajesh Taneja e2ceebb766 MDL-53980 behat: Use Create new account button
New Account link has been removed, use
Create new account button
2016-05-03 17:22:23 +08:00
Dan Poltawski 5928e0eac3 Merge branch 'wip-MDL-53402-master-v2' of git://github.com/abgreeve/moodle 2016-05-03 09:13:21 +01:00
Dan Poltawski ed3a47aad1 MDL-54008 tests: clarify comment in tz test 2016-05-03 09:08:27 +01:00
Dan Poltawski ef55f150e1 Merge branch 'MDL-54008_master-normalise' of git://github.com/dmonllao/moodle 2016-05-03 08:56:58 +01:00
Andrew Nicols d0ec347a76 Merge branch 'MDL-53982-master' of https://github.com/FMCorz/moodle 2016-05-03 14:26:50 +08:00
Adrian Greeve 4937a0616f MDL-53402 mod_data: field values of 0 are now displayed. 2016-05-03 14:22:16 +08:00
David Monllao 143f410a2f MDL-54008 tz: Unexisting tz with decimals fallback to rounded down integer 2016-05-03 14:03:09 +08:00
David Monllao bfb122a10a Merge branch 'wip-MDL-53402-master' of git://github.com/abgreeve/moodle 2016-05-03 13:02:15 +08:00
Adrian Greeve 9b5cf165b4 MDL-53402 mod_data: Added custom validation code for data fields.
Added custom validation to radiobutton, menu, and checkbox.
2016-05-03 12:48:00 +08:00
David Monllao becea83edc Merge branch 'MDL-53899-master-pluginperm' of git://github.com/mudrd8mz/moodle 2016-05-03 10:28:33 +08:00
David Monllao ff36ef7100 Merge branch 'MDL-51142-master' of git://github.com/damyon/moodle 2016-05-03 09:57:40 +08:00
David Monllao c6d1eb5f51 Merge branch 'MDL-53925-master' of https://github.com/StudiUM/moodle 2016-05-03 09:54:59 +08:00
Andrew Nicols 0a4f3eb27d MDL-54026 WS: Convert type 'delete' => 'write'
This was not the type you were looking for.
2016-05-03 09:51:39 +08:00
Andrew Nicols 614f7d955f Merge branch 'wip-mdl-54000-fix' of https://github.com/rajeshtaneja/moodle 2016-05-03 09:41:30 +08:00
Rajesh Taneja 5bd7abb498 MDL-54000 webservices: removed core_user_get_users_by_id
core_user_get_users_by_id is deprecated, hence
removed it from the list of mobile web services
2016-05-03 09:18:29 +08:00
Andrew Nicols 186417cd03 Merge branch 'wip-mdl-54000' of https://github.com/rajeshtaneja/moodle 2016-05-03 08:57:53 +08:00
Dan Poltawski bda981792a Merge branch 'wip-MDL-53402-master' of git://github.com/abgreeve/moodle 2016-05-02 17:06:26 +01:00
Dan Poltawski 8adf0454c0 Merge branch 'MDL-54019_master' of git://github.com/markn86/moodle 2016-05-02 16:56:56 +01:00
Serge Gauthier cb22606ce7 MDL-53925 competency: Plan and template descriptions are not displayed 2016-05-02 10:22:13 -04:00
Mark Nelson e45aac5f8e MDL-54019 core_behat: fixed typo 2016-05-02 18:09:39 +08:00
Juan Leyva 9be3072d33 MDL-53976 mod_quiz: Add missing parameter preflightdata in WS
External functions view_attempt and view_attempt_summary are missing
the parameter preflightdata
2016-05-02 12:07:15 +02:00
Dan Poltawski c2e07809e5 Merge branch 'wip_MDL-53033_master' of git://github.com/gjb2048/moodle 2016-05-02 10:17:12 +01:00
Dan Poltawski 1019a8f1ca Merge branch 'MDL-53904-master' of git://github.com/marinaglancy/moodle 2016-05-02 10:16:27 +01:00
Frederic Massart 60011d9a8a MDL-53982 competency: Javascript error due to string injection 2016-05-02 16:59:09 +08:00
Dan Poltawski 3b846632d1 Merge branch 'MDL-54008_master' of git://github.com/dmonllao/moodle 2016-05-02 09:52:16 +01:00
Damyon Wiese c78e567c5a MDL-51142 assign: Fix for group assignments with NEW status 2016-05-02 16:41:10 +08:00
Clement Smith 232b26f021 MDL-51142 mod/assign: Fix erroneous submission status display
This prevents display of submission time/date when the assignment
submission record is in a new state. It also keeps the display of
overdue assignments identical for those students who have viewed
the assignment yet not submitted, for those students who have
not viewed the assignment, and for those students who have not
viewed the assignment yet the instructor has accessed the grading
page.
2016-05-02 16:36:39 +08:00
David Monllao 71c0a5745c Merge branch 'wip-MDL-53601-master' of git://github.com/abgreeve/moodle 2016-05-02 16:17:48 +08:00
Adrian Greeve 1beb95af48 MDL-53601 mod_assign: Behat test for group feedback. 2016-05-02 15:54:53 +08:00
Adrian Greeve 181c20bc52 MDL-53601 mod_assign: Feedback files are sent to all group members. 2016-05-02 15:54:53 +08:00
David Monllao 3ec1965570 Merge branch 'MDL-53901-master' of git://github.com/damyon/moodle 2016-05-02 15:53:57 +08:00
David Monllao d28f187c6f Merge branch 'MDL-53635-master' of git://github.com/jleyva/moodle 2016-05-02 15:38:11 +08:00
Juan Leyva 6d782e3383 MDL-53635 message_airnotifier: Remove tags from notifications 2016-05-02 09:32:26 +02:00
David Monllao dd215cb1a3 MDL-54008 timezone: Updating references to Caracas tz.
I've removed Caracas direct references because it would fail on
some systems, it would depend on how updated is the olson version
PHP is using.
2016-05-02 15:08:54 +08:00
David Monllao 2df5ede635 Merge branch 'MDL-54006-master' of git://github.com/lameze/moodle 2016-05-02 14:20:11 +08:00
Rajesh Taneja 5041600d53 MDL-54000 mod_assign: core_user_get_users_by_field be accessible by ajax
To display user information on new assignment UI
core_user_get_users_by_field should be accessible
by ajax
2016-05-02 14:16:29 +08:00
Andrew Nicols 5ba312bf5b Merge branch 'MDL-53920_master' of git://github.com/markn86/moodle 2016-05-02 13:43:59 +08:00
Adrian Greeve 3829d1e2c8 MDL-53402 mod_data: Behat test for entering zero in required fields. 2016-05-02 13:24:01 +08:00
Adrian Greeve 8611d1dfc7 MDL-53402 mod_data: Required fields can contain 0.
The number and text field would not accept 0 as a
valid response.
2016-05-02 13:24:01 +08:00
Andrew Nicols b9b51b210b Merge branch 'MDL-53836-master' of git://github.com/ryanwyllie/moodle 2016-05-02 13:18:55 +08:00
Andrew Nicols 7b9cf51ad2 Merge branch 'MDL-53982-master' of git://github.com/FMCorz/moodle 2016-05-02 13:04:20 +08:00
Frederic Massart ba7f6eeaee MDL-53982 competency: Javascript error due to string injection 2016-05-02 12:57:03 +08:00
Mark Nelson 02113beb10 MDL-53920 cohort: notify competencies on cohort deletion 2016-05-02 12:49:11 +08:00
Simey Lameze 0de3caf616 MDL-54006 tool_uploaduser: check validation result before display warning 2016-05-02 11:45:59 +08:00
Skylar Kelty f66f7b89ec MDL-53836 mod_assign: Don't escape theme's larrow/rarrow 2016-05-02 02:55:27 +00:00
Damyon Wiese 9daa27426f MDL-53901 login: Redirect to https if loginhttps is enabled
This just prevents a double redirect.
2016-05-02 10:53:07 +08:00
David Monllao 74995620ca Merge branch 'MDL-53996-master' of git://github.com/junpataleta/moodle 2016-05-02 10:51:59 +08:00
David Monllao f74e3ace69 Merge branch 'MDL-53980-master-enfix' of git://github.com/mudrd8mz/moodle 2016-05-02 10:46:50 +08:00
David Monllao b4dfe61bdb Merge branch 'MDL-53877-master' of git://github.com/junpataleta/moodle 2016-05-02 10:22:25 +08:00
David Monllao 9fdcce1680 Merge branch 'MDL-53967-master' of https://github.com/sk-unikent/moodle 2016-05-02 10:15:26 +08:00
David Monllao 700f503171 Merge branch 'MDL-53994' of git://github.com/stronk7/moodle 2016-05-02 10:04:36 +08:00
Serge Gauthier 3cd9461e77 MDL-53877 competency: Help and better validation text for evidence URL 2016-05-02 10:01:24 +08:00
David Monllao 3166be0831 Merge branch 'MDL-53917-master' of git://github.com/junpataleta/moodle 2016-05-02 10:00:29 +08:00
David Monllao a43c1ca7d4 Merge branch 'MDL-53918-master' of git://github.com/junpataleta/moodle 2016-05-02 09:54:52 +08:00
Jun Pataleta 12e649e228 MDL-53996 block_lp: Check user login before fetching block contents 2016-05-02 09:40:06 +08:00
AMOS bot 903559f682 Automatically generated installer lang files 2016-05-02 00:04:09 +08:00
Eloy Lafuente (stronk7) b22692d740 Merge branch 'MDL-53955-master' of git://github.com/junpataleta/moodle 2016-04-30 09:39:16 +02:00
Eloy Lafuente (stronk7) 27d2f549d0 MDL-53994 block_feedback: Add missing include
Also, a little scenario has been added to have the behavior
covered and prevent this to happen again.
2016-04-30 07:28:18 +02:00
AMOS bot 31df9f6bfa Automatically generated installer lang files 2016-04-30 00:06:42 +08:00
Dan Poltawski 3219a4535f on-demand release 3.1dev+ 2016-04-29 12:27:28 +01:00
Dan Poltawski 387caf046b NOBUG: Fixed file access permissions 2016-04-29 12:27:27 +01:00
David Monllao 3496258903 Merge branch 'MDL-53937-master' of git://github.com/FMCorz/moodle 2016-04-29 12:19:43 +01:00
Frederic Massart 42c28b0874 MDL-53937 core_competency: False negative with duedate on plan reopen 2016-04-29 12:19:43 +01:00
Dan Poltawski 02f504729a MDL-52154 lti: fix string errors
Thanks to Helen
2016-04-29 12:19:42 +01:00
David Monllao d4a41aa252 Merge branch 'MDL-53943-master' of git://github.com/junpataleta/moodle
Conflicts:
	admin/tool/cohortroles/settings.php
2016-04-29 12:19:39 +01:00
Dan Poltawski f6ab2b87e6 Merge branch 'MDL-53879-master' of git://github.com/FMCorz/moodle 2016-04-29 12:18:05 +01:00
Dan Poltawski 89ef883129 Merge branch 'MDL-53716-master' of git://github.com/FMCorz/moodle 2016-04-29 12:18:04 +01:00
Jun Pataleta 0bb7552429 MDL-53494 tool_lp: Set correct competency and user ID attributes
Sets the correct competency and user ID data attributes for the list of
user competencies in the plan.
2016-04-29 12:18:04 +01:00
Eloy Lafuente (stronk7) eb98b1395d Merge branch 'wip-MDL-53638-fix' of https://github.com/marinaglancy/moodle 2016-04-29 12:18:03 +01:00
David Monllao faeca20d43 MDL-49414 externallib: Cleaning tabs 2016-04-29 12:18:02 +01:00
Marina Glancy bc73c64071 MDL-53638 mod_feedback: fix to responsetime in non-anon answer 2016-04-29 12:18:02 +01:00
David Monllao 537e08ac03 MDL-49414 user: Fixing unmanaged conflict 2016-04-29 12:18:01 +01:00
Andrew Nicols 3dca0b120a Merge branch 'MDL-37753-feedback-name' of https://github.com/brendanheywood/moodle 2016-04-29 12:18:00 +01:00
David Monllao 7cbb29e264 Merge branch 'MDL-49414-master' of git://github.com/cameron1729/moodle 2016-04-29 12:18:00 +01:00
Brendan Heywood 97909332eb MDL-37753 mod_feedback: Use activity name for export filename 2016-04-29 12:17:59 +01:00
Andrew Nicols 9f17263557 Merge branch 'MDL-53973-tablelib-worksheet-name' of https://github.com/brendanheywood/moodle 2016-04-29 12:17:58 +01:00
Brendan Heywood dae21986aa MDL-37753 dataformat: Only set worksheet name where implemented 2016-04-29 12:17:58 +01:00
Brendan Heywood c32bcfe751 MDL-53973 tablelib: Fixed bug with worksheetname being ignored 2016-04-29 12:17:58 +01:00
Andrew Nicols df89940e5d MDL-53858 quiz accessibility: Correct aria-labelledby attribute 2016-04-29 12:17:57 +01:00
Andrew Nicols 4fdc9fbe20 Merge branch 'MDL-53858' of git://github.com/timhunt/moodle 2016-04-29 12:17:56 +01:00
David Monllao eca318d937 Merge branch 'MDL-52035_master' of git://github.com/markn86/moodle 2016-04-29 12:17:56 +01:00
Mark Nelson 3bc7252389 MDL-52035 enrol_lti: added fix for oracle
Also added another unit test for \enrol_lti\helper::count_lti_tools();
2016-04-29 12:17:55 +01:00
David Monllao 1f491b60c3 Merge branch 'MDL-53791-master-fix' of git://github.com/andrewnicols/moodle 2016-04-29 12:17:54 +01:00
Andrew Nicols 7c53378bc7 MDL-53791 mod_wiki: Bump version for new WS 2016-04-29 12:17:54 +01:00
Eloy Lafuente (stronk7) efd0d992d5 MDL-53638 mod_feedback: rebuild css 2016-04-29 12:17:53 +01:00
David Monllao 21ed46132d Merge branch 'MDL-53921-master' of git://github.com/ryanwyllie/moodle 2016-04-29 12:17:53 +01:00
Eloy Lafuente (stronk7) a2e6df5ede MDL-51603 flexitable: Document the deletion of get_download_menu() 2016-04-29 12:17:52 +01:00
Eloy Lafuente (stronk7) 28ee220a36 Merge branch 'wip-MDL-53638-master' of https://github.com/marinaglancy/moodle 2016-04-29 12:17:52 +01:00
Eric Merrill 861de101a9 MDL-53758 search: Fix unittest error 2016-04-29 12:17:51 +01:00
Dan Poltawski 5ea0c56236 Merge branch 'MDL-52154-master-wip2' of https://github.com/xow/moodle 2016-04-29 12:17:50 +01:00
Dan Poltawski 48715140a3 Merge branch 'MDL-53915-master' of git://github.com/junpataleta/moodle 2016-04-29 12:17:50 +01:00
Dan Poltawski e71c9ebfd3 Merge branch 'MDL-53919_master' of git://github.com/markn86/moodle 2016-04-29 12:17:49 +01:00
Skylar Kelty 216b7f7577 MDL-53967 caching: Ensure getAllKeys returns a valid array 2016-04-29 12:14:34 +01:00
Jun Pataleta d238016e0d MDL-53918 tool_cohortroles: Assign role on non-empty user and cohort IDs 2016-04-29 15:43:56 +08:00
Jun Pataleta e9b4bca0f8 MDL-53917 tool_lp: Show course competency notice appropriately
Show course competency notice only if the user has a
moodle/competency:competencygrade capability.
2016-04-29 15:23:44 +08:00
David Mudrák c1d44340a5 MDL-53980 lang: Fix the reworded strings in Behat tests 2016-04-28 18:39:59 +02:00
Helen Foster a5061bf7b7 MDL-53980 lang: Merge English strings from the en_fix language pack 2016-04-28 18:32:03 +02:00
Frederic Massart 56e1d9bada MDL-53716 competency: Do not restore competencies when disabled 2016-04-28 18:41:30 +08:00
Frederic Massart e9114a9ed4 MDL-53716 competency: Backup and restore course competency user data 2016-04-28 18:41:30 +08:00
Jun Pataleta 782fc43bd8 MDL-53943 tool_cohortroles: Require 'moodle/cohort:view' capability
tool_cohortroles not just needs the 'moodle/role:manage' capability,
but the 'moodle/cohort:view' capability as well since the cohorts
selector field will not work without it.
2016-04-28 16:47:56 +08:00
Frederic Massart 8ea0f17ae9 MDL-53879 competency: Remove limit on framework depth 2016-04-28 16:41:24 +08:00
Jun Pataleta 9031371211 MDL-53955 tool_lp: Remove the use of chained steps in tool_lp 2016-04-28 14:57:54 +08:00
Ryan Wyllie 7a6346429b MDL-53921 gradingform: Destroy frequently used comment dialog on hide 2016-04-28 01:21:44 +00:00
Jun Pataleta 60a9993bce MDL-53494 tool_lp: Fix dialogue display when plan is completed 2016-04-27 09:09:52 +01:00
Marina Glancy 0a0632cee6 MDL-53638 mod_feedback: corrections during rebase:
1. make query in upgrade cross-DB
2. rebase on top of MDL-51603
2016-04-27 16:04:44 +08:00
Marina Glancy c04dc3ca13 MDL-53638 mod_feedback: JS confirmation of deleting item 2016-04-27 16:04:44 +08:00
Marina Glancy 094c57dd4f MDL-53638 mod_feedback: JS confirmation on delete entry and template 2016-04-27 16:04:43 +08:00
Marina Glancy 3fdba72902 MDL-53638 mod_feedback: download responses 2016-04-27 16:04:40 +08:00
Marina Glancy f6b9b6b71b MDL-53904 course: apply default completion when approving request 2016-04-27 15:55:30 +08:00
Cameron Ball f23e9b6ba4 MDL-49414 webservices: Remove deprecated functions 2016-04-27 15:54:38 +08:00
Dan Poltawski 2170a2563b Merge branch 'MDL-53791-master' of git://github.com/crazyserver/moodle 2016-04-27 08:51:43 +01:00
Jun Pataleta 26e8311287 MDL-52035 enrol_lti: Fixed default mail display setting 2016-04-27 14:12:29 +08:00
Marina Glancy 1e3de9d8ba MDL-53638 mod_feedback: template for summary 2016-04-27 13:28:45 +08:00
Marina Glancy c33c1ed59e MDL-53638 mod_feedback: analysis page enhancements 2016-04-27 13:28:45 +08:00
Marina Glancy c83c052230 MDL-53638 mod_feedback: change items classes
remove duplication by creating methods in the parent class
delete unused methods
add new method complete_form_element() that hooks into the moodleform
2016-04-27 13:28:44 +08:00
Marina Glancy 97d71cbc3a MDL-53638 mod_feedback: convert to moodleforms 2016-04-27 13:28:43 +08:00
Marina Glancy ffee513ef2 MDL-53638 mod_feedback: structural changes
- add column 'courseid' to the feedback_completed and feedback_completedtmp tables
- drop table feedback_tracking because the same information is present in
  feedback_completed
2016-04-27 13:27:12 +08:00
Marina Glancy cf28c515f3 MDL-53638 forms: allow all elements to have css class 2016-04-27 13:27:12 +08:00
Marina Glancy aeeeb78847 MDL-53738 feedback: enable mod and block by default 2016-04-27 13:27:12 +08:00
John Okely af9d3a923d MDL-52154 mod_lti: Add tests and lang strings and finalise API 2016-04-27 13:15:33 +08:00
Jun Pataleta 147427ee7b MDL-53915 tool_cohortroles: Change setting URL to a proper moodle_url 2016-04-27 13:13:50 +08:00
Mark Nelson 55b43467b3 MDL-53919 core: fixed competency FKs 2016-04-27 12:31:44 +08:00
Eloy Lafuente (stronk7) 33952d4a53 Merge branch 'MDL-53758-master' of git://github.com/merrill-oakland/moodle 2016-04-26 20:34:20 +02:00
Dan Poltawski 667589d05f MDL-53698 admin_lp: trailing whitespace 2016-04-26 16:42:34 +01:00
Dan Poltawski 604d5d4730 Merge branch 'MDL-53698_master' of https://github.com/StudiUM/moodle 2016-04-26 16:42:00 +01:00
Dan Poltawski ffce908869 Merge branch 'MDL-53780' of https://github.com/bostelm/moodle 2016-04-26 15:37:36 +01:00
Dan Poltawski 9312c9c4ee Merge branch 'MDL-53629_master2' of https://github.com/StudiUM/moodle 2016-04-26 13:33:39 +01:00
Dan Poltawski 587580a0df Merge branch 'MDL-53494_master' of https://github.com/StudiUM/moodle 2016-04-26 11:31:55 +01:00
Dan Poltawski 2ef629e86d Merge branch 'MDL-53855' of git://github.com/timhunt/moodle 2016-04-26 11:17:45 +01:00
Dan Poltawski 0ea74d855f Merge branch 'MDL-53942-master' of git://github.com/junpataleta/moodle 2016-04-26 10:52:27 +01:00
Dan Poltawski 23f1dbde67 Merge branch 'MDL-53859_master' of https://github.com/StudiUM/moodle 2016-04-26 10:31:00 +01:00
Dan Poltawski 11ec31188a Merge branch 'MDL-53924-master' of git://github.com/FMCorz/moodle 2016-04-26 10:28:37 +01:00
Dan Poltawski 4648ae9e14 Merge branch 'MDL-52035_master' of git://github.com/markn86/moodle 2016-04-26 10:07:38 +01:00
Dan Poltawski 6bd3ab0717 on-demand release 3.1dev+ 2016-04-26 09:29:04 +01:00
Mark Nelson 73870f77f5 MDL-52035 enrol_lti: added PHPUnit and Behat tests 2016-04-26 16:15:48 +08:00
Mark Nelson da39029a5d MDL-52035 enrol_lti: added backup/restore functionality 2016-04-26 16:15:48 +08:00
Mark Nelson 8ed2bbcfed MDL-52035 enrol_lti: added sync_<grades/members> tasks 2016-04-26 16:15:48 +08:00
Mark Nelson 01bb32a2b1 MDL-52035 enrol_lti: added enrol plugin 2016-04-26 16:15:47 +08:00
Mark Nelson 1d8886fa31 MDL-52035 auth_lti: added auth plugin 2016-04-26 15:58:08 +08:00
Mark Nelson 30498d9a0e MDL-52035 core_enrol: allow redirection to another page 2016-04-26 15:58:08 +08:00
Ryan Wyllie cc193e0d1d MDL-52154 mod_lti: Improve admin interface
Created a new admin page for managing LTI tool types within
Moodle. The new page streamlines adding a new tool and allows
the admin to add a tool using either a cartridge or a registration
URL.
2016-04-26 15:13:44 +08:00
John Okely 8aec804af2 MDL-52154 mod_lti: Add cartridge support to LTI 2016-04-26 15:13:44 +08:00
Pau Ferrer Ocaña cf16f6ed18 MDL-53791 mod_wiki: New Web Service edit_page 2016-04-26 08:25:16 +02:00
Pau Ferrer Ocaña a6b6f0d282 MDL-53791 mod_wiki: New Web Service new_page 2016-04-26 08:25:15 +02:00
Pau Ferrer Ocaña 20dca621e0 MDL-53791 mod_wiki: New Web Service get_page_for_editing 2016-04-26 08:24:53 +02:00
Jun Pataleta 1388b618d9 MDL-53942 form_autocomplete: Properly set noSelectionString 2016-04-26 13:41:29 +08:00
Frederic Massart f1a9fcd96a MDL-53924 competency: Relax strictness of default capabilities 2016-04-26 12:12:46 +08:00
Mark Nelson 581ea5013a MDL-52035 core_block: avoid PHP error when there is no region
This occurs when sharing a quiz via the LTI provider when it
adds a 'fake block' for quiz navigation. There may be other
occurrences.
2016-04-26 12:08:31 +08:00
Mark Nelson 466a1713a0 MDL-52035 core: added ability to override pagelayout
This is required by the LTI plugin when we share an
activity. We do not want the user to be shown the
navigation blocks etc. The activity should be the
only thing displayed.
2016-04-26 12:08:31 +08:00
David Monllao 6e233df58e Merge branch 'MDL-53667-master' of git://github.com/FMCorz/moodle 2016-04-26 11:38:00 +08:00
David Monllao e7c979dff8 Merge branch 'MDL-53632-master' of git://github.com/FMCorz/moodle 2016-04-26 11:29:51 +08:00
David Monllao 8bfd0e6187 Merge branch 'MDL-52550-master' of git://github.com/cameron1729/moodle 2016-04-26 11:11:40 +08:00
David Monllao 29752d05ae Merge branch 'MDL-53733_master' of https://github.com/StudiUM/moodle 2016-04-26 10:55:03 +08:00
David Monllao e9eb7ca21f Merge branch 'MDL-53878_master' of https://github.com/StudiUM/moodle 2016-04-26 10:49:32 +08:00
David Monllao e1f9593de4 Merge branch 'MDL-53678_master' of https://github.com/StudiUM/moodle 2016-04-26 10:45:40 +08:00
David Monllao 4db87b505c Merge branch 'MDL-53813-master' of git://github.com/danpoltawski/moodle 2016-04-26 10:13:24 +08:00
David Monllao 1ef42d5f29 Merge branch 'MDL-53865-master' of git://github.com/junpataleta/moodle 2016-04-26 09:38:33 +08:00
Dan Poltawski 7064aaa11e Merge branch 'MDL-53717_master' of git://github.com/markn86/moodle 2016-04-25 22:20:31 +01:00
Dan Poltawski 55905d6313 Merge branch 'MDL-53811_master' of git://github.com/markn86/moodle 2016-04-25 22:01:38 +01:00
Dan Poltawski ca6cbe3428 Merge branch 'MDL-53853-master' of git://github.com/junpataleta/moodle 2016-04-25 22:00:18 +01:00
Dan Poltawski 32bdfd74c0 Merge branch 'MDL-53864_master-alt' of git://github.com/markn86/moodle 2016-04-25 15:53:12 +01:00
Dan Poltawski f60e024fdc Merge branch 'MDL-49754-master' of https://github.com/xow/moodle 2016-04-25 14:13:51 +01:00
Dan Poltawski ff72bc88e0 Merge branch 'wip-MDL-47672-master' of https://github.com/marinaglancy/moodle 2016-04-24 14:31:45 +01:00
Issam Taboubi 68f8ad4c95 MDL-53698 tool_lp: Progress percent sign not showing 2016-04-22 14:00:12 -04:00
Issam Taboubi 18daa64cbf MDL-53878 tool_lp: Condition on displaying Link competencies button 2016-04-22 13:57:09 -04:00
Issam Taboubi e65fda6b7f MDL-53733 tool_lp: Competency heading misaligned in templatecompetency 2016-04-22 13:54:02 -04:00
Issam Taboubi ee0ca65f4e MDL-53678 tool_lp: Dropdown list plan displays horizontal scroll bar 2016-04-22 13:51:52 -04:00
Issam Taboubi 7fbbd771f7 MDL-53494 tool_lp: user_competency_in_plan page should be in a popup 2016-04-22 12:32:46 -04:00
Serge Gauthier eeb477079e MDL-53859 competency: Can't change user in course competency breakdown 2016-04-22 11:41:36 -04:00
Serge Gauthier 184f9b12ed MDL-53629 tool_lp: Add buttons should be displayed left below the title 2016-04-22 10:50:40 -04:00
Eloy Lafuente (stronk7) 6c1342d7e5 weekly release 3.1dev 2016-04-22 10:56:57 +02:00
Eloy Lafuente (stronk7) 16d26ae0c1 NOBUG: Fixed file access permissions 2016-04-22 10:56:57 +02:00
Eloy Lafuente (stronk7) 7e122c6e29 NOBUG: Fixed SVG browser compatibility 2016-04-22 10:56:53 +02:00
Andrew Nicols e1bb3cd3c2 Merge branch 'MDL-52781-master-fix' of https://github.com/lameze/moodle 2016-04-22 14:25:03 +08:00
Simey Lameze 7c2bdca2f6 MDL-52781 core_user: remove invalid countries from unit tests 2016-04-22 14:10:55 +08:00
Andrew Nicols 284ac4240f Merge branch 'MDL-52781-master-fix' of https://github.com/lameze/moodle 2016-04-22 13:23:16 +08:00
Simey Lameze aa788b3c42 MDL-52781 core_user: fix wrong lang check 2016-04-22 13:07:22 +08:00
David Monllao c047386123 Merge branch 'MDL-53451-master-fixup3' of https://github.com/FMCorz/moodle 2016-04-22 12:59:59 +08:00
Frederic Massart 5592edb646 MDL-53451 competency: Improve performance by bypassing api::is_enabled() 2016-04-22 11:34:39 +08:00
Simey Lameze 48da3eef6e MDL-52490 mod_assign: fix lang strings to make it consistent 2016-04-22 10:25:07 +08:00
David Mudrák 62ea3c439e MDL-53899 admin: Fix permissions of extracted plugin files 2016-04-21 14:37:00 +02:00
Dan Poltawski 86dd906aa7 Merge branch 'MDL-46092' of git://github.com/timhunt/moodle 2016-04-21 13:21:03 +01:00
Tim Hunt 0569063924 MDL-46092 quiz nav: fix buttons in requiresgrading state 2016-04-21 12:25:45 +01:00
Dan Poltawski 2b311b2d3e Merge branch 'MDL-51603-fixes' of git://github.com/dmonllao/moodle 2016-04-21 09:24:28 +01:00
David Monllao 547d779012 MDL-51603 dataformat_ods: Setting the sheet name
Clearning according to Box\Spout\Writer\Common\Sheet::isNameValid
2016-04-21 16:20:36 +08:00
David Monllao fef111472c MDL-51603 dataformats: Using the long name instead of the short one 2016-04-21 16:20:36 +08:00
David Monllao bc3b5a6a2f MDL-51603 quiz statistics: Using dataformats selector 2016-04-21 16:20:36 +08:00
David Monllao 9df4ae4189 MDL-51603 dataformats: coding_exception if output buffering 2016-04-21 16:20:36 +08:00
Brendan Heywood 5b95105600 MDL-51603 dataformat: Fixed worksheet title bug 2016-04-21 16:20:36 +08:00
Andrew Nicols 6ab41abd3e Merge branch 'MDL-52781-master' of git://github.com/lameze/moodle 2016-04-21 15:54:45 +08:00
Simey Lameze 94a578af82 MDL-52781 tool_uploaduser: add invalid data warnings if validation fails 2016-04-21 15:34:32 +08:00
Simey Lameze 5e60be8aaf MDL-52781 auth_db: deprecate clean_data method.
The old clean_data method has been deprecated as the user_create_user and user_updated user
    will be responsible by validating the user data.
2016-04-21 15:24:36 +08:00
Simey Lameze ac9768fc1b MDL-52781 core_user: replace direct PARAM_ usages.
This commit replace as much as possible of clean_param and PARAM_ usages related to user object.
Also few unit tests has been changed to match the new validation
2016-04-21 15:24:36 +08:00
Simey Lameze 7a06720604 MDL-52781 core_user: add validation to user insertion and updating method
The new validation were added to user_create_user and user_update_user,
displaying debug message if some invalid data has been found.
Also the unit tests of those methods has been changed to match the methods behaviour.
2016-04-21 15:24:35 +08:00
Simey Lameze 4ce0931462 MDL-52781 core_user: improve core_user::fill_properties_cache() 2016-04-21 15:24:35 +08:00
Panagiotis Nikoloutsopoulos c3c3c9f28a MDL-52550 atto: Added preventDefaults for events dragover and dragenter 2016-04-21 15:08:20 +08:00
Frederic Massart 3577bbe101 MDL-53451 tool_lpmigrate: Keep course competency on module failure
When permissions are lacking and the course module competencies could
not be migrated we must keep the course competency to preserve the
original competency in the course module.
2016-04-21 11:40:36 +08:00
Mark Nelson 4aa7e3fe18 MDL-53864 mod_feedback: fixed varying results on MSSQL 2016-04-21 11:32:49 +08:00
Dan Poltawski 8ef18bda2b Merge branch 'MDL-46092' of git://github.com/timhunt/moodle 2016-04-20 22:20:35 +01:00
Tim Hunt de2fec2e9a MDL-46092 bootstrapbase: add OU quiz styling
It is a nicer default to have in Moodle that what we had before.
2016-04-20 15:43:34 +01:00
Dan Poltawski 17883c016b Merge branch 'wip-MDL-52642-master' of git://github.com/abgreeve/moodle 2016-04-20 13:30:38 +01:00
Dan Poltawski 795adc89af Merge branch 'MDL-52490_master' of https://github.com/dmonllao/moodle 2016-04-20 12:38:15 +01:00
Dan Poltawski d6c8570f55 Merge branch 'MDL-53095-master' of git://github.com/lameze/moodle 2016-04-20 11:49:50 +01:00
Dan Poltawski 913dcb1b81 Merge branch 'MDL-53451-master-fixup' of https://github.com/FMCorz/moodle 2016-04-20 11:28:55 +01:00
Dan Poltawski 4ee37fe04b Merge branch 'wip-MDL-53798-master' of https://github.com/marinaglancy/moodle 2016-04-20 11:09:48 +01:00
Frederic Massart d789158566 MDL-53451 tool_lpmigrate: Fixing broken logic found in tests
Thanks to MSSQL, the only one with failures.
2016-04-20 17:52:09 +08:00
Dan Poltawski ab64fe91fc Merge branch 'wip-MDL-51354_master' of https://github.com/cdsmith-umn/moodle 2016-04-20 10:33:23 +01:00
Dan Poltawski ad2382730e Merge branch 'MDL-53309_master-second-attempt' of git://github.com/dmonllao/moodle 2016-04-20 10:27:57 +01:00
David Monllao 15a813cda2 Merge branch 'MDL-53599' of git://github.com/nhoobin/moodle 2016-04-20 16:38:57 +08:00
David Monllao 6870e1fa77 Merge branch 'MDL-53757_master' of git://github.com/markn86/moodle 2016-04-20 15:52:57 +08:00
Frederic Massart 4fd183d3c3 MDL-53451 competency: Hook for scale_used used undefined variable 2016-04-20 15:44:01 +08:00
Frederic Massart 0abaf33e00 MDL-53451 competency: Fixing database errors on Oracle
- Random ordering caused by absence of ORDER BY clause
- Invalid query statemennt due to wrong string concatenation
- Cannot GROUP BY with CLOB columns
2016-04-20 15:44:01 +08:00
Andrew Nicols eb91deaa85 Merge branch 'MDL-51603-dataformat-MDL-34925-user-download' of https://github.com/brendanheywood/moodle 2016-04-20 14:45:44 +08:00
David Monllao ba44323329 MDL-51603 dataformat: Removing subsystem from the list 2016-04-20 14:41:28 +08:00
David Monllao a5acf308ae Merge branch 'MDL-51603-dataformat' of https://github.com/brendanheywood/moodle
Conflicts:
	lib/tests/component_test.php
2016-04-20 12:37:05 +08:00
David Monllao 65f9001d31 Merge branch 'MDL-48089-master' of git://github.com/danpoltawski/moodle 2016-04-20 12:24:07 +08:00
David Monllao 18641bf6e1 Merge branch 'MDL-48506_master' of git://github.com/markn86/moodle 2016-04-20 11:54:38 +08:00
Nick Phillips 7bdc3ba6e6 MDL-53757 core_calendar: always show whole day's events in 'day' view 2016-04-20 11:34:19 +08:00
David Monllao 82644d4966 Merge branch 'MDL-53382' of https://github.com/andrewhancox/moodle 2016-04-20 11:29:57 +08:00
David Monllao d7eb33652f Merge branch 'MDL-53702_master' of https://github.com/liorgil/moodle 2016-04-20 11:10:23 +08:00
David Monllao edc0c29f7b Merge branch 'MDL-25742-fix-individual-wiki' of git://github.com/cameron1729/moodle 2016-04-20 11:07:23 +08:00
David Monllao c16c7530b1 Merge branch 'MDL-52596-assign-maxperpage' of https://github.com/brendanheywood/moodle 2016-04-20 11:04:10 +08:00
Brendan Heywood 12142298ec MDL-34925 user: Convert bulk user download to dataformat 2016-04-20 13:02:06 +10:00
David Monllao 45073995a1 Merge branch 'MDL-53799-31' of https://github.com/vadimonus/moodle 2016-04-20 10:59:49 +08:00
Brendan Heywood 1e29afd4ea MDL-51603 report_log: Allow streaming downloads 2016-04-20 12:39:29 +10:00
Brendan Heywood 5684cc2d1e MDL-51603 tablelib: Removed legacy export classes 2016-04-20 12:39:29 +10:00
Brendan Heywood bdb80f6a5f MDL-51603 tablelib: Delegate to dataformat for downloading 2016-04-20 12:39:29 +10:00
Brendan Heywood bff1edbe44 MDL-51603 dataformat: Implement streaming dataformat plugin 2016-04-20 12:39:25 +10:00
Cameron Ball d5722b4447 MDL-25742 mod_wiki: Fix bug in get_tagged_pages 2016-04-20 10:37:34 +08:00
Brendan Heywood b4772a41d1 MDL-51603 dataformat: Imported 3rd party lib spout 2016-04-20 12:33:35 +10:00
Eloy Lafuente (stronk7) 3a97e39825 Merge branch 'MDL-53660-master' of git://github.com/danpoltawski/moodle 2016-04-20 01:19:58 +02:00
Eloy Lafuente (stronk7) 4384d72024 Merge branch 'MDL-53043' of https://github.com/andrewhancox/moodle 2016-04-20 00:53:07 +02:00
Mark Nelson 027eb38ed5 MDL-48506 cachestore_memcached: make warning more noticeable 2016-04-19 17:11:05 +08:00
David Monllao 9a1414c4d8 Merge branch 'MDL-49279-master' of git://github.com/jleyva/moodle
Conflicts:
	lib/classes/plugin_manager.php
2016-04-19 16:55:01 +08:00
Simey Lameze bc577c541f MDL-51267 mod: move the changes from the API to the form file 2016-04-19 16:36:26 +08:00
Juan Leyva b2478ed0f6 MDL-49279 mobile: Support export of mobile addons in plugins 2016-04-19 10:32:53 +02:00
Jun Pataleta 00456f0bed MDL-53865 tool_lp: Add maxlength attr and validation for input fields 2016-04-19 15:40:36 +08:00
David Monllao f3eb9951d1 MDL-53451 tool_lp: Removing unnecessary built modules 2016-04-19 13:56:49 +08:00
Jun Pataleta 30f1b35474 MDL-53853 tool_lp: Remove competency description in autocomplete 2016-04-19 13:16:17 +08:00
Mark Nelson fcc9218fb8 MDL-53811 mod_assign: fixed error in convert submissions task 2016-04-19 13:08:27 +08:00
David Monllao 56ff87aea5 Merge branch 'wip-MDL-25742-master' of https://github.com/marinaglancy/moodle 2016-04-19 12:42:21 +08:00
David Monllao c3b661403c Merge branch 'cbe' of git://github.com/FMCorz/moodle 2016-04-19 12:37:11 +08:00
Frederic Massart 4474c87401 MDL-53451 competency: Removing sneaky whitespaces 2016-04-19 12:21:36 +08:00
David Monllao 218fbd6ca2 Merge branch 'MDL-51267-master' of git://github.com/lameze/moodle 2016-04-19 11:53:22 +08:00
Simey Lameze 819e1ff0ad MDL-51267 mod_url: make the url and resource forms friendlier 2016-04-19 11:13:18 +08:00
Frederic Massart 69c478660a MDL-53451 competency: Properly wrap those nasty function declarations
Pheww, we avoided a disaster.
2016-04-19 10:55:46 +08:00
Andrew Nicols 383819375d Merge branch 'MDL-53779-master' of git://github.com/FMCorz/moodle 2016-04-19 10:32:56 +08:00
David Monllao a60b808d1c Merge branch 'MDL-48506-master' of git://github.com/ryanwyllie/moodle 2016-04-19 10:05:17 +08:00
Andrew Nicols cd82dcd08f Merge branch 'MDL-53535_master' of git://github.com/dmonllao/moodle 2016-04-19 09:45:30 +08:00
Eloy Lafuente (stronk7) 15f69edb1d Merge branch 'MDL-53796_master' of git://github.com/dmonllao/moodle 2016-04-19 01:58:13 +02:00
Eloy Lafuente (stronk7) 8ac2e53d17 Merge branch 'MDL-53795-master' of git://github.com/merrill-oakland/moodle 2016-04-19 01:44:46 +02:00
Clement Smith 98d53af7b6 MDL-51354 report/log: Add context sensitive help
Adds context sensitive help to the Reports > Logs page (both admin
and course level) to help users understand how the filters will
affect their search.
2016-04-18 12:37:29 -05:00
Tim Hunt 5b444ee987 MDL-53858 quiz accessibility: nav block should have role='navigation' 2016-04-18 17:37:03 +01:00
Tim Hunt 67b67a50cf MDL-53855 accessibility: navbar should be in exactly one nav region
And that should be labelled.
2016-04-18 16:56:34 +01:00
Frederic Massart 29879f8f4c MDL-53667 templates: Improve JS string handling in templates
The native String.replace method in extremely slow when we are
dealing with a large string and large quantity of strings to replace.
This new solution walks through the string looking for placeholders
to replace.
2016-04-18 17:14:32 +08:00
Frederic Massart 746da8ba60 MDL-53632 competency: Consistently use the terms frameworks, plans, ...
- Templates: 'Learning plan templates'
- Plans: 'Learning plans'
- Frameworks: 'Competency frameworks'

When the context, or sentence, is already stating that we are talking
about 'learning plans' or 'competencies', it may sound redundant to
repeat those terms, therefore we can simply refer to 'Templates',
'Plans', and 'Frameworks'.
2016-04-18 16:51:39 +08:00
Mark Nelson 38870d60fd MDL-53717 core: prevent PHP notice during install 2016-04-18 16:38:36 +08:00
Ryan Wyllie 33688fbfe6 MDL-48506 cachestore_memcached: added shared cache config option
When added a memcached instance you can now select whether the cache is
being shared by other applications. The setting will determine the
purging strategy.

Shared caches will have individual keys deleted while dedicated caches
will have the entire cache purged (better performance over networks).

Note: This option only works with the correct version of the php
memcached extension and with the multi-site safe changes.
2016-04-18 07:18:24 +00:00
Jun Pataleta 3de445bb56 MDL-51749 calendar: Behat tests for calendar export and additional fixes 2016-04-18 15:02:50 +08:00
Sam Hemelryk 7797d7ead0 MDL-48506 cachestore_memcached: added upgrade notice 2016-04-18 06:56:46 +00:00
Sam Hemelryk 957e0c7567 MDL-48506 cachestore_memcached: is now multi-site safe 2016-04-18 06:56:46 +00:00
Frederic Massart e912927d7b MDL-53667 tool_lp: Use event delegate for competency dialogue
This was causing dramatical performance issues when the module
was loaded hundreds of times on the same page, causing each instance
to detach and attach a new event listener.
2016-04-18 14:52:48 +08:00
Serge Gauthier d580b62fb3 MDL-53627 tool_lp: Add links to cohorts and plans in templates menu 2016-04-18 14:42:03 +08:00
Brendan Heywood 80989850b6 MDL-52596 assign: Add max assignment per grading page site wide setting 2016-04-18 16:34:40 +10:00
Nicholas Hoobin c5211882f7 MDL-53599 session: Added a session_class_handler for Redis.
It is now possible to set up Redis as a session handler for Moodle.
Ensure that the phpredis extension is enabled and working on your sever.

Please place the following lines in config.php
$CFG->session_handler_class = '\core\session\redis';
$CFG->session_redis_save_path = 'tcp://127.0.0.1';

To determine if it has been set correctly, navigate to
$CFG->wwwroot/admin/phpinfo.php and find following the strings in the
session block,

session.save_handler = redis
session.save_path = tcp://127.0.0.1
2016-04-18 16:28:45 +10:00
Serge Gauthier 7dbff38a7c MDL-53527 tool_lp: Improving the help popup of scales 2016-04-18 14:21:39 +08:00
David Monllao fbc6c48736 Merge branch 'MDL-53841-master' of http://github.com/damyon/moodle 2016-04-18 14:03:32 +08:00
Frederic Massart eeaef357f2 MDL-53451 tool_lp: Fix tests fails because block_lp already on dashboard 2016-04-18 13:49:16 +08:00
Frederic Massart bfeb546f44 MDL-53451 competency: Fix tests failing due to context changes 2016-04-18 11:34:46 +08:00
Frederic Massart de8cdb6854 MDL-53828 competency: Fetch right competency when viewing completed plan 2016-04-18 11:06:47 +08:00
Serge Gauthier 7833290b15 MDL-53705 tool_lp: Average proficiency rate on a template is incorrect 2016-04-18 11:06:47 +08:00
Issam Taboubi e55151b218 MDL-53817 report_competency: Jump problem in user competency breakdown 2016-04-18 11:06:47 +08:00
Issam Taboubi aa6f127ce8 MDL-53818 tool_lp: Error competency summary associated to an evidence 2016-04-18 11:06:47 +08:00
Frederic Massart 1e99f31e33 MDL-53654 competency: Provide a way to delete evidence 2016-04-18 11:06:47 +08:00
Frederic Massart 5aa9ded503 MDL-53773 tool_lp: Missing validate_context call in external function
Just sneaking that in as I noticed it while fixing RTL.
2016-04-18 11:06:01 +08:00
Frederic Massart dee226a94d MDL-53773 competency: RTL styles for report_competency and tool_lp
Notice that some styles are made specific to the plugins because
I don't want to take the risk of introducing regressions by
patching core so broadly for RTL support.
2016-04-18 11:06:01 +08:00
Frederic Massart 56537316f6 MDL-53719 competency: Delete content upon course and cm delete/reset 2016-04-18 11:06:01 +08:00
Issam Taboubi e0c2d7c02e MDL-53720 tool_lp: Cannot grade competency in breakdown report 2016-04-18 11:06:01 +08:00
Frederic Massart b14311b2cd MDL-53760 competency: Set block_lp as default dashboard block 2016-04-18 11:06:01 +08:00
Frederic Massart a8a10b1c46 MDL-53787 block_lp: Make sure that competencies are enabled 2016-04-18 11:06:01 +08:00
Barbara Ramiro 300d30e714 MDL-53528 core: New edit inline icon 2016-04-18 11:06:01 +08:00
Issam Taboubi 5f887f4b96 MDL-53528 tool_lp: Allow user to choose parent when creating competency 2016-04-18 11:06:01 +08:00
Frederic Massart 91e5464282 MDL-53700 competency: Making CiBoT happier 2016-04-18 11:06:00 +08:00
Frederic Massart 8d0c57ed08 MDL-53700 competency: Migrating scale_used hook to core 2016-04-18 11:06:00 +08:00
Frederic Massart 899f46d6de MDL-53700 competency: Use URL resolver in events 2016-04-18 11:06:00 +08:00
Frederic Massart 07fc0ec380 MDL-53700 competency: Implementing a URL resolver 2016-04-18 11:06:00 +08:00
Frederic Massart d8370908b5 MDL-53700 competency: Update standard plugins list 2016-04-18 11:06:00 +08:00
Frederic Massart a6a722d4ba MDL-53700 competency: Migrating other competency related plugins 2016-04-18 11:06:00 +08:00
Frederic Massart ca94bcdbdb MDL-53700 competency: Splitting competency rules logic and UI 2016-04-18 11:06:00 +08:00
Frederic Massart e6dc03d7c4 MDL-53700 competency: Migrating language strings 2016-04-18 11:06:00 +08:00
Frederic Massart 4aa6acb22a MDL-53700 competency: Migrating comment related APIs to core 2016-04-18 11:05:59 +08:00
Frederic Massart 7160fb19d7 MDL-53700 competency: Migrating file serving to core 2016-04-18 11:05:59 +08:00
Frederic Massart c88b6c05ca MDL-53700 competency: Migrating observers to core 2016-04-18 11:05:59 +08:00
Frederic Massart 8417c3a620 MDL-53700 competency: Migrating backup logic to core 2016-04-18 11:05:59 +08:00
Frederic Massart 6be1373ee0 MDL-53700 competency: Migrating settings to core 2016-04-18 11:05:59 +08:00
Frederic Massart 5a1a685c28 MDL-53700 competency: Migrating events to core
Leaving comments behind for now as it's a tricky one.
2016-04-18 11:05:59 +08:00
Frederic Massart 81de839f37 MDL-53700 competency: Migrating external functions to core 2016-04-18 11:05:59 +08:00
Frederic Massart e0b9ba28a4 MDL-53700 competency: Migrating tests to core 2016-04-18 11:05:59 +08:00
Frederic Massart 922634d3e5 MDL-53700 competency: Migrating data generator to core 2016-04-18 11:05:59 +08:00
Frederic Massart 767f66c028 MDL-53700 competency: Migrating the competency API to core 2016-04-18 11:05:59 +08:00
Frederic Massart 72018c0a1c MDL-53700 competency: Migrating exporters to core 2016-04-18 11:05:59 +08:00
Frederic Massart 67bc0eaf38 MDL-53700 competency: Migrate main classes to core 2016-04-18 11:05:59 +08:00
Frederic Massart 36a43db821 MDL-53700 competency: Migrating message definitions to core 2016-04-18 11:05:58 +08:00
Frederic Massart 42a7899f0d MDL-53700 competency: Migrate tasks to core 2016-04-18 11:05:58 +08:00
Frederic Massart a4e659c788 MDL-53700 competency: Migrate database tables to core 2016-04-18 11:05:58 +08:00
Frederic Massart b90e2205b4 MDL-53700 competency: Migrate capabilities to core 2016-04-18 10:59:01 +08:00
Frederic Massart 1f7699533c MDL-53645 tool_lp: Address FIXME comments 2016-04-18 10:59:01 +08:00
Dan Poltawski d846a535a6 MDL-53645 tool_lp: Various trivial bugs identified during review 2016-04-18 10:59:01 +08:00
Jun Pataleta 4a4bda6d2d MDL-53567 tool_lp: Close menubar on click
This patch enables the closing of the menubar when a menu item is
clicked or when any other element outside the menubar is clicked.
2016-04-18 10:59:01 +08:00
Serge Gauthier d57c079a6c MDL-53551 tool_lp: Can't have a read-only view of competency frameworks 2016-04-18 10:59:01 +08:00
Damyon Wiese cd378576e7 MDL-53374 tool_lp: Add progressbar to learning plans 2016-04-18 10:59:01 +08:00
Damyon Wiese 96f4d771bf MDL-52979 tool_lp: Fix user_competency_course summaries
Only show ratings from the course on course competency pages.
2016-04-18 10:59:01 +08:00
Frederic Massart 3baf704ddb MDL-53655 tool_lp: Allow closures in default values of persistents 2016-04-18 10:59:01 +08:00
Damyon Wiese f1979b60a1 MDL-52743 tool_lp: Course competency statistics
Note - the statistics you see depends on whether you can recieve competency
ratings in the course. So students see their own progress as a %. Graders
see the least proficient competencies for the course.
2016-04-18 10:59:01 +08:00
Issam Taboubi 5548789716 MDL-53608 tool_lp: Replace deprecated method notify_message 2016-04-18 10:59:01 +08:00
Issam Taboubi 9af8f0e2ba MDL-53657 tool_lp: Dialog box opens twice in the path 2016-04-18 10:59:01 +08:00
Issam Taboubi 2f411bca83 MDL-53658 tool_lp: Stacking of messages in competency breakdown report 2016-04-18 10:59:01 +08:00
Frederic Massart 3027fe2016 MDL-53477 tool_lp: Register coursecompetencymanage as module capability 2016-04-18 10:59:00 +08:00
Frederic Massart 2f63310d9d MDL-53626 tool_lp: Change mentions of 'context' to 'category' 2016-04-18 10:59:00 +08:00
Frederic Massart 4e89144ca7 MDL-53471 tool_lp: Hooking in to report when scale is being used 2016-04-18 10:59:00 +08:00
Serge Gauthier dff98d3316 MDL-53590 tool_lp: Error when teacher view student course competencies 2016-04-18 10:59:00 +08:00
Issam Taboubi c11d30e2a8 MDL-53630 tool_lp: Rename Learning plans to Learning plan templates
* In site administration
* In category administration
2016-04-18 10:59:00 +08:00
Frederic Massart cf4c3eaac5 MDL-53542 tool_lp: Fixing missed upgrade step 2016-04-18 10:59:00 +08:00
Damyon Wiese eb0d340c52 MDL-53452 tool_lp: Use an exporter for course_competency_settings 2016-04-18 10:59:00 +08:00
Damyon Wiese c01141d1a3 MDL-53452 tool_lp: Rename some persistent methods for consistency 2016-04-18 10:59:00 +08:00
Damyon Wiese 8c46097536 MDL-53452 tool_lp: Switch to non-strict equals for db values
Also phpdoc change.
2016-04-18 10:59:00 +08:00
Damyon Wiese 45bf83cf77 MDL-53452 tool_lp: Change can_update to can_update_course
This is more consistent with other persistents.
2016-04-18 10:59:00 +08:00
Damyon Wiese 9919b4af62 MDL-53452 tool_lp: Rename get_course_settings to get_by_courseid
In the course_competency_settings persistent.
2016-04-18 10:59:00 +08:00
Damyon Wiese 9785dd8174 MDL-53452 tool_lp: Change update_course_competency_settings param to stdClass
Allows for future settings to be added without changing the function signature.
2016-04-18 10:59:00 +08:00
Damyon Wiese 35cf63d221 MDL-53452 tool_lp: Make course comp settings table have a unique foreign key 2016-04-18 10:59:00 +08:00
Damyon Wiese 14b60a440c MDL-53452 tool_lp: Update after conflicts. Use xxxview for cap string 2016-04-18 10:59:00 +08:00
Damyon Wiese c2f55d2931 MDL-53452 competencies: Backup/restore new course setting.
Also add push ratings info to competency breakdown report.
Also - improved lang strings and set colors of notices.
2016-04-18 10:58:59 +08:00
Damyon Wiese 644ff55b3a MDL-53452 competencies: Add unit test for course competency settings 2016-04-18 10:58:59 +08:00
Damyon Wiese fdd85edef9 MDL-53452 competencies: Update unit tests now we have removed suggest feature. 2016-04-18 10:58:59 +08:00
Damyon Wiese d22a1d3bbf MDL-53452 competencies: Update the logic for pushratingstouserplans course setting.
Either only set the rating in the course, or set it in the course and push it to the user_competency,
depending on the course settings.
2016-04-18 10:58:59 +08:00
Damyon Wiese 5cb320c10b MDL-53452 competencies: Remove suggestion feature (except tests). 2016-04-18 10:58:59 +08:00
Damyon Wiese 7ba074873c MDL-53452 competencies: Add course and admin setting to push competency ratings outside a course 2016-04-18 10:58:59 +08:00
Serge Gauthier 65abd20d8c MDL_53523 tool_lp: Mark fields 'scale/scaleconfiguration' as required 2016-04-18 10:58:59 +08:00
Jun Pataleta c48ab9c124 MDL-53474 tool_lp: Improve competency page navigation 2016-04-18 10:58:59 +08:00
Frederic Massart def7cd6032 MDL-53628 tool_lp: Pick competencies from context and above in templates 2016-04-18 10:58:59 +08:00
Serge Gauthier 44e8cba48e MDL-53483 tool_lp: Normalise the names of capabilities 2016-04-18 10:58:59 +08:00
Issam Taboubi a4f1b030f2 MDL-53472 tool_lp: Improve user navigation flow in competency frameworks 2016-04-18 10:58:59 +08:00
Issam Taboubi 66df4d2fad MDL-53531 tool_lp: Forms section should not be collapsible at times 2016-04-18 10:58:59 +08:00
Frederic Massart 6f0c979f6e MDL-53550 tool_lp: Relax capability checks on cohorts
Cohorts seem to rely on the calling code doing the right capability
checks. In this case I applied the simple logic of checking if the
cohort is visible, and if it is not then checking the capability.

Methods using cohorts should apply relevant capability checks.
2016-04-18 10:58:59 +08:00
Frederic Massart 6391a51648 MDL-53473 tool_lp: Plan default return URL is the plan URL 2016-04-18 10:58:58 +08:00
Frederic Massart 8ae09bb09e MDL-53473 tool_lp: User evidence default return URL is the evidence 2016-04-18 10:58:58 +08:00
Frederic Massart f864aa4c4a MDL-53473 tool_lp: Improvement to navigation flow of templates 2016-04-18 10:58:58 +08:00
Jun Pataleta 85a719e496 MDL-53540 tool_lp_amd: Use currentTarget for comp dialog click handler 2016-04-18 10:58:58 +08:00
Frederic Massart de3b9193fa MDL-53529 tool_lp: Consistent 'add' buttons for templates and courses 2016-04-18 10:58:58 +08:00
Frederic Massart 10bf349e70 MDL-53568 tool_lp: Fix getting proficiency of grade not in scaleconfig 2016-04-18 10:58:58 +08:00
Issam Taboubi 8c9cb5ec05 MDL-52919 tool_lp: Show the path when listing competencies 2016-04-18 10:58:58 +08:00
Serge Gauthier d11d4c1442 MDL-53526 tool_lp: Add consistency to 'Add ...' buttons 2016-04-18 10:58:58 +08:00
Jun Pataleta f9090dff7c MDL-53539 tool_lp: Fix percentage displays for template statistics 2016-04-18 10:58:58 +08:00
Frederic Massart fe0ea87906 MDL-53437 tool_lp: Hide competencies in CM edit when user cannot manage 2016-04-18 10:58:58 +08:00
Serge Gauthier 286a609ff0 MDL-53476 tool_lp: All forms should at least have one fieldset 2016-04-18 10:58:58 +08:00
Frederic Massart 1f58618863 MDL-53186 tool_lp: Removing push for review when adding competencies 2016-04-18 10:58:58 +08:00
Serge Gauthier 71cb304ad8 MDL-53186 tool_lp: Send competencies in review from evidence interface 2016-04-18 10:58:58 +08:00
Jun Pataleta e821c94799 MDL-53475 tool_lp: Redirect and show notification in destination
After creating a plan/competency/user evidence/plan template,
redirect the user to the plan/user evidence/plan template page.
After updating a plan/competency/user evidence/plan template,
redirect the user back to the previous page and display the notification
message instead of displaying a notification message and a continue button.
2016-04-18 10:58:58 +08:00
Serge Gauthier 8cceee8a1d MDL-53524 tool_lp: Rename 'related competencies' to 'cross-referenced competencies' 2016-04-18 10:58:57 +08:00
Serge Gauthier 95bc566d52 MDL-53522 tool_lp: Add parenthesis around ID number in framework list 2016-04-18 10:58:57 +08:00
Frederic Massart 80b2fa8073 MDL-53453 cbe: Invalid usage of empty() 2016-04-18 10:58:57 +08:00
Frederic Massart 3b167714c5 MDL-53453 cbe: False negative when comment on a user competency 2016-04-18 10:58:57 +08:00
Frederic Massart fd7e6bfd4a MDL-53453 cbe: False negative on MySQL due to random ordering 2016-04-18 10:58:57 +08:00
Frederic Massart 96c2b8477f MDL-53453 cbe: PHP Docs and coding style adjustments 2016-04-18 10:58:57 +08:00
Issam Taboubi 946bc0f749 MDL-52980 tool_lp: Double check the name of the capability 2016-04-18 10:58:57 +08:00
Issam Taboubi 49792e9c3d MDL-53376 tool_lp: Redirect after creating a new framework 2016-04-18 10:58:57 +08:00
Serge Gauthier c579c7bb70 MDL-53436 tool_lp: Dashboard Learning plan block misses link View more 2016-04-18 10:58:57 +08:00
Issam Taboubi 12b84c9948 MDL-53312 tool_lp: does not look selected when relocating the competency 2016-04-18 10:58:57 +08:00
Serge Gauthier 66d488ce5b MDL-53163 tool_lp: Behat tests for plans workflow 2016-04-18 10:58:57 +08:00
Damyon Wiese 09c816162c MDL-52554 tool_lp: Remove templateview capability from authenticated users 2016-04-18 10:58:57 +08:00
Frederic Massart 057c14032b MDL-51024 tool_lpmigrate: Tool to migrate between frameworks 2016-04-18 10:58:57 +08:00
Jun Pataleta e43f6aa756 MDL-53438 tool_lp: Set client_id parameter for comment object 2016-04-18 10:58:56 +08:00
Frederic Massart 6e20a8de26 MDL-53380 tool_lp: Framework auto complete element 2016-04-18 10:58:56 +08:00
Damyon Wiese 60a84422cf MDL-53218 tool_lp: Fix php5.4 syntax bug (wrapping function call with empty) 2016-04-18 10:58:56 +08:00
Damyon Wiese 65c6d4613f MDL-53218 tool_lp: Fix unit tests (directly use persistent class to bypass api permissions)
There are 2 failing unit tests fixed here. In both cases - the correct behaviour is to by-pass
a permission check because:
case A) we are loading all the existing records in the DB - so it
        needs to be all the DB records, not just the ones we have permission to see.
case B) we already did the correct permission check - but because we have api -> api communication
        it is running an additional (wrong) permission check.
2016-04-18 10:58:56 +08:00
Damyon Wiese 3edcd295eb MDL-51042 tool_lp: Add useful statistics to the template competencies page. 2016-04-18 10:58:56 +08:00
Issam Taboubi b986597039 MDL-53296_master tool_lp: Add unique index in course_competency 2016-04-18 10:58:56 +08:00
Issam Taboubi d61035968d MDL-53328 tool_lp: Error when adding a competency to a module 2016-04-18 10:58:56 +08:00
Jun Pataleta ad197510ff MDL-53347 tool_lp: Fix JS error when deleting comment in plan 2016-04-18 10:58:56 +08:00
Frederic Massart 5bbb99f9b7 MDL-53421 tool_lp: Allow multiple instances of scale config on page 2016-04-18 10:58:56 +08:00
Frederic Massart a1a6e7b476 MDL-53420 tool_lp: Classes of form\persistent can filter persistent data 2016-04-18 10:58:56 +08:00
Issam Taboubi 5416f580a3 MDL-53396 tool_lp: Behat failures due to change in navigation structure 2016-04-18 10:58:56 +08:00
Issam Taboubi 078d4f9c27 MDL-53187 tool_lp: Create events for user competency workflow 2016-04-18 10:58:56 +08:00
Serge Gauthier 75cbdd979b MDL-53194 tool_lp: Behat tests linking evidence and competencies 2016-04-18 10:58:56 +08:00
Issam Taboubi 3ed982e143 MDL-53084 tool_lp: Improve the view of user competency in a plan
* Remove the plan block
* Remove the plan link
2016-04-18 10:58:56 +08:00
Jun Pataleta 9fbb3e6607 MDL-53188 tool_lp: Add evidence_created event 2016-04-18 10:58:56 +08:00
Issam Taboubi e08203664a MDL-53084 tool_lp: Improve the view of user competency in a plan 2016-04-18 10:58:55 +08:00
Frederic Massart d9c1d95bd1 MDL-53182 tool_lp: Fix false negative in events test 2016-04-18 10:58:55 +08:00
Issam Taboubi 25deee1704 MDL-53182 tool_lp: Create events for plan workflow 2016-04-18 10:58:55 +08:00
Frederic Massart 3e0b090c7b MDL-53212 tool_lp: Only store the required information in scaleconfig 2016-04-18 10:58:55 +08:00
Jun Pataleta 41460929f2 MDL-53211 tool_lp: Add user_competency_course model
* Added user_competency_course model.
* Populate user_competency_course on suggest in course/module context.
2016-04-18 10:58:55 +08:00
Frederic Massart 338386aa76 MDL-53185 tool_lp: Admin setting to disable competencies 2016-04-18 10:58:55 +08:00
Frederic Massart a8bb12db6c MDL-51037 tool_cohortroles: Actions column not sortable and at far right 2016-04-18 10:58:55 +08:00
Damyon Wiese 08f4278ce0 MDL-51037 cbe: New admin tool "Cohort roles" 2016-04-18 10:58:55 +08:00
Jun Pataleta 55ac216a66 MDL-52747 tool_lp: Show courses linked to competency in plan
Show courses that are linked to the given competency for a  given
 learning plan on a modal dialogue.
2016-04-18 10:58:55 +08:00
Frederic Massart c5e89aa117 MDL-53313 tool_lp: Add data generators for course module competencies 2016-04-18 10:58:55 +08:00
Frederic Massart d9a0d1fc4a MDL-53295 tool_lp: Make index cmid/compid on module_competency unique 2016-04-18 10:58:55 +08:00
Issam Taboubi 640201536a MDL-53189 tool_lp: Create event for user competency viewed 2016-04-18 10:58:55 +08:00
Frederic Massart 915725250a MDL-53193 tool_lp: Singularise 'userevidence' term 2016-04-18 10:58:55 +08:00
Serge Gauthier 893f48654c MDL-53193 tool_lp: Add behat tests for CRUD of evidence of prior learning 2016-04-18 10:58:54 +08:00
Frederic Massart 0fe5aac733 MDL-53282 tool_lp: Extend list_frameworks to support string search 2016-04-18 10:58:54 +08:00
Issam Taboubi 1fa1336229 MDL-53070 tool_lp: Fix missing capabilities
* Non-editing teacher is missing view usercompetency capability.
* Teacher is missing the suggest grade capability.
2016-04-18 10:58:54 +08:00
Serge Gauthier e375c6524d MDL-53196 tool_lp: Add relevant record snapshot to existing events 2016-04-18 10:58:54 +08:00
Issam Taboubi c7f2b74ed3 MDL-53162 tool_lp: Behat tests for plans CRUD operations 2016-04-18 10:58:54 +08:00
Frederic Massart a8f1af5e6f MDL-53251 tool_lp: Apply PHP7 fixes 2016-04-18 10:58:54 +08:00
Serge Gauthier 8e3eb9f865 MDL-53160 tool_lp: Create C(R)UD events for evidence of prior learning 2016-04-18 10:58:54 +08:00
Frederic Massart 9db9cdadb2 MDL-52754 tool_lp: Use ScaleValues AMD module in ScaleConfig 2016-04-18 10:58:54 +08:00
Serge Gauthier c7484fcc35 MDL-52754 tool_lp: Dropdown list of scales with single quotes in values 2016-04-18 10:58:54 +08:00
Issam Taboubi d54c4f8b73 MDL-53195 tool_lp: Undefined variable: coursecompetency 2016-04-18 10:58:54 +08:00
Frederic Massart 36ad7a407d MDL-53138 tool_lp: Prevent false positive in plan events tests 2016-04-18 10:58:54 +08:00
Issam Taboubi 4ed524b7a7 MDL-53138 tool_lp: Create C(R)UD + viewed events for plans 2016-04-18 10:58:54 +08:00
Serge Gauthier 74c9942f5c MDL-53051 tool_lp: Index cmid+competencyid to tool_lp_module_competency 2016-04-18 10:58:54 +08:00
Issam Taboubi d32d64bcbc MDL-52959 tool_lp: Create C(R)UD events for competencies 2016-04-18 10:58:54 +08:00
Serge Gauthier 7deba3c0a1 MDL-52860 tool_lp: Add confirmation dialogue when removing a competency 2016-04-18 10:58:54 +08:00
Issam Taboubi e1b93e42d8 MDL-52861 tool_lp: The grading dialogue should show who is being graded 2016-04-18 10:58:53 +08:00
Issam Taboubi af3fa58f3c MDL-52755 tool_lp: Preserve competencies sortorder when plan completed 2016-04-18 10:58:53 +08:00
Issam Taboubi 32fa431e0f MDL-52775 tool_lp: get_course_competency and list_course_competencies 2016-04-18 10:58:53 +08:00
Issam Taboubi c3de87f672 MDL-53067 tool_lp: Incorrect 'Linked courses:' in competency edit menu 2016-04-18 10:58:53 +08:00
Serge Gauthier 1275779548 MDL-52757 tool_lp: Problem to select user when rating course competency 2016-04-18 10:58:53 +08:00
Serge Gauthier b200c8c88c MDL-52745 tool_lp: For competency show evidences added before plan was completed. 2016-04-18 10:58:53 +08:00
Damyon Wiese f194761408 MDL-52923 cbe: Improve the course competencies template.
Just padding fixes - and don't show the grade if it is not set.
2016-04-18 10:58:53 +08:00
Frederic Massart f45d0b372d MDL-52744 tool_lp: Testing permission checks when grading in course 2016-04-18 10:58:53 +08:00
Frederic Massart eadd2d501e MDL-52744 tool_lp: Check is user is enrolled and gradable when rating 2016-04-18 10:58:53 +08:00
Damyon Wiese 24fc4e30b6 MDL-53062 cbe: Fix errors in course_module_summary_exporter
We should take the cm_info as required related data so we can pick the
fields we want to export from it.
2016-04-18 10:58:53 +08:00
Damyon Wiese e3ceb79a3f MDL-52933 cbe: Increase padding on user comp in course page 2016-04-18 10:58:53 +08:00
Frederic Massart d17cbbfbad MDL-52691 tool_lp: Add note support to competency rating 2016-04-18 10:58:53 +08:00
Damyon Wiese f446b2e133 MDL-52534 cbe: Fixes from peer review (linking competencies to activities) 2016-04-18 10:58:53 +08:00
Damyon Wiese db65073748 MDL-52534 tool_lp: Competencies can be attached to activities 2016-04-18 10:58:53 +08:00
Damyon Wiese 8995c2702f MDL-52534 course: Course module form can be extended by plugins via callbacks.
3 new plugin callbacks are available to extend any course module form.

xx_coursemodule_standard_elements()
xx_coursemodule_validation()
xx_coursemodule_edit_post_actions()

This allows you to add elements to the form, extend the validation
and process the extra information once the module has been created/updated.
2016-04-18 10:58:52 +08:00
Serge Gauthier 9331352cc1 MDL-52561 tool:lp Cohort sync task recreates plan deleted manually 2016-04-18 10:58:52 +08:00
Issam Taboubi 3e6a8e1694 MDL-52960 tool_lp: Created event for competency viewed 2016-04-18 10:58:52 +08:00
Damyon Wiese a800711909 MDL-52916 cbe: Fix group handling for user_competency_in_course page, and competency breakdown report 2016-04-18 10:58:52 +08:00
Damyon Wiese 21e0dd61e5 MDL-52916 cbe: Refactor competency breakdown report
Redesign this to fit when there are unlimited competencies / users.
2016-04-18 10:58:52 +08:00
Frederic Massart 47cddb9c1f MDL-52803 tool_lp: Save real estate by conditionally displaying comments
The comment area are exported when the user can read the comments.
The comment area is displayed when:
- The user can post, or
- The user can read, and there is something to read.
2016-04-18 10:58:52 +08:00
Frederic Massart ad6d3004f6 MDL-52749 tool_lp: Adding a user competency page 2016-04-18 10:58:52 +08:00
Frederic Massart d58eabed9a MDL-50439 block_lp: Block to summarise important learning plans objects 2016-04-18 10:58:52 +08:00
Frederic Massart 3b11d6386d MDL-50439 tool_lp: Remove support for user competency review from course 2016-04-18 10:58:52 +08:00
Frederic Massart 7bb5ccbee6 MDL-50439 tool_lp: APIs to fetch plans and competencies to review 2016-04-18 10:58:52 +08:00
Frederic Massart 17e1abb5b3 MDL-50439 tool_lp: Select multiple persistents from query 2016-04-18 10:58:52 +08:00
Frederic Massart 97244310c2 MDL-52827 tool_lp: Consider role overrides when searching users 2016-04-18 10:58:52 +08:00
Damyon Wiese 940235b762 MDL-52827 tool_lp: Fix SQL for filtering users by permission on user context 2016-04-18 10:58:52 +08:00
Frederic Massart 1ca0d7c870 MDL-52741 tool_lp: Display taxonomy term with competency summary 2016-04-18 10:58:51 +08:00
Issam Taboubi 90c7bdaf27 MDL-51130 tool_lp: Deleting frameworks should delete associated data 2016-04-18 10:58:51 +08:00
Serge Gauthier 85e45ff88a MDL-52711 tool_lp: Create C(R)UD events for templates 2016-04-18 10:58:51 +08:00
Serge Gauthier 305eaf3845 MDL-52712 tool_lp: Create event for template viewed 2016-04-18 10:58:51 +08:00
Frederic Massart b74bdcc33d MDL-52985 tool_lp: Do not display due date when unset 2016-04-18 10:58:51 +08:00
Issam Taboubi 9a325eda06 MDL-51513 tool_lp: Properly delete a competency 2016-04-18 10:58:51 +08:00
Issam Taboubi f73a29c181 MDL-52710 tool_lp: Create event for framework viewed 2016-04-18 10:58:51 +08:00
Issam Taboubi 20e7509522 MDL-52847 tool_lp: Error when duplicating empty framework 2016-04-18 10:58:51 +08:00
Serge Gauthier 8fabc73882 MDL-52675 tool_lp: When deleting template delete or unlink derived plans 2016-04-18 10:58:51 +08:00
Damyon Wiese 3248051015 MDL-52758 cbe: Improve formatting of course competencies page.
Make the title of the competency a (real) link to the course competency page.
2016-04-18 10:58:51 +08:00
Damyon Wiese 48f2e032d1 MDL-52909 cbe: Fix padding on manage competencies page. 2016-04-18 10:58:51 +08:00
Damyon Wiese dbab904c20 MDL-52910 cbe: Fix competency picker dialogue scrolling issues.
The competency tree expands and collapses, which causes issues
for the dialogue which is supposed to be centered and non-scrollable.

We need to introduce a scrollable region in the dialogue and fix the height
- this may be slightly annoying for tablet users but is not the worst thing
in the world.
2016-04-18 10:58:51 +08:00
Damyon Wiese f5acab7442 MDL-52922 cbe: Fix some permissions for students in nav tree.
Students should not see the list of templates in the site admin tree.
2016-04-18 10:58:51 +08:00
Damyon Wiese 839669479d MDL-52779 cbe: Fix recursive loops with tree javascript
It was possible to crash the browser with some looping javascript when pressing left and right
arrow keys on the top of the tree, or the very bottom of the tree.
2016-04-18 10:58:51 +08:00
Serge Gauthier 104fa69248 MDL-52906 tool_lp: Problem to unlink a plan from its template 2016-04-18 10:58:50 +08:00
Issam Taboubi a95f553ce1 MDL-52714 tool_lp: Behat tests for templates CRUD operations 2016-04-18 10:58:50 +08:00
Issam Taboubi 0b7c334c2b MDL-52713 tool_lp: Add behat tests for CRUD operations on frameworks 2016-04-18 10:58:50 +08:00
Serge Gauthier a3acafa0ca MDL-52709 tool_lp: Create C(R)UD events for competency frameworks 2016-04-18 10:58:50 +08:00
Issam Taboubi 5a4ee001cb MDL-52676 tool_lp: When deleting a template delete template_cohorts 2016-04-18 10:58:50 +08:00
Frederic Massart 3c230247ce MDL-51035 tool_lp: Plans can be reviewed and commented on 2016-04-18 10:58:50 +08:00
Frederic Massart 131540850a MDL-51036 report_competency: Invalid reference to scale when null 2016-04-18 10:58:50 +08:00
Frederic Massart a4383fe033 MDL-51036 tool_lp: Changed the permissions to grade competencies 2016-04-18 10:58:50 +08:00
Frederic Massart 943989c22b MDL-51036 tool_lp: Granular permissions on user competencies 2016-04-18 10:58:50 +08:00
Frederic Massart 182f609213 MDL-51036 tool_lp: Addressing comments left during peer review 2016-04-18 10:58:50 +08:00
Frederic Massart 572721ac1d MDL-51036 tool_lp: There may not always be an action user on evidence 2016-04-18 10:58:50 +08:00
Frederic Massart 6cc8480a69 MDL-51036 tool_lp: Sensible messages sent after commenting on competency 2016-04-18 10:58:50 +08:00
Frederic Massart 5d2758bcab MDL-51036 tool_lp: Method to find plans from user and competency 2016-04-18 10:58:50 +08:00
Frederic Massart b519577ebd MDL-51036 tool_lp: Allow foreign callbacks in Menubar 2016-04-18 10:58:50 +08:00
Frederic Massart c008e92d22 MDL-51036 tool_lp: Implement a basic review process for competencies 2016-04-18 10:58:49 +08:00
Frederic Massart 23381ab803 MDL-51036 tool_lp: Making comments work inside templates 2016-04-18 10:58:49 +08:00
Serge Gauthier 0d1a2e71f0 MDL-52463 tool_lp: Templates: Can not sync cohorts at category level 2016-04-18 10:58:49 +08:00
Frederic Massart f743bc1071 MDL-52677 tool_lp: Prevent false positive in search_users test 2016-04-18 10:58:49 +08:00
Frederic Massart 9031be44b2 MDL-52696 tool_lp: Prevents users from creating due plans from template 2016-04-18 10:58:49 +08:00
Frederic Massart 5fb76f227f MDL-52690 tool_lp: Only create a few plans when add template cohorts 2016-04-18 10:58:49 +08:00
Frederic Massart 68600f80e7 MDL-52690 tool_lp: Cohorts ID numbers are plain text 2016-04-18 10:58:49 +08:00
Frederic Massart c78ebeac1b MDL-52485 tool_lp: Do not validate unchanged due dates in plans 2016-04-18 10:58:49 +08:00
Frederic Massart a967d2aa8c MDL-52485 tool_lp: Template due date can be changed at will
The only rule is that it must be set in the future (though we permit
due dates time minutes old), or it must be unset.
2016-04-18 10:58:49 +08:00
Issam Taboubi 3c5811644c MDL-52485 tool_lp: Validate the duedate of a plan 2016-04-18 10:58:49 +08:00
Frederic Massart d323d6d355 MDL-52454 tool_lp: Missing PARAM_RAW in exporter tests 2016-04-18 10:58:49 +08:00
Serge Gauthier e54f8c4d2d MDL-52454 tool_lp: Fix all PARAM_TEXT on persistent, and exporters 2016-04-18 10:58:49 +08:00
Frederic Massart 357d38628c MDL-52562 tool_lp: Deleting a plan removes related data 2016-04-18 10:58:49 +08:00
Frederic Massart dc7f49ce2f MDL-52579 tool_lp: Missing string for cap. coursecompetencygradable 2016-04-18 10:58:49 +08:00
Frederic Massart 4b7784ee49 MDL-52477 tool_lp: Minor adjustments when duplicating competency rules 2016-04-18 10:58:48 +08:00
Issam Taboubi 4c4a8d4177 MDL-52477 tool_lp: Error when duplicating a framework with rules 2016-04-18 10:58:48 +08:00
Serge Gauthier a8902ee2d7 MDL-52432 tool_lp: Add ability to unlink a plan from its template 2016-04-18 10:58:48 +08:00
Issam Taboubi 7a9f14c396 MDL-52531 tool_lp: The complete_plan task shouldn't complete draft plans 2016-04-18 10:58:48 +08:00
Serge Gauthier 17d5cc9be2 MDL-52528 tool_lp: Weird behaviour if deleting competency in user plan 2016-04-18 10:58:48 +08:00
Frederic Massart 20c2fe3e98 MDL-52106 tool_lp: Remove rules when manipulating competencies 2016-04-18 10:58:48 +08:00
Frederic Massart 29530d6356 MDL-52426 tool_lp: Avoid missing or empty table cell in templates 2016-04-18 10:58:48 +08:00
Serge Gauthier 935e9e90b6 MDL-52426 tool_lp: Show template competencies page with read permission 2016-04-18 10:58:48 +08:00
Frederic Massart 92d4946e19 MDL-52424 tool_lp: Prevent missing table cell when viewing plans page 2016-04-18 10:58:48 +08:00
Issam Taboubi 19456fec66 MDL-52424 tool_lp: Plans page should show the template based on 2016-04-18 10:58:48 +08:00
Damyon Wiese 65a67e238d MDL-51040 cbe: Fixes from peer review
No logic changes here - only small refactorings based on feedback from
peer review.
2016-04-18 10:58:48 +08:00
Damyon Wiese 9f422dc2e9 MDL-51040 cbe: New user_competency_in_course page 2016-04-18 10:58:48 +08:00
Damyon Wiese 476a98d0fb MDL-51040 cbe: Add new renderables to the renderer.
Used on the user_competency_in_course page.
2016-04-18 10:58:48 +08:00
Damyon Wiese 571c3c4324 MDL-51040 cbe: Add properties to course_competencies_page renderable
The extra properties are used to show the current users rating for
each competency (if they are gradable).
2016-04-18 10:58:48 +08:00
Damyon Wiese 18c17cac61 MDL-51040 cbe: Add profileurl to user_summary_exporter
It is useful to make user summaries link to their profile.
2016-04-18 10:58:47 +08:00
Damyon Wiese 949cda2c10 MDL-51040 cbe: Fix invalid structure returned from webservice
This exporter was exporting a user_competency_plan in a user_competency
structure which is invalid because status is missing.
2016-04-18 10:58:47 +08:00
Damyon Wiese e1964c9094 MDL-51040 cbe: Functions supporting user competency in course
New functions data_for_user_competency_summary_in_course and
grade_user_competency_in_course.
2016-04-18 10:58:47 +08:00
Damyon Wiese 02f9db888c MDL-51040 cbe: Competency API changes
Modify the list_user_competencies_in_course function to create the relations
if they do not exist.
Add new api function to grade a competency in a course.
Fix the permissions check for listing related competencies.
2016-04-18 10:58:47 +08:00
Damyon Wiese e07c2ef62a MDL-51040 cbe: Improve the competency breakdown report
This report now opens the user_competency_summary_in_couse in a popup
when clicking on any cell in the report. The report is refreshed when the popup
is closed.
2016-04-18 10:58:47 +08:00
Damyon Wiese 3fb067a203 MDL-51040 cbe: Allow competency rating in course or plan
Modify the inline competency rating module to handle rating competencies
in a course or in a plan.
2016-04-18 10:58:47 +08:00
Damyon Wiese 06475034f2 MDL-51040 cbe: Add standard options to dialog
Add a new "wider" width option (800px wide) and an afterHide callback
2016-04-18 10:58:47 +08:00
Damyon Wiese bf780fbfe0 MDL-51043 cbe: Competency breakdown report 2016-04-18 10:58:47 +08:00
Damyon Wiese 0845a3a09a MDL-51648 cbe: Refactor the user_competency_summary exporter
Split it into a core exporter, and an extended one that adds information about the plan.
Also
* Remove userid from grade_competency_in_plan function (redundant)
* Improve the signature of list_evidence so it can handle completed plans (later)
* Rename read_user_competency_summary to data_for_user_competency_summary_in_plan
* Handle completed plans (list user_competency_plan as well as user_competency)
* Remove user_can_see_details_cap handling - if you can see the users plan you can see the user
* Pass final scaleconfiguration in the competency_summary_exporter
* Add docs comments to new templates
2016-04-18 10:58:47 +08:00
Damyon Wiese 3c659fc202 MDL-51648 cbe: Add a user competency plan summary page (allows grading) 2016-04-18 10:58:47 +08:00
Frederic Massart 1ab69549ad MDL-52425 tool_lp: Bug when trying to add child competencies 2016-04-18 10:58:47 +08:00
Frederic Massart 9373acf645 MDL-52425 tool_lp: Competency rules apply when a competency is completed 2016-04-18 10:58:47 +08:00
Serge Gauthier d327579538 MDL-52242 tool_lp: Competencies listed in a completed plan must never change 2016-04-18 10:58:47 +08:00
Frederic Massart 5475357231 MDL-52229 tool_lp: Due templates cannot be updated
Noticed during integration that we could not update a template
which duedate had been reached. Even without changing it.
2016-04-18 10:58:46 +08:00
Frederic Massart f442860781 MDL-52282 tool_lp: Template cohorts sync doesn't recreate unlinked plans 2016-04-18 10:58:46 +08:00
Issam Taboubi 964afa98e7 MDL-52229 tool_lp: Handle hidden templates/frameworks 2016-04-18 10:58:46 +08:00
Issam Taboubi ed549dbfcb MDL-52282 tool_lp: Create a scheduled task to sync plans from cohorts 2016-04-18 10:58:46 +08:00
Frederic Massart 52eda87637 MDL-51869 tool_lp: Linking evidence of prior learning with competencies 2016-04-18 10:58:46 +08:00
Serge Gauthier 156675ed3d MDL-52233 tool_lp: Show competency's idnumber in user learning plan 2016-04-18 10:58:46 +08:00
Frederic Massart 7507b82a18 MDL-49463 tool_lp: New form base class for persistent models 2016-04-18 10:58:46 +08:00
Frederic Massart 6c2b163c97 MDL-49463 tool_lp: Ability to add evidence of prior learning 2016-04-18 10:58:46 +08:00
Issam Taboubi 768181bde9 MDL-52235 tool_lp: Check capability on Add new learning plan button 2016-04-18 10:58:46 +08:00
Serge Gauthier dd1ce7637b MDL-51942 tool_lp: Ensure that constant MOODLE_INTERNAL is used everywhere 2016-04-18 10:58:46 +08:00
Issam Taboubi 06b6fd62c0 MDL-52272 tool_lp: Rename Status and State on plan page 2016-04-18 10:58:46 +08:00
Issam Taboubi 3779826242 MDL-52418 tool_lp: Invalid responses in somes pages 2016-04-18 10:58:46 +08:00
Frederic Massart 12888abaa8 MDL-52423 tool_lp: Page to view a plan and its information 2016-04-18 10:58:45 +08:00
Frederic Massart b274c295fc MDL-52423 tool_lp: Support for optional 'other' properties in exporters
Webservices do not support nor accept null values for structures.
Being able to mark some properties as optional allows for the
definition to support missing properties when they would otherwise
have been set to null.
2016-04-18 10:58:45 +08:00
Frederic Massart 0875cc18e5 MDL-52423 tool_lp: Allow null related objects in exporters
Note that the related objects MUST always ALL be passed to the
constructor when instantiating objets, even if they are null.

Related objects were introduced to improve performance and their
requirement is one way to ensure that developers don't forget them.
2016-04-18 10:58:45 +08:00
Damyon Wiese 721813033d MDL-51967 cbe: Fix some wonky service descriptions
Some of the webservices return data is not matching it's signature.
Also some of the templates/contexts needed aligning.
2016-04-18 10:58:45 +08:00
Damyon Wiese 49c5b8b440 MDL-51967 cbe: Use the competency_summary_exporter for the competency dialogue. 2016-04-18 10:58:45 +08:00
Issam Taboubi 2e90c62f79 MDL-51967 tool_lp: Create a dialogue to view the competency information 2016-04-18 10:58:45 +08:00
Frederic Massart 9fb8385183 MDL-51962 tool_lp: Validate the grade in evidence 2016-04-18 10:58:45 +08:00
Serge Gauthier 4de456cdfb MDL-51962 tool_lp: Validate that the grade in user_competency is valid 2016-04-18 10:58:45 +08:00
Frederic Massart 914b580eb6 MDL-49461 tool_lp: Competencies can be marked with course completion 2016-04-18 10:58:45 +08:00
Frederic Massart 40e5ad0e99 MDL-49461 tool_lp: Adding generators for course_competency 2016-04-18 10:58:45 +08:00
Frederic Massart 71f6c80c50 MDL-52062 tool_lp: Add some elements of plans pages depending on caps 2016-04-18 10:58:45 +08:00
Jean-Philippe Gaudreau 5c7383fd08 MDL-52062 tool_lp: Add User's learning plan navigation
* Added method page_helper::setup_for_plan
* Added hook to extend navigation
* Configured navigation in the following learning plan pages:
** plans.php
** plan.php
** editplan.php (For both Adding and editing of a learning plan)
2016-04-18 10:58:45 +08:00
Frederic Massart 4f3b2d977a MDL-49464 tool_lp: Not shared field name for course competencies rules
When doing so browsers can re-assign a value to a random field based
on another one when the page is refreshed.
2016-04-18 10:58:45 +08:00
Frederic Massart bb50f08db2 MDL-49464 tool_lp: Include course competencies in backups 2016-04-18 10:58:45 +08:00
Frederic Massart d660824b7f MDL-51039 tool_lp: Clean up during integration review 2016-04-18 10:58:45 +08:00
Serge Gauthier d4c0a2f66e MDL-51039 tool_lp: Add completion rules to course - competency links 2016-04-18 10:58:44 +08:00
Serge Gauthier 4c0e816733 MDL-52122 tool_lp: Create an API to register evidence to competencies 2016-04-18 10:58:44 +08:00
Frederic Massart 191644084b MDL-52266 tool_lp: Bump version number 2016-04-18 10:58:44 +08:00
Damyon Wiese 51247ea037 MDL-52266 cbe: Use a template + exporter for cohort summaries
Also add an 'includes' parameter to the cohort selector.
2016-04-18 10:58:44 +08:00
Frederic Massart 13ef20f65c MDL-52266 tool_lp: Cohorts can be removed from template synced cohorts 2016-04-18 10:58:44 +08:00
Frederic Massart dd1df08248 MDL-52266 tool_lp: Plans can be created from a cohort
And cohorts can be set to be sync with the template from the UI.
2016-04-18 10:58:44 +08:00
Frederic Massart a8a05b81cd MDL-51033 tool_lp: Create user plans from page listing template plans 2016-04-18 10:58:44 +08:00
Damyon Wiese ac9e4b8188 MDL-52198 cbe: Fix template docs for user selector summary 2016-04-18 10:58:44 +08:00
Damyon Wiese f896aa5126 MDL-52198 cbe: Add phpdocs for user filtering function. 2016-04-18 10:58:44 +08:00
Damyon Wiese 6880579736 MDL-52198 cbe: Move user summary to an exporter 2016-04-18 10:58:44 +08:00
Frederic Massart 80583e0dff MDL-52198 cbe: Add a user selector
For now this is only in tool_lp - for core we would wrap this with an mform element.
2016-04-18 10:58:44 +08:00
Frederic Massart a495d1a18b MDL-51858 backup: Support admin tools in course and module backups 2016-04-18 10:58:44 +08:00
Frederic Massart 9f1e6c132d MDL-51968 tool_lp: Ensure that user exists when creating a plan 2016-04-18 10:58:44 +08:00
Issam Taboubi 14199b8561 MDL-51682 tool_lp: Fix persistent sortorder handling to prevent holes 2016-04-18 10:58:43 +08:00
Frederic Massart 49ae39f747 MDL-51963 tool_lp: Reinforce scaleid validation to prevent changes 2016-04-18 10:58:43 +08:00
Frederic Massart bf62b21d0d MDL-51963 tool_lp: Really add the scaleid field on competency
Still without any intention to use it, we add the scale field in
the database just so we can already write the right validation for
the scale ID which is pretty important as our code will start relying
on it. E.g. we only support scaleid null, or greater than 0. Adding
the validation method clearly documents what our expectations are.
2016-04-18 10:58:43 +08:00
Frederic Massart 498cf28ce1 MDL-51963 tool_lp: Pretend that there is a scale ID on competency
The reason why we are doing that is to leave the door open for
competency scales later on. Which means that we can write code
that will rely on the competency to provide its scale even though
the default behaviour will be to use the framework one.
2016-04-18 10:58:43 +08:00
Damyon Wiese c80630da1c MDL-51041 cbe: More refactoring of exporters
* Unit tests for base exporter
* Use the course_summary_exporter for list_courses_using_competency
* Rename competency_with_linked_courses_exporter to competency_summary_exporter
* Split properties_definition in 2 (added read_properties_definition)
* Improve phpdocs
* Make some methods final
* Throw an error when other_properties overlap with properties
2016-04-18 10:58:43 +08:00
Damyon Wiese d04ea1665e MDL-51041 cbe: Refactor to allow non-persistent exporters 2016-04-18 10:58:43 +08:00
Damyon Wiese cc8348db07 MDL-51041 cbe: Add linked course information to the template competencies page. 2016-04-18 10:58:43 +08:00
Issam Taboubi 5b22462788 MDL-51953 tool_lp: Missing four services definitions 2016-04-18 10:58:43 +08:00
Issam Taboubi d805cc3745 MDL-52104 tool_lp: Improve UI for the change of states in plan 2016-04-18 10:58:43 +08:00
Frederic Massart f85ea576f0 MDL-52220 tool_lp: Adjust permission checks related to plans/templates 2016-04-18 10:58:43 +08:00
Frederic Massart c7999f6df2 MDL-52220 tool_lp: Updating a template updates its plans 2016-04-18 10:58:43 +08:00
Frederic Massart 6d2c2e8674 MDL-52220 tool_lp: API method to unlink a plan from a template 2016-04-18 10:58:43 +08:00
Frederic Massart 4de877eba0 MDL-52220 tool_lp: Prevent updates on a plan based on a template 2016-04-18 10:58:43 +08:00
Frederic Massart 2388d46de7 MDL-52220 tool_lp: Create plan from template API 2016-04-18 10:58:43 +08:00
Frederic Massart 926913feba MDL-52197 tool_lp: Page listing cohorts linked to a template 2016-04-18 10:58:43 +08:00
Frederic Massart bee480a4e7 MDL-52196 tool_lp: API to create a template/cohort relation 2016-04-18 10:58:42 +08:00
Frederic Massart 474090c80e MDL-52196 tool_lp: New persistent for template/cohort relationship 2016-04-18 10:58:42 +08:00
Frederic Massart 7d02292be5 MDL-51647 tool_lp: Adding index on plan status and duedate 2016-04-18 10:58:42 +08:00
Frederic Massart 68911f0e7f MDL-51647 tool_lp: Plans due date MUST include the time of the day
Just like templates. That is very important when multiple users
can edit the same plan and are in different timezones.
2016-04-18 10:58:42 +08:00
Frederic Massart 15882eca69 MDL-51647 tool_lp: Missing scale when exporting user_competency_plan 2016-04-18 10:58:42 +08:00
Frederic Massart 5bfab685ea MDL-51647 tool_lp: New task to close plans which are due 2016-04-18 10:58:42 +08:00
Jean-Philippe Gaudreau 5f9fa9f39a MDL-51647 tool_lp: Fix exporter error when plan completed 2016-04-18 10:58:42 +08:00
Frederic Massart 41682e53e3 MDL-52119 tool_lp: Invalid parameters for list_plan_competencies 2016-04-18 10:58:42 +08:00
Frederic Massart 47855def51 MDL-52195 tool_lp: Normalise the navigation in templates 2016-04-18 10:58:42 +08:00
Frederic Massart f0b2e58190 MDL-52195 tool_lp: New page that lists the plans of a template 2016-04-18 10:58:42 +08:00
Frederic Massart 578e61c18a MDL-52119 tool_lp: Solidify the exporters to avoid developer mistakes 2016-04-18 10:58:42 +08:00
Damyon Wiese 8ec5f810f4 MDL-52119 cbe: Use generated structures for persistent classes 2016-04-18 10:58:42 +08:00
Frederic Massart a6ec05b675 MDL-51868 tool_lp: Create evidence persistent 2016-04-18 10:58:42 +08:00
Damyon Wiese 0267097956 MDL-52064 cbe: Fixes for unit tests.
There were some real failures that the unit tests caught.
2016-04-18 10:58:42 +08:00
Damyon Wiese 5db5c22c15 MDL-52064 cbe: Exporters are generic exporters - not for output
Making the persistent_exporter implement templatable, implies that the
exporters are designed for output - but they are not - they are designed
for any data returned through an external function. So lets not make them templatable,
and make the default function name "export".
2016-04-18 10:58:41 +08:00
Damyon Wiese a214d35ec2 MDL-52064: Improve persistent exporter
- Use to_record instead of custom getters
- Remove custom formatting for taxonomies
- Fix bugs in exporter (PARAM_FORMAT was wrong)
- use $comp->get_context() instead of $comp->get_framework()->get_context()
2016-04-18 10:58:41 +08:00
Damyon Wiese 86938d0613 MDL-52064 cbe: Clean many common errors in external functions
Fixes include format_text/format_string
New persistent_exporter class to export persistent objects for use in external apis.
Always validate_context
Always use validated params - not raw params
Do not use "xxformatted" properties.
2016-04-18 10:58:41 +08:00
Damyon Wiese 7a3953dd52 MDL-52030 cbe: Fix drag and drop for manage competencies page
Previously I was attaching the drag / drop handlers to the list items,
which were nested which caused many wierd behaviours. Now I attach them only
to the span in the lists which are never nested.
2016-04-18 10:58:41 +08:00
Frederic Massart 1e18bc48ee MDL-51029 tool_lp: Competency list is indexed by ID 2016-04-18 10:58:41 +08:00
Damyon Wiese e1bbe57459 MDL-51038 cbe: Change the return value from the competency picker
If multi-select is not enabled, return a single competencyId, not an
array of competencyIds.
2016-04-18 10:58:41 +08:00
Damyon Wiese 04dc9983d8 MDL-51038 cbe: Fixes for multi-selection of the competency tree
* Added missing jsdocs
* Disable multi-select for the main competencies tree (only allow it in the popups).
* Disallow selecting the top node in the competencies picker
* When multi-select is disabled, the selectionchanged event now only passes the one node, not a list with one item.
* Removed the flash when loading the picker (by hiding the tree while it's being rendered)
2016-04-18 10:58:41 +08:00
Damyon Wiese ac588bf3de MDL-51038 competencies: Make the competencies tree handle multi-select
In the places where it makes sense, add shift/control click support to the
competencies tree (and the keyboard equivalent).
2016-04-18 10:58:41 +08:00
Frederic Massart fdaf46adbb MDL-51029 tool_lp: Before validate was not always called
When the validation already happened we did not call before_validate().
It must always be called as before_validate() can be used as if it was
a before_all() callback.
2016-04-18 10:58:41 +08:00
Frederic Massart 1896274ff5 MDL-51029 tool_lp: Implement competency rules 2016-04-18 10:58:41 +08:00
Jean-Philippe Gaudreau 192569ed17 MDL-51805 tool_lp: Freeze learning plan when it is marked as completed
This includes:
* Copy user competencies to user_competency_plan when updating plan
  with status complete.
* User competencies in user_competency_plan are deleted when the plan
  is set back to draft or active.
* the api::list_plan_competencies method is now returning
  user_competency_plan objects if plan status is complete.
* external functions and renderer have been adapted to the new api
  methods.
* Remove fields status and reviewerid from user_competency_plan
2016-04-18 10:58:41 +08:00
Damyon Wiese 6bf250f84e MDL-51961 cbe: UX improvements to manage competencies
1. The competencies tree should open with all nodes initially collapsed
    (unless there is less than 20 results, in which case they should all be expanded)
2. When the tree is refreshed, all previously selected nodes should be remembered
    and the tree expanded to that point.
3. While the tree is reloading - there should be a "spinner"
2016-04-18 10:58:41 +08:00
Damyon Wiese 91f3ad48d9 MDL-51957 cbe: Minor changes for competencies tree.
Minor JSDoc changes, and error handler changes.
2016-04-18 10:58:41 +08:00
Damyon Wiese 24f0680ca6 MDL-51957 competencies: Improvements to event handling
Add custom .on methods instead of expecting code outside the module
to know which node to bind to to listen for events.

Also keep the selectionChanged handler private to the competencyactions module.

Finally - fix the broken move competency action.
2016-04-18 10:58:41 +08:00
Damyon Wiese 85dbaf91ba MDL-51957 cbe: Use a jquery 'change' event instead of passing callbacks 2016-04-18 10:58:40 +08:00
Damyon Wiese 60bf8bb0aa MDL-51957 cbe: Cleanup data_for_manage_competencies_page webservice
Declare the correct return type and remove the commented code from the renderable.
2016-04-18 10:58:40 +08:00
Damyon Wiese fff88ad17d MDL-51957: Super pimp the performance of the aria tree. 2016-04-18 10:58:40 +08:00
Frederic Massart 8ff9ae8d6f MDL-50328 tool_lp: Unit test failure and little clean-up of plans page 2016-04-18 10:58:40 +08:00
Issam Taboubi 554b369b60 MDL-50328 tool_lp: Allow competencies to be assigned to a user plan 2016-04-18 10:58:40 +08:00
Frederic Massart 2ec1b70bcd MDL-51866 tool_lp: Framework scale cannot be changed once it is used 2016-04-18 10:58:40 +08:00
Issam Taboubi 4ad3ac34f4 MDL-51987 tool_lp: Create persistent plan_competencies 2016-04-18 10:58:40 +08:00
Frederic Massart 7f386a2e62 MDL-51034 tool_lp: Tests for list_plan_competencies 2016-04-18 10:58:40 +08:00
Frederic Massart 1d8f0a6f50 MDL-51034 tool_lp: List competencies in a user's plan 2016-04-18 10:58:40 +08:00
Issam Taboubi 58405003f8 MDL-51646 tool_lp: Implement plan status 2016-04-18 10:58:40 +08:00
Serge Gauthier 8a9030c18e MDL-51862 tool_lp: Create a persistent model user_competency_plan 2016-04-18 10:58:39 +08:00
Frederic Massart 5159d6794b MDL-51965 tool_lp: Revisit capabilities to read/manage plans
Templates can no longer be linked to the plan via the plan editing
page because we will need to handle plan linking/unlinking directly.
2016-04-18 10:58:37 +08:00
Serge Gauthier 6d57a987bf MDL-51644 tool_lp: Create persistent model for user_competency 2016-04-18 10:58:37 +08:00
Jean-Philippe Gaudreau 67e0b72fb2 MDL-51870 tool_lp: Use new ajax definition of external functions 2016-04-18 10:58:37 +08:00
Damyon Wiese dccdd4da87 MDL-51958 cbe: Increase the limit for the number of levels in a tree 2016-04-18 10:58:37 +08:00
Damyon Wiese 7605c5f40f MDL-51959 cbe: Validate the depth of the path of a competency 2016-04-18 10:58:37 +08:00
Serge Gauthier 53084abb75 MDL-51645 tool_lp: Rename the plan capabilities 2016-04-18 10:58:36 +08:00
Frederic Massart 3a4c71dc22 MDL-51856 tool_lp: Fixing PHPUnit notices and plan errors 2016-04-18 10:58:36 +08:00
Serge Gauthier e9831af3c2 MDL-51233 tool_lp: Remove unused ID number from learning plan templates
Conflicts:
	admin/tool/lp/version.php
2016-04-18 10:58:36 +08:00
Frederic Massart e52513ee2b MDL-51602 tool_lp: Use parent ID rather than node when building tree 2016-04-18 10:58:36 +08:00
Issam Taboubi c61db7bb6a MDL-51602 tool_lp: Add ability to duplicate a competency framework 2016-04-18 10:58:36 +08:00
Frederic Massart 03c6665894 MDL-51791 tool_lp: Improving persistent validation
- Validation methods must be protected
- An ID cannot be set when calling create()
2016-04-18 10:58:36 +08:00
Frederic Massart bf61cd0cf3 MDL-51442 tool_lp: Validate the frameworks' scale ID 2016-04-18 10:58:36 +08:00
Serge Gauthier 31582c1638 MDL-51442 tool_lp: Framework scales configuration must be mandatory 2016-04-18 10:58:36 +08:00
Frederic Massart 8cb101a7d2 MDL-51638 tool_lp: Display the taxonomy terms where relevant 2016-04-18 10:58:36 +08:00
Frederic Massart 0c65d52c7f MDL-51504 tool_lp: Validate the templates' due date 2016-04-18 10:58:36 +08:00
Frederic Massart a54d5b042a MDL-51026 tool_lp: Taxonomy terms can be defined on a framework 2016-04-18 10:58:36 +08:00
Frederic Massart 2327fe75f2 MDL-51598 tool_lp: Frameworks page displays correct competency count 2016-04-18 10:58:36 +08:00
Frederic Massart 14d9abc261 MDL-50482 tool_lp: Use list_competencies as static and bump version 2016-04-18 10:58:36 +08:00
Issam Taboubi 76c107eac1 MDL-50482 tool_lp: Add ability to duplicate a learning plan template 2016-04-18 10:58:36 +08:00
Frederic Massart 46fdd1d8ef MDL-50253 tool_lp: Port course competencies to new persistent model 2016-04-18 10:58:36 +08:00
Frederic Massart 72c9be0d8f MDL-50253 tool_lp: Implement a new competency picker 2016-04-18 10:58:35 +08:00
Frederic Massart c70519692a MDL-50253 tool_lp: Clean up of tests for related competencies 2016-04-18 10:58:35 +08:00
Frederic Massart 72a1e0dede MDL-50253 tool_lp: Introduction of data generators to learning plans 2016-04-18 10:58:35 +08:00
Frederic Massart aec5363ec1 MDL-50253 tool_lp: Clean up implementation of related competencies 2016-04-18 10:58:35 +08:00
David Monllao 68e961125e MDL-50253 tool_lp: Unit tests for related competencies
Conflicts:
	admin/tool/lp/tests/externallib_test.php
2016-04-18 10:58:35 +08:00
David Monllao 5a356fdb41 MDL-50253 tool_lp: New template for related competencies 2016-04-18 10:58:35 +08:00
David Monllao 72da1ab64b MDL-50253 tool_lp: Refactoring JS modules to reuse in related competencies
New competencyselector module used by competencies.js and competencyactions.js,
handles the competencies selection.

Conflicts:
	admin/tool/lp/amd/src/competencies.js
2016-04-18 10:58:35 +08:00
David Monllao 4f81545979 MDL-50253 tool_lp: Adding related competencies
Conflicts:
	admin/tool/lp/classes/api.php
	admin/tool/lp/classes/external.php
	admin/tool/lp/classes/output/renderer.php
	admin/tool/lp/db/install.xml
	admin/tool/lp/db/services.php
	admin/tool/lp/lang/en/tool_lp.php
	admin/tool/lp/version.php
2016-04-18 10:58:35 +08:00
Frederic Massart cf2cc1e2b0 MDL-51696 tool_lp: Record was overridden by record description 2016-04-18 10:58:35 +08:00
Serge Gauthier 3392a313c0 MDL-51507 tool_lp: External functions frameworks lack scale information 2016-04-18 10:58:35 +08:00
Issam Taboubi b397969665 MDL-51460 tool_lp: List frameworks' API function does not support order 2016-04-18 10:58:35 +08:00
Issam Taboubi 904291f21f MDL-51557 tool_lp: Add learning plans to the administration categories 2016-04-18 10:58:35 +08:00
Frederic Massart 6420fbab9b MDL-51506 tool_lp: Forms drop submitbutton from data 2016-04-18 10:58:34 +08:00
Frederic Massart 8c298391aa MDL-51031 tool_lp: Dropping sortorder field that was left behind 2016-04-18 10:58:34 +08:00
Frederic Massart cc643d16dd MDL-51506 tool_lp: Migrating template_competency to new model API 2016-04-18 10:58:34 +08:00
Frederic Massart 5af3778e13 MDL-51506 tool_lp: Migrating plan to new model API 2016-04-18 10:58:34 +08:00
Frederic Massart cda17bd961 MDL-51506 tool_lp: Migrating template to new model API 2016-04-18 10:58:34 +08:00
Frederic Massart b60702643c MDL-51506 tool_lp: Migrating competency_framework to new model API 2016-04-18 10:58:34 +08:00
Frederic Massart c27113d93e MDL-51506 tool_lp: Migrating competency to new model API 2016-04-18 10:58:34 +08:00
Frederic Massart 096166a026 MDL-51506 tool_lp: Unit Tests for persistent class 2016-04-18 10:58:34 +08:00
Frederic Massart 7bec03c5d0 MDL-51506 tool_lp: Implementing before/after (C)RUD hooks 2016-04-18 10:58:34 +08:00
Frederic Massart dee2fb575e MDL-51506 tool_lp: Implementing validation in the models 2016-04-18 10:58:34 +08:00
Issam Taboubi d192e248b7 MDL-51459 tool_lp: Template external functions do not return the duedate 2016-04-18 10:58:34 +08:00
Jean-Philippe Gaudreau c74f3e7d2e MDL-51496 tool_lp: Remove reorder services from db/services.php
Remove reorder competency framework and templates services from db/services.php.
2016-04-18 10:58:34 +08:00
Damyon Wiese d65b912df2 MDL-51139 tool_lp: Fix some javascript that was broken by a merge
The user learning plans page menus were broken by some refactoring.

Fixed during merge by Fred:
- Added space between icons and strings in action menu
- Recent changes caused the plans page to die when listing templates
2016-04-18 10:58:34 +08:00
Frederic Massart 679bce3692 MDL-51031 tool_lp: Removing ability to reorder the templates
This was done for the frameworks as well. As we display the templates
accross contexts, the sortorder will not produce the expected result
therefore it is better to remove it.
2016-04-18 10:58:34 +08:00
Frederic Massart ec324dc6e3 MDL-51031 tool_lp: Adding tests for template related functions 2016-04-18 10:58:34 +08:00
Frederic Massart f0da26a494 MDL-51031 tool_lp: Templates can be created on a category level 2016-04-18 10:58:33 +08:00
Frederic Massart 05105c2874 MDL-51025 tool_lp: Invalid parameter passed when deleting framework 2016-04-18 10:58:33 +08:00
Frederic Massart 44c6470d90 MDL-51025 tool_lp: Removing hardcoded link to frameworks in navigation 2016-04-18 10:58:33 +08:00
Issam Taboubi 562a0931bd MDL-51420 tool_lp: Fix failure in test_reorder_template_competencies 2016-04-18 10:58:33 +08:00
Frederic Massart 761a493cda MDL-51025 tool_lp: Dropping column sortorder for frameworks 2016-04-18 10:58:33 +08:00
Frederic Massart f610a95732 MDL-51025 tool_lp: Add context support to count_frameworks 2016-04-18 10:58:33 +08:00
Frederic Massart 68b385dff1 MDL-51025 tool_lp: More tests to cover category context 2016-04-18 10:58:33 +08:00
Frederic Massart 2de75345bb MDL-51025 tool_lp: Frameworks can be created on a category level 2016-04-18 10:58:33 +08:00
Frederic Massart 4511b7d694 MDL-51027 tool_lp: Require ID numbers for frameworks and competencies 2016-04-18 10:58:33 +08:00
Frederic Massart 473745a0fb MDL-51027 tool_lp: Competency search included unrelated parent 2016-04-18 10:58:33 +08:00
Ankit Agarwal b17d3d10d7 MDL-50608 tool_lp: Code cleanup 2016-04-18 10:58:33 +08:00
Mark Nelson 556838950f MDL-50608 tool_lp: tidy up and bug fixes 2016-04-18 10:58:33 +08:00
Ankit Agarwal 70c72e6623 MDL-50595 tool_lp: Make configure scale popup pretty 2016-04-18 10:58:33 +08:00
Ankit Agarwal ca536a4f81 MDL-50590 tool_lp: Fix error with scale popup 2016-04-18 10:58:32 +08:00
Damyon Wiese 7e8d4dac9b MDL-50308 tool_lp: Big javascript cleanup
This includes:
* Move all JS modules from lib/amd to admin/tool/lp/amd
* Add all jsdocs
* fix all jshint warnings
* Rewrite the actionmenu wrapper to a real amd module
2016-04-18 10:58:32 +08:00
Adrian Greeve d629323f72 MDL-50262 outcomes: Added scales and scale configuration.
Competency frameworks can now specify a scale to determine
proficiency.
2016-04-18 10:58:32 +08:00
Mark Nelson 9408e77eca MDL-49462 tool_lp: added unit tests for additional web services 2016-04-18 10:58:32 +08:00
Mark Nelson e90c24d09d MDL-49462 tool_lp: general bug fixes and tidy up 2016-04-18 10:58:32 +08:00
Mark Nelson 54c5a739dc MDL-49462 tool_lp: added template competencies page 2016-04-18 10:58:32 +08:00
David Monllao 24546ef21b MDL-49460 tool_lp: Some unit tests for plans crud 2016-04-18 10:58:32 +08:00
David Monllao 4db373d5cb MDL-49460 tool_lp: Adding user learning plans
Basic CRUD skeleton with external functions.
2016-04-18 10:58:32 +08:00
Damyon Wiese d9a39950b2 MDL-49459 Learning plans: Support for creating and editing competency frameworks.
This includes an API (\tool_lp\competency_api), a set of web services, unit tests for the web services and a nice UI built as an admin tool.
2016-04-18 10:58:32 +08:00
Damyon Wiese c2f30eeddb MDL-49264 Javascript: Add a simple version of dragdrop reordering
This is done in YUI with an AMD wrapper.
2016-04-18 10:58:32 +08:00
Damyon Wiese 61ddd5ecd4 MDL-49263 Javascript: Add an AMD wrapper for actionmenus 2016-04-18 10:58:32 +08:00
David Monllao 23fc1be833 MDL-53535 search_solr: Solr version restrictions
Also removing is_server_ready call from execute_query as in production
workflows search is done through \core_search\manager::search and
\core_search\manager::instance already checks is_server_ready. In
testing environment setUp functions should check that the server is
ready before performing other actions.
2016-04-18 09:59:58 +08:00
Eric Merrill 053118a184 MDL-53758 search: Better results with low hit rates, improve performance
Ensures that Solr will return available results, even if there are many
misses when using check_access(), by asking Solr for more results if the
counter says there should be more.

Improves performance by ending processing as soon as the requested page
of results is processed. Remaining number of pages is an "estimate"
based on the total result count from Solr and how many items we have
rejected up to this point.
2016-04-17 21:59:25 -04:00
Julien Boulen eba237b347 MDL-47672 Enrolments, Themes: fix misalignment on enrolled users page 2016-04-18 09:32:22 +08:00
David Monllao 064814eabe MDL-52490 mod_assign: Patch refinements 2016-04-18 09:17:08 +08:00
evltuma d0d8a2da8f MDL-52490 assign: download selected assigment submissions as zip file 2016-04-18 09:17:08 +08:00
Ben Kelada 48143990e0 MDL-53345 forum: rename itemid 2016-04-18 11:04:57 +10:00
Ben Kelada e881c4f5c3 MDL-53345 forum: Add attachmentareaid to support attachments in api 2016-04-18 11:04:57 +10:00
Ben Kelada 41182118ae MDL-53345 forum: Add item id as parameter to support inline attachments 2016-04-18 11:04:57 +10:00
Matteo Scaramuccia bc219382b7 MDL-53837 assign: Fix executable check for 'unoconv.py' on Windows. 2016-04-17 22:35:13 +02:00
Vadim Dvorovenko e6b2598b75 MDL-53799 Navigation: Text keys for questionbank
Adding text keys for navigation nodes for questionbank, course reset
   and switchroles
2016-04-17 22:54:57 +07:00
Damyon Wiese 77a530601a MDL-53841 assign: Fix for assignment listing page.
Was throwing debugging because there is no course module defined on this page.
2016-04-17 22:35:41 +08:00
Alistair Spark 6552198130 MDL-51749 CALENDAR: Add ical export for user or group events 2016-04-16 23:43:23 +01:00
Eloy Lafuente (stronk7) 4f33514063 weekly release 3.1dev 2016-04-15 10:19:04 +02:00
Eloy Lafuente (stronk7) cd9e057be3 NOBUG: Fixed file access permissions 2016-04-15 10:19:04 +02:00
Eloy Lafuente (stronk7) bdc5337644 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-04-15 10:18:59 +02:00
Damyon Wiese 821ab1bf9b MDL-52954 assign: Behat fixes because the assign grading ui has changed 2016-04-15 15:57:56 +08:00
David Monllao 1076e02f29 MDL-53309 grades: Only update when required 2016-04-15 15:15:32 +08:00
Ramindu Deshapriya 4d08decb77 MDL-52708 core_admin: Added Behat test to automate MDLQA-8190 2016-04-15 00:04:57 +05:30
liorgi db3a6216cc MDL-48089 mod_forum: Improve DB query in observer 2016-04-14 14:20:32 +01:00
Dan Poltawski e11127b4bf MDL-53813 search: prevent form change checker on search form
When we are searching for things we don't have text input we need to
care about loosing.
2016-04-14 14:02:01 +01:00
Damyon Wiese 11c16f5fc8 MDL-53772 externallib: Deprecate external_function_info() 2016-04-14 15:07:41 +08:00
Damyon Wiese e02e7f5a01 MDL-53772 libraries: More context fixes
1. Improve upgrade note
2. Don't abuse $PAGE to get the current course/cm
3. Use validate_context, never $PAGE->set_context()
4. Reset current coursemodule in validate_context().
5. Respect moodlepageclass when calling an external function.
2016-04-14 15:02:41 +08:00
David Monllao e689d68b54 Merge branch 'MDL-52954-master-behat-fixes' of git://github.com/damyon/moodle 2016-04-14 14:26:16 +08:00
David Monllao 3dd89357d4 Merge branch 'MDL-53772-master' of git://github.com/damyon/moodle
Conflicts:
	lib/upgrade.txt
2016-04-14 14:01:16 +08:00
Marina Glancy 787ec240c1 MDL-53772 inplace_editable: set context in callbacks 2016-04-14 13:58:29 +08:00
Damyon Wiese 56fa860ead MDL-53772 externallib: Fix busted webservices context handling
Fix:
$PAGE->context must be reset when calling validate_context

Improve:
Provide wrapper for calling an external function

The wrapper correctly checks the function parameters and return type against
the description of the external function, and stores the PAGE and COURSE global
state variables, restoring them before the function returns.

Fix: buggy unit tests.

These tests are expecting debugging from a bug that was fixed, and calling web
service functions with no user or session.
2016-04-14 13:58:23 +08:00
Mark Nielsen 39b2d8700d MDL-53660 mod_forum: Fix coding style 2016-04-13 15:59:45 +01:00
Mark Nielsen 9258045b9b MDL-53660 mod_forum: Fix link decoding in single discussions
This only happens when user data is not included.
2016-04-13 15:59:44 +01:00
Damyon Wiese 5267d632ff MDL-52954 assign: Fixes to webservices and context.
This patch gets the behat tests passing again - but only with MDL-53772 in the branch.
2016-04-13 21:23:50 +08:00
Gareth J Barnard c44ec0d6aa MDL-53033 themes: Invalid attribute values for div.c1.btn. 2016-04-13 13:10:11 +01:00
Dan Poltawski e92a39cf0c Revert "Merge branch 'MDL-52944-master' of git://github.com/cameron1729/moodle"
This reverts commit 61a0465ce7, reversing
changes made to 2408f8fe2b.
2016-04-13 10:48:59 +01:00
David Risner 4584c3de23 MDL-53095 repository_merlot: change merlot url use https 2016-04-13 15:10:26 +08:00
David Monllao 27cec47220 Merge branch 'wip-MDL-53443-fix' of git://github.com/marinaglancy/moodle 2016-04-13 12:41:04 +08:00
Marina Glancy 47f4909a08 MDL-53443 mod_feedback: fix SQL statment to work on all DB 2016-04-13 12:00:14 +08:00
Marina Glancy b06a90b0a0 MDL-53798 search: correct URL for frontpage course 2016-04-13 11:35:10 +08:00
David Monllao 8918a8115e MDL-53796 behat: Move get_debug_text to base class 2016-04-13 10:34:28 +08:00
David Monllao 101303034f Merge branch 'wip-MDL-16855-master' of https://github.com/marinaglancy/moodle 2016-04-13 09:51:35 +08:00
Eric Merrill e214f22f39 MDL-53795 logging: Add DB index for use when backing up logs 2016-04-12 21:44:15 -04:00
David Monllao 27bfb0ee9b Merge branch 'wip-MDL-45064-master' of https://github.com/marinaglancy/moodle 2016-04-13 09:38:12 +08:00
Eloy Lafuente (stronk7) 1d981ae4c2 Merge branch 'wip-MDL-53443-master' of https://github.com/marinaglancy/moodle 2016-04-13 03:26:46 +02:00
Marina Glancy df003a85f0 MDL-53443 mod_feedback: templates code clean up and behat tests 2016-04-13 09:21:33 +08:00
Marina Glancy 2348c13732 MDL-45064 mod_lti: use callback get_shortcuts()
deprecate callback for ltisource plugins get_types(), instead introduce
get_shortcuts()
2016-04-13 08:30:05 +08:00
Marina Glancy 9ca0420e93 MDL-45064 course: mod callback get_shortcuts()
also deprecate callback get_types()
2016-04-13 08:30:04 +08:00
John Okely 01e8bfd745 MDL-45064 lti: LTI types in activity chooser 2016-04-13 08:30:04 +08:00
Marina Glancy 92c90b96ce MDL-25742 mod_wiki: show wiki pages tagged with a tag 2016-04-13 07:57:58 +08:00
Marina Glancy f40b444ef8 MDL-52707 tags: fix SQL query to work on all DBs 2016-04-13 07:46:44 +08:00
Eloy Lafuente (stronk7) aca13ea2b6 Merge branch 'MDL-53642-master' of git://github.com/merrill-oakland/moodle 2016-04-12 22:39:26 +02:00
Eloy Lafuente (stronk7) 11c673f3a3 Merge branch 'MDL-53167-master' of git://github.com/merrill-oakland/moodle 2016-04-12 21:34:41 +02:00
AMOS bot 6526005fcf Automatically generated installer lang files 2016-04-13 00:04:10 +08:00
Dan Poltawski d350414813 Merge branch 'MDL-52263-master' of git://github.com/crazyserver/moodle 2016-04-12 16:50:29 +01:00
Dan Poltawski 61a0465ce7 Merge branch 'MDL-52944-master' of git://github.com/cameron1729/moodle 2016-04-12 14:13:36 +01:00
Pau Ferrer Ocaña b1a9804a9b MDL-52263 libraries: Add test cases to external_format_text options 2016-04-12 15:05:46 +02:00
Pau Ferrer Ocaña 19a131edff MDL-52263 libraries: Add options to external_format_text 2016-04-12 14:39:23 +02:00
Frederic Massart bf6239eddb MDL-53779 external: get_string and get_strings use PARAM_RAW
For the string parameters and translated strings.
2016-04-12 17:04:19 +08:00
Damyon Wiese 2408f8fe2b MDL-52954 assign: Fix CSS lint issues 2016-04-12 08:19:31 +01:00
spvickers 82f5226576 MDL-49754 mod_lti: Fixes to JSON format
@id elements in JSON corrected to match the IMS spec.  Version number of
the service updated.
2016-04-12 15:08:28 +08:00
David Monllao 212153767a Merge branch 'wip-MDL-52707-master' of https://github.com/marinaglancy/moodle 2016-04-12 14:34:11 +08:00
Adrian Greeve cfd1bcfa03 MDL-52642 blog: Fix notices for swapping contexts in activities. 2016-04-12 11:53:34 +08:00
David Monllao 45c49f3218 Merge branch 'MDL-53007_master' of https://github.com/marxjohnson/moodle 2016-04-12 11:31:17 +08:00
David Monllao b79b53d452 Merge branch 'MDL-53770-master' of git://github.com/marinaglancy/moodle 2016-04-12 10:54:03 +08:00
Stephen Bourget 2ed2e692a6 MDL-52642 block_blog_menu: behat test 2016-04-12 10:45:33 +08:00
David Monllao 87c221a7a9 Merge branch 'MDL-53703-master' of git://github.com/dpalou/moodle 2016-04-12 10:06:30 +08:00
Eric Merrill 935ee1c6c6 MDL-53167 search: Adding unit tests for external API change 2016-04-11 21:24:18 -04:00
Henning Bostelmann 64ccb37d49 MDL-53780 mod_assign: Remove teachers from submission group members 2016-04-11 19:45:26 +01:00
AMOS bot f82ad999cb Automatically generated installer lang files 2016-04-12 00:04:19 +08:00
Dan Poltawski 1dd254bbf1 Merge branch 'MDL-53417-master' of git://github.com/cameron1729/moodle 2016-04-11 16:36:50 +01:00
Dan Poltawski 4a39dd3071 Merge branch 'wip-MDL-53363-master' of https://github.com/marinaglancy/moodle 2016-04-11 16:34:26 +01:00
Dan Poltawski d5327021e0 Merge branch 'MDL-53440-master' of git://github.com/cameron1729/moodle 2016-04-11 15:28:37 +01:00
Dan Poltawski c62fa3c0b9 Merge branch 'MDL-53613-master' of git://github.com/merrill-oakland/moodle 2016-04-11 15:14:59 +01:00
Dan Poltawski 6ff935c206 Merge branch 'MDL-53674-master-eventmsg' of git://github.com/mudrd8mz/moodle 2016-04-11 14:29:14 +01:00
Dan Poltawski 35b3f50ee2 Merge branch 'MDL-53728' of git://github.com/timhunt/moodle 2016-04-11 14:02:29 +01:00
Dan Poltawski 5ce14ec291 Merge branch 'MDL-52338' of https://github.com/dg711/moodle 2016-04-11 13:53:18 +01:00
Dani Palou 7ef81de827 MDL-53703 wiki: Add tests for mod_wiki_get_subwiki_files 2016-04-11 11:13:02 +02:00
Dani Palou 62e20cfed6 MDL-53703 wiki: New WS mod_wiki_get_subwiki_files 2016-04-11 11:13:01 +02:00
Dan Poltawski a8b33e8e10 MDL-52954 mod_assign: fix trailing whitespace 2016-04-11 10:07:17 +01:00
Dan Poltawski 728da02780 MDL-52954 editpdf: fix phpdoc 2016-04-11 09:55:38 +01:00
Dan Poltawski 5702a8289b Merge branch 'MDL-52954-master' of git://github.com/damyon/moodle 2016-04-11 09:52:40 +01:00
Dani Palou 31bfb00809 MDL-53709 wiki: Return content size if includecontent=0 2016-04-11 09:00:53 +02:00
David Monllao 9bfb76c40d Merge branch 'MDL-52942-master' of git://github.com/andrewnicols/moodle 2016-04-11 14:24:27 +08:00
David Monllao 468ef66775 Merge branch 'MDL-52385-master' of git://github.com/andrewnicols/moodle 2016-04-11 13:54:23 +08:00
Marina Glancy 4218ad9371 MDL-53363 tags: helper to search for tagged items; search course modules 2016-04-11 13:22:47 +08:00
Andrew Nicols c0e3c8ae0d MDL-52942 forum: Allow posting to multiple groups in eachuser forums 2016-04-11 12:23:47 +08:00
Devang Gaur f58c96f6b0 MDL-52338 blocks: message link should not appear when set false 2016-04-11 08:28:31 +05:30
David Monllao 2a84fae088 MDL-53709 mod_wiki: Update includecontent description 2016-04-11 10:13:39 +08:00
David Monllao 67fc5bcb75 Merge branch 'MDL-53709-master' of git://github.com/dpalou/moodle 2016-04-11 10:12:02 +08:00
Marina Glancy 1e34257ec2 MDL-16855 tags: allow to filter tags on management page 2016-04-11 10:04:17 +08:00
Marina Glancy 0d2027896d MDL-52707 core_tag: allow to combine tags 2016-04-11 09:49:56 +08:00
Marina Glancy a0dbba8308 MDL-53770 mod_lti: allow to uninstall ltisource plugins 2016-04-11 09:03:49 +08:00
liorgi 73dcd8282a MDL-53702 mod_forum: Remove unused variables 2016-04-10 08:51:57 +03:00
David Mudrák db1d5b104b MDL-53674 event monitor: Do not send HTML as plain text formatted emails
There were two problems here.

* The $msgdata->fullmessage was always formatted as HTML even if the
  $msgdata->fullmessageformat was set to the original template's format.
* The plain text part of the emailed message contained HTML code.

The patch makes sure that the original template is always formatted into
HTML and then converted to plain text before setting the text/plain
multipart of the sent email.
2016-04-08 15:14:23 +02:00
Andrew Hancox 2944a41c25 MDL-53043 enrol_manual: Move search field on quickenrol modal 2016-04-08 10:14:09 +01:00
Cameron Ball a6a59bcaa4 MDL-52944 atto: Use event-key to handle enter key 2016-04-08 12:25:27 +08:00
Panagiotis Nikoloutsopoulos 92a8ca4ba2 MDL-52944 atto: Contenteditable command 'FormatBlock' set to 'p' 2016-04-08 12:13:23 +08:00
Eric Merrill 455f4346e5 MDL-53613 search: Add collaborative wiki pages to global search 2016-04-07 14:56:00 -04:00
Eric Merrill 501801a2f8 MDL-53642 search: Allow selection of multiple areas to filter 2016-04-07 14:47:47 -04:00
Eric Merrill 427e3cbcd6 MDL-53167 search: Add ability to limit courses searched 2016-04-07 14:41:59 -04:00
Andrew Hancox 8dd42b3891 MDL-53382 core: Move select all link 2016-04-07 17:31:37 +01:00
liorgi 7664fe2efb MDL-53702 mod_forum: Remove unused variables 2016-04-07 17:34:18 +03:00
Mark Johnson a9c52c78dd MDL-53007 block_navigation: Set width of item text to prevent overflow 2016-04-07 11:53:07 +01:00
Dan Poltawski b611ade3ab weekly release 3.1dev 2016-04-07 09:43:39 +01:00
Juan Leyva 92ea1fa068 MDL-53000 mod_assign: Unit tests for get_file_areas 2016-04-07 09:27:15 +01:00
Dani Palou b1be9b2010 MDL-53709 wiki: Return content size if includecontent=0 2016-04-07 08:43:31 +02:00
Andrew Nicols 0a94763ae8 weekly release 3.1dev 2016-04-07 14:00:25 +08:00
Andrew Nicols cbb817c08c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-04-07 14:00:21 +08:00
Andrew Nicols ba1cdfe0ee Merge branch 'MDL-53577-fix' of https://github.com/andrewnicols/moodle 2016-04-07 12:10:57 +08:00
Andrew Nicols 82eb2cf1be MDL-53577 JS: get_string requires component 2016-04-07 12:10:26 +08:00
Daniel Neis Araujo dfb9daeae2 MDL-52385 tasks: Queue ad-hoc tasks in future 2016-04-07 11:49:52 +08:00
Abhijit A.M 1b276bfc9d MDL-53440 course: Better interface for approving multiple courses
Added another target 'pending' in course/edit.php for redirection
This will help administrator/managers approve multiple courses
one after another
2016-04-07 10:38:42 +08:00
Andrew Nicols b2c40917c3 Merge branch 'MDL-53579-intfix' of https://github.com/merrill-oakland/moodle 2016-04-07 09:40:40 +08:00
Andrew Nicols 38a3f5f996 Merge branch 'wip-mdl-52502-fix' of https://github.com/rajeshtaneja/moodle 2016-04-07 09:38:52 +08:00
Rajesh Taneja 80c3b48409 MDL-52502 behat: Flush buffer to show differences 2016-04-07 09:29:50 +08:00
Eric Merrill f6b4ec7b78 MDL-53579 search: Improve solr engine field name 2016-04-06 21:26:55 -04:00
Eric Merrill 546c0af511 MDL-53579 search: Fix conflict with eDisMax parser and indexed files 2016-04-06 14:09:35 -04:00
AMOS bot 3029acdedd Automatically generated installer lang files 2016-04-07 00:04:42 +08:00
Tim Hunt f06eacd99d MDL-53728 question import/export: improve form structure 2016-04-06 15:35:29 +01:00
Dan Poltawski 4fc04cfeaf Merge branch 'wip-mdl-53571' of https://github.com/rajeshtaneja/moodle 2016-04-06 08:42:27 +01:00
Rajesh Taneja 921faad9ad MDL-53571 behat: Use Escaper for escaping
xpathLiteral has been depreacted, use Escaper instead
2016-04-06 15:38:31 +08:00
Andrew Nicols d147514986 Merge branch 'wip-mdl-53381' of https://github.com/rajeshtaneja/moodle 2016-04-06 11:53:41 +08:00
Rajesh Taneja ccceab9974 MDL-53381 behat: Pointing to 3.31.1 release tag. 2016-04-06 11:32:50 +08:00
Rajesh Taneja eb9ca848fa MDL-53381 behat: Replaced chained steps with api.
Behat 3.x doesn't support chained steps and hence
this is first step to get rid of chained steps in core.
2016-04-06 11:32:49 +08:00
Eloy Lafuente (stronk7) cffc012645 Merge branch 'wip-MDL-43470-master2' of https://github.com/marinaglancy/moodle 2016-04-06 04:35:50 +02:00
Marina Glancy 9b9b9caba3 MDL-43470 mod_feedback: remove mapping form autosave 2016-04-06 10:29:56 +08:00
Marina Glancy ed724aac99 MDL-43470 mod_feedback: select courses for mapping
- use course autocomplete element to map courses
- add a tab and navigation node
- clean up some html
- cover course mapping with behat tests
2016-04-06 10:13:33 +08:00
Eloy Lafuente (stronk7) e44b55f5d0 Merge branch 'MDL-53115-master' of git://github.com/andrewnicols/moodle 2016-04-06 03:32:57 +02:00
Andrew Nicols 9e6c63a7e1 MDL-53461 assign: Unit test regex fix 2016-04-06 08:56:07 +08:00
Andrew Nicols 7056234938 Merge branch 'MDL-53461-master' of git://github.com/crazyserver/moodle 2016-04-06 08:47:12 +08:00
Eloy Lafuente (stronk7) d9c557250c MDL-52502 behat: clean 2 uses of deleted method 2016-04-06 00:16:08 +02:00
Eloy Lafuente (stronk7) f6825a62ef Merge branch 'wip-mdl-52502' of https://github.com/rajeshtaneja/moodle 2016-04-06 00:12:00 +02:00
Eloy Lafuente (stronk7) 76d02bb8ac Merge branch 'MDL-53671-master' of git://github.com/dpalou/moodle 2016-04-05 23:57:21 +02:00
Eloy Lafuente (stronk7) 68f009dfb3 Merge branch 'MDL-53669_master' of git://github.com/markn86/moodle 2016-04-05 22:02:02 +02:00
Eloy Lafuente (stronk7) 1183dfa0f7 Merge branch 'MDL-53647' of git://github.com/timhunt/moodle 2016-04-05 21:59:23 +02:00
Dan Poltawski cf0f0fc7f4 Merge branch 'MDL-53612-master' of git://github.com/merrill-oakland/moodle 2016-04-05 16:25:05 +01:00
Dan Poltawski 245192accc Merge branch 'MDL-50050-master' of git://github.com/lameze/moodle 2016-04-05 16:23:24 +01:00
Dan Poltawski 9bb87baf18 MDL-53449 mod_feedback: reponses page clean up and behat 2016-04-05 14:46:20 +01:00
Dan Poltawski f164cab739 Merge branch 'MDL-53104-master' of git://github.com/lameze/moodle 2016-04-05 14:27:25 +01:00
Dan Poltawski 529ea77b13 MDL-53175 upgrade.txt: fix trailing whitespace 2016-04-05 12:23:50 +01:00
Dan Poltawski 393329069d Merge branch 'MDL-53175-master' of git://github.com/jleyva/moodle 2016-04-05 10:47:19 +01:00
Dan Poltawski 88e8e6006f Merge branch 'MDL-53633-master' of git://github.com/andrewnicols/moodle 2016-04-05 09:40:41 +01:00
Dan Poltawski c56e8bc6ff Merge branch 'MDL-53577_master' of https://github.com/jinhofer/moodle 2016-04-05 09:38:00 +01:00
Pau Ferrer Ocaña 988065c045 MDL-53461 assign: Fix intro images to be shown in the mobile app 2016-04-05 09:33:15 +02:00
Dan Poltawski c019cc57f4 Merge branch 'MDL-53595' of git://github.com/stronk7/moodle 2016-04-05 08:28:48 +01:00
Andrew Nicols efaf5c0570 MDL-53056 JS: Whitespace fix 2016-04-05 14:58:57 +08:00
Andrew Nicols 2697ece323 Merge branch 'MDL-53056-master' of git://github.com/damyon/moodle 2016-04-05 14:57:26 +08:00
Andrew Nicols 44a72e9bd0 Merge branch 'MDL-53462-master' of git://github.com/jleyva/moodle 2016-04-05 12:54:58 +08:00
Andrew Nicols 0ddddf264b Merge branch 'MDL-53500-master' of git://github.com/cameron1729/moodle 2016-04-05 12:22:42 +08:00
Rajesh Taneja e891c8381e MDL-52502 behat: Ensure php web and cli version is same 2016-04-05 11:46:44 +08:00
Rajesh Taneja af2dc48b41 MDL-52502 phpunit: Add php, db and os deatils 2016-04-05 11:46:43 +08:00
Andrew Nicols 0c21d79627 Merge branch 'MDL-53579-master' of git://github.com/merrill-oakland/moodle 2016-04-05 11:20:45 +08:00
Andrew Nicols 7dbc7a60fc MDL-53588 mod_feedback: Behat scenario verb change 2016-04-05 10:22:01 +08:00
Andrew Nicols 1d51dedb77 Merge branch 'wip-MDL-53588-master' of https://github.com/marinaglancy/moodle 2016-04-05 09:36:16 +08:00
Ben Tindell a2fb838e82 MDL-53577 repository: Added maxbytes error message
Changing the error message that is displayed to users when they
upload a file that is greater than the maximum upload size. Does not
include all upload cases; focuses on those most used by students.
2016-04-04 15:33:40 -05:00
Eric Merrill cdb9e8db73 MDL-53612 search: Add book chapter search area 2016-04-04 15:14:22 -04:00
Eloy Lafuente (stronk7) f8b059f245 MDL-53595 install: update the list of stale files for 3.1
Note I've deleted a couple of files there, 99.99% not problematic
(repository/boxnet) because as a general rule it's better to avoid
adding plugin files in the function and, instead, use core ones that
cannot be "reinstalled". Exception to the rule (what's a rule without
an exception) being forum that cannot be deleted. ;-)
2016-04-04 19:22:08 +02:00
Eloy Lafuente (stronk7) 8cdcf93d83 Merge branch 'MDL-53256-m' of https://github.com/micaherne/moodle 2016-04-04 19:02:44 +02:00
Dan Poltawski ad6bdd1301 Merge branch 'MDL-53641' of git://github.com/stronk7/moodle 2016-04-04 16:59:46 +01:00
Eric Merrill 2f492364d9 MDL-53272: Fix calls to missing cache def 2016-04-04 15:36:42 +01:00
Dan Poltawski 93c9c9a86b Merge branch 'wip-MDL-49861-master' of git://github.com/abgreeve/moodle 2016-04-04 12:10:17 +01:00
Dan Poltawski 9d6e3cb6c0 Merge branch 'MDL-17955-master' of git://github.com/andrewnicols/moodle 2016-04-04 09:01:46 +01:00
Dan Poltawski 8cdc6f3224 Merge branch 'MDL-53272_master' of git://github.com/dmonllao/moodle 2016-04-04 08:44:17 +01:00
David Monllao 3dab4841e5 MDL-53272 search: Unit tests to discard caching issues 2016-04-04 15:38:03 +08:00
David Monllao 9470e4d1ed MDL-53272 search: Remove search results cache 2016-04-04 15:38:03 +08:00
Dan Poltawski 17ed403974 Merge branch 'm31_MDL-53622_Fix_Missing_Rewrite_Pluginfile_URLs' of https://github.com/scara/moodle 2016-04-04 08:37:22 +01:00
David Monllao 54abd66aca MDL-53272 search: Catch missing record exceptions 2016-04-04 15:36:59 +08:00
Andrew Nicols a5a70e33f7 Merge branch 'MDL-53661_master' of https://github.com/sam-moodle/moodle 2016-04-04 12:19:12 +08:00
Andrew Nicols a753407eac Merge branch 'MDL-53397_master' of git://github.com/dmonllao/moodle 2016-04-04 12:12:44 +08:00
Andrew Nicols 82bb931a31 MDL-53115 backup: Remove unnecessary @javascript tags 2016-04-04 08:08:43 +08:00
Andrew Nicols beaf0da982 MDL-53115 mod_lesson: Remove unnecessary @javascript tags 2016-04-04 08:08:43 +08:00
Andrew Nicols 4ed942f41e MDL-53115 mod_choice: Remove unnecessary @javascript tags 2016-04-04 08:08:43 +08:00
Eric Merrill 3744ceb63b MDL-53579 search: Limit general query to certain fields 2016-04-02 22:32:22 -04:00
Tim Hunt 56df6f1992 MDL-53647 quiz summary: keep row class names in synch around headings 2016-04-02 13:22:55 +01:00
Eloy Lafuente (stronk7) 7ca2c19b81 MDL-53641 paging bar: add missing space before last element 2016-04-02 00:13:51 +02:00
Matteo Scaramuccia 2e385e9c57 MDL-53622 mod_forum: Added the file_rewrite_pluginfile_urls() call. 2016-04-01 22:41:25 +02:00
Michael Aherne f0ed09852e MDL-53256 cache: Prevent overwriting of cache config with invalid data 2016-04-01 08:52:21 +01:00
Simey Lameze a77e0611a0 MDL-50050 core_deprecated: remove deprecated functions from 2.9 2016-04-01 09:33:30 +08:00
Simey Lameze 221bfffd4e MDL-53104 core_blog: remove deprecated capabilities
This commit removes moodle/blog:associatecourse and moodle/blog:associatemodule deprecated capabilities.
2016-04-01 08:42:09 +08:00
AMOS bot 59b7bea75d Automatically generated installer lang files 2016-04-01 00:04:35 +08:00
Dani Palou a6021a989a MDL-53671 book: Return whole filepath in book_export_contents 2016-03-31 15:38:55 +02:00
Marina Glancy 0e548b8063 MDL-53588 mod_feedback: always submit checkboxes 2016-03-31 17:21:23 +08:00
Mark Nelson 4981d06dae MDL-53669 tool_recyclebin: removed unused string 2016-03-31 16:02:37 +08:00
Dan Poltawski aeccf4bd94 weekly release 3.1dev 2016-03-31 14:06:28 +08:00
Dan Poltawski 118756cfe9 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-03-31 14:06:25 +08:00
Jay Jayswal 283f708305 MDL-53417 glossary: Glossary printer friendly link responsive 2016-03-31 13:59:26 +08:00
Dan Marsden 307be23b83 MDL-53500 report_outline: Allow parent role to view all activities.
Parents are not enrolled in the course, use $user to generate modinfo
for uservisible checks.
2016-03-31 13:38:38 +08:00
Dan Poltawski 39fd6b8aa4 Merge branch 'wip-MDL-50941-fix' of https://github.com/marinaglancy/moodle 2016-03-31 09:41:17 +08:00
Marina Glancy 17a6064dd3 MDL-50941 mod_feedback: client validation of maxlength 2016-03-31 09:34:16 +08:00
Sam Chaffee 0c9c466964 MDL-53661 mod_lti: Fix lti_prepare_type_for_save forcessl config 2016-03-30 18:32:34 -06:00
Eric Merrill 7a4a0bc841 MDL-53516 search: Workaround for curl 7.35.0 bug 2016-03-30 15:28:35 -04:00
Juan Leyva f4fb827ed1 MDL-53462 core_badges: New WS core_badges_get_user_badges 2016-03-30 10:44:55 +01:00
Juan Leyva d329a1ea2f MDL-53175 filter: Fix text formatting for the book and page modules 2016-03-30 09:37:32 +01:00
Juan Leyva 296ab1e253 MDL-53175 file: Allow file_rewrite_pluginfile_urls to reverse 2016-03-30 09:37:32 +01:00
Adrian Greeve f27ca9451f MDL-49861 mod_data: Behat step to test adding records.
Clicking 'Save and add another' should clear the form.
2016-03-30 16:22:49 +08:00
Adrian Greeve c18ad4afd6 MDL-49861 mod_data: Save and add another button clears fields. 2016-03-30 16:18:50 +08:00
Dan Poltawski 79efd94da3 Merge branch 'MDL-53643_master' of git://github.com/dmonllao/moodle 2016-03-30 15:52:26 +08:00
David Monllao 19773d756f MDL-53397 search_solr: Updating param types 2016-03-30 15:44:02 +08:00
David Monllao 53c2f82960 MDL-53397 search_solr: No index default name 2016-03-30 15:41:34 +08:00
Damyon Wiese 6853cd5ed4 MDL-52954 assign: Fix the reasonable cibot warnings. 2016-03-30 14:07:28 +08:00
Damyon Wiese 07a7d9a5f1 MDL-52954 assign: Fix new behat tests
This is the result of new tests added using the old lang strings.
2016-03-30 13:47:21 +08:00
Damyon Wiese bb690849c9 MDL-52954 assign: Rebuild the assignment single grade page. 2016-03-30 13:47:21 +08:00
Damyon Wiese 2a3647bae5 MDL-52954 marking guide: Wrap radio fields in a label for styling 2016-03-30 13:47:10 +08:00
Dan Poltawski e1ec2bbbf3 Merge branch 'wip-MDL-53274-fix' of https://github.com/marinaglancy/moodle 2016-03-30 13:01:42 +08:00
Marina Glancy 0a4f89e5b6 MDL-53274 message: set page context 2016-03-30 12:57:32 +08:00
Damyon Wiese 84a32f156e MDL-52954 forms: Allow form submission via ajax (ignoring GET and POST) 2016-03-30 11:48:40 +08:00
Damyon Wiese b803df8170 MDL-52954 atto: Stop autosave timer, when editor no-longer exists. 2016-03-30 11:48:40 +08:00
Damyon Wiese 1356d85151 MDL-52954 core: Change from pandoc to unoconv - it gives better results
Most importantly it retains formatting better, and supports different charsets far better than pandoc.
2016-03-30 11:48:39 +08:00
Damyon Wiese 128d8736d3 MDL-52954 core: Unit tests for pandoc document converter. 2016-03-30 11:48:39 +08:00
Damyon Wiese 2e76c14e11 MDL-52954 core: Add a document converter to file_storage
This lets us convert between common office formats. E.g. docx -> pdf
html -> pdf, html -> ods.

This commit also updates assignment editpdf plugin to use this converter
on all compatible submission files.
2016-03-30 11:48:39 +08:00
Damyon Wiese 1fca8a7bdd MDL-53056 javascript: Improve the fragments API
Instead of injecting the HTML + JS directly - return a promise that is resolve with
the HTML and JS. This gives the caller control over how and when to inject the nodes
in the DOM. Also modify templates.replaceNode functions to cleanup YUI events mess.
Also pass the context to the callback so it can be verified.
Also pass the arguments to the callback as a named array - not a flat argument list.
Also - only load external scripts if they are not already loaded.
2016-03-30 11:48:38 +08:00
David Monllao bd5d2c60be MDL-53643 search_solr: Setting correctly test server data 2016-03-30 11:40:38 +08:00
David Monllao 13e2c1bf58 Merge branch 'MDL-53314-imap-debugging' of https://github.com/brendanheywood/moodle 2016-03-30 09:49:05 +08:00
David Monllao 99fddd48c3 Merge branch 'wip-MDL-53557-fix' of https://github.com/marinaglancy/moodle 2016-03-30 09:33:46 +08:00
David Monllao 121b97e2ed MDL-53401 auth_mnet: Update upgrade note according to reality.
Grrrr David, thanks DanP.
2016-03-30 09:29:50 +08:00
David Monllao c573ca1cfd MDL-53401 auth_mnet: Note in upgrade.txt about the change 2016-03-30 09:21:11 +08:00
Marina Glancy 4ba67534d8 MDL-53557 mod_feedback: fix to formatting float 2016-03-30 09:17:51 +08:00
David Monllao 11e60abf75 Merge branch 'MDL-53401-master' of git://github.com/lameze/moodle 2016-03-30 09:12:25 +08:00
Dan Poltawski a3e3b696ef Merge branch 'MDL-53516-integration' of https://github.com/merrill-oakland/moodle 2016-03-30 09:10:09 +08:00
Eloy Lafuente (stronk7) 213fdb1d98 Merge branch 'wip-mdl-49150' of https://github.com/rajeshtaneja/moodle 2016-03-30 00:10:46 +02:00
Eloy Lafuente (stronk7) d4f69a462e Merge branch 'MDL-52388-master' of git://github.com/cameron1729/moodle 2016-03-29 23:14:06 +02:00
AMOS bot c609682c96 Automatically generated installer lang files 2016-03-30 00:04:12 +08:00
Eric Merrill 8dfc6291dd MDL-53516 search: Remove file index unit test disable flag 2016-03-29 08:59:44 -04:00
Eric Merrill 7a3bc40cb5 MDL-53515 search: Add template example 2016-03-29 08:52:25 -04:00
Dan Poltawski 0729ea9fd7 Merge branch 'wip-MDL-53274-master' of https://github.com/marinaglancy/moodle 2016-03-29 17:12:42 +08:00
Dan Poltawski b9280927d6 Merge branch 'MDL-53543_master' of git://github.com/dmonllao/moodle 2016-03-29 16:45:37 +08:00
Dan Poltawski 8783393bc4 Merge branch 'MDL-53578-master' of git://github.com/merrill-oakland/moodle 2016-03-29 16:38:58 +08:00
Dan Poltawski e195da19e0 Merge branch 'MDL-53516-master' of git://github.com/merrill-oakland/moodle 2016-03-29 16:35:44 +08:00
David Monllao dd39020d68 Merge branch 'MDL-53356-master' of git://github.com/cameron1729/moodle 2016-03-29 15:56:13 +08:00
Andrew Nicols 9c048e21ac MDL-53633 javascript: Ensure that ordering of options is preserved 2016-03-29 15:47:00 +08:00
David Monllao a697023350 Merge branch 'MDL-53432-git-less-css' of https://github.com/brendanheywood/moodle 2016-03-29 15:43:23 +08:00
Andrew Nicols c71d185658 MDL-17955 forum: Remove timed postings from experimental
This commit does two things:
1) remove the note about the feature being experimental; and
2) changes the default to be enabled for new sites.

This will not enable the feature for existing sites where it is not
enabled.
2016-03-29 15:39:58 +08:00
Dan Poltawski 868e5ef0d5 Merge branch 'MDL-53515-master' of git://github.com/merrill-oakland/moodle 2016-03-29 14:39:53 +08:00
David Monllao ae2d413b2c Merge branch 'wip-MDL-53467-master' of git://github.com/abgreeve/moodle 2016-03-29 13:38:14 +08:00
David Monllao 686bb3ea9d Merge branch 'wip-MDL-53557-master' of https://github.com/marinaglancy/moodle 2016-03-29 13:28:04 +08:00
David Monllao f3f9f716e9 Merge branch 'MDL-52646' of https://github.com/wjroes/moodle 2016-03-29 12:58:33 +08:00
David Monllao 0ae7fa12ac Merge branch 'wip-MDL-52760-master' of https://github.com/marinaglancy/moodle 2016-03-29 12:55:46 +08:00
David Monllao 227a4f1419 Merge branch 'wip-MDL-53209-master' of git://github.com/marinaglancy/moodle 2016-03-29 12:52:07 +08:00
Dan Poltawski a042f56be5 Merge branch 'wip-mdl-53623' of https://github.com/rajeshtaneja/moodle 2016-03-29 12:49:27 +08:00
Dan Poltawski f7074f5db4 Merge branch 'MDL-45835-master' of git://github.com/cameron1729/moodle 2016-03-29 10:37:25 +08:00
David Monllao 981649256a Merge branch 'wip-MDL-29303-master2' of https://github.com/marinaglancy/moodle 2016-03-29 10:01:58 +08:00
Rajesh Taneja 225265b03d MDL-53623 behat: catch expection if failed to trigger event
Inline editing element might hide before
event is triggred, so don't trigger exception
if exception happens
2016-03-29 09:52:37 +08:00
David Monllao 497cd6d48b Merge branch 'MDL-53181-master' of git://github.com/andrewnicols/moodle 2016-03-29 09:50:52 +08:00
Dan Poltawski 1bed89fe6a Merge branch 'MDL-52945' of https://github.com/mr-russ/moodle 2016-03-29 09:43:30 +08:00
Adrian Greeve f6592b9439 MDL-53467 repositories: Upgrade s3 to v0.5.1 2016-03-29 09:07:41 +08:00
AMOS bot 3f5dcca6a0 Automatically generated installer lang files 2016-03-29 00:04:15 +08:00
Marina Glancy 2aad1094b1 MDL-29303 mod_feedback: allow any characters in labels 2016-03-27 21:47:49 +08:00
Marina Glancy 17e166847b MDL-53557 mod_feedback: partial boundaries in numeric items 2016-03-27 21:37:32 +08:00
Marina Glancy 02b2e3e70e MDL-53209 mod_feedback: allow frontpage users to view and complete 2016-03-27 21:03:01 +08:00
Dan Poltawski 0114ca3244 Merge branch 'wip-MDL-53538-master' of git://github.com/abgreeve/moodle 2016-03-26 11:37:35 +08:00
Dan Poltawski ec7a8d3da3 Merge branch 'wip-MDL-50941-master' of https://github.com/marinaglancy/moodle 2016-03-26 11:26:31 +08:00
Dan Poltawski 35689b71a8 Merge branch 'MDL-53562-forum-reply-re' of https://github.com/brendanheywood/moodle 2016-03-26 10:35:55 +08:00
Dan Poltawski ca0d7bf21c Merge branch 'MDL-53508-master' of git://github.com/merrill-oakland/moodle 2016-03-26 10:26:02 +08:00
Dan Poltawski 879f3c7a97 MDL-53507 quiz: fix bad htmlid 2016-03-26 10:05:40 +08:00
Dan Poltawski b3687410df Merge branch 'MDL-53507' of git://github.com/timhunt/moodle 2016-03-26 09:42:46 +08:00
Dan Poltawski 6a3116dd3c Merge branch 'wip-MDL-50795-master' of git://github.com/abgreeve/moodle 2016-03-26 09:31:54 +08:00
Eric Merrill cd894f84b3 MDL-53516 search: Adding file indexing support to Solr
Expand the Solr engine to use the built in (to Solr) Tika
file indexing engine. Files are shipped off for indexing with
curl. Each file must have it's own document. So grouping is
used to keep files and Moodle docs associated.
2016-03-24 16:39:55 -04:00
Eric Merrill 091973dbd7 MDL-53515 search: Extend search API to allow file indexing 2016-03-24 15:44:27 -04:00
AMOS bot 093c60c255 Automatically generated installer lang files 2016-03-25 00:04:14 +08:00
Eloy Lafuente (stronk7) fb75b07c9e weekly release 3.1dev 2016-03-24 12:58:10 +01:00
Eloy Lafuente (stronk7) 3615219889 NOBUG: Fixed file access permissions 2016-03-24 12:58:10 +01:00
Cameron Ball b31bbcf839 MDL-52388 output: Only stop displaying pager next link on last page
Thank you to Brenda Uga for working on this.
2016-03-24 16:56:30 +08:00
Vadim Dvorovenko dd399f51ab MDL-45835 group: events for groupings assign/unassign 2016-03-24 10:59:35 +08:00
Adrian Greeve 387c8026a5 MDL-50795 atto: Pasting into atto removes background colour style.
Copying from one atto editor to another comes with a lot of style
information. This removes the color attributes which make the page
look ugly when competing with different themes.
2016-03-24 10:53:59 +08:00
Dan Poltawski a4302a8fbe MDL-53147 theme_bootstrapbase: Fix RTL issues in messags 2016-03-24 09:05:44 +08:00
Eric Merrill 4894840dc6 MDL-53508 search: Improve highlighting and move to text fields 2016-03-23 08:55:48 -04:00
Brendan Heywood 2c8c24412e MDL-53356 admin: Fixed erroneous sectionerror when upgrade is needed 2016-03-23 16:26:04 +08:00
Dan Poltawski c0c26e5e69 Merge branch 'MDL-53260-master' of git://github.com/junpataleta/moodle 2016-03-23 14:40:05 +08:00
Jun Pataleta 54285c3ff5 MDL-53260 upgrade: Fix lang help text description. 2016-03-23 14:13:36 +08:00
David Monllao f87fcf42ee MDL-52924 mod_assign: Bump version for new external function 2016-03-23 13:53:18 +08:00
Dan Poltawski d137e671f7 Merge branch 'MDL-52952-master-fix' of github.com:xow/moodle 2016-03-23 12:08:32 +08:00
John Okely 94eb96aa78 MDL-52952 forms: Ignore autofill catching fields in form change checker 2016-03-23 11:54:27 +08:00
David Monllao b5335149f4 Merge branch 'wip-MDL-53254-master' of https://github.com/marinaglancy/moodle 2016-03-23 09:17:11 +08:00
gabrielrosset 3ce68e4f8f MDL-53401 auth_mnet: add user created event trigger on MNET
Moodle does not fire user_created event while creating user via MNET.
That makes impossible to hook on user creation when user land into a host via MNET for the 1st time.
2016-03-23 08:38:29 +08:00
Dan Poltawski 8ca99daf86 Merge branch 'MDL-53383-master' of git://github.com/andrewnicols/moodle 2016-03-23 08:14:23 +08:00
Juan Leyva efca239e17 MDL-52767 mod_quiz: New Web Service get_quiz_required_qtypes 2016-03-23 00:57:07 +01:00
Juan Leyva b6c538416b MDL-52767 mod_quiz: New API for retrieving the question types 2016-03-23 00:56:05 +01:00
Juan Leyva ff99efcd96 MDL-52767 mod_quiz: New Web Service get_attempt_access_information 2016-03-23 00:55:37 +01:00
Juan Leyva a79a63619b MDL-52767 mod_quiz: New Web Service get_quiz_access_information 2016-03-23 00:54:41 +01:00
Eloy Lafuente (stronk7) debb1c3a6c Merge branch 'MDL-53547' of git://github.com/timhunt/moodle 2016-03-22 22:58:30 +01:00
Eric Merrill a4902f66bb MDL-53578 search: Enable course id indexing so it can be filtered 2016-03-22 12:53:56 -04:00
Marina Glancy cbecc3c35a MDL-53254 tags: little fixes after review 2016-03-22 17:10:34 +08:00
Dan Poltawski 63dcc87631 MDL-52752 mathjaxloader: version bump 2016-03-22 16:40:00 +08:00
Dan Poltawski aa69618116 Merge branch 'wip-MDL-52752-master' of git://github.com/abgreeve/moodle 2016-03-22 16:31:10 +08:00
Eloy Lafuente (stronk7) 8261a8a3ed MDL-53393 libraries: Fix thirdpartylib to point to directory 2016-03-22 09:06:04 +01:00
Tim Hunt 4c8c69ea9f MDL-53547 logstore_database: better DB driver handling in unit test 2016-03-22 06:42:49 +00:00
Adrian Greeve 85974a83ba MDL-53538 mod_data: Unit test for data_get_advance_search_ids 2016-03-22 14:22:27 +08:00
Adrian Greeve 53934bd0a9 MDL-53538 mod_data: Show no records message instead of error.
When there are no records in the database module and a user
does an advanced search. Show a message that there are no entries
in the database.
2016-03-22 14:22:26 +08:00
Brendan Heywood 08824e8006 MDL-53432 core: Treat derived css and js as binary files in git 2016-03-22 16:57:48 +11:00
Rajesh Taneja a1d3a94b1c MDL-49150 behat: Removed unnecessary @javascript tags 2016-03-22 13:54:12 +08:00
Dan Poltawski ae0af5491b Merge branch 'wip-mdl-49963' of https://github.com/rajeshtaneja/moodle 2016-03-22 13:51:34 +08:00
Rajesh Taneja a8d9cb87ba MDL-49963 behat: fixed scenario and step definition
1. Participants are sorted by last access and they could
   be different on different db's. So sort them by last name
   before checking.
2. Use Give-When-Then steps.
2016-03-22 13:46:13 +08:00
Dan Poltawski 4a166bfd16 Merge branch 'wip-MDL-51867-master2' of https://github.com/marinaglancy/moodle 2016-03-22 13:13:57 +08:00
David Monllao 8c16f34c88 Merge branch 'wip-MDL-53227-master' of git://github.com/marinaglancy/moodle 2016-03-22 13:00:30 +08:00
Dan Poltawski ce32fa5572 MDL-39524 tests: fix incorrect phpdoc 2016-03-22 12:56:53 +08:00
Dan Poltawski cdb2a2ef9f Merge branch 'MDL-39524' of https://github.com/jrchamp/moodle 2016-03-22 12:52:26 +08:00
Dan Poltawski 2ae04cacde Merge branch 'MDL-39524-master' of git://github.com/danpoltawski/moodle 2016-03-22 12:51:30 +08:00
Dan Poltawski afda050660 MDL-39524 tests: unit test for get_real_size() 2016-03-22 12:47:07 +08:00
Dan Poltawski 4a00b04476 Merge branch 'MDL-53049-anchor-offset' of https://github.com/brendanheywood/moodle 2016-03-22 11:44:19 +08:00
Dan Poltawski 9d3e484e6c Merge branch 'MDL-53147-inbox-layout' of https://github.com/brendanheywood/moodle 2016-03-22 11:38:47 +08:00
David Monllao a28ed1a731 Merge branch 'MDL-53228-master' of git://github.com/andrewnicols/moodle 2016-03-22 11:35:54 +08:00
Mark Nelson 0c7cca226d MDL-48012 tool_recyclebin: removed indexes as FKs exist 2016-03-22 11:12:08 +08:00
Dan Poltawski 5aaa2b3750 Merge branch 'MDL-52158-master' of https://github.com/xow/moodle 2016-03-22 10:32:34 +08:00
Eloy Lafuente (stronk7) 55e90f2270 Merge branch 'MDL-53393-master' of git://github.com/cameron1729/moodle 2016-03-22 03:16:51 +01:00
David Monllao a018d82af7 MDL-53513 libraries: Fix lessphp version 2016-03-22 09:57:51 +08:00
David Monllao 809307b490 Merge branch 'MDL-53513-master' of git://github.com/lameze/moodle 2016-03-22 09:56:21 +08:00
Dan Poltawski c71d11404d Merge branch 'wip-MDL-52619-master' of git://github.com/abgreeve/moodle 2016-03-22 09:54:03 +08:00
David Monllao 64fe3af054 Merge branch 'MDL-53456-master' of git://github.com/lameze/moodle 2016-03-22 09:50:34 +08:00
David Monllao 67f884029d Merge branch 'MDL-53512-master' of git://github.com/lameze/moodle 2016-03-22 09:47:36 +08:00
David Monllao 01cd5aeef6 Merge branch 'MDL-53455-master' of git://github.com/lameze/moodle
Conflicts:
	lib/jquery/plugins.php
2016-03-22 09:44:49 +08:00
David Monllao cdc6407a10 Merge branch 'wip-MDL-53458-master' of git://github.com/abgreeve/moodle 2016-03-22 09:35:19 +08:00
Eloy Lafuente (stronk7) c572ac8f3a Merge branch 'MDL-53357-dont-break-urls' of https://github.com/brendanheywood/moodle 2016-03-22 02:25:40 +01:00
Andrew Nicols d7dbef7366 MDL-53181 core: Add selectors to user menu items 2016-03-22 09:20:21 +08:00
Simey Lameze 6648283a77 MDL-53512 libraries: update google API library to version 1.1.7 2016-03-22 08:38:11 +08:00
David Monllao 37f45f44b7 Merge branch 'MDL-53409-master' of git://github.com/crazyserver/moodle 2016-03-22 08:01:16 +08:00
Eloy Lafuente (stronk7) 675c6d4b54 Merge branch 'wip-MDL-45274-master' of https://github.com/marinaglancy/moodle 2016-03-22 00:45:48 +01:00
David Monllao ab89d2aebc MDL-53454 lib: Fix incorrect jquery version 2016-03-22 07:44:31 +08:00
David Monllao 854cd1464b Merge branch 'MDL-53454-master' of git://github.com/lameze/moodle 2016-03-22 07:42:52 +08:00
Eloy Lafuente (stronk7) 8eb8e5df83 Merge branch 'MDL-48307-master' of git://github.com/marinaglancy/moodle 2016-03-22 00:28:02 +01:00
David Monllao 88027ca371 Merge branch 'wip-MDL-53457-master' of git://github.com/abgreeve/moodle 2016-03-22 07:24:37 +08:00
Tim Hunt 0c8a90d7cb MDL-53507 quiz editing: was possible to lose questions
If you dragged a question to the top of the quiz, it could
disappear. Several other cases of dragging questions to the
same place in sequence, but to a different page/section were
also failing, and have been fixed.
2016-03-21 23:14:53 +00:00
David Monllao 145bb61d79 Merge branch 'wip-MDL-53465-master' of git://github.com/abgreeve/moodle 2016-03-22 07:12:52 +08:00
David Monllao bc9f8c5e1c Merge branch 'MDL-53518-master' of git://github.com/lameze/moodle 2016-03-22 06:56:40 +08:00
David Monllao f811003aae Merge branch 'MDL-53519-master' of git://github.com/lameze/moodle 2016-03-22 06:51:57 +08:00
Eloy Lafuente (stronk7) 197f99a808 Merge branch 'MDL-52978_master' of git://github.com/markn86/moodle 2016-03-21 23:07:16 +01:00
Eloy Lafuente (stronk7) b1871ae68b MDL-53034 mod_quiz: version mini-bump 2016-03-21 23:01:46 +01:00
Eloy Lafuente (stronk7) 5032fb4f54 Merge branch 'MDL-53034-master' of git://github.com/jleyva/moodle 2016-03-21 22:58:28 +01:00
Eloy Lafuente (stronk7) 3720f100ea Merge branch 'MDL-52888-master' of git://github.com/jleyva/moodle 2016-03-21 22:40:43 +01:00
Eloy Lafuente (stronk7) 7cc45b2e72 Merge branch 'MDL-52868-master' of git://github.com/jleyva/moodle 2016-03-21 22:20:00 +01:00
Dan Poltawski 26f59e5080 Merge branch 'MDL-52863-master' of git://github.com/jleyva/moodle 2016-03-21 17:42:19 +08:00
Dan Poltawski f6a0594e7e Merge branch 'MDL-52852-master' of git://github.com/jleyva/moodle 2016-03-21 17:27:20 +08:00
Dan Poltawski 121b46e033 Merge branch 'MDL-52830-master' of git://github.com/jleyva/moodle 2016-03-21 17:09:15 +08:00
Dan Poltawski 00a6c59936 MDL-52813 mod_quiz: bump version
Diverge from stable branching
2016-03-21 17:05:05 +08:00
Brendan Heywood 318e5cb302 MDL-53562 forum: Fixed missing forum subject Re: prefix 2016-03-21 19:41:40 +11:00
Dan Poltawski 2569face4e Merge branch 'MDL-52813-master' of git://github.com/jleyva/moodle 2016-03-21 16:37:57 +08:00
Brendan Heywood 852797d15c MDL-53049 themes: Offset href anchor when bootstrap header is fixed
On large screens the bootstrap header is static and can obscure the
anchor target content underneath it.
2016-03-21 19:25:51 +11:00
Willem Roes 96f56b6e29 MDL-52646 mod_scorm: fix missing launch_data for SCORM 2004 2016-03-21 09:00:50 +01:00
Dan Poltawski e372bb043e MDL-53260 cli: fix trailing whitespace 2016-03-21 15:23:37 +08:00
Dan Poltawski c4173bb8ba Merge branch 'MDL-53260-master' of git://github.com/junpataleta/moodle 2016-03-21 15:14:23 +08:00
Jun Pataleta 830f8bc780 MDL-53260 upgrade: Make lang option default to the site language 2016-03-21 15:08:59 +08:00
Dan Poltawski fd2cdbd2a7 Merge branch 'MDL-53407-editing-css' of https://github.com/Dagefoerde/moodle 2016-03-21 14:48:41 +08:00
Dan Poltawski 3a0b30c7c7 Merge branch 'MDL-52952-master' of https://github.com/xow/moodle 2016-03-21 14:44:15 +08:00
Brendan Heywood f725d955b9 MDL-53147 theme_bootstrapbase: Fix message page responsive layout issues 2016-03-21 17:26:31 +11:00
Dan Poltawski 5821479ef6 Merge branch 'MDL-53239_master' of git://github.com/dmonllao/moodle 2016-03-21 14:12:10 +08:00
Adrian Greeve 1f8ab584e9 MDL-52752 filters: Update MathJax to version 2.6 2016-03-21 14:10:00 +08:00
Dan Poltawski 732d4f8318 Merge branch 'MDL-53315-imap-namespace' of https://github.com/brendanheywood/moodle 2016-03-21 14:01:46 +08:00
Simey Lameze 931eef1226 MDL-53455 libraries: upgrade jquery migrate to version 1.4.0 2016-03-21 13:42:54 +08:00
Dan Poltawski 3afc41ea95 Merge branch 'wip-mdl-53564' of https://github.com/rajeshtaneja/moodle 2016-03-21 13:37:00 +08:00
Simey Lameze dfc7c0a9df MDL-53519 auth_cas: update cas to version 1.3.4 2016-03-21 13:16:03 +08:00
Simey Lameze af4a2f0d62 MDL-53518 libraries: upgrade mardown to 1.6.0 version 2016-03-21 13:04:05 +08:00
Simey Lameze b0d985e81f MDL-53513 libraries: update lessphp to version 1.7.0.10 2016-03-21 13:01:43 +08:00
James eb9a3e9379 MDL-53383 navigation: Do not require $type in remove()
navigation_node_collection -> remove function broken when $type is null
2016-03-21 12:16:26 +08:00
Simey Lameze 2f427c4cb4 MDL-53456 libraries: update requirejs to version 2.1.22 2016-03-21 12:10:48 +08:00
Cameron Ball 3e3f624549 MDL-53393 libraries: Upgrade Html2Text to 4.0.1 2016-03-21 12:05:33 +08:00
Nadav Kavalerchik 14aaa2d75b MDL-53260 upgrade: Option to display CLI upgrade messages in English 2016-03-21 11:59:50 +08:00
David Monllao 3357822d0c Merge branch 'MDL-52207-master' of git://github.com/cameron1729/moodle 2016-03-21 11:53:30 +08:00
Simey Lameze f0c0c1ea4b MDL-53454 libraries: upgrade jquery to 1.12.1 version 2016-03-21 11:43:15 +08:00
Dan Poltawski 1829dedd0e Merge branch 'MDL-53262-verp-confirm-from-support' of https://github.com/brendanheywood/moodle 2016-03-21 11:37:35 +08:00
Cameron Ball 052141abc7 MDL-52207 upgradelib: Replace uses of Zend_Server_Reflection
Now that Zend has been removed we can only use native PHP reflection
methods.
2016-03-21 11:03:24 +08:00
Cameron Ball b5e6ec4486 MDL-52207 libraries: Delete Zend framework
Let it RIP.
2016-03-21 11:02:55 +08:00
Dan Poltawski ac3d7aacfc Merge branch 'MDL-53489' of git://github.com/timhunt/moodle 2016-03-21 11:02:03 +08:00
Jay Jayswal efdbc2929d MDL-52158 auth: Improve recaptcha settings and help 2016-03-21 10:21:18 +08:00
Rajesh Taneja d242d4eb22 MDL-53564 behat: Fixed xpath to find social activity block 2016-03-21 10:17:44 +08:00
David Monllao 2904f66421 Merge branch 'MDL-49963' of https://github.com/andrewhancox/moodle 2016-03-21 10:04:29 +08:00
David Monllao c111ef9718 Merge branch 'MDL-48012_master' of git://github.com/markn86/moodle 2016-03-21 09:41:09 +08:00
Dan Poltawski d3c65e8c60 Merge branch 'MDL-53207' of https://github.com/dg711/moodle 2016-03-21 09:31:07 +08:00
David Monllao b756bd551a Merge branch 'MDL-52924-master' of git://github.com/jleyva/moodle
Conflicts:
	version.php
2016-03-21 09:25:19 +08:00
Dan Poltawski 52c6e158e0 Merge branch 'MDL-53548-master' of https://github.com/sammarshallou/moodle 2016-03-21 09:20:33 +08:00
Dan Poltawski ef67e6c5f8 Merge branch 'MDL-53412-master' of git://github.com/merrill-oakland/moodle 2016-03-21 08:57:22 +08:00
David Monllao 7960ad0571 Merge branch 'MDL-53509-master' of git://github.com/andrewnicols/moodle 2016-03-21 08:42:58 +08:00
David Monllao e787e681fc Merge branch 'MDL-49934-master' of git://github.com/jleyva/moodle 2016-03-21 08:39:15 +08:00
Brendan Heywood 6aec2748ee MDL-53262 inboundmessage: Fix inconsistent confirm From vs email body 2016-03-20 15:51:42 +11:00
Brendan Heywood d4274a5f2b MDL-53315 inboundmessage: Add support for IMAP Namespaces 2016-03-20 15:50:09 +11:00
dg711 c55494fef7 MDL-53207 message: display stock pic for msg from\to unreal user 2016-03-19 23:36:41 +05:30
Pau Ferrer Ocaña 176bcaa928 MDL-53409 question: Add tests for core_question_update_flag 2016-03-18 15:08:22 +01:00
Pau Ferrer Ocaña 7361b9682e MDL-53409 question: New WS core_question_update_flag 2016-03-18 15:08:17 +01:00
sam marshall f3474e2216 MDL-53548 Accessibility: Block show/hide keyboard access broken 2016-03-18 13:44:50 +00:00
Juan Leyva 48abca7996 MDL-53034 mod_quiz: New WS mod_quiz_get_quiz_feedback_for_grade 2016-03-18 09:56:31 +01:00
Juan Leyva 3e5c19a0ed MDL-52888 mod_quiz: New Web Service mod_quiz_view_attempt_review 2016-03-18 09:50:06 +01:00
Juan Leyva d9ef6ae0c2 MDL-52888 mod_quiz: New Web Service mod_quiz_view_attempt_summary 2016-03-18 09:49:29 +01:00
Juan Leyva 899983ee58 MDL-52888 mod_quiz: New Web Service mod_quiz_view_attempt 2016-03-18 09:27:43 +01:00
Mark Nelson 93af6a610e MDL-48012 tool_recyclebin: multiple changes before integration
- Added new icon for the recycle bin.
- Fixed issue where the course expiry setting was being used to display
  the expiry messages in the category bin.
- Fixed failing Behat tests.
- Tidied Behat tests.
  - General tidy up.
  - Deleted three Behat feature files.
    - Deleted 'delete_confirmation.feature' as it's testing JS functionality
      that was removed (see comment further down). The 'basic_functionality.feature'
      now tests deleting an activity and a course.
    - Deleted 'description.feature' and added the tested functionality to
      'basic_functionality.feature'.
    - Deleted 'logs_test.feature' and moved testing to PHPUnit tests.
  - Added another scenario for restoring a course.
- Removed protected mod settings - it was discussed that this was not a necessary
  feature. We should not be treating the recycle bin as a backup.
- Renamed events to conform to guidelines.
- Wrote new PHPUnit tests for events.
- Tidied up existing PHPUnit tests and extended them.
- Alphabetised lang file.
- Made changes to strings and string identifiers in the lang file and changed usages in code.
- Changed setting names to better identify their purpose.
- Renamed classes and file names so it's easier to identify their purpose.
- Renamed the 'deleted' column to 'timecreated' for consistency with other
  Moodle tables, and to easily identify what the value represents.
- Changed the columns 'category' and 'course' to 'categoryid' and
  'courseid' respectively.
- Changed the name of the table indexes for consistency with core.
- Removed module.js and any use of it and replaced with Moodle core libraries
  for JS confirmation.
- Removed 'noevent' argument in delete_item().
- Removed unnecessary capabilities - we can use the same capabilties for both
  recycle bins based on the context the capability was given.
- Removed '_' in the capability definitions to keep it consistent with core.
- Set page layout and headings for index.php - varies between the course and
  category recycle bins.
- Deleted styles.css and centred columns using the flexible_table API.
- Fixed IDE and codechecker complaints.
- Made use of the files API, rather than writing directly to
  "$CFG->dataroot . '/recyclebin'".
- Used make_temp_directory rather than expecting it to exist.
- Replaced debugging function calls with calls to the backup API to
  display errors.
- Deleted the temporary backup file after a successful restore, or if it fails.
- If the restore fails for a course, delete the course we created.
- Removed unnecessary '\' characters when not in namespace.
- Used configduration class for expiry times in the settings.
- Cleanup course bin when a course is deleted.
- Cleanup a category bin when a category is deleted.
- Removed unnecessary throw tags.
- Changed default settings.
2016-03-18 14:12:08 +08:00
Grigory Baleevskiy 53754839d2 MDL-52978 core_lib: fixed wrong days showing for dates in datepicker 2016-03-18 12:29:58 +08:00
David Monllao 8f8517ec1f MDL-53543 cache: Invalidate grade_categories by event
We can switch the cache to session level if we are able to purge
different users caches, not only the one that belongs to the user
updating a grade category.
2016-03-18 10:02:05 +08:00
Adrian Greeve 30f4e2d305 MDL-53465 lib: Upgrade PHPMailer to 5.2.14 2016-03-18 09:32:39 +08:00
Adrian Greeve 1549528a67 MDL-53458 lib: Upgrade Mustache.js to 2.2.1 2016-03-18 09:31:49 +08:00
Adrian Greeve f9c2f88e39 MDL-53457 lib: Upgrade Mustache to 2.10.0 2016-03-18 09:30:56 +08:00
Adrian Greeve dba57f8d6e MDL-52619 lib: Update of ADODB to 5.20.3 2016-03-18 09:29:22 +08:00
Marina Glancy 372a92a7dc MDL-50941 mod_feedback: change default legnth for shorttext to 255 2016-03-18 08:18:54 +08:00
Marina Glancy eb97811bee MDL-52760 forms: notify form changes in autocomplete element 2016-03-18 08:16:55 +08:00
Marina Glancy 67fc782fe8 MDL-53274 core: in AJAX throw exception if page context was not set 2016-03-18 08:08:50 +08:00
Marina Glancy 21d9596cca MDL-53254 tags: tags management inplace editable 2016-03-18 08:07:19 +08:00
Marina Glancy 352bfbf55c MDL-53254 tags: tag collections inplace editable 2016-03-18 08:07:19 +08:00
Marina Glancy 131b78b9a7 MDL-53254 tags: tag areas inplace editable 2016-03-18 08:07:19 +08:00
Marina Glancy 5e9b2eda3c MDL-45274 mod_feedback: show heading on non-respondents page 2016-03-18 07:56:50 +08:00
Marina Glancy 4832a0b3dd MDL-53227 mod_feedback: merge files complete_guest.php and complete.php
Simplify access check, add behat tests
2016-03-18 07:54:59 +08:00
Juan Leyva 3589b6591a MDL-52868 mod_quiz: New Web Service mod_quiz_get_attempt_review 2016-03-17 17:15:52 +01:00
Juan Leyva 98e6869088 MDL-52863 mod_quiz: New Web Service mod_quiz_process_attempt 2016-03-17 16:49:40 +01:00
Juan Leyva 4911b5b254 MDL-52863 mod_quiz: Move processattempt.php code to new API 2016-03-17 16:49:39 +01:00
Eloy Lafuente (stronk7) fed66ad9e2 weekly release 3.1dev 2016-03-17 14:00:25 +01:00
Eloy Lafuente (stronk7) 9ea396b8bd Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-03-17 14:00:20 +01:00
Brendan Heywood 9c489dbcc4 MDL-53357 admin: Don't break urls after saving admin settings 2016-03-17 21:42:15 +11:00
David Monllao 8454494abc Merge branch 'm31_MDL-48680_Add_Score_Status_Events' of git://github.com/scara/moodle 2016-03-17 16:34:44 +08:00
Eric Merrill 5dc4624ced MDL-53412 search: Correctly handle Solr over SSL 2016-03-17 01:13:15 -04:00
David Monllao 5a3ddfd2e2 Merge branch 'wip-mdl-46891-m' of git://github.com/rajeshtaneja/moodle 2016-03-17 12:45:47 +08:00
Rajesh Taneja 8c66773dac MDL-46891 behat: Allow replacing string in profile for parallel run
Adding a replace with run process in profile
should be allowed
2016-03-17 12:20:22 +08:00
David Monllao 01f4ea8cce MDL-53239 grader report: Add all names to error msg 2016-03-17 10:57:57 +08:00
Dan Poltawski 922c611ff4 Merge branch 'MDL-51374_multiple-connections' of git://github.com/dmonllao/moodle 2016-03-17 10:50:06 +08:00
Dan Poltawski 6f1cd967b5 Revert "MDL-52133 mod_assign: Pass userid param when saving grade"
This reverts commit b2b4f7c485.
2016-03-17 09:31:08 +08:00
Andrew Nicols 48a9ef9e96 MDL-53509 mod_forum: Stop over-escaping quoted variables
{{# quote }}<a href=\"foo\">{{/ quote }}

becomes:

    "<a href=\\"foo\\">"

This causes a mustache syntax error.

The quote helper negates the need to escape quotes in normal use, e.g.:

    {{# quote }}<a href="foo">{{/ quote }}

which instead becomes:

    "<a href=\"foo\">"
2016-03-17 08:33:48 +08:00
Matteo Scaramuccia beafa1c376 MDL-48680 mod_scorm: Fixed the missing keys when updating a record.
Thanks to Rajesh Taneja for his testing.
2016-03-16 23:39:16 +01:00
Juan Leyva bdf1ac2796 MDL-52924 mod_assign: New WS mod_assign_get_submission_status 2016-03-16 17:23:20 +01:00
Juan Leyva 3216f6160b MDL-52924 mod_assign: Move renderables creation to methods 2016-03-16 17:23:19 +01:00
David Monllao a696bb9ebd MDL-51374 dml: Identifying the cache with connection data 2016-03-16 17:17:39 +08:00
David Monllao 94ffadcdcd Merge branch 'MDL-52788-master' of git://github.com/jleyva/moodle 2016-03-16 14:47:07 +08:00
Andrew Nicols 3e9cf4f941 Merge branch 'MDL-52821-master-fix' of github.com:xow/moodle 2016-03-16 13:53:57 +08:00
David Monllao f18561a2e2 MDL-51374 dml: simpledata to temp_tables cache 2016-03-16 13:43:36 +08:00
John Okely a7be136f20 MDL-52821 lti: Remove summary from unit test 2016-03-16 13:24:22 +08:00
Marina Glancy 322f314155 MDL-51867 scales: any plugin type can declare a scale as used 2016-03-16 13:15:36 +08:00
Andrew Nicols 0758e02e84 Merge branch 'MDL-52821-master-fix' of github.com:xow/moodle 2016-03-16 12:23:41 +08:00
Eric Merrill 0aa3fedb23 MDL-53354 search: Fix unit test call to commit 2016-03-16 12:07:44 +08:00
John Okely 2a5bb939c2 MDL-52821 lti: Change tool_consumer_instance_description to site fullname
And change tool_consumer_instance_name to site shortname
2016-03-16 12:04:09 +08:00
Andrew Nicols 83fc2cbd0d MDL-52574 core: Remove ASC/DESC when adding params from sort 2016-03-16 10:58:04 +08:00
David Monllao ad90c7a5d5 MDL-51374 dml: Delete selectively instead of purge for tmptables 2016-03-16 10:48:41 +08:00
David Monllao ef474575e1 Merge branch 'MDL-51374-master-new' of git://github.com/lameze/moodle
Conflicts:
	lib/db/caches.php
2016-03-16 10:13:14 +08:00
David Monllao 5162ffec0d Merge branch 'wip-MDL-52869-master' of https://github.com/marinaglancy/moodle 2016-03-16 10:05:52 +08:00
Andrew Nicols 0eb474ec49 Merge branch 'MDL-51828-master' of git://github.com/FMCorz/moodle 2016-03-16 10:03:12 +08:00
David Monllao 4235b98110 Merge branch 'wip-MDL-53026-master' of https://github.com/marinaglancy/moodle 2016-03-16 10:00:28 +08:00
Frederic Massart e357d799cd MDL-51828 repository_wikimedia: Always use PNG for SVG files 2016-03-16 09:52:09 +08:00
Eloy Lafuente (stronk7) 3edc162611 Merge branch 'MDL-53354-master' of git://github.com/merrill-oakland/moodle 2016-03-16 01:09:45 +01:00
Andrew Nicols c7f04791f3 MDL-52386 auth_ldap: Typo fix for suspended user 2016-03-16 08:03:05 +08:00
Andrew Nicols baa536188b Merge branch 'MDL-52386-master' of git://github.com/cameron1729/moodle 2016-03-16 07:50:10 +08:00
Eloy Lafuente (stronk7) 987226c090 Merge branch 'MDL-53139' of https://github.com/dg711/moodle 2016-03-16 00:12:18 +01:00
Eloy Lafuente (stronk7) 1e60d7e482 Merge branch 'MDL-53430-master' of git://github.com/merrill-oakland/moodle 2016-03-16 00:03:31 +01:00
Eloy Lafuente (stronk7) 1d57167f15 Merge branch 'mdl-53133-master' of git://github.com/deraadt/moodle 2016-03-15 23:52:19 +01:00
Dan Poltawski 4539892cda MDL-53149 mod_data: update backup and webservices for timemodified
Amended to add support for standard restore apply_date_offset().
2016-03-15 23:41:55 +01:00
Dan Poltawski b174e9efa6 MDL-53149 mod_data: add timemodified field to db schema 2016-03-15 23:31:32 +01:00
Eloy Lafuente (stronk7) e44c0acf01 Merge branch 'MDL-53323' of https://github.com/mr-russ/moodle 2016-03-15 19:43:26 +01:00
Tim Hunt 7308acffa0 MDL-53489 quiz editing: fix display of long section headings 2016-03-15 18:35:35 +00:00
AMOS bot d376282647 Automatically generated installer lang files 2016-03-16 00:04:06 +08:00
Marina Glancy f59f89b4a8 MDL-52869 course: use inplace_editable for activity names 2016-03-15 17:19:38 +08:00
Mark Nelson 1c42ad7135 MDL-48012 core: fixed failing unit tests 2016-03-15 16:58:47 +08:00
Mark Nelson 393038961e MDL-48012 core: added recyclebin to list of standard tools 2016-03-15 16:58:47 +08:00
Mark Nelson c27596c550 MDL-48012 tool_recyclebin: used new hooks in core 2016-03-15 16:58:46 +08:00
Mark Nelson e78cd9b7d2 MDL-48012 tool_recyclebin: converted to an admin tool 2016-03-15 16:58:46 +08:00
Skylar Kelty 60444e5327 MDL-48012 tool_recyclebin: added recyclebin to core 2016-03-15 16:58:46 +08:00
Mark Nelson ea88fd4e66 MDL-48012 core: added pre_*_delete hooks 2016-03-15 16:58:46 +08:00
Andrew Nicols 37f9c6a2d6 Merge branch 'MDL-53301_master' of git://github.com/dmonllao/moodle 2016-03-15 15:50:15 +08:00
David Monllao 8ea783f315 Merge branch 'MDL-53057-master' of git://github.com/FMCorz/moodle 2016-03-15 15:19:01 +08:00
David Monllao 016208776f Merge branch 'MDL-53179' of https://github.com/andrewhancox/moodle 2016-03-15 15:07:46 +08:00
David Monllao 858ad11363 MDL-48680 scorm: Marking cmielement_submitted as abstract 2016-03-15 15:01:57 +08:00
David Monllao e022b79164 Merge branch 'm31_MDL-48680_Add_Score_Status_Events' of https://github.com/scara/moodle 2016-03-15 14:56:50 +08:00
Simey Lameze 87a3e50192 MDL-51374 core_dml: change database layer to pass table name as parameter 2016-03-15 14:43:45 +08:00
Andrew Nicols d89095cd3d Merge branch 'MDL-53234-support-email' of https://github.com/brendanheywood/moodle 2016-03-15 13:43:22 +08:00
Andrew Nicols 295ab83d2e Merge branch 'MDL-53351-master-lti-notice' of git://github.com/mudrd8mz/moodle 2016-03-15 12:48:06 +08:00
Andrew Nicols e77a15875c Merge branch 'MDL_52574_master' of https://github.com/alexandru-elisei/moodle 2016-03-15 12:23:52 +08:00
Andrew Nicols ab5c48b0d5 Merge branch 'MDL-53279_master' of git://github.com/dmonllao/moodle 2016-03-15 12:19:22 +08:00
Adrian Greeve 5cb5d459c9 MDL-53279 grades: Additional comments
In the hopes that other people will understand this code.
2016-03-15 12:18:31 +08:00
David Monllao f32e6ffc00 MDL-53279 grades: Recalculate only required items
Skip grade categories and calculated grade items that do not depend
on .
2016-03-15 12:18:23 +08:00
Andrew Nicols 97a3b6d23d Merge branch 'MDL-48838_master' of git://github.com/dmonllao/moodle 2016-03-15 12:06:48 +08:00
Simey Lameze 26e7eceefc MDL-51374 cache: add temp_tables cache definition
Also a helper method get_temp_tables_cache() has been created for temporary tables cache operations.
2016-03-15 10:57:43 +08:00
David Monllao 03bd6c21ad Merge branch 'MDL-52934-master' of git://github.com/FMCorz/moodle 2016-03-15 08:58:33 +08:00
Juan Leyva 8e76a2fadb MDL-49934 assign: Allow admins, managers to use get_assignments ws 2016-03-14 10:09:54 +01:00
Frederic Massart bbd7f7f73a MDL-52934 repository_boxnet: Deprecate v1 to v2 migration tool 2016-03-14 16:56:11 +08:00
Juan Leyva 2fa6c632c2 MDL-52924 mod_assign: Return editpdf subplugin file areas 2016-03-14 09:53:40 +01:00
David Monllao 01f8945b81 Merge branch 'wip-mdl-46891-fix' of https://github.com/rajeshtaneja/moodle 2016-03-14 14:35:00 +08:00
Rajesh Taneja af7cadbb4d MDL-46891 behat: Increment counter 2016-03-14 14:24:36 +08:00
David Monllao c854ce6eb7 Merge branch 'MDL-53102-messageid' of https://github.com/brendanheywood/moodle 2016-03-14 14:17:41 +08:00
David Monllao f8aaf45d30 Merge branch 'MDL-51986-master' of git://github.com/dpalou/moodle 2016-03-14 13:59:21 +08:00
Andrew Nicols 459ad3d35d Merge branch 'MDL-53252_master' of git://github.com/dmonllao/moodle 2016-03-14 13:35:32 +08:00
David Monllao 8e9cafbee7 Merge branch 'MDL-53304' of git://github.com/timhunt/moodle 2016-03-14 13:26:12 +08:00
David Monllao 28774c9263 MDL-48838 grades: New grade_categories cache 2016-03-14 11:20:35 +08:00
Brendan Heywood 344178035d MDL-53102 tests: corrected phpdocs in email diversion tests
(Introduced by previous patch MDL-52818)
2016-03-14 14:20:10 +11:00
Brendan Heywood 54dceeed88 MDL-53102 email: Ensure all emails generate consistent Message-ID URLs 2016-03-14 14:20:10 +11:00
Andrew Nicols 2e2e4caa7e Merge branch 'MDL-51887-master' of git://github.com/dpalou/moodle 2016-03-14 11:17:40 +08:00
Andrew Nicols bac8a365fa Merge branch 'MDL-52821-master' of https://github.com/xow/moodle 2016-03-14 10:58:25 +08:00
David Monllao edeafdd0e7 MDL-53252 grades: Skip user regrading if only feedback changes 2016-03-14 08:18:28 +08:00
David Monllao 488366bed8 MDL-53301 grades: Update gradeitems aggregationcoef2 only when required 2016-03-14 08:08:39 +08:00
Matteo Scaramuccia f5bc19c877 MDL-48680 mod_scorm: Added new events: {scoreraw,status}_submitted.
Thanks to Ben Johnson and Josh Willcock for their contribution to this
patch.
2016-03-13 09:58:51 +01:00
Juan Leyva 96d5607cba MDL-52852 mod_quiz: New WS mod_quiz_save_attempt 2016-03-11 16:16:02 +01:00
Dani Palou 9a4c52221e MDL-51986 wiki: Add tests for mod_wiki_get_page_contents 2016-03-11 14:09:36 +01:00
Dani Palou 5d94e34322 MDL-51986 wiki: New WS mod_wiki_get_page_contents 2016-03-11 14:09:36 +01:00
Dani Palou ed4fb2bf7e MDL-51887 wiki: Add tests for mod_wiki_get_subwiki_pages 2016-03-11 13:35:30 +01:00
Dani Palou 96abf9af07 MDL-51887 wiki: New WS mod_wiki_get_subwiki_pages 2016-03-11 13:35:30 +01:00
Alexandru Elisei b6d1286414 MDL-52574 accesslib: Prevent get_role_users() fail in certain cases
The function get_role_users() requires the caller to include the $sort fields in
the $fields argument. On PostgreSQL this will cause the function to fail when
the default $sort fields aren't part of the requested fields. The behavior of
the function is augmented to add the $sort fields to $fields if they are not
already present.
2016-03-11 13:10:01 +02:00
dg711 92cec53b47 MDL-53139 admin: case diff issue with email 2016-03-11 16:27:34 +05:30
Juan Leyva bc9733e710 MDL-52830 mod_quiz: New Web Service mod_quiz_get_attempt_summary 2016-03-11 11:06:50 +01:00
Juan Leyva 4c08658a23 MDL-52813 mod_quiz: Refactor and new quiz external tests 2016-03-11 11:05:15 +01:00
Juan Leyva bc247b0dee MDL-52813 mod_quiz: New Web Service mod_quiz_get_attempt_data 2016-03-11 11:05:15 +01:00
Juan Leyva 1d57e4fea5 MDL-52813 mod_quiz: New method for getting the type of a question 2016-03-11 10:28:17 +01:00
Juan Leyva b89544404e MDL-52788 mod_quiz: New Web Service mod_quiz_start_attempt 2016-03-11 10:22:47 +01:00
Juan Leyva 0057c2ced6 MDL-52788 mod_quiz: Move start attempt code to new API functions 2016-03-11 10:19:53 +01:00
Cameron Ball 6141dcfe67 MDL-52386 auth_ldap: Add support for disabled accounts 2016-03-11 16:48:18 +08:00
Eloy Lafuente (stronk7) cfc621df29 Merge branch 'wip-mdl-46891' of https://github.com/rajeshtaneja/moodle 2016-03-11 03:57:03 +01:00
Rajesh Taneja e11c21452b MDL-46891 behat: Point to moodle-behat-extension 2016-03-11 10:51:17 +08:00
Rajesh Taneja c4c2cd59eb MDL-46891 behat: Improved exit status of parallel run
Exit status should contain pass/fail information
of each run it is executing. Every bit of status
will have information of pass/fail status of parallel
process
2016-03-11 10:51:17 +08:00
Rajesh Taneja 0e1c34e51a MDL-46891 behat: Added support for $CFG->behat_profiles
This config will be supported to avoid broken configuration
in future. As this is limited, we need will still use
->behat_config to set config values which can't be set by
behat_profiles
2016-03-11 10:51:17 +08:00
Rajesh Taneja e01012e96d MDL-46891 behat: Driver specific fixes.
1. Browserkit doesn't handle [] in name
2. Grades are not visible in viewport and might fail
   with few drivers, increasing size of window to ensure
   grades are visible and can be modified.
3. Click edit first to see grade link
4. Expand fields before setting value
5. Updated xpath, as crawler update it.
6. Hover fails to show icon
2016-03-11 10:51:16 +08:00
Rajesh Taneja b73e5047af MDL-46891 core_grade: Steps are not valid as element is disabled 2016-03-11 10:51:16 +08:00
Rajesh Taneja afccc03f14 MDL-46891 behat: Phantomjs require explicit change event
It fails with multiple select while selecting group
2016-03-11 10:51:16 +08:00
Rajesh Taneja 0f3fba7d66 MDL-46891 behat: If setup problem then stop execution
Exception are handled via CallCenter and execution is
not stopped if execption is thrown in beforescenario.

If any setup problem encountered, then stop execution.
2016-03-11 10:51:16 +08:00
Rajesh Taneja 07298309dc MDL-46891 behat: Move wait in behat_base so it can be used easily 2016-03-11 10:51:16 +08:00
Rajesh Taneja 86055d11f9 MDL-46891 behat: Optimised login step and context helper 2016-03-11 10:51:15 +08:00
Rajesh Taneja 42ad096fdb MDL-46891 Behat: Added support for behat 3 2016-03-11 10:51:15 +08:00
John Okely 67cdf4efae MDL-52952 forms: Fix chrome autofilling passwords again
In MDL-45772 a hack was introduced to some forms to stop browsers from
putting the user's password into password fields in forms unrelated to
logging in.

Chrome now no longer fills the user's password in the first password
field in the page. There now needs to be a plain text input above it
for the username too.
2016-03-11 10:26:50 +08:00
Marina Glancy 48983fb9e7 MDL-53026 cohorts: edit names and idnumbers in place 2016-03-11 08:14:49 +08:00
Eric Merrill 208a79c920 MDL-53430 dml: Fix recordset_walk for additional parameters 2016-03-10 16:32:02 -05:00
Eric Merrill f6b425e2de MDL-53354 search: Add ability to limit search doc to a user 2016-03-10 09:19:05 -05:00
Eloy Lafuente (stronk7) e8952c5951 weekly release 3.1dev 2016-03-10 13:30:56 +01:00
Eloy Lafuente (stronk7) cdd89b0ceb Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-03-10 13:30:51 +01:00
Rajesh Taneja d2ee22e744 MDL-27628 behat: Added delay to ensure the value is set.
After user type there is a 400ms delay, then search
Adding 2 sec delay to ensure search is finished before
click event is triggred
2016-03-10 13:17:11 +01:00
Mark Nelson 9621d5a7ae MDL-52252 core_course: removed unused variables
The call to 'context_coursecat::instance($COURSE->category);'
was causing Moodle to throw an exception due to non-existent
category.
2016-03-10 13:17:11 +01:00
Damyon Wiese 6b04655573 MDL-27628 enrol_meta: Set options to exclude existing courses, and the current course
When adding a new meta enrolment, you should not be able to select the current course,
or any courses with an existing meta link.
2016-03-10 13:17:10 +01:00
Eloy Lafuente (stronk7) fac004e28b MDL-51167 tool_monitor: fix too strict condition & minor cleanup 2016-03-10 13:17:10 +01:00
Eloy Lafuente (stronk7) 7e9b046a50 Merge branch 'MDL-53369' of git://github.com/timhunt/moodle 2016-03-10 13:17:09 +01:00
Simey Lameze ce59760476 MDL-50705 auth_db: apply standard cleaning to all fields
Also unit tests were added to cover the new clean_data() method.
2016-03-10 13:17:08 +01:00
Simey Lameze dccf9ca308 MDL-50705 core_user: introduce new fill_properties_cache()
Also the get_property_definition() was created to get the property without retrieve the whole definition cache and
    unit tests were created to tests those new methods.
2016-03-10 13:17:08 +01:00
David Monllao fb0b522035 Merge branch 'MDL-27628-master' of git://github.com/damyon/moodle 2016-03-10 13:17:07 +01:00
Jan C. Dageförde 496929a2e8 MDL-53407 themes: Add CSS class editing only if appropriate
The CSS class `editing` should only be added if the user is in editing
mode AND she is allowed to edit the rendered page. `user_is_editing()`
achieves exactly this, without changing behaviour for the appropriate
pages.
2016-03-10 10:44:48 +01:00
Brendan Heywood 162674074e MDL-53234 admin: Fixed wrong default support email bug 2016-03-09 20:45:56 +11:00
David Monllao 9fff0c469f MDL-52252 tags: Bump version to add course_modules area 2016-03-09 15:36:30 +08:00
David Monllao b8bc9037f1 Merge branch 'wip-MDL-52252-master' of https://github.com/marinaglancy/moodle 2016-03-09 15:35:16 +08:00
Marina Glancy 1ea2f7d650 MDL-52252 tags: course module tags small correction 2016-03-09 15:33:25 +08:00
David Monllao 9de085c6fc MDL-52786 quiz: Adding mod_quiz_get_combined_review_options to mobile service 2016-03-09 15:29:41 +08:00
David Monllao da51a9be95 Merge branch 'MDL-52786-master' of git://github.com/jleyva/moodle
Conflicts:
	lib/db/services.php
2016-03-09 15:29:02 +08:00
David Monllao ba8afbdb07 MDL-52785 quiz: Adding mod_quiz_get_user_best_grade to mobile service 2016-03-09 15:18:11 +08:00
David Monllao 20097a057d Merge branch 'MDL-52785-master' of git://github.com/jleyva/moodle
Conflicts:
	lib/db/services.php
2016-03-09 15:16:48 +08:00
David Monllao 5ca1a77649 MDL-52670 quiz: Adding function to mobile service 2016-03-09 15:12:10 +08:00
David Monllao 9b701a37e4 Merge branch 'MDL-52670-master' of git://github.com/jleyva/moodle
Conflicts:
	lib/db/services.php
2016-03-09 15:10:54 +08:00
David Monllao 11bad2b099 Merge branch 'MDL-51324-master' of git://github.com/damyon/moodle 2016-03-09 14:20:18 +08:00
Nadav Kavalerchik dffcf46f43 MDL-52252 Tags: Add tags to modules (Resources and Activities) 2016-03-09 14:19:47 +08:00
Andrew Nicols d84a657dda MDL-53273 search: Whitespace fix 2016-03-09 14:14:33 +08:00
Brendan Heywood 644f44cf50 MDL-53314 inboundmessage: Added $CFG->debugimap developer config item 2016-03-09 17:13:14 +11:00
Andrew Nicols 02726a29cc Merge branch 'MDL-53273-master' of git://github.com/merrill-oakland/moodle 2016-03-09 14:11:17 +08:00
Andrew Nicols 0809a0ea02 Merge branch 'MDL-53247_fix' of git://github.com/dmonllao/moodle 2016-03-09 14:05:00 +08:00
David Monllao ee72a4dbf3 MDL-53247 search: Require search to be available before running indexer script 2016-03-09 13:37:33 +08:00
Damyon Wiese 6f326bd204 MDL-27628 enrol_meta: Use new multi-course selector
Allows adding multiple instances of the meta enrol plugin at once.

I had to add support to the autocomplete element for filling the field from behat
when it was not using tags. I also had to make the shortnames more easily searchable
and unique in the behat feature file.
2016-03-09 13:32:08 +08:00
Damyon Wiese 3e66b0fccd MDL-51324 coursecat: Add to search courses unit test
Cover new option "requiredcapabilities".
2016-03-09 13:30:28 +08:00
Damyon Wiese 91ab264cf5 MDL-51324 forms: fix autocomplete element double selection bug
Incorrect types were preventing the currently selected values from
being removed from the new values returned via ajax.

Also fix a selection bug with autocomplete+ajax+singleselect.
2016-03-09 13:30:27 +08:00
Damyon Wiese 235ef57a3d MDL-51324 forms: Add a new course selector
This is a squashed commit containing a number of changes:

This is an ajax driven course selector that has searching etc. It can select single, or multiple courses.
Make course selector accept a list of courses to exclude
courseselector - lookup coursename on setValue
Use the get_course_display_name_in_list function to generate the course names
Add a throttle to auto-complete to reduce spamming the server
Do a single query to fetch all the courses in the mform element when validation fails
Fix core course search function to return results when there are less than 2 chars in the query.
Handle setData with an empty array in new course selector
2016-03-09 13:30:18 +08:00
Eric Merrill 9502c7f539 MDL-53281 search: Properly set timeout, and don't wait for optimize 2016-03-09 13:30:18 +08:00
Dan Poltawski be8b6b489a MDL-53327 search: add missing pluginfo lang strings
AMOS BEGIN
 CPY [searchengine,admin],[type_search,plugin]
AMOS END
2016-03-09 13:30:18 +08:00
Andrew Nicols f758ad33e4 MDL-49897 calendar: mktime => usergetmidnight 2016-03-09 13:18:09 +08:00
Michael de Raadt b2b4f7c485 MDL-52133 mod_assign: Pass userid param when saving grade 2016-03-09 15:20:56 +11:00
Andrew Nicols 233b677bd4 MDL-51571 lti: Whitespace fixes 2016-03-09 12:05:08 +08:00
Andrew Nicols b80343e223 Merge branch 'MDL-51571_ltiErrorHandler' of https://github.com/moodlerooms/moodle 2016-03-09 11:11:32 +08:00
Andrew Nicols 4f9303c443 Merge branch 'MDL-53271-master' of git://github.com/merrill-oakland/moodle 2016-03-09 11:05:44 +08:00
David Monllao c17e0034a1 Merge branch 'MDL-50032-master' of git://github.com/jleyva/moodle 2016-03-09 10:55:18 +08:00
Andrew Nicols bd2e5ef17d Merge branch 'MDL-53325-master' of git://github.com/merrill-oakland/moodle 2016-03-09 10:06:47 +08:00
Andrew Nicols 020d27a733 Merge branch 'MDL-53281-master' of git://github.com/merrill-oakland/moodle 2016-03-09 09:25:07 +08:00
Andrew Nicols 65e7fee267 Merge branch 'MDL-53327-master' of git://github.com/danpoltawski/moodle 2016-03-09 08:48:44 +08:00
Andrew Nicols f4b6081ebf Merge branch 'MDL-52522-master' of git://github.com/cameron1729/moodle 2016-03-09 08:35:14 +08:00
Simey Lameze 85984545a9 MDL-53031 mod_assign: add session check on assignment plugins management 2016-03-08 19:46:07 +01:00
AMOS bot 416dcf62b1 Automatically generated installer lang files 2016-03-09 00:04:02 +08:00
Jun Pataleta 8e24a54e52 MDL-52433 user: Remove unnecessary capability check 2016-03-08 12:23:44 +01:00
Cameron Ball fa8e27b32b MDL-52522 grades: Add rescale grades option for grade categories.
When a grade category is overridden, it starts to behave like a regular grade item.
Therefore we need similar behaviour to what was implemented in MDL-48634.
2016-03-08 16:26:44 +08:00
David Monllao 406151d8e2 Merge branch 'wip-mdl-53300' of https://github.com/rajeshtaneja/moodle 2016-03-08 16:13:42 +08:00
David Monllao d94df7afa8 MDL-41648 gradingforms: Remove unnecessary attr 2016-03-08 15:32:19 +08:00
David Monllao f084c4b231 Merge branch 'wip-MDL-41648' of https://github.com/dg711/moodle 2016-03-08 15:32:17 +08:00
Andrew Nicols 540394e1db Merge branch 'MDL-49897' of https://github.com/rushi963/moodle 2016-03-08 15:05:50 +08:00
David Monllao 3f5c6ff2de Merge branch 'MDL-50218-master' of https://github.com/xow/moodle 2016-03-08 14:39:54 +08:00
Andrew Nicols d5f05f77f3 Merge branch 'MDL-53010-master' of git://github.com/lameze/moodle 2016-03-08 14:34:17 +08:00
David Monllao e86fb5043f Merge branch 'MDL-52068-master' of git://github.com/FMCorz/moodle 2016-03-08 14:29:24 +08:00
David Monllao f53b50e628 Merge branch 'MDL-52984' of https://github.com/rushi963/moodle 2016-03-08 14:04:07 +08:00
David Monllao 68e8a61fb1 Merge branch 'MDL-52718-master' of git://github.com/cameron1729/moodle 2016-03-08 13:57:30 +08:00
Andrew Nicols 94d4d0179a Merge branch 'MDL-53047-login-anchor' of https://github.com/brendanheywood/moodle 2016-03-08 13:15:00 +08:00
Cameron Ball 18ec7521da MDL-52718 block_community: Send XML-RPC request correctly
mnet has its own separate XML-RPC implementation which supports
introspection. So even though we were sending incorrectly formatted
parameters, our previous XML-RPC implementation could work out how
to mangle the parameters to be correct. Introspection is not a
part of the XML-RPC specification and we should not rely on it. Our
current XML-RPC client/server implementation does not support it either.

Therefore we should always send data in the expected format.
2016-03-08 10:46:14 +08:00
Simey Lameze b324802f36 MDL-51167 tool_monitor: check course visibility and user capabilities 2016-03-08 03:08:33 +01:00
Andrew Nicols 8a3d695d6c Merge branch 'MDL-53210-master' of git://github.com/marinaglancy/moodle 2016-03-08 09:21:47 +08:00
David Monllao 36d6f2d0c9 Merge branch 'MDL-53247-master' of git://github.com/danpoltawski/moodle 2016-03-08 09:17:13 +08:00
Cameron Ball 1688564a6e MDL-52651 htmlpurifier: Append rel=noreferrer to links.
Thank you to Zachary Durber for originally working on this issue.
2016-03-08 02:05:55 +01:00
David Monllao 9eede5bb9a Merge branch 'MDL-53350' of git://github.com/timhunt/moodle 2016-03-08 09:04:01 +08:00
David Monllao 28a6a36d9d Merge branch 'MDL-53353' of git://github.com/timhunt/moodle 2016-03-08 08:44:28 +08:00
Andrew Nicols 889b92c1c0 Merge branch 'MDL-53291_ajax_fix' of https://github.com/BenKelada/moodle 2016-03-08 07:43:31 +08:00
Krista Koivisto 7b9fbb1cf4 MDL-52774 ajax: Require authentication when getting nav branch
When getting the navigation branch data through AJAX, require
login if forcelogin is set.
2016-03-08 00:39:45 +01:00
Juan Leyva 711f9468d4 MDL-52901 mod_assign: Check due dates in external save_submission 2016-03-08 00:12:29 +01:00
David Monllao ae66ed23b6 MDL-52378 singleview: Using is_disabled instead of is_locked 2016-03-07 23:04:52 +01:00
Travis Noll 43cd0e3c9b MDL-52378 Singleview: Exclude Grade Attribute Permissions
Singleview users must have Manage Grade permission to modify the
Exclude grade attribute.
2016-03-07 23:04:42 +01:00
Juan Leyva 39b8513763 MDL-52808 calendar: Do not return events for hidden activities 2016-03-07 22:36:31 +01:00
David Mudrák a5fae3b0d2 MDL-52727 mod_data: Improve output of the form fields values
This issue mostly affects the search form fields. Submitted values for
these fields are typically obtained via optional_param() with
PARAM_NOTAGS specified as the parameter type - see parse_search_field()
methods. Such values themselves are not safe enough to be printed back
directly into the HTML as they might contain malicious code.

While working on the patch, some other places with weak protection were
detected and fixed.

In case of the itemid parameters, explicit clean_param() is added to
make sure we cast the value as an integer. That should make the s()
unnecessary but it was added anyway as an extra protection (just in case
the code flow changes or the parts of the code are re-used elsewhere).
2016-03-07 22:08:46 +01:00
Tim Hunt 981743b3ba MDL-53369 qtype_ddwtos: prevent boxes on consecutive lines touching 2016-03-07 15:22:54 +00:00
Andrew Hancox 5b7c500a71 MDL-49963 core: Select all button on participant list works across pages 2016-03-07 11:08:12 +00:00
Juan Leyva 1f67c0b83e MDL-52786 mod_quiz: New WS mod_quiz_get_combined_review_options 2016-03-07 11:46:32 +01:00
Juan Leyva c76425e869 MDL-52786 mod_quiz: Fix quiz_get_combined_reviewoptions 2016-03-07 11:45:01 +01:00
Eric Merrill 075fa91271 MDL-53325 search: Remove commit from engine interface
Remove commit from engine, and instead notify when indexes
start and stop, allowing them to decide what to do.
2016-03-06 13:46:54 -05:00
Eric Merrill bf2235bb11 MDL-53325 search: Optimize Solr less often 2016-03-06 13:46:54 -05:00
Eric Merrill 08c21a1beb MDL-53273 search: Use unicode safe string truncation 2016-03-06 13:32:59 -05:00
dg711 df8674d26e MDL-41648 grade: Remove 'error' parameter in grading notification divs 2016-03-06 09:16:57 +05:30
Tim Hunt 4b8a86503d MDL-53353 drag-drop marker quetions: fix edit form jitter 2016-03-04 17:41:54 +00:00
Tim Hunt 286d28b5e5 MDL-53350 drag-drop to text: layout problem on reivew 2016-03-04 17:01:31 +00:00
David Mudrák 496bf3ea16 MDL-53351 lti: Do not throw PHP notice when deleting LTI instance
The typeid=0 is a valid and common value representing "Automatic, based
on launch URL" type. In that case, no record in the lti_types table is
found. Thence attempting to access its toolproxyid property used to
throw PHP notice.
2016-03-04 16:42:05 +01:00
Tim Hunt 81e47a35e8 MDL-53304 question behaviour: don't show useless Check buttons
Previously, the Check button was often shown disabled when it
could not be used (e.g. when the question was finished, or when an
interactive question was in the try-again state). Eventually we
realised it was better usability to hide it in these cases.

Note that when a teacher reviews an in-progress quiz attempt, they will
see a disabled Check button if the student doing the quiz can see the
button.
2016-03-04 14:06:19 +00:00
Juan Leyva 0ca559a111 MDL-50032 webservice: Remove plugin functions from mobile service 2016-03-04 14:15:33 +01:00
Juan Leyva 186eba1b2e MDL-50032 webservice: Allow plugins to add functions into services 2016-03-04 13:39:53 +01:00
Brendan Heywood e1d6edb3b4 MDL-53047 login: Fixed #anchor being lost after login process 2016-03-04 22:54:11 +11:00
Juan Leyva e73e458170 MDL-52785 mod_quiz: New Web Service mod_quiz_get_user_best_grade 2016-03-04 11:17:39 +01:00
Juan Leyva c161ecff88 MDL-52670 mod_quiz: New Web Service mod_quiz_get_user_attempts 2016-03-04 09:29:32 +01:00
John Okely e42b23ebe2 MDL-50218 lti: Return empty grade when none exists 2016-03-04 16:26:08 +08:00
John Okely 7204d77b9f MDL-52821 lti: Include tool_consumer_instance_description in launch 2016-03-04 15:49:56 +08:00
Dan Poltawski 7adc7ef14f weekly release 3.1dev 2016-03-04 10:34:21 +08:00
Dan Poltawski e754b66aa0 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-03-04 10:34:18 +08:00
Jonathan Champ ddf98ccac3 MDL-39524 setuplib: Improve get_real_size() performance and readability 2016-03-03 11:05:48 -05:00
AMOS bot 724dc80cf2 Automatically generated installer lang files 2016-03-03 22:23:58 +08:00
AMOS bot a69ce40011 Automatically generated installer lang files 2016-03-03 22:23:58 +08:00
Dan Poltawski 0296f08e71 MDL-53327 search: add missing pluginfo lang strings
AMOS BEGIN
 CPY [searchengine,admin],[type_search,plugin]
AMOS END
2016-03-03 17:04:24 +08:00
Dan Poltawski 2f1f2d0222 MDL-53247 adminlib: change ordering of global search setup helper
Now put 'enable global search' as last step, thanks to David for the
idea.
2016-03-03 16:51:30 +08:00
Dan Poltawski f05f9e08cf MDL-53247 search: add cli indexer script 2016-03-03 16:25:32 +08:00
Dan Poltawski 3aff7ed4c5 Merge branch 'MDL-30811-fix3' of git://github.com/andrewnicols/moodle 2016-03-03 15:09:47 +08:00
Andrew Nicols 4ffe7e5070 MDL-30811 output: Adjust ARIA role to alert
https://www.w3.org/TR/wai-aria-practices/#alert
2016-03-03 15:09:18 +08:00
Andrew Nicols c1cb65d470 MDL-30811 javascript: alert JS should be in template
By moving the JS required for an alert to the JavaScript we make it
possible for themers to use frameworks other than bootstrap if they so
wish.
2016-03-03 15:09:17 +08:00
Andrew Nicols 11a67b211b MDL-30811 javascript: Lazily load core dependencies
To prevent possible race conditions, we lazily load the templates, and ajax
dependencies.
2016-03-03 14:47:07 +08:00
Russell Smith c1518631e3 MDL-52945 modinfo: Avoid uservisible when module already used. 2016-03-03 16:03:19 +11:00
Dan Poltawski 7c7757185a MDL-53247 search: allow search to be configured before enabled
The seach manager no longer checks if search is enabled before providing
an instance. It's up to the callers to do the access control.
2016-03-03 12:31:21 +08:00
Russell Smith 116094595d MDL-53323 profiling: Close session as early as possible. 2016-03-03 12:45:16 +11:00
Andrew Nicols ebdbc82b82 MDL-48362 enrol_cohort: Correct variable naming for course sync
$course->id => $instance->courseid
2016-03-03 07:55:10 +08:00
Eric Merrill bfd6c78f63 MDL-53281 search: Properly set timeout, and don't wait for optimize 2016-03-02 17:32:03 -05:00
Ben Kelada 023d6a6756 MDL-53291 javascript: fix jquery ajax requests when data contains ??
jQuery ajax requests containing multiple '?' get replaced with a
string similar to jQuery152330039032_1231231, this is because it
is processing a stringified data object as jsonp and thinks its a url.
 workaround is to add contenttype
see https://github.com/jquery/jquery/issues/1799
2016-03-03 09:15:24 +11:00
AMOS bot 6b893bde60 Automatically generated installer lang files 2016-03-03 00:04:04 +08:00
Eloy Lafuente (stronk7) 5aac4a23e5 Merge branch 'MDL-30811-fix2' of git://github.com/andrewnicols/moodle 2016-03-02 16:36:03 +01:00
Juan Leyva ee6aa74081 MDL-52974 mod_assign: Include missing local library 2016-03-02 10:34:20 +01:00
Dan Poltawski 5be405fa4a MDL-53050 mod_forum: fix for base highlight 2016-03-02 17:18:51 +08:00
Dan Poltawski 852f32f7b3 Merge branch 'wip-MDL-50887-master' of https://github.com/marinaglancy/moodle 2016-03-02 15:49:45 +08:00
Marina Glancy d2de503c80 MDL-50887 antivirus: clamav is standard plugin, missing strings 2016-03-02 15:42:35 +08:00
Frederic Massart 28f8993d0f MDL-52068 repository: Prevent JS errors due to unescaped lang strings 2016-03-02 15:34:45 +08:00
Andrew Nicols 3247e9ef4b Merge branch 'MDL-53214-master-category-feedback' of git://github.com/cameron1729/moodle 2016-03-02 14:49:20 +08:00
Cameron Ball 9566b021db MDL-53214 grades: Fix labels on feedback fields 2016-03-02 14:21:39 +08:00
Andrew Nicols 2f244f1cc6 MDL-30811 core: Initiate notifications on first use only 2016-03-02 13:30:09 +08:00
Dan Poltawski bc48a198ab Merge branch 'MDL-52513' of https://github.com/rushi963/moodle 2016-03-02 13:23:56 +08:00
Eloy Lafuente (stronk7) df190d18a1 MDL-52136 mod_forum: fix some out-of-sync stuff
Thanks CIs!
2016-03-02 05:42:29 +01:00
Andrew Nicols 5e785ab084 Merge branch 'MDL-48362-master-fix3' of http://github.com/damyon/moodle 2016-03-02 12:36:56 +08:00
Damyon Wiese 72fcaae76d MDL-48362 enrol: Fixes to cohort and manual enrol plugins
These were regressions from the change to use the standard editing ui
for enrolment plugins.
2016-03-02 12:34:00 +08:00
Eloy Lafuente (stronk7) ce878562f3 Merge branch 'MDL-52136-master' of git://github.com/andrewnicols/moodle 2016-03-02 05:25:57 +01:00
Andrew Nicols e5a1f7d92a MDL-52136 mod_forum: forum_post is templatable 2016-03-02 12:10:57 +08:00
Dan Poltawski cc32a710ee Merge branch 'MDL-52397_behat2' of git://github.com/dmonllao/moodle 2016-03-02 11:48:39 +08:00
Dan Poltawski 8ad1868683 Merge branch 'wip-mdl-51075' of https://github.com/rajeshtaneja/moodle 2016-03-02 11:47:13 +08:00
Rajesh Taneja 677ba15853 MDL-51075 behat: Fixed exported question file size 2016-03-02 11:39:10 +08:00
David Monllao b97356f215 MDL-52397 behat: Another behat fix, there is no student2 grade 2016-03-02 11:03:01 +08:00
Andrew Nicols 121a0d12fb Merge branch 'MDL-52489_master' of git://github.com/markn86/moodle 2016-03-02 09:08:29 +08:00
Andrew Nicols ca0227dd18 MDL-52136 mod_forum: Correctly quote get_string vars in mustache 2016-03-02 09:00:28 +08:00
Andrew Nicols 0b4bff8ca9 MDL-52136 core: Add support for quoting variables in mustache helpers
This is required for when helpers include json-encoded variables as arguments.
As an example, imagine a template with content:

{{# str }} somekey, someidentifier, { "fullname": "{{ fullname }}" } {{/ str }}

If the fullname variable were to include the double-quote character (e.g.
John "Trevor" Doe) because of the way in which mustache renders content, it
would become:

{{# str }} somekey, someidentifier, { "fullname": "John "Trevor" Doe" } {{/ str }}

This results in an invalid JSON structure.

To work around this issue, the quote characters in the passed variable
must be escaped:

{{# str }} somekey, someidentifier, { "fullname": "John \"Trevor\" Doe" } {{/ str }}

Unfortunately, Mustache provides no way of doing so natively.

With this function, we can quote the text as appropriate:

{{# str }} somekey, someidentifier, { "fullname": {{# quote }}{{ fullname }}{{/ quote }} } {{/ str }}

This also handles the case where the quoted content includes the Mustache
delimeter ({{ or }}).

For example:
fullname = 'John "}}Trevor{{" Doe'

Ordinarily this would be rendered as:
{{# str }} somekey, someidentifier, { "fullname": "John "}}Trevor{{" Doe" } {{/ str }}

This rendering is both a JSON error, and also a mustache syntax error because of the mustache delimeters.

The quote helper also escapes these by wrapping them in change delimeter
tags:

{{# str }} somekey, someidentifier, { "fullname": "John "{{=<% %>=}}}}<%={{ }}=%>Trevor{{=<% %>=}}{{{{=<% %>=}}" Doe" } {{/ str }}
2016-03-02 08:48:46 +08:00
Eloy Lafuente (stronk7) 192bce5406 Merge branch 'MDL-36652' of https://github.com/rushi963/moodle 2016-03-01 22:01:44 +01:00
Eloy Lafuente (stronk7) 6770a4b3a2 Merge branch 'wip-mdl-53126' of https://github.com/rajeshtaneja/moodle 2016-03-01 21:35:03 +01:00
Eloy Lafuente (stronk7) 25a73245c0 Merge branch 'MDL-53200-master-enfix' of git://github.com/mudrd8mz/moodle 2016-03-01 21:23:16 +01:00
Rushikesh f68d8a4151 MDL-49897 Calendar : Calendar day view showing past events 2016-03-01 20:05:51 +05:30
Dan Poltawski 73911de50d MDL-50887 clam: upgrade step with wrong version 2016-03-01 21:37:56 +08:00
Rajesh Taneja bdd4bed8b5 MDL-53300 core_grade: use currentgradetype if modgrade_type is not set
If mod has grades, then while upgrading
modgrade_type is disabled. This will not post
it with form and hence validation fails.
To avoid above problem, use ->currentgradetype
if modgrade_type is not set
2016-03-01 16:38:59 +08:00
Dan Poltawski b8b7f33acd Merge branch 'MDL-52669-master' of git://github.com/jleyva/moodle 2016-03-01 14:56:58 +08:00
Dan Poltawski 2158e87492 Merge branch 'MDL-50887-master' of https://github.com/lucisgit/moodle 2016-03-01 14:49:33 +08:00
Andrew Nicols 37f39924b5 Merge branch 'MDL-52397_fix-behat' of git://github.com/dmonllao/moodle 2016-03-01 14:35:54 +08:00
Andrew Nicols 9557a603e6 Merge branch 'MDL-52397_fix-oracle' of git://github.com/dmonllao/moodle 2016-03-01 14:35:50 +08:00
Andrew Nicols 5d1a34b076 Merge branch 'MDL-48362-master-fix2' of http://github.com/damyon/moodle 2016-03-01 14:31:29 +08:00
David Monllao 2a03c5fe06 MDL-52397 mod_assign: Fix behat test 2016-03-01 14:29:27 +08:00
Damyon Wiese 74aece8719 MDL-48362 enrol_cohort: Fix unit test by manually triggering sync
Sync is now automatically triggered by add/update instance. We need
to manually trigger sync before each part of the test to clean up
role assignments from the previous test.
2016-03-01 14:25:48 +08:00
Andrew Nicols 21d43c12b9 MDL-50546 mod_quiz: Correct typos in WS docs 2016-03-01 14:22:06 +08:00
Andrew Nicols 614173c7dc Merge branch 'MDL-50546-master' of git://github.com/jleyva/moodle 2016-03-01 13:41:35 +08:00
Mark Nelson 989a84577e MDL-52489 mod_assign: mentioned changes in upgrade.txt 2016-03-01 13:19:02 +08:00
Dan Poltawski 6a9b3c5a48 Merge branch 'MDL-53077' of git://github.com/Dave-B/moodle 2016-03-01 13:10:57 +08:00
Dan Poltawski 340d35a902 Merge branch 'MDL-53166' of https://github.com/eugeneventer/moodle-fixes 2016-03-01 13:03:06 +08:00
Andrew Nicols c62413ace3 Merge branch 'MDL-48362-master-fix1' of http://github.com/damyon/moodle 2016-03-01 12:58:54 +08:00
Dan Poltawski 71ea84048d Merge branch 'MDL-53263-forum-reply-deeplink' of https://github.com/brendanheywood/moodle 2016-03-01 12:53:10 +08:00
Dan Poltawski de67ef599f Merge branch 'MDL-46424_master' of https://github.com/dmonllao/moodle 2016-03-01 12:38:54 +08:00
Dan Poltawski b23f27fdd2 Merge branch 'wip-MDL-44952-master' of https://github.com/marinaglancy/moodle 2016-03-01 12:30:56 +08:00
David Monllao 4edd8e773d MDL-52397 editpdf: Fix draft vs nondraft comparison
We can not rely on the db engine returning results in the same order
if no order is specified in get_comments and get_annotations.

Also fixing a related unit test.
2016-03-01 12:29:13 +08:00
Damyon Wiese e3f24ac030 MDL-48362 enrol_cohort: Perform immediate sync on add/update instance
This restores backwards compatible behaviour.
2016-03-01 12:29:09 +08:00
Andrew Hancox 23b6636997 MDL-51687 mod_folder: Trigger event when downloading all files. 2016-03-01 12:27:55 +08:00
Dan Poltawski 792508cb7f Merge branch 'MDL-30811-fix' of git://github.com/andrewnicols/moodle 2016-03-01 12:26:33 +08:00
Dan Poltawski fd8e293030 Merge branch 'MDL-52809-master' of git://github.com/dpalou/moodle 2016-03-01 12:23:54 +08:00
Marina Glancy 17f53b45ab MDL-44952 mod_feedback: set value for hidenoselect if disabled 2016-03-01 12:21:00 +08:00
Andrew Nicols cf633c555e MDL-30811 form: Remove continue from test. 2016-03-01 12:11:10 +08:00
Andrew Nicols 64d6465650 MDL-52974 mod_assign: Improve tests for view_submission_status
External tests only
2016-03-01 11:50:11 +08:00
Andrew Nicols 05b0f579ca Merge branch 'MDL-52974-master' of git://github.com/jleyva/moodle 2016-03-01 11:48:16 +08:00
Dan Poltawski c116a115d9 Merge branch 'MDL-52928-master' of git://github.com/andrewnicols/moodle 2016-03-01 11:34:04 +08:00
Dan Poltawski d76acc87f7 Merge branch 'MDL-52999-master' of git://github.com/jleyva/moodle 2016-03-01 10:43:12 +08:00
Andrew Nicols 57ecaf68b8 Merge branch 'MDL-53027-master' of git://github.com/cameron1729/moodle 2016-03-01 10:40:27 +08:00
Dan Poltawski 9f82928bb6 Merge branch 'MDL-53050-forum-target' of https://github.com/brendanheywood/moodle 2016-03-01 10:38:55 +08:00
Dan Poltawski 25c0e10122 Merge branch 'MDL-53072_master' of git://github.com/markn86/moodle 2016-03-01 10:12:46 +08:00
Andrew Nicols c25f0b4d27 Merge branch 'MDL-52936_master' of https://github.com/marxjohnson/moodle 2016-03-01 10:05:53 +08:00
Andrew Nicols 2b38214a16 Merge branch 'MDL-53214-master' of git://github.com/cameron1729/moodle 2016-03-01 09:40:44 +08:00
Eloy Lafuente (stronk7) d9dfc410ad Merge branch 'wip-MDL-53172-master' of https://github.com/marinaglancy/moodle 2016-03-01 01:59:31 +01:00
Andrew Nicols 80f79ad6ec Merge branch 'MDL-50175-master' of git://github.com/danpoltawski/moodle 2016-03-01 08:07:56 +08:00
Ruslan Kabalin 324a45833a MDL-50887 tests: Increment number of plugins in core_component_testcase.
We have got one more core plugin now.
2016-02-29 09:31:30 +00:00
Ruslan Kabalin 71f74dd165 MDL-50887 antivirus_clamav: Add unit tests for scanner class.
We are using "stubbing" method to replace real component (clamav) control
points with doubles in order to avoid direct calls to clamav. For more
details, please refer to https://phpunit.de/manual/4.8/en/test-doubles.html

Notice, that while it is possible to use setExpectedException in the tests,
this does not seem play correctly with consecutive assertions in the same
test after exception is thrown (they seem omitted). Explicit try/catch
construction has been used in testing instead.

To run just this test, use:
vendor/bin/phpunit antivirus_clamav_scanner_testcase lib/antivirus/clamav/tests/scanner_test.php
2016-02-29 09:31:30 +00:00
Ruslan Kabalin ae3ba48272 MDL-50887 antivirus: Add unit tests for manager class.
To run just this test, use:
vendor/bin/phpunit core_antivirus_testcase lib/tests/antivirus_test.php
2016-02-29 09:31:29 +00:00
Ruslan Kabalin d08667a271 MDL-50887 antivirus_clamav: Access config properties using getter. 2016-02-29 09:31:29 +00:00
Ruslan Kabalin 17d7ee0eea MDL-50887 antivirus: Add config getter to base class.
Improving architecture to make it testable.
2016-02-29 09:31:29 +00:00
Ruslan Kabalin 5b6a0f2c15 MDL-50887 antivirus_clamav: Split scanning logic and results processing.
This refactoring will make possible to assert scan results processing
behaviour in unit testing.
2016-02-29 09:31:29 +00:00
Ruslan Kabalin 56e915bb82 MDL-50887 antivirus: Replace 'antiviruses' with 'antivirus plugins'.
Language string chnages as per Helen Foster's comments in the ticket.
2016-02-29 09:31:29 +00:00
Ruslan Kabalin ae784f716e MDL-50887 antivirus: Refactor adminlib to use html_writer. 2016-02-29 09:31:29 +00:00
Ruslan Kabalin 11362ae3ff MDL-50887 antivirus: Use namespace referenced classes. 2016-02-29 09:31:09 +00:00
Dan Poltawski b70b436875 Merge branch 'MDL-44952-master' of git://github.com/marinaglancy/moodle 2016-02-29 16:34:22 +08:00
Dan Poltawski c3717ca64e Merge branch 'MDL-50794-master-workshop-restrict-filetypes' of git://github.com/mudrd8mz/moodle 2016-02-29 16:15:27 +08:00
Dan Poltawski 9b44810fbf Merge branch 'MDL-53213' of https://github.com/mr-russ/moodle 2016-02-29 15:37:25 +08:00
Andrew Nicols 7f1303728d Merge branch 'MDL-52965_master' of git://github.com/dmonllao/moodle 2016-02-29 15:20:44 +08:00
Andrew Nicols da45d10a51 MDL-48362 enrol: Correct singleselect use in behat test 2016-02-29 15:16:10 +08:00
Andrew Nicols dfc18848db Merge branch 'MDL-48362-master' of git://github.com/damyon/moodle 2016-02-29 14:46:20 +08:00
Damyon Wiese f758951565 MDL-48362 enrol: Convert guest to standard enrolment ui
Also - provide automatic course navigation links when using the standard ui.
2016-02-29 14:33:06 +08:00
Simey Lameze 73ea963215 MDL-53010 core_role: add missing coursecatlib include 2016-02-29 14:25:45 +08:00
Andrew Nicols 90a11c2abb Merge branch 'MDL-53249-master' of git://github.com/merrill-oakland/moodle 2016-02-29 14:22:31 +08:00
Andrew Nicols ae3c6ee42d MDL-52346 caching: Coding style fixes 2016-02-29 14:14:01 +08:00
Andrew Nicols 8bd28ed696 Merge branch 'MDL-52346' of git://github.com/mr-russ/moodle 2016-02-29 14:12:03 +08:00
Damyon Wiese 51c736f037 MDL-48362 enrol: Auto generate the edit action icons when using the new ui 2016-02-29 14:00:31 +08:00
Dan Poltawski 17ac1b5349 Merge branch 'MDL-30811-master' of git://github.com/andrewnicols/moodle 2016-02-29 13:43:53 +08:00
Andrew Nicols d96a4e2a59 MDL-53206 caching: Remove accidental use of fullresult variable 2016-02-29 13:20:29 +08:00
Damyon Wiese 60010fd614 MDL-48362 enrol: Use a standard UI and validation for enrolment plugins
Convert core enrolment plugins to use standard editing ui.
2016-02-29 12:31:41 +08:00
Dan Poltawski 57853ea8f9 Merge branch 'MDL-53208' of https://github.com/mr-russ/moodle 2016-02-29 10:29:09 +08:00
Dan Poltawski 7f02500bd8 Merge branch 'MDL-53154-master' of git://github.com/junpataleta/moodle 2016-02-29 10:13:06 +08:00
Andrew Nicols 0e8ce68a17 MDL-30811 core: Fix tests where continue button has been removed 2016-02-29 09:05:58 +08:00
Andrew Nicols 372d6b923b MDL-30811 core: Replace use of continue_button with redirect 2016-02-29 09:05:58 +08:00
Andrew Nicols d954b54f9e MDL-30811 forum: Update use of redirect to include message and type 2016-02-29 09:05:57 +08:00
Andrew Nicols 3ad964190c MDL-30811 core: Make use of session notifications in redirect() 2016-02-29 09:05:57 +08:00
Andrew Nicols 0346323cec MDL-30811 output: Add support for session notifications 2016-02-29 09:05:56 +08:00
Rushikesh 4ac5ae6248 MDL-46424 Upload: Error message for a file exceeding maxsize 2016-02-29 08:59:02 +08:00
Andrew Nicols a31d1e5726 Merge branch 'wip-MDL-52397-master' of git://github.com/abgreeve/moodle 2016-02-29 08:33:41 +08:00
Eric Merrill 63d5007b77 MDL-53271 search: Catch Solr Server errors when adding doc 2016-02-28 13:40:25 -05:00
Andrew Nicols 243468030a MDL-30811 output: Tidy up notifications 2016-02-28 19:16:34 +08:00
Russell Smith d22a01fd99 MDL-53213 caching: Faster databasemeta caching for all databases. 2016-02-28 17:03:14 +11:00
Russell Smith fdff8077e0 MDL-53208 caching: Update serialization rules for performance.
- We only now serialize when required, eg when the store doesn't do it.
- static acceleration now serializes on set to reduce overhead on load.
- null now works in static acceleration as we use an array for storage metadata
- static acceleration delete uses isset rather than an array_search.
2016-02-28 17:01:51 +11:00
Russell Smith 76349f871e MDL-53208 caching: Remove TTL wrapper on static acceleration.
TTL is only updated between script runs.  If it's valid
when it's added to static acceleration, it will be valid
for the entire script run.
2016-02-28 17:01:50 +11:00
Russell Smith 98d580888b MDL-53208 caching: parse_key not required for static cache.
static cache operates on a single cache instance, it can't share
with others and can use the supplied key immediately.
2016-02-28 17:01:50 +11:00
Russell Smith 80788d03e1 MDL-53208 caching: Update serialization rules for performance.
- We only now serialize when required, eg when the store doesn't do it.
- static acceleration now serializes on set to reduce overhead on load.
- null now works in static acceleration as we use an array for storage metadata
- static acceleration delete uses isset rather than an array_search.
2016-02-28 17:01:50 +11:00
Russell Smith b2159f2d3f MDL-53208 caching: Enable dereferencing as a feature.
If the cache does all the dereferencing when it stores and loads
the objects, then the cache loaders don't need to do that work.
This is true of all caches that use something other than PHP's memory
to store their results.
2016-02-28 17:01:49 +11:00
Russell Smith 5007975d1e MDL-53206 caching: Ensure get_many and set_many dereference objects. 2016-02-28 17:01:49 +11:00
AMOS bot a091c60d9b Automatically generated installer lang files 2016-02-28 00:04:01 +08:00
Brendan Heywood f0b7925f01 MDL-53263 forum: Add anchor to reply by email confirmation link 2016-02-27 23:39:59 +11:00
Marina Glancy b259fa6645 MDL-53172 core: adjust CSS for inplace_editable 2016-02-27 11:29:27 +08:00
Andrew Nicols 490934a4ed MDL-53172 javascript: Fix coding style violations 2016-02-27 11:29:27 +08:00
Andrew Nicols 38cf8b6661 MDL-53172 javascript: Stop requiring body manipulation on load 2016-02-27 11:29:27 +08:00
Marina Glancy 8de48ad0ae MDL-53172 core: toggle and select in inplace_editable 2016-02-27 11:29:24 +08:00
Juan Leyva 19429de4be MDL-52669 mod_quiz: Move logging in view.php to a new API function 2016-02-26 15:45:23 +01:00
Juan Leyva 4064dd0ec4 MDL-52669 mod_quiz: New Web Service mod_quiz_view_quiz 2016-02-26 15:45:22 +01:00
Juan Leyva 51e27aac2b MDL-50546 mod_quiz: New WS mod_quiz_get_quizzes_by_courses 2016-02-26 15:42:11 +01:00
Dani Palou 5380c664d4 MDL-52809 wiki: Add tests for mod_wiki_get_subwikis 2016-02-26 14:11:24 +01:00
Dani Palou 44f1b701db MDL-52809 wiki: New WS mod_wiki_get_subwikis 2016-02-26 14:00:12 +01:00
Brendan Heywood 2e0caa8e06 MDL-53050 mod_forum: Add anchor target highlight style 2016-02-26 21:12:25 +11:00
Mark Nelson aa75dca3d8 MDL-52489 mod_assign: added support for old structure 2016-02-26 12:09:30 +08:00
Mark Nelson 5a2c7af2d3 MDL-52489 mod_assign: fixed issue with files being excluded 2016-02-26 12:09:30 +08:00
evltuma 18a5b4d85c MDL-52489 mod_assign: Download all submissions as a zip copy. 2016-02-26 12:09:30 +08:00
Mark Nelson 3ee812fab4 MDL-53072 group: minor changes to existing code
1) Tidied up conditional check and put additional variable on new line.
2) Prevented change of the default behaviour for 'groups_get_potential_members()'.
3) Added another behat test.
2016-02-26 11:42:14 +08:00
Rex Lorenzo 4cb32a243d MDL-53072 group: added related behat tests 2016-02-26 11:42:14 +08:00
Niclas Tollstorff 7b96ffb044 MDL-53072 group: added 'only active' option when auto-creating groups 2016-02-26 11:42:14 +08:00
Eric Merrill 1f0d77f7cd MDL-53249 atto: Make sure all editors see end move event 2016-02-25 21:37:16 -05:00
Russell Smith 4350192a8d MDL-52346 caching: Allow localstorage as a cache option.
We display a notification on screen during configuration telling
the administrator if it's safe to map this store to a local storage
cache or not.
2016-02-26 10:58:20 +11:00
Mark Nielsen 00e270600f MDL-51571 mod_lti: Improve service error handling 2016-02-25 15:43:31 -07:00
David Mudrák 996f7e8228 MDL-50794 workshop: Improve the file type restricting implementation
This is basically a clean up and what I think improved version of the
original Mahmoud's patch.

The actual checking for allowed file extensions has been re-implemented
and is now covered by unit tests. The list of allowed extensions is now
also assed to the filemanager element's accepted_types option to prevent
picking other files (we still need the in-place validation though). The
form validation is simplified a bit. The custom validation of file size
introduced in the previous patch has been removed as not related to this
issue (also I believe it should not be done at this level).
2016-02-25 18:03:18 +01:00
M Kassaei 1a282212c1 MDL-50794 workshop: Allow restricting submitted file types
It was reported at the Open University that there have been some
problems with the formats of files submitted by students. Not all
students completed their outlines as a Word .doc (despite this being the
format of the template provided). Some formats (e.g. .pages) couldn’t be
translated by some of the reviewing students. Therefore, they were
unable to provide a review and the submitting students not receiving any
comments.

This patch allows the teacher to define list of allowed file types that
can be attached to submitted work and/or overall feedback in the
workshop.
2016-02-25 18:03:18 +01:00
Helen Foster 054b863d2f MDL-53200 lang: Merge English strings from the en_fix language pack 2016-02-25 17:57:59 +01:00
Andrew Hancox 50ed9363c4 MDL-53179 mod-folder: Move download button into seperate container 2016-02-25 15:15:07 +00:00
KeenRivals 83ea83ec19 MDL-50175 graphics: Optimized SVGs with SVGO. 2016-02-25 11:56:42 +00:00
KeenRivals 26c19b02d5 MDL-50175 graphics: Optimized PNG images with optipng
Used options: -o7 -strip all and advdef -z4 -i50.

(With ./lib excluded)
2016-02-25 11:56:37 +00:00
Mark Johnson 024b1eade0 MDL-52936 theme_bootstrapbase: Fix link hover bug on iOS 2016-02-25 11:38:11 +00:00
Ruslan Kabalin b6bb4e81bb MDL-50887 antivirus: Use autoloaded classes.
This implements the use of class autoloading for antivirus plugin. Base
abstract class, exception class and manager are using namespace
core\antivirus, this is because all three class files are located in
/lib/classes/antivirus/ (see \core_component::classloader for convention
details).
2016-02-25 09:55:45 +00:00
Ruslan Kabalin 1a980fdadb MDL-50887 antivirus: Fix style issues. 2016-02-25 09:55:45 +00:00
Ruslan Kabalin 375223c6db MDL-50887 antivirus: Deprecate functions no longer required.
This also removes abandoned strings that are no longer in use (since
1e23ff2 landed).
2016-02-25 09:55:45 +00:00
Ruslan Kabalin 001feb6649 MDL-50887 antivirus: Refactor antivirus scanning to use new plugin.
This patch moves existing scanning functionality to plugin level. It does
not add anything new, just refactors the existing functionality.

AMOS BEGIN
  MOV [clamemailsubject,core],[emailsubject,antivirus]
  MOV [clamfailed,core],[clamfailed,antivirus_clamav]
  MOV [clamlost,core],[invalidpathtoclam,antivirus_clamav]
  MOV [clamunknownerror,core],[unknownerror,antivirus_clamav]
  MOV [virusfounduser,core],[virusfounduser,antivirus]
AMOS END
2016-02-25 09:55:45 +00:00
Ruslan Kabalin 1a1d249a70 MDL-50887 antivirus_clamav: Implement file scanning functionality.
This also removes runclamonupload config setting. It is implied that files
will be scanned if plugin is enabled, no need to have a separate setting.

In addition to that, some language strings are updated. It is 'ClamAV', not
'clam AV' (see http://www.clamav.net/index.html).
2016-02-25 09:55:45 +00:00
Ruslan Kabalin 7d19e0e33d MDL-50887 antivirus_clamav: Move global clamav settings to plugin level.
AMOS BEGIN
 MOV [clamfailureonupload,core],[clamfailureonupload,antivirus_clamav]
 MOV [configclamactlikevirus,core],[configclamactlikevirus,antivirus_clamav]
 MOV [configclamdonothing,core],[configclamdonothing,antivirus_clamav]
 MOV [configclamfailureonupload,core],[configclamfailureonupload,antivirus_clamav]
 MOV [configpathtoclam,core],[configpathtoclam,antivirus_clamav]
 MOV [configquarantinedir,core],[configquarantinedir,antivirus_clamav]
 MOV [configrunclamavonupload,core],[configrunclamavonupload,antivirus_clamav]
 MOV [pathtoclam,core],[pathtoclam,antivirus_clamav]
 MOV [quarantinedir,core],[quarantinedir,antivirus_clamav]
 MOV [runclamavonupload,core],[runclamavonupload,antivirus_clamav]
AMOS END
2016-02-25 09:55:45 +00:00
Ruslan Kabalin 89a5878e3f MDL-50887 antivirus_clamav: Initial commit. 2016-02-25 09:54:05 +00:00
Ruslan Kabalin 146eeb7651 MDL-50887 antivirus: Add antivirus plugin infrastructure. 2016-02-25 09:54:05 +00:00
Davo Smith aa066e99f7 MDL-52965 medialib: fix preload attribute 2016-02-25 15:25:27 +08:00
Andrew Nicols 03b8b55f10 weekly release 3.1dev 2016-02-25 13:52:15 +08:00
Andrew Nicols 5fef7d9c04 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-02-25 13:52:11 +08:00
Rajesh Taneja 788beb6705 MDL-53126 behat: Fixed radio button in backup step
Rather than calling click and check on radio node
use radio form field to set value
2016-02-25 10:33:17 +08:00
Andrew Nicols 84fbbd9985 Merge branch 'MDL-45104-master-fix' of github.com:xow/moodle 2016-02-25 10:14:06 +08:00
John Okely a285d561ef MDL-45104 logging: Check if legacy log is enabled 2016-02-25 10:00:02 +08:00
John Okely 3f195ab7c8 MDL-45104 logging: Fix spelling of writing 2016-02-25 09:59:28 +08:00
Andrew Nicols 7204460d5a Merge branch 'wip-mdl-49324' of https://github.com/rajeshtaneja/moodle 2016-02-25 09:53:43 +08:00
Rajesh Taneja 2b9361cdda MDL-49324 behat: Use singleselect step to select user 2016-02-25 09:49:24 +08:00
AMOS bot cbd7d973dd Automatically generated installer lang files 2016-02-25 00:11:21 +08:00
David Balch 02c8a8366b MDL-53027 calendar: Fix false empty result from calendar_get_events(). 2016-02-24 18:38:25 +08:00
Eloy Lafuente (stronk7) 316d6574e2 Merge branch 'MDL-53071-master' of git://github.com/junpataleta/moodle 2016-02-24 11:01:15 +01:00
Dan Poltawski e8d908728d MDL-45104 admin: convert error to warning 2016-02-24 08:30:31 +00:00
Andrew Nicols 95b3ad671a MDL-53228 testing: Attempt an upgrade from 27 2016-02-24 15:53:44 +08:00
Marina Glancy 2a94a2f60f MDL-53210 mod_feedback: fixes in check feedback access
1. show only uservisible feedbacks in block_feedback
2. nicer error message when user opens feedback on frontpage instead of from the mapped course
3. corrected cap check in view.php page before displaying link to complete.php
2016-02-24 15:22:21 +08:00
Adrian Greeve 50c734e8a5 MDL-52397 mod_assign: Unit tests for feedback plugins.
Testing that the new method is_feedback_modified() works
as it should with the standard plugins.
2016-02-24 15:09:27 +08:00
Adrian Greeve 238c05c23c MDL-52397 mod_assign: Added new method to feedback plugins.
Added a method to the feedback plugins to check if feedback
has been modified. This allows for a more accurate record
of when the grade has been modified.
2016-02-24 15:09:08 +08:00
Eloy Lafuente (stronk7) 6ab07f97bf Merge branch 'MDL-49324-master' of git://github.com/andrewnicols/moodle 2016-02-24 07:55:51 +01:00
Andrew Nicols 0c31d92452 MDL-49324 grade: Ensure report appears in breadcrumbs 2016-02-24 14:39:11 +08:00
Andrew Nicols beb964520a MDL-49324 gradereport_singleview: Fix unit tests 2016-02-24 14:39:10 +08:00
Andrew Nicols bb4d057662 MDL-49324 grades: Remove old variable usage 2016-02-24 14:39:10 +08:00
Andrew Nicols 47f084c6a1 MDL-49324 grades: Remove unnecessary @javascript tag from tests 2016-02-24 14:39:09 +08:00
Andrew Nicols 87d71ecf69 MDL-49324 grade: Ensure weights adjusted message is displayed
The grade settings page displays a message to inform users that weights
have been adjusted if they did not previously add up to the required 100%.

With the change to sometimes displaying a progress bar, whether the message
is displayed must be calculated immediately after the regrade took place,
and before the page redirects.

I have added a callback with arguments to the regrade_if_required function
which is called immediately after regrade has taken place (regardless of
whether the progress bar is required).

This callback modifies the PAGE URL such that the redirect message will be
displayed after the redirect. This does not use the session as the message
should only be displayed immediately after a change. If the user does not
click on the continue button after the progress bar has been displayed, and
comes back to the page later, this may be confusing.
2016-02-24 14:39:09 +08:00
Andrew Nicols 417c7f3b86 MDL-49324 grades: Remove category aggregation change backend
The UI for this was removed several releases ago and this code is no longer
called.
2016-02-24 14:39:09 +08:00
Andrew Nicols a2f6399806 MDL-49324 gradereport_singleview: Correct url params supplied to PAGE 2016-02-24 14:39:08 +08:00
Andrew Nicols 0a802c9c4e MDL-49324 grades: Create helper function for regrading on report view 2016-02-24 14:39:08 +08:00
Andrew Nicols 21efa3c65c Merge branch 'MDL-31989_admin-performance' of git://github.com/dmonllao/moodle 2016-02-24 11:05:41 +08:00
David Monllao 46e944aeb3 MDL-31989 admin: Search admin settings only when needed 2016-02-24 10:49:04 +08:00
Andrew Nicols 38d94702af Merge branch 'wip-mdl-52996' of https://github.com/rajeshtaneja/moodle 2016-02-24 10:38:17 +08:00
Cameron Ball ccdda8550b MDL-53214 grades: Ensure grader report correctly labels fields.
The editable fields for the grader report should have unique labels.
Previously category grade items were not being labelled with the
category name.
2016-02-24 10:30:43 +08:00
Rajesh Taneja 7b61603406 MDL-52996 Atto: Only check if plugins are loaded
Atto bold using behat with phantomjs doesn't work.
In this case there is no need to test plugin functionality.
Only checking if plugin is loaded in toolbar is sufficient.
2016-02-24 10:09:15 +08:00
Rushikesh e01f3f636c MDL-52513 Grading : Change in display message after publishing 2016-02-23 22:02:56 +05:30
AMOS bot 14d45c443c Automatically generated installer lang files 2016-02-24 00:04:19 +08:00
Dan Poltawski fef5360053 Merge branch 'MDL-42460-master' of git://github.com/marinaglancy/moodle 2016-02-23 14:36:54 +00:00
Dan Poltawski f0ad27291e MDL-31989 version: proper bump 2016-02-23 12:11:39 +00:00
Dan Poltawski e03711fc08 MDL-31989 version: bump 2016-02-23 12:10:05 +00:00
Dan Poltawski 0011d7c5e1 Merge branch 'MDL-31989_survey-fix' of git://github.com/dmonllao/moodle 2016-02-23 12:07:46 +00:00
David Monllao c625b01a4c MDL-31989 mod_survey: Prevent templates from being indexed 2016-02-23 19:58:52 +08:00
Dan Poltawski 5500e15d67 Merge branch 'MDL-33663' of https://github.com/rushi963/moodle 2016-02-23 11:44:24 +00:00
Dan Poltawski d71448e2a6 Merge branch 'wip-MDL-45104-master-v2' of git://github.com/abgreeve/moodle 2016-02-23 11:06:05 +00:00
Dan Poltawski 02038b9d79 Merge branch 'MDL-52958_master' of git://github.com/dmonllao/moodle 2016-02-23 10:57:38 +00:00
David Monllao 69d66020ce MDL-31989 search: get_config method to search areas
Also content_to_text moved to weblib.
2016-02-23 10:47:59 +00:00
David Monllao f900b2b6c9 MDL-31989 component: Allow classes to be retrieved by namespace 2016-02-23 10:47:58 +00:00
David Monllao db48207e1a MDL-31989 search: Search API and search engine API
Introducing both APIs in moodle along with:
- search_box widget to add a tiny search box
- admin settings with setup steps helper
- cache for search results
- template for a search result
- php unit stuff

Many thanks to Tomasz Muras, Prateek Sachan and Daniel Neis for their contributions, for starting this development
and for pushing for it to be completed. Also thanks to other contributors: Jonathan Harker and eugeneventer.
2016-02-23 10:47:58 +00:00
David Monllao 95c6aeaf1c MDL-31989 search_solr: Solr search engine 2016-02-23 10:47:58 +00:00
David Monllao e2be996171 MDL-31989 search: New search areas
Some search areas have been introduced as part of the initial search API
and search engine API implementation.
- Forum posts
- Glossary enties
- All moodle activities
2016-02-23 10:47:57 +00:00
David Monllao 28b70ba536 MDL-31989 block_globalsearch: Adding the block
Just a basic block with a search box.
2016-02-23 10:47:57 +00:00
David Monllao 17675612b5 MDL-31989 report_search: Adding the report 2016-02-23 10:47:57 +00:00
David Monllao 4040c8b35e MDL-31989 theme: Global search styles 2016-02-23 10:47:55 +00:00
David Monllao eddea91dfd MDL-31989 task: Global search indexing task 2016-02-23 10:47:31 +00:00
Dan Poltawski 2c720c9772 Merge branch 'MDL-50312_master' of https://github.com/jinhofer/moodle 2016-02-23 08:07:13 +00:00
Andrew Nicols bde3e8c5d1 Merge branch 'MDL-49338' of git://github.com/timhunt/moodle 2016-02-23 13:32:00 +08:00
Andrew Nicols 7bf992cccb Merge branch 'wip-MDL-53129-master' of https://github.com/marinaglancy/moodle 2016-02-23 13:22:49 +08:00
Marina Glancy 42756192d7 MDL-53129 mod_feedback: forms cleanup and behat tests 2016-02-23 13:17:21 +08:00
Andrew Nicols 0ea14dd849 Merge branch 'MDL-52996-master' of https://github.com/sammarshallou/moodle 2016-02-23 12:44:06 +08:00
Adrian Greeve 61f7b10b9a MDL-45104 logging: Deprecate writting to the legacy log store. 2016-02-23 11:55:30 +08:00
Andrew Nicols 7367520bb1 Merge branch 'MDL-52371-Activity-Chooser-alignment-of-strings-that-need-line-wrap' of git://github.com/synergylearning/moodle 2016-02-23 11:36:54 +08:00
Andrew Nicols 2a9bce48ac Merge branch 'MDL-53081-master-txtfiles' of git://github.com/mudrd8mz/moodle 2016-02-23 11:13:45 +08:00
Jun Pataleta eb66223c42 MDL-53071 course: Allow blank space input for section name 2016-02-23 09:41:47 +08:00
Andrew Nicols 91a1fc805e Merge branch 'MDL-52892' of https://github.com/dg711/moodle 2016-02-23 09:39:26 +08:00
Damyon Wiese 30be6c846a MDL-49324 Grades: Use a progress bar when recalculating gradebook grades 2016-02-23 08:35:10 +08:00
Damyon Wiese b9d2419e39 MDL-49324 Output: The progress bar output is buffered.
Each call to update the progress bar needs to fill the output buffer so that it
gets sent immediately.
2016-02-23 08:35:10 +08:00
Eloy Lafuente (stronk7) a4a44e2c27 Merge branch 'MDL-52806' of git://github.com/timhunt/moodle 2016-02-22 23:04:43 +01:00
Eloy Lafuente (stronk7) 153fbcd24a Merge branch 'MDL-53065' of git://github.com/timhunt/moodle 2016-02-22 23:01:04 +01:00
Michael Milette 89e68e6c1e MDL-42460 mod_feedback: Fix markup validation 2016-02-22 22:41:32 +08:00
Marina Glancy 8ad534bd9f MDL-44952 mod_feedback: validate required multichoice 2016-02-22 22:01:02 +08:00
Dan Poltawski c5a4c64fcc Merge branch 'MDL-44093-master-flowplayer' of git://github.com/mudrd8mz/moodle 2016-02-22 09:04:15 +00:00
Davo Smith b8645d6df5 MDL-52371 theme_base: activity chooser - support long names 2016-02-22 08:57:16 +00:00
Kenny McCormack 3523f77522 MDL-52371 theme_bootstrapbase: activity chooser - support long names 2016-02-22 08:57:14 +00:00
Andrew Nicols ec1b9de1b0 Merge branch 'wip-mdl-52970' of https://github.com/rajeshtaneja/moodle 2016-02-22 15:20:34 +08:00
Andrew Nicols ea65e55b51 Merge branch 'wip-mdl-50484' of https://github.com/rajeshtaneja/moodle 2016-02-22 12:22:07 +08:00
Tim Hunt 293f5d1b11 MDL-53065 quiz redo question: avoid PHP notice in edge case
When selecting the variant of the new question, we need to add the
new question to the usage before trying to select a variant.

Also, we need to acutally use the selected variant number!
2016-02-19 12:10:39 +00:00
Tim Hunt a10bd0d9a8 MDL-52806 quiz manual grading: show right answer for auto-graded Qs 2016-02-19 12:06:24 +00:00
Tim Hunt de3b803dea MDL-49338 quiz stats: preview urls wrong for question variants 2016-02-19 12:01:05 +00:00
David Mudrák 9e7d95d232 MDL-53081 docs: Improve the text doc files in the root directory
Existing contents of README moved to INSTALL. Added new README,
CONTRIBUTING and PULL_REQUEST_TEMPLATE files. TRADEMARK updated using
the text at https://moodle.com/trademarks/.
2016-02-19 09:11:06 +01:00
Rajesh Taneja 9b4903c8fd MDL-52970 behat: Wait for page to be ready after click
After click enusre to wait so text fields are not
use autosize
2016-02-19 15:23:49 +08:00
Rajesh Taneja fee2cde5b6 MDL-52970 behat: Navigation step improvement
If navigation node to expand is a link then first
click on it and navigate to next page where it is
expanded, and then click on link within. This is
needed as some drivers click on link and don't open
the navigation node which are links
2016-02-19 15:21:52 +08:00
Rajesh Taneja f7a73e196e MDL-52970 behat: For single select only click event is enough 2016-02-19 15:21:52 +08:00
Rajesh Taneja e8ef0e4f63 MDL-52970 behat: don't set select value if already set
In FF 44.0, it fails to click on submit button if
select value is set to the original value
2016-02-19 15:21:51 +08:00
Frederic Massart 1039b52e9a MDL-53057 repository_filesystem: Added support for search 2016-02-19 14:46:31 +08:00
Rajesh Taneja 660b0f0eed MDL-50484 core_lib: No need to cache action_icons
action_icons should not be cached as they
have a unique id and if cache is used then
all icons will have same id.
Other solution is to replace id with some static
but it's not worth a cache for a page, so
removing cache
2016-02-19 14:00:04 +08:00
Rajesh Taneja 7b287e09e2 MDL-50484 core_grade: courseheader id should be unique
grader report show category with courseheader id
which gets replicated for all categories on page.
This will now be courseheader_categoryname.
2016-02-19 14:00:04 +08:00
Rajesh Taneja 7e341eb48f MDL-50484 block_navigation: Set number to be unique
Set number to be unique for unique id's
in navigation
2016-02-19 14:00:04 +08:00
Rajesh Taneja 1ebda3eb8c MDL-50484 lib_formslib: Persistant input should have different id
Persistant input is appended for frozen elements
and should have different id then the actual element
2016-02-19 14:00:04 +08:00
Rajesh Taneja 2aacd415e1 MDL-50484 mod_lesson: Use group to add multiple radio inputs
https://docs.moodle.org/dev/lib/formslib.php_Form_Definition#radio
Radio input should be added in group and not individual, so
that each element created has unique id and template
2016-02-19 14:00:03 +08:00
Eugene Venter d01cdc5172 MDL-53166 mod_forum: fix fatal error in backup phpunit test
when running mod_forum_testsuite mod_forum_testsuite
2016-02-19 11:14:08 +13:00
dg711 88e1d0ed26 MDL-52892 message: users' pic overrides others
While listing the messages , the logged in users' profile pic used to
override over other users' pics .
2016-02-19 00:58:44 +05:30
David Mudrák 2bc19a7a10 MDL-44093 flowplayer: Provide information about source code location
Moodle ships with compiled binary code of the flowplayer. This patch
adds information about the source code location according to GNU GPLv3
section 6d and provides the original license for the code from
https://github.com/flowplayer/flash/blob/7c39fbe31ecddc/core/LICENSE.txt
2016-02-18 15:47:14 +01:00
Dan Poltawski 83a951023e weekly release 3.1dev 2016-02-18 09:14:12 +00:00
Dan Poltawski dafff3b84c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-02-18 09:14:09 +00:00
David Monllao b0f437d8f7 Merge branch 'wip-mdl-52387' of git://github.com/rajeshtaneja/moodle 2016-02-18 11:48:14 +08:00
Rajesh Taneja b4a5d4fa17 MDL-52387 auth_ldap: Use proper dn to find password age
dn with fine grained password should be used
to get msds-maximumpasswordage attribute.
No checks should be used to see if the array
key is set as entry should always return them.
2016-02-18 11:38:03 +08:00
Jun Pataleta 41d6a25a19 MDL-53154 course: Raise PHP time limit when deleting a course 2016-02-18 10:10:01 +08:00
Eloy Lafuente (stronk7) 12d5994fc7 MDL-52964 Qtype: Small fixes to behat tests
This applies some small changes to proposed behat tests:

- Geting rid of the @javascript tag when it's not needed.
- Adding some missing @_switch_window tags.
- Fixing some scenario names, previously duplicated.
- Fixing some typos and whitespace.
2016-02-18 01:42:22 +01:00
Eloy Lafuente (stronk7) cad67991d4 Merge branch 'MDL-52964' of https://github.com/mkassaei/moodle 2016-02-18 00:58:10 +01:00
Eloy Lafuente (stronk7) 83fe83e988 Merge branch 'wip-MDL-51802-fix' of https://github.com/marinaglancy/moodle 2016-02-17 17:29:07 +01:00
Marina Glancy fa4dd0169d MDL-51802 core: change template example 2016-02-17 20:32:55 +08:00
Dan Poltawski 0b14d8612b Merge branch 'MDL-51214-master' of git://github.com/andrewnicols/moodle 2016-02-17 07:58:15 +00:00
Marina Glancy 7c5c80350c MDL-49807 mod_wiki: section detection regexp fix 2016-02-17 13:11:10 +08:00
David Monllao a6f4866e52 Merge branch 'MDL-48015-master' of git://github.com/junpataleta/moodle 2016-02-17 09:49:04 +08:00
Eloy Lafuente (stronk7) 45cb6145fb Merge branch 'MDL-51852-master' of git://github.com/andrewnicols/moodle 2016-02-17 02:03:48 +01:00
Andrew Nicols a6fc917168 MDL-51852 mod_forum: Respect timed discussions in emails 2016-02-17 07:57:57 +08:00
Eloy Lafuente (stronk7) 642a4fde4b Merge branch 'wip-MDL-51802-master4' of https://github.com/marinaglancy/moodle 2016-02-16 23:22:35 +01:00
Eloy Lafuente (stronk7) c70d54405b Merge branch 'MDL-29506-master' of git://github.com/andrewnicols/moodle 2016-02-16 17:50:22 +01:00
Eloy Lafuente (stronk7) 8bd2db2023 Merge branch 'MDL-52997-email-threading' of https://github.com/brendanheywood/moodle 2016-02-16 17:11:10 +01:00
AMOS bot 8753cdbca8 Automatically generated installer lang files 2016-02-17 00:05:41 +08:00
Eloy Lafuente (stronk7) fa6426a069 Merge branch 'MDL-52814' of git://github.com/timhunt/moodle 2016-02-16 16:48:04 +01:00
Dani Palou 85894eda01 MDL-52993 wiki: Add unit tests for wiki_user_can_edit
Note: amended on integration to fix some comments.
2016-02-16 16:44:41 +01:00
Dani Palou bb05505e00 MDL-52993 wiki: Fix wiki_user_can_edit for collab and separate groups 2016-02-16 16:44:07 +01:00
Dan Poltawski 821296dc7b Merge branch 'MDL-52862_master' of https://github.com/juancs/moodle 2016-02-16 15:18:46 +00:00
Dan Poltawski 0aefe91c50 Merge branch 'MDL-52990-email-themes' of https://github.com/brendanheywood/moodle 2016-02-16 11:17:54 +00:00
Dan Poltawski 3a9cc98c80 Merge branch 'MDL-34160-forum-subject' of https://github.com/brendanheywood/moodle 2016-02-16 11:04:41 +00:00
Dan Poltawski 33fa0e1181 Merge branch 'MDL-53012-master' of https://github.com/sammarshallou/moodle 2016-02-16 10:44:57 +00:00
Dan Poltawski f155059452 Merge branch 'MDL-48439-change-background-colour-of-tool_capability-table' of git://github.com/synergylearning/moodle 2016-02-16 10:42:33 +00:00
Dan Poltawski cbce7be769 MDL-28030 setup: Ensure $CFG->urlrewriteclass is properly setup
(To avoid crippling a site)
2016-02-16 11:35:07 +01:00
Dan Poltawski cfdc1bb0ca Merge branch 'MDL-52879' of git://github.com/timhunt/moodle 2016-02-16 10:26:57 +00:00
Eloy Lafuente (stronk7) 5d8dfdef1d Merge branch 'MDL-51929-master' of git://github.com/dpalou/moodle 2016-02-16 11:22:53 +01:00
Dan Poltawski 6bb1bd930f Merge branch 'MDL-49612-master' of git://github.com/dpalou/moodle 2016-02-16 09:30:12 +00:00
Dan Poltawski d330eb4342 Merge branch 'master_MDL-50620' of https://github.com/danmarsden/moodle 2016-02-16 09:09:08 +00:00
Dani Palou 052da7304a MDL-51929 external: Apply new validate_courses to data/lti/survey 2016-02-16 08:26:07 +01:00
David Monllao 82e1b645eb Merge branch 'MDL-52208-master-2' of git://github.com/junpataleta/moodle 2016-02-16 14:39:46 +08:00
Jun Pataleta 79c7fffce3 MDL-52208 webservice_soap: Remove Zend from webservice_soap 2016-02-16 14:14:11 +08:00
Brendan Heywood efd420608e MDL-52990 email: Added site wide email mustache templates 2016-02-16 16:39:25 +11:00
David Monllao b018aec5da Merge branch 'MDL-51117-master' of git://github.com/andrewnicols/moodle 2016-02-16 13:26:37 +08:00
David Monllao 7fadf9edff Merge branch 'MDL-52414_m31v7' of https://github.com/sbourget/moodle 2016-02-16 12:44:09 +08:00
Stephen Bourget e6e5d0104f MDL-52414 Lesson: Fix lesson defaults 2016-02-15 23:05:37 -05:00
David Monllao ce74ad69ae Merge branch 'MDL-52387-master' of git://github.com/lameze/moodle 2016-02-16 11:25:22 +08:00
David Monllao fb2d4baf57 MDL-51196 mod_forum: Updating required context vars 2016-02-16 11:22:29 +08:00
David Monllao 0511b81240 Merge branch 'MDL-51196-text-email-permalink' of https://github.com/brendanheywood/moodle 2016-02-16 11:17:20 +08:00
Simey Lameze c1bc628e1d MDL-52387 auth_ldap: add support for fine grained password
Contributed by Matthew Johnson.
2016-02-16 11:03:42 +08:00
David Monllao 88acc87d8c MDL-51839 mod: Info about removing icon.gif files 2016-02-16 11:02:49 +08:00
David Monllao 11ce3ffccc Merge branch 'MDL-51839-master' of git://github.com/andrewnicols/moodle 2016-02-16 10:58:22 +08:00
Brendan Heywood 091420f9e6 MDL-34160 mod_forum: Add extra site and course vars to postmailsubject 2016-02-16 13:06:22 +11:00
Andrew Nicols 5ddf81cd27 MDL-51214 block_news_items: Rename to "Latest announcements" 2016-02-16 10:05:27 +08:00
Andrew Nicols 265a9bf769 MDL-51214 mod_forum: Update News forum => Announcements 2016-02-16 10:05:24 +08:00
Eloy Lafuente (stronk7) be5955edf0 Merge branch 'MDL-52969-email-unsubscribe' of https://github.com/brendanheywood/moodle 2016-02-16 02:54:08 +01:00
Eloy Lafuente (stronk7) 056a07388b Merge branch 'MDL-52511-master' of git://github.com/danpoltawski/moodle 2016-02-16 02:00:37 +01:00
David Monllao c06749bdf3 Merge branch 'MDL-50385-master' of git://github.com/merrill-oakland/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2016-02-16 06:47:27 +08:00
David Monllao 187137aa23 Merge branch 'MDL-52217-master' of git://github.com/andrewnicols/moodle
Conflicts:
	repository/upgrade.txt
2016-02-16 05:56:02 +08:00
David Monllao 44ad0f2c8d Merge branch 'MDL-51580' of git://github.com/stronk7/moodle 2016-02-16 05:03:28 +08:00
Rushikesh ea4f8f9e49 MDL-52984 Roles : Logs store newly created role's id 2016-02-16 00:45:26 +05:30
Eloy Lafuente (stronk7) 20c3e2c9fc MDL-51580 lang strings: Delete unused lang strings
With previous commit some lang strings became unused. As far as they
are not reusable we are deleting them plain and straight. This is the
list of strings, for reference:

- orphanedquestionscategory
- orphanedquestionscategoryinfo

- oauth2upgrade_message_small
- oauth2upgrade_message_subject
- oauth2upgrade_message_content

- apiv1migration_message_small
- apiv1migration_message_subject
- apiv1migration_message_content

- security_key_notice_message_small
- security_key_notice_message_subject
- security_key_notice_message_content

- pendingupgrades_message_small
- pendingupgrades_message_subject
- pendingupgrades_message_content
2016-02-15 18:38:21 +01:00
Eloy Lafuente (stronk7) 1405f010b7 MDL-51580 upgradelib: Delete stuff used by removed upgrade steps
This commits removes stuff from different upgradelib files, used
exclusively by the already deleted upgrade steps. Given such
exclusivity it was not needed to proceed with a 2-phase deprecation
as far as the functions were 100% internal to upgrade.

This is the list of deleted functions, all them docummented in their
corresponding upgrade.txt files:

- repository_picasa_admin_upgrade_notification();
- repository_googledocs_admin_upgrade_notification();
- repository_boxnet_admin_upgrade_notification();
- repository_alfresco_admin_security_key_notice();
- qtype_essay_convert_to_html();
- portfolio_picasa_admin_upgrade_notification();
- portfolio_googledocs_admin_upgrade_notification();
- portfolio_boxnet_admin_upgrade_notification();
- mod_book_migrate_moddata_dir_to_legacy();
- mod_book_migrate_all_areas();
- mod_book_migrate_area();
- mod_assignment_pending_upgrades_notification();
- upgrade_mysql_fix_unsigned_and_lob_columns();
- upgrade_course_completion_remove_duplicates();
- upgrade_save_orphaned_questions();
- upgrade_rename_old_backup_files_using_shortname();
- upgrade_mssql_nvarcharmax();
- upgrade_mssql_varbinarymax();
- upgrade_fix_missing_root_folders();
- upgrade_course_modules_sequences();
- upgrade_grade_item_fix_sortorder();
- upgrade_availability_item();
2016-02-15 18:38:21 +01:00
Eloy Lafuente (stronk7) e8c82aac82 MDL-51580 upgrade: clean < 2.7.0 upgrade steps
This just deletes all the upgrade steps previous to 2.7.0. Some
small adjustments, like adding missing MOODLE_INTERNAL or tweaking
globals can also be applied when needed.

Next commit will get rid of/deprecate all the upgradelib functions
not used anymore in codebase.
2016-02-15 18:38:09 +01:00
sam marshall a4ce565f20 MDL-53012 Behat: Add step to run scheduled task 2016-02-15 17:24:15 +00:00
Rushikesh 36a2d817fc MDL-36652 report_log : Including the course short name in file name 2016-02-15 22:00:18 +05:30
Dan Poltawski 93fb2b649b Merge branch 'MDL-53039-master' of git://github.com/marinaglancy/moodle 2016-02-15 15:32:51 +00:00
Dan Poltawski e408c83fa7 Merge branch 'MDL-52414_m31v7' of https://github.com/sbourget/moodle 2016-02-15 14:31:39 +00:00
Dan Poltawski 96966ce6d9 Merge branch 'MDL-52342-master' of git://github.com/andrewnicols/moodle 2016-02-15 13:27:54 +00:00
Dan Poltawski 07853905ef Merge branch 'MDL-49146' of git://github.com/timhunt/moodle 2016-02-15 12:13:30 +00:00
Dan Poltawski c2f4304b98 Merge branch 'MDL-28030-cleanurls' of https://github.com/brendanheywood/moodle 2016-02-15 11:48:40 +00:00
Dan Poltawski c1184f6cc2 Merge branch 'wip_MDL-53029_master' of git://github.com/gjb2048/moodle 2016-02-15 11:07:38 +00:00
Dan Poltawski 220f8115d9 Merge branch 'MDL-44626-master' of git://github.com/andrewnicols/moodle 2016-02-15 10:36:20 +00:00
Andrew Nicols a9e12347b7 MDL-52217 repository: prepare_file should use per-request directory
The repository API defaults has a function, prepare_file, which is
responsible for creating a unique file to be used during the current
request.

This is usually used in the repository's get_file() function to store the
file before it is used elsewhere in the API to save the file to the
filestorage API.
It is also sometimes used to temporarily store credentials for the lifetime
of the session.

In all cases, this file is only expected to exist for the duration of the
session.

Switching to use of a per-request directory using make_request_directory()
ensures that the tempdir does not grow without control.

This commit also adds an upgrade step to remove all old temp directories
created by any repository currently installed.
2016-02-15 15:54:05 +08:00
David Monllao e8ba34ac89 Merge branch 'wip-MDL-52566-master' of https://github.com/cdsmith-umn/moodle 2016-02-15 15:17:13 +08:00
David Monllao 6cc1c06236 Merge branch 'MDL-49807-master' of git://github.com/marinaglancy/moodle 2016-02-15 15:11:09 +08:00
Juan Segarra Montesinos 34edbe5733 MDL-52862 mod_forum: format non HTML messages in search results
Override messageformat to FORMAT_HTML before calling forum_print_post
2016-02-15 07:55:22 +01:00
David Monllao 3738d1b60b MDL-52249 css: Recompile CSS 2016-02-15 14:20:02 +08:00
David Monllao 61c2a0804b Merge branch 'MDL-52249-master' of git://github.com/andrewnicols/moodle 2016-02-15 14:19:17 +08:00
David Monllao 85dc424a7c Merge branch 'MDL-48634_master' of git://github.com/markn86/moodle 2016-02-15 12:20:59 +08:00
Andrew Nicols 66a70b97ea MDL-29506 forum: Add tests for encode_content_links 2016-02-15 08:08:29 +08:00
Rushikesh 694d6347e7 MDL-29506 forum: Fix use of ampersand in backup parent links 2016-02-15 08:08:29 +08:00
Marina Glancy f26481c2dc MDL-51802 course: allow to edit section names on the course page 2016-02-13 11:07:46 +08:00
Marina Glancy cdc5f9785b MDL-51802 core: new template for quick editing a title
convert editing tag name to use new template
2016-02-13 11:07:42 +08:00
David Balch e61036f48e MDL-53077 assign: Set specific pagetype for pages with actions. 2016-02-12 16:35:04 +00:00
AMOS bot 50f8be00cc Automatically generated installer lang files 2016-02-13 00:04:01 +08:00
Rushikesh ef8dc8570b MDL-33663 Grading methods: Appropriate error message for negative grades 2016-02-12 16:58:27 +05:30
Andrew Nicols 75debb4dbb MDL-47365 mod_forum: Add permalink to forum posts 2016-02-12 08:03:01 +08:00
Eric Merrill 201a90938e MDL-50385 grades: Adding index to improve history search 2016-02-11 12:30:12 -05:00
M Kassaei 50aaf13e01 MDL-52964 Qtype: Add behat tests to core question types 2016-02-11 15:12:40 +00:00
Eloy Lafuente (stronk7) bf5c764f3c MDL-51580 environment: 3.1 requirements added
Only important change is that Moodle 2.7 installed is
required to be able to upgrade to 3.1. See the issue
for opinions, votes and agreed outcomes.
2016-02-11 16:08:48 +01:00
Brendan Heywood 2ab797c90b MDL-28030 weblib: Added $CFG->urlrewriteclass in config.php
This enables a plugin to implement rewriting rules enabling
    'clean' or 'semantic' urls such as /course/COMP100/ instead
    of /course/view.php?id=1234
2016-02-11 20:44:25 +11:00
Brendan Heywood 7898d616fa MDL-52969 mod_forum: Add List-Unsubscribe email header 2016-02-11 20:41:58 +11:00
Brendan Heywood 5afe390ef8 MDL-51196 mod_forum: Text emails link to post anchor 2016-02-11 20:41:12 +11:00
Brendan Heywood b1b480f97b MDL-52997 forum: Add more robust threading email headers 2016-02-11 20:34:31 +11:00
David Monllao 2f45a11ac4 weekly release 3.1dev 2016-02-11 13:58:46 +08:00
David Monllao 0e1c750c56 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-02-11 13:58:42 +08:00
Andrew Nicols 6f0768618a MDL-44626 files: Show the PHP max upload size instead of 'unlimited'
Even when a user has the appropriate capability to upload any sized files,
they are still restricted to the PHP post_max_size, and upload_max_filesize
values.

Rather than showing a value of "Unlimited', we should always restrict to
this value.
2016-02-11 10:55:54 +08:00
Andrew Nicols 296af14b19 MDL-51117 JavaScript: Convert alert to M.core.alert in dndupload
This also updates a language string to use string params instead of
hard-prefixing.
2016-02-11 08:43:27 +08:00
Andrew Nicols 6b963db3ff MDL-52342 theme: Reduce specificity of selector
These selectors were introduced to fix a real issue (highlighted by behat with
Chromedriver) whereby the 'Show section foo' link was partially covered by
another layer.

The fix in that issue was too broad and applied to all content > div areas,
which had some unforseen effects.

Since the original issue only affected activity instances, and sections (and
not content > div regions), I've removed this from the original patch.
2016-02-11 08:13:53 +08:00
Andrew Nicols 658a922fa6 MDL-44626 repository: Correct error message when uploading large files 2016-02-11 08:08:57 +08:00
Stephen Bourget a36eba45dc MDL-52414 Lesson: Apply defaults to lesson creation 2016-02-10 14:07:22 -05:00
Gareth J Barnard 6eaa3230ba MDL-53029 mod_book: Hidden chapter has markup in alt and title attrs. 2016-02-10 18:10:24 +00:00
Petr Skoda 267ac1b9eb MDL-52511 dml: add support for PostgreSQL 9.5
The default definition behaviour has changed for some int values.
2016-02-10 09:45:07 +00:00
Tim Hunt 97e9eb203e MDL-52814 questions: Show extra info in the outcomes area not info
Currently the only use is the quiz Redo question button, and that would
be much better placed in the feedback area, not least for langages where
the button label needs to be longer.
2016-02-10 08:47:10 +00:00
Andrew Nicols 87d567d3c5 MDL-51839 mod: Remove really old logos in gif format 2016-02-10 16:20:29 +08:00
Rajesh Taneja cd6e7e0da0 MDL-51306 mod_folder: Use context_module to find details
renderable should not be used for extracting
details. Use cm to get context and dir information
2016-02-10 15:51:31 +08:00
Marina Glancy aaa6bcb61a MDL-48307 mod_wiki: protect [edit] section link from nwiki parser 2016-02-10 14:23:57 +08:00
Andrew Nicols 985dca606f MDL-52930 forum: Fix random test failure caused by passing of time 2016-02-10 12:24:09 +08:00
David Monllao c63801675a Merge branch 'MDL-52766-master-mnet-url-length' of git://github.com/mudrd8mz/moodle 2016-02-10 08:55:04 +08:00
Tim Hunt 6d19eb4b23 MDL-52879 quiz editing: allow removal of the last question in a quiz
Even though you are not normally allowed to remove the last question
in a section.
2016-02-09 21:45:13 +00:00
Dan Marsden 3e28364257 MDL-50620 mod_scorm: Add Mastery score override setting
Thanks to Nathan Lewis for the initial patch
2016-02-10 09:20:25 +13:00
AMOS bot 11a003967e Automatically generated installer lang files 2016-02-10 00:03:56 +08:00
Eloy Lafuente (stronk7) d9b3898e5d Merge branch 'MDL-52896-master-apd' of git://github.com/mudrd8mz/moodle 2016-02-09 12:08:40 +01:00
Dan Poltawski e1a478c5f4 Merge branch 'MDL-49620_availability_settings' of git://github.com/synergylearning/moodle 2016-02-09 10:34:14 +00:00
Juan Leyva 7cc2106193 MDL-52999 mod_assign: New unit tests for subplugins 2016-02-09 11:22:30 +01:00
Juan Leyva 69115a5a14 MDL-52999 mod_assign: Fix subplugins handling in external functions 2016-02-09 11:22:01 +01:00
David Monllao 098650d8e2 Merge branch 'MDL-52930-master' of git://github.com/andrewnicols/moodle 2016-02-09 18:06:10 +08:00
Brendan Heywood eca8cf67dc MDL-52818 core: Added CFG->divertallemailsexcept config option
When $CFG->divertallemailsto is specified, this allows a list of email
or domain exceptions to be whitelisted enabling easier testing by groups
of testers who don't share a single email address.
2016-02-09 09:59:20 +00:00
Marina Glancy 3d89ccb374 MDL-49807 mod_wiki: minimum heading level should always be <h3> 2016-02-09 17:48:39 +08:00
Mark Nelson a3dd8be7dc MDL-48634 core: changes to automated tests to pass with changes 2016-02-09 17:46:43 +08:00
Mark Nelson 5af1321b41 MDL-48634 core_grades: added behat test for grade items form validation 2016-02-09 17:46:42 +08:00
Mark Nelson 1b8bd51c06 MDL-48634 core_form: added behat test for 'modgrade' validation 2016-02-09 17:46:42 +08:00
Mark Nelson 664d8be7ea MDL-48634 core: prevent change of grade values when necessary
Three additional checks have been added.

Once grades have been recorded for the activity/grade item -

1) Do not allow the grade type to be changed.
2) Do not allow the scale to be changed.
3) If we are using ratings do not allow the 'Maximum points'
value to be changed.

Also reordered form elements, removed form elements that
were not necessary, added and changed existing language
strings to improve the overall UI.
2016-02-09 17:46:42 +08:00
Dan Poltawski 37f77a1b37 Merge branch 'MDL-52895-master' of git://github.com/jleyva/moodle 2016-02-09 09:43:21 +00:00
David Monllao ba4fd381e0 Merge branch 'MDL-52902-master' of git://github.com/jleyva/moodle 2016-02-09 16:36:57 +08:00
David Monllao f79dd94b59 Merge branch 'MDL-52927' of https://github.com/mkassaei/moodle 2016-02-09 16:36:57 +08:00
Marina Glancy 6e0ecbe913 MDL-53039 rss: allow guest access to front page forum 2016-02-09 15:51:09 +08:00
Andrew Nicols a0bc890ec5 MDL-52928 message: Correct contact fetching in recent conversations 2016-02-09 13:38:59 +08:00
Jun Pataleta 825a3fa9d1 MDL-48015 grade: Fix the display of grade categories 2016-02-09 13:32:28 +08:00
David Monllao 332fb30a8d Merge branch 'MDL-51818_M30' of git://github.com/lazydaisy/moodle 2016-02-09 12:24:24 +08:00
Eloy Lafuente (stronk7) ba4eaf0a34 Merge branch 'wip-mdl-52949' of https://github.com/rajeshtaneja/moodle 2016-02-09 02:30:07 +01:00
Eloy Lafuente (stronk7) 53c19e0022 Merge branch 'MDL-52339-master' of git://github.com/andrewnicols/moodle 2016-02-09 00:45:19 +01:00
Eloy Lafuente (stronk7) de0a98f8ef Merge branch 'MDL-52938-master' of git://github.com/marinaglancy/moodle 2016-02-09 00:30:02 +01:00
Eloy Lafuente (stronk7) f5e0cb117a Merge branch 'MDL-52975-master-mnet-context' of git://github.com/mudrd8mz/moodle 2016-02-08 22:57:45 +01:00
Eloy Lafuente (stronk7) 40e85f3cd8 Merge branch 'MDL-52981-master' of https://github.com/sammarshallou/moodle 2016-02-08 22:55:07 +01:00
Eloy Lafuente (stronk7) 1274fd8316 Merge branch 'MDL-51075_master' of git://github.com/dmonllao/moodle 2016-02-08 22:44:47 +01:00
Eloy Lafuente (stronk7) 9d128ebda1 Merge branch 'MDL-50310-master-random-glossary' of git://github.com/mudrd8mz/moodle 2016-02-08 22:34:07 +01:00
Dan Poltawski a4391b76ee Merge branch 'MDL-48778-master' of git://github.com/lameze/moodle 2016-02-08 17:13:02 +00:00
Eloy Lafuente (stronk7) ba8491ae3f Merge branch 'MDL-52983' of git://github.com/aolley/moodle 2016-02-08 13:05:30 +01:00
Andrew Nicols 14cfe26f49 MDL-52249 theme_bootstrapbase: Remove dropdown-backdrop
Standard bootstrap adds a backdrop for touch-responsive clients.
Unfortunately the backdrop is not compatible with submenus.

The backdrop was only added in Bootstrap v2.3.1, and Moodle switched to
using the bootstrap JS in version 3.0.0.
2016-02-08 14:44:39 +08:00
David Monllao 04b3c78da4 Merge branch 'MDL-50115-master' of git://github.com/danpoltawski/moodle 2016-02-08 14:10:39 +08:00
David Monllao 4af9a8bfd3 Merge branch 'm31_MDL-52637_Disable_Automatically_Enabling_TLS_Encryption' of https://github.com/scara/moodle 2016-02-08 13:47:06 +08:00
Simey Lameze 2b10cf43d1 MDL-48778 mod_assign: behat tests for group submission 2016-02-08 12:58:41 +08:00
Adam Olley 15c9a9d726 MDL-52983 excel output: avoid single quote on end of sheet name
This change resolves a problem where a long sheet name, which gets
trimmed down with substr($name, 0, 31), could result in a sheet name
with a single quote on the end because the quote removal was done before
the substr.
2016-02-08 15:17:02 +10:30
David Monllao 502648e3a6 Merge branch 'MDL-51306' of https://github.com/andrewhancox/moodle 2016-02-08 11:23:34 +08:00
Eric Merrill 002864cc37 MDL-48778 assign: Use proper latest attempt for quickgrading prechecks
The code that stored lastmodified in gradingtable used a different
method to produce it than the processor used to generate the check
value. Fix that and also check that the attempt number has not changed.
2016-02-08 10:34:24 +08:00
David Monllao 7a662077f1 Merge branch 'MDL-51723-master' of git://github.com/andrewnicols/moodle 2016-02-08 09:02:41 +08:00
Andrew Nicols 0099960560 MDL-44087 mod_forum: Move forum digest to new processor 2016-02-08 07:54:14 +08:00
Tim Hunt 028044707f MDL-49146 single-activity course format: key activity must be visible
With a single-activity course, visibility to students is controlled by
course visibility. There is no sense in having the key activity not
visible to students, and, if you did, the symptoms were almost
incomprehensible. It was very hard to work out what you had done wrong.
2016-02-06 14:55:46 +00:00
AMOS bot d821e79f87 Automatically generated installer lang files 2016-02-06 00:03:58 +08:00
Damyon Wiese 3c4cf9f02b MDL-48634 grades: Remove hardcoded hack in grade book
This was testing specifically for mod_assign - now we can test to see if
an activity provides it's own rescaling function.
2016-02-05 18:20:17 +08:00
Eloy Lafuente (stronk7) 0b7e926fec MDL-48634 assign: Improve related feature to better cover new code.
This does:
- split the existing scenarion into background + 2 scenarions (yes and no).
- get rid of @javascript
- fix some whitespace
- add 2 more scenarios to verify the new server-side validation rule.
2016-02-05 18:20:17 +08:00
Damyon Wiese e7c71c189b MDL-48634 grades: Make the rescaling option required if maxgrade changes 2016-02-05 18:20:17 +08:00
Damyon Wiese d629c601c5 MDL-48634 grades: Add an option to rescale when changing the maxgrade 2016-02-05 18:20:17 +08:00
Andrew Nicols d6ffb0277a MDL-52930 mod_forum: Add get_unmailed_posts tests 2016-02-05 14:33:17 +08:00
Josh Marshall 86a77c9195 MDL-52930 forum: Correct get_unmailed_posts logic 2016-02-05 14:33:17 +08:00
David Monllao 44841ca911 MDL-52958 medialib: Allow vimeo fullscreen using links
All credit to Henrik Sune Pedersen.
2016-02-05 10:15:08 +08:00
David Monllao d1fba0f4f5 MDL-51075 filter_glossary: Fix popup position when no popups
Thanks to Andrew Nicols for cleaning my eyes.
2016-02-05 09:18:06 +08:00
Andrew Nicols 650c0086f9 MDL-52339 question: Fix question attempt removal for MySQL
Derived table support was altered in MySQL 5.7 changing the way in which
DELETE FROM works in some cases.

This change modifies the way in which deletion occurs by selecting all IDs
and batching them into groups of 1000.
2016-02-05 09:10:09 +08:00
David Mudrák 32fc1a69a5 MDL-50310 glossary: Fix restore of random glossary entry block
When restoring the random glossary entry block, we need to check that
the associated glossary has also been included in the backup and is
being restored. If not, we must invalidate the block configuration.

Before this patch, the block configuration was not invalidated.

Additionally, as a result of MDL-20131, the block configuration also
contains the course id of the associated glossary (which by the way does
not seem to be a wise choice, but I may be missing something). So we
need to remap this course id as well to avoid mismatch.
2016-02-05 00:08:39 +01:00
Matteo Scaramuccia 074b3dcecc MDL-52637 mail: Disabled automatic TLS encryption. 2016-02-04 21:16:23 +01:00
David Mudrák 1ef135e773 MDL-52975 mnet: Set system context on the MNet SSO landing page
Without the context being explicitly set, debugging warning can be
displayed in certain rare situations.
2016-02-04 17:14:30 +01:00
David Mudrák 511f8c46b7 MDL-52766 mnet: Support MNet peer URLs longer than 64 characters
The commonName in SSL certificate is limited to 64 characters as per
RFC 5280 (https://www.ietf.org/rfc/rfc5280.txt). We respect that limit
when generating the CN attribute from the site's $CFG->wwwroot. But then
we did not respect it when comparing the common name with the peer's
URL so the certificate was not considered valid.
2016-02-04 17:08:21 +01:00
Davo Smith 6badbf0135 MDL-49620 availability: plugins can have global settings 2016-02-04 15:21:02 +00:00
sam marshall f66da45fa5 MDL-52996 Atto: Allow plugins to customise toolbar 2016-02-04 12:42:27 +00:00
Dan Poltawski 00cceb7fba MDL-50115 grunt: provide a --root option to set base path
Windows users are not able to run grunt on a subpath due to platform
restrictions. So we provide this option to provide a workaround for that.

Thanks to Ty Delean who proposed this idea.
2016-02-04 12:03:53 +00:00
M Kassaei a752c61cb4 MDL-52927 qtype ddwtos and ddimageortext focus using keyboard 2016-02-04 10:30:50 +00:00
David Monllao 9d5d9c64ff weekly release 3.1dev 2016-02-04 14:30:03 +08:00
David Monllao e8074790d9 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-02-04 14:30:00 +08:00
AMOS bot 37f0cb879e Automatically generated installer lang files 2016-02-04 00:04:08 +08:00
sam marshall 6bd871d3dd MDL-52981 Unit tests: Reset global after test 2016-02-03 10:25:27 +00:00
Juan Leyva 0bf6c0bebe MDL-52895 webservice: Fix capability checks 2016-02-03 10:57:07 +01:00
Dan Poltawski 96c69429e5 Merge branch 'wip-MDL-52715-master-additional' of git://github.com/abgreeve/moodle 2016-02-03 09:44:27 +00:00
David Monllao 6d18da567d Merge branch 'MDL-52899' of git://github.com/timhunt/moodle 2016-02-03 13:44:41 +08:00
Adrian Greeve a2161d57a4 MDL-52715 lib: Clean up of comments and variable names. 2016-02-03 10:07:08 +08:00
Andrew Hancox 279918e126 MDL-51306 mod_folder: Add button to download entire folder. 2016-02-02 15:07:48 +00:00
Juan Leyva e3e036ee09 MDL-52974 mod_assign: New Web Service mod_assign_view_submission_status 2016-02-02 13:27:03 +01:00
David Monllao 52ad3afadb Merge branch 'wip-MDL-51283-master' of git://github.com/marinaglancy/moodle 2016-02-02 17:40:39 +08:00
Marina Glancy 4be9c7ad99 MDL-51283 core_tag: Allow each tag area to set 'showstandard' 2016-02-02 17:31:17 +08:00
Marina Glancy e11d7380c2 MDL-51283 core_tag: change tagtype to isstandard
Change 'official' to 'standard' in UI
2016-02-02 17:31:14 +08:00
Dan Poltawski 037d9918e1 Merge branch 'wip-mdl-42395' of https://github.com/rajeshtaneja/moodle 2016-02-02 08:18:06 +00:00
Rajesh Taneja 97eee5baac MDL-42395 mod_assign: Single feedback is always visible
Single feedback is always visible, so no need to click to expand
2016-02-02 16:06:45 +08:00
David Monllao 0612d476ef Merge branch 'MDL-49817-master' of git://github.com/danpoltawski/moodle 2016-02-02 13:57:43 +08:00
David Monllao 367cf39985 Merge branch 'MDL-52873-master-modgradeid' of git://github.com/mudrd8mz/moodle 2016-02-02 12:12:03 +08:00
David Monllao 51f322023f Merge branch 'MDL-52137-master' of git://github.com/andrewnicols/moodle 2016-02-02 10:55:59 +08:00
Marina Glancy e91a07f71b MDL-52938 mod_forum: check global setting to track forum posts 2016-02-02 10:54:22 +08:00
Dan Poltawski 3bb9f374e7 Merge branch 'MDL-42395_master' of git://github.com/markn86/moodle 2016-02-01 11:17:02 +00:00
Dan Poltawski 89881711da MDL-45740 choice: version bump 2016-02-01 11:09:42 +00:00
Dan Poltawski 98e01bb70e Merge branch 'MDL-45740_master' of git://github.com/markn86/moodle 2016-02-01 11:02:22 +00:00
Mark Nelson da82688689 MDL-45740 mod_choice: fixed remaining issues 2016-02-01 18:49:22 +08:00
Dan Poltawski b0e7075214 Merge branch 'wip-mdl-52932-m' of https://github.com/rajeshtaneja/moodle 2016-02-01 10:27:28 +00:00
Dan Poltawski c89a009c56 Merge branch 'MDL-52940_master' of git://github.com/markn86/moodle 2016-02-01 09:49:20 +00:00
David Monllao 6b7421003b Merge branch 'MDL-51704-master' of git://github.com/dpalou/moodle 2016-02-01 17:19:59 +08:00
David Monllao d23bf21b0a MDL-52715 js: Merge M.str and clean memory 2016-02-01 14:29:09 +08:00
David Monllao 0b39d21ae7 MDL-52715 ws: Fragments WS using fragment requires properly. 2016-02-01 14:29:09 +08:00
Adrian Greeve cc73ea075e MDL-52715 lib: Addition of new requirements class.
This adds a fragment requirements class to allow plugins
to register JavaScript to be used in an mform.
2016-02-01 14:29:09 +08:00
David Monllao 1dea567d6e Merge branch 'MDL-52261_master_file_not_found' of git://github.com/BenKelada/moodle 2016-02-01 13:55:57 +08:00
David Monllao cd55c6e249 Merge branch 'MDL-52913_master' of git://github.com/marxjohnson/moodle 2016-02-01 13:46:18 +08:00
Mark Nelson d14ba3a2f4 MDL-52940 core_backup: prevent always displaying logs 2016-02-01 12:43:53 +08:00
David Monllao b831527ce8 Merge branch 'MDL-52831-master-emptynames' of git://github.com/mudrd8mz/moodle 2016-02-01 11:28:40 +08:00
Rajesh Taneja ead6c29bb5 MDL-52949 behat: Use hover step and not click step
Message delete link is visible on hover
Click event can fail randomly.
2016-02-01 11:14:20 +08:00
Andrew Nicols abedeb8c70 MDL-51723 ldap: Normalise the user objectclass 2016-02-01 10:24:34 +08:00
lazydaisy 5b9b4d02a2 MDL-51818 theme_bootstrapbase: compiled moodle.css 2016-01-31 02:31:14 +00:00
lazydaisy 610f050640 MDL-51818 theme_bootstrapbase: Float context-header button-group LEFT 2016-01-30 14:39:33 +00:00
jinhofer 8cc02383bf MDL-50312 grade/report/grader: Fixed remaining issue
MDL-49764 fixed the appearance of user cells. However, the window
resize event was still incorrect. This is a fix for the window
resize event for ALL IE versions.
2016-01-29 12:16:06 -06:00
Mark Johnson a2497e5036 MDL-52913 behat: Abort database transactions on exception. 2016-01-29 11:54:56 +00:00
Mark Nelson 635166b8c8 MDL-42395 mod_assign: build YUI module and fixed lint errors 2016-01-29 17:56:11 +08:00
Rushikesh 4f491bf70b MDL-42395 mod_assign: Showing the most recent feedback 2016-01-29 17:56:05 +08:00
David Monllao c9d91bb734 weekly release 3.1dev 2016-01-29 14:36:50 +08:00
David Monllao 1789c20796 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-01-29 14:36:47 +08:00
Stephen Bourget e62f6a01e4 MDL-45740 choice: add new events 2016-01-29 13:23:15 +08:00
David Monllao ed654d4aa8 MDL-35590 block_navigation: Set attribute on node creation
Otherwise we would need to unescape href and title.
2016-01-29 13:01:26 +08:00
Rajesh Taneja 5e48383330 MDL-52932 behat: Restart session if it fails because of some reason 2016-01-29 11:59:01 +08:00
John Okely a057ba5924 MDL-35590 navigation: Remove link from admin node if you have javascript
Also:
* In behat, ensure nav node exists before checking attribute (Credit to
  Rajesh Taneja)
* Remove some unused JS constants
* Fix debugging notice for users without settings block
2016-01-29 11:28:08 +08:00
David Monllao 846cd414bf MDL-46553 admin: Version bump after history rewrite 2016-01-29 10:22:12 +08:00
Eloy Lafuente (stronk7) fabe7ebd53 MDL-50620 mod_scorm: Preventive (on rewrite) version bump to current. 2016-01-29 10:15:28 +08:00
David Monllao 4bed1fcc7e Merge branch 'MDL-35590-fixes' of git://github.com/ryanwyllie/moodle 2016-01-29 10:15:27 +08:00
Andrew Nicols ca29dd4e84 Merge branch 'MDL-52825_master-fix' of git://github.com/dmonllao/moodle 2016-01-29 10:15:26 +08:00
Ryan Wyllie 5697de1832 MDL-35590 block_navigation: fix keyboard nav
Fixed up the left/right keyboard navigation to match
the aria specification. Also stopped the root node from
being collapsible.
2016-01-29 10:15:26 +08:00
David Monllao 90902953a8 MDL-52825 atto: Listen to gesturemovestart to discard some events 2016-01-29 10:15:26 +08:00
Andrew Nicols 17cd73b684 Merge branch 'MDL-52826_master-fix' of git://github.com/dmonllao/moodle 2016-01-29 10:15:25 +08:00
Rajesh Taneja 80f37f2739 MDL-35590 behat: Data-loaded is on li node 2016-01-29 10:15:25 +08:00
David Monllao 3e51b0ad7e MDL-52826 forms: Using id attr
Switch from custom id references to the element's id attribute.

Extra fix to get rid of an unnecessary call to getValidationScript().
2016-01-29 10:15:25 +08:00
Eloy Lafuente (stronk7) 3c415f13b8 Merge branch 'MDL-29817' of https://github.com/rushi963/moodle 2016-01-29 10:15:24 +08:00
Eloy Lafuente (stronk7) 6e38f41d8e MDL-52567 Core: amend existing test to new counting rules 2016-01-29 10:15:24 +08:00
Eloy Lafuente (stronk7) bc269f6782 Merge branch 'MDL-52567_master' of https://github.com/nadavkav/moodle 2016-01-29 10:15:23 +08:00
Eloy Lafuente (stronk7) 89bb268e21 MDL-37739 mod_wiki: test headings being wikilinks (toc and content) 2016-01-29 10:15:23 +08:00
Eloy Lafuente (stronk7) 7b6d50b743 Merge branch 'MDL-37739-malformed-wiki-toc-links' of https://github.com/lucaboesch/moodle 2016-01-29 10:15:23 +08:00
Dan Poltawski e092a7c3d8 Merge branch 'MDL-48953_m31v4' of https://github.com/sbourget/moodle 2016-01-29 10:15:22 +08:00
Dan Poltawski 758e57499a Merge branch 'MDL-25864' of https://github.com/rushi963/moodle 2016-01-29 10:15:22 +08:00
David Monllao 5ceb208ba7 Merge branch 'MDL-42190-master-workshopdelsub' of git://github.com/mudrd8mz/moodle 2016-01-29 10:15:21 +08:00
David Monllao 25dbed8b9e Merge branch 'MDL-52459-master' of git://github.com/jleyva/moodle 2016-01-29 10:15:20 +08:00
Eloy Lafuente (stronk7) aeba2257f4 Merge branch 'MDL-52780-mailoriginscript' of https://github.com/brendanheywood/moodle 2016-01-29 10:15:20 +08:00
Eloy Lafuente (stronk7) 94fe0fa02e Merge branch 'wip-mdl-52839' of https://github.com/rajeshtaneja/moodle 2016-01-29 10:15:20 +08:00
Eloy Lafuente (stronk7) 81be5d3456 Merge branch 'MDL-52843-master-paramsignup' of git://github.com/mudrd8mz/moodle 2016-01-29 10:15:19 +08:00
Dan Poltawski 4ce6dac426 Merge branch 'MDL-52791' of git://github.com/timhunt/moodle 2016-01-29 10:15:19 +08:00
Dan Poltawski 4ce63c9ccf Merge branch 'MDL-52835-master' of git://github.com/deraadt/moodle 2016-01-29 10:15:19 +08:00
Dan Poltawski e23c76d72e Merge branch 'MDL-52826_master' of git://github.com/dmonllao/moodle 2016-01-29 10:15:18 +08:00
Dan Poltawski 1d1c8f6275 Merge branch 'MDL-51702_master' of git://github.com/dmonllao/moodle 2016-01-29 10:15:18 +08:00
Dan Poltawski 760b0a17f1 Merge branch 'MDL-52825_master' of git://github.com/dmonllao/moodle 2016-01-29 10:15:17 +08:00
David Monllao 99e96d83b6 Merge branch 'MDL-52682-master' of git://github.com/andrewnicols/moodle 2016-01-29 10:15:17 +08:00
David Monllao 33854a2968 MDL-52683 mod_scorm: Test for scorm_get_last_completed_attempt 2016-01-29 10:15:17 +08:00
David Monllao 0b8be05caf Merge branch 'MDL-52683-master' of git://github.com/s-cenni/moodle 2016-01-29 10:15:16 +08:00
David Monllao 0e5458f45f Merge branch 'wip-mdl-52799' of git://github.com/rajeshtaneja/moodle 2016-01-29 10:15:16 +08:00
David Monllao 6c3def94fa Merge branch 'MDL-35590-master' of git://github.com/lameze/moodle 2016-01-29 10:15:15 +08:00
David Monllao 9edcfdad4f Merge branch 'MDL-31635-master' of git://github.com/marinaglancy/moodle 2016-01-29 10:15:15 +08:00
Dan Poltawski 1aa454eda4 MDL-49817 grunt: handle multiple watched files changed at once
Includes multiple changes to the shifter task to simplify and
support this:
* Use grunt.file for shifter yui 'module' detection rather than our own
  70 line function
* Use grunt.util.spawn rather than our own exec for shifter
* Improve behaviour on various yui subdirectories

We have to add the 'async' depndency to npm because we are running
multiple async operations in the single task. We use async.eachSeries to
run each shifter job sequentally (else the output would be unreadable
when running async).

We also run shifter in non-recursive mode on the module directory so its
not building everything (thanks to Ryan for pointing this out!)
2016-01-28 08:30:04 +00:00
Dan Poltawski 0b777a069b MDL-49817 grunt: make shifter work watch on right place
We mess around with the cwd to find a shifter path, not ideal but avoids
having to refactor the shifter task.

Also fix jshint errors..

1) The gruntfile runs in a nodejs environment and not a browser
environment.

2) There was an uninitialised variable
2016-01-28 08:27:31 +00:00
Dan Poltawski 8efbb7b1a1 MDL-49817 grunt: add watch task
This allows files to be watched and automatically build when changed.

Thanks to David Monllaó for the initial basis for this patch.
2016-01-28 08:27:31 +00:00
Dan Poltawski 5cc5f31101 MDL-49817 grunt: Refactor the uglify task
This is in preperation for the watch task and doing a few things:

1) Switch away from 'grunt.file.expandMapping' to the declarative syntax
   for doing the same thing, as recommended in docs:
   http://gruntjs.com/api/grunt.file#grunt.file.expandmapping

2) Factor the renaming function into shared function so it can be used
   from the watch task too.

3) Shared the file glob'ing pattern for match AMD js files between
   jshint and uglify task (this removes the node_modules exception..
   we should add it to both if we need it).

4) Rename the task configuration - I am just doing this because it looks
   like 'dynamic_mappings' is some how magic config option when you
   look at the manual:
   http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically

   But in fact, it's just a task confguration name.
2016-01-28 08:27:30 +00:00
AMOS bot 3ccc59d199 Automatically generated installer lang files 2016-01-28 00:04:19 +08:00
Juan Leyva 51d2434cfe MDL-52902 webservice: Send CORS header before params validation 2016-01-27 10:26:04 +01:00
Dani Palou 156de651c7 MDL-51704 survey: Fix display problems in report page 2016-01-26 14:06:57 +01:00
Kenny McCormack 882bf2a54d MDL-48439 tool_capbility: Improve visualisation of capability table cells 2016-01-26 12:52:48 +00:00
Tim Hunt 41f4dabe2b MDL-52899 behat: make PAGE_READY_JS more robust 2016-01-26 11:23:26 +00:00
David Mudrák ef3cd03876 MDL-52896 moodlelib: Remove APD support relic
The support for Advanced PHP Debugger was dropped in Moodle 2.2
(MDL-29881). This seems to be a forgotten relic no longer used and
needed in moodlelib.
2016-01-26 09:33:35 +01:00
Dani Palou a69c9abdaf MDL-49612 forum: Fix some external_value creation in params declaration 2016-01-26 08:55:55 +01:00
Clement Smith 4956503b11 MDL-52566 mod/assign: Fix group submission draft records
When group assignments are submitted by the first student in a group,
the logic that saves the submission is not creating a draft
assignment record in mdl_assign_submission. This leads to problems
when other functions are used that depend on these records, such as
marking workflow. This fixes the issue and correctly creates
draft assignment submission records for the non-submitting students
in the group.
2016-01-25 10:06:45 -06:00
David Mudrák 66a3df7f55 MDL-42190 workshop: Add behat tests for the submissions removal feature 2016-01-25 16:10:59 +01:00
David Mudrák 58489e11f1 MDL-42190 workshop: Improve the confirmation of submission removal
I noticed we do not need to list the names of potentially affected
reviewers. If the user (teacher) has the capability to see other
assessments (which they do in 99%), the list of assessments is displayed
at the confirmation page anyway. If for some reason they do not have the
capability, we should not list the names.

The second fix is that the action buttons (such as Delete or Edit) are
not displayed on the removal confirmation page.

And finally, as the output->confirm() wraps the message with implicit
<p>, it is not valid to pass HTML with any block elements. So instead of
concatenating the two messages, we simply define a new string for this
situation.
2016-01-25 15:17:45 +01:00
David Mudrák 3fa22899b6 MDL-42190 workshop: Fix the coding style of the patch 2016-01-25 15:17:44 +01:00
Paul Nicholls 30c52da9be MDL-42190 workshop: Add "sumbission_deleted" event
Add (and trigger) an event for deletion of submissions, so that deletions
are logged.
2016-01-25 15:17:44 +01:00
Paul Nicholls deabe48bc5 MDL-42190 workshop: Add the ability to delete submissions
A new capability is introduced to control this, granted to teacher/admin
roles by default: mod/workshop:deletesubmissions.  Additionally, students
can delete their own submissions if they are currently able to edit them.
2016-01-25 15:17:44 +01:00
Marina Glancy 5824335f80 MDL-31635 completion: do not show % for the grade
Also show grades with the configured number of decimal points
2016-01-25 10:22:58 +08:00
AMOS bot 895d5aad79 Automatically generated installer lang files 2016-01-25 00:04:02 +08:00
Nadav Kavalerchik 5200054dc2 MDL-52567 Core: remove quotation marks, for proper word count 2016-01-24 00:47:13 +02:00
AMOS bot 97f26506f6 Automatically generated installer lang files 2016-01-23 00:04:07 +08:00
David Mudrák d84c64b7d6 MDL-52873 forms: Generate unique id attributes for modgrade elements
The previous method of generating the id attribute of the elements
within the modgrade group did not take the name of the modgrade field
into account. So if there were multiple fields of the modgrade type
added into a form (not a common case yet still valid), elements created
within the group were assigned same id attributes.

The patch introduces a new method for generating the id attribute of
modgrade elements. The new method takes the name of the modgrade group
into account and returns the id in the format similar to the default one
returned by HTML_QuickForm_element::_generateId().

The patch changes the generated id attribute. Apart from the
block_activity_results' behat feature files, not other places seem to
rely on the exact value.
2016-01-22 14:24:53 +01:00
Simey Lameze 6759dc35fe MDL-35590 block_navigation: fix remaining issues 2016-01-22 18:48:04 +08:00
Rajesh Taneja 10ac8baf6e MDL-35590 behat: Fixed navigation steps to support aria attributes 2016-01-22 17:53:44 +08:00
Sara Cenni ee8a2e2ed9 MDL-52683 mod_scorm: Fix for Last completed attempt error with Oracle 2016-01-22 10:16:05 +01:00
David Monllao 2edb12ec30 MDL-52826 forms: Move global functions to self-contained 2016-01-22 15:43:08 +08:00
Andrew Nicols fa544b236d MDL-52137 mod_forum: Move digest body to shared template 2016-01-22 10:09:32 +08:00
Andrew Nicols 61937f48f7 MDL-52682 mod_forum: Correct redirect URL when marking posts as read 2016-01-22 08:04:05 +08:00
Michael de Raadt acc9fed2ee MDL-52835 mod_data: Correct MIME type for JS template 2016-01-22 09:51:08 +11:00
Rushikesh 32f2116b08 MDL-29817 Form : advcheckbox allows attributes even without group key 2016-01-21 22:37:43 +05:30
Dan Poltawski dbf6b40782 MDL-49817 grunt: jslint rename task config and make explict src
Two reasons for this change:
1) The configuration here is confusing, it seems like we are setting the
   'files' option, but in fact we are just generating a task configuration
    called 'files'. Lets try and avoid confusion.

2) It makes it possible for 'watch' to override the src
2016-01-21 15:13:45 +00:00
Rushikesh f07e428c26 MDL-25864 Blog: Confirmation dialog before unregistering 2016-01-21 19:24:47 +05:30
Rajesh Taneja 380ab95f20 MDL-52839 behat: Fixed xpath and wait to ensure element is visible 2016-01-21 15:50:44 +08:00
Andrew Nicols eddec36d49 weekly release 3.1dev 2016-01-21 13:43:35 +08:00
Andrew Nicols 79fbb28c37 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-01-21 13:43:32 +08:00
John Okely f889544657 MDL-35590 block_navigation: Add aria roles to navigation block tree 2016-01-21 10:18:22 +08:00
David Monllao c35cf9bfcd MDL-51702 blocks: Allow permission overrides in dashboard 2016-01-21 08:46:58 +08:00
Dan Poltawski b42adaab44 Merge branch 'MDL-52702-m' of https://github.com/micaherne/moodle 2016-01-20 14:37:17 +00:00
Dan Poltawski 7fba3b0316 Merge branch 'MDL-52738-fixup' of https://github.com/timhunt/moodle 2016-01-20 11:42:29 +00:00
Tim Hunt 190fbfb60d MDL-52738 quiz: fix handling of showall by review prev link 2016-01-20 11:42:06 +00:00
David Mudrák 1f4d7d97fa MDL-52843 users: Fix the PARAM type of the name fields in signup form
If editing the profile, the useredit_shared_definition() function set
the type of all name fields to PARAM_NOTAGS. This patch sets that type
consistently in the user signup form, too.
2016-01-20 11:17:32 +01:00
Andrew Nicols d60bf9f1dd Merge branch 'MDL-52383' of https://github.com/stronk7/moodle 2016-01-20 10:16:19 +08:00
Eloy Lafuente (stronk7) 668aca1804 MDL-52383 Calendar: user prefs are varchar, look for varchars 2016-01-20 03:07:57 +01:00
Andrew Nicols 7ee117fab8 Merge branch 'MDL-50083' of https://github.com/stronk7/moodle 2016-01-20 10:02:30 +08:00
Eloy Lafuente (stronk7) 5311e22963 MDL-50083 mod_assign: protect code against not set flags
Yes could have used !empty() but for some reason found
the isset() && condition more clear. Tired brain, surely.
2016-01-20 02:50:15 +01:00
Eloy Lafuente (stronk7) 0ddbf9b937 Merge branch 'master_MDL-50083' of https://github.com/greg-or/moodle-mod_assign 2016-01-20 01:31:52 +01:00
Eloy Lafuente (stronk7) bb66ff5581 Merge branch 'master_MDL-42473' of git://github.com/danmarsden/moodle 2016-01-20 01:29:28 +01:00
Eloy Lafuente (stronk7) 4b2326faad Merge branch 'MDL-52383' 2016-01-20 01:26:22 +01:00
Eloy Lafuente (stronk7) d3220ca34f MDL-52383 Calendar: fix versions 2016-01-20 01:25:16 +01:00
Greg Faller 3eb931d365 MDL-50083 mod_assign: unlock submission when adding attempt 2016-01-20 09:26:55 +10:30
David Mudrák 1ccd813264 MDL-52831 users: Do not delete Mr. and Mrs. Whitespace accounts
Due to imperfect validation of the user registration and profile forms,
we allowed for firstname and lastname be just a whitespace. On MySQL,
such a whitespace is not significant for VARCHAR comparison so these
otherwise valid accounts could be silently deleted.

The patch makes sure that at least one of the checked fields is a real
empty string before deleting such account.
2016-01-19 21:40:45 +01:00
David Mudrák e9c27d1e0e MDL-52831 users: Automatically strip whitespace from name fields
This change prevents from registering and/or saving the profile of a
user with the whitespace instead of the required name.

Additionally, there is accessibility improvement for better error labels
in case of missing values (copied over from signup_form).
2016-01-19 21:40:45 +01:00
Dan Poltawski 6f85e729e3 MDL-52568 version: bump 2016-01-19 17:01:21 +00:00
Dan Poltawski c8c905577c Merge branch 'MDL-52568_master' of https://github.com/kevin-bruton/moodle 2016-01-19 16:48:11 +00:00
Rajesh Taneja 31ed36f193 MDL-52721 behat: Exclude links in moodle while finding tests
Parallel run create links within moodle
so avoid searching for tests within links
2016-01-19 14:35:18 +00:00
Dan Poltawski b0be5f76ae Merge branch 'MDL-51123-master' of git://github.com/jleyva/moodle 2016-01-19 11:01:47 +00:00
Dan Poltawski 61c8abfb1e Merge branch 'MDL-51715_master_invalidweights' of https://github.com/colin-umn/moodle 2016-01-19 10:39:48 +00:00
Luca Bösch 2c13bbba2b MDL-37739 mod_wiki: Wiki ToC header href remove square double brackets.
When H1, H2 and H3 links in wiki act themselves as hyperlinks, they
were displayed in double brackets. This patch removes [[ and ]] out of
the table of content displayed header hyperlinks.
2016-01-19 09:00:56 +01:00
Andrew Nicols 6c99c1e777 Merge branch 'MDL-48621_master' of git://github.com/dmonllao/moodle 2016-01-19 15:47:12 +08:00
David Monllao 923589d759 MDL-52825 atto: Ignore out of bounds event targets 2016-01-19 15:37:00 +08:00
David Monllao 356e235459 MDL-48621 admin: Warning about events 1 API deprecation 2016-01-19 15:19:13 +08:00
David Monllao 20ff2fba25 MDL-48621 events: Adapting unit tests to debugging messages
- A new assertDebuggingCalledCount has been introduced, as multiple debugging messages
  may be called in some cases, for example when calling events_cron with queued events
  that need to be dispatched.
- events_update_definition has been moved out of setUp as debugging messages are only
  caught by our phpunit custom stuff when they are called inside tests.
2016-01-19 15:19:10 +08:00
David Monllao 32f8bbd8dc MDL-48621 events: Adding debugging messages
Debugging messages triggered once it is confirmed that the events 1 api handlers
are being used.
2016-01-19 15:12:15 +08:00
Eloy Lafuente (stronk7) cf003b48bc Merge branch 'MDL-46091' of git://github.com/timhunt/moodle 2016-01-19 07:32:09 +01:00
Andrew Nicols 77ee47bdb2 Merge branch 'MDL-48985_m31v1' of https://github.com/sbourget/moodle 2016-01-19 12:56:26 +08:00
Andrew Nicols 62d0d0b46d Merge branch 'MDL-52673-master' of https://github.com/pauln/moodle 2016-01-19 10:23:53 +08:00
Andrew Nicols cd21909554 Merge branch 'MDL-52519' of https://github.com/rushi963/moodle 2016-01-19 10:18:41 +08:00
Andrew Nicols f87d633bec Merge branch 'MDL-52773-master' of https://github.com/pauln/moodle 2016-01-19 09:13:30 +08:00
Andrew Nicols f3d23df572 Merge branch 'MDL-52784' of git://github.com/timhunt/moodle 2016-01-19 08:54:55 +08:00
Andrew Nicols 9dd33a288e Merge branch 'MDL-52269_master' of https://github.com/dmonllao/moodle 2016-01-19 08:45:42 +08:00
Andrew Nicols fe99a27859 Merge branch 'MDL-52270_master' of https://github.com/dmonllao/moodle 2016-01-19 08:35:23 +08:00
Andrew Nicols 441ffe514e Merge branch 'MDL-49291_master' of git://github.com/markn86/moodle 2016-01-19 08:04:59 +08:00
Andrew Nicols 223c4add23 Merge branch 'MDL-50268-master' of git://github.com/lameze/moodle 2016-01-19 07:56:41 +08:00
Eloy Lafuente (stronk7) b9103d358d Merge branch 'MDL-52615_master' of https://github.com/nadavkav/moodle 2016-01-19 00:29:26 +01:00
Tim Hunt 1f0f413187 MDL-46091 quiz start attempt: rationalise confirmations.
1. Don't show a warning if there are a limited number of attempts, only
   if there is a time limit.
2. Merge that time-limit warning into the same form that is used for
   entering a password, etc.
3. Make that form an JavaScript dialogue when you click the start attempt
   button.

AMOS BEGIN
  MOV ['confirmstarttimelimit', 'mod_quiz'], ['confirmstart', 'quizaccess_timelimit']
AMOS END
2016-01-18 22:12:41 +00:00
Tim Hunt fdd629667e MDL-52791 quiz editing: handle unknown question types 2016-01-18 17:35:50 +00:00
AMOS bot 87c93de584 Automatically generated installer lang files 2016-01-19 00:04:29 +08:00
Dan Poltawski 0f97fc6c3f Merge branch 'MDL-52750' of git://github.com/timhunt/moodle 2016-01-18 15:50:11 +00:00
Dan Poltawski 5d5db1030f Merge branch 'MDL-52738' of git://github.com/timhunt/moodle 2016-01-18 14:47:45 +00:00
Dan Poltawski e34710c7fe Merge branch 'wip-mdl-52721' of https://github.com/rajeshtaneja/moodle 2016-01-18 14:39:46 +00:00
Dan Poltawski 574b76ace1 Merge branch 'MDL-52218_master_alt' of git://github.com/markn86/moodle 2016-01-18 14:03:54 +00:00
Dan Poltawski 0ff8d34f2f Merge branch 'MDL-52486-master' of git://github.com/cameron1729/moodle 2016-01-18 11:19:55 +00:00
Dan Poltawski 26e45019c8 Merge branch 'MDL-36404-master' of git://github.com/junpataleta/moodle 2016-01-18 10:24:04 +00:00
Kevin Bruton cfd8c0fe09 MDL-52568 core_cohort: added ability to return all cohorts in WS 2016-01-18 11:00:20 +01:00
Michael Aherne 5e43eea080 MDL-52702 plagiarism: Improvements to base plugin class 2016-01-18 09:39:54 +00:00
Rajesh Taneja 28dab6408c MDL-52799 unittest: Removed empty if statement 2016-01-18 15:47:07 +08:00
Andrew Nicols 45f167bd2b Merge branch 'MDL-45265-master' of git://github.com/danpoltawski/moodle 2016-01-18 14:54:54 +08:00
Andrew Nicols ae4cc740be Merge branch 'MDL-52608-master' of https://github.com/xow/moodle 2016-01-18 14:47:52 +08:00
Andrew Nicols 2e6462f327 Merge branch 'MDL-52573-master' of git://github.com/danpoltawski/moodle 2016-01-18 14:32:41 +08:00
Mark Nelson 806905b59b MDL-49291 core: final deprecation of sql_*_reader interfaces 2016-01-18 14:24:34 +08:00
Andrew Nicols 36f0a3cb1d Merge branch 'MDL-50464-master' of https://github.com/hcpss-banderson/moodle 2016-01-18 14:24:23 +08:00
Rajesh Taneja 1226f3ca33 MDL-52799 phpunit: Truncate records for brokedmysql not empty. 2016-01-18 14:10:18 +08:00
Simey Lameze 11d4bea28b MDL-50268 core: proper deprecation of get_file_url() method 2016-01-18 13:44:22 +08:00
David Monllao 50e954163d MDL-52269 mod_assign: Display info message if blind marking active
Only for users with mod/assign:viewblinddetails capability, as other
users will quickly notice it.
2016-01-18 12:15:34 +08:00
Andrew Nicols 159d801362 MDL-50915 mod_lesson: Remove js dependencies from behat tests 2016-01-18 10:46:32 +08:00
Rajesh Taneja 60237c2ce2 MDL-52721 unittest: Exclude tests in vendor and node_modules 2016-01-18 10:25:02 +08:00
Andrew Nicols d595468da5 Merge branch 'MDL-50915_m31v5' of https://github.com/sbourget/moodle 2016-01-18 10:18:31 +08:00
Andrew Nicols e2789e6bc1 Merge branch 'MDL-52570-master' of git://github.com/jleyva/moodle 2016-01-18 09:49:22 +08:00
Andrew Nicols 324a43c51e MDL-52309 gradereport_history: Adjust comment 2016-01-18 09:37:29 +08:00
Andrew Nicols 8d9b6ec254 Merge branch 'MDL-52309' of https://github.com/smbader/moodle 2016-01-18 09:33:36 +08:00
Jun Pataleta e9088e28ac MDL-36404 gradingform_rubric: Accessibility fixes rubric grading 2016-01-18 09:31:00 +08:00
Brendan Heywood e9180351f9 MDL-52780 email: Added better script origin email header 2016-01-18 08:12:49 +11:00
Rushikesh c2a21d928e MDL-52519 Idap tests: use consistent var name 2016-01-16 11:16:21 +05:30
Stephen Bourget a721339193 MDL-52383 Calendar: Allow users to set lookahead to 1 year 2016-01-15 13:14:56 -05:00
Tim Hunt c67ab86fa9 MDL-52738 quiz: Previous button during attempt review.
This is to be consistent with places like forum and book, where if we
have a next link, we also have a previous link.

At the same time I have amended the links/buttons from 'Previous'/'Next'
to 'Previous page'/'Next page' because I think that is clearer.

Also, on the last page of the quiz, I have changed 'Next' to 'Finish
attempt ...' for consistency with the link in the navigation block.

AMOS BEGIN
 CPY [navigatenext,mod_assignment],[navigatenext,mod_quiz]
 CPY [navigateprevious,mod_assignment],[navigateprevious,mod_quiz]
AMOS END
2016-01-15 14:25:25 +00:00
Tim Hunt a4100d4de3 MDL-52750 quiz reviewQ/comment: add page title & student name 2016-01-15 11:10:43 +00:00
Tim Hunt a82f26e324 MDL-52784 quiz: unused param in quiz_get_combined_reviewoptions calls 2016-01-15 11:05:47 +00:00
Michael Hughes 59e9548762 MDL-52270 mod_assign: Adapt unit tests 2016-01-15 10:04:04 +08:00
Michael Hughes 18b797347f MDL-52270 Assignment: Display Participant Number
Display participant number when user holds mod/assign:viewblinddetails capability.
2016-01-15 09:43:16 +08:00
Paul Nicholls 6d1ee59af2 MDL-52773 course: Fix section return from single section page
When editing a section from a single section page, you should be returned
to the section you were viewing/editing, not always to section 1.
2016-01-15 11:49:51 +13:00
Stephen Bourget 551c6b1cb4 MDL-48953 choice: Improve chart labels 2016-01-14 14:01:34 -05:00
Brendan Anderson 0b1f916e0f MDL-50464 block_rss_client: Implement renderers and templates 2016-01-14 08:45:54 -05:00
Dan Poltawski 2811831ae6 MDL-52573 report_grader: only check cap of installed plugins
Previously we were linking to gradebook plugins regardless of whether
they were installed. This should be fixed properly in MDL-52678.
2016-01-14 10:20:43 +00:00
Dan Poltawski e8d5100212 weekly release 3.1dev 2016-01-14 10:09:55 +00:00
Dan Poltawski dd3c2cf935 NOBUG: Fixed file access permissions 2016-01-14 10:09:55 +00:00
Dan Poltawski 7ea24d4925 NOBUG: Fixed SVG browser compatibility 2016-01-14 10:09:52 +00:00
Dan Poltawski 8e51689d53 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-01-14 10:09:52 +00:00
Dan Poltawski 431e5b6d0e Merge branch 'wip-MDL-50851-backupfix' of https://github.com/marinaglancy/moodle 2016-01-14 08:31:14 +00:00
Marina Glancy 71da0356b6 MDL-50851 core_tag: avoid fatal errors with corrupted data 2016-01-14 16:24:38 +08:00
Marina Glancy 721d665982 MDL-50851 core_tag: fix db query failure on oracle (again) 2016-01-14 15:26:49 +08:00
Andrew Nicols 4bc9112b14 Merge branch 'wip-MDL-50851-backupfix' of git://github.com/marinaglancy/moodle 2016-01-14 13:24:57 +08:00
Marina Glancy 25430f75d1 MDL-50851 core_tag: fix db query failure on oracle 2016-01-14 13:19:12 +08:00
Dan Marsden ed383edb36 MDL-42473 mod_scorm: Enable FEATURE_GROUPS for mod_scorm 2016-01-14 17:24:26 +13:00
Andrew Nicols 1002024cbc Merge branch 'wip-MDL-50851-backupfix' of git://github.com/marinaglancy/moodle 2016-01-14 11:03:26 +08:00
Marina Glancy 83acb49975 MDL-50851 core_tag: make query cross-db compatible 2016-01-14 10:54:27 +08:00
Dan Poltawski 59a968dc3b MDL-49290 message: add note about removed function 2016-01-13 15:21:17 +00:00
Dan Poltawski cfdb3d6fe7 Merge branch 'MDL-49290_master' of git://github.com/markn86/moodle 2016-01-13 15:21:01 +00:00
Dan Poltawski 337ff8294f MDL-50851 tag: fix whitespace errors 2016-01-13 14:29:22 +00:00
Dan Poltawski cbe1b86179 MDL-49662 local: upgrade.txt note 2016-01-13 13:56:38 +00:00
Dan Poltawski e7e0a5706d Merge branch 'wip-MDL-50851-backupfix' of https://github.com/marinaglancy/moodle 2016-01-13 12:35:18 +00:00
Dan Poltawski 67f6802712 MDL-50851 upgrade: dan *REALLY* *REALLY* sucks at integrating 2016-01-13 12:01:33 +00:00
Dan Poltawski 74a088bc82 Merge branch 'MDL-49662_master' of git://github.com/markn86/moodle 2016-01-13 11:40:49 +00:00
Dan Poltawski 51443a2130 MDL-49111 bennu: remove outdated readme note 2016-01-13 11:31:55 +00:00
Marina Glancy 8f5d6695e6 MDL-50851 block_tags: map context and colleciton in restore 2016-01-13 18:45:07 +08:00
Dan Poltawski 4cb85c4905 MDL-52210 upgrade: dan *REALLY* sucks at integrating 2016-01-13 09:09:22 +00:00
Dan Poltawski c3560ad652 MDL-52210 upgrade: dan sucks at integrating 2016-01-13 09:00:44 +00:00
Dan Poltawski 939d538c76 Merge branch 'MDL-52210-master-2' of git://github.com/cameron1729/moodle 2016-01-13 08:58:18 +00:00
Cameron Ball a73409d34e MDL-52210 webservices: Revise upgrade version number. 2016-01-13 13:48:06 +08:00
Andrew Nicols a0418089d9 Merge branch 'MDL-372-int-master' of git://github.com/ryanwyllie/moodle 2016-01-13 10:22:24 +08:00
Andrew Nicols 75e7c855fc MDL-43620 mod_chat: Whitespace fix 2016-01-13 10:20:25 +08:00
Ryan Wyllie f9621c56c4 MDL-372 forum: tests for pinned discussions 2016-01-13 02:01:27 +00:00
Ben Kelada 5f219cf181 MDL-372 forum: Improve pinning and update for Moodle 3.0 2016-01-13 02:01:26 +00:00
Charles Fulton 87b007b4dd MDL-372 forum: support for pinned discussion topics 2016-01-13 02:01:26 +00:00
Andrew Nicols f731f9c6d9 Merge branch 'MDL-50829-master' of git://github.com/danpoltawski/moodle 2016-01-13 09:56:31 +08:00
Andrew Nicols 1b67113353 Merge branch 'MDL-43620_m31v2' of https://github.com/sbourget/moodle 2016-01-13 09:38:45 +08:00
Andrew Nicols ca922c24e7 Merge branch 'MDL-51710-master' of git://github.com/FMCorz/moodle 2016-01-13 09:12:18 +08:00
Andrew Nicols 9ef638652b Merge branch 'MDL-52507_master' of https://github.com/jinhofer/moodle 2016-01-13 09:07:13 +08:00
Andrew Nicols 38c6a307eb Merge branch 'MDL-52586-master' of git://github.com/jleyva/moodle 2016-01-13 09:06:03 +08:00
Andrew Nicols 64858d435c Merge branch 'MDL-52649-master' of git://github.com/junpataleta/moodle 2016-01-13 08:58:29 +08:00
Joseph Inhofer 93172318b7 MDL-52507 enrol/manual: Generated a smart zIndex 2016-01-12 12:11:09 -06:00
Dan Poltawski 1be8237d41 Merge branch 'MDL-49021_master' of git://github.com/markn86/moodle 2016-01-12 17:02:24 +00:00
Dan Poltawski 6f838471f9 Merge branch 'MDL-49111_master' of git://github.com/markn86/moodle 2016-01-12 17:01:51 +00:00
Dan Poltawski e6f519b73e Merge branch 'MDL-49553_master' of git://github.com/markn86/moodle 2016-01-12 17:01:13 +00:00
Dan Poltawski 5ea1de4d85 Merge branch 'MDL-49724_master' of git://github.com/markn86/moodle 2016-01-12 16:56:12 +00:00
Dan Poltawski d31c63fc0e Merge branch 'MDL-49784_master' of git://github.com/markn86/moodle 2016-01-12 16:56:06 +00:00
Dan Poltawski 6fc72ea59e Merge branch 'MDL-49824_master' of git://github.com/markn86/moodle 2016-01-12 16:56:01 +00:00
Dan Poltawski 7fa6a8f1a6 MDL-50851 tag: fix whitespace errors 2016-01-12 16:34:58 +00:00
AMOS bot ae4dd1b0c8 Automatically generated installer lang files 2016-01-13 00:03:55 +08:00
Dan Poltawski 04a03ff282 Merge branch 'wip-MDL-50851-master' of git://github.com/marinaglancy/moodle 2016-01-12 14:17:14 +00:00
Dan Poltawski b8ab80f07e Merge branch 'MDL-52210-master' of git://github.com/cameron1729/moodle 2016-01-12 13:36:13 +00:00
Dan Poltawski 07f4e11100 Merge branch 'MDL-52315-master' of git://github.com/andrewnicols/moodle 2016-01-12 13:31:40 +00:00
Dan Poltawski 149ba5c227 Merge branch 'MDL-52661-master' of git://github.com/junpataleta/moodle 2016-01-12 12:56:09 +00:00
Dan Poltawski 73c2ae931d Merge branch 'MDL-52491-master' of git://github.com/jleyva/moodle 2016-01-12 11:35:25 +00:00
Dan Poltawski e7cacf211e Merge branch 'MDL-21912-master' of git://github.com/cameron1729/moodle 2016-01-12 11:08:11 +00:00
Dan Poltawski 7931245f95 Merge branch 'wip-mdl-52656' of https://github.com/rajeshtaneja/moodle 2016-01-12 10:39:46 +00:00
Andrew Nicols dc8675fdad Merge branch 'master' of https://github.com/janeklb/moodle 2016-01-12 09:31:09 +00:00
Andrew Nicols 0755d638d7 Merge branch 'MDL-52560-m' of https://github.com/micaherne/moodle 2016-01-12 09:31:08 +00:00
Andrew Nicols c7198e2a0e Merge branch 'MDL-52585-master' of git://github.com/jleyva/moodle 2016-01-12 09:31:08 +00:00
Andrew Nicols 8b9a15bbab Merge branch 'MDL-52610_master' of git://github.com/dmonllao/moodle 2016-01-12 09:31:07 +00:00
Andrew Nicols 576d953415 Merge branch 'MDL-52643_m31v1' of https://github.com/sbourget/moodle 2016-01-12 09:31:06 +00:00
Andrew Nicols 7b9b861b7b Merge branch 'MDL-52290_editpdf_pagecount' of git://github.com/davosmith/moodle 2016-01-12 09:31:06 +00:00
Andrew Nicols 6009fa550c Merge branch 'patch-11' of https://github.com/sk-unikent/moodle 2016-01-12 09:31:05 +00:00
Andrew Nicols ae39b42337 Merge branch 'MDL-52563-master' of git://github.com/cameron1729/moodle 2016-01-12 09:31:05 +00:00
Andrew Nicols c57542a8d2 MDL-38020 behat: Correct singleselect usage 2016-01-12 09:31:05 +00:00
Andrew Nicols a1013a8054 Merge branch 'MDL-38020-master' of git://github.com/danpoltawski/moodle 2016-01-12 09:31:04 +00:00
Andrew Nicols dc2aa7f947 Merge branch 'MDL-27840-master' of git://github.com/danpoltawski/moodle 2016-01-12 09:31:03 +00:00
Dan Poltawski 46767cc204 Merge branch 'MDL-52589-m' of https://github.com/micaherne/moodle 2016-01-12 09:31:03 +00:00
David Monllao 9ccc372917 MDL-52610 user: Honour allowaccountssameemail in create_users ws
Credit to Dmitriy Kuzevanov.
2016-01-12 13:54:48 +08:00
Jun Pataleta 9488b6f3a4 MDL-52649 user: Add check for potentially undefined variables 2016-01-12 08:56:17 +08:00
Steve Bader 1dabeb8439 MDL-52309 gradereport_history: require user to submit parameters
Prevent a timely full report from loading when need is exceedingly
rare. Only execute the report when the user has submitted the form.
2016-01-11 11:12:30 -05:00
Dan Poltawski a17820bb70 Merge branch 'MDL-52000-master' of git://github.com/andrewnicols/moodle 2016-01-11 13:17:10 +00:00
Dan Poltawski 687a268cbd Merge branch 'MDL-41531-master' of git://github.com/junpataleta/moodle 2016-01-11 11:08:25 +00:00
Dan Poltawski b8ebc30cd1 Merge branch 'wip-MDL-52697-master' of git://github.com/abgreeve/moodle 2016-01-11 09:24:22 +00:00
Michael Aherne d9ffd8518a MDL-52589 cache: Allow unused stores to be uninstalled 2016-01-11 09:04:37 +00:00
Mark Nelson ae139d7911 MDL-52218 gradereport_grader: added behat test for switching views 2016-01-11 16:02:31 +08:00
Mark Nelson 20180b3167 MDL-52218 gradereport_grader: fixed 'grade:viewhidden' related errors
There were two main reasons why there were PHP errors.

1) We were not passing variables as references.
2) When we were restricting the number of items shown in
   the report we were not collecting all of the dependencies
   which were required when a user did *not* have the
   capability 'moodle/grade:viewhidden'. This would cause
   an undefined offset error due to the index missing in
   the dependency array.

This also meant that a user without the capability 'moodle/grade:viewhidden'
could view the course total without hidden items being taken into account
if they were not being displayed. To resolve this we now pass all the grades
and grade items when the user does not have the capability - which also solves
the PHP errors listed above.
2016-01-11 16:01:33 +08:00
Cameron Ball 035247e0f2 MDL-52486 JavaScript: Make sure lang codes use underscores.
In some cases, underscores in lang codes get replaced with dashes
which causes some JavaScript to be unhappy. This patch simply reverse
the underscore to dash replacement on the JS side.
2016-01-11 15:23:29 +08:00
Cameron Ball 088d6086d8 MDL-21912 restore: Add admin setting to restore conflicting admin user 2016-01-11 14:08:58 +08:00
eWallah f07bbccb03 MDL-41531 enrol_paypal: Fix enrol errors due to non-ASCII characters 2016-01-11 10:48:47 +08:00
AMOS bot eacc9ebaf3 Automatically generated installer lang files 2016-01-11 00:04:07 +08:00
Marina Glancy 3da0c3cbf4 MDL-50851 tool_uploaduser: allow to set interests 2016-01-10 15:25:48 +08:00
Marina Glancy 54f63cd11b MDL-50851 tool_uploadcourse: allow to set tags 2016-01-10 15:25:48 +08:00
Marina Glancy ac840cf487 MDL-50851 blocks: convert to new tag API 2016-01-10 15:25:48 +08:00
Marina Glancy b0c62e00bc MDL-50851 block_tags: tag collections settings 2016-01-10 15:25:48 +08:00
Marina Glancy c4e868d5f0 MDL-50851 user: use new tag API for interests 2016-01-10 15:25:47 +08:00
Marina Glancy b355a1c97c MDL-50851 core_question: use new tag API 2016-01-10 15:25:47 +08:00
Marina Glancy 74fa9f76dc MDL-50851 course: use new tag API 2016-01-10 15:25:47 +08:00
Marina Glancy abea2c5deb MDL-50851 blogs: use new tag API 2016-01-10 15:25:47 +08:00
Marina Glancy b0b2c93da9 MDL-50851 mod_wiki: use new tag API 2016-01-10 15:25:46 +08:00
Marina Glancy c026a28d59 MDL-50851 core_tag: introduce tag collections 2016-01-10 15:25:43 +08:00
Frederic Massart 2a5920c338 MDL-51710 repository_s3: Use proxy settings when communicating with S3 2016-01-08 16:49:54 +08:00
Adrian Greeve 03af7e696e MDL-52697 calendar: Fixed notice for $name not being defined. 2016-01-08 11:42:20 +08:00
Rajesh Taneja faea241337 MDL-52656 unittest: Reset original session while setting user 2016-01-08 09:41:28 +10:00
Juan Leyva ea21d6370f MDL-52570 message: Do not return deleted messages in WS 2016-01-07 12:10:32 +01:00
Jun Pataleta fb43a326c2 MDL-52661 gradingform_gudie: Accessibility fixes for marking guide 2016-01-07 17:12:17 +08:00
Andrew Nicols 6667ebb98e MDL-52000 mod_forum: Respect timed posts in course overview block 2016-01-07 16:57:27 +08:00
Dan Poltawski e65dfd9f28 weekly release 3.1dev 2016-01-07 08:32:34 +00:00
Dan Poltawski 93defaa85e Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-01-07 08:32:30 +00:00
John Okely 33501d2804 MDL-52608 core: Use property_exists in fullname
Credit to Dmitriy Kuzevanov for the patch.
2016-01-07 07:24:02 +00:00
Paul Nicholls 3afe22b09e MDL-52673 workshop: fix dndnotsupported message in assessment form
An old CSS rule which doesn't seem to serve any purpose any more was
causing the "drag and drop not supported" message to be displayed (even
when incorrect) in the workshop assessment form when using a list-view
rubric as the grading strategy.
2016-01-07 14:38:48 +13:00
AMOS bot 4bdc6cb9a6 Automatically generated installer lang files 2016-01-07 00:04:23 +08:00
Skylar Kelty ee4320a6fc MDL-52664 forum: Fix forum email unsubscribe/discussion URL 2016-01-06 12:50:50 +00:00
Dan Poltawski 2e2d3c9b17 MDL-45265 behat: tests for admin_bookmarks block 2016-01-06 11:00:58 +00:00
Mark Nelson a0ac16cb88 MDL-49662 core: dropped support for legacy local_* navigation API 2016-01-06 16:53:33 +08:00
Andrew Nicols 4aaa38e8fa MDL-52000 mod_forum: Respect timed posts in course overview block 2016-01-06 16:20:48 +08:00
Andrew Nicols 2bc02f2e63 Merge branch 'wip-mdl-52614' of https://github.com/rajeshtaneja/moodle 2016-01-06 13:37:50 +08:00
Rajesh Taneja 766e3b52e7 MDL-52614 mod_workshop: right align for dir-rtl only 2016-01-06 15:31:31 +10:00
Andrew Nicols 81117053b3 Merge branch 'MDL-49231-master-fix2' of https://github.com/FMCorz/moodle 2016-01-06 12:05:34 +08:00
Mark Nelson ab2d9b34b1 MDL-49784 core: final deprecation of useredit_shared_definition_preferences() 2016-01-06 11:55:29 +08:00
Frederic Massart 0c48895bb7 MDL-49231 mod_glossary: Invalid pivot when printing entries 2016-01-06 11:15:56 +08:00
Mark Nelson 94cec934a6 MDL-49553 core_block: final deprecation of config_save() 2016-01-06 10:58:50 +08:00
Mark Nelson 7481f4229a MDL-49021 gradereport_grader: final deprecation of get_collapsing_icon() 2016-01-06 10:39:53 +08:00
Mark Nelson 5e156fe8ce MDL-49724 core_ddl: final deprecation of guess_antolope_row_size() 2016-01-06 10:38:22 +08:00
Mark Nelson 62d020ea22 MDL-49824 core_dml: final deprecation of set_logging() 2016-01-06 10:31:38 +08:00
Andrew Nicols 5732322ee9 MDL-52315 mod_forum: Deprecate postmailinfo string 2016-01-06 10:21:08 +08:00
Nadav Kavalerchik 22e97be318 MDL-52615 Workshop: Right align phase status icons, in RTL mode. 2016-01-05 20:34:09 +02:00
AMOS bot f6005ab8aa Automatically generated installer lang files 2016-01-06 00:03:53 +08:00
Dan Poltawski 37727364bb Merge branch 'MDL-52503_master' of git://github.com/dmonllao/moodle 2016-01-05 14:47:45 +00:00
Dan Poltawski 3348fa77ff Merge branch 'MDL-52258-master' of git://github.com/juancs/moodle 2016-01-05 14:46:12 +00:00
Dan Poltawski 6393e3d971 Merge branch 'MDL-50916_m31v2' of https://github.com/sbourget/moodle 2016-01-05 12:46:11 +00:00
Juan Leyva 4323a973d5 MDL-52072 enrol: Fix course visibility checks in external functions 2016-01-05 10:31:23 +00:00
Davo Smith 0d5a260ecd MDL-52290 assignfeedback_editpdf: show number of pages in page select 2016-01-05 10:01:45 +00:00
Janek Lasocki-Biczysko c9b6feea0e MDL-52504 grunt: fixed scope of jshint when in amd directory 2016-01-05 09:59:09 +00:00
Juan Leyva 8e2707b92b MDL-52491 webservice: Do not enable XML-RPC server for mobile anymore 2016-01-05 09:13:27 +01:00
Matt Rice be28a7823e MDL-52563 mod_forum: Cleanup digestbasic template 2016-01-05 15:38:14 +08:00
David Monllao 1a51661b94 MDL-52503 mod_assign: Removing session cache
Replaced with a global $SESSION var, deferring cleanup to session
destroy.
2016-01-05 15:04:32 +08:00
Andrew Nicols e98dffe129 Merge branch 'MDL-49231-master-fix' of https://github.com/FMCorz/moodle 2016-01-05 15:03:55 +08:00
Mark Nelson be43ad0d81 MDL-49290 core: final deprecation of message_current_user_is_involved() 2016-01-05 14:57:46 +08:00
Mark Nelson 678b315f46 MDL-49111 core: final deprecation of calendar_normalize_tz() 2016-01-05 14:48:44 +08:00
Andrew Nicols 887785db42 Merge branch 'wip-mdl-51881' of https://github.com/rajeshtaneja/moodle 2016-01-05 14:08:18 +08:00
Rajesh Taneja 0583bbd1d6 MDL-51881 behat: updated composer pointing to new tag 2016-01-05 13:59:45 +08:00
Rajesh Taneja 66fe88db93 MDL-51881 behat: Set navbar to be absolutely positioned
All behat drivers are now replicating human behavior
so when the browser scrolls something into view it doesn't account
for fixed positioned elements that end up obscuring the item thus
leading to errors that could be avoided by scrolling an additional amount.
2016-01-05 13:59:45 +08:00
Andrew Nicols 8b198577e2 Merge branch 'MDL-52078-master' of git://github.com/cameron1729/moodle 2016-01-05 13:53:58 +08:00
Cameron Ball 752ad002da MDL-52078 gradebook: Behat tests for hidden grade items. 2016-01-05 13:48:54 +08:00
Frederic Massart a10b03d310 MDL-49231 mod_glossary: Advanced search is case sensitive 2016-01-05 13:18:24 +08:00
Frederic Massart 5eabb5e76e MDL-49231 mod_glossary: Reverting back to not using recordsets 2016-01-05 13:18:24 +08:00
Cameron Ball 13ae7db2bb MDL-52210 webservices: Remove AMF webservice 2016-01-05 10:36:26 +08:00
Andrew Nicols 2becd930f9 Merge branch 'MDL-52625_master' of https://github.com/nadavkav/moodle 2016-01-05 08:05:17 +08:00
Dan Poltawski acf2aa9c0d Merge branch 'MDL-52614_master' of https://github.com/nadavkav/moodle 2016-01-04 18:13:08 +00:00
Stephen Bourget afd5408eda MDL-50915 Lesson: Behat test for overview report 2016-01-04 12:05:17 -05:00
Stephen Bourget fbf85b8d76 MDL-50915 Lesson: Fix information on outline report 2016-01-04 12:03:49 -05:00
Stephen Bourget 8cf5ac4acc MDL-43620 Chat: Behat test for course reset 2016-01-04 11:39:09 -05:00
Stephen Bourget a646cd5696 MDL-43620 Chat: Fix error on course reset 2016-01-04 11:38:51 -05:00
Dan Poltawski 46cf618806 Merge branch 'MDL-52645-master-enfix' of git://github.com/mudrd8mz/moodle 2016-01-04 15:31:51 +00:00
Dan Poltawski 6f61123346 Merge branch 'MDL-52576_user_profile' of https://github.com/BenKelada/moodle 2016-01-04 15:06:17 +00:00
Dan Poltawski 98e981aacb Merge branch 'MDL-52638_m31v1' of https://github.com/sbourget/moodle 2016-01-04 11:36:14 +00:00
Dan Poltawski 5a0331e2d8 Merge branch 'MDL-49231-master' of git://github.com/jleyva/moodle 2016-01-04 10:51:05 +00:00
Helen Foster 8bd563e53f MDL-52645 lang: Merge English strings from the en_fix language pack 2016-01-04 11:48:33 +01:00
Peter Miller f3460b0fc6 MDL-52078 gradebook: Stop totals including hidden items.
This patch fixes a problem where the course and user reports, when viewed by
a student, were incorrectly including hidden grade items in the course totals,
making the percentages lower than they should be.
2016-01-04 17:53:06 +08:00
Juan Segarra Montesinos 6349d1e062 MDL-52258 calendar: show event duration on block
Add class .duration_finish to days when an event with duration
finishes. Removes the .muted class from weekend days. Adds
$daytime for the popup title. Tests duyrationbyday too in order
to report no events for a day. Adds endtime suffix to the finish
date of an event with duration.
2016-01-04 09:40:13 +01:00
Nadav Kavalerchik 6ca6d623b0 MDL-52625 Badges: Right align manage badges table content, in RTL mode. 2016-01-04 09:26:44 +02:00
Nadav Kavalerchik 015275569f MDL-52614 Workshop: Right align user's picture on Assessed submission. 2016-01-04 08:12:20 +02:00
Andrew Nicols 23079c2941 Merge branch 'MDL-49566_master' of git://github.com/markn86/moodle 2016-01-04 13:53:40 +08:00
Dan Poltawski 835ca0419b MDL-52552 course management: insufficient cleaning of search output 2016-01-04 10:13:58 +08:00
Andrew Nicols aabb46e9ac Merge branch 'MDL-51445_m31v1' of https://github.com/sbourget/moodle 2016-01-04 09:20:31 +08:00
Ben Kelada 14ebc39645 MDL-52576 forum: fix user profile picture in external service 2016-01-04 11:36:12 +11:00
Stephen Bourget 21ee092061 MDL-50916 Lesson: Behat test for complete report 2016-01-03 14:55:38 -05:00
Stephen Bourget 764c4fbcba MDL-50916 Lesson: Fix information on complete report 2016-01-03 14:44:59 -05:00
AMOS bot a731f98286 Automatically generated installer lang files 2016-01-04 00:04:16 +08:00
Stephen Bourget 2b65892939 MDL-52643 block_blog_menu: Add behat tests 2016-01-02 16:01:46 -05:00
Stephen Bourget fd027cd146 MDL-52638 activity_results: Improve Behat tests 2016-01-01 18:54:45 -05:00
Stephen Bourget 22b0838538 MDL-48985 Lesson: Remove obsolete reformat.php file 2015-12-31 22:33:03 -05:00
Juan Leyva 06d58e6e67 MDL-49231 mod_glossary: Fix SQL queries for Oracle 2015-12-31 15:18:41 +01:00
Juan Leyva baf25486b4 MDL-49231 mod_glossary: Fix tests for Postgres (ordering) 2015-12-31 15:18:41 +01:00
Frederic Massart a4d9adcb47 MDL-49231 mod_glossary: Minor coding style improvements 2015-12-31 15:18:40 +01:00
Frederic Massart a58a792ba6 MDL-49231 mod_glossary: Ensure consistent order when pagination is used 2015-12-31 15:18:40 +01:00
Frederic Massart bca824f7a8 MDL-49231 mod_glossary: Update service definition 2015-12-31 15:18:40 +01:00
Frederic Massart c242e3f4dd MDL-49231 mod_glossary: External function get_entries_to_approve 2015-12-31 15:18:40 +01:00
Frederic Massart 70d20d0893 MDL-49231 mod_glossary: Update view and print to use new lib functions 2015-12-31 15:18:39 +01:00
Frederic Massart 93e122e0dc MDL-49231 mod_glossary: External function get_entries_by_term 2015-12-31 15:18:39 +01:00
Frederic Massart 08d7954f8f MDL-49231 mod_glossary: External function get_entry_by_id 2015-12-31 15:18:39 +01:00
Frederic Massart 24777f7a07 MDL-49231 mod_glossary: External function get_entries_by_search 2015-12-31 15:18:39 +01:00
Frederic Massart 8382bb4eb3 MDL-49231 mod_glossary: Moving DB queries to glossary lib 2015-12-31 15:18:38 +01:00
Frederic Massart 3bb1585270 MDL-49231 mod_glossary: Use a query builder to avoid code duplication 2015-12-31 15:18:38 +01:00
Frederic Massart 21e30022b2 MDL-49231 mod_glossary: Adding a method to validate a glossary by ID 2015-12-31 15:18:38 +01:00
Frederic Massart e70f58cdc3 MDL-49231 mod_glossary: External function get_entries_by_author_id 2015-12-31 15:18:38 +01:00
Frederic Massart f7d9cd23c7 MDL-49231 mod_glossary: External function get_entries_by_author 2015-12-31 15:18:37 +01:00
Frederic Massart 06c8bd2244 MDL-49231 mod_glossary: External function get_authors 2015-12-31 15:18:37 +01:00
Frederic Massart 9cafa794c4 MDL-49231 mod_glossary: External function get_entries_by_category 2015-12-31 15:18:37 +01:00
Frederic Massart efb7a0a9b0 MDL-49231 mod_glossary: External function get_categories 2015-12-31 15:18:37 +01:00
Frederic Massart 6a273d5a5d MDL-49231 mod_glossary: External function get_entries_by_date 2015-12-31 15:18:37 +01:00
Frederic Massart fe11f9a4f6 MDL-49231 mod_glossary: External function get_entries_by_letter 2015-12-31 15:18:36 +01:00
Frederic Massart 61fce28459 MDL-49231 mod_glossary: External function view_entry 2015-12-31 15:18:36 +01:00
Frederic Massart d0d4372ce7 MDL-49231 mod_glossary: External function view_glossary 2015-12-31 15:18:13 +01:00
Dan Poltawski ef343c3299 weekly release 3.1dev 2015-12-31 08:16:35 +00:00
Dan Poltawski 8af9cb76e2 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-12-31 08:16:31 +00:00
David Monllao d6024b8493 Merge branch 'MDL-52347_master-fix' of git://github.com/dmonllao/moodle 2015-12-31 13:20:40 +08:00
AMOS bot b6336adb4b Automatically generated installer lang files 2015-12-31 00:03:52 +08:00
Dan Poltawski d60ae73236 MDL-38020 behat: for enrollment management from participants page 2015-12-30 15:25:31 +00:00
Dan Poltawski 7057c3efa9 MDL-38020 participants: Use consistent link for editing enrollments
Previously the role assignment url was used when a role was selected, but
this page doesn't enrol users into the course (its the old 1.9 way
before we had the enrollments table).
2015-12-30 14:53:26 +00:00
Dan Poltawski 949c27a026 MDL-27840 course: prevent warnings on half-uninstall mod 2015-12-30 14:12:54 +00:00
Dan Poltawski 53a2405c9c MDL-50357 groups: remove pointless option of groups_delete_group_members 2015-12-30 09:19:22 +00:00
Dan Poltawski 38c67d21e0 Merge branch 'MDL-50357_master' of git://github.com/markn86/moodle 2015-12-30 09:19:17 +00:00
Juan Leyva 7f28e8a58f MDL-51123 mod_scorm: Do not display SCO with invisible = false 2015-12-30 09:52:33 +01:00
David Monllao 19a1973a9a MDL-52347 format_social: Replicate wait between new discussions 2015-12-30 14:47:45 +08:00
Mark Nelson 04503c5cde MDL-50357 core_group: tidy up the function groups_delete_group_members 2015-12-30 09:27:05 +08:00
AMOS bot 0fd0e88127 Automatically generated installer lang files 2015-12-30 00:03:54 +08:00
Juan Leyva 1a5f7e4cad MDL-50428 mod_scorm: Fix tests for mod_scorm_launch_sco 2015-12-29 16:36:39 +01:00
Dan Poltawski 0a7051ff5a MDL-50829 lang: fix to RTL/LTR bracket confusion
Thanks to ISHIKAWA Takayuki for the initial patch
2015-12-29 12:30:18 +00:00
Juan Leyva 7f062ebedd MDL-52459 mod_scorm: Auto-update downloaded packages 2015-12-29 12:43:25 +01:00
Michael Aherne f6b4fe38a9 MDL-52439 assign: correct get_user_submission() phpdoc 2015-12-29 10:37:14 +00:00
Dan Poltawski a3f238a120 Merge branch 'MDL-52275_master' of git://github.com/markn86/moodle 2015-12-29 10:04:42 +00:00
Mark Nelson be5e0110ff MDL-49566 core: used reflection in unit tests
Also split the tests into multiple functions for each scenario.
2015-12-29 17:42:43 +08:00
David Monllao b29c013309 Merge branch 'MDL-51889_master' of git://github.com/markn86/moodle 2015-12-29 15:35:15 +08:00
David Monllao 1c042d38ea Merge branch 'MDL-52530' of git://github.com/eugeneventer/moodle-fixes 2015-12-29 14:05:42 +08:00
David Monllao c7d394676e Merge branch 'wip-mdl-52347' of git://github.com/rajeshtaneja/moodle 2015-12-29 14:03:10 +08:00
David Monllao d077c6a4ba Merge branch 'MDL-52591-master' of git://github.com/danpoltawski/moodle 2015-12-29 13:47:06 +08:00
Mark Nelson be6fb6b1a6 MDL-51889 enrol_guest: always check password before re-enabling 2015-12-29 13:42:39 +08:00
Ankit Agarwal bef0d6b052 MDL-49566 core: Write unittests for MDL-45898 2015-12-29 11:22:42 +08:00
Ankit Agarwal d955a20926 MDL-49566 myprofile: Fix bugs in myprofilelib 2015-12-29 11:22:42 +08:00
Ankit Agarwal 59eef1a174 MDL-49566 notes: Notes link should not show up for guests 2015-12-29 11:22:42 +08:00
David Monllao 97f4eb11a5 Merge branch 'MDL-50428-master' of git://github.com/jleyva/moodle
Conflicts:
	mod/scorm/version.php
	version.php
2015-12-29 10:46:52 +08:00
David Monllao 9787b9e02f MDL-52597 mod_forum: Remove duplicated query 2015-12-29 10:03:59 +08:00
David Monllao 3d4837f915 Merge branch 'MDL-52597-master' of git://github.com/andrewnicols/moodle 2015-12-29 10:01:07 +08:00
AMOS bot 34ce176df2 Automatically generated installer lang files 2015-12-29 00:03:55 +08:00
AMOS bot f041cbe690 Automatically generated installer lang files 2015-12-28 00:04:00 +08:00
AMOS bot eba3c97445 Automatically generated installer lang files 2015-12-25 00:03:55 +08:00
Marina Glancy a4269b45bc MDL-52347 behat: fix random failures on fast computer 2015-12-24 14:14:58 +08:00
Rajesh Taneja 26b9181b1b MDL-52606 behat: Added time delay to avoid random fails
If attempts are created at same timestamp, then results are
not same, and lesson module finds that attmpt was in progress.
To avoid this problem, attempts should be created at different
timestamp.
2015-12-24 14:00:17 +08:00
Dan Poltawski afbb53d70b weekly release 3.1dev 2015-12-23 11:35:50 +00:00
Dan Poltawski 711134ee20 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-12-23 11:35:46 +00:00
Dan Poltawski c39cc37d5c Merge branch 'MDL-52595-master' of git://github.com/andrewnicols/moodle 2015-12-23 11:29:01 +00:00
Mark Nelson 5d0aa9dcfe MDL-52275 core: fixed grade-to-pass being overwritten
Thanks goes to W.J. Roes for the patch.
2015-12-23 14:31:53 +08:00
Andrew Nicols 6ec766069c MDL-52597 mod_forum: Remove sleep from tests 2015-12-23 14:24:35 +08:00
Andrew Nicols eb474609aa MDL-52595 tests: Disable xdebug for travis runs 2015-12-23 13:14:37 +08:00
Andrew Nicols 2ece61e652 Merge branch 'MDL-52355-master' of git://github.com/junpataleta/moodle 2015-12-23 10:04:51 +08:00
Jun Pataleta db9be61f20 MDL-52355 mod_data: Added Gregorian hour and minute values 2015-12-23 09:53:12 +08:00
Shamim Rezaie 4210c83d3a MDL-52355 mod_data: Make date field respect the calendar type in use
Updated the date subplugin to consider that the input date element
values might be for any calendar type and not just the Gregorian
calendar.
2015-12-23 09:53:11 +08:00
Shamim Rezaie 2c4bac4cd9 MDL-52354 select_time: Make select_time respect the set calendar type
The select_time method updated to display form elements in accordance
to the calendar type plugin that is in use.
2015-12-23 09:53:11 +08:00
Andrew Nicols 3dc5cdf543 Merge branch 'MDL-52060-master-arn' of https://github.com/andrewnicols/moodle 2015-12-23 09:08:48 +08:00
Andrew Nicols 46c18e0dd2 MDL-52060 phpunit: Add tests for test_set_table_modified_by_sql 2015-12-23 09:08:06 +08:00
Eugene Venter 8ef4fbc64f MDL-52530 unittest: more robust capability assignments for guest
for core_files_file_storage_testcase and core_repositorylib_testcase
2015-12-23 09:24:53 +13:00
Dan Poltawski a07afffcce MDL-52591 grunt: make shifter task respect --no-color 2015-12-22 18:37:27 +00:00
Eloy Lafuente (stronk7) 7814a99341 Merge branch 'MDL-49743-master' of git://github.com/danpoltawski/moodle 2015-12-22 17:14:38 +01:00
AMOS bot 008b95b248 Automatically generated installer lang files 2015-12-23 00:03:59 +08:00
Juan Leyva 2a72d9d237 MDL-52585 webservices: Return correct invalid login message 2015-12-22 16:59:24 +01:00
Juan Leyva 333e77703d MDL-52586 webservices: Return the default user home page 2015-12-22 16:50:58 +01:00
Dan Poltawski 5dc7768f7e Merge branch 'master_MDL-51916' of https://github.com/danmarsden/moodle 2015-12-22 13:17:54 +00:00
Dan Poltawski 29747350b1 Merge branch 'MDL-52365_new' of git://github.com/mkassaei/moodle 2015-12-22 13:15:02 +00:00
M Kassaei c398f6ed44 MDL-52365 qtype ddwtos & ddimageortext: 20 drag items IE11/Edge 2015-12-22 12:36:40 +00:00
Eloy Lafuente (stronk7) c38bdd62c7 Merge branch 'MDL-51719-master' of git://github.com/danpoltawski/moodle 2015-12-22 13:07:01 +01:00
Dan Poltawski 3e0540b6ec Merge branch 'wip-MDL-51239-master' of git://github.com/abgreeve/moodle 2015-12-22 11:58:28 +00:00
Dan Poltawski 40b6fbd4bf Merge branch 'MDL-52556-master' of git://github.com/jleyva/moodle 2015-12-22 11:17:11 +00:00
Dan Poltawski b687494f95 MDL-52017 enrol_self: fix incorrect empty statement
Ironically this was detected by causing a syntax error on php54
2015-12-22 09:48:56 +00:00
David Monllao ab429bfa09 Merge branch 'MDL-52017_master' of git://github.com/markn86/moodle 2015-12-22 16:36:29 +08:00
David Monllao febc314895 Merge branch 'MDL-51886-master' of git://github.com/dpalou/moodle
Conflicts:
	version.php
2015-12-22 16:28:18 +08:00
David Monllao a96bf448b8 Merge branch 'MDL-52073-master' of git://github.com/jleyva/moodle
Conflicts:
	version.php
2015-12-22 16:23:33 +08:00
Rajesh Taneja e487a51db3 MDL-52060 phpunit: Keep track of modified database for reset
Keep list of modified tables, so they can be reset
without any guess work
2015-12-22 15:37:40 +08:00
Andrew Nicols 64f4889ad1 Merge branch 'MDL-52250-master' of git://github.com/danpoltawski/moodle 2015-12-22 15:13:38 +08:00
Andrew Nicols 9d926d1f27 Merge branch 'MDL-52289-master' of git://github.com/jleyva/moodle 2015-12-22 13:51:14 +08:00
Mark Nielsen e61a9638f1 MDL-52060 phpunit: Improve get_message_processors reset 2015-12-22 13:40:39 +08:00
Mark Nielsen d494306de7 MDL-52060 phpunit: Prevent querying database metadata 2015-12-22 13:40:38 +08:00
Rajesh Taneja 22d55b3950 MDL-52060 phpunit: Check file only if needed 2015-12-22 13:19:06 +08:00
Rajesh Taneja 44121fbdc9 MDL-52060 phpunit: Keep track of initial reset sequence 2015-12-22 13:19:06 +08:00
Andrew Nicols ec68e9d530 Merge branch 'MDL-23128-master' of git://github.com/danpoltawski/moodle 2015-12-22 13:11:27 +08:00
Andrew Nicols 3390f40ab7 Merge branch 'MDL-52363' of git://github.com/mkassaei/moodle 2015-12-22 12:33:57 +08:00
David Monllao 4b6b84d677 Merge branch 'wip-mdl-52376' of git://github.com/rajeshtaneja/moodle 2015-12-22 11:24:45 +08:00
David Monllao 39604f212e Merge branch 'MDL-52558-master' of git://github.com/sammarshallou/moodle 2015-12-22 11:16:36 +08:00
Rajesh Taneja c2df9b3b90 MDL-52427 behat: Fixed question selectors
As class is changed, we need to convert selector
to check if class is contained, rather then checking
selecting with specific class.
2015-12-22 10:43:22 +08:00
Stephen Bourget bf5a27ce17 MDL-51445 Chat: Fix broken profile links 2015-12-21 20:37:54 -05:00
Andrew Nicols 8dccd20f76 Merge branch 'MDL-52334' of git://github.com/aolley/moodle 2015-12-22 08:45:30 +08:00
Dan Poltawski bf47ce5050 Merge branch 'MDL-52380-master' of git://github.com/junpataleta/moodle 2015-12-21 16:47:18 +00:00
Dan Poltawski 43fcd55e0c Merge branch 'MDL-52354-master' of git://github.com/junpataleta/moodle 2015-12-21 16:45:15 +00:00
Juan Leyva 6a03246999 MDL-52556 mod_scorm: Return SCO extra data in get_scorm_scoes 2015-12-21 15:42:58 +01:00
Dan Poltawski 2c10892c9e Merge branch 'MDL-52427' of git://github.com/timhunt/moodle 2015-12-21 13:27:38 +00:00
Dan Poltawski 77d0aaa5e3 Merge branch 'MDL-52402' of git://github.com/mr-russ/moodle 2015-12-21 12:46:20 +00:00
Dan Poltawski 07f8dd4314 Merge branch 'MDL-52399-master' of git://github.com/jleyva/moodle 2015-12-21 12:45:30 +00:00
Dan Poltawski 36381280c5 Merge branch 'MDL-52455' of git://github.com/timhunt/moodle 2015-12-21 12:43:01 +00:00
Dan Poltawski 7fe67ef4ad Merge branch 'MDL-52542' of git://github.com/timhunt/moodle 2015-12-21 11:05:40 +00:00
David Monllao 2f3ebc9bdb Merge branch 'MDL-51257-master' of git://github.com/cameron1729/moodle 2015-12-21 17:32:34 +08:00
David Monllao 355570f9e7 Merge branch 'MDL-52429-master' of git://github.com/jleyva/moodle 2015-12-21 17:16:54 +08:00
David Monllao 20b3638322 Merge branch 'MDL-49758-master' of git://github.com/StudiUM/moodle 2015-12-21 17:05:48 +08:00
Dan Poltawski 5cbc9819fd Merge branch 'MDL-52226_master-fix' of git://github.com/dmonllao/moodle 2015-12-21 08:31:55 +00:00
David Monllao a49fd98349 MDL-52226 tests: Fix behat phpunit naming conflict 2015-12-21 16:27:23 +08:00
Dani Palou c1baf89e57 MDL-51886 wiki: Add unit tests for view_wiki and view_page 2015-12-21 08:19:24 +01:00
Dani Palou 557b58b099 MDL-51886 wiki: New WS mod_wiki_view_wiki and mod_wiki_view_page 2015-12-21 08:19:24 +01:00
David Monllao f08d1590c8 Merge branch 'MDL-52226-master' of git://github.com/sammarshallou/moodle 2015-12-21 14:41:21 +08:00
Andrew Nicols 3adcec2b70 Merge branch 'master_MDL-50972' of https://github.com/danmarsden/moodle 2015-12-21 14:01:17 +08:00
Andrew Nicols 1f1894c973 Merge branch 'MDL-52457-master' of git://github.com/jleyva/moodle 2015-12-21 11:58:59 +08:00
David Monllao f447759a91 Merge branch 'MDL-47106' of git://github.com/timhunt/moodle 2015-12-21 11:32:56 +08:00
David Monllao 5303fb94ef Merge branch 'master_MDL-45712' of git://github.com/danmarsden/moodle 2015-12-21 11:14:09 +08:00
David Monllao 58920c8e53 Merge branch 'MDL-52523' of git://github.com/timhunt/moodle 2015-12-21 10:47:49 +08:00
AMOS bot 56bc2a5740 Automatically generated installer lang files 2015-12-20 00:05:04 +08:00
Michael Aherne 189875242e MDL-52560 badges: Avoid trying to add badges when disabled 2015-12-18 14:13:32 +00:00
Dan Poltawski ea3ebbf20e weekly release 3.1dev 2015-12-18 12:26:50 +00:00
Dan Poltawski 3340ff86fe Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-12-18 12:26:46 +00:00
sam marshall 92cce140ed MDL-52558 Data generator: enrol_user should allow shortname 2015-12-18 11:01:15 +00:00
Dan Poltawski 1703917824 Merge branch 'MDL-52553_master' of git://github.com/dmonllao/moodle 2015-12-18 10:51:01 +00:00
David Monllao 342f1ab28d MDL-52553 question: Adding missing required constants 2015-12-18 14:44:51 +08:00
Shamim Rezaie e83bcc1050 MDL-52380 mod_forum: Non-Gregorian dates in forum advance search
Convert the fromdate and todate date parts to Gregorian before passing them to make_timestamp
2015-12-17 18:00:57 -06:00
Shamim Rezaie 40a6393ea5 MDL-52354 select_time: Make select_time respect the set calendar type
The select_time method updated to display form elements in accordance
to the calendar type plugin that is in use.
2015-12-17 17:58:39 -06:00
Shamim Rezaie 2bb196ebe3 MDL-52354 select_time: Make select_time respect the set calendar type
The select_time method updated to display form elements in accordance
to the calendar type plugin that is in use.
2015-12-17 15:48:27 -06:00
Eloy Lafuente (stronk7) 56e6d6608a Merge branch 'wip-mdl-52540' of https://github.com/rajeshtaneja/moodle 2015-12-17 10:18:34 +01:00
Tim Hunt 3ca956b629 MDL-52542 qtype_multianswer: field names must match string placeholders 2015-12-17 08:36:08 +00:00
Rajesh Taneja c00667550b MDL-52540 behat: mouse events are not handled well with phantomjs 2015-12-17 12:05:19 +08:00
Hagey, Nathanial 3ef6e46081 MDL-45712 mod_scorm: add results column to interactions report. 2015-12-16 13:30:50 +13:00
Tim Hunt 8eef9244be MDL-52523 backup of subplugins: add missing global 2015-12-15 15:57:23 +00:00
M Kassaei c7cad17b44 MDL-52363 qtype ddimageortext: Incorrectly sized drag item 2015-12-15 11:35:46 +00:00
Marina Glancy 8638b3f144 MDL-52286 core: mute erros in adodb destructor 2015-12-15 12:36:02 +08:00
AMOS bot f75de9cd4b Automatically generated installer lang files 2015-12-15 00:03:58 +08:00
Dan Poltawski 99436d38ff Merge branch 'MDL-52451-master' of git://github.com/marinaglancy/moodle 2015-12-14 10:46:29 +00:00
Dan Poltawski 037397bf98 Merge branch 'wip-MDL-52286-master' of https://github.com/marinaglancy/moodle 2015-12-14 10:23:28 +00:00
Marina Glancy 6d9641f5b0 MDL-52286 core: corrected version of adodb to 5.20.1 2015-12-14 18:10:24 +08:00
Marina Glancy cc3048eb41 MDL-52286 core: several fixes to ADOdb 2015-12-14 18:06:22 +08:00
Dan Poltawski bca69f937c Merge branch 'MDL-52499-master' of git://github.com/marinaglancy/moodle 2015-12-14 09:44:16 +00:00
Dan Poltawski e42b60351e Merge branch 'MDL-52487_master' of git://github.com/dmonllao/moodle 2015-12-14 09:23:03 +00:00
David Monllao abc4e1efed MDL-52487 rss: PHP 7 compatible error supression
PHP5 used to update error_reporting to 0 on functions called with the
suppress errors operator (@). In PHP7 it is not updated.

Credit to Rajesh Taneja.
2015-12-14 15:28:37 +08:00
Marina Glancy 479950d431 MDL-52499 core: link to php7 documentation 2015-12-14 12:51:20 +08:00
Marina Glancy e6ee56a0e4 MDL-52451 forms: replace deprecated function 2015-12-14 12:43:03 +08:00
Dan Marsden 2e6c821d35 MDL-50972 mod_scorm: set autocommit as boolean
var currently passed as string so not evaluated correctly
2015-12-14 14:26:24 +13:00
Matthew Pruett d0b10d0da1 MDL-47106 quiz 'secure' window: Finish review link did not work 2015-12-13 22:08:36 +00:00
Amanda Doughty 692ef1010b MDL-52455 quiz: doesn't include all user fields required by messaging 2015-12-13 20:43:26 +00:00
Tim Hunt d392b13a63 MDL-52427 questions: all parts of a Q should be clearfix
Otherwise large floated images may overflow.
2015-12-13 20:27:54 +00:00
Jean-Philippe Gaudreau beb992afb4 MDL-49758 mod_quiz: Fix require on completionlib.php
Credits: Gordon Bateson
2015-12-11 13:00:04 -05:00
Dan Poltawski b12b03de85 Merge branch 'wip-MDL-52286-master' of https://github.com/marinaglancy/moodle 2015-12-11 08:57:57 +00:00
David Monllao 588da1653d Merge branch 'MDL-52472-master' of git://github.com/danpoltawski/moodle 2015-12-11 16:02:46 +08:00
David Monllao 3e702b5855 Merge branch 'MDL-52361-master' of git://github.com/marinaglancy/moodle 2015-12-11 14:49:15 +08:00
David Monllao 9e313e798f MDL-51784 general: Adding missing php4 style constructors
Adding them to warn people calling the php4 constructor.
2015-12-11 14:02:42 +08:00
Marina Glancy c4d0b752a2 MDL-51784 various: use __construct() for PHP7 compatibility 2015-12-11 12:48:24 +08:00
David Monllao 05178f0745 Merge branch 'MDL-52471-master' of git://github.com/danpoltawski/moodle 2015-12-11 11:52:02 +08:00
David Monllao 206d736006 Merge branch 'wip-MDL-52475-master' of git://github.com/marinaglancy/moodle 2015-12-11 11:23:41 +08:00
Tony Levi 144fb5e0a0 MDL-52475 core: workaround PHP7 bug #70110 with preg_match 2015-12-11 08:27:26 +08:00
Eloy Lafuente (stronk7) e04e4cddd2 MDL-52081 general: whitespace fix 2015-12-10 22:39:25 +01:00
Dan Poltawski f2f29ea2c7 MDL-52472 travis: remove mongo/memcached testing
At the moment the extensions aren't available in php7 env:
https://github.com/travis-ci/travis-ci/issues/5256

And really its probably not worth the effort/buildtime to
enable them IMO so simpler to just disable.
2015-12-10 17:35:51 +00:00
Dan Poltawski ef5df7b721 MDL-52471 tests: simplify setup code
Test code was not using the generator for simple enrollments, couldn't
help to fix when noticed.
2015-12-10 15:47:11 +00:00
Dan Poltawski 194a02e409 MDL-52471 completion: fix deprecated use of 'object'
And add a unit test covering completion_can_view_data() without
full course object passed.
2015-12-10 15:47:11 +00:00
Dan Poltawski 8440c780bd MDL-52471 quiz: remove broken code question_print_comment_fields() 2015-12-10 15:47:11 +00:00
Eloy Lafuente (stronk7) 0a57ba06cb Merge branch 'MDL-52284-master' of git://github.com/marinaglancy/moodle 2015-12-10 16:16:20 +01:00
Dan Poltawski 9708ff95fd MDL-52471 setuplib: depreciate class object properly
Previously was marked depricated but not throwwing debugging
2015-12-10 14:26:30 +00:00
Dan Poltawski 87b7314a87 MDL-52472 travis: enable php7
Relegate 5.6 runs (following the principle of highest and lowest version
only, to conserve travis resources and get faster test completions)
2015-12-10 12:41:53 +00:00
Juan Leyva 1e5241a12b MDL-52073 enrol_guest: New Web Service enrol_guest_get_instance_info 2015-12-10 12:32:30 +01:00
Dan Poltawski aa45186ad2 Merge branch 'MDL-52333_master' of git://github.com/dmonllao/moodle 2015-12-10 11:03:50 +00:00
Dan Poltawski 1bd60ff6a5 MDL-52285 auth: Add constructors for backwards compat
These are very unlikely to be used but just to be safe..
2015-12-10 10:34:29 +00:00
Juan Leyva 98fff78d00 MDL-50428 mod_scorm: New WS mod_scorm_launch_sco 2015-12-10 11:18:10 +01:00
Juan Leyva e9b1e1ccfe MDL-50428 mod_scorm: Move SCO load code to new API 2015-12-10 11:17:38 +01:00
Ryan Wyllie 4f2ff25ed1 MDL-52258 calendar: show event duration on block
Highlight the days on the calendar for the entire duration
of the event, not just the start day. The days are highlighted
with the same colour as the starting day and will also show
the event popup on hover.
2015-12-10 11:17:25 +01:00
Dan Poltawski a9efb3b7d0 Merge branch 'wip-MDL-52285-master' of git://github.com/marinaglancy/moodle 2015-12-10 10:13:40 +00:00
David Monllao 0f86739482 Merge branch 'MDL-52336-master' of git://github.com/marinaglancy/moodle 2015-12-10 17:38:15 +08:00
David Monllao ea2707f9dc Merge branch 'wip-MDL-52081-master' of git://github.com/marinaglancy/moodle 2015-12-10 17:15:10 +08:00
David Monllao e574148c50 MDL-52333: qtype_calculated: Adding division by zero test 2015-12-10 16:38:57 +08:00
Tony Levi c6f9107029 MDL-52333 qtype: PHP7-compatibility in calculate_raw()
Code also modified by Tim Hunt
2015-12-10 16:38:57 +08:00
David Monllao a4fb992435 Merge branch 'MDL-52335-master' of git://github.com/marinaglancy/moodle 2015-12-10 15:47:14 +08:00
David Monllao 1b42ef0e99 Merge branch 'MDL-52438-master' of git://github.com/marinaglancy/moodle 2015-12-10 15:31:29 +08:00
David Monllao 948882eb5d Merge branch 'MDL-52312_master' of git://github.com/markn86/moodle 2015-12-10 13:56:08 +08:00
Marina Glancy 4a89e83b80 MDL-52285 auth: use __construct() for constructors 2015-12-10 13:40:42 +08:00
Marina Glancy 32fada5cb2 MDL-52081 forms: indicate usage of grandparent constructor 2015-12-10 13:38:04 +08:00
Marina Glancy 1a0df5535e MDL-52081 forms: Use __construct() for constructors 2015-12-10 13:38:01 +08:00
Marina Glancy 1766e6a17f MDL-52284 core: PHP7 engine errors have type Throwable 2015-12-10 10:49:37 +08:00
Tony Levi d74b7e424f MDL-52284 core: compatibility with Exception/Throwable changes in PHP7 2015-12-10 10:49:36 +08:00
Juan Leyva 4f3d1b0ec6 MDL-52457 mod_scorm: Fix return types definitions in SCORM WS
Incorrect return types definitions in external function
mod_scorm_external::get_scorm_by_courses (hidetoc, displayattemptstatus
and skipview)
2015-12-09 14:02:37 +01:00
sam marshall 6d4858d5b3 MDL-52226 Forms: max_input_vars problems with advanced checkbox 2015-12-09 12:15:45 +00:00
Dan Poltawski 0dfcc2541a weekly release 3.1dev 2015-12-09 12:09:28 +00:00
Dan Poltawski 103bd4c96c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-12-09 12:09:26 +00:00
Dan Poltawski 633e2643ec MDL-52209 webservice: upgrade.txt tweak 2015-12-09 09:45:13 +00:00
Jun Pataleta 638f751a07 MDL-52209 webservice_xmlrpc: Remove Zend from webservice_xmlrpc
Additional fixes.
2015-12-09 09:42:24 +00:00
David Monllao 8573e526ff MDL-51698 user: Adapting behat test
Using the generic .breadcrumb-nav like in edit_tag.feature as the elements
on it are quite generic and there is no much chance of future conflicts.
2015-12-09 13:22:38 +08:00
Eloy Lafuente (stronk7) 7955476cab Merge branch 'MDL-51483_master' of https://github.com/jinhofer/moodle 2015-12-09 01:09:08 +01:00
Eloy Lafuente (stronk7) b5c73e6f42 MDL-51698 upgrade: bump version to newer than rewritten one
Some integration.git based sites can have 2015120801 version,
now rewritten. This commit ensures everybody goes forward to
2015120803.
2015-12-09 00:51:40 +01:00
Brendan Heywood d7238be174 MDL-51698 navigationlib: Add crumb trail meta data 2015-12-09 00:50:16 +01:00
Adam Olley 6c9b6685de MDL-52334 enrol_database: Add missing filter to user_enrolment lookup
Without the user filter, the left join to the user enrolment table
results in a much larger set of data being returned than before
MDL-28420. Which makes login time for users in many busy courses much
worse than before (3x worse on average, observed upto 40x).
2015-12-09 09:25:09 +10:30
Dan Poltawski c3c5e30930 Merge branch 'MDL-51097_m31v1' of https://github.com/sbourget/moodle 2015-12-08 10:34:44 +00:00
Dan Poltawski c8d8a09369 Merge branch 'MDL-51411' of https://github.com/andrewhancox/moodle 2015-12-08 09:05:45 +00:00
Dan Poltawski c7bba4e5af Merge branch 'MDL-52165-master' of git://github.com/jleyva/moodle 2015-12-08 08:51:34 +00:00
Adrian Greeve f0899a2560 MDL-51239 blog: Coding style fixes. 2015-12-08 13:28:17 +08:00
Marina Glancy 10eb44f7e6 MDL-52438 core: allow Moodle 3.0 to be used with PHP7 2015-12-08 12:54:32 +08:00
Marina Glancy 19ad1ce44c MDL-52361 core: patch Horde library for PHP7 compatibility 2015-12-08 12:47:15 +08:00
Marina Glancy ace059fd4c MDL-52336 core: patch PHPExcel for PHP7 compatibility 2015-12-08 12:13:48 +08:00
Marina Glancy 73bb7c0990 MDL-52286 core: update ADODB library to 5.21 2015-12-08 11:52:40 +08:00
David Monllao 3f2c229b53 Merge branch 'MDL-50550-master' of git://github.com/dpalou/moodle
Conflicts:
	lib/db/services.php
	version.php
2015-12-08 11:32:39 +08:00
Dan Poltawski bbd3156049 Merge branch 'wip-MDL-52193-master' of https://github.com/marinaglancy/moodle 2015-12-07 15:36:55 +00:00
Dan Poltawski de6e67940f Merge branch 'MDL-52209-master' of git://github.com/junpataleta/moodle 2015-12-07 15:04:40 +00:00
Juan Leyva a6c11677a8 MDL-52429 mod_scorm: Fix SCORM completion checking in nested SCOs 2015-12-07 11:28:22 +01:00
Mark Nelson c319e44954 MDL-52312 assignfeedback_editpdf: changes to files after FPDI update
1) Change the fpdi_bridge class so that it extends the pdf class,
rather than the TCPDF class.
2) Updated the editpdf/fpdi/readme_moodle.txt file to document the changes.
3) Updated the editpdf/thirdpartylibs.xml to reflect the update to the
FPDI library.
2015-12-07 17:39:30 +08:00
Dan Poltawski 6c0bf99b5b Merge branch 'MDL-50258_master' of git://github.com/dmonllao/moodle 2015-12-07 09:04:35 +00:00
David Monllao 0575c5ad8c Merge branch 'MDL-52204-master' of git://github.com/danpoltawski/moodle 2015-12-07 16:30:38 +08:00
Dan Poltawski f20abd8759 Merge branch 'MDL-52304_master' of https://github.com/dmonllao/moodle 2015-12-07 08:20:10 +00:00
Dan Poltawski 8f4662a807 MDL-52271 install: don't allow installer to be indexed
Following guidance from:
https://support.google.com/webmasters/answer/93710?hl=en
2015-12-07 15:42:11 +08:00
David Monllao 7e092a97d7 Merge branch 'MDL-52370-master' of git://github.com/danpoltawski/moodle 2015-12-07 15:01:42 +08:00
David Monllao 2ceaa5752f Merge branch 'MDL-50540-master' of git://github.com/FMCorz/moodle 2015-12-07 14:41:20 +08:00
Frederic Massart bf5bbe0127 MDL-50540 mod_glossary: Final clean up of new external function 2015-12-07 13:42:37 +08:00
Costantino Cito 8e09010f39 MDL-50540 glossary: Unit test for mod_glossary_get_glossaries_by_courses 2015-12-07 12:48:28 +08:00
Costantino Cito 23da998fad MDL-50540 glossary: New WS mod_glossary_get_glossaries_by_courses 2015-12-07 12:48:27 +08:00
Mark Nelson f970013b16 MDL-52312 assignfeedback_editpdf: updated the FPDI libary to 1.6.1 2015-12-07 10:57:51 +08:00
Russell Smith b73aed311e MDL-52402 backup, quiz: Fix attempt token and add missing rule. 2015-12-05 10:08:07 +11:00
Russell Smith eb8c0cb163 MDL-52402 backup: Improve debugging output on failed log restores 2015-12-05 10:08:06 +11:00
Dan Poltawski 4ee10fec43 MDL-51582 readme: update less building instructions
I forgot to update this after the changes in 65d070a
2015-12-04 16:40:21 +00:00
Eloy Lafuente (stronk7) 0bec64c913 Merge branch 'MDL-51582-master' of git://github.com/danpoltawski/moodle 2015-12-04 17:15:13 +01:00
AMOS bot a43fdc463b Automatically generated installer lang files 2015-12-05 00:04:20 +08:00
Dan Poltawski f8de8c7147 MDL-52250 npm: shrinkwrap to lock down dependencies
We've tried various approaches to lock down our dependencies and they
have been flawed because dependencies in our included packages may not
be locked down and previous attempts to do that have not been correct.

With npm shrinkwrap we lock down versions so that any npm install will
always install the exact same versions for all developers - see:
https://docs.npmjs.com/cli/shrinkwrap

(This is a lot like composer.lock for those more fluent with composer)
2015-12-04 15:10:59 +00:00
Dan Poltawski 302a3c5f7d MDL-52250 npm: remove uglify-js dependency/bump grunt-contrib-uglify
A) Remove direct dependency on uglify-js:

This dependency was added in MDL-50277, but it isn't quite correct, the
way npm installs dependencies means that grunt-contrib-uglify *could* use
'our' version if its satisifed. But does not *always* and especially does
not if the grunt-contrib-uglify requirement is higher than ours.

Long story short, in many cases this means that this is used:
 node_modules/grunt-contrib-uglify/node_modules/uglify-js
But this is not:
  node_modules/uglify-js

In MDL-50277 we thought we were making the version sticky, but in
reality we were just fixing previous problems by updating
grunt-contrib-uglify to a version which fixed a bug:

 https://github.com/gruntjs/grunt-contrib-uglify/issues/313

It seems the better solution will come with using npm shrinkwrap to lock
down depdencies.

B) Bump grunt-contrib-uglify to 0.11.0

This moves us to uglify-js ~2.6.0 - which doens't change any output
files.
2015-12-04 15:07:47 +00:00
Juan Leyva 04cd8ae3c0 MDL-52165 mod_forum: New Web Service mod_forum_can_add_discussion 2015-12-04 15:30:16 +01:00
Jun Pataleta 0af5593122 MDL-52209 webservice_xmlrpc: Remove Zend from webservice_xmlrpc 2015-12-04 07:56:31 -06:00
Dani Palou 4a5acec2b7 MDL-50550 wiki: Added unit tests for mod_wiki_get_wikis_by_courses 2015-12-04 13:52:41 +01:00
Dani Palou 23cbaefb24 MDL-50550 wiki: New WS mod_wiki_get_wikis_by_courses 2015-12-04 13:52:41 +01:00
Dan Poltawski e90eb13a6b MDL-52204 grunt: update to grunt-contrib-jshint v0.11.3
This version of grunt-contrib-jshint itself uses a better fixed
requirement on "~2.8.0" rather than "^2.8.0" which was giving variable
results with some people updating to 2.9-rc1.

See also https://github.com/gruntjs/grunt-contrib-jshint/pull/219
2015-12-04 11:43:30 +00:00
Dan Poltawski f992dcf6e8 MDL-52204 js: fix 'used before defined' errors
Newer versions of jshint detect this coding error, we fix it
by simply reordering the definition of methods.
2015-12-04 11:43:10 +00:00
Dan Poltawski 65d070aec8 MDL-51582 grunt: task improvements
* Introduce the 'css' task - this will give us flexibility to do things
  in future rather than relying on the inbuilt 'less' task (e.g. sourcemap
  generating task which doesn't run by default)

* Introduce 'amd' task which runs only amd tasks

* Introduce 'js' task which runs all JS (amd/shifter) tasks

* Tweak the ordering so that slow shifter always runs last (useful for
  people like me who forget to specif the task)
2015-12-04 10:37:09 +00:00
Dan Poltawski 868e35a058 MDL-51582 css: built with new grunt task 2015-12-04 10:37:09 +00:00
Dan Poltawski a4a52e565e MDL-51582 grunt: add less complilation support
Previously we were using recess to build bootstrap base as it was what
was used by the original project. But recess is no longer maintained.

Now we use grunt for building js, it makes sense to use it for less too.

(If you really don't want to use grunt, you almost certainly can just
use lessc -x as it uses the same less.js on backend).
2015-12-04 10:36:45 +00:00
Michael Aherne 27635149d5 MDL-52304 media: Allow full screen in Flash player 2015-12-04 10:06:14 +08:00
David Monllao a75f1dbc4f MDL-50258 themes: Fix CSS source maps 2015-12-04 09:02:16 +08:00
Ben Kelada 288c8cb7f1 MDL-52261 filelib: Do login check for files in blocks 2015-12-04 11:00:05 +11:00
Andrew Davis 0e32a56591 MDL-51239 core_blog: coding style fixes 2015-12-04 05:42:40 +08:00
Eloy Lafuente (stronk7) ea5c18dfce weekly release 3.1dev 2015-12-03 19:40:42 +01:00
Eloy Lafuente (stronk7) 75cb235699 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-12-03 19:40:33 +01:00
Eloy Lafuente (stronk7) 8827b67aeb MDL-52141 backup: test restore_log_rule don't modify passed log anymore 2015-12-03 18:52:26 +01:00
Eloy Lafuente (stronk7) ef53650e8a NOBUG: Fixup commit to fix stuff wrongly changed on merge commits
On rewriting MDL-47491, we ended in a situation where these
modifications had been incorporated via merge commits. And kept
undetected by rebase -ip.

In general, please, use merge commits only for solving conflicts,
never as a replacement for fixup commits. To fix non-conflicting
things, add new, proper, fixup commits.
2015-12-03 18:52:25 +01:00
David Monllao f2304bfb81 Merge branch 'MDL-48004-master' of git://github.com/danpoltawski/moodle 2015-12-03 18:52:24 +01:00
Dan Poltawski 53907dbee5 Merge branch 'MDL-51700-master' of git://github.com/FMCorz/moodle 2015-12-03 18:52:21 +01:00
Dan Poltawski ed0c32da08 Merge branch 'MDL-48451-behat-tests' of github.com:ryanwyllie/moodle 2015-12-03 18:51:47 +01:00
Ryan Wyllie 360c7917f6 MDL-48451 report_outline: additional behat coverage 2015-12-03 18:51:46 +01:00
David Monllao 200ab5266a Merge branch 'MDL-50269_master' of git://github.com/markn86/moodle
Conflicts:
	lib/upgrade.txt
2015-12-03 18:51:42 +01:00
Andrew Nicols 6e8e992d37 Merge branch 'wip-mdl-52357' of https://github.com/rajeshtaneja/moodle 2015-12-03 18:50:03 +01:00
David Monllao 76bcec2cb1 Merge branch 'MDL-50710-master' of git://github.com/marinaglancy/moodle 2015-12-03 18:50:02 +01:00
David Monllao 935b954b5b Merge branch 'MDL-46350-master' of git://github.com/danpoltawski/moodle 2015-12-03 18:50:01 +01:00
AMOS bot 8e3c608698 Automatically generated installer lang files 2015-12-04 00:04:11 +08:00
jinhofer 4ebdd15487 MDL-51483 lib/moodlelib.php: Added conditional checks to shorten_text 2015-12-03 10:00:08 -06:00
Juan Leyva bc7b1a3d4d MDL-52399 webservice: Add core_notes_delete_notes to the mobile service 2015-12-03 13:02:56 +01:00
Mark Nelson d950ba1b3c MDL-52017 enrol_self: always check password before re-enabling 2015-12-03 19:26:22 +08:00
Eloy Lafuente (stronk7) b4153ff09d Merge branch 'wip-MDL-51985-master' of https://github.com/marinaglancy/moodle 2015-12-03 11:16:34 +01:00
David Monllao 38e0faafc2 Merge branch 'MDL-52260-master-2' of git://github.com/xow/moodle 2015-12-03 11:16:33 +01:00
Eloy Lafuente (stronk7) 40cd9f9ac9 Merge branch 'MDL-45364-master' of git://github.com/danpoltawski/moodle 2015-12-03 11:16:33 +01:00
Dan Poltawski b80ede13a6 MDL-51664 externalib: clarify crucial comment 2015-12-03 11:16:32 +01:00
Dan Poltawski 50901a53bc Merge branch 'MDL-51664-master' of git://github.com/FMCorz/moodle 2015-12-03 11:16:30 +01:00
Dan Poltawski 551088fcd7 MDL-52292 testing: block generator fix
Stop errors when no $options supplied
2015-12-03 11:13:28 +01:00
Dan Poltawski 16c361d9d1 MDL-48451 report_outline: add basic coverage of distinct users 2015-12-03 11:13:27 +01:00
Dan Poltawski b56a046175 Merge branch 'MDL-48451' of https://github.com/andrewhancox/moodle 2015-12-03 11:13:26 +01:00
Dan Poltawski 0ad66dda0e Merge branch 'MDL-52292' of git://github.com/timhunt/moodle 2015-12-03 11:13:26 +01:00
Dan Poltawski fc3c595d51 MDL-26935 behat: add coverage for role renaming in course 2015-12-03 11:13:25 +01:00
Eloy Lafuente (stronk7) 7828bb972e Merge branch 'MDL-26935' of https://github.com/andrewhancox/moodle 2015-12-03 11:13:07 +01:00
Russell Smith a8137ec25f MDL-52141 backup: Ensure we don't alter the log record when parsing it. 2015-12-03 11:11:07 +01:00
Dan Poltawski b7f54e5c79 Merge branch 'MDL-51706_master' of https://github.com/jinhofer/moodle 2015-12-03 11:11:06 +01:00
Dan Poltawski 8e9dc75e6c Merge branch 'MDL-37308-master' of git://github.com/junpataleta/moodle 2015-12-03 11:11:06 +01:00
Oleg Sychev 87b2ed6c1f MDL-51746 accesslib: Describe instanceid in context_something::instance
With no PHPDocs and $instanceid as name some module developers confuse
context_module::instance argument to be instanceid of the module while
it actually should be cmid.
2015-12-03 11:11:05 +01:00
David Monllao 0ee52b8214 Merge branch 'MDL-51830-master' of git://github.com/lucisgit/moodle 2015-12-03 11:11:04 +01:00
Dan Poltawski 3c2f70aeb6 Merge branch 'master_MDL-51757' of git://github.com/danmarsden/moodle 2015-12-03 11:11:04 +01:00
Dan Poltawski c20577b9f2 Merge branch 'MDL-51925-master' of git://github.com/jleyva/moodle 2015-12-03 11:11:03 +01:00
David Monllao 00419a7a0b Merge branch 'MDL-52237-master' of git://github.com/StudiUM/moodle 2015-12-03 11:11:02 +01:00
Rajesh Taneja 8509c4700b MDL-52376 behat: Add 1 sec delay to ensure cron works
course completion record should be created at time
which is before the time cron is run. On fast machine
this both might be done at same time. So added 1 sec delay
2015-12-03 13:17:03 +08:00
Cameron Ball ea3aa9f9a0 MDL-51257 messages: Improve message form.
- Add sudmit button
- Add formchangechecker
- Update behat tests
2015-12-03 10:20:55 +08:00
Marina Glancy 83bef8dabb MDL-52335 tool_uploaduser: php7 compatibility in variable syntax 2015-12-03 09:31:25 +08:00
Marina Glancy 67efc377f4 MDL-52335 mod_data: php7 compatibility in variable syntax 2015-12-03 09:31:25 +08:00
Marina Glancy ccfd168a6d MDL-52335 mod_lti: php7 compatibility in variable syntax 2015-12-03 09:31:20 +08:00
Marina Glancy f9ba07133a MDL-52335 core: php7 compatibility in XMPP library 2015-12-02 14:00:58 +08:00
Frederic Massart 4879477632 MDL-51700 ajax: Clean the external function return values 2015-12-02 10:30:01 +08:00
Tim Hunt eb3884e48f MDL-52292 block testing generators: improve the API
* Refactor the block generator base class, to remove the amount
  of duplication required in base classes.

* Change the defaults that are filled in to be a little more natural.

* Make the Behat step 'Given the following "block" exist:' work.
2015-12-01 13:48:08 +00:00
Dan Poltawski 8f2c99d610 MDL-52370 role: purge coursecontacts when role is edited
This is perhaps a bit more brutal purge than you'd like, but it only
affects coursecat role edits.
2015-12-01 13:14:14 +00:00
Dan Poltawski 29d4cc656f MDL-52370 course: purge contacts cache on role rename
Previously teachers would rename roles and the change would not be
reflected in course listings.
2015-12-01 12:44:34 +00:00
Rajesh Taneja 0049d2591b MDL-52357 behat: add 2 sec delay to ensure window is stable 2015-12-01 15:45:05 +08:00
Ankit Agarwal c917b53a8d MDL-50269 deprecations: Properly deprecate notify() 2015-12-01 15:29:33 +08:00
Eloy Lafuente (stronk7) e070165f57 Merge branch 'MDL-52219-master' of git://github.com/danpoltawski/moodle 2015-12-01 00:50:10 +01:00
Eloy Lafuente (stronk7) 71a2aaabd4 Merge branch 'MDL-44598_master' of https://github.com/jonof/moodle 2015-11-30 23:52:45 +01:00
Dan Poltawski 20232ed9a9 Merge branch 'MDL-52013-m' of https://github.com/micaherne/moodle 2015-11-30 15:42:58 +00:00
Dan Poltawski 92efb347b0 Merge branch 'MDL-52074-master' of git://github.com/jleyva/moodle 2015-11-30 15:29:29 +00:00
Dan Poltawski ca593e5f69 Merge branch 'MDL-52108-master' of git://github.com/jleyva/moodle 2015-11-30 15:25:22 +00:00
Dan Poltawski df64cfa624 Merge branch 'MDL-50661_master' of git://github.com/dmonllao/moodle 2015-11-30 13:50:22 +00:00
Dan Poltawski 8fea53a0b1 Merge branch 'MDL-51718-set-scheme' of https://github.com/brendanheywood/moodle 2015-11-30 13:37:47 +00:00
Dan Poltawski 1db15fe9a7 Merge branch 'MDL-52042-master' of git://github.com/ryanwyllie/moodle 2015-11-30 13:20:35 +00:00
Dan Poltawski c2c97208f1 Merge branch 'MDL-51900_master' of https://github.com/jinhofer/moodle 2015-11-30 12:23:09 +00:00
Dan Poltawski 88f50b3551 Merge branch 'MDL-52283-master' of git://github.com/marinaglancy/moodle 2015-11-30 11:27:52 +00:00
Dan Poltawski 8ffdb1309c Merge branch 'MDL-52332-master' of git://github.com/marinaglancy/moodle 2015-11-30 10:23:07 +00:00
David Monllao 58fe694167 Merge branch 'MDL-51204_lang_coding_style' of git://github.com/andyjdavis/moodle
Conflicts:
	lang/en/deprecated.txt
	lang/en/grades.php
2015-11-30 15:52:46 +08:00
David Monllao c256bac879 Merge branch 'MDL-35982-master' of git://github.com/danpoltawski/moodle 2015-11-30 15:45:44 +08:00
Marina Glancy 49f3c89324 MDL-52332 calendar: load settings using API 2015-11-30 11:36:50 +08:00
Rajesh Taneja 096b98ba34 MDL-52279 core_lib: Remove php4 style constructor
filterobject is called from core and as it's
using php4 style constructor, global USER is
not set properly because of deprecation warning
2015-11-30 11:25:55 +08:00
Jun Pataleta a33e5debe9 MDL-37308 files: Additional fixes for transparency
Fixed transparency support when resizing and when not resizing.
2015-11-29 20:28:19 -06:00
Jetha Chan 623c947f2b MDL-37308 files: support transparency when not resizing; new unit test 2015-11-29 20:28:19 -06:00
Adrian Greeve e245843193 MDL-37308 files: convert_image() now supports transparency. 2015-11-29 20:28:18 -06:00
Marina Glancy f7ff14a1be MDL-50710 block_glossary_random: more precise sorting 2015-11-30 09:16:28 +08:00
David Monllao 52d57db5c3 MDL-50661 theme_more: New small logo setting
Adding required bits so theme_more can also set a small logo.
2015-11-30 09:14:22 +08:00
David Monllao c08b52aa74 MDL-50661 theme_clean: New small logo setting
Introduces new settings to set a small logo in the navbar next
to the site name on pages where the logo is not displayed.
2015-11-30 09:14:20 +08:00
jinhofer c8b276a851 MDL-51900 grade/report/singleview: Added ctrl+arrow navigation
Also, added functionality for tab to traverse down the columns and
shift+tab to traverse up the columns.
2015-11-27 11:15:22 -06:00
jinhofer fbbb33a20e MDL-51706 mod/assign: Moved plagiarism links to top of online text 2015-11-27 11:13:56 -06:00
jinhofer acf9e30086 MDL-51693 mod/assign: Added plagiarism links to full text 2015-11-27 11:13:47 -06:00
AMOS bot 22872a3475 Automatically generated installer lang files 2015-11-28 00:04:27 +08:00
Dan Poltawski e746afacef MDL-51719 atto_rtl: RTL/LTR buttons now indicate state
Previously the RTL buttons did not indiciate wether RTL or LTR was
selected. Thanks to Andrew Nicols for guiding how to do this.
2015-11-27 14:03:53 +00:00
Dan Marsden bba1a4a6e3 MDL-51916 mod_scorm: allow html5 scorm content fullscreen 2015-11-27 21:27:38 +13:00
John Okely 956caef6ad MDL-52260 user: Fix error when saving profile with locked field 2015-11-27 10:55:28 +08:00
Tony Levi 79d4558a58 MDL-52283 core: password_hash() deprecation in PHP7 2015-11-27 09:12:20 +08:00
Dan Poltawski 17fda969ff MDL-45364 ddimageortext: refine naming & docs of new methods 2015-11-26 19:48:44 +00:00
Andrew Nicols 2ccb8d006a MDL-45364 qtype_ddimageortext: Fix JS Lint issues 2015-11-26 19:09:29 +00:00
Andrew Nicols b27d4eac7f MDL-45364 atto_rtl: Fix JS lint 2015-11-26 19:09:03 +00:00
Dan Poltawski 5aeba19926 MDL-48004 question: remove buggy arg of question_edit_setup
There are no uses of this in core and it does not make sense
2015-11-26 15:04:10 +00:00
Dan Poltawski 4dc29f5e8d MDL-48004 question: prevent notices on import screen
If query params were not passed the page would previously display debug
notices as setting the $requirecourseid param to question_edit_setup()
was buggy.
2015-11-26 15:02:36 +00:00
Michael Aherne 72797e6845 MDL-52013 assign: Allow subplugins to add calendar events 2015-11-26 14:28:53 +00:00
Dan Poltawski 3e0f5665cf MDL-35982 behat: delete blog entry coverage 2015-11-26 14:10:25 +00:00
Dan Poltawski 366f05f323 MDL-35982 blog: improve the delete entry confirmation string
So that there is more context about what is being deleted.
2015-11-26 14:10:25 +00:00
Dan Poltawski bf12b089e6 MDL-35982 blog: reorder blog delete confirmation
Improves accessibility to be ordered logically in page
2015-11-26 14:10:25 +00:00
Dan Poltawski afb7ec92ff MDL-35982 blog: prevent index throwing errors with 0 courseid
Regression from MDL-49845 where Dave made the page not handle courseid = 0
and so now some urls will send you back to a db error..
2015-11-26 14:10:25 +00:00
Dan Poltawski f3f920d24f MDL-46350 blog: call parent validation
(Helps satify codechecker, thats all..)
2015-11-26 14:08:42 +00:00
Dan Poltawski 8be9cffb8b MDL-52219 phpunit: updated for new defaults
The externallib assertion was previously never being run and had a typo..
2015-11-26 14:07:17 +00:00
Dan Poltawski aa306e7bc8 MDL-52219 behat: remove steps which turn on avaibility/completion
Now its the default, we can reduce test time by relying on the default
state rather than going around turning it on
2015-11-26 14:07:17 +00:00
Dan Poltawski e354bf1e67 MDL-52219 admin: Enable completion and restricted access by default 2015-11-26 14:07:17 +00:00
David Monllao c18acb8997 weekly on-sync release 3.1dev 2015-11-26 11:02:40 +08:00
David Monllao 0e3851ddd7 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-11-26 11:02:38 +08:00
Dan Poltawski 635501581c MDL-23128 tex: silence dvips output
This was causing spewwing of lots of messages to the error log..

Thanks to Fred Woolard for the suggestion
2015-11-25 17:07:06 +00:00
AMOS bot 2d9950cfd5 Automatically generated installer lang files 2015-11-26 00:04:22 +08:00
Dan Poltawski a24abd55e0 MDL-49743 singleview: slightly clarify logic
Make it clearer what the 'unset' behaviour is because previously
we've set the default for 'empty' values twice.
2015-11-25 15:04:43 +00:00
Conn 453f69263f MDL-49743 singleview: Prevent errors when no itemid was selected
Signed-off-by: Conn <conn@cmrwarwicker.com>
2015-11-25 15:02:14 +00:00
Andrew Hancox 3390551872 MDL-51411 course: Fixed warning when deleting activity with js disabled 2015-11-25 14:42:40 +00:00
Dan Poltawski 4e1648cc34 Merge branch 'MDL-52291' of git://github.com/stronk7/moodle 2015-11-25 11:22:17 +00:00
Frederic Massart 42dcfffc4f MDL-52160 navigation: Mark category and module settings nodes as branch 2015-11-25 13:03:25 +08:00
Tony Levi 72af939f6e MDL-51757 mod_scorm: Remove duplicate function param
convert invalid break calls to exceptions for PHP 7
2015-11-25 14:06:02 +13:00
Eloy Lafuente (stronk7) e716c18fb9 MDL-52291 questions: fix upgrade from 2.5 and earlier
Because of some changes performed to the multichoice qtype
for Moodle 2.6, older sites are not able to upgrade properly.

This commits does introduce DB introspection to decide which
table and column names must be used. Nasty but enough.

Note MDL-52298 has been created about to avoid/minimize the
chances of this happening again.
2015-11-25 00:19:30 +01:00
AMOS bot 88a6b9fde3 Automatically generated installer lang files 2015-11-25 00:04:12 +08:00
Juan Leyva 2d85210817 MDL-52289 message_airnotifier: Add debugging 2015-11-24 11:21:50 +01:00
David Monllao c506af7786 Merge branch 'MDL-44330' of git://github.com/NeillM/moodle 2015-11-24 17:03:06 +08:00
David Monllao 2bc40fc889 Merge branch 'MDL-45934-master' of git://github.com/danpoltawski/moodle 2015-11-24 16:53:18 +08:00
Neill Magill 3fca693751 MDL-44330 Assign: Assignment grading may not display expected student
Before this patch it was possible for the student displayed on the grading page to
not be the student that the user selected to grade. This would occur if:

1) The user had the table ordered by a value that could be modified,
   for example Last modified (submission), Grade, Last modified (grade)
2) Another user performed an action that was recorded in Moodle in the time
   between the user generating the table and clicking on a grade link.

If a user did not notice a different user had been loaded it could result in them giving
a grade to the incorrect user.

This patch ensures that the state of the table is cached every time it is viewed by a user
who has the capability to grade.
2015-11-24 08:42:00 +00:00
Rajesh Taneja a3f22d315f MDL-50163 behat: wait to ensure elements are placed properly by js. 2015-11-24 11:16:44 +08:00
Eloy Lafuente (stronk7) 6842738157 Merge branch 'MDL-52095_master' of git://github.com/dmonllao/moodle 2015-11-23 19:29:35 +01:00
Eloy Lafuente (stronk7) 11780411c6 Merge branch 'MDL-52185-master' of git://github.com/danpoltawski/moodle 2015-11-23 19:26:57 +01:00
Jean-Philippe Gaudreau 20dde5e674 MDL-52237 navigationlib: Plugins can extend navigation user profile 2015-11-23 11:04:44 -05:00
AMOS bot 45e4f75acd Automatically generated installer lang files 2015-11-24 00:04:21 +08:00
Dan Poltawski 14248189b7 Merge branch 'wip-mdl-50163' of https://github.com/rajeshtaneja/moodle 2015-11-23 11:33:55 +00:00
Dan Poltawski 6bef09a490 Merge branch 'MDL-52166' of https://github.com/timhunt/moodle 2015-11-23 09:43:31 +00:00
David Monllao 57d4e11334 Merge branch 'MDL-52214-master-crawler' of git://github.com/mudrd8mz/moodle 2015-11-23 17:00:24 +08:00
David Mudrák ade03c067a MDL-52214 core: Fix case sensitivity in user agent comparison
The previous 2.9 implementation of is_web_crawler() used stripos() in
certain cases. The unit tests re-added in the previous commit revealed
that certain crawlers (such as BaiDuSpider) were not correctly detected
in the new refactored implementation.

It seems lesser evil and safe enough to use /i in the regex search even
though it is not 100% same logic as before - as stripos() was used in
some cases only, not always.
2015-11-23 09:44:43 +01:00
David Mudrák 182d9990f1 MDL-52214 core: Fix the is_web_crawler() regression
In MDL-50891, the is_web_crawler() was refactored into a core_useragent
method and the function itself was deprecated. However, there were no
unit tests kept to check the backwards compatible behaviour. It turned
out that the deprecated function leads to PHP fatal error due to a typo.

This patch fixes the typo and brings back the previous unit tests. To be
able to explicitly check the raised debugging message, the test case
now must be subclass of advanced_testcase.

Additionally fixes missing info about the function being deprecated.
2015-11-23 09:44:13 +01:00
David Monllao 965595d405 Merge branch 'MDL-52180-master' of git://github.com/danpoltawski/moodle 2015-11-23 16:40:26 +08:00
David Monllao dca7e05dbf Merge branch 'MDL-52086' of git://github.com/bostelm/moodle 2015-11-23 16:10:25 +08:00
David Monllao 72dd7162e1 Merge branch 'MDL-52029-31' of git://github.com/vadimonus/moodle 2015-11-23 15:42:27 +08:00
David Monllao 5269e6002d Merge branch 'MDL-52160-master' of git://github.com/FMCorz/moodle 2015-11-23 14:07:21 +08:00
David Monllao 6f77b910ee Merge branch 'MDL-49490-master' of git://github.com/danpoltawski/moodle 2015-11-23 13:56:06 +08:00
David Monllao 6a82d5d04e Merge branch 'MDL-43069-master' of git://github.com/danpoltawski/moodle 2015-11-23 13:32:35 +08:00
Dan Poltawski b58d059525 MDL-37834 assign: avoid newlines in status column of csv
Previously we were generating a CSV file with newlines in it, which
seems to cause problems importing into some versions of MS Excel.

Instead seperate status lines by '-' - this column is only used to
provide context to the teacher in the spreadsheet.
2015-11-20 18:36:30 +00:00
AMOS bot 67f357121a Automatically generated installer lang files 2015-11-21 00:04:07 +08:00
David Monllao 2af06c4cba MDL-52095 themes: Padding to the left on RTL langs 2015-11-20 10:03:38 +08:00
AMOS bot 6026e76349 Automatically generated installer lang files 2015-11-20 00:04:07 +08:00
Dan Poltawski 2b11b94c0c weekly on-sync release 3.1dev 2015-11-19 09:21:07 +00:00
Dan Poltawski c8407f0109 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-11-19 09:21:04 +00:00
Eloy Lafuente (stronk7) 65b70071ca Merge branch 'wip-MDL-52203-master' of https://github.com/marinaglancy/moodle 2015-11-19 09:45:30 +01:00
Dan Poltawski ef65a6a9c5 Merge branch 'MDL-42571_master-fix2' of git://github.com/dmonllao/moodle 2015-11-19 07:06:16 +00:00
David Monllao c181efe978 MDL-42571 editpdf: Fix search comments
They are also hidden instead of destroyed.
2015-11-19 14:59:03 +08:00
Dan Poltawski de1519002e Merge branch 'wip-MDL-52194-master' of https://github.com/marinaglancy/moodle 2015-11-19 06:47:30 +00:00
Dan Poltawski 78b2c65c0a Merge branch 'MDL-52162_master' of git://github.com/dmonllao/moodle 2015-11-19 06:33:54 +00:00
David Monllao 402f4a1f53 MDL-42571 editpdf: Fix comments search and multiple views drawing 2015-11-19 12:29:20 +08:00
Stephen Bourget 83f3ac5207 MDL-51097 Lesson: allow resume from within a cluster 2015-11-18 23:03:42 -05:00
Marina Glancy 3be59be349 MDL-52203 qtype_multianswer: avoid fatal error during upgrade 2015-11-19 11:06:48 +08:00
Henning Bostelmann 3847c105b0 MDL-52086 output renderers: show subtree only when tab is activated 2015-11-18 16:11:32 +00:00
AMOS bot 44c4d1406d Automatically generated installer lang files 2015-11-19 00:04:45 +08:00
Pavel Sokolov 4dab33b586 MDL-43069 assign: prevent JS error on grading table
Previously submission comments failed to expand if you hid
the file submissions column.
2015-11-18 15:41:42 +00:00
Dan Poltawski 65b26a461e MDL-45934 backup: do not reset completion enabled flag
The 'completion enabled' flag does not reflect any course data, its a
course setting. Previously when doing a backup deleteting existing
course content this was forced off when it should not have been.
2015-11-18 11:45:45 +00:00
Dan Poltawski a49fca44e0 MDL-49490 assign: can't export to portfolio on non-submission 2015-11-18 09:10:20 +00:00
Juan Leyva 705afe6ffc MDL-52108 core_message: Move library inclusion outside the class methods 2015-11-18 09:52:29 +01:00
Marina Glancy 228f66ad7f MDL-52194 flowplayer: do not check request
$_REQUEST variable may contain cookies in some php configurations. See also MDL-48085
2015-11-18 15:35:55 +08:00
Marina Glancy 97562c4d7c MDL-52193 questions: add missing require_once 2015-11-18 13:33:34 +08:00
David Monllao 0519a1dabb MDL-52162 question: Removing unnecessary dependency
APIs dependencies were correctly removed during MDL-38214 review although
this unnecessary require remained here.

Credit to Marina Glancy.
2015-11-18 13:16:39 +08:00
Vadim Dvorovenko 626ff7c8b8 MDL-52029 installer: Unstyled installer if display_errors is on
Error in MDL-43839 solution caused inclusion of unexistent file in
install/css.php.
2015-11-18 08:44:04 +07:00
Dan Poltawski 14c855d8cd Merge branch 'MDL-52140' of git://github.com/stronk7/moodle 2015-11-17 16:27:42 +00:00
Eloy Lafuente (stronk7) 6d29c4acdd MDL-52140 upgrade: add 3.0.0 separation line to all upgrade scripts 2015-11-17 17:08:56 +01:00
Dan Poltawski 8c9dbacd79 MDL-52185 report: remove ugly bullet points 2015-11-17 15:33:58 +00:00
Dan Poltawski 09ca2e85c6 MDL-52180 travis: remove weekly release checker
To prevent false positives
2015-11-17 09:43:04 +00:00
Juan Leyva 4bc38ba96a MDL-51925 enrol: Support ordering in get_enrolled_users WS 2015-11-17 09:49:03 +01:00
Rajesh Taneja 8f76de32d9 MDL-50163 behat: Return subcontext from session
Creating a new context with new mink context
with different session was keeping the session
and was not returning proper session information
2015-11-17 13:27:10 +08:00
rajesh Taneja 131d4ac2b0 MDL-50163 behat: Restart session after scenario with switch_window
Restart session after a scenario with switch window
is finished. This will close all open browser windows
and open a new browser window
2015-11-17 12:12:03 +08:00
David Monllao 08cc1ad828 Merge branch 'MDL-51988-master' of git://github.com/danpoltawski/moodle 2015-11-17 10:20:59 +08:00
Russell Smith bb2c0b4526 MDL-50700 gradereport_overview: Call $PAGE->set_course
To ensure correct blocks are displayed.
2015-11-17 10:01:57 +08:00
David Monllao f2b28f8130 Merge branch 'MDL-46049-master' of git://github.com/danpoltawski/moodle 2015-11-17 08:54:50 +08:00
Dan Poltawski a461fcf9db Merge branch 'MDL-52021-master-test' of git://github.com/junpataleta/moodle 2015-11-16 16:21:17 +00:00
AMOS bot b1f7f87c25 Automatically generated installer lang files 2015-11-17 00:05:09 +08:00
Tim Hunt e168e38813 MDL-52166 gradebook: overview report fails with separate groups 2015-11-16 14:37:42 +00:00
Juan Leyva 90d50ad439 MDL-52074 ws: Add enrol_self_get_instance_info to the mobile service 2015-11-16 13:16:45 +01:00
Frederic Massart 333dcd863f MDL-52160 navigation: Really remove module settings empty nodes 2015-11-16 19:46:48 +08:00
Dan Poltawski 8d5935d53b Merge branch 'MDL-52139' of git://github.com/stronk7/moodle 2015-11-16 09:28:37 +00:00
David Monllao 6bcff8abf5 Merge branch 'MDL-47065-master' of git://github.com/danpoltawski/moodle 2015-11-16 15:25:42 +08:00
David Monllao f9cccec39f Merge branch 'MDL-41643-master' of git://github.com/jojoob/moodle 2015-11-16 14:54:19 +08:00
David Monllao 53f8e45279 Merge branch 'MDL-50687-master' of git://github.com/danpoltawski/moodle 2015-11-16 14:25:48 +08:00
David Monllao fb680f7959 Merge branch 'MDL-50564-master' of git://github.com/junpataleta/moodle 2015-11-16 14:19:18 +08:00
David Monllao 09083ab0a8 Merge branch 'MDL-42571' of git://github.com/blaky/moodle
Conflicts:
	mod/assign/feedback/editpdf/version.php
2015-11-16 13:39:59 +08:00
Eloy Lafuente (stronk7) d83775b89b MDL-52139 backup: Bump release to 3.1 2015-11-16 00:39:17 +01:00
Eloy Lafuente (stronk7) 26653c8b5c weekly back-to-dev release 3.1dev 2015-11-15 23:23:46 +01:00
Eloy Lafuente (stronk7) b2e859bcbc Change travis.yml back to master 2015-11-15 18:44:56 +01:00
Eloy Lafuente (stronk7) 6114fab93b Moodle release 3.0 2015-11-15 18:44:55 +01:00
Eloy Lafuente (stronk7) 8fad9719c6 Change travis.yml to MOODLE_30_STABLE 2015-11-15 18:44:55 +01:00
Eloy Lafuente (stronk7) 9cb902fa34 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-11-15 18:44:47 +01:00
Dan Poltawski 7b0abbb34d Merge branch 'MDL-52126' of git://github.com/stronk7/moodle 2015-11-15 16:05:33 +00:00
AMOS bot dc3e6512e4 Automatically generated installer lang files 2015-11-16 00:04:22 +08:00
Eloy Lafuente (stronk7) 9dbbdcb40a MDL-52126 forum: Verify forum mailout contents
New unit test able to verify mail contents
configured by provider do match all expectations defined.
2015-11-15 13:29:31 +01:00
Eloy Lafuente (stronk7) 593aaa5366 MDL-52126 forum: Correct over-escaping of html-based emails 2015-11-15 13:16:42 +01:00
Andrew Nicols f98345b976 MDL-52126 forum: Correct over-escaping of text-based emails 2015-11-14 22:35:09 +01:00
AMOS bot 5d7bdbd947 Automatically generated installer lang files 2015-11-15 00:04:05 +08:00
Johannes Burk 64b9afa6a5 MDL-41643 datafield_checkbox: Add line breaks behind checkbox options.
Add line a break behind each checkbox option in advanced search.
2015-11-14 13:48:20 +01:00
Frederic Massart 3b10fa25bc MDL-50564 atto: Require atto_menu in atto_plugin 2015-11-13 14:38:33 -06:00
AMOS bot 43f05bf097 Automatically generated installer lang files 2015-11-14 00:06:20 +08:00
Syam Mohan 77690b69f5 MDL-52021 enrollib: Removed repeated capability
'moodle/role:assign' replicated in the permission checking
2015-11-13 07:23:40 -06:00
David Monllao 20949f47fe Moodle release 3.0rc4 2015-11-13 15:28:19 +08:00
David Monllao f26ab8306f Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-11-13 15:28:16 +08:00
Dan Poltawski 9680529069 MDL-50687 phpunit: error early if required locale not installed 2015-11-13 07:00:09 +00:00
David Monllao 415c79abcc MDL-52071 webservices: Bump version to update services 2015-11-13 07:49:39 +08:00
David Monllao a0b972ac3c Merge branch 'MDL-52071-master' of git://github.com/jleyva/moodle 2015-11-13 07:47:58 +08:00
Dan Poltawski e763d96122 MDL-51819 theme: style fix for nested dropdowns 2015-11-12 21:54:50 +00:00
Bence Laky da91de7821 MDL-42571 assignfeedback_editpdf: Fixed second PDF view 2015-11-12 14:16:17 +00:00
Juan Leyva b8fbbc44d0 MDL-52071 ws: Add core_enrol_get_course_enrolment_methods to service 2015-11-12 13:21:58 +01:00
Ruslan Kabalin fa29c0c3d4 MDL-51830 course: Add course section deletion event. 2015-11-12 11:19:37 +00:00
Juan Leyva 419b112832 MDL-52108 messages: New WS core_message_delete_message 2015-11-12 12:05:49 +01:00
Dan Poltawski 00d70d79a4 MDL-47065 notes: prevent empty spaces added as note
(And updated behat test for this test case)
2015-11-12 09:56:56 +00:00
Jun Pataleta 2a4c236704 MDL-47065 behat: improve verificaton of lack of note 2015-11-12 09:56:56 +00:00
Dan Poltawski 142099e2a6 MDL-47065 notes: don't add blank notes
Previously the logic was wrong and was proceeding to add a note
when content was missing.

Also add behat coverage for adding notes to participants (this test is
not perfect, but better than zero coverage we had before).
2015-11-12 09:56:14 +00:00
Dan Poltawski 5fdbdca9e5 MDL-51819 js: built changes 2015-11-12 09:00:56 +00:00
Dan Poltawski 5318521b17 Merge branch 'wip-MDL-51819-master' of git://github.com/abgreeve/moodle 2015-11-12 08:46:34 +00:00
Simeon Naydenov b6ceafab52 MDL-51819 themes: Nested navigation dropdowns work on small screens. 2015-11-12 13:53:18 +08:00
Eloy Lafuente (stronk7) 9e9754b7aa Merge branch 'MDL-51515-master' of git://github.com/junpataleta/moodle 2015-11-11 23:14:47 +01:00
Damyon Wiese 6c2cfe281f MDL-51515 assign: Fix typo setting url in nav tree.
Thanks to Nelson Moller and Tyler Bannister.
2015-11-11 11:14:03 -06:00
Eloy Lafuente (stronk7) 84f7633f82 Merge branch 'MDL-36109-master' of git://github.com/danpoltawski/moodle 2015-11-11 17:10:11 +01:00
AMOS bot 2622d00bcd Automatically generated installer lang files 2015-11-12 00:04:06 +08:00
Eloy Lafuente (stronk7) fdca1a1dd3 Merge branch 'MDL-51495' of https://github.com/NeillM/moodle 2015-11-11 16:56:27 +01:00
Eloy Lafuente (stronk7) 02c72ecb79 Merge branch 'MDL-50589-master' of git://github.com/jleyva/moodle 2015-11-11 16:53:08 +01:00
Neill Magill f11fdf9c98 MDL-51495 calendar: E_WARNING in core_calendar_get_calendar_events
If a user does not have the 'moodle/calendar:manageentries' capability then an E_WARNING
can be generated by the core_calendar_external::get_calendar_events() method, that an
expected array is null

This patch creates an array that is missing when a user does not have the capability.
2015-11-11 15:24:31 +00:00
Neill Magill 11dc7c1c3d MDL-51495 calendar: Unit test to get an individual course event
If is user requests a single event on a course via the web service they should be able to retrieve it.
2015-11-11 15:18:37 +00:00
Dan Poltawski f96f7e3bbe MDL-51988 behat: Add coverage of participation report messaging 2015-11-11 12:38:05 +00:00
Dan Poltawski 950af0b4e0 MDL-51988 behat: select a table by <th> tag 2015-11-11 12:30:35 +00:00
Dan Poltawski 1337f77b87 MDL-51988 report_particiption: do not allow messaging when disabled
Previously the option to send messages when presented regardless of the
site setting.
2015-11-11 12:30:23 +00:00
David Monllao 169167c186 Merge branch 'MDL-51913_statistics_dup_1st_column' of git://github.com/barrysspace/moodle 2015-11-11 12:38:47 +08:00
David Monllao 23eff2c0ff Merge branch 'MDL-51922-master' of git://github.com/andrewnicols/moodle 2015-11-11 10:24:57 +08:00
David Monllao 82ee9604a2 Merge branch 'MDL-51935-master' of git://github.com/dpalou/moodle 2015-11-11 09:59:36 +08:00
David Monllao 212dc418d4 Merge branch 'MDL-51991-master' of git://github.com/ryanwyllie/moodle 2015-11-11 09:18:52 +08:00
Eloy Lafuente (stronk7) 3c6210a452 Merge branch 'wip-mdl-52077' of https://github.com/rajeshtaneja/moodle 2015-11-10 23:44:28 +01:00
Eloy Lafuente (stronk7) 47a445e442 Merge branch 'wip-mdl-52066' of https://github.com/rajeshtaneja/moodle 2015-11-10 23:27:50 +01:00
Eloy Lafuente (stronk7) 2a8709f6df Merge branch 'MDL-51686-master' of git://github.com/damyon/moodle 2015-11-10 20:19:06 +01:00
Eloy Lafuente (stronk7) f509e2e0a2 Merge branch 'MDL-50781-master' of git://github.com/danpoltawski/moodle 2015-11-10 20:13:21 +01:00
Eloy Lafuente (stronk7) d18a8d716c Merge branch 'MDL-51720-master' of git://github.com/damyon/moodle 2015-11-10 19:28:41 +01:00
Eloy Lafuente (stronk7) 13cad25081 Merge branch 'MDL-51482-lastinvalidation-handling' of https://github.com/mpetrowi/moodle 2015-11-10 18:27:22 +01:00
Dan Poltawski 6ae9762b37 Merge branch 'MDL-52059' of git://github.com/stronk7/moodle 2015-11-10 14:48:27 +00:00
Dan Poltawski 8e4c398b52 Merge branch 'MDL-51314-groupmembership' of https://github.com/dmitriim/moodle 2015-11-10 14:44:22 +00:00
Eloy Lafuente (stronk7) c31f23186e MDL-52059 versions: main version mini-bump 2015-11-10 12:35:17 +01:00
Eloy Lafuente (stronk7) 2e144835bb MDL-52059 versions: bump all versions and requires near release
version = planned 2015111600 release version
requires= current 2015111000 rc3 version
2015-11-10 12:33:52 +01:00
Eloy Lafuente (stronk7) bcf2ea710c Moodle release 3.0rc3 2015-11-10 10:50:56 +01:00
Eloy Lafuente (stronk7) c95d00ac94 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-11-10 10:50:48 +01:00
Dan Poltawski 0880780ee8 MDL-52063 forum: Moved notification is not a problem
The default behaviour of $OUTPUT->notification() is to indiciate a
problem.
2015-11-10 09:39:18 +00:00
Dan Poltawski 022f5b5e50 Merge branch 'MDL-52054-master-option4' of git://github.com/xow/moodle 2015-11-10 09:17:51 +00:00
Dani Palou 487f6471a0 MDL-51935 wiki: Add missing strings in wiki 2015-11-10 10:05:06 +01:00
John Okely 616dd1b594 MDL-52054 forum: Prevent error when clicking move without a destination 2015-11-10 16:43:19 +08:00
Ryan Wyllie d26d0d9b7e MDL-51991 atto_table: simplify settings
Cleaned up the language strings on the Atto table settings page
and reduced the number of settings options for border styling.
2015-11-10 08:15:01 +00:00
John Okely 32b4161a3c MDL-52055 block_online_users: Only show users from current course 2015-11-10 08:13:41 +00:00
Rajesh Taneja 81676e84e6 MDL-52077 unittest: Fixed string typo 2015-11-10 13:53:47 +08:00
Rajesh Taneja 27c99f5007 MDL-52066 unittest: Use ics file from external repo 2015-11-10 13:27:00 +08:00
John Okely d7f95392ac MDL-52054 forum: Revert MDL-46321. Add the "move" button back.
This reverts commit 5a699f25a2.
2015-11-10 10:46:37 +08:00
John Okely cb658a4d04 MDL-52063 forum: Display message when moving forum 2015-11-10 10:24:06 +08:00
Eloy Lafuente (stronk7) f62d6ffa3d Merge branch 'MDL-47979-master-blocks-config' of git://github.com/mudrd8mz/moodle 2015-11-09 23:42:26 +01:00
Eloy Lafuente (stronk7) d1bd327454 Merge branch 'MDL-52045-master-block_tags_settings' of git://github.com/mudrd8mz/moodle 2015-11-09 23:39:33 +01:00
AMOS bot 381fdb96bf Automatically generated installer lang files 2015-11-10 00:04:06 +08:00
David Mudrák 8159f23e76 MDL-47979 blocks: Do not display link to legacy file admin/block.php
The deprecated file admin/block.php was removed in Moodle 2.6. Since
then, all blocks that declare has_config() must provide a settings.php
file.
2015-11-09 13:30:40 +01:00
Dan Poltawski 2f3e84c132 Merge branch 'MDL-51837-master' of git://github.com/junpataleta/moodle 2015-11-09 11:33:00 +00:00
Dan Poltawski f46aa6bc42 Merge branch 'MDL-51628-master' of git://github.com/damyon/moodle 2015-11-09 11:01:21 +00:00
Dan Poltawski f808f8f553 Merge branch 'wip-MDL-52039-master' of https://github.com/marinaglancy/moodle 2015-11-09 08:48:49 +00:00
David Mudrák afb52b6f31 MDL-52045 block_tags: Fix invalid has_config() declaration
As the settings.php has been removed in MDL-51132, the block should no
longer declare it has global configuration.
2015-11-09 09:34:53 +01:00
David Monllao 0f1b3c69d8 Merge branch 'MDL-40245_master' of git://github.com/SWiT/moodle 2015-11-09 16:12:44 +08:00
Ryan Wyllie e1db2b4112 MDL-52042 autocomplete: close suggestion box
Close the suggestion box when the input loses focus for more
than half a second.
2015-11-09 07:32:56 +00:00
David Monllao a2bb9b8751 Merge branch 'MDL-49473-master' of git://github.com/danpoltawski/moodle 2015-11-09 15:12:30 +08:00
David Monllao 814809d59e Merge branch 'wip-MDL-52008-master' of git://github.com/abgreeve/moodle 2015-11-09 13:16:06 +08:00
AMOS bot 323e38c4a1 Automatically generated installer lang files 2015-11-08 00:04:45 +08:00
Marina Glancy 9390d02099 MDL-52039 block_tags: remove unused setting 2015-11-07 12:45:35 +08:00
Dan Poltawski 82467e580b MDL-50426 behat: Update non-contacts feature naming 2015-11-06 19:47:38 +01:00
Dan Poltawski 1533fca4b5 Moodle release 3.0rc2 2015-11-06 11:57:10 +00:00
Rajesh Taneja 7b4933db3a MDL-51685 unittest: Test functionality individually 2015-11-06 11:14:17 +01:00
Dan Poltawski 5208168e0c Merge branch 'MDL-51861' of https://github.com/stronk7/moodle 2015-11-06 10:04:02 +00:00
Eloy Lafuente (stronk7) ed4e707577 MDL-51861 enrol: added missing external cleanup for formal compliance 2015-11-06 10:58:28 +01:00
Dan Poltawski 265ddbf30c MDL-51569 mod_choice: Fix use of hardcoded ids
(Previous approach of making up ids longer works now we are validating
them..)
2015-11-06 08:09:47 +00:00
Dani Palou b036215acc MDL-51861 enrol: Don't get all parts in get_enrolled_users with groups 2015-11-06 15:07:24 +08:00
Andrew Nicols af8472a91f Merge branch 'MDL-51861' of git://github.com/stronk7/moodle 2015-11-06 15:01:20 +08:00
John Okely 531bcb13f6 MDL-51569 mod_choice: Prevent users from updating choices with curl
And fix unit tests.
2015-11-06 14:52:26 +08:00
Dmitrii Metelkin 6d6e297b13 MDL-51314 mod_assign: cache group membership in can_edit_submission 2015-11-06 15:21:01 +11:00
Andrew Nicols 1d1f08a045 MDL-51685-master Fix unit tests following change
These unit tests were modifying the PAGE and other globals in the middle of
tests and were failing as a result.

Broke the tests up into separate tests where the functionality is now
tested individually.
2015-11-06 10:36:06 +08:00
Adrian Greeve 9e8d0842ba MDL-52008 accessibility: Skip link works with chrome vox. 2015-11-06 09:47:51 +08:00
Eloy Lafuente (stronk7) f076ce2834 MDL-51861 enrol: new unit test to verify all conditions and filters
This unit test does not verify contents, details, but only
that the returned users for every group mode, for every
filtering (active, groupid and withcapability) together
with permissions are correct.
2015-11-06 02:26:02 +01:00
Dan Poltawski 600b815279 MDL-46049 chat: update calendar times on repeating chat sessions
Previously were using the invalid chat id and the calendar entry was not
updated.

Thanks to Andy McGill who worked this out.
2015-11-05 16:02:08 +00:00
Dan Poltawski 1c2a11fcfa MDL-46049 chat: add missing closing parenthesis 2015-11-05 16:01:42 +00:00
Damyon Wiese 0bca129775 MDL-51569 mod_choice: Validate the submitted optionid
Make sure any submitted choice options actually belong to the current choice
module.
2015-11-05 10:48:40 +00:00
Dan Poltawski 2759c1218d Merge branch 'MDL-52036-master-resettable' of git://github.com/mudrd8mz/moodle 2015-11-05 09:03:20 +00:00
Juan Leyva a7d13ecf2b MDL-50589 gradereport_user: Force regrade in external function 2015-11-05 09:40:38 +01:00
Ryan Wyllie ceb689b9fc MDL-50426 message: post_message capability tests
Behat and unit tests to confirm the behaviour of the
messaging lib after the capability checks were added
to the post message function.
2015-11-05 08:20:39 +00:00
Ryan Wyllie cd0c9ac87d MDL-50426 message: optional permission check on message
Changed the messaging API to allow you to provide a parameter
that will cause the code to check if the sender of the message
has the correct permissions before the message is sent.

The ajax messaging (message button on profile page) has been
updated to perform these permission checks. This brings it
inline with the existing private message page.
2015-11-05 08:20:39 +00:00
Ryan Wyllie e24188c881 MDL-50426 behat: fix behat field manager
Thanks to Raj for the patch.
2015-11-05 08:20:39 +00:00
Damyon Wiese 85d0696dfa MDL-51720 assign: Always fallback on userid as a default sort
Even when the table has no userid column (this is normally the edit column).
2015-11-05 15:33:19 +08:00
Andrew Nicols 19f14de362 Merge branch 'MDL-51395-master' of git://github.com/junpataleta/moodle 2015-11-05 13:57:22 +08:00
Jun Pataleta cefa583e71 MDL-51395 blog: Fix output of strings for blog comments 2015-11-04 23:46:31 -06:00
Andrew Nicols c73acaa7ef Merge branch 'MDL-26429-master' of git://github.com/cameron1729/moodle 2015-11-05 12:12:43 +08:00
Andrew Nicols 8acf1ccd22 MDL-51899 mod_forum: Add test for allowing 0 grades 2015-11-05 12:07:27 +08:00
Cameron Ball 7062e7c6b3 MDL-26429 usability: Add course completion icons.
This patch adds a method to the course completion criteria classes
which allows them to specify an icon for display in the course
completion report table.

There is a default implementation which simply looks for an icon
in pix/i with a name matching the completion criteria type.
2015-11-05 11:40:58 +08:00
Andrew Nicols da737c7201 Merge branch 'MDL-51899_master' of git://github.com/jacac/moodle 2015-11-05 11:24:43 +08:00
Andrew Nicols f8e685af44 Merge branch 'MDL-51685-master' of git://github.com/dpalou/moodle 2015-11-05 10:41:43 +08:00
rajesh Taneja 03b1f63d40 MDL-50837 mod_scorm: include locallib to access function 2015-11-05 10:23:31 +08:00
rajesh Taneja 0db240c1dd MDL-51918 behat: Key press should be down-press-up
As we simulate real user key press event, the
event should down followed by press and then up key
2015-11-05 09:15:41 +08:00
Brendan Heywood 462065e822 MDL-51718 weblib: Allow moodle_url scheme to be set 2015-11-05 09:08:00 +11:00
Matt Switlik 08334e0692 MDL-40245 assignment: download all submissions raise time limit 2015-11-04 16:32:37 -05:00
Jakob 90e815390a MDL-51899 mod/assign: Allow 0.00 grades while editing a grade.
The function unformat_float can return 0 and false.
We need to do strict comparison for the return value on line 92 to accept grades 0.00.
2015-11-04 11:11:42 -08:00
David Mudrák 19168d0934 MDL-52036 tablelib: Fix the behaviour of resetting table preferences
The problem with the previous implementation was that the table's
$this->prefs can contain valid non-empty value in its default state -
the default column to sort by. On resetting, we must not throw away
these default prefs.

This patch simplifies the TABLE_VAR_RESET interpretation. If such an
HTTP parameter is passed via the request, the table simply behaves as if
there were no previously stored preferences (does not matter if coming
from the current session, or from the persistent cross-session storage).

The logic that decides on whether or not the reset widget should be
displayed is put into a new method can_be_reset() with unit tests
attached.

Finally, the previously private method render_reset_button() is now
protected and the reset widget is given a new semantic CSS class.
2015-11-04 15:07:17 +01:00
David Monllao 47d5c29202 MDL-51684 badges: Make sure 'moodle/badges:viewbadges' is respected 2015-11-04 13:01:11 +00:00
Yuliya Bozhko 4bd4d4eee8 MDL-51684 badges: Make sure 'moodle/badges:viewbadges' is respected
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2015-11-04 13:01:11 +00:00
Juan Leyva 02c256c941 MDL-50837 mod_scorm: Fix availability checks 2015-11-04 12:54:55 +01:00
Juan Leyva 3dd0ac559f MDL-51569 mod_choice: Check choice availability prior to do any action 2015-11-04 11:08:32 +00:00
Cameron Ball 4bb9e1ad8a MDL-51091 core_registration: session key check in registration. 2015-11-04 18:46:27 +08:00
Simey Lameze 31d0bf81af MDL-49940 mod_survey: Fix XSS on survey module 2015-11-04 18:46:27 +08:00
Hugh Davenport 45ae1da263 MDL-49940 mod_survey: Escape user comments
This patch fixes a XSS vulnerability with surveys where a student user
    could inject arbitrary HTML in a comment on the survey. The fix is to
    escape the comment before displaying it to the teacher.
2015-11-04 18:46:27 +08:00
David Monllao 3f08e9b98a MDL-51000 editor_atto: No autosave for guests 2015-11-04 18:46:27 +08:00
Simey Lameze 541c5b8552 MDL-48109 mod_lesson: prevent CSRF on password protected lesson
This commit add a new session key hidden field on the lesson password form
and confirm if the session key is valid on related pages to prevent CSRF on
password protected lessons.
2015-11-04 18:46:27 +08:00
Petr Skoda c73f6d03e5 MDL-48085 flowplayer: prevent flash parameters via url 2015-11-04 10:31:12 +00:00
Damyon Wiese 861c1dea98 MDL-51970 autocomplete: Fix for a regression in MDL-51964
This was causing the suggestions list to never open.
Picked up in testing for MDL-51970.
2015-11-04 16:29:47 +08:00
Dani Palou 1f7273af6a MDL-51685 user: Support gravatar images in user_get_user_details 2015-11-04 08:40:19 +01:00
Andrew Nicols 9fe1cb0421 Merge branch 'MDL-51983-master' of git://github.com/ryanwyllie/moodle 2015-11-04 15:21:37 +08:00
Ryan Wyllie 77b0811021 MDL-51983 actionmenu: behat tests 2015-11-04 06:36:32 +00:00
Andrew Nicols 6da79391ca Merge branch 'MDL-45814-master' of git://github.com/danpoltawski/moodle 2015-11-04 14:05:01 +08:00
Andrew Nicols 6c57f48034 Merge branch 'MDL-52012-master' of https://github.com/lucisgit/moodle 2015-11-04 13:49:01 +08:00
Andrew Nicols 01451bbc5a Merge branch 'MDL-52004-master' of git://github.com/damyon/moodle 2015-11-04 13:38:07 +08:00
Ryan Wyllie 5d2c5ba3e4 MDL-51983 actionmenu: fix hideIfOutside
The hideIfOutside function was being too restrictive with the
selector for checking if the event occurred within a menu child
(anchor tag) rather than the menu itself.
2015-11-04 03:42:09 +00:00
Ryan Wyllie 4456c306df MDL-51983 actionmenu: stop event propagation
Stop event propagation on keyboard events that have been
successfully handled by the action menu code.
2015-11-04 03:41:34 +00:00
Andrew Nicols 99b9751f0d Merge branch 'wip-MDL-51486-master' of git://github.com/abgreeve/moodle 2015-11-04 11:35:38 +08:00
Andrew Nicols 4d95d3f0e5 Merge branch 'MDL-51918-master-navigable' of https://github.com/pauln/moodle 2015-11-04 11:25:34 +08:00
Adrian Greeve 4a9a9bad73 MDL-51486 mod_data: Unit test update for item ratings.
Additional checks that access is available for item ratings
on records that have a group id of zero (all participants).
2015-11-04 10:12:39 +08:00
Adrian Greeve ca3e8022d1 MDL-51486 mod_data: Can view rating information.
When students are given the appropriate permissions
to view ratings, in the situation where there are
separate groups. The students can view the ratings
of an entry that is in the all participants group.
2015-11-04 10:12:39 +08:00
Andrew Nicols 36e323645a Merge branch 'MDL-51970-master' of git://github.com/damyon/moodle 2015-11-04 08:28:57 +08:00
Paul Nicholls 245f45f4d6 MDL-51918 gradereport: Fix AJAX mode keyboard navigation
Keyboard navigation (ctrl+up/down/left/right) with AJAX enabled ceased
functioning with editing mode enabled after MDL-36606, as it was looking
for cells with a "clickable" class - but was only applying that class when
editing mode is NOT enabled.  This patch uses a new "gbnavigable" class to
control keyboard navigation, whether editing mode is on or not.  It also
addresses some browser compatibility and minor behavioural issues.
2015-11-04 11:27:35 +13:00
Eloy Lafuente (stronk7) 4cef723c22 Moodle release 3.0rc1 2015-11-03 19:00:58 +01:00
Eloy Lafuente (stronk7) 561413695d Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-11-03 19:00:41 +01:00
Eloy Lafuente (stronk7) 217c3e0fc9 Merge branch 'wip-mdl-52007' of https://github.com/rajeshtaneja/moodle 2015-11-03 17:56:23 +01:00
Eloy Lafuente (stronk7) 836c6d7883 Merge branch 'wip-mdl-52020' of https://github.com/rajeshtaneja/moodle 2015-11-03 17:56:22 +01:00
Dan Poltawski 728754de6b Merge branch 'MDL-52018-master-enfix' of git://github.com/mudrd8mz/moodle 2015-11-03 17:56:21 +01:00
Andrew Nicols 40a44cdd52 Merge branch 'MDL-51993-master' of git://github.com/cameron1729/moodle 2015-11-03 17:56:21 +01:00
AMOS bot 52617af3c9 Automatically generated installer lang files 2015-11-04 00:04:21 +08:00
Dan Poltawski 7a89772cfb MDL-45814 login: don't prompt guest user to change password 2015-11-03 14:48:58 +00:00
Dan Poltawski 72ae4ec8d4 MDL-49473 logs: ensure exported logs contain year 2015-11-03 11:37:24 +00:00
Dan Poltawski 24c3db91a4 MDL-50781 user: do not print useless table cell
Thanks to Maurício Severo da Silva for the patch
2015-11-03 10:51:49 +00:00
rajesh Taneja 180fdb2f7c MDL-52007 behat: Use extended timeout for site admin expansion 2015-11-03 16:08:27 +08:00
Barbara Ramiro 08dc6b095e MDL-26429 Course completion icons for self, duration, and role. 2015-11-03 14:54:15 +08:00
Cameron Ball c47b6f97d7 MDL-51993 course: Set valid default for section_edit_control_menu
Thank you to Gareth Barnard for originally providing this patch.
2015-11-03 10:29:38 +08:00
Andrew Nicols 80ad34e720 Merge branch 'MDL-51914' of git://github.com/timhunt/moodle 2015-11-03 09:42:04 +08:00
rajesh Taneja f497fdcc21 MDL-52020 behat: Removed text checking to ensure window switch
Comment question window closes after 2 sec.
which crashes win-FF as it's slow to check for
"Changes saved" text. As after switching it is
checked the changes are saved, this step can be
avoided to ensure robustness of the scenario
2015-11-03 09:40:33 +08:00
Tim Hunt 0b4b0a7eea MDL-51914 qtype_ddmarker: fix checking points on the boundary
All points on the boundary are now considered in the shape, on the
grounds that it is better to grade someone right for an edge case.
2015-11-02 22:06:23 +00:00
David Mudrák e8b75e6292 MDL-52018 lang: Fix behat tests to use the new strings 2015-11-02 22:30:46 +01:00
Helen Foster da6ecfd8c1 MDL-52018 lang: Merge English strings from the en_fix language pack 2015-11-02 22:12:06 +01:00
Eloy Lafuente (stronk7) 2cc040c6c0 Merge branch 'MDL-52014-master' of git://github.com/danpoltawski/moodle 2015-11-02 20:02:16 +01:00
Eloy Lafuente (stronk7) e88100f673 Merge branch 'wip-MDL-51999-master' of https://github.com/marinaglancy/moodle 2015-11-02 19:59:01 +01:00
Eloy Lafuente (stronk7) 373748277a Merge branch 'MDL-51829-master' of git://github.com/dpalou/moodle 2015-11-02 19:40:16 +01:00
Dan Poltawski 5294052875 MDL-52014 quiz: do not log preview attempt deletions
This happens automatically by the system.
2015-11-02 16:17:22 +00:00
Colin Campbell 7006ab3eb7 MDL-51715 lib/grade: Unit test for aggregationweight 2015-11-02 10:15:05 -06:00
Colin Campbell 70ba1f6bcb MDL-51715 lib/grade: Zero out aggregationweight for novalue and dropped
set_usedinaggregation was setting aggregationweight to zero in these
cases for non-category grades, but not for category grades.
2015-11-02 10:14:50 -06:00
Dan Poltawski 28aadc2b12 Merge branch 'MDL-51128-master' of git://github.com/junpataleta/moodle 2015-11-02 14:07:10 +00:00
Dan Poltawski 2088c22e41 Merge branch 'wip-MDL-50633-master2' of https://github.com/marinaglancy/moodle 2015-11-02 14:04:44 +00:00
Marina Glancy 57ee89569a MDL-50633 dml: deprecated var replaced in mysql 5.7
Thanks to Charles Verge for providing a patch
2015-11-02 21:05:20 +08:00
Tony Butler d3069afd27 MDL-52012 core_lib: Add namespace to $OUTPUT->notify_message definition 2015-11-02 11:12:47 +00:00
Dan Poltawski deec056650 Merge branch 'MDL-51854-master' of https://github.com/pauln/moodle 2015-11-02 09:08:01 +00:00
Damyon Wiese cfca338d7a MDL-52004 assign: Set unique urls when grading so autosaves work
The Atto autosave feature uses the $PAGE->url to generate unique hashes for
each page. Assignment uses a MUC cache to persist ordering of lists - the result
is that the urls are not unique (they depend on the cached filter).

The fix is to spoof a unique url that will grade only that student with no
active grading list (no next/prev buttons).
2015-11-02 16:41:55 +08:00
Andrew Nicols 693ed49c10 Merge branch 'MDL-51707-m' of https://github.com/micaherne/moodle 2015-11-02 14:36:10 +08:00
Andrew Nicols df8095156e Merge branch 'MDL-47073-master' of git://github.com/junpataleta/moodle 2015-11-02 11:54:21 +08:00
Marina Glancy bb0ac1fdc2 MDL-51999 user: remove unnecessary continue 2015-11-02 10:53:43 +08:00
Andrew Nicols 117dc470bc Merge branch 'MDL-51964-master' of git://github.com/damyon/moodle 2015-11-02 10:52:37 +08:00
Marina Glancy 9dfe870449 MDL-51888 mod_resource: cache file details for performance
If file details (size, type, date) are configured to be displayed we cache them
in course cache raw and build the display string in user language/timezone when
displaying. Also changed behat test not to fail in 2016
2015-11-02 10:38:26 +08:00
Damyon Wiese 273b255673 MDL-51970 autocomplete: Small refactor because too many options
Each function was taking 8-10 args - combine them all in state and options
objects and pass those around instead.
2015-11-02 10:22:53 +08:00
Damyon Wiese 97d2ea7f87 MDL-51970 autocomplete: Add an option to hide the suggestions
This is used by tags when official tags are disabled.
2015-11-02 10:21:57 +08:00
Damyon Wiese be9b036a33 MDL-51964 autocomplete: IE11 fires spurious "input" events
We need to check for "real" changes to the input value because
ie11 is just firing events willy nilly.
2015-11-02 10:11:13 +08:00
AMOS bot e0b2ad1f35 Automatically generated installer lang files 2015-11-01 00:07:45 +08:00
Jun Pataleta bbbdfc8610 MDL-47073 lib: Replace backslashes with slashes in jquery plugin urls
This patch replaces backslash characters in the generated jQuery
plugin URL to forward slashes when slasharguments is disabled and
 the Moodle server is running on IIS.
Thanks to Ryan Panning <Ryan.Panning@district196.org> for
reporting this issue and for suggesting a fix.
2015-10-30 17:05:23 -05:00
Dan Poltawski 821ab27c19 on-demand release 3.0beta+ 2015-10-30 21:09:21 +00:00
Dan Poltawski 999aa8ca45 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-10-30 21:09:20 +00:00
Dan Poltawski 3a723033e8 MDL-36109 accesibility: use proper words for logo alt text 2015-10-30 16:55:03 +00:00
Eloy Lafuente (stronk7) d708bf59e4 Merge branch 'wip-mdl-51981' of https://github.com/rajeshtaneja/moodle 2015-10-30 10:23:52 +01:00
Marina Glancy 58e5ab1bac MDL-51985 files: sync timemodified when possible 2015-10-30 14:46:09 +08:00
rajesh Taneja 4b274a10c2 MDL-51981 behat: No need for JS tag
This scenario crashes win-chrome and probably
other comninations. Looking at this, it seems
js tag is not needed, so removing js tag to make
it pass on all OS
2015-10-30 11:29:52 +08:00
Andrew Nicols ee0546291a Merge branch 'wip-MDL-51552-master' of git://github.com/abgreeve/moodle 2015-10-30 11:01:00 +08:00
Adrian Greeve 42b3a58c47 MDL-51552 gradebook: Update to singleview behat test. 2015-10-30 10:08:02 +08:00
Andrew Nicols 22d0a8f11e MDL-51966 forms: Typo correction 2015-10-30 07:56:25 +08:00
Andrew Nicols 63a03a8b05 Merge branch 'wip-MDL-51966-master' of https://github.com/marinaglancy/moodle 2015-10-30 07:31:28 +08:00
AMOS bot 1a9d1593e4 Automatically generated installer lang files 2015-10-30 00:04:09 +08:00
Dan Poltawski ca9daf0fb0 Merge branch 'MDL-51955' of git://github.com/stronk7/moodle 2015-10-29 14:22:28 +00:00
Dan Poltawski 02315eb2bb Merge branch 'MDL-51939-master' of git://github.com/andrewnicols/moodle 2015-10-29 13:54:56 +00:00
Eloy Lafuente (stronk7) 1f0f002e1d MDL-51939 mod_forum: all participants discussions are viewed by students
Added scenario to verify that "all participants" discussions, under
separate-groups mode are, by default, visible for students.
2015-10-29 21:10:20 +08:00
Andrew Nicols 7774cf96f8 MDL-51939 mod_forum: Fix groupid data on upgrade
This upgrade step addresses issues identified in MDL-51939 where the
groupid was incorrectly set. The issue itself is not present in 2.9, but
this upgrade step is required to correct any incorrect data.
2015-10-29 21:10:11 +08:00
Eloy Lafuente (stronk7) aa4a2716ef MDL-51955 testing: Exported files may be smaller than expected
Open a bit the allowed size expectation to accomodate oracle
producing smaller files when outputing decimal numbers.
2015-10-29 13:19:36 +01:00
Dan Poltawski 3adcb91d55 Merge branch 'MDL-50811-master' of git://github.com/cameron1729/moodle 2015-10-29 10:53:40 +00:00
Dan Poltawski ab0ad70a83 Merge branch 'MDL-51921-master' of git://github.com/junpataleta/moodle 2015-10-29 10:35:03 +00:00
Adrian Greeve 81e3251512 MDL-51552 gradebook: Single view bulk insert fix.
Single view now doesn't overwrite non-empty grades.

A thank you to Sam Anderson and Robert Russo for providing a patch.
2015-10-29 16:00:46 +08:00
Marina Glancy ecbc2a2f25 MDL-51966 forms: case-insensitive search in autocomplete 2015-10-29 15:10:20 +08:00
Andrew Nicols b5df2c1db0 Merge branch 'MDL-51923-master-2' of git://github.com/xow/moodle 2015-10-29 14:48:25 +08:00
Andrew Nicols 37d0021369 Merge branch 'MDL-51915' of git://github.com/timhunt/moodle 2015-10-29 14:41:45 +08:00
Andrew Nicols a72f3add06 Merge branch 'MDL-51799-master' of git://github.com/ryanwyllie/moodle 2015-10-29 13:16:15 +08:00
Ryan Wyllie f8f477ece5 MDL-51799 javascript: dialogue accessibility
Moved setting the aria visiblity of the dialogues from the show
and hide functions into the visibility change handler to stop
multiple calls.

Also made the visibility checker just continue to buffer the elements
it hides, rather than clearning them, on multiple calls.
2015-10-29 05:10:10 +00:00
Andrew Nicols 68881fb620 Merge branch 'MDL-51956-master' of git://github.com/ryanwyllie/moodle 2015-10-29 11:06:18 +08:00
Ryan Wyllie 1c53bc813e MDL-51956 atto_table: fix bg colour bug
The table editor will now set the backgorund colour on the
table in Firefox version 34 and below.

Also expanded the dialogue slightly because the colour choices
were wrapping and I added some styling to put a gap in for the
metric markers for border width and table width.
2015-10-29 02:51:06 +00:00
Dan Poltawski de342562cc Merge branch 'wip-MDL-51919-master' of git://github.com/abgreeve/moodle 2015-10-28 12:48:18 +00:00
Dan Poltawski bb63c18443 Merge branch 'MDL-51924-master' of git://github.com/barbararamiro/moodle 2015-10-28 12:04:20 +00:00
Dan Poltawski b2aaab60f3 Merge branch 'MDL-51838-master' of git://github.com/damyon/moodle 2015-10-28 11:53:53 +00:00
Dan Poltawski 413c321a18 Merge branch 'MDL-51914' of git://github.com/timhunt/moodle 2015-10-28 11:52:03 +00:00
Tim Hunt 2d391d1b10 MDL-51914 qtype_ddmarker: precise grading round the edges of zones
There was a previous change to the CSS (7px -> 3px) to make things
look prettier, which acutally broke the grading by a few pixes.
I fixed this by:

* Changing the offset of the cross hairs back to the correct value,
  and adding a comment to point out the imporance of not changing
  that CSS.

* Achieved the nice layout of the label relative to the cross-hairs
  in a different way.

* Added a similar clafirying comment in the JavaScript.

* Improved how the grid on the editing form is aligned with the
  background image.

* Added rounding to the grading code, to cope better now that
  browsers do sub-pixel positioning.
2015-10-28 10:53:00 +00:00
Jun Pataleta 9f555a7e77 MDL-51921 files: Fixes for file manager issues
Fixed the issue where the file path select box goes beyond the
container with very long folder names. Instead of setting to
"width: auto", I set it the select box's "width: 100%" so that it will
just fill up its container's width.
Fixed the issue where markups are being shown on file aliases.
2015-10-28 04:48:25 -05:00
Rajneel Totaram 494fec0071 MDL-51923 enrol: Enrolment list filter 'No Group' shows incorrect count
With contributions from John Okely
2015-10-28 17:34:16 +08:00
Adrian Greeve 527bde6e0f MDL-51919 forms lib: Autocomplete doesn't hide prematurely.
Quickly navigating via the keyboard to an autocomplete
element and hitting down would result in the selections
being displayed and then quickly removed. This has now
been fixed.
2015-10-28 14:15:26 +08:00
Andrew Nicols d412f8552d on-demand release 3.0beta+ 2015-10-28 12:59:31 +08:00
Andrew Nicols 6fb6859945 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-10-28 12:59:25 +08:00
Andrew Nicols af39ce0f8d MDL-51880 atto_table: Coding style fix 2015-10-28 11:39:17 +08:00
Andrew Nicols 7dea2c1707 Merge branch 'MDL-51880-master' of git://github.com/ryanwyllie/moodle 2015-10-28 11:37:17 +08:00
Ryan Wyllie f45937e17d MDL-51880 atto/plugins/table: improve table borders
* Removed the "No borders" option from general borders setting
  since it's a style choice.
* Added inherit, initial and unset as border style options.
* Made the border settings disabled if "Theme default" is selected.
* Changed the transparent colour to be "Theme default" which means
  apply no colour at all.
2015-10-28 03:28:36 +00:00
Dan Poltawski e360ff5db6 Merge branch 'MDL-51893' of git://github.com/stronk7/moodle 2015-10-27 14:43:00 +00:00
Dan Poltawski 61257ae417 Merge branch 'MDL-51863' of git://github.com/stronk7/moodle 2015-10-27 11:57:20 +00:00
Dan Poltawski 101df9a634 Merge branch 'MDL-51906-master-fixes' of git://github.com/andrewnicols/moodle 2015-10-27 10:49:10 +00:00
Andrew Nicols 68b35af353 MDL-51906 testing: Hardcode branch name 2015-10-27 18:31:23 +08:00
Eloy Lafuente (stronk7) 7c549a17f4 MDL-51893 core_date: Stop using Pacific/Norfolk as 11.5 replacement
Norfolk Island's standard time (NFT) was on UTC+11:30 until 4 October
2015, when it was changed to UTC+11:00. So it's not suitable for 11.5
bad mapping replacement anymore.

It seems that there isn't any other location using such 11.5 timezone
so completely getting rid of it for conversions.
2015-10-27 10:17:05 +01:00
Barbara Ramiro 39f360ae38 MDL-51924 Using box-sizing mixin to prevent blocks overlap on profile page 2015-10-27 16:13:43 +08:00
Corey Wallis 346ba4f443 MDL-50811 mod_forum: Add completion tracking for emailed replies 2015-10-27 15:53:42 +08:00
Andrew Nicols 10a8d040dc Merge branch 'MDL-51905-master' of git://github.com/xow/moodle 2015-10-27 14:50:55 +08:00
Andrew Nicols 03f2797b09 MDL-51922 testing: Add memcached + mongodb testing to Travis matrix 2015-10-27 14:29:21 +08:00
John Okely 161ffc5605 MDL-51905 block_activity_results: Default to the current activity
Due to an incorrect condition, the activity results block would
incorrectly identify some blocks as not being gradeable.
This meant that edit form could not determine what activity the block
was added to. This commit fixes the condition, allowing the current
block to be determined correctly
2015-10-27 13:47:58 +08:00
Andrew Nicols 53759a0c91 Merge branch 'wip-MDL-51840-master' of git://github.com/abgreeve/moodle 2015-10-27 11:13:44 +08:00
Andrew Nicols f5e587c1db Merge branch 'wip-MDL-51841-master' of git://github.com/abgreeve/moodle 2015-10-27 11:03:43 +08:00
Andrew Nicols 4727a4a207 Merge branch 'MDL-51864-master' of git://github.com/junpataleta/moodle 2015-10-27 10:57:45 +08:00
Andrew Nicols d891a6dcb7 Merge branch 'MDL-51127-master' of git://github.com/lazydaisy/moodle 2015-10-27 10:47:48 +08:00
Eloy Lafuente (stronk7) 70ae75674d MDL-51863 packer: ensure empty zip files behavior remains consistent
With PHP bug #70322 fixed, ZipArchive::close() did start returning false
and throwing PHP Warnings with recent PHP versions (5.6.14 and up).
Previously (5.6.13 verified) it was returning true, and false in older
versions (5.4.x verified).

This change does silent the 2 "hacky" calls to close() that we perform
in core leaving the 3rd one (used for files having files) unmodified.

A new unit test has been created to cover the close() behavior, ideally
supporting both old and new PHP versions without harcoding any PHP
version.

Note that we don't use to rely much on results coming from close(), and
that's a good thing given the buggy behavior commented above. This just
keeps empty zips working like they were before.
2015-10-26 21:16:54 +01:00
Tim Hunt 42406bc413 MDL-51915 lib tests: Extra unit test for html_to_text. 2015-10-26 18:30:21 +00:00
Barry Oosthuizen 3e90d870bc MDL-51913 report_stats: Make first column unique 2015-10-26 17:22:31 +00:00
Dan Poltawski d3cd5f1f8f Merge branch 'wip-MDL-51834-master' of https://github.com/kwiliarty/moodle 2015-10-26 13:54:41 +00:00
Dan Poltawski 3ec49c6de3 Merge branch 'MDL-51906-master' of git://github.com/andrewnicols/moodle 2015-10-26 13:49:32 +00:00
Dan Poltawski ff1543e0df Merge branch 'MDL-51894-master' of git://github.com/andrewnicols/moodle 2015-10-26 12:40:15 +00:00
Dan Poltawski eb154d9c14 Merge branch 'MDL-51855-master' of git://github.com/lameze/moodle 2015-10-26 10:20:02 +00:00
Eloy Lafuente (stronk7) f7d8c61ae7 Merge branch 'MDL-51824-master' of git://github.com/lameze/moodle 2015-10-26 09:59:21 +01:00
Simey Lameze 0bc41cfcec MDL-51824 auth: include required CLI library 2015-10-26 15:52:11 +08:00
Adrian Greeve d304952b43 MDL-51840 forms lib: keyboard navigation with ajax works.
Ajax autocomplete forms can now be navigated properly with
the keyboard.
2015-10-26 15:03:42 +08:00
Adrian Greeve adebc069bd MDL-51841 forms lib: Autocomplete fields work with spaces. 2015-10-26 15:02:52 +08:00
Adrian Greeve abfaf50217 MDL-51841 forms lib: Autocomplete fields work with spaces. 2015-10-26 14:55:19 +08:00
Damyon Wiese 81c471e2a9 MDL-51821 forms: Be more explicit in autocomplete if no suggestions 2015-10-26 14:20:25 +08:00
Damyon Wiese bdd60287e5 MDL-51821 forms: Better handling for deselecting items in autocomplete
Fixes 3 problems with deselecting items in an autocomplete field:

1. Keep track of whether items were in the offical suggestion list, or are newly created
   tags and remove the "newly created tags" from the suggestion list when they are
   deselected
2. Change the aria-role for the selected items list when items cannot be deselected (and
   do not treat it like a multiselect list).
3. When leaving and returning focus to the selected items list, remember the last
   active-descendant.
2015-10-26 14:20:25 +08:00
Andrew Nicols 3365244fda Merge branch 'MDL-51824-master' of git://github.com/lameze/moodle 2015-10-26 13:56:49 +08:00
Simey Lameze 37e51a5daa MDL-51824 core: initial deprecation of auth sync CLI scripts
This commit does the initial deprecation of the CLI scripts of CAS and LDAP authentication plugins.
2015-10-26 13:36:27 +08:00
Damyon Wiese 32f3de567f MDL-51838 autocomplete: Scroll the suggestions list
Keep the active item "visible" when using keyboard nav on a long list of suggestions.
2015-10-26 12:20:33 +08:00
Andrew Nicols fd424b99f2 MDL-51894 inboundmessage: Ensure that all mailboxes exist 2015-10-26 12:17:15 +08:00
Andrew Nicols 5459e754c6 MDL-51906 testing: Fix travis builds for beta/rc
These were previously checking the release string for presence of the 'dev'
string. On friday we moved to beta, and will shortly move to RC.

We should be checking the version maturity instead.

This change switches to checking for MATURITY_STABLE in the maturity
string. If it is found, the branch behaviour follows the $branch version.
If it is not found, we use master.

This also adds a check to ensure that if the branch is not found, we exit
early instead of performing CI Tests over the entirety of Moodle.
2015-10-26 12:03:51 +08:00
Simey Lameze abc2491211 MDL-51855 mod_question: fix offset error during upgrade 2015-10-26 11:51:18 +08:00
Andrew Nicols 3953d0b7a7 Merge branch 'MDL-51842-master' of git://github.com/xow/moodle 2015-10-26 11:29:02 +08:00
John Okely 0fc2bccd60 MDL-51842 theme_bootstrapbase: Fix alignment of parallel buttons 2015-10-26 10:49:26 +08:00
Andrew Nicols 3363cbe55b Merge branch 'MDL-51779_master' of https://github.com/Syxton/moodle 2015-10-26 09:46:38 +08:00
Eloy Lafuente (stronk7) 8b3090c13b MDL-51903 behat: move guest enrolment to new UI
With MDL-30674 we missed to change this use from the
old (course edition) UI to the new (enrolment methods) one.
2015-10-25 21:13:08 +01:00
Jun Pataleta 3dbdeb5ccb MDL-51864 blocks: Fixed title display for block_course_summary 2015-10-24 00:03:39 -05:00
lazydaisy b395f7b599 MDL-51127 theme_bootstrapbase: Re-aligned RTL context header button. 2015-10-23 18:28:20 +01:00
AMOS bot 1bc3f19a5b Automatically generated installer lang files 2015-10-24 00:04:00 +08:00
Syxton 626d833543 MDL-51779 assign: PDF annotate quality
Fixes the quality of pdf content when annotating.
2015-10-23 09:22:38 -04:00
Dan Poltawski 9382ac38d6 Moodle release 3.0beta 2015-10-23 13:47:50 +01:00
Dan Poltawski efad76904c Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-10-23 13:47:49 +01:00
Dan Poltawski ec2e5c4151 NOBUG: correcting pre-beta version name 2015-10-23 13:46:59 +01:00
Eloy Lafuente (stronk7) e326fbeea2 MDL-30674 enrol_guest: version bump in case it's needed for something 2015-10-23 13:31:59 +02:00
Eloy Lafuente (stronk7) 2ee8636553 Merge branch 'MDL-30674-master-wip' of https://github.com/andrewnicols/moodle 2015-10-23 12:46:53 +02:00
Dan Poltawski 8c976328c1 MDL-40863 mod_resource: bump version
(not technically necessary - but I prefrer to make it explicit against
stable)
2015-10-23 11:34:52 +01:00
Dan Poltawski 94b8c29248 MDL-40863 mod_resource: add missing behat tag 2015-10-23 11:27:57 +01:00
Marina Glancy 9a58434601 MDL-40863 mod_resource: do not cache user-specific info 2015-10-23 11:25:51 +01:00
Andrew Hancox ba8b641dce MDL-40863 mod_resource: Add option to show modified date 2015-10-23 11:25:07 +01:00
Eloy Lafuente (stronk7) d9b60d6f25 Merge branch 'MDL-51739-master-individual-locking' of git://github.com/ryanwyllie/moodle 2015-10-23 10:42:17 +02:00
Ryan Wyllie f1ecad609a MDL-51739 theme: allow config to lock theme selector
If any of the devices have their theme set in config.php
it will lock the theme selector UI from being able to change
the theme.
2015-10-23 05:06:21 +00:00
Kevin Wiliarty b71890687a MDL-51834 auth,profile: locks custom fields based on auth settings 2015-10-22 23:39:49 -04:00
Andrew Nicols 0b7dc6e8cd Merge branch 'MDL-45515-master' of git://github.com/ryanwyllie/moodle 2015-10-23 10:59:34 +08:00
jinhofer f067581828 MDL-45515 lib/editor/atto/plugins/table: added behat 2015-10-23 02:57:51 +00:00
jinhofer b87e11c849 MDL-45515 atto/plugins: Added border style and BG colour to table
This commit adds the option for borders to be added and
styled, background colours to be set, and width to be set for tables
in the Atto HTML Editor. For those that desire to restrict
use of this, the plugin settings allow the admins to restrict
how much freedom their users have with borders.
2015-10-23 02:57:50 +00:00
Andrew Nicols 5164b76e75 MDL-30674 enrol_guest: Respect 2015-10-23 10:40:42 +08:00
AMOS bot 32440787d4 Automatically generated installer lang files 2015-10-23 00:04:16 +08:00
Dan Poltawski 0a05907873 Merge branch 'MDL-51737-master-3' of git://github.com/andrewnicols/moodle 2015-10-22 14:43:20 +01:00
Dan Poltawski cf84a5d2dd MDL-51458 travis: note the purpose of config 2015-10-22 12:14:04 +01:00
Dan Poltawski c7ec75d670 Merge branch 'MDL-51458-master' of git://github.com/andrewnicols/moodle 2015-10-22 12:13:39 +01:00
Andrew Hancox 0c93dda8af MDL-30674 enrol_guest: Moved settings from course to enrol form
Added proper enrol settings form with status (enabled or disabled)
and password option in line with other core enrol plugins.
Removed enrol_guest settings from course settings page.
When adding a guest enrol plugin you now get presented with the
edit form as with other core enrol plugins.
2015-10-22 11:52:18 +01:00
Andrew Nicols 3ba7bf006e Merge branch 'wip-MDL-46623-master' of git://github.com/marinaglancy/moodle 2015-10-22 13:26:32 +08:00
Vadim Dvorovenko e96ac9156d MDL-46623 auth: Sheduled tasks for users sync
Sheduled tasks for syncing users with external sources for auth_ldap
and auth_cas. Using task is simplier than setting separate cron
job for running cli script. Task are disabled by default.
2015-10-22 12:45:57 +08:00
Andrew Nicols 39a731efb4 MDL-51737 core: Add Edge UserAgent support 2015-10-22 08:37:27 +08:00
Paul Nicholls ca50279d4e MDL-51854 atto_image: Allow other plugins to handle drop events
The drop handler should only return false if it has actually handled the
drop event (i.e. it was an image) - otherwise, Atto plugins loaded after
this one don't get an opportunity to handle other drop events.
2015-10-22 11:58:57 +13:00
Andrew Nicols ab17b4f7ee MDL-51458 testing: Disable Travis notifications entirely
The Travis-CI service currently over-notifies the upstream repository
owner which can mean that committers without access to a fork of the
repository are notified of failures, and success changes.

Until this issue is addressed, and we are happy with the stability of our
build, we have disabled notification support.

The Travis-CI service problem has been raised in
https://github.com/travis-ci/travis-ci/issues/4976
2015-10-21 08:13:12 +08:00
Andrew Nicols 88ec08605b MDL-51458 Testing: Support for Travis-CI.org
This commit adds support for community use of travis-ci.org and allows
developers to get free testing of their changes in multiple PHP
environments, and multiple database servers.

Use of this feature requires setup on travis-ci.org, and is not supported
by Moodle HQ.

Results supplied by travis-ci.org are for your convenience only, and tests
will still be applied separately by the HQ integration servers during
integration.
2015-10-21 08:13:12 +08:00
Dan Poltawski de2a3b7423 Merge branch 'MDL-50217' of git://github.com/timhunt/moodle 2015-10-20 14:56:33 +01:00
Dan Poltawski 91aaa240f5 on-demand release 3.0dev+ 2015-10-20 09:57:22 +01:00
Dan Poltawski 0e74fa11cd Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-10-20 09:57:21 +01:00
Dani Palou dbcade703b MDL-51829 admin: Set userquota setting as PARAM_INT 2015-10-20 10:01:11 +02:00
Mark Nelson e7be37b1c2 MDL-51782 mod_forum: fixed unit test failing on certain DBs 2015-10-20 14:44:58 +08:00
Andrew Nicols 579b72a227 Merge branch 'MDL-51782_master' of git://github.com/markn86/moodle 2015-10-20 11:50:57 +08:00
Andrew Nicols dc2091c87f Merge branch 'MDL-51162-master' of git://github.com/lameze/moodle 2015-10-20 10:48:14 +08:00
Simey Lameze 4d16a2749f MDL-51162 core: replace all HTTP_RAW_POST_DATA usages
This patch replace all usages of HTTP_RAW_POST_DATA that was deprecated on PHP 5.6 by
file_get_contents('php://input'). Only the TinyMCE library has not been updated.
2015-10-20 10:27:26 +08:00
Jonathon Fowler 26670f5ee9 MDL-44598 assign: improve 'grant extension' form to show user names
Presents the first several students like the 'Set marking workflow
state' facility does, and processes the submitted ids through the
grading batch intermediary form. (For reference: MDL-42531)
2015-10-20 12:19:16 +10:00
Jun Pataleta b47454f6b7 MDL-51837 user: Check if user email is set on validation
Add a check if the user's email is set before performing validation on
the user's email address. This is to prevent the warning messages to
be shown in the case of a pending email change which causes the user's
email field to be not included in the Edit profile form.
2015-10-19 16:50:01 -05:00
Eloy Lafuente (stronk7) d6ed5f8230 MDL-51836 mod_forum: Fix CASE statement breaking mssql & oracle. 2015-10-19 23:14:35 +02:00
Eloy Lafuente (stronk7) 9062fa25ae Merge branch 'MDL-49329-master-multiplug' of git://github.com/mudrd8mz/moodle 2015-10-19 18:10:40 +02:00
David Mudrák c8a6d162a0 MDL-51832 tests: Fix failing code manager unit tests on Windows 2015-10-19 18:08:59 +02:00
Dan Poltawski 319310a57c MDL-51792 js: grunt built 2015-10-19 16:48:33 +01:00
Eloy Lafuente (stronk7) a180068e74 Merge branch 'wip-mdl-48117' of https://github.com/rajeshtaneja/moodle 2015-10-19 16:59:05 +02:00
Dan Poltawski a7dacbc77d Merge branch 'm30_MDL-51554_Apache_PHP-FPM_Broken_File_Serving' of https://github.com/scara/moodle 2015-10-19 15:19:41 +01:00
David Monllao 7d45554019 Merge branch 'MDL-50724' of git://github.com/andrewhancox/moodle 2015-10-19 17:21:58 +08:00
David Monllao d80d38a936 Merge branch 'MDL-50483-master' of git://github.com/lameze/moodle 2015-10-19 17:06:03 +08:00
Eloy Lafuente (stronk7) 6d04e5511e MDL-48117 behat: Use form field to check checkbox
On Mac-Chrome click checkbox is not generating
proper events and hence failing. Use behat_form_checkbox
to ensure checkbox is checked
2015-10-19 17:00:24 +08:00
Ryan Wyllie 563fe0a569 MDL-51792 forms: stop deletion of select options
Stopped the keyboard navigation from completely deleting
list options when being deselected using keyboard navigation.
They are now returned to the list of available options to be
reselected.

Also remove the cross from the selected element when it is
a single select box.
2015-10-19 09:39:06 +01:00
David Monllao e54193ed3e Merge branch 'MDL-51771' of git://github.com/timhunt/moodle 2015-10-19 16:27:41 +08:00
Tim Hunt 9872f0a8b8 MDL-50217 questions: sensible default order for add new qtype
This default will only affect new installs.
2015-10-19 08:43:13 +01:00
David Monllao 96a6b6b20b Merge branch 'MDL-51712-master' of git://github.com/xow/moodle 2015-10-19 15:42:55 +08:00
Andrew Nicols 1b69ba3dd7 Merge branch 'MDL-51673-master' of git://github.com/junpataleta/moodle 2015-10-19 13:38:53 +08:00
David Monllao 1ed96351aa Merge branch 'MDL-51759-master-2' of git://github.com/andrewnicols/moodle 2015-10-19 13:30:17 +08:00
Andrew Nicols c95ba7faa8 Merge branch 'MDL-50993-master' of git://github.com/ryanwyllie/moodle 2015-10-19 12:43:40 +08:00
Adam Olley 1e36665719 MDL-50993 forum: Display timed posts/discussions in a logical order
Users that don't have permission to view timed posts outside of the release
time frame will have discussions that have entered the visible frame appear
in an odd order from their point of view on the discussion list.

Example:
Discussion 1, modified 2015-01-01, hidden till 2015-01-03
Discussion 2, modified 2015-01-02, not hidden

The standard 'modified descending' order means that D2 is listed at the top
even after D1 becomes visible. When scanning the list of discussions for new
posts, the user could be tricked into thinking they'd already read it.

This fix instead takes into account the release time of the discussion when
timed forum posts are enabled.

I opted to use CASE statements to handle this instead of GREATEST as the
latter is not supported by MSSQL.
2015-10-19 04:04:58 +00:00
Simey Lameze e2ec4f3a12 MDL-50483 gradereport_user: fix overlapping on the error message 2015-10-19 08:58:34 +08:00
Jinu Abraham f712aa2877 MDL-50483 gradereport_user: fix the fatal error of no enrolled users 2015-10-19 08:58:34 +08:00
Andrew Nicols 84d5eef4ad Merge branch 'MDL-50412-master' of git://github.com/danpoltawski/moodle 2015-10-19 07:56:51 +08:00
Tim Hunt e5acdcb942 MDL-51771 question engine: fix typo in SQL
Thanks to Pete at learningpool.com for finding thsi bug.
2015-10-18 16:03:29 +01:00
Jun Pataleta e8c5a98bd4 MDL-51673 messages: Added codes for the unit tests 2015-10-16 16:05:30 -05:00
Matteo Scaramuccia 3b1a3abcf9 MDL-51554 Files: Fix broken file serving under Apache + PHP-FPM 2015-10-16 21:55:20 +02:00
Ben Kelada 42c0b0473c MDL-51673 messages: remove strict type check of int vs string 2015-10-16 12:33:18 -05:00
AMOS bot fc8f8bb6f4 Automatically generated installer lang files 2015-10-17 00:04:00 +08:00
Dan Poltawski e926ee8cf1 MDL-49329 fixtures: remove trailing whitespace 2015-10-16 15:22:37 +01:00
Dan Poltawski 293197afb3 Merge branch 'MDL-49329-master-multiplug' of git://github.com/mudrd8mz/moodle 2015-10-16 14:53:26 +01:00
Eloy Lafuente (stronk7) 1b7bf43562 on-demand release 3.0dev+ 2015-10-16 12:51:49 +02:00
John Okely 8290c31cbe MDL-51712 myprofile: Fix capability checks 2015-10-16 14:38:07 +08:00
Andrew Nicols 5a3fdd3337 MDL-50647 profile: Styling fix 2015-10-16 12:01:31 +08:00
Andrew Nicols c2c369bf02 Merge branch 'MDL-49984-master' of git://github.com/barbararamiro/moodle 2015-10-16 11:48:04 +08:00
Andrew Nicols aba3f4f3ba MDL-50647 groups: Documentation fix 2015-10-16 11:28:06 +08:00
Andrew Nicols 8b1eea3bae Merge branch 'wip-mdl-50647' of https://github.com/rajeshtaneja/moodle 2015-10-16 11:16:36 +08:00
Andrew Nicols d8bf49f81e MDL-51629 mod_survey: Coding style violation fix 2015-10-16 11:10:38 +08:00
rajesh Taneja 260f133178 MDL-50647 behat: Expanded behat to not use example
Reason for not using scenario example is:
1. Lot of options, hence hard to read and match
2. Example will run whole scenario (created db for each row),
   Which is not needed.
2015-10-16 11:01:39 +08:00
Andrew Nicols 5762c92fcf Merge branch 'MDL-51629-master' of git://github.com/jleyva/moodle 2015-10-16 10:56:19 +08:00
Andrew Nicols 62029ba7f4 Merge branch 'MDL-51565-master' of git://github.com/jleyva/moodle 2015-10-16 09:35:23 +08:00
Andrew Nicols 690e23e69d Merge branch 'MDL-51651-master' of git://github.com/danpoltawski/moodle 2015-10-16 09:21:45 +08:00
Davo Smith 294c4bb0db MDL-50647 group: add 'not in group' section to groups overview
Also adds 'No group' and 'No grouping' filters to the top of the page
2015-10-16 08:53:44 +08:00
Andrew Nicols 62bf94655e Merge branch 'MDL-50182' of git://github.com/stronk7/moodle 2015-10-16 08:07:04 +08:00
Andrew Nicols 7108d08dd1 MDL-51759 theme: Ensure that non-svg images are cached and returned 2015-10-16 07:53:17 +08:00
Juan Leyva 55dca60f45 MDL-51629 mod_survey: New WS mod_survey_submit_answers 2015-10-15 16:17:23 +02:00
Juan Leyva f772b5159c MDL-51629 mod_survey: New WS mod_survey_get_questions 2015-10-15 16:17:22 +02:00
Juan Leyva 75516809d2 MDL-51629 mod_survey: New Web Service mod_survey_view_survey 2015-10-15 16:05:05 +02:00
Juan Leyva a2926eb3e6 MDL-51629 mod_survey: New WS mod_survey_get_surveys_by_courses 2015-10-15 16:05:05 +02:00
Juan Leyva 66a582d0b3 MDL-51703 mod_survey: Trigger response_submitted event in correct place 2015-10-15 13:59:15 +01:00
Dan Poltawski df8afc6305 Merge branch 'MDL-51500-master' of git://github.com/merrill-oakland/moodle 2015-10-15 13:52:46 +01:00
Dan Poltawski 52fa3d09d7 Merge branch 'MDL-51563-master' of git://github.com/jleyva/moodle 2015-10-15 13:50:10 +01:00
Dan Poltawski 6bafde62f5 Merge branch 'MDL-51652-master' of https://github.com/sammarshallou/moodle 2015-10-15 13:45:10 +01:00
Dan Poltawski 4f5d5628d1 Merge branch 'MDL-51679-groupmode-ajax' of https://github.com/Dagefoerde/moodle 2015-10-15 11:41:26 +01:00
Dan Poltawski 6660fbb3d3 Merge branch 'MDL-51781_master' of git://github.com/markn86/moodle 2015-10-15 11:08:26 +01:00
Dan Poltawski f655414669 MDL-51651 lang: add consitency for application of firstdayofweek
1) Set the site-wide default based on language pack
2) Use the site/user preference for js popups, like we do in /calendar/
2015-10-15 10:15:05 +01:00
Dan Poltawski 316f8231f8 MDL-51651 lang: the first day of the week is Monday 2015-10-15 10:15:05 +01:00
Mark Nelson f74fe5ba52 MDL-51781 tool_log: marked log values as NOT_MAPPED if mapping not found 2015-10-15 01:25:43 -07:00
David Monllao a97cde7a6e Merge branch 'wip-MDL-51604-master' of git://github.com/marinaglancy/moodle 2015-10-15 16:21:07 +08:00
Andrew Nicols 055c5bc02a Merge branch 'MDL-51790-master' of git://github.com/damyon/moodle 2015-10-15 16:04:55 +08:00
Dan Poltawski 05ed945e61 Merge branch 'wip-mdl-50940' of https://github.com/rajeshtaneja/moodle 2015-10-15 08:58:23 +01:00
Andrew Nicols 56bd244634 Merge branch 'MDL-51756-master' of git://github.com/damyon/moodle 2015-10-15 15:22:37 +08:00
Andrew Nicols 8413376088 MDL-51756 tests: Refactor test to use data-provider
The benefit is that this becomes one test per external function instead of one
test testing them all - so more information is shown on failure and we get lots
more dots (we love dots!).
2015-10-15 15:17:02 +08:00
Damyon Wiese 390b833ada MDL-51790 block_community: xmlrpc expects correct types
This is defined as an int on the hub site, so it must be sent as an int.
2015-10-15 15:08:51 +08:00
Andrew Nicols a308dc15c9 Merge branch 'MDL-51594-master' of git://github.com/jleyva/moodle 2015-10-15 14:19:10 +08:00
Damyon Wiese 1dc4dc989d MDL-51756 externallib: Show debugging when optional params are wrong
Optional params are not allowed as the top level value for external_function_parameters.
This is because stricter protocols (xmlrpc and soap) cannot handle optional parameters, only
optional properties in a structure.
2015-10-15 14:19:07 +08:00
Barbara Ramiro 1da2e3a623 MDL-49984 Profile: Decluttering, grouping and adding white space to easily find info 2015-10-15 12:36:43 +08:00
Marina Glancy a27c42ee9a MDL-51260 core_tag: Use new tag autocomplete for related tags 2015-10-15 12:03:52 +08:00
Damyon Wiese bb6ca6f360 MDL-51260 tags: Update the tags form element to use the autocomplete field
AMOS BEGIN
    REM [interestslist_help,moodle] Commas are no longer required
    REM [entertags,tag] Commas are no longer required
    REM [othertags,tag] Commas are no longer required
AMOS END
2015-10-15 12:03:35 +08:00
David Monllao 25de6f3ec0 Merge branch 'MDL-49545-master' of git://github.com/ryanwyllie/moodle 2015-10-15 11:54:53 +08:00
Ryan Wyllie cfe12ff033 MDL-49545 backup: Restore does not respect some capabilities
Thanks to Daniel Neis for the original patch that formed the
basis of these changes.
2015-10-15 02:45:27 +00:00
Andrew Nicols 176cf1ca91 Merge branch 'MDL-51610-master' of git://github.com/merrill-oakland/moodle 2015-10-15 10:22:18 +08:00
Mark Nelson fcb30f64f9 MDL-51782 mod_forum: altered unit tests for the post_deleted event
This was done to ensure we are actually testing the API, and not
just creating and triggering the event manually.
2015-10-14 18:54:29 -07:00
Mark Nelson 9f468b1b31 MDL-51782 mod_forum: moved post_deleted event into function 2015-10-14 18:21:28 -07:00
Damyon Wiese 60a1ea56d9 MDL-51247 forms: All new aria-pimped autocomplete mform element.
Supports static list of options - or options fetched via ajax.
Has options for single,multi and tags support.
2015-10-14 16:22:44 +01:00
Dan Poltawski cd83fae089 Merge branch 'MDL-51399' of https://github.com/andrewhancox/moodle 2015-10-14 15:02:50 +01:00
Dan Poltawski 4f8641be36 Merge branch 'MDL-38214_wipd' of git://github.com/ppichet/moodle 2015-10-14 14:15:14 +01:00
Dan Poltawski cd644dab5b Merge branch 'MDL-51467-master' of https://github.com/sammarshallou/moodle 2015-10-14 13:40:19 +01:00
Jan C. Dageförde ee20bdcb8a MDL-51679 course: Update groupmode CSS class
Changing groupmode of an activity via AJAX did not change the button's CSS class accordingly.
2015-10-14 14:33:20 +02:00
Juan Leyva bb3500c6d4 MDL-51594 webservice: Fix typos in choice and SCORM documentation 2015-10-14 14:29:12 +02:00
Dan Poltawski b117fac04b weekly release 3.0dev 2015-10-14 10:49:01 +01:00
Dan Poltawski 8780d80e80 NOBUG: Fixed file access permissions 2015-10-14 10:49:01 +01:00
Dan Poltawski cfa945308d NOBUG: Fixed SVG browser compatibility 2015-10-14 10:49:00 +01:00
Dan Poltawski 4d9edf1b15 MDL-51536 webservices: fix invalid param definitions 2015-10-13 19:01:42 +01:00
Dan Poltawski 6333b018ad Merge branch 'MDL-40710-master' of git://github.com/barbararamiro/moodle 2015-10-13 15:44:31 +01:00
Dan Poltawski 3975c5bc2e Merge branch 'MDL-51435' of https://github.com/NeillM/moodle 2015-10-13 11:39:52 +01:00
Dan Poltawski e3b03886d0 MDL-47494 copyright: missed fixes from last commit
With thanks to Tim!
2015-10-13 09:55:28 +01:00
Dan Poltawski bf47ddbdf3 MDL-47494 copyright: fix incorrect statement
(From copy/paste error, blame Tim :P)
2015-10-13 09:39:28 +01:00
Dan Poltawski 08d93936f4 Merge branch 'MDL-51576-master-2' of git://github.com/ryanwyllie/moodle 2015-10-13 09:23:31 +01:00
Damyon Wiese ab848fea81 MDL-48861 assign: Make the requires grading filter consistent
Consistently include submissions with a null grade (see MDL-47694).
2015-10-13 14:52:50 +08:00
Damyon Wiese fb6bae3eae MDL-48861 assign: Fix unit tests and behat tests
The tests were not working with the change to the needs grading filter.
2015-10-13 12:59:13 +08:00
David Monllao ee58df52da Merge branch 'MDL-46455-master-20151012' of git://github.com/damyon/moodle 2015-10-13 11:42:40 +08:00
Andrew Nicols 5e2547612f Merge branch 'MDL-51302-master' of git://github.com/danpoltawski/moodle 2015-10-13 11:33:23 +08:00
Andrew Nicols a6c0702884 Merge branch 'wip-MDL-49515-master' of git://github.com/abgreeve/moodle 2015-10-13 11:05:05 +08:00
Jun Pataleta cef93f97ae MDL-51128 course: Add startdate for generated course
Added course start date for the course generated by the course
generator in order to prevent incorrect date calculations
(i.e. in assignment due dates) when the generated course is reset.
2015-10-12 21:48:27 -05:00
Andrew Nicols da113979bd Merge branch 'MDL-51517_master' of git://github.com/lazydaisy/moodle 2015-10-13 10:33:32 +08:00
Andrew Nicols 3648d7963a Merge branch 'MDL-51427-master' of git://github.com/marinaglancy/moodle 2015-10-13 10:13:43 +08:00
David Monllao 09d62af419 Merge branch 'MDL-51568-master' of git://github.com/jleyva/moodle 2015-10-13 10:11:55 +08:00
Ryan Wyllie 4b596728e7 MDL-51576 navigation: stop course nav duplication
The course navigation was getting duplicate nodes because
it was loading the nav tree plugin functions twice. Once
specifically for the reports and then a second time more generally.

The code will now explicitly skip loading the report plugin
functions on the second load.
2015-10-13 01:46:25 +00:00
Andrew Nicols ac1f81a187 Merge branch 'MDL-40442-master' of git://github.com/danpoltawski/moodle 2015-10-13 09:45:41 +08:00
Adrian Greeve 59d20e706a MDL-49515 libraries: Update to editpdf/classes/pdf.php
This updates fpdi_bridge to extend our Moodle pdf class
as was done before.
2015-10-13 09:28:16 +08:00
Andrew Nicols 8775bc4d40 Merge branch 'MDL-50079-master' of git://github.com/danpoltawski/moodle 2015-10-13 09:24:31 +08:00
Andrew Nicols 29caaeff9e Merge branch 'MDL-50788-master' of git://github.com/danpoltawski/moodle 2015-10-13 08:08:51 +08:00
Eloy Lafuente (stronk7) ca09f076f8 MDL-50182 core: add 3.0 environmental requirements
Only change from 2.9 is the modification of the slasharguments
admin setting string to recommend always to keep the setting enabled
and fix the problem in the server, warning about the drawbacks
of disabling it.

Also, there is a little phpdoc note added to one custom check
to have clearly specified when we can get rid of it.
2015-10-13 00:33:41 +02:00
sam marshall fc830670a2 MDL-51467 Availability: Course reset should change restrict dates 2015-10-12 17:33:51 +01:00
Dan Poltawski 576a0cc3ab Merge branch 'MDL-51375' of git://github.com/timhunt/moodle 2015-10-12 17:01:41 +01:00
Eric Merrill d76acdbc17 MDL-51610 course: Change section menu to "Edit" and order buttons 2015-10-12 11:53:33 -04:00
Dan Poltawski 37029775f9 Merge branch 'MDL-48861-master' of git://github.com/damyon/moodle 2015-10-12 16:53:18 +01:00
Juan Leyva d1b30757bd MDL-51563 core_user: Fix invalid passed parameteres in get_user 2015-10-12 13:53:57 +02:00
Dan Poltawski 45f2e27c4d Merge branch 'MDL-36606-master' of git://github.com/merrill-oakland/moodle 2015-10-12 12:41:03 +01:00
Juan Leyva 5b587c7570 MDL-51565 webservice: Fix return types definitions
This commit also format the activity name via external_format_string in
some cases
2015-10-12 13:24:49 +02:00
Andrew Hancox ce449f6307 MDL-50724 mod_assign: show issues with groups in grading table
Where a user is in multiple or no groups show and group membership
is required show an appropriate error in the gradding table rather
than 'Default Group'
2015-10-12 12:04:28 +01:00
Dan Poltawski 668980be3e Merge branch 'MDL-51536-master' of git://github.com/damyon/moodle 2015-10-12 11:47:45 +01:00
Dan Poltawski 0015ec87d6 Merge branch 'MDL-51586-master' of git://github.com/xow/moodle 2015-10-12 10:47:13 +01:00
sam marshall 07bb79b451 MDL-51652 Availability: OR conditions fail when filtering user lists
When filtering a user list, if there is an OR tree where one of the
conditions does not restrict user lists such as a date condition,
then the overall result should include all users (not be filtered).
This was not working correctly.
2015-10-12 10:23:54 +01:00
David Monllao fd47ef44bd Merge branch 'MDL-51637-master' of git://github.com/jleyva/moodle 2015-10-12 17:08:27 +08:00
David Monllao fb7b835cdd Merge branch 'MDL-51083-master' of git://github.com/xow/moodle 2015-10-12 16:57:06 +08:00
Dan Poltawski 30b86ccb68 Merge branch 'MDL-51605-master' of git://github.com/damyon/moodle 2015-10-12 09:46:00 +01:00
Damyon Wiese ac82a9a8b4 MDL-46455 Events: Add db mapping info even if not part of backup
We can return db mapping info even for objects that are not included
in backup/restore and it may be useful in future (no use in core yet).
2015-10-12 16:41:02 +08:00
Juan Leyva 4f3a2d2103 MDL-51637 forum: Make forum_get_discussions_paginated return group post 2015-10-12 10:08:17 +02:00
Juan Leyva e8ad99ab91 MDL-51568 self_enrol: New Web Service enrol_self_enrol_user 2015-10-12 09:13:51 +02:00
Andrew Nicols fe26df5ec9 MDL-49682 mod_forum: Correct arguments to format_message_text
This feeds straight into context_module::instance() and I was inadvertantly
using the forum->id, rather than the cm->id.
2015-10-12 14:54:34 +08:00
Andrew Nicols 34ab6b314f Merge branch 'MDL-51528-int-fix-1' of https://github.com/ryanwyllie/moodle 2015-10-12 14:15:14 +08:00
David Monllao 1c94483300 MDL-49682 mod_forum: Bump version for caches 2015-10-12 14:07:55 +08:00
David Monllao 66116cf5c4 Merge branch 'MDL-49682-master' of git://github.com/andrewnicols/moodle 2015-10-12 14:05:02 +08:00
Ryan Wyllie 106bbb8592 MDL-51528 themes: bootstrap v2.3.2 in thirdpartylibs
Increase the bootstrap version from v2.3.0 to v2.3.2
in the thirdpartylibs.xml file.
2015-10-12 05:45:13 +00:00
Andrew Nicols 99690e0fa8 MDL-46497 atto: Whitespace/coding style fix 2015-10-12 13:37:29 +08:00
Andrew Nicols 56b62992fa Merge branch 'MDL-46497_master' of https://github.com/nadavkav/moodle 2015-10-12 13:35:24 +08:00
Andrew Nicols 317938393c MDL-49682 mod_forum: Build forum email templates 2015-10-12 13:26:29 +08:00
Frederic Massart 583b02e405 MDL-51664 external: Update usage of external_util::validate_courses 2015-10-12 12:01:15 +08:00
Frederic Massart 4b11af9607 MDL-51664 external: Validate courses does not refetch prefetched courses 2015-10-12 12:01:15 +08:00
Andrew Nicols 8a64346270 Merge branch 'MDL-51528-master' of git://github.com/ryanwyllie/moodle 2015-10-12 10:42:15 +08:00
David Monllao b60abb8486 Merge branch 'MDL-51524-master' of git://github.com/andrewnicols/moodle 2015-10-12 10:36:05 +08:00
Andrew Nicols c0ea3a71fc Merge branch 'MDL-51451-master' of https://github.com/sammarshallou/moodle 2015-10-12 10:10:51 +08:00
Mark Nelson 607021c14b MDL-46455 events: added more mapping
Also fixed a few bugs.
2015-10-11 18:52:36 -07:00
Andrew Nicols 44250050dc MDL-51524 tests: Fix broken tests
The upgraded version of HTML2Text highlighted some bugs in our unit tests.

In the IOS test, the HTML content includes a couple of patches of &nbsp;
In the previous version of HTML2Text, these were being converted to
breaking spaces. In one of these cases, it was then removed due to a trim.
The expected texts have been converted to use the correct non-breaking spaces.
In the case of the trimmed one, it is no longer trimmed as non-breaking
spaces are not trimmed.
This gives a truer reflection of the actual text.

In the case of the Outlook test, this trailing whitespace is not present in
the source. It was likely caused by a bug in the previous version of
HTML2Text.

In the case of the weblib change, the test was just wrong. Both of the
actual characters are encodings for an HTML bullet (decimal and hex) and
should both be converted to the relevant UTF8 representation of this
bullet.
2015-10-12 09:35:59 +08:00
Andrew Nicols ec2d33dfcd MDL-51524 libraries: Update to latest version of html2text
We were previously using an ancient version of html2text from RoundCube
with many customisations.

This patchset moves to the version included in the latest version of
HTML2Text, and wraps the library in a moodle-provided class. This
moves all previous hacks away from that class.

Unfortunately, two hacks still remain - two of the functions in the
RoundCube class are private, and must be modified to protected in order to
use the class effectively.
2015-10-12 09:35:58 +08:00
Damyon Wiese 3d0fff3a83 MDL-46455 restore: Add debug messages when log records cannot be mapped 2015-10-11 18:14:59 -07:00
Damyon Wiese e17b739995 MDL-46455 logstores: Do not try and map empty fields on restore. 2015-10-11 18:14:58 -07:00
Damyon Wiese 63b5a5faad MDL-46455 event: Make the debugging messages print the event class.
Because they are in the base class, it was impossible to find which event
triggered the debugging.
2015-10-11 18:14:58 -07:00
Damyon Wiese 0817451470 MDL-46455 events: Add mapping info to events
This commit covers all events outside of /mod/. It adds mapping info for restoring
events, or the default implementation which returns false if mapping is not required.
2015-10-11 18:14:58 -07:00
Mark Nelson 0bfafc5ba0 MDL-46455 mod_*: added restore mapping to events 2015-10-11 18:14:57 -07:00
Mark Nelson ef15eae433 MDL-46455 mod_*: added additional mapping to be used by events 2015-10-11 18:14:56 -07:00
Mark Nelson 901a7ff7f2 MDL-46455 restore: added restore support for 'other' in events 2015-10-11 18:14:51 -07:00
lazydaisy 8d9410bd4f MDL-51517 theme_bootstrapbase: Clean up buttons.less 2015-10-10 11:02:38 +01:00
David Mudrák 30c264211e MDL-49329 admin: Fix reported coding style warnings 2015-10-10 09:15:27 +02:00
David Mudrák dbdd02c1fe MDL-49329 admin: Start using API 1.3 for fetching available updates
This is not really necessary as there is no actual change in the
behaviour of the updates API between 1.2 and 1.3. However, as we plan to
use the new \core\update\api client for this in the future, it makes
only sense to have these two synced already now. In other words, Moodle
3.0 site will use the same version 1.3 for all download.moodle.org/api
end points.
2015-10-10 09:15:27 +02:00
David Mudrák aa1d100c2d MDL-49329 admin: Fix checking for available updates
This was a regression of my recent improvement of rendering the "Check
for updates" button. There is now unified parameter ?fetchupdates=1 that
can be used on either admin/index.php or admin/plugins.php, so that we
can use a common UI widget for both locations (without the need to pass
the URL explicitly).
2015-10-10 09:15:27 +02:00
David Mudrák b0fc789878 MDL-49329 admin: Clean up disabling of plugins code management features
The admin setting updateautodeploy no longer exists. The two existing
config.php flags $CFG->disableupdateautodeploy and
$CFG->disableonclickaddoninstall merged into a single one.
2015-10-10 09:11:19 +02:00
Mark Nelson 6920d3904c MDL-46455 restore: added restore support for the 'objectid' in events 2015-10-09 16:23:09 -07:00
Damyon Wiese 51311962c4 MDL-46455 backup: Keep external database logstore code self-contained.
General backup/restore does not need to handle external data sources natively - so
any changes needed to achieve this should be contained to the plugin that needs it.
2015-10-09 16:23:09 -07:00
Mark Nelson bcfa51ca41 MDL-46455 logstore_database: added backup/restore support 2015-10-09 16:23:09 -07:00
Eloy Lafuente (stronk7) ea6c56437a MDL-46455 restore: Implement restore of standard logstore
Using standard subplugin support, this commits implements
the restore of logstore subplugins in general and the
standard logstore is particular. Notes:

- TODO: Decide about these 2 pending issues:

1) Some logs are already created (events fired) by the restore process itself. Every time
   an API is used and it fires events... corresponding (and actual!)
   logs are created. We need to prevent restore to duplicate them (or,
   alternatively, stop firing events when restore is happening).

2) There are 2 pieces of information in the logs that, right now, can
   not be restored, because the process does not know enough to be able
   to remap that information to its new counterparts. We are talking
   about objectid and other columns. So we need to specify, in some way
   understandable by restore, to which existing mappings they correspond
   to.
2015-10-09 16:23:09 -07:00
Eloy Lafuente (stronk7) 73c2a35420 MDL-46455 backup: Implement backup of standard logstore
Using standard subplugin support, this commit implements
the backup of logstore subplugins in general and the
standard logstore in particular. Notes:

- Uses a custom final element (base64_encode_final_element) to
  support the storage of serialized 'other' information in logs.
- Organization: Instead of directly extending backup_subplugin,
  every logstore extends backup_tool_log_logstore_subplugin just
  in case any shared code is needed in the future.
- Implements both course and activity logs, sharing the structure
  completely (both are based in contextid to pick the target
  information, from database or whatever other logstores use).
2015-10-09 16:23:09 -07:00
Eloy Lafuente (stronk7) 6a45e6b169 MDL-46455 restore: Extend support for subplugins to any plugin.
In order to implement the backup and restore of log stores, that
are created as subplugins of the tool_log plugin , we need to
extend subplugins support from activities to virtually any plugin.

Basically that implies moving the add_subplugin_structure() method from
its current, restricted, activity level to general restore_structure_step.

This commit implements the change in restore, covered with tests verifying
old, bc behavior and also new, general one.
2015-10-09 16:23:09 -07:00
Eloy Lafuente (stronk7) ba66edd074 MDL-46455 backup: Extend support for subplugins to any plugin.
In order to implement the backup and restore of log stores, that
are created as subplugins of the tool_log plugin , we need to
extend subplugins support from activities to virtually any plugin.

Basically that implies moving the add_subplugin_structure() method from
its current, restricted, activity level to general backup_structure_step.

This commit implements the change in backup, covered with tests verifying
old, bc behavior and also new, general one.
2015-10-09 16:23:09 -07:00
Lior Gil 2209309e2c MDL-46497 Atto: Fix adding redundant p elements in rtl/ltr actions 2015-10-10 01:36:48 +03:00
David Mudrák d9a5b810bd MDL-49329 admin: Do not force admin to reconfirm the core upgrade 2015-10-09 23:37:33 +02:00
David Mudrák c20e9ae836 MDL-49329 admin: Add ability to cancel upgrade of the plugin
If there is an available archived zip with the version of the plugin
currently installed, we can use it to cancel/abort the upgrade of the
plugin. This is internally handled as the installation of the archived
zip and goes through all the validation and confirmation.

Additionally, some other parts were improved. Most notably, renderer no
longer decides itself if some installation can be cancelled but it
always asks the controller (plugin manager).

The button for installation was moved to the left so there should be
first buttons to add things, and then buttons to cancel things (which is
common in normal forms).
2015-10-09 23:37:32 +02:00
Dan Poltawski 9ff7c33ba5 MDL-50412 admin: prevent fatal errors on reports admin page 2015-10-09 14:46:35 +01:00
David Mudrák 80c3c6501d MDL-49329 admin: Clean up code manager methods
The method move_plugin_directory() was a relict from previous 2.9
implementation within tool_installadon_installer and was originally
supposed to be used to move whole plugin folders. The archiving feature
has been finally implemented via using zip files (so that we do not have
actual PHP code present in the dataroot) and we do not need this method.
2015-10-09 14:43:33 +02:00
David Mudrák a2e1e0d0f1 MDL-49329 admin: Archive plugin code before removing it from dirroot
This should allow the admin to revert the upgrade of existing plugins,
such when the dependency chain leads to a dead-end. Additionally, we
archive (as a last-chance copy) the to-be-installed plugins when
cancelling their installation. This is mainly for developers who could
otherwise loose their code. For the same reason, plugins are being
archived upon uninstallation, too.
2015-10-09 14:33:47 +02:00
Barbara Ramiro 0a5be447ce MDL-40710 Icon: More identifiable backpack icon 2015-10-09 18:34:10 +08:00
Dan Poltawski cc75779fb4 MDL-50079 atto_link: respect new window option when creating from repo
Previously users had to go back and edit their link to set the new
window option.
2015-10-09 11:23:32 +01:00
Dan Poltawski 0496ac6305 MDL-50788 classloader: Prevent cryptic errors on unreadable classes dir
Do not attempt to read an unreadable directory because previously the generated
errors were hard to fathom.

Thanks to James McQuillan for the basis of the patch.
2015-10-09 10:36:59 +01:00
Dan Poltawski b96da4eaef MDL-51302 scorm: do not use invalid course urls
Previous behaviour of setting an empty sectionid was incorrect and we
were doing work which course_get_url() does for us.
2015-10-09 09:04:35 +01:00
Neill Magill 5978773d81 MDL-51435 Web Services: E_WARNING in core_webservice_get_site_info
$plugin was not being set before the version file was included.
This caused an E_WARNING: Creating default object from empty value

This change creates the plugin object before the version file sets its parameters.
2015-10-09 09:00:07 +01:00
David Mudrák 4d7528f9bc MDL-49329 admin: Require confirmation before cancelling plugin install 2015-10-09 09:50:46 +02:00
David Mudrák 4fff948910 MDL-49329 admin: Convert install plugins tool to use new APIs
Most of the functionality provided by this tool (typically the
validation and actual deployment of the plugin package) has been moved
to the core level. So this is becoming just a thin wrapper and user
interface for installing new plugins via the administration UI.

Also fixes MDL-49600 as we no longer keep the unzipped contents of the
packages in the persistent temp directories.
2015-10-09 09:50:46 +02:00
David Mudrák 2d00be61f1 MDL-49329 admin: Make plugin manager able to install from local zips too
The plugin manager's method install_remote_plugins() has been changed to
install_plugins() and it is now able to install plugins from the
provided list of locally available ZIP files, too. This is used by the
Install plugins admin tool.
2015-10-09 09:50:46 +02:00
David Mudrák da54cf11a4 MDL-49329 admin: Call opcache_reset() after installing new plugin code
During the testing, I was experiencing weird behaviour - after a single
plugin updated was installed, I ended up on admin/index.php?cache=1. I
believe it was caused by the missing opcache_reset().
2015-10-09 09:50:45 +02:00
David Mudrák 8726c07cd0 MDL-49329 admin: Use the new plugins management on Plugins overview page
The plugins overview page now uses the new plugins management features,
most notably the ability to install all available updates at once.
2015-10-09 09:50:45 +02:00
David Mudrák 531381f914 MDL-49329 admin: Support plugins installation during upgrade
The plugins check screen (displayed during core upgrade and/or plugins
upgrade) now supports installation of remote plugins. This includes
installation of missing dependencies (both single and bulk mode) and
installation of available updates (both single and bulk mode).

All the HTTP query parameters supported by admin/index.php are now
explicitly enlisted. Previously, the \core\update\deployer used
its own additional parameters (and was source of some serious problems
in the past).

The implementation uses the plugin manager as the controller and
provides an unified interface for installing any remote plugin or
plugins (be it available update or missing dependency).

As a side effect, we now validate available updates which was not
happening before.
2015-10-09 09:50:45 +02:00
David Mudrák c948b813ae MDL-49329 admin: Add plugin manager method for installing remote packs
The new method core_plugin_manager::install_remote_plugins() will serve
as a backend for all the ways of installing ZIP packages from the moodle
plugins directory, such as installing new plugins (by clicking the
Install button in the plugins directory), installing available updates
(single and bulk mode) and installing missing dependencies (single and
bulk mode).

The method should be used both for validation pre-check screen and,
after the confirmation, for actual installation. Note that we
intentionally repeat the whole procedure after confirmation. Unzipping
plugins is cheap and fast and the ZIPs themselves are already available
in the \core\update\code_manager's cache.

We will need to add support for archiving existing code to prevent
accidental data-loss.

This basically provides what mdeploy.php was doing, but better. We now
have consistent way of installing all remote ZIP packages, always
validate them and we can perform bulk operations, too.
2015-10-09 09:50:44 +02:00
Damyon Wiese b3c10f9fb2 MDL-51605 Atto: Fix deprecation warnings from upgraded rangy 2015-10-09 15:42:10 +08:00
John Okely d5994d38c9 MDL-51586 enrol: Enrolment table displays fullname properly.
When the alternatefullnamedisplay was set to something that
didn't contain 'firstname' then nothing would be displayed
for the user's name.
2015-10-09 15:34:39 +08:00
Damyon Wiese 64f6ef1f3a MDL-48861 mod_assign: use >= for requires grading filter
If the grade and submission were modified at exactly the same time,
assume that this means the grade was automatically created for the submission
and is not a real grade from a teacher interaction.
2015-10-09 15:08:06 +08:00
Adrian Greeve 858d457d61 MDL-49515 libraries: Update FPDI to 1.5.4 2015-10-09 14:46:12 +08:00
Ryan Wyllie 49ee2d0d2a MDL-51528 themes: active tab cursor
Set the cursor to a pointer for an active tab with a link to
indicate that the tab is still clickable, even though it is
active. See also MDL-46470 and MDL-51207.
2015-10-09 06:34:43 +00:00
Ryan Wyllie a25baf3184 MDL-51528 themes: Moodle changes to Bootstrap
Applying the upstream Bootstrap changes required for Moodle. Please
see MDL-42195 and MDL-48328 for more defails.
2015-10-09 06:22:49 +00:00
Ryan Wyllie abe2e8ed9b MDL-51528 themes: update to bootstrap v2.3.2
Updated to clean version of Bootstrap v2.3.2 without the
Moodle patches to the upstream code.
2015-10-09 06:22:49 +00:00
Damyon Wiese dc40503680 MDL-51628 assign: invalid hardcoded capability check
Use existing function to do the check instead.
2015-10-09 14:09:33 +08:00
Mifsud Gaël f209d5e1be MDL-51083 admin: Prevent password autofill in authentication settings 2015-10-09 14:04:34 +08:00
Damyon Wiese c38a3bf3a2 MDL-51686 assign: Apply admin default for comment inline 2015-10-09 13:38:24 +08:00
David Mudrák 8acee4b53d MDL-49329 admin: Improve the plugin package validator
Previously, the validator was used for installation of the new plugins
only. We now validate every incoming plugin package. As a result, we
must no longer insists on the target location is empty. Instead, warning
is raised.
2015-10-08 23:32:05 +02:00
David Mudrák fd2d146218 MDL-49329 admin: Validate the contents of the cached plugin ZIP package 2015-10-08 23:32:05 +02:00
David Mudrák 4f18a4e60c MDL-49329 admin: Introduce new \core\update\remote_info class
This is just a thin wrapper for normal objects, allowing us to have
explicit type hinting / declarations in method signatures.
2015-10-08 23:32:05 +02:00
David Mudrák 44371554a9 MDL-49329 admin: Improve plugins overview page rendering
Provides a bit more compact layout. Finally cleans up the relevant LESS
files and makes available updates info boxes consistent across all
screens where they are displayed.
2015-10-08 23:32:04 +02:00
David Mudrák cc5bc55ead MDL-49329 admin: Add core_plugin_manager::available_updates() method
The new method is going to be used to support the "Update all plugins"
feature.
2015-10-08 23:32:04 +02:00
David Mudrák 3bca7dbfa6 MDL-49329 admin: Get rid of mdeploy and \core\update\deployer class
The mdeploy.php standalone script (used to download and unzip plugins
into the dirroot) and the \core\update\deployer class (as a
communication bridge between the core and the mdeploy.php) was
originally designed and implemented with the assumption that it would be
eventually used for updating the Moodle core itself, too. Therefore it
was written as standalone utility without dependency on the Moodle core
libraries.

However, it never happened and there is no real demand for that. So now
there is no need to have and maintain a completely parallel solution for
common things like fetching and unzipping plugin ZIPs.

Additional reasoning for mdeploy.php was that the core is not very
reliable during the core upgrade and we could run into various troubles.
This does not seem to be that bad. We rely on a lot of core
functionality (such as output rendering, DB access etc) and plugins
deployment seems to work well (and better) with common core libraries.

So long mdeploy, and thanks for all the hard work you did for us.
2015-10-08 23:32:04 +02:00
David Mudrák 228cbda3ea MDL-49329 admin: Fix plugins check page if no plugins require attention
A legacy undefined variable was used here and there was no way to get to
the full list mode view.
2015-10-08 23:32:04 +02:00
David Mudrák d22835216f MDL-49329 admin: Clean up core_plugin unit tests
As a first step for removing the \core\update\deployer and mdeploy.php,
this patch fixes existing tests.
2015-10-08 23:32:04 +02:00
David Mudrák 36977a6d08 MDL-49329 admin: If unable to install a plugin, display the reason 2015-10-08 23:32:04 +02:00
David Mudrák f65d337089 MDL-49329 admin: Highlight missing/downgrading plugins 2015-10-08 23:32:04 +02:00
David Mudrák 4441d5e5fb MDL-49329 admin: Fix report on required core version in missing plugins
If the plugin was missing from disk, the required core version was
displayed as "Moodle {$a}" because the core dependency resolver always
returns an object.
2015-10-08 23:32:04 +02:00
David Mudrák 35f2b67442 MDL-49329 admin: Fix the API for getting remote plugin info
The previous version of the plugin manager's method
get_remote_plugin_info() was suitable for installing missing
dependencies only. To make use of for installing new plugins and/or
available updates, it must be clear that we are requesting information
for the particular plugin version only, not "given or higher" version.
2015-10-08 23:32:04 +02:00
David Mudrák d6e38c2a9d MDL-49329 admin: Validate pluginfo service response
The new client's method makes sure that the returned data structure has
expected format so that the plugin manager can safely rely on it.
2015-10-08 23:32:04 +02:00
David Mudrák 0ec7d10128 MDL-49329 admin: Improve Plugins check page
Better inform about the number of plugins requiring attention vs total
plugins. Clean up the renderer.
2015-10-08 23:32:03 +02:00
David Mudrák 9137a89a1a MDL-49329 admin: Improve the UI for installing dependencies 2015-10-08 23:32:03 +02:00
David Mudrák 2f29cf6e63 MDL-49329 admin: Add ability to cancel installation of a new plugin
The plugins check screen now provides buttons to cancel installation of
a plugin. Available only for new installations (not upgrades) and for
additional plugins (not standard), given that the web server process has
write access to the plugin folder.

This has also been reported as MDL-48535.

As a part of the patch, there is improved processing of page URLs during
the upgrade. All this dancing around $reload URL is not needed once the
$PAGE->url is properly set to guide the admin on the correct page during
the upgrade process.
2015-10-08 23:32:03 +02:00
David Mudrák f2d8ed45e3 MDL-49329 admin: Introduce new \core\update\validator class
This is not really new class. Originally, the validator was implemented
in the scope of the tool_installaddon plugin. But we need its features
in other parts at the core level (e.g. during the upgrade to validate
available missing dependencies or available updates). Looking back, it
was a mistake to have it implemented at the plugin level rather than the
core level.

So this patch moves the tool_installaddon_validator class to
\core\update\validator class, together with associated unit tests,
fixture files and strings. There were changes made in the
tool_installaddon to make use of this new class instead of the old one.

This is a great step towards the bright future, hopefully there won't be
many regressions.

AMOS BEGIN
 MOV [validationmsg_componentmatch,tool_installaddon],[validationmsg_componentmatch,core_plugin]
 MOV [validationmsg_componentmismatchname,tool_installaddon],[validationmsg_componentmismatchname,core_plugin]
 MOV [validationmsg_componentmismatchname_help,tool_installaddon],[validationmsg_componentmismatchname_help,core_plugin]
 MOV [validationmsg_componentmismatchname_info,tool_installaddon],[validationmsg_componentmismatchname_info,core_plugin]
 MOV [validationmsg_componentmismatchtype,tool_installaddon],[validationmsg_componentmismatchtype,core_plugin]
 MOV [validationmsg_componentmismatchtype_info,tool_installaddon],[validationmsg_componentmismatchtype_info,core_plugin]
 MOV [validationmsg_filenotexists,tool_installaddon],[validationmsg_filenotexists,core_plugin]
 MOV [validationmsg_filesnumber,tool_installaddon],[validationmsg_filesnumber,core_plugin]
 MOV [validationmsg_filestatus,tool_installaddon],[validationmsg_filestatus,core_plugin]
 MOV [validationmsg_filestatus_info,tool_installaddon],[validationmsg_filestatus_info,core_plugin]
 MOV [validationmsg_foundlangfile,tool_installaddon],[validationmsg_foundlangfile,core_plugin]
 MOV [validationmsg_maturity,tool_installaddon],[validationmsg_maturity,core_plugin]
 MOV [validationmsg_maturity_help,tool_installaddon],[validationmsg_maturity_help,core_plugin]
 MOV [validationmsg_missingcomponent,tool_installaddon],[validationmsg_missingcomponent,core_plugin]
 MOV [validationmsg_missingcomponent_help,tool_installaddon],[validationmsg_missingcomponent_help,core_plugin]
 MOV [validationmsg_missingcomponent_link,tool_installaddon],[validationmsg_missingcomponent_link,core_plugin]
 MOV [validationmsg_missingexpectedlangenfile,tool_installaddon],[validationmsg_missingexpectedlangenfile,core_plugin]
 MOV [validationmsg_missingexpectedlangenfile_info,tool_installaddon],[validationmsg_missingexpectedlangenfile_info,core_plugin]
 MOV [validationmsg_missinglangenfile,tool_installaddon],[validationmsg_missinglangenfile,core_plugin]
 MOV [validationmsg_missinglangenfolder,tool_installaddon],[validationmsg_missinglangenfolder,core_plugin]
 MOV [validationmsg_missingversion,tool_installaddon],[validationmsg_missingversion,core_plugin]
 MOV [validationmsg_missingversionphp,tool_installaddon],[validationmsg_missingversionphp,core_plugin]
 MOV [validationmsg_multiplelangenfiles,tool_installaddon],[validationmsg_multiplelangenfiles,core_plugin]
 MOV [validationmsg_onedir,tool_installaddon],[validationmsg_onedir,core_plugin]
 MOV [validationmsg_onedir_help,tool_installaddon],[validationmsg_onedir_help,core_plugin]
 MOV [validationmsg_pathwritable,tool_installaddon],[validationmsg_pathwritable,core_plugin]
 MOV [validationmsg_pluginversion,tool_installaddon],[validationmsg_pluginversion,core_plugin]
 MOV [validationmsg_release,tool_installaddon],[validationmsg_release,core_plugin]
 MOV [validationmsg_requiresmoodle,tool_installaddon],[validationmsg_requiresmoodle,core_plugin]
 MOV [validationmsg_rootdir,tool_installaddon],[validationmsg_rootdir,core_plugin]
 MOV [validationmsg_rootdir_help,tool_installaddon],[validationmsg_rootdir_help,core_plugin]
 MOV [validationmsg_rootdirinvalid,tool_installaddon],[validationmsg_rootdirinvalid,core_plugin]
 MOV [validationmsg_rootdirinvalid_help,tool_installaddon],[validationmsg_rootdirinvalid_help,core_plugin]
 MOV [validationmsg_targetexists,tool_installaddon],[validationmsg_targetexists,core_plugin]
 MOV [validationmsg_targetexists_help,tool_installaddon],[validationmsg_targetexists_help,core_plugin]
 MOV [validationmsg_unknowntype,tool_installaddon],[validationmsg_unknowntype,core_plugin]
 MOV [validationmsg_versionphpsyntax,tool_installaddon],[validationmsg_versionphpsyntax,core_plugin]
 MOV [validationmsglevel_debug,tool_installaddon],[validationmsglevel_debug,core_plugin]
 MOV [validationmsglevel_error,tool_installaddon],[validationmsglevel_error,core_plugin]
 MOV [validationmsglevel_info,tool_installaddon],[validationmsglevel_info,core_plugin]
 MOV [validationmsglevel_warning,tool_installaddon],[validationmsglevel_warning,core_plugin]
AMOS END
2015-10-08 23:32:03 +02:00
David Mudrák 0e442ee776 MDL-49329 admin: Introduce new \core\update\core_manager tool
The plan is to have a single tool looking after all operations with
plugin ZIP packages (downloading, unzipping, moving to the dirroot and
back). For legacy reasons, we have that logic currently duplicated in
mdeploy and tool_installaddon. I would like to unify and simplify the
whole machinery to use the same code for available updates, manual
installation and plugin dependencies.
2015-10-08 23:32:03 +02:00
David Mudrák 5a92cd0b8d MDL-49329 admin: Display missing dependencies on plugins check screen
The patch improves the dependencies resolution in the plugin manager so
that the information about availability of the missing dependency is
included and can be displayed at the Plugins check screen during the
upgrade.
2015-10-08 23:32:03 +02:00
David Mudrák 48900324b3 MDL-49329 admin: Introduce new \core\update\api client class
The purpose of this class is to provide a general client for all APIs
available at https://download.moodle.org/api/ (e.g. available updates,
plugin info, plugins list etc). Currently, fetching data from this API
is done separately at several places. This leads to code duplication and
harder maintenance (I know it well).

Additionally, the existing client was implemented as
tool_installaddon_pluginfo_client in the admin/tool/installaddon/ scope.
I will soon need to use the same functionality in the
core_plugin_manager and it would hurt my karma if the core was depending
on a class provided by a admin tool plugin (even if it is standard one).

So, there is new \core\update\api client implementing the version 1.3 of
the pluginfo API. There is a TODO note left for remaining services.
2015-10-08 23:32:03 +02:00
David Mudrák 7eb87eff65 MDL-49329 admin: Move requirements resolving to the plugin manager
The patch moves the resolving logic from the renderer (where it should
not really be) to the plugin manager (controller). This is needed
because we will need the very same logic to be used at other places.
2015-10-08 23:32:02 +02:00
David Mudrák c44bbe35bf MDL-49329 admin: Improve loading of available updates info
The actual loading of available updates info objects is moved back to
the plugin manager class. As we can now mockup the manager in unit
tests, this allows us to bypass the real \core\update\checker and have
unit tests for \core\plugininfo\base::available_updates().
2015-10-08 23:32:02 +02:00
David Mudrák 2d488c8f01 MDL-49329 admin: Keep reference to plugin manager in plugininfo objects
Plugin info objects are owned by the plugin manager (composition
pattern). Even if the plugin manager is a singleton, we need to keep
explicit reference to the plugin manager that owns the plugin info so
that we can mock up things in unit tests.

Therefore this patch introduces a new property of plugin info objects
that holds the reference to the instance of the plugin manager that made
(and hence owns) the given info instance.

The only trouble here is with static methods of plugin info classes such
as \core\plugininfo\base::get_enabled_plugins(). In these cases, the
code keeps using the core_plugin_manager singleton. The solution would
be to pass the plugin manager instance as a parameter but that is not
worth of change for now, IMHO.
2015-10-08 23:32:02 +02:00
David Mudrák 361feecdcf MDL-49329 admin: Make core_plugin_manager better suited for unit testing
We can now override the plugin manager's methods in the testable
subclass while still keeping the singleton behaviour of it. The change
makes use of late static binding.
2015-10-08 23:32:02 +02:00
David Mudrák 30d8bc5f66 MDL-49329 admin: Do not always load info about available updates
Before this patch, whenever core_plugin_manager::get_plugins() was
called, it always attached info about available updates. But this is
needed only in quite rare cases, such as when the admin is looking at
the Plugins overview and Plugins check screens. There is no need to load
this on other places and for non-admin users.

The patch removes the loading from the method
core_plugin_manager::get_plugins_of_type() and implements lazy loading
directly in the plugininfo classes so that it is loaded only when
\core\plugininfo\base::available_updates() is actually called.
2015-10-08 23:32:02 +02:00
David Mudrák e9d3c21228 MDL-49329 admin: Fix \core\update\checker::enabled() logic
The method should check against $CFG->disableupdatenotifications and not
$CFG->disableupdateautodeploy. This had to be a copy&paste mistake from
the \core\update\deployer::enabled().

While looking at it, I also fixed couple of places where this method
should and could be used.
2015-10-08 23:32:02 +02:00
David Mudrák fd17898c0c MDL-49329 admin: Improve the styling of the Plugins check screen
The intention here is to make the table a little bit more compact (using
less columns) and to make use of the bootstrap based label elements if
available.
2015-10-08 23:32:02 +02:00
Eric Merrill 12f946d999 MDL-36606 gradereport: Update AJAX grader to understand gradeless cells 2015-10-08 12:33:08 -04:00
Matt Petro 2351ed55e8 MDL-51482 caching: Fix unnecessary updates to lastinvalidation time 2015-10-08 11:48:17 -04:00
Pierre Pichet bd15685352 MDL-38214 Questions: Add MCS, MCVS, MCHS Cloze subquestion types
Daniel Seemuth add MCO,MCVS,MCHS new multianswer subquestion types
qtype_multianswer_initialise_multichoice_subquestion.
Pierre Pichet MCO to MCS, add shuffling display in decode and verify edit_multianswer_form.php
add test_questiontext_extraction.

Signed-off-by: Pierre Pichet <pichet.pierre@uqam.ca>
2015-10-08 10:02:25 -05:00
Pierre Pichet 48b5b28ff4 MDL-38214 Questions: Add MCS, MCVS, MCHS Cloze subquestion types
qtype_multianswer: fix codechecker issues.

Signed-off-by: Pierre Pichet <pichet.pierre@uqam.ca>
2015-10-08 10:02:24 -05:00
Andrew Robert Nicols df65120a75 MDL-36606 gradereport: Correctly handle ungraded assessment ajax grading 2015-10-08 09:51:22 -04:00
Michael Aherne 1dc462baa5 MDL-51707 cron: Prevent finished tasks being returned 2015-10-08 14:43:56 +01:00
Barbara Ramiro 0381520262 MDL-40442 Icon: Improved svg download icon and png version 2015-10-08 13:31:03 +01:00
Dan Poltawski 74fad2ce3d weekly release 3.0dev 2015-10-08 11:36:35 +01:00
Dan Poltawski 8dd00c98f2 NOBUG: Fixed file access permissions 2015-10-08 11:36:35 +01:00
Dan Poltawski e58ca6b640 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-10-08 11:36:33 +01:00
Dan Poltawski 21dcd2daf3 Merge branch 'MDL-51523_master' of git://github.com/markn86/moodle 2015-10-08 11:30:54 +01:00
David Monllao dc9afaba4f MDL-51623 core_event: Updating error messages 2015-10-08 15:57:46 +08:00
David Monllao 02c85f9934 Merge branch 'MDL-51623_parent_event' of git://github.com/moodlerooms/moodle 2015-10-08 15:53:00 +08:00
Adam Olley a7d95e4e65 MDL-51285 mod_forum: Posts all need to have different stamps 2015-10-08 12:21:36 +08:00
Andrew Nicols cfd3b94544 Merge branch 'MDL-51341_enrolled_users_filter' of git://github.com/davosmith/moodle 2015-10-08 09:17:29 +08:00
Andrew Nicols e62c0c02c4 Merge branch 'wip-mdl-51660' of https://github.com/rajeshtaneja/moodle 2015-10-08 09:12:12 +08:00
Eloy Lafuente (stronk7) b82a60d1a7 Merge branch 'MDL-51624-master' of git://github.com/jleyva/moodle 2015-10-08 01:18:39 +02:00
Eloy Lafuente (stronk7) 11e2efe941 Merge branch 'MDL-51566-master' of git://github.com/jleyva/moodle 2015-10-08 00:24:06 +02:00
Davo Smith bf8f915abc MDL-51341 enrolment: fix 'No group' enrolled user filter 2015-10-07 17:09:15 +01:00
Dan Poltawski 99133d0c47 Merge branch 'MDL-51531-master' of git://github.com/damyon/moodle 2015-10-07 16:39:13 +01:00
Eric Merrill ea9431eb7b MDL-51500 navigation: Compute links with destination context
We should calculate the links based on the destination context,
not the current course. Could show links that are not accessible.
2015-10-07 10:00:59 -04:00
Juan Leyva 4bed1682bb MDL-51624 mod_lti: New Web Service mod_lti_view_lti 2015-10-07 14:54:18 +02:00
Juan Leyva c4c838ae82 MDL-51624 mod_lti: Rename function lti_view to lti_launch_tool 2015-10-07 14:53:00 +02:00
Juan Leyva 4b93c3e342 MDL-51566 mod_choice: New WS mod_choice_delete_choice_responses 2015-10-07 13:58:51 +02:00
Dan Poltawski 4a06e40908 Merge branch 'MDL-50142_master' of https://github.com/dmonllao/moodle 2015-10-07 12:19:13 +01:00
Dan Poltawski 69783d15da Merge branch 'MDL-50945-master' of git://github.com/xow/moodle 2015-10-07 12:14:47 +01:00
Dan Poltawski cae31eccfd Merge branch 'MDL-50543-master' of git://github.com/jleyva/moodle 2015-10-07 11:36:21 +01:00
sam marshall a0ef17628a MDL-51451 Moodle dialogues: Lock scroll causes background jump
When you add a module or otherwise cause a Moodle dialogue to appear, this
enables the 'lock scroll' feature (the scrollbar disappears).

On some browsers this causes the width of the viewport to change, which can
cause centered/right-aligned theme elements to move distractingly.

This change temporarily sets body max-width while lock scroll is active.
2015-10-07 10:24:25 +01:00
David Monllao 6be0240df5 Merge branch 'MDL-51567-master' of git://github.com/jleyva/moodle 2015-10-07 15:34:23 +08:00
David Monllao 5307265d0d Merge branch 'MDL-51632_echo_url' of git://github.com/moodlerooms/moodle 2015-10-07 15:24:36 +08:00
Dan Poltawski b225215069 Merge branch 'wip-mdl-50524' of https://github.com/rajeshtaneja/moodle 2015-10-07 07:59:31 +01:00
rajesh Taneja ac40984241 MDL-50524 behat: Fixed multiple when then and use of generator 2015-10-07 14:47:01 +08:00
David Monllao 68c3db8f5f Merge branch 'MDL-51537-master' of git://github.com/lameze/moodle
Conflicts:
	lib/upgrade.txt
2015-10-07 14:14:21 +08:00
David Monllao ff93a2a6f3 Merge branch 'MDL-51526-master' of git://github.com/cameron1729/moodle 2015-10-07 13:46:40 +08:00
Cameron Ball ec9e2d0414 MDL-51526 mail: Import PHPMailer 5.2.13 2015-10-07 13:42:40 +08:00
David Monllao 73c359572e MDL-51579 course: Bump version to update mobile service 2015-10-07 12:56:03 +08:00
David Monllao d30255a08d Merge branch 'MDL-51579-master' of git://github.com/jleyva/moodle
Conflicts:
	version.php
2015-10-07 12:48:03 +08:00
David Monllao de27cf6a3f Merge branch 'wip-mdl-51285' of git://github.com/rajeshtaneja/moodle 2015-10-07 11:22:56 +08:00
David Monllao c20c16c154 Merge branch 'MDL-51250-master-3' of git://github.com/junpataleta/moodle 2015-10-07 11:15:26 +08:00
Jakub Kania 9a3ef3893b MDL-50945 course: Add form-submit class to course edit buttons.
With contributions from Mary Evans.
2015-10-07 10:42:45 +08:00
Jun Pataleta d264cbbb8a MDL-51250 course: Add validation for section name 2015-10-06 21:39:54 -05:00
Andrew Nicols bbad52793b Merge branch 'wip-MDL-41042-master' of git://github.com/marinaglancy/moodle 2015-10-07 10:25:56 +08:00
Marina Glancy 5667e60249 MDL-41042 coursecat: reset course contacts cache more often 2015-10-07 10:23:03 +08:00
Marina Glancy a6d4a36388 MDL-41042 coursecat: better handle changes in coursecontact 2015-10-07 10:15:19 +08:00
Adrian Greeve 33a2512acd MDL-49028 mod_wiki: Fix for reseting pages and tags
This will ensure that both pages and tags will be
removed when all the reset options for the wiki are
selected.
2015-10-07 10:03:02 +08:00
David Monllao 0646f596f5 Merge branch 'MDL-51521-master' of git://github.com/cameron1729/moodle 2015-10-07 09:32:13 +08:00
David Monllao 7f9e70beaf Merge branch 'MDL-51525-master' of git://github.com/ryanwyllie/moodle 2015-10-07 09:22:31 +08:00
David Monllao af17e8d9dd Merge branch 'wip-MDL-51315-master' of git://github.com/abgreeve/moodle 2015-10-07 09:20:13 +08:00
Andrew Nicols dabb53c525 Merge branch 'MDL-45981-master' of git://github.com/lameze/moodle 2015-10-07 08:18:10 +08:00
Eloy Lafuente (stronk7) b8e0dcbb7e Merge branch 'MDL-48438' of https://github.com/andrewhancox/moodle 2015-10-07 01:12:17 +02:00
Eloy Lafuente (stronk7) cb171682ff Merge branch 'MDL-49823-master' of git://github.com/jleyva/moodle 2015-10-07 01:08:52 +02:00
AMOS bot 61d1a262e5 Automatically generated installer lang files 2015-10-07 00:04:00 +08:00
Andrew Hancox 08a54173d8 MDL-50526 mod_assign: Highlight error message when user has no group
If I set the "Require group to make submission" setting in an assignment
activity to yes, students who are not in any group are prevented from submitting
their assignment and are presented a warning instead that they should contact
their teacher. This message is now presented in an alert box.
2015-10-06 16:41:25 +01:00
Dan Poltawski a059ef2e9f MDL-50524 assign: improve method visibility and upgrade.txt 2015-10-06 16:32:57 +01:00
Dan Poltawski 1a5f8df5c0 Merge branch 'MDL-50524' of https://github.com/andrewhancox/moodle 2015-10-06 16:32:57 +01:00
Dan Poltawski f5e68c2892 Merge branch 'MDL-51564-master' of git://github.com/jleyva/moodle 2015-10-06 16:32:55 +01:00
Dan Poltawski 67f2463f34 Merge branch 'MDL-51529-master' of git://github.com/damyon/moodle 2015-10-06 16:32:38 +01:00
Dan Poltawski a6c6294091 Merge branch 'MDL-51250_master-empty-return-fix' of git://github.com/dmonllao/moodle 2015-10-06 16:32:38 +01:00
David Monllao d1583d8e9c MDL-51250 course: No function returns in empty() 2015-10-06 16:32:38 +01:00
Dan Poltawski 13371605ed Merge branch 'MDL-51530-master' of git://github.com/ryanwyllie/moodle 2015-10-06 16:32:35 +01:00
Dan Poltawski 4ed45a18d1 Merge branch 'MDL-51532-master' of git://github.com/damyon/moodle 2015-10-06 16:32:23 +01:00
Dan Poltawski 828d23646a Merge branch 'MDL-51676-master-ltiservice_memberships' of git://github.com/mudrd8mz/moodle 2015-10-06 16:32:04 +01:00
Dan Poltawski 3228365b12 Merge branch 'MDL-51533-master' of git://github.com/damyon/moodle 2015-10-06 16:32:04 +01:00
Dan Poltawski 615c7f1923 Merge branch 'MDL-51534-master' of git://github.com/junpataleta/moodle 2015-10-06 16:32:03 +01:00
Dan Poltawski a5bde1f85f Merge branch 'MDL-51535-master' of git://github.com/junpataleta/moodle 2015-10-06 16:32:02 +01:00
Dan Poltawski 6b58b264db Merge branch 'MDL-51538-master' of git://github.com/damyon/moodle 2015-10-06 16:32:02 +01:00
Dan Poltawski 8d49ad2613 Merge branch 'MDL-51539-master' of git://github.com/damyon/moodle 2015-10-06 16:32:02 +01:00
Dan Poltawski d540aa8c70 Merge branch 'MDL-51615-master' of git://github.com/jleyva/moodle 2015-10-06 16:32:00 +01:00
Dan Poltawski c1604af966 Merge branch 'MDL-51588-master' of git://github.com/FMCorz/moodle 2015-10-06 16:31:36 +01:00
Dan Poltawski 4d49a32f9e Merge branch 'MDL-51578' of git://github.com/blaky/moodle 2015-10-06 16:31:35 +01:00
Dan Poltawski 2af6345a6f Merge branch 'MDL-51434_master-fix-unit-test' of git://github.com/dmonllao/moodle 2015-10-06 16:31:35 +01:00
David Monllao 115ef5f91c MDL-51434 mod_scorm: Including protectpackagedownloads in unit tests 2015-10-06 16:31:35 +01:00
David Monllao 358827f0b3 Merge branch 'MDL-51656_master' of git://github.com/markn86/moodle 2015-10-06 16:31:34 +01:00
Andrew Nicols ed845fa7fe Merge branch 'MDL-51228-master' of https://github.com/dthies/moodle 2015-10-06 16:31:34 +01:00
Andrew Nicols 0e30fbd1c8 MDL-51461 javascript: Fix whitespace issue 2015-10-06 16:31:33 +01:00
Andrew Nicols 7a191981b6 Merge branch 'MDL-51461' of https://github.com/andrewhancox/moodle 2015-10-06 16:31:32 +01:00
Andrew Nicols 2dcbd2a27d Merge branch 'MDL-44707-master' of git://github.com/marinaglancy/moodle 2015-10-06 16:31:32 +01:00
Andrew Nicols 05e6215c48 Merge branch 'MDL-50805_master' of https://github.com/crazyserver/moodle 2015-10-06 16:29:14 +01:00
David Monllao d50b4a6e16 Merge branch 'MDL-51250-master' of git://github.com/junpataleta/moodle 2015-10-06 16:26:55 +01:00
David Monllao 889a9fbba1 MDL-49811 mod_choice: Removing skipresultgraph link
The target of the link is not available after MDL-30816.
2015-10-06 16:26:54 +01:00
David Monllao 7da61f95ce Merge branch 'MDL-49811_master' of git://github.com/jinhofer/moodle 2015-10-06 16:26:54 +01:00
David Monllao 86c48d177e Merge branch 'master-MDL-49750' of git://github.com/jojoob/moodle 2015-10-06 16:26:53 +01:00
David Monllao c6ce30bb3f Merge branch 'MDL-51434-master' of git://github.com/jleyva/moodle 2015-10-06 16:26:53 +01:00
David Mudrák 3562c426b5 MDL-51676 mod_lti: Mark LTI Memberships service as a standard plugin 2015-10-06 14:13:39 +02:00
Juan Leyva 9748791ba8 MDL-51564 webservice: Review the use of external format_string 2015-10-06 14:00:45 +02:00
Bence Laky 933f0d966e MDL-51578 enrol_self: Improved error message on late/early enrolments 2015-10-06 09:16:18 +01:00
Simey Lameze ac9d9646d4 MDL-45981 auth_cas: add cURL SSL versions dropdown 2015-10-06 14:59:14 +08:00
Tim Hunt 55656b0c7d MDL-51375 excel output: more work to avoid invalid sheet names 2015-10-06 05:44:50 +01:00
rajesh Taneja a6bd22b08c MDL-51660 behat: Upgarde behat and phpunit
1. Behat upgrade to 2.5.5
2. phpunit upgrade to 4.8.*
2015-10-06 10:53:01 +08:00
Marina Glancy 2542cb5468 MDL-51604 course: trigger course created event earlier 2015-10-06 09:44:55 +08:00
Jun Pataleta f1bfc8971f MDL-51250 course: Display the default section name
This patch makes the default section name appear in brackets
beside the 'Use default section name' checkbox.
2015-10-05 14:03:07 -05:00
Dan Poltawski 8b6ceab953 Merge branch 'wip-MDL-49189-master' of https://github.com/kwiliarty/moodle 2015-10-05 15:02:58 +01:00
Dan Poltawski 7c88aa7bec Merge branch 'wip-MDL-51636-master' of https://github.com/marinaglancy/moodle 2015-10-05 14:59:16 +01:00
jinhofer 0b7856efbe MDL-49811 lib: Added js to skiplinks
I have added a JS module to handle skiplinks to send
the focus to the end of the block. This improves the function
and allows the user to better tab through the page.
2015-10-05 06:17:58 -05:00
Dan Poltawski 93ca67d637 Merge branch 'MDL-51501-master' of git://github.com/merrill-oakland/moodle 2015-10-05 11:47:52 +01:00
Dan Poltawski 61c257e7ee Merge branch 'wip-MDL-49028-master' of git://github.com/abgreeve/moodle 2015-10-05 10:44:37 +01:00
Johannes Burk 8c3b27d4b2 MDL-49750 mod_data: fix updating file/picture fields breaks references
Use file_save_draft_area_files on file/picture update and
set content to null if file was removed.
2015-10-05 11:42:53 +02:00
Andrew Hancox 30baca293b MDL-48451 report_outline: Added number of distinct users 2015-10-05 09:40:31 +01:00
David Monllao cc69a29b4b Merge branch 'MDL-51514_master' of git://github.com/markn86/moodle 2015-10-05 15:59:43 +08:00
David Monllao fe73503248 Merge branch 'MDL-51408-master' of git://github.com/marinaglancy/moodle 2015-10-05 13:49:00 +08:00
David Monllao b0fca9208b Merge branch 'MDL-51478-master' of git://github.com/jleyva/moodle 2015-10-05 13:38:43 +08:00
David Monllao 6ee188b162 MDL-50613 webservices: Upgrade info about riskbitmask 2015-10-05 12:19:29 +08:00
David Monllao 117fb5a21e Merge branch 'MDL-50613-master' of git://github.com/jleyva/moodle 2015-10-05 12:10:40 +08:00
Jun Pataleta 1340ed8efa MDL-51534 libraries: Update TCPDF library to 6.2.12 2015-10-04 22:02:00 -05:00
Jun Pataleta d463b9c178 MDL-51535 libraries: Update Jquery to 1.11.3 2015-10-04 21:54:49 -05:00
Simey Lameze f77cd37160 MDL-51537 libraries: update horde library to 5.2.7 2015-10-05 09:58:44 +08:00
Adrian Greeve 30836b17da MDL-49028 mod_wiki: Fully reset wiki pages.
All the wiki pages as well as comments and tags
can now be reset.

A thank you to Daniel Kosinski and Pascal Maury for
providing patches for this improvement.
2015-10-05 09:48:38 +08:00
David Monllao 4d37d462ca MDL-50142 editor: Refining editor preference help
All credit goes to Helen Foster.
2015-10-05 09:32:32 +08:00
Ben Tindell f611319ed4 MDL-50142 user: context sensitive help
Added context sensitive help to
Edit Profile > Text Editor
2015-10-05 09:32:32 +08:00
Mark Nelson 112117c00e MDL-51523 core: upgraded Auth_RADIUS to 1.1.0 2015-10-04 13:53:17 -07:00
Juan Leyva dfcdec1254 MDL-50543 mod_lti: New WS mod_lti_get_ltis_by_courses 2015-10-04 21:19:18 +02:00
Juan Leyva d5ded9e72d MDL-51615 mod_lti: New Web Service mod_lti_get_tool_launch_data 2015-10-04 21:19:06 +02:00
Juan Leyva 77496aa556 MDL-51567 mod_scorm: Return warnings for invalid attempt numbers
In the external function get_scorm_sco_tracks
2015-10-04 21:15:21 +02:00
Juan Leyva 13bb68199e MDL-51579 core_course: New Web Service get_course_module_by_instance 2015-10-04 21:11:01 +02:00
AMOS bot eac57bbd86 Automatically generated installer lang files 2015-10-05 00:04:37 +08:00
Marina Glancy 810805da9e MDL-51636 core_tag: allow setting tags in generators 2015-10-04 22:25:37 +08:00
AMOS bot 6727489cae Automatically generated installer lang files 2015-10-04 00:04:00 +08:00
Kevin Wiliarty c85aa9d606 MDL-49189 auth: Map data to profile fields with uppercase shortnames 2015-10-03 06:58:46 -04:00
Juan Leyva ae67efa883 MDL-51615 mod_lti: New Web Service mod_lti_get_tool_launch_data 2015-10-03 08:25:28 +02:00
Mark Nelson e84b1eba3d MDL-51656 auth_radius: fixed colon location 2015-10-02 16:34:14 -07:00
Sam Chaffee 84ab39cf77 MDL-51514 gradebook: Optimize set_usedinaggregation query for MySQL 2015-10-02 11:28:15 -06:00
AMOS bot e55bb42ce5 Automatically generated installer lang files 2015-10-03 00:04:05 +08:00
Mark Nielsen 2df73956b8 MDL-51623 core_event: Allow observation of parent events 2015-10-02 08:45:31 -07:00
Dan Poltawski 35d3e8b00b weekly release 3.0dev 2015-10-02 10:57:29 +01:00
Dan Poltawski dd52e20b72 NOBUG: Fixed SVG browser compatibility 2015-10-02 10:57:28 +01:00
Dan Poltawski 04d4ca7f61 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-10-02 10:57:27 +01:00
Dan Poltawski 381c55b906 Merge branch 'MDL-48947_master-dnd-span' of git://github.com/dmonllao/moodle 2015-10-02 08:05:13 +01:00
Damyon Wiese df09876082 MDL-51530 libraries: Upgrade less.php to 1.7.0.9 2015-10-02 05:03:40 +00:00
David Monllao 5b9718928a MDL-48947 course: Adding the new extra span after dropping a section 2015-10-02 11:12:24 +08:00
Mark Nielsen aff1db055f MDL-51632 tool_generator: Print URL of the generated course 2015-10-01 11:03:12 -07:00
Andrew Hancox 502336f215 MDL-26935 course: Require course:renameroles to rename roles. 2015-10-01 18:04:40 +01:00
Juan Leyva 8b06acf76c MDL-51434 mod_scorm: New global setting for enabling package downloads 2015-10-01 18:16:01 +02:00
Eloy Lafuente (stronk7) 3883191436 MDL-51555 behat: Added @_file_upload missing tags
So phantomjs can perform complete runs without breakage.
2015-10-01 17:41:48 +02:00
Dan Poltawski e976a02cef MDL-48947 css: compile less 2015-10-01 16:12:13 +01:00
Dan Poltawski 331315a4c1 Merge branch 'MDL-48947_v3_patch' of https://github.com/Syxton/moodle 2015-10-01 16:12:09 +01:00
Syxton c73fd11e86 MDL-48947 patch - fix unclickable menu issues
remove z-index fix and instead keep the header from gaining the opacity
change on hide
2015-10-01 10:54:23 -04:00
Andrew Hancox 81295fc40e MDL-48438 core: Add fullname where known to failed login notifications. 2015-10-01 12:44:11 +01:00
Andrew Hancox fb57f15170 MDL-51399 report_outline: Hide blog column if blogs are disabled. 2015-10-01 10:46:58 +01:00
Pau Ferrer Ocaña 60b69e4d2f MDL-50805 Messages: Add index to message_read to speed up message crons 2015-10-01 10:34:30 +02:00
Juan Leyva d85bedf796 MDL-49823 webservice: Support gravatar profile images 2015-10-01 09:36:31 +02:00
Simey Lameze 9b3ae641e4 MDL-45981 auth_cas: coding style fixing 2015-10-01 15:08:05 +08:00
John Gasper 6d4cae04b6 MDL-45981 auth_cas: add suport to SSL3 on CAS.
This patch gives the user the option of specifying which SSL version PHPCAS/cURL should use.
2015-10-01 14:49:13 +08:00
David Monllao 6dbb46ec0f MDL-46710 mod_lti: Removing duplicated generated events
Event generation and completion should be generated only once.
2015-10-01 11:55:38 +08:00
Eloy Lafuente (stronk7) c75b891ba7 Merge branch 'MDL-49821-master-master' of git://github.com/jleyva/moodle 2015-10-01 01:26:58 +02:00
Eloy Lafuente (stronk7) 6a0deee441 Merge branch 'MDL-51227-master' of https://github.com/dthies/moodle 2015-10-01 00:25:31 +02:00
Eloy Lafuente (stronk7) 9fb434a618 Merge branch 'wip-mdl-51266' of https://github.com/rajeshtaneja/moodle 2015-09-30 20:34:33 +02:00
Eloy Lafuente (stronk7) 880eb93d3f Merge branch 'MDL-51292-master' of git://github.com/cameron1729/moodle 2015-09-30 17:32:57 +02:00
Andrew Hancox e56e7c164d MDL-51461 core: Fix issue with client side mustache templates 2015-09-30 10:38:05 +01:00
Juan Leyva fca9e67c25 MDL-50613 webservice: Remove risk bit masks for Web Service protocols
This will prevent to show a 'Critical' status in security overview
report when mobile services are enabled
2015-09-30 09:34:23 +02:00
David Monllao 161649644d Merge branch 'MDL-51415-master' of git://github.com/jleyva/moodle 2015-09-30 14:15:29 +08:00
Damyon Wiese 80af92f0fe MDL-51531 libraries: Upgrade google libraries to 1.1.5 2015-09-30 13:28:19 +08:00
Damyon Wiese fc07d950ea MDL-51605 Rangy: Patch out AMD support (we can't use it from YUI). 2015-09-30 13:17:28 +08:00
Damyon Wiese 0fde7efad1 MDL-51605 atto: Update rangy to 1.3.0 2015-09-30 13:08:15 +08:00
Damyon Wiese bd738ddf5f MDL-51529 libraries: Upgrade html5shiv to 3.7.3 2015-09-30 12:59:30 +08:00
David Monllao 7f64df4131 Merge branch 'wip-MDL-44640-fix' of git://github.com/marinaglancy/moodle 2015-09-30 12:43:55 +08:00
Adam Olley dba0fdc2bc MDL-9070 forum: Add margin in rtl mode to timed post icon
As the icon has a float on it to move it to the right, a margin-top
needs to be applied to keep it aligned the same as in ltr.
2015-09-30 12:27:12 +08:00
Damyon Wiese 7fa6b58762 MDL-51532 libraries: Update htmlpurifier to 4.7.0 2015-09-30 11:55:03 +08:00
Damyon Wiese 4eeea2cbdc MDL-51533 minify: Update to 2.2.1 2015-09-30 11:41:08 +08:00
Marina Glancy e7b161f0b2 MDL-44640 course: account for multiple events in course actions 2015-09-30 11:35:40 +08:00
David Monllao ad704e2c49 Merge branch 'mdl51440-master' of git://github.com/tlock/moodle 2015-09-30 10:48:25 +08:00
David Monllao 8e31c017f2 MDL-9070 mod_forum: Reducing it to a single scenario 2015-09-30 10:09:03 +08:00
David Monllao 15791dffac Merge branch 'MDL-9070' of git://github.com/aolley/moodle 2015-09-30 09:29:55 +08:00
Eloy Lafuente (stronk7) d4e65df215 Merge branch 'MDL-49143-master' of git://github.com/cameron1729/moodle
Note: Fixed small bug in unit test.
2015-09-30 03:22:26 +02:00
Adam Olley 05f1455b35 MDL-9070 forum: Show timed post display period
This adds the following changes when viewing a list of discussions and
forum_enabletimedposts is turned on.

* Discussions a student wouldnt see right now are dimmed (timestart in
  future or timeend in the past).
* A icon appears next to the discussion subject, the tooltip for this
  icon displays the display start and/or end time. This only appears for
  the user that made the discussion or has permission to
  viewhiddentimedposts.

These two changes achieve a couple of important things, namely, teachers
will not mistakenly think their students can see a discussion when
viewing the list if they've later forgot that they set a time limit on
it (or indeed if someone else put it on their discussion without them
realising). Additionally it makes it easy to see from the list when
different discussions are set to be released without having to go in and
edit them to find out.

Change-Id: Ia1818b33c00adae0dad72df8e170a078fb66cd76
2015-09-30 09:18:31 +09:30
Dan Poltawski 5fc9fdd54e Merge branch 'MDL-51402' of git://github.com/timhunt/moodle 2015-09-29 20:54:45 +01:00
Dan Poltawski 2764d7a597 Merge branch 'wip-mdl-51424' of https://github.com/dthies/moodle 2015-09-29 20:33:28 +01:00
Dan Poltawski 747554d335 Merge branch 'MDL-50658' of https://github.com/spvickers/moodle 2015-09-29 16:50:45 +01:00
Dan Poltawski a3b1172dcb Merge branch 'MDL-50602-master' of https://github.com/StudiUM/moodle 2015-09-29 16:03:52 +01:00
Dan Poltawski df15a71836 MDL-51261 config-dist: clarify setting description a little 2015-09-29 13:25:18 +01:00
Dan Poltawski 0dd7bb78d6 Merge branch 'MDL-51261-master-upgradekey' of git://github.com/mudrd8mz/moodle 2015-09-29 12:33:14 +01:00
Dan Poltawski 092455e4d4 Merge branch 'MDL-42639_master' of git://github.com/dmonllao/moodle 2015-09-29 10:20:13 +01:00
Dan Poltawski b33662e4d7 Merge branch 'wip-MDL-44640-master' of https://github.com/marinaglancy/moodle 2015-09-29 10:13:19 +01:00
Damyon Wiese 89c1dcde52 MDL-51536 libraries: Upgrade zend to 1.12.16 2015-09-29 17:06:36 +08:00
David Monllao 07d370849b MDL-42639 user: user:viewalldetails enough to view some fields
The fields are:
- username
- idnumber
- institution
- department
2015-09-29 16:55:14 +08:00
Adrian Greeve b5987836fc MDL-51315 tablelib: Only display table preferences if necessary.
A thank you to Tony Butler for a solution to this issue.
2015-09-29 14:57:19 +08:00
Frederic Massart 3665f8036c MDL-51588 webservice: Allow CORS in webservice/pluginfile.php 2015-09-29 14:40:44 +08:00
Damyon Wiese a36208614c MDL-51538 javascript: Update requirejs to 2.1.20 2015-09-29 14:36:53 +08:00
Damyon Wiese ee5192614a MDL-51539 javascript: Update loglevel library to 1.4 2015-09-29 14:09:31 +08:00
Ryan Wyllie 9f0bb8fe6c MDL-51525 libraries: added graphlib to thirdpartylibs.xml 2015-09-29 06:05:23 +00:00
Andrew Nicols eb89f7cb40 Merge branch 'MDL-43594-master' of git://github.com/junpataleta/moodle 2015-09-29 13:49:30 +08:00
Jun Pataleta 418a0d0465 MDL-43594 mod_assign: Fix calendar update on course reset
This patch fixes the updating of calendar events when the course
is reset and its start date is changed.
2015-09-29 13:46:27 +08:00
Andrew Nicols 853555f9a7 Merge branch 'MDL-35918-master' of git://github.com/ryanwyllie/moodle 2015-09-29 13:42:24 +08:00
Eloy Lafuente (stronk7) 07842a3861 MDL-49143 LTI: Test resource_link_id in lti_build_request() 2015-09-29 13:42:02 +08:00
Cameron Ball 219f956acc MDL-49143 LTI: Fix missing resource id 2015-09-29 13:41:55 +08:00
Cameron Ball c9fd90d4a2 MDL-51521 lib: Import latest PHPExcel 1.8.1 2015-09-29 13:23:52 +08:00
Ryan Wyllie f56ae5a7ac MDL-35918 javascript: dialogues screen reader support
The YUI notification dialogues will now set the appropriate
aria attributes when they are shown/hidden to allow screen
readers to navigate them correctly.

When the dialogue is shown all background elements will be marked
as hidden while the dialogue is marked as visible to a screen reader.

When the dialogue is closed the modified elements will be reverted
to their previous state and the dialogue will be marked as hidden to
a screen reader.
2015-09-29 04:48:57 +00:00
Andrew Nicols c9830ddbb7 Merge branch 'wip-MDL-51241-master' of git://github.com/abgreeve/moodle 2015-09-29 12:22:20 +08:00
Andrew Nicols 2aac262f69 Merge branch 'MDL-51476' of git://github.com/timhunt/moodle 2015-09-29 11:40:40 +08:00
Dan Poltawski 23e1a54f57 Merge branch 'MDL-51305_master_too_many_gradeitem_fetches' of https://github.com/colin-umn/moodle 2015-09-28 16:25:54 +01:00
Dan Poltawski 51e0adf664 MDL-48947 version: bump 2015-09-28 15:45:11 +01:00
Dan Poltawski ebadc15c1f Merge branch 'MDL-48947_v3' of https://github.com/Syxton/moodle 2015-09-28 15:06:21 +01:00
Dan Poltawski 5a068364cb Merge branch 'mdl46710-master' of https://github.com/tlock/moodle 2015-09-28 14:56:52 +01:00
Dan Poltawski 411dea9523 Merge branch 'MDL-51390_master' of https://github.com/totara/openbadges 2015-09-28 13:27:12 +01:00
Dan Poltawski 1b7caf12dc Merge branch 'MDL-51312_master' of git://github.com/markn86/moodle 2015-09-28 11:51:36 +01:00
Dan Poltawski 233ab7ee47 Merge branch 'MDL-51498_regrade_perf' of https://github.com/moodlerooms/moodle 2015-09-28 11:09:12 +01:00
Dan Poltawski 158cc03737 Merge branch 'MDL-50109-master-blogsort' of https://github.com/mudrd8mz/moodle 2015-09-28 10:44:47 +01:00
Yuliya Bozhko 4d0ebdebc5 MDL-51390 badges: Switch backpack URL to use HTTPS
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2015-09-28 10:37:03 +01:00
Dan Poltawski 52f4e19bbd Merge branch 'MDL-49482-master' of https://github.com/blckct/moodle 2015-09-28 10:31:48 +01:00
AMOS bot 6f5edd3158 Automatically generated installer lang files 2015-09-28 00:04:04 +08:00
Marina Glancy 7fdc469048 MDL-44640 enrol_meta: sync when enrol method is updated 2015-09-27 17:52:20 +08:00
Marina Glancy 080c7d471d MDL-44640 enrol: trigger events on instances actions 2015-09-27 17:52:20 +08:00
Daniel Thies 7bb2069bfa MDL-51227 editor_atto: Stop Chrome losing selection when formating 2015-09-25 09:32:46 -05:00
Tim Hunt ddc016830d MDL-51476 questions: manual grading validation for ungraded Qs
The change in MDL-51090 broke manually commenting on questions for which
no mark is given (max mark == 0). This fixes it, with unit tests.

Thanks to Nick Phillips for the original suggestion of the fix.
2015-09-25 14:01:33 +01:00
Juan Leyva 4485f7c549 MDL-49821 webservice: Add active user checks in external functions 2015-09-25 11:33:13 +02:00
Juan Leyva 3961ebfbc0 MDL-49821 core_user: New function for checking if a user is active 2015-09-25 11:33:13 +02:00
Eloy Lafuente (stronk7) a9ed308f74 Merge branch 'wip-mdl-51555' of https://github.com/rajeshtaneja/moodle 2015-09-25 11:31:14 +02:00
rajesh Taneja 0f2aad5908 MDL-51555 behat: Increase question preview window
As question preview window is small, chrome driver
fails to select drag and drop element
2015-09-25 16:53:14 +08:00
Juan Leyva 6b6deb8e74 MDL-51478 webservice: Enable the Mobile service by default 2015-09-25 10:05:04 +02:00
rajesh Taneja 8d892b1d40 MDL-51555 behat: Added @_switch_window tag
DND question types use switch window and the tag
was not added, so it was failing for phantomjs
Added tag to avoid phantomjs failures
2015-09-25 11:53:03 +08:00
Mark Nelson 6fff51d675 MDL-51312 core_message: added unit test for the message_deleted event 2015-09-24 15:13:42 -07:00
Mark Nelson b5e617e245 MDL-51312 core: added message_deleted event 2015-09-24 15:13:42 -07:00
Tim Lock 86b314c7b0 MDL-46710 mod_lti: fix logging and completion tracking in new windows 2015-09-25 06:27:18 +09:30
David Mudrák 6ef02f8479 MDL-51261 admin: Add option to define upgradekey via cli installer 2015-09-24 21:02:33 +02:00
David Mudrák 98b32c9e7e MDL-51261 admin: Support upgrade key requirement on the site upgrade
The upgrade key can be defined in the main config.php as
$CFG->upgradekey.  If it is defined there, then its value must be
provided every time the site is being upgraded, regardless the
administrator is logged in or not.
2015-09-24 21:02:33 +02:00
David Mudrák a277654f7f MDL-51261 admin: Fix the heading when displaying all plugins
Not directly related to the issue but spotted while developing it and it
is not worth of submitting in a separate issue.

At the Plugins check page, when the "Display the full list of installed
plugins" link was followed, the heading at the next page read something
like "Number of plugins requiring your attention: 357". That is
misleading as this is actually not the number of displayed plugins, not
the number of plugins requiring attention.
2015-09-24 21:02:33 +02:00
Jean-Philippe Gaudreau e10c9acc19 MDL-50602 - Automated backup: Add constants for storage types
Improve the code readability significantly by adding constants for storage types.
2015-09-24 14:08:18 -04:00
Jean-Philippe Gaudreau 2b7c85da17 MDL-50602 - Automated backup: Remove old backups associated to courses
Refactoring and renaming of settings.
2015-09-24 14:08:17 -04:00
Eloy Lafuente (stronk7) ec3aa5be7d MDL-49482 sqlsrv: Implement support of Offset/Fetch in SQL Server 2012+ 2015-09-24 20:07:51 +02:00
Jakub Kania 918187a062 MDL-49482 mssql: Implement support of Offset/Fetch in SQL Server 2012+. 2015-09-24 20:07:51 +02:00
Serge Gauthier 694f195da0 MDL-50602 - Automated backup: Remove old backups associated to courses 2015-09-24 14:02:19 -04:00
spvickers 591b3128eb MDL-50658 mod_lti: Add LTI Memberships service
Implementation of the LTI Memberships service.
2015-09-24 17:44:00 +01:00
Eloy Lafuente (stronk7) fd57d685c7 weekly release 3.0dev 2015-09-24 16:06:53 +02:00
Eloy Lafuente (stronk7) caac3c50a1 NOBUG: Fixed file access permissions 2015-09-24 16:06:53 +02:00
rajesh Taneja 4cfaf27c08 MDL-49973 behat: Fixed string change from Continue to Delete 2015-09-24 15:38:20 +02:00
Eloy Lafuente (stronk7) 02be8a0427 Merge branch 'MDL-50207-master' of git://github.com/lameze/moodle 2015-09-24 15:38:19 +02:00
Eloy Lafuente (stronk7) e99b197e97 MDL-51371 course: fix core_course_get_course_module assertion
A recent bugfix before integration left this failing. They are 22.
2015-09-24 15:38:18 +02:00
Eloy Lafuente (stronk7) f95452b84f Merge branch 'MDL-51371-master' of git://github.com/jleyva/moodle 2015-09-24 15:38:14 +02:00
Eloy Lafuente (stronk7) 46e92173fd Merge branch 'wip-MDL-51259-master' of git://github.com/abgreeve/moodle 2015-09-24 15:37:12 +02:00
Andrew Nicols dcfae879e9 MDL-51172 core: Adjust WS help strings 2015-09-24 15:37:12 +02:00
Andrew Nicols fff882dd8a Merge branch 'MDL-51182' of https://github.com/danielneis/moodle 2015-09-24 15:37:11 +02:00
rajesh Taneja 267033a979 MDL-50940 behat: Added support for field matching with xpath 2015-09-24 13:00:15 +08:00
Cameron Ball 584dd1b35d MDL-51292 core_message: Notify when leaving page or closing modal.
- Add reset_dirty_state method to formchangechecker. This is useful when used in combination with a modal.
- Modify hide method of sendmessage to reset formchangechecker dirty state on modal close.
2015-09-24 12:35:20 +08:00
Juan Leyva c515849937 MDL-51371 course: New Web Service core_course_get_course_module 2015-09-23 15:32:15 +02:00
rajesh Taneja 5ecf8e8f21 MDL-51266 unittest: replaced low level phpunit_util calls 2015-09-23 15:42:48 +08:00
Andrew Nicols 32cc0de4f3 MDL-50349 mod_scorm: Bump version for new WS 2015-09-23 13:40:29 +08:00
Andrew Hancox d9fddb0bc6 MDL-50940 behat: Added ability to check field value by xpath 2015-09-23 12:45:00 +08:00
Andrew Nicols d26b770814 Merge branch 'MDL-50332_master-form-fix' of git://github.com/dmonllao/moodle 2015-09-23 11:50:29 +08:00
Andrew Nicols 3678dd00c2 Merge branch 'MDL-51222-master-fix' of https://github.com/andrewnicols/moodle 2015-09-23 11:43:15 +08:00
Andrew Nicols 57884502bc MDL-51222 Javascript: Reapply YUI config after adding modules 2015-09-23 10:49:59 +08:00
David Monllao 012d14e892 MDL-50332 enrol_self: Setting form url for guests
Credit to Andrew Nicols.
2015-09-23 09:52:04 +08:00
Andrew Nicols b8ceed62d2 Merge branch 'MDL-51423-master-cliout' of git://github.com/mudrd8mz/moodle 2015-09-23 09:42:29 +08:00
Andrew Nicols be09ca85ef MDL-50664 mod_data: Fix for unit test failure 2015-09-23 09:27:30 +08:00
Eric Merrill 0e55333a86 MDL-51501 themes: pix_icon should not include empty alt tags 2015-09-22 17:20:37 -04:00
Mark Nielsen 5f6e2fc9d3 MDL-51498 core_grades: Prevent unnecessary grade record fetching
All of these changes make use of already
fetched grade data.  Without these changes,
the gradebook regrade process does not scale
well with very large courses because it fetches
many grade records, one at a time.
2015-09-22 12:04:28 -07:00
Eloy Lafuente (stronk7) 201a26bbaa Merge branch 'MDL-47494' of git://github.com/timhunt/moodle
Note: Fixed some minor grunt and EOF whitespace issues while merging.
2015-09-22 18:38:27 +02:00
Dan Poltawski 5c7c9ea99a Merge branch 'MDL-51107-master' of git://github.com/FMCorz/moodle 2015-09-22 15:11:10 +01:00
Frederic Massart 61ce548a71 MDL-51107 navigationlib: Plugins can extend navigation category settings 2015-09-22 21:58:50 +08:00
Dan Poltawski b7a87899c5 Merge branch 'MDL-50541-master' of git://github.com/jleyva/moodle 2015-09-22 14:37:22 +01:00
Juan Leyva 48a90a215b MDL-51415 webservice: Check course access using can_access_course()
This function check both user enrolled and course:view capabilities
2015-09-22 15:29:49 +02:00
Dan Poltawski f43194ab36 Merge branch 'MDL-50349-master' of git://github.com/jleyva/moodle 2015-09-22 13:17:03 +01:00
Dan Poltawski df44776afd Merge branch 'MDL-50536-master' of git://github.com/jleyva/moodle 2015-09-22 12:55:46 +01:00
Dan Poltawski 79eb3afa9b Merge branch 'MDL-50132-master' of git://github.com/jleyva/moodle 2015-09-22 12:46:39 +01:00
Dan Poltawski abd3fdc977 Merge branch 'wip-MDL-51108-master' of git://github.com/abgreeve/moodle 2015-09-22 11:48:49 +01:00
Dan Poltawski 0730ddc2ad Merge branch 'MDL-50664-master' of git://github.com/ryanwyllie/moodle 2015-09-22 10:39:33 +01:00
Dan Poltawski 11a83dbb1e Merge branch 'MDL-49973-master' of git://github.com/cameron1729/moodle 2015-09-22 09:44:44 +01:00
Dan Poltawski 2e3b61fc4a MDL-50917 navigation: fix incorrect @since 2015-09-22 09:36:06 +01:00
Dan Poltawski b3e959497e Merge branch 'wip-MDL-50917-master' of git://github.com/abgreeve/moodle 2015-09-22 09:15:57 +01:00
Dan Poltawski 16d08d465b Merge branch 'MDL-51412_qtype_index' of git://github.com/davosmith/moodle 2015-09-22 09:00:00 +01:00
Damyon Wiese 4e8afd56d5 MDL-51222 javascript: Merge all the YUI instances
We previously had a global Y (simpleyui) and a separate Y created
to put Y in scope for all our modules. This meant that we had 2
separate sandboxes for YUI, which means that modules are duplicated,
and events do not fire across YUI instances.

This change merges the 2 instances, so any code refering to Y will
get the same instance of YUI (amd code, yui modules, static init code etc).

Thanks to Andrew Nicols!
2015-09-22 15:56:40 +08:00
Damyon Wiese 28de777199 MDL-51222 Javascript: Trigger events for filters on DOM insertion
When nodes are added to the dom, they may need to be re-processed by a JS based
filter. To do this we need to trigger the legacy YUI event filter-content-updated.

To make this easier I added some wrappers to template that will insert the node, run any
JS and trigger the event.

I also changed existing yui code to call the amd function to trigger the event. This way
all jquery and yui listeners will always be notified.
2015-09-22 15:40:51 +08:00
Dan Poltawski 74ede2d89a Merge branch 'MDL-46157-master' of git://github.com/cameron1729/moodle 2015-09-22 08:15:01 +01:00
Andrew Nicols a32cd742c3 Merge branch 'MDL-51413-master' of git://github.com/jleyva/moodle 2015-09-22 12:22:55 +08:00
Adrian Greeve d64845996b MDL-50917 navigation: Behat tests for viewing user preference page. 2015-09-22 10:57:52 +08:00
Adrian Greeve 508e364f5e MDL-50917 navigation: Unit test for viewing preference page. 2015-09-22 10:57:52 +08:00
Adrian Greeve 0305ee2781 MDL-50917 navigation: Allow users with permission to access preferences. 2015-09-22 10:57:51 +08:00
Andrew Nicols eed34b118a Merge branch 'MDL-51190-master' of https://github.com/pauln/moodle 2015-09-22 07:53:27 +08:00
Daniel Thies c8719db169 MDL-51424 editor_atto: Save selection and editor contents after change 2015-09-21 08:53:16 -05:00
Ferenc Lengyel efc76e9e90 MDL-51402 quiz: notification emails should respect grouping
In the case where teachers do not have the accessallgroups capability,
we only send "an attempt has been sumbitted "notification to teachers
in the same group as the student who submitted.

At the moment this considers all groups in the course. If this
particular quiz has a grouping set, then the logic should only consider
the groups in that grouping.
2015-09-21 13:28:38 +01:00
Dan Poltawski f3164da6cf Merge branch 'MDL-51330-master' of https://github.com/sammarshallou/moodle 2015-09-21 12:10:35 +01:00
Dan Poltawski 524d037fa0 Merge branch 'MDL-51403-master-clilang' of git://github.com/mudrd8mz/moodle 2015-09-21 11:45:15 +01:00
Dan Poltawski ee3ca2d71b Merge branch 'MDL-51052_master' of https://github.com/dmonllao/moodle 2015-09-21 10:53:29 +01:00
Dan Poltawski c331e8f9c0 Merge branch 'MDL-48165-master-dimgrades' of git://github.com/mudrd8mz/moodle 2015-09-21 10:14:47 +01:00
Andrew Nicols 7e59e5d2d1 Merge branch 'MDL-50332_master' of git://github.com/dmonllao/moodle 2015-09-21 15:43:02 +08:00
David Monllao 8f338081cc MDL-50332 enrol_self: Formatting unavailable instances error messages
Many thanks to Andrew Nicols as this patch is based on his
proposal. Thanks Andrew.
2015-09-21 15:39:42 +08:00
Juan Leyva bae627b276 MDL-50541 mod_imscp: New Web Service mod_imscp_get_imscps_by_courses 2015-09-21 09:30:59 +02:00
Juan Leyva 580a14c265 MDL-50536 mod_book: New WS mod_book_get_books_by_courses 2015-09-21 09:30:06 +02:00
Juan Leyva f07a2bb09b MDL-50132 mod_choice: New WS mod_choice_get_choices_by_courses 2015-09-21 09:27:42 +02:00
Andrew Nicols f19aaed3ea Merge branch 'MDL-50790-master' of git://github.com/cameron1729/moodle 2015-09-21 14:31:49 +08:00
Cameron Ball c052d84d3c MDL-50790 tests: Fix outlook fixture. 2015-09-21 14:25:21 +08:00
Cameron Ball 691a2e1a68 MDL-50790 inbound: Stop incorrect amount of lines getting removed.
Too many lines were being removed for GMail senders. The function was
also removed because it is no longer used, and guessing the client
and cutting accordingly is a poor approach and will probably lead
to issues similar to this one.
2015-09-21 14:25:21 +08:00
Dan Poltawski d13dd5bdfd MDL-50790 messageinbound: fixture for gmail 2015-09-21 14:25:12 +08:00
Andrew Nicols 28eca8cf5b Merge branch 'MDL-46878-master' of git://github.com/FMCorz/moodle 2015-09-21 12:05:32 +08:00
Andrew Nicols b7fd9a0d25 Merge branch 'MDL-51311-master' of git://github.com/damyon/moodle 2015-09-21 11:32:55 +08:00
Andrew Nicols 4b65342dba Merge branch 'MDL-51431' of https://github.com/andrewhancox/moodle 2015-09-21 08:09:38 +08:00
Eric Merrill 8bc1d28b1a MDL-47494 question General code cleanup
Remove old browser CSS.
Fix code style problems.
Add many PHPdocs.
Set @package uniformly.
2015-09-19 07:23:52 +01:00
Daniel Neis Araujo e71a336cac MDL-51182 webservices: generate passwords and mail them to new users 2015-09-18 15:40:07 -03:00
Juan Leyva ea5b910b3a MDL-51413 forum: Return additional field in get_forums_by_courses WS 2015-09-18 17:27:14 +02:00
Damyon Wiese 031152cc83 MDL-47494 qtype: Fix the behat tests for OU dd question types 2015-09-18 07:56:27 +01:00
Damyon Wiese 96a744babd MDL-47494 qtype: Bump the version numbers for OU DD qtypes 2015-09-18 07:56:26 +01:00
Damyon Wiese 5a22d35e8b MDL-47494 question_ddwtos: Remove @ou tags from behat. 2015-09-18 07:56:25 +01:00
Damyon Wiese da98a64d91 MDL-47494 question_ddimageortext: Remove wrong @since tag 2015-09-18 07:56:25 +01:00
Damyon Wiese 5a1a082c93 MDL-47494 questions: Add transparency to new ou question type icons 2015-09-18 07:56:24 +01:00
Damyon Wiese f825273476 MDL-47494 questions: Reload XMLDB files for ou question types 2015-09-18 07:56:13 +01:00
Tim Hunt 6e28e15092 MDL-47494 questions: update plugin_manager with the new qtypes 2015-09-18 07:51:42 +01:00
Tim Hunt b9d85e9a45 MDL-47494 gapselect: removing the qtype_combined integration.
Once this question type is in core. This integration with
qtype_combined will have to ship with qtype_combined, which
is no problem.
2015-09-18 07:51:41 +01:00
Tim Hunt 2e8202e022 MDL-47494 ddmarkder: Remove the code for converting old imagetarget Qs
imagetarget was a Moodle 1.9 question type. The ddmarkers plugin
had code for converting old imagetarget questions to new ddmarker
questions. However, since Moodle core does not support upgrading
directly from 1.9, and since I suspect most pople who might need
this code have already used it, I am removing it form core.
2015-09-18 07:51:41 +01:00
Tim Hunt 096b04058b MDL-47494 questions: clean up unnecessary stuff now these are not plugins
* Remove extra stuff from version.php files.
* Remove README.txt files
* Remove OU-specific test annotations.
2015-09-18 07:51:40 +01:00
Tim Hunt 5c8d91d83f Merge branch 'MDL-47494-ddmarker' into MDL-47494 2015-09-18 07:51:37 +01:00
Tim Hunt 2ce6a9c64f Merge branch 'MDL-47494-ddimageortext' into MDL-47494 2015-09-18 07:51:36 +01:00
Tim Hunt 55d4613f22 Merge branch 'MDL-47494-ddwtos' into MDL-47494 2015-09-18 07:51:34 +01:00
Tim Hunt 1fc5d49cc2 Merge branch 'MDL-47494-gapselect' into MDL-47494 2015-09-18 07:51:33 +01:00
David Monllao 2bdeb8ef30 MDL-51052 dml: More info about mysql and case & accent sensitiveness 2015-09-18 11:45:53 +08:00
Frederic Massart d569c0dae2 MDL-46878 blocklib: Testing blocks_delete_instances() 2015-09-18 11:40:09 +08:00
Frederic Massart 080707079d MDL-46878 my: Behat tests to cover reset of all customised pages 2015-09-18 11:40:09 +08:00
Frederic Massart ad347f6874 MDL-46878 my: Allow admins to reset everyone's dashboard 2015-09-18 11:40:09 +08:00
Charles Fulton 3d47155643 MDL-51052 dml: support for sql_like() under utf8_bin 2015-09-18 09:56:43 +08:00
Adrian Greeve 453adb1adf MDL-51108 mod_data: Addition to behat test for Lat. and Long. 2015-09-18 07:33:12 +08:00
Adrian Greeve d25043270c MDL-51108 mod_data: Add validation for Lat. and Long.
Added a check to see that both the Lat. and Long. values
are entered when filling in database module entries.
2015-09-18 07:33:12 +08:00
Adrian Greeve de66ddea5f MDL-51241 cohorts: Update to cohort query.
This improves the speed of returning a list of
cohorts. Thanks to François Gannaz for providing
this patch.
2015-09-18 07:30:37 +08:00
Adrian Greeve f3013ba67e MDL-51259 mod_data: ratings of items not activated.
When selecting a rating method, the restrict rating
to items with dates would be automatically enabled if
not checked. This code brings the data module inline
with forum and glossary.
2015-09-18 07:21:59 +08:00
David Mudrák c0e8a8a526 MDL-51423 clilib: Fix the hard-coded English text with proper string
The string already exists and is part of the install language packs.
This was just forgotten TODO.
2015-09-17 21:12:46 +02:00
David Mudrák 028bbc5b17 MDL-51423 clilib: Introduce cli_write() and cli_writeln() functions
These are supposed to provide unified API for outputting texts from the
CLI scripts, without the need to mix other cli_* functions with echo()
and manually concatenated end-of-line character.
2015-09-17 21:12:46 +02:00
David Mudrák 7d62bc2417 MDL-51403 install: Improve the language validation in the CLI installer
There are two essential improvements here. Firstly, by replacing the
file_exists() check with array_key_exists() we make sure that only
actual language code will be written into the config.php file (and not
the empty value in case of input that does not pass the PARAM_SAFEDIR
cleaning).

Additionally, we no longer display the full list of available languages
by default. The list can be displayed in the interactive mode by typing
the ? character instead of the language code. This makes the overall
interface cleaner, does not cause the header information (such as the
Moodle version) to scroll away and makes the nice cli logo more visible
(which was the main motivation for the whole patch anyway ;-).
2015-09-17 21:06:32 +02:00
Juan Leyva 91ea3678a9 MDL-50349 scorm: New WS mod_scorm_get_scorms_by_courses 2015-09-17 18:16:22 +02:00
Eloy Lafuente (stronk7) d230899db8 weekly release 3.0dev 2015-09-17 18:01:12 +02:00
Syxton 60cf074239 MDL-48947 course: Section button cleanup
Creates a new method of handling all the section related icons.
Including a new method that places these actions in a menu for topic and
weeks course formats. (This version replaces "Edit" with "Topic/Week/or
Section menu")
2015-09-17 10:40:31 -04:00
Eloy Lafuente (stronk7) 22e97e6413 Merge branch 'MDL-30157_master-fix' of git://github.com/dmonllao/moodle 2015-09-17 11:28:31 +02:00
David Monllao ba523bf5c3 MDL-30157 enrol_manual: timestart a few seconds before
We want to prevent conflicts with get_enrolled_sql trick for db caching
plus users should be able to access the course once enrolled.
2015-09-17 17:09:36 +08:00
Ryan Wyllie ec9e1bec57 MDL-50664 mod_data: tests for 'manageapproved' setting.
Adding test coverage for the 'manageapproved' setting that
was added by Johannes Burk.
2015-09-17 06:18:26 +00:00
Tim Lock 52296930dc MDL-51440 gradeimport_direct: fix config require statement 2015-09-17 14:51:24 +09:30
Simey Lameze 8c55a50dba MDL-50959 gradebook: fix XML grade export 2015-09-17 10:34:50 +08:00
Eloy Lafuente (stronk7) 115c5270cc Merge branch 'MDL-50557-master' of git://github.com/jleyva/moodle 2015-09-16 23:24:39 +02:00
Juan Leyva 35219d8bb9 MDL-50557 scorm: Add attempt field in mod_scorm_get_scorm_sco_tracks 2015-09-16 23:18:40 +02:00
Juan Leyva 6b5e69ebe6 MDL-50557 mod_scorm: New WS mod_scorm_get_scorm_sco_tracks 2015-09-16 23:18:39 +02:00
Eloy Lafuente (stronk7) 6c9872941e Merge branch 'MDL-50353-master' of git://github.com/jleyva/moodle 2015-09-16 23:15:59 +02:00
Juan Leyva f26274a45c MDL-50353 mod_scorm: Fix problem with ids ordering in tests 2015-09-16 23:14:11 +02:00
Eloy Lafuente (stronk7) 765d7b7fd5 Merge branch 'MDL-50353-master' of git://github.com/jleyva/moodle 2015-09-16 22:11:55 +02:00
Juan Leyva 6b4ceb24cf MDL-50353 scorm: New Web Service mod_scorm_insert_scorm_tracks 2015-09-16 22:07:34 +02:00
Juan Leyva 822e9df70d MDL-50352 scorm: New Web Service mod_scorm_get_scorm_user_data 2015-09-16 19:25:19 +02:00
Juan Leyva dfe927c8d6 MDL-50351 scorm: New Web Service mod_scorm_get_scorm_scoes 2015-09-16 19:25:17 +02:00
Andrew Hancox 7fca67ee29 MDL-51431 enrol_flatfile: Fix for startdate when updating users 2015-09-16 11:00:41 +01:00
Marina Glancy 0f7f30021a MDL-51217 auth: check if recaptcha enabled for current plugin 2015-09-16 15:30:04 +08:00
Marina Glancy a853f15fc3 MDL-46705 admin: Validate unique shortname for frontpage course 2015-09-16 14:38:52 +08:00
Marina Glancy 70fb46c87f MDL-51427 user: correctly use strings for phone1 and phone2
Thanks to Olumuyiwa Taiwo for original patch

AMOS BEGIN
  CPY [phone,core],[phone1,core]
AMOS END
2015-09-16 13:37:46 +08:00
David Monllao 974053b93f MDL-48881 mod_lesson: A couple of performance improvements
- Improve memory usage on db drivers not able to use recordsets
  properly
- !array_key_exists replaced by empty calls
2015-09-16 13:32:49 +08:00
David Monllao 48cec36dfb Merge branch 'MDL-48881_m30v5' of git://github.com/sbourget/moodle 2015-09-16 13:20:52 +08:00
David Monllao 13a2aff3f9 Merge branch 'MDL-49561_master' of git://github.com/markn86/moodle
Conflicts:
	lib/bennu/readme_moodle.txt
2015-09-16 09:57:22 +08:00
David Monllao b3ec8cf95e Merge branch 'MDL-46705-master' of git://github.com/dkns/moodle 2015-09-16 09:44:37 +08:00
David Monllao 04fadbeda4 Merge branch 'MDL-50890_master' of git://github.com/dmonllao/moodle 2015-09-16 09:10:28 +08:00
David Monllao 6bc490e270 MDL-50890 enrol_flatfile: Correcting typo and return
Would be safer to return nothing, execute methods don't have
a return. I understand this return 2 was inherited from the
previous cron function.
2015-09-16 09:08:34 +08:00
Jun Pataleta fd1b399527 MDL-50890 enrol_flatfile: Modifications for compliance with standards
Also changed the scheduled task to run every hour.
2015-09-16 09:08:34 +08:00
Troy Williams a771854c46 MDL-50890 enrol_flatfile: Replace cron processing with scheduled task
Replace enrolment plugin flatfile cron processing with scheduled task
2015-09-16 09:08:34 +08:00
Sam Chaffee 5090d26b3a MDL-50936 Atto: Add upgrade path for updating equations setting 2015-09-16 08:24:26 +08:00
Jason Hardin 4f758d7716 MDL-50936 Atto: Add missing math equation buttons 2015-09-16 08:23:20 +08:00
Eloy Lafuente (stronk7) a4a972285e Merge branch 'MDL-50685_master' of git://github.com/dmonllao/moodle 2015-09-16 02:15:51 +02:00
Eloy Lafuente (stronk7) 7bf83951f9 Merge branch 'MDL-50930-master' of git://github.com/jleyva/moodle 2015-09-16 02:11:12 +02:00
Eloy Lafuente (stronk7) 11fa8ca760 Merge branch 'MDL-49032' of https://github.com/stronk7/moodle 2015-09-16 01:00:03 +02:00
Eloy Lafuente (stronk7) 6aa00dadc6 MDL-49032 lib/bennu: update readme to document the change 2015-09-16 00:53:45 +02:00
Joby Harding f66cc72387 MDL-49032 lib/bennu: use HTAB only when folding lines 2015-09-16 00:45:51 +02:00
Eloy Lafuente (stronk7) a9285cd5d4 Merge branch 'MDL-30157_master' of git://github.com/dmonllao/moodle 2015-09-16 00:19:04 +02:00
Eloy Lafuente (stronk7) 62652cdc63 Merge branch 'MDL-50959-master' of git://github.com/lameze/moodle 2015-09-15 23:36:14 +02:00
Eloy Lafuente (stronk7) 4deecee44f Merge branch 'MDL-50892-master' of git://github.com/marinaglancy/moodle 2015-09-15 23:12:22 +02:00
Eloy Lafuente (stronk7) a16a3592f2 Merge branch 'MDL-50766_master' of git://github.com/dmonllao/moodle 2015-09-15 23:02:25 +02:00
Eloy Lafuente (stronk7) 3c80f01661 MDL-49942 core_course: bump version 2015-09-15 22:53:45 +02:00
Eloy Lafuente (stronk7) f536f4a77c Merge branch 'MDL-49942-master' of git://github.com/jleyva/moodle 2015-09-15 22:52:13 +02:00
Davo Smith 581e66373a MDL-51412 question: add index to qtype field 2015-09-15 12:10:50 +01:00
David Monllao 7a3451bc1a MDL-33564 rss: Fixing missing param type 2015-09-15 17:58:05 +08:00
David Monllao b3434ca51d Merge branch 'MDL-33564-master' of git://github.com/danpoltawski/moodle
Conflicts:
	lib/upgrade.txt
2015-09-15 17:56:20 +08:00
David Monllao 3bc0824e46 Merge branch 'MDL-51213-master' of git://github.com/damyon/moodle 2015-09-15 17:28:34 +08:00
David Monllao b3e8e09175 Merge branch 'MDL-50884-master' of git://github.com/lameze/moodle 2015-09-15 17:15:47 +08:00
David Monllao 224d819678 Merge branch 'MDL-50964-master' of git://github.com/jleyva/moodle
Conflicts:
	group/tests/externallib_test.php
	lib/db/services.php
2015-09-15 17:09:33 +08:00
David Monllao 8a08668255 Merge branch 'MDL-50966-master' of git://github.com/jleyva/moodle 2015-09-15 16:58:54 +08:00
David Monllao d005d71881 MDL-30157 enrol_manual: New option to enrol from now
We set the new now option as the default one, as other enrol
plugins use it as the default enrolment start date. We are keeping
the default to today on upgrades.
2015-09-15 16:25:25 +08:00
David Monllao 32f1e17a01 MDL-30157 enrol_manual: Setting proper default
The wrong default value was working because of count starting from 1.
2015-09-15 16:25:25 +08:00
Andrew Nicols 1c97055b68 Merge branch 'MDL-50983-master' of git://github.com/junpataleta/moodle 2015-09-15 15:25:46 +08:00
Juan Leyva 740c354f17 MDL-49942 core_course: New Web Service core_course_search_courses 2015-09-15 09:18:26 +02:00
Johannes Burk 97fe80ad68 MDL-50664 mod_data: add 'manageapproved' setting.
New function data_user_can_manage_entry checks whether a user is allowed to manage an entry.
Considering manageentries capability, data_in_readonly_period() result,
ownership (determined by data_isowner()), approval and manageapproved setting.
2015-09-15 07:16:40 +00:00
David Monllao 366d350412 Merge branch 'MDL-50921-master' of git://github.com/ryanwyllie/moodle 2015-09-15 14:26:57 +08:00
David Monllao de5dd7c5c5 MDL-51048 backup: Removing unnecessary var 2015-09-15 13:43:45 +08:00
David Monllao 79167d5fa9 Merge branch 'MDL-51048' of git://github.com/timhunt/moodle 2015-09-15 13:40:55 +08:00
Andrew Nicols bbbca469ad Merge branch 'MDL-51290-master' of git://github.com/cameron1729/moodle 2015-09-15 13:05:30 +08:00
Damyon Wiese 4093d64332 MDL-50783 ajax: Default for ajax calls to requirelogin=true 2015-09-15 13:01:30 +08:00
Paul Nicholls 0bad799dc4 MDL-51190 javascript: Make "maximised embed" compatible with MS Edge
MS Edge exhibits strange behaviour when M.util.init_maximised_embed hides
the embedded document by setting its width and height to 0px.  Toggling
display:none instead achieves the intended goal without breaking Edge.
2015-09-15 16:34:55 +12:00
David Monllao 785ebcdbe6 Merge branch 'MDL-51008-master' of git://github.com/marinaglancy/moodle 2015-09-15 11:21:22 +08:00
Marina Glancy 4f2424ca1c MDL-51408 badges: fix criteria for custom profile fields 2015-09-15 11:17:21 +08:00
Andrew Nicols 52eaa0ceda Merge branch 'MDL-50982-master' of git://github.com/junpataleta/moodle 2015-09-15 11:01:50 +08:00
David Monllao d4218943d8 Merge branch 'MDL-51147' of git://github.com/timhunt/moodle 2015-09-15 10:07:55 +08:00
David Monllao 9ff2a265d0 Merge branch 'm30_MDL-51363_Fix_Default_Settings_1x_Restore' of git://github.com/scara/moodle
Conflicts:
	mod/scorm/version.php
2015-09-15 09:58:08 +08:00
Andrew Nicols 0b90eb6155 Merge branch 'MDL-50981-master' of git://github.com/junpataleta/moodle 2015-09-15 08:33:06 +08:00
Andrew Nicols 5a191b2f44 Merge branch 'MDL-51017-master' of git://github.com/jleyva/moodle 2015-09-15 08:23:10 +08:00
Matteo Scaramuccia 32c114ca04 MDL-51363 SCORM: fixed default settings on restoring 1.x backups 2015-09-14 23:48:25 +02:00
Cameron Ball 80ef91effa MDL-51290 user: Expand picture section in profile by default 2015-09-14 17:49:48 +08:00
Cameron Ball fdb5d62660 MDL-49973 behat: Update delete button names 2015-09-14 17:46:35 +08:00
Andrew Davis 6537778044 MDL-49973 changed continue to delete on delete confirmations 2015-09-14 17:40:34 +08:00
Juan Leyva 22de67f4af MDL-51017 mod_scorm: New WS mod_scorm_get_scorm_attempt_count 2015-09-14 10:55:52 +02:00
David Monllao 742548e251 Merge branch 'wip-mdl-51101' of git://github.com/rajeshtaneja/moodle 2015-09-14 16:18:01 +08:00
Simey Lameze eb8010351c MDL-50207 block_activity_results: css styling on activity results block
This commit fixes minor styling issues on the activity results block and also add RTL css.
2015-09-14 16:03:40 +08:00
Andrew Nicols ac43dc23e4 Merge branch 'MDL-50783-master' of git://github.com/damyon/moodle 2015-09-14 15:52:42 +08:00
Andrew Nicols 7267daa8d0 MDL-50994 mod_forum: Correct docs for discussion WS 2015-09-14 15:43:26 +08:00
Andrew Nicols 08a4dbfe10 Merge branch 'MDL-50994-master' of git://github.com/jleyva/moodle 2015-09-14 15:40:05 +08:00
Damyon Wiese 88982b71b2 MDL-50783 ajax: Properly deprecate the is_allowed_from_ajax() methods. 2015-09-14 15:10:40 +08:00
Damyon Wiese ad348cbdf9 MDL-50783 ajax: Add specific check for NO_MOODLE_COOKIES
If loginrequired is set for a webservice - NO_MOODLE_COOKIES cannot
be true - or it is a coding error.
2015-09-14 15:10:39 +08:00
Damyon Wiese ba224fb42c MDL-50783 Ajax: Configure how to call a webservice through db/service.php
Now the db/service.php array can contain these extra keys to provide information
on how a webservice may be called:

    'ajax' => true (Default is false)

Replaces the xx_is_allowed_from_ajax callback.

    'loginrequired' => false (Default is true)

Means that this webservice can be called through lib/ajax/service-nosession.php
which sets NO_MOODLE_COOKIES to true (faster). This is only safe for webservices returning
static public data (e.g. get_string).
2015-09-14 15:10:21 +08:00
Andrew Nicols 2cf588d4dc Merge branch 'MDL-50980-master' of git://github.com/junpataleta/moodle 2015-09-14 15:07:31 +08:00
David Monllao 09fe55f4de Merge branch 'MDL-51170-master' of git://github.com/andrewnicols/moodle 2015-09-14 14:14:09 +08:00
Andrew Nicols 9608bed133 Merge branch 'MDL-50782-master' of git://github.com/damyon/moodle 2015-09-14 14:00:52 +08:00
David Monllao 10fea1efb1 Merge branch 'MDL-51191-master' of git://github.com/StudiUM/moodle 2015-09-14 13:58:55 +08:00
David Monllao 1cb33c66ef Merge branch 'MDL-51205_pix_style' of git://github.com/andyjdavis/moodle 2015-09-14 13:31:06 +08:00
David Monllao 8de4e68e0e Merge branch 'MDL-51296-master' of git://github.com/junpataleta/moodle 2015-09-14 13:16:52 +08:00
David Monllao 14face570f Merge branch 'MDL-51253_forum_urls' of git://github.com/BenKelada/moodle 2015-09-14 13:06:38 +08:00
Ben Kelada 3d8d8a8ca6 MDL-51253 forum: fix urls for exceptions and redirects 2015-09-14 14:18:50 +10:00
Jun Pataleta 0b3ed7f777 MDL-51296 blog: Added title that reflects the blog's editing mode 2015-09-14 10:52:09 +08:00
David Monllao 7426ea3dac Merge branch 'MDL-51217-master' of git://github.com/lucisgit/moodle 2015-09-14 10:04:08 +08:00
Simey Lameze ef6998015f MDL-50884 auth_shibboleth: fix logout handler url generation
This patch fixes the shibboleth redirect url generation, that can create invalid url
if the shibboleth logout_handler setting has a parameter generating two parameters
with (?) instead of (&).

Thanks to Matteo Boni for the proposed solution.
2015-09-14 09:48:55 +08:00
David Monllao 3f1bc32d22 Merge branch 'MDL-51232' of git://github.com/jinuabraham/moodle 2015-09-14 09:38:56 +08:00
Simey Lameze e6c990ad21 MDL-50959 gradebook: fix XML grade publishing score 2015-09-14 09:04:14 +08:00
Mark Nelson 53914e4465 MDL-51051 core_grades: 'Categories and items' => 'Gradebook setup' 2015-09-14 08:23:32 +08:00
Daniel Thies d0ec31716b MDL-51228 atto_editor: Add documententation for inlineFormat flag 2015-09-13 14:29:07 -05:00
Colin Campbell 9901bdf7eb MDL-51305 grade: Fix slow grade operations by setting grade_item early.
Exports were fetching the grade item for every item-user combination.
Setting the grade_item object on the grade_item early prevents that.
2015-09-11 15:41:20 -05:00
Jean-Philippe Gaudreau 286d6c81bf MDL-51191 assign: Optimizing slow SQL query for MySQL 2015-09-11 11:10:03 -04:00
Juan Leyva 7ab43ac84a MDL-50994 mod_forum: New Web Service mod_forum_add_discussion 2015-09-11 13:31:36 +02:00
Juan Leyva 23b398fc81 MDL-50930 completion: New WS core_completion_mark_course_self_completed 2015-09-11 11:31:12 +02:00
Juan Leyva c0ef63eb38 MDL-50964 core_group: New Web Service core_group_get_activity_groupmode 2015-09-11 11:30:28 +02:00
Juan Leyva 7107c2f066 MDL-50966 core_group: New WS core_group_get_activity_allowed_groups 2015-09-11 11:29:38 +02:00
David Monllao 8f76bfb628 MDL-50766 grunt: Check that there are yui modules before running shifter 2015-09-11 15:11:48 +08:00
Jetha Chan ec887caa4a MDL-50685 core_form: disable hidden options, don't just hide 2015-09-11 15:08:37 +08:00
Marina Glancy 278b8d18a2 MDL-50892 mod: allow activity to have name '0' 2015-09-11 10:51:52 +08:00
Jun Pataleta e950bca42d MDL-50983 templates: Create core template "columns-autoflow-1to1to1" 2015-09-11 10:32:02 +08:00
Jun Pataleta 2947d0397a MDL-50982 templates: Create core template "columns-1to1to1" 2015-09-11 10:19:00 +08:00
Jun Pataleta 631cc14020 MDL-50981 templates: Create core template "columns-1to2" 2015-09-11 10:08:41 +08:00
Jun Pataleta a317a83b5c MDL-50980 templates: Create core template "columns-2to1" 2015-09-11 10:03:38 +08:00
Eloy Lafuente (stronk7) f495510548 weekly release 3.0dev 2015-09-10 11:09:52 +02:00
Eloy Lafuente (stronk7) 501d9ae74b Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-09-10 11:09:46 +02:00
Rajesh Taneja 1a5a476b03 MDL-51101 behat: Fixed wrong hover step usage
Hover step was being mis-used for checking activity completion
This is replaced with proper step which check for img element
2015-09-10 14:46:12 +08:00
Rajesh Taneja d8ada0f19b MDL-51101 behat: Removed old behat steps checking feature
This was introduced when there were no features
testing all the steps. Now we have all use-cases
so removing this feature file
2015-09-10 14:43:59 +08:00
rajesh Taneja cd3a6a78b6 MDL-50516 behat: Back/next button reloads page
When next/back button is pressed in phantomjs/browserkit
it reload page, so adding a bug_phantomjs, so that we can
test the lesson re-attempt scenario
2015-09-10 14:30:28 +08:00
Damyon Wiese 1748938e15 MDL-51311 javascript: Teach Behat to wait for pending JQuery ajax 2015-09-10 13:02:16 +08:00
Damyon Wiese 08bda175de MDL-51213 weblib: Allow filter=false option for format_string
And pass this from external_format_string correctly.
2015-09-10 12:55:52 +08:00
Damyon Wiese 3676873566 MDL-51213 webservice: Fix wrong use of external_format_text
Was passing cm->id instead of context->id.
2015-09-10 12:13:02 +08:00
Eloy Lafuente (stronk7) e36d7d57ae Merge branch 'MDL-50015-master' of git://github.com/jleyva/moodle 2015-09-10 01:42:06 +02:00
Eloy Lafuente (stronk7) 7650a4c54d Merge branch 'MDL-50537-master' of git://github.com/jleyva/moodle 2015-09-10 01:01:32 +02:00
Tim Hunt 53eee12a7a MDL-51147 qtype_match: stats should cope even if Q edited badly
The numbers become pretty meaningless, but we need to avoid fatal
errors.
2015-09-09 16:48:27 +01:00
Dan Poltawski 5760a1b083 Merge branch 'MDL-50944-master' of git://github.com/jleyva/moodle 2015-09-09 14:29:53 +01:00
Juan Leyva 1df5d7191c MDL-50537 mod_chat: Use the utility class and several fixes 2015-09-09 14:08:02 +02:00
Costantino Cito 9f7de6317d MDL-50537 mod_chat: New WS mod_chat_get_chats_by_courses 2015-09-09 14:08:01 +02:00
Juan Leyva 82f0f5e32c MDL-50537 core_webservice: New external functions utility class 2015-09-09 14:08:01 +02:00
Juan Leyva 43ff833def MDL-50995 mod_forum: Fix WS to not rely in the DB ordering defaults 2015-09-09 12:59:53 +02:00
Andrew Nicols d3d8f81caa MDL-50995 mod_forum: Coding style fixes 2015-09-09 16:16:43 +08:00
Andrew Nicols edf84ada39 Merge branch 'MDL-50995-master' of git://github.com/jleyva/moodle 2015-09-09 16:03:05 +08:00
Andrew Nicols f6c3a22946 Merge branch 'MDL-50852-master' of git://github.com/junpataleta/moodle 2015-09-09 15:38:00 +08:00
Jun Pataleta 36e0030ffe MDL-50852 formslib: Fixed client-side form validation problem.
This patch fixes the problem of client validation being broken when
shortforms is not enabled. This issue is caused by moodle-core-event
module not being loaded and the broadcast parameter in the
Y.Global.publish set to 2 instead of true.
2015-09-09 15:35:01 +08:00
Mark Nelson ab2d8946cd MDL-50516 mod_lesson: changes to existing behat tests 2015-09-09 15:27:24 +08:00
Mark Nelson ecaff8f042 MDL-50516 mod_lesson: added behat tests 2015-09-09 15:27:23 +08:00
Mark Nelson 051b45f864 MDL-50516 core_behat: added ability to go back, forward and reload the browser 2015-09-09 15:27:23 +08:00
Mark Nelson 139645d4a7 MDL-50516 mod_lesson: fixed issue with grade not using minquestions
It's possible to reach the end of the lesson, get your result,
click back until you get to the last question, answer it correctly
and then be awarded a result of 100%. This was because the grade
calculation would only include the questions answered, rather than
all of them in the lesson. However, you can not fix this by always
grading by the amount of questions in the lesson as some lessons
bypass certain questions depending on the answer to previous ones.
The minquestion setting can now successfully be used to prevent this
behaviour by rewording the misleading string and adding logic.
2015-09-09 15:27:23 +08:00
Mark Nelson d60350ddac MDL-50516 mod_lesson: prevented deletion of previous attempts
The 'startlastseen' flag was removing any previous attempts
the user had from the DB. This meant that the user could
simply re-answer the question, regardless of the number
of attempts allowed.
2015-09-09 15:27:23 +08:00
Mark Nelson 0dea8ed76a MDL-50516 mod_lesson: prevented user from repeating question
It was possible in the lesson module for a user to
answer a question, get the result, then click back
in the browser and re-answer it, even if they exceeded
the number of attempts allowed per question.
2015-09-09 15:27:23 +08:00
Eloy Lafuente (stronk7) b8b323d6a9 Merge branch 'wip-mdl-51322' of https://github.com/rajeshtaneja/moodle 2015-09-09 08:21:45 +02:00
Eloy Lafuente (stronk7) 5c6c4a986a Merge branch 'wip-MDL-51357-master' of git://github.com/marinaglancy/moodle 2015-09-09 08:00:46 +02:00
Marina Glancy 2ff1f05183 MDL-51357 roles: fix table layout after MDL-38763 2015-09-09 13:07:11 +08:00
Ankit Agarwal 731c2712e7 MDL-50173 ratings: Use proper checks to ensure ratings are viewable.
Mainly to verify groups visibility this new callback has been created.

Note this was originally 3 commits but for amending purposes they have
been squashed.
2015-09-09 04:07:21 +02:00
Stephen Bourget 0a3c1f79ca MDL-48881 Lesson: Show all attempts on reports. 2015-09-08 21:09:09 -04:00
Andrew Nicols 050bfb3302 Merge branch 'wip-MDL-34938-master' of git://github.com/marinaglancy/moodle 2015-09-09 09:00:27 +08:00
Dan Poltawski 760e38d0f4 Merge branch 'MDL-50013-master' of git://github.com/jleyva/moodle 2015-09-08 15:21:27 +01:00
Dan Poltawski e90783958c Merge branch 'MDL-50853-master' of git://github.com/jleyva/moodle 2015-09-08 13:37:35 +01:00
Dan Poltawski 7e0488ea54 Merge branch 'MDL-51194' of git://github.com/lazydaisy/moodle 2015-09-08 13:27:37 +01:00
Dan Poltawski 33001202d6 MDL-51132 course: add tag require 2015-09-08 13:22:54 +01:00
John Okely fa5a3cdedc MDL-50709 groups: Prevent XSS in grouping description 2015-09-08 12:47:54 +02:00
Dan Poltawski 9e66dff06c Merge branch 'wip-MDL-51132-master' of https://github.com/marinaglancy/moodle 2015-09-08 10:46:38 +01:00
Dan Poltawski 0c05ec3b96 Merge branch 'wip-MDL-50323-master' of git://github.com/abgreeve/moodle 2015-09-08 09:14:14 +01:00
Dan Poltawski 07cc2db61b Merge branch 'MDL-51307-master' of git://github.com/cameron1729/moodle 2015-09-08 09:11:57 +01:00
Andrew Nicols e5728db829 Merge branch 'MDL-51281-master' of git://github.com/jleyva/moodle 2015-09-08 14:07:27 +08:00
Andrew Nicols 1147c5a3d4 Merge branch 'MDL-51325-master' of git://github.com/jleyva/moodle 2015-09-08 12:51:30 +08:00
Cameron Ball e683771623 MDL-51307 navigation: hide message button 2015-09-08 12:10:07 +08:00
Cameron Ball 9b5882d3e1 MDL-46157 drag and drop: Improve item labels
Ignore the edit menu when determining the region to drag.
2015-09-08 11:33:24 +08:00
Marina Glancy 5723dcdd85 MDL-34938 enrol_meta: sync enrolment start/end dates 2015-09-08 10:28:54 +08:00
Marina Glancy d6bef7e706 MDL-51008 grades: show correct default value in overview report 2015-09-08 10:11:20 +08:00
Andrew Nicols fd23f8e7b2 Merge branch 'MDL-51245' of git://github.com/stronk7/moodle 2015-09-08 09:24:00 +08:00
Adrian Greeve 4c607947b2 MDL-50323 themes: Course unordered lists correctly styled.
Thank you to Ann Adamcik for providing this patch.
2015-09-08 09:23:40 +08:00
Damyon Wiese 5d8c198711 MDL-50782 Ajax: No require_login for all ajax webservice calls
Some webservice functions need to be available without a login, e.g.
fetching strings and templates.

External functions must call validate_context if they require a valid login etc.

Added a new parameter to services.php: "loginrequired". Default is true.
2015-09-08 09:16:58 +08:00
Eloy Lafuente (stronk7) 48657a6713 MDL-51245 sqlsrv: Diagnose missing READ_COMMITTED_SNAPSHOT mode
Without it, transactions are executed in standard READ_COMMITED
mode, without snapshoting/row versioning, leading to update
conflicts under high concurrency.
2015-09-08 02:55:53 +02:00
Eloy Lafuente (stronk7) a9daab4927 MDL-51245 mssql: Diagnose missing READ_COMMITTED_SNAPSHOT mode
Without it, transactions are executed in standard READ_COMMITED
mode, without snapshoting/row versioning, leading to update conflicts
under high concurrency.
2015-09-08 02:55:45 +02:00
Andrew Nicols ebdfde7664 Merge branch 'MDL-50287-master' of git://github.com/danpoltawski/moodle 2015-09-08 08:18:03 +08:00
Petr Skoda e4ac3879c2 MDL-50860 core: improve creation of random strings 2015-09-08 01:07:37 +02:00
Tim Lock d89dc6daa5 MDL-42670 mod_assign: Fix recent activity block when blind marking is on 2015-09-07 22:41:41 +02:00
sam marshall b9dba4e3aa MDL-51330 Cron: In log, scheduled tasks don't show component 2015-09-07 18:40:05 +01:00
Corey Wallis a3f5974065 MDL-51048 IMS-CC: Fix import & export of true/false questions 2015-09-07 16:05:11 +01:00
Marina Glancy f06d8d94a1 MDL-50744 enrol_meta: fix incorrect role assign 2015-09-07 10:29:02 +01:00
Adrian Greeve 40a154551f MDL-48371 editors: Option for removing managefiles
We want to remove the managefiles button from the
editors in the wiki so that students don't delete
each others files.
2015-09-07 09:59:35 +01:00
Marina Glancy bec7e6dcb0 MDL-50921 message: allow popup messages from noreply user
Thanks Gary Harris for the patch
2015-09-07 08:11:45 +00:00
Marina Glancy 0d1e545612 MDL-51132 tags: do not use user tags for tagging courses 2015-09-05 11:21:15 +08:00
Mark Nelson 6ae33efccb MDL-49561 core_lib: added info to bennu readme
Also did some minor tweaks to existing code.
2015-09-04 19:38:55 -07:00
Lars Anderson 2be327dca9 MDL-49561 core_calendar: Fix ical export for events with no duration 2015-09-04 19:33:53 -07:00
lazydaisy 3278fd77f2 MDL-51194 theme_bootstrapbase: Move CSS classes from /less/moodle.less 2015-09-04 22:46:59 +01:00
Juan Leyva 6c9b2bb5fe MDL-50013 mod_book: New WS mod_book_view_book 2015-09-04 11:18:10 +02:00
Juan Leyva 1af52267d3 MDL-50013 mod_book: Move logging and completion to new API 2015-09-04 11:17:39 +02:00
Juan Leyva e648d036f8 MDL-50015 mod_imscp: New WS mod_imscp_view_imscp 2015-09-04 11:16:58 +02:00
Juan Leyva 947b02148e MDL-50015 mod_imscp: Move logging and completion to new API 2015-09-04 11:15:54 +02:00
Juan Leyva edf6db6547 MDL-51281 completion: Fixed incorrect returned parameter type
Parameter status in external function get_course_completion_status
2015-09-04 11:14:03 +02:00
Juan Leyva c7697399d1 MDL-51325 notes: Fix external get_course_notes to return site notes 2015-09-04 11:05:08 +02:00
rajesh Taneja 58fad4b873 MDL-51322 behat: ensure the window is properly closed
This is to ensure we have other window closed
so there is no race-around condition
2015-09-04 16:40:14 +08:00
Damyon Wiese 9d3c6b95c7 MDL-48861 assign: Fix the "needs grading" filter
When auto-creating a new grade record - do not set the timemodified > than the submission timemodified
2015-09-04 11:05:57 +08:00
AMOS bot c188c01e81 Automatically generated installer lang files 2015-09-04 00:04:05 +08:00
Andrew Hancox ee5d4eef08 MDL-50524 mod_assign: preventsubmissionnotingroup for multiple groups
When preventsubmissionnotingroup and a user is in multiple groups, display
relevant error messages to the user and teacher
2015-09-03 14:54:46 +01:00
Dan Poltawski 1dabedeedf weekly release 3.0dev 2015-09-03 12:31:49 +01:00
Dan Poltawski 4837c7e472 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-09-03 12:31:47 +01:00
rajesh Taneja 58031eea30 MDL-51090 behat: switch to main window 2015-09-03 10:26:33 +01:00
Damyon Wiese 7cf70b0d97 MDL-38763 roles: Fix example context for mustache templates. 2015-09-03 10:19:21 +02:00
Ryan Wyllie c47f3803f1 MDL-49536 theme_clean: update help text for logo
Updated the help text on the theme settings page to
mention that the theme logo will only be displayed on
the front page and login page.

Conflicts:
	theme/upgrade.txt
2015-09-03 10:19:20 +02:00
Marina Glancy e6acf72970 MDL-50919 behat: temporary fix until behat learns to wait for JQuery 2015-09-03 10:19:20 +02:00
rajesh Taneja 5d38a5cd33 MDL-51285 mod_forum: Discussion post should not have same time stamp
Discussion post are sorted by timemodified
if they have same timemodified then results
will be random
2015-09-03 15:33:23 +08:00
Eloy Lafuente (stronk7) e45f622b8e Merge branch 'MDL-29801_master' of git://github.com/markn86/moodle 2015-09-02 19:19:27 +02:00
Juan Leyva cdb5d405c1 MDL-50853 mod_chat: Unit tests for the external lib 2015-09-02 17:26:05 +02:00
Juan Leyva 5841b9d5d3 MDL-50853 mod_chat: New Web Service mod_chat_view_chat 2015-09-02 17:23:43 +02:00
Juan Leyva 8380bc7fc0 MDL-50853 mod_chat: New Web Service mod_chat_get_chat_latest_messages 2015-09-02 17:23:42 +02:00
Juan Leyva 874aa80f67 MDL-50853 mod_chat: New Web Service mod_chat_send_chat_message 2015-09-02 17:23:41 +02:00
Juan Leyva e4076a6e4c MDL-50853 mod_chat: New Web Service mod_chat_get_chat_users 2015-09-02 17:23:40 +02:00
Juan Leyva 1ca4cdf3e9 MDL-50853 mod_chat: New Web Service mod_chat_login_user 2015-09-02 17:16:13 +02:00
Eloy Lafuente (stronk7) 8a6900ff56 MDL-50919 tags: minor fixes and version bump
This fixes:
- An incorrect exception message.
- tablelib weird behavior creating up to
  pagesize empty rows.

Also forces a version bump so new webservices will become installed.
2015-09-02 13:25:44 +02:00
Juan Leyva 50a2031712 MDL-50995 mod_forum: New WS mod_forum_add_discussion_post 2015-09-02 12:20:06 +02:00
Eloy Lafuente (stronk7) 544be5ad4d Merge branch 'wip-MDL-50919-master' of https://github.com/marinaglancy/moodle 2015-09-02 11:42:11 +02:00
Juan Leyva dffb87edf6 MDL-50944 mod_choice: Unit tests for external functions 2015-09-02 11:29:38 +02:00
Mark Nelson 9cf81a1a16 MDL-29801 core_message: added behat test for deleting messages 2015-09-02 01:45:51 -07:00
Juan Leyva 4c4d3b7303 MDL-50944 mod_choice: New Web Service mod_choice_view_choice 2015-09-02 10:35:37 +02:00
Juan Leyva 1006459415 MDL-50944 mod_choice: New Web Service mod_choice_submit_choice_response 2015-09-02 10:35:36 +02:00
Juan Leyva 565528cebc MDL-50944 mod_choice: New Web Service mod_choice_get_choice_options 2015-09-02 10:35:36 +02:00
Juan Leyva b87f31db53 MDL-50944 mod_choice: New Web Service mod_choice_get_choice_results 2015-09-02 10:35:35 +02:00
Mark Nelson 36d29c089c MDL-29801 core_message: added ability to delete messages
Thanks goes to Jetha for providing the HTML and CSS.
2015-09-02 01:31:17 -07:00
Mark Nelson 4582308508 MDL-29801 core_message: added delete message caps 2015-09-02 01:29:41 -07:00
Dan Poltawski b85e8b747c Merge branch 'MDL-50891_master-unit-test-fix' of git://github.com/dmonllao/moodle 2015-09-02 09:23:07 +01:00
Tim Hunt 6b3bd52fae MDL-51090 question manual grading: fixing for testing issues 2015-09-02 15:09:34 +08:00
Marina Glancy ef4c23ccd2 MDL-50919 tags: new WS core_tag_get_tags 2015-09-02 14:15:16 +08:00
Marina Glancy 8e35585390 MDL-50919 tags: new UI for managing tags 2015-09-02 14:15:13 +08:00
Marina Glancy 0cf7252406 MDL-50919 behat: Step for keypress event in behat 2015-09-02 14:15:09 +08:00
David Monllao c3e1c9b1f3 MDL-50891 core_useragent: Restore default after tests 2015-09-02 13:08:47 +08:00
David Monllao 8b25614c93 MDL-51172 core_files: Using an invented file format 2015-09-02 10:26:26 +08:00
David Monllao dacf3ce4b8 Merge branch 'MDL-51172' of git://github.com/ramdesh/moodle 2015-09-02 10:25:24 +08:00
David Monllao 433eb975a0 Merge branch 'MDL-50529_dupe' of git://github.com/andyjdavis/moodle 2015-09-02 09:58:17 +08:00
David Monllao f242c83c77 Merge branch 'MDL-51090' of git://github.com/timhunt/moodle 2015-09-02 09:47:34 +08:00
David Monllao c32c21802b Merge branch 'MDL-50971' of git://github.com/NeillM/moodle 2015-09-02 09:23:11 +08:00
David Monllao 25d9ae9a93 Merge branch 'MDL-50891-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/deprecatedlib.php
2015-09-02 08:54:55 +08:00
David Monllao 11e1e7cf39 Merge branch 'MDL-50920' of git://github.com/sk-unikent/moodle 2015-09-02 08:44:36 +08:00
Eloy Lafuente (stronk7) 89875d2a8a Merge branch 'MDL-50641-master' of git://github.com/danpoltawski/moodle 2015-09-02 01:53:09 +02:00
Eloy Lafuente (stronk7) 17d2a336d1 MDL-43896 admin: Avoid empty(expression), not working under PHP 5.4 2015-09-02 01:20:09 +02:00
Eloy Lafuente (stronk7) 10006e8ff9 Merge branch 'MDL-48494-master-component' of git://github.com/mudrd8mz/moodle 2015-09-02 00:32:13 +02:00
Eloy Lafuente (stronk7) 7cc3cf6fc0 Merge branch 'MDL-43896-master-modulesyntax' of git://github.com/mudrd8mz/moodle 2015-09-02 00:30:33 +02:00
Tim Hunt b2694c0219 MDL-51090 question: further refinements to validating manual grades 2015-09-01 23:05:37 +01:00
David Mudrák eb013fc8bf MDL-48165 workshop: Validate the rubric editing form 2015-09-01 23:37:20 +02:00
David Mudrák b962ae1f41 MDL-48165 workshop: Add support for assessment forms validation 2015-09-01 23:37:17 +02:00
Dan Poltawski c8d19ebea0 MDL-50690 themes: fix commenting coding style
(See also CONTRIB-5891)
2015-09-01 21:11:11 +01:00
Dan Poltawski 20706d0fea Merge branch 'wip_MDL-50690_master' of git://github.com/gjb2048/moodle 2015-09-01 20:59:58 +01:00
AMOS bot 0be100ddef Automatically generated installer lang files 2015-09-02 00:05:28 +08:00
Dan Poltawski 75ac8bac26 Merge branch 'MDL-49950_duplicate_string' of https://github.com/andyjdavis/moodle 2015-09-01 16:20:34 +01:00
Dan Poltawski d1d7d9fd74 Merge branch 'MDL-51236-master' of git://github.com/andrewnicols/moodle 2015-09-01 15:18:31 +01:00
Dan Poltawski 7d8684c552 MDL-38763 fix trailing whitespace 2015-09-01 12:43:23 +01:00
Dan Poltawski 3e5bcbf851 Merge branch 'MDL-38763-master-amd' of git://github.com/mastnym/moodle 2015-09-01 12:17:05 +01:00
David Monllao 85a930f628 Merge branch 'MDL-51234-master' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2015-09-01 18:33:40 +08:00
David Monllao 1652309d02 Merge branch 'MDL-51109-master' of git://github.com/danpoltawski/moodle 2015-09-01 18:31:26 +08:00
Dan Poltawski a6e9c23016 MDL-51109 task: more debug info for failed scheduled tasks 2015-09-01 10:59:55 +01:00
Dan Poltawski cd7b48a2e7 Merge branch 'wip-MDL-25451-master' of git://github.com/marinaglancy/moodle 2015-09-01 10:36:17 +01:00
Dan Poltawski 522c7fd350 Merge branch 'MDL-45841' of git://github.com/timhunt/moodle 2015-09-01 10:14:45 +01:00
David Monllao 1780c76493 Merge branch 'wip-mdl-50963' of git://github.com/rajeshtaneja/moodle 2015-09-01 16:06:14 +08:00
David Monllao 05e4b8760a MDL-51179 editor_atto: Updating since tag to only 3.0
This commit should be reverted if we finally backport this solution.
2015-09-01 16:00:32 +08:00
David Monllao 9f6a55f7ea Merge branch 'MDL-51179-master' of git://github.com/damyon/moodle
Conflicts:
	lib/upgrade.txt
2015-09-01 15:57:21 +08:00
rajesh Taneja a9c9ae52e5 MDL-50963 behat: fixed error string in behat 2015-09-01 14:48:11 +08:00
David Monllao eb41f5539e Merge branch 'MDL-50999-master' of git://github.com/andrewnicols/moodle 2015-09-01 14:35:18 +08:00
Martin Mastny 2493568970 MDL-38763 core_role: AMD module for managing permissions 2015-09-01 07:31:58 +02:00
David Monllao 45cd3f6033 MDL-51013 themes: Info about new navbar_button function 2015-09-01 12:35:31 +08:00
Kevin Wiliarty 77241abbad MDL-51013 themes: Suppress navbar button when custom menu is empty 2015-09-01 12:35:24 +08:00
Damyon Wiese 988592c556 MDL-51179 Atto: Extend autosave fix to cover text changes
Added new functions to editor api - set/get_text so the
original form text can be determined from an editor.

When calling use_editor() you should first call set_text() with
the text that will be inserted in the form element.

There is also a new scheduled task for cleaning Atto autosave drafts.
2015-09-01 12:23:00 +08:00
Eloy Lafuente (stronk7) 0df465d10a Merge branch 'wip-MDL-50791-master' of git://github.com/marinaglancy/moodle 2015-09-01 01:52:10 +02:00
Eloy Lafuente (stronk7) c5f05ff551 Merge branch 'mdl-50963' of https://github.com/cdsmith-umn/moodle 2015-09-01 01:42:06 +02:00
Mark Nelson 1efd323842 MDL-29801 install: added message deleted fields 2015-08-31 15:09:51 -07:00
Eloy Lafuente (stronk7) 07db0bbd8f Merge branch 'MDL-49536-master' of git://github.com/ryanwyllie/moodle 2015-08-31 20:48:18 +02:00
Eloy Lafuente (stronk7) 315918f187 Merge branch 'MDL-50677-master' of git://github.com/FMCorz/moodle 2015-08-31 20:31:26 +02:00
Marina Glancy 7a4ff165cb MDL-25451 roles: check if user can assign foles in block 2015-08-31 16:03:27 +08:00
David Mudrák 033761fe9b MDL-48494 admin: Fail validation of plugins with no component declared 2015-08-31 10:01:34 +02:00
David Mudrák 98ea697349 MDL-48494 admin: Require plugins declare their component in version.php 2015-08-31 10:01:34 +02:00
David Mudrák f5f5a60ac9 MDL-43896 admin: Fail validation of plugins with $module in version.php 2015-08-31 09:57:50 +02:00
David Mudrák 01889f019d MDL-43896 admin: Drop support for the $module syntax in version.php 2015-08-31 09:57:50 +02:00
David Mudrák 3920ad93e2 MDL-50109 forum: Add behat tests for posts ordering 2015-08-31 09:55:02 +02:00
David Mudrák 8d960707c4 MDL-50109 forum: Add unit tests for the forum_get_discussion_neighbours
The added tests are variants of existing tests for blog-like forums.
2015-08-31 09:55:02 +02:00
David Mudrák 9e381efd1f MDL-50109 forum: Respect chronological order of blog posts in prev/next
The function forum_get_discussion_neighbours() is used to generate links
to neighbour discussions. I had to change the signature of the function
to have access to the forum's type without the need to re-read it from
the database in additional query.

The SQL query for blogs is a variant of the existing query, just using
the first post's creation time instead of the discussion's timemodified
time.
2015-08-31 09:55:02 +02:00
David Mudrák 8d032f59f4 MDL-50109 forum: Display blog posts in reverse chronological order 2015-08-31 09:55:01 +02:00
David Monllao d0efe9a080 Merge branch 'MDL-51131-master' of git://github.com/marinaglancy/moodle 2015-08-31 14:07:49 +08:00
David Monllao 5d98022e81 Merge branch 'MDL-51084-master' of git://github.com/marinaglancy/moodle 2015-08-31 12:54:49 +08:00
David Monllao 5e567834dd Merge branch 'MDL-51181-m' of git://github.com/micaherne/moodle 2015-08-31 10:55:08 +08:00
David Monllao abbf64e363 Merge branch 'MDL-51215-master' of git://github.com/marinaglancy/moodle 2015-08-31 10:45:19 +08:00
Jinu Abraham b6c97f4c2b MDL-51232 mod_book: Filter name header 2015-08-31 12:04:01 +09:30
lazydaisy 37cbded0c3 MDL-51234 theme_bootstrapbase: hover hardly visible on invert/collapse 2015-08-30 19:59:28 +01:00
Kevin Wiliarty f75afe9b90 MDL-51229 theme: display docked block on top of fixed navbar 2015-08-30 09:37:44 -04:00
Neill Magill ccfb9b69db MDL-50971 ActionMenu: Action menus cause page to jump when closing
This patch changes the behavior of open action menus when using a mouse.

Before this patch when clicking on the page with an open action menu the focus would be
returned to the action menu's call button. This could cause the page to jump when a
mouse user did not close an action menu, scrolled and then tried to perform another
action on the page.

After this patch when clicking the focus will not be returned to the action menu's call button.
The behavior of the script will not be changed when using the keyboard.
2015-08-28 12:13:16 +01:00
Dan Poltawski 20dbcc33e8 MDL-33564 rss: on error return HTTP error status
Also remove an unecessary debugging notice.
2015-08-28 09:53:01 +01:00
Marina Glancy bdead9b5c7 MDL-51084 tool_customlang: return to the same page after submit 2015-08-28 16:20:03 +08:00
Marina Glancy f5b93846af MDL-44707 block_html: copy files when copying instance 2015-08-28 16:03:26 +08:00
Dan Poltawski e28004e614 weekly release 3.0dev 2015-08-28 07:38:07 +01:00
Andrew Nicols 34c6ec1869 MDL-50891 useragent: Move web crawler checks to useragent class 2015-08-28 14:31:51 +08:00
Andrew Nicols 4463f996c4 MDL-51236 phpunit: Prevent testsuite name conflicts
The testsuite name is fed straight into a class_exists() in
PHPUnit_Framework_TestSuite. In some cases, e.g. cachestore_static, the
class does exist, it's then fed into a ReflectionClass, and the test fails.

The testsuite needs to not conflict with any classes which could be
autoloaded in Moodle core.
2015-08-28 14:22:07 +08:00
Damyon Wiese 6f0dfdd969 MDL-51179 Atto: Add a behat test for autosave 2015-08-28 12:09:34 +08:00
Ryan Wyllie 6ceea3fe12 MDL-49536 theme_clean: logo only on front and login
The logo for the clean and more themes will only be
displayed on the front page and login page as it was
replacing the header information on other pages within
Moodle, causing users to lose information on the page.
2015-08-28 02:42:30 +00:00
Daniel Thies 2975411139 MDL-51228 editor_atto: Apply style in plugins if selection is collapsed 2015-08-27 12:15:16 -05:00
Gareth J Barnard 01410430e7 MDL-50690 themes: Theme cache SVG images are not created. 2015-08-27 15:35:23 +01:00
Dan Poltawski 12fb029c67 MDL-50287 completion: version bump 2015-08-27 14:58:04 +01:00
Dan Poltawski 88d350eab4 MDL-50287 lang: remove unused string
(I don't think this string warrants deprecation)
2015-08-27 14:58:04 +01:00
Dan Poltawski 160ccd3d09 MDL-50287 completion: Rename tasks to remove the word 'cron' 2015-08-27 14:58:04 +01:00
Dan Poltawski 0628925bf1 MDL-50287 completion: avoid introducing uncessary functions
Also fix copyright
2015-08-27 14:57:56 +01:00
Josh Willcock 51e488eaf3 MDL-50287 completion: Separated slow task out from cron
The mark started function for the completions scheduled task can be very
slow and causes performance issues when running. By splitting this into
it's own task it can be managed independantly from the other parts which
update regularly.
2015-08-27 14:40:04 +01:00
Dan Poltawski 4ae71e93a8 MDL-49826 grade: hide singleview links when no permissions
Singleview only supports grade editors not viewers at this time.
2015-08-27 13:16:44 +02:00
Eloy Lafuente (stronk7) 1b5034025b Merge branch 'MDL-51148-master-enfix' of git://github.com/mudrd8mz/moodle 2015-08-27 12:46:11 +02:00
Frederic Massart 2b7848050d MDL-50677 user: Prefix custom fields node name in profile tree 2015-08-27 17:28:02 +08:00
Damyon Wiese 9764aab9da MDL-51213 externallib: external_format_text/external_format_string
API functions do not know if they are being called from a web page, or a
web-service. They need a single function to call to correctly apply
filters, strip tags etc that knows the correct way to do this based on
the way it was called (e.g. webservices allow parameters for skipping
filters etc).

So here we are fixing the default for the filter argument used in
external_format_text and adding a matching external_format_string.
2015-08-27 15:56:36 +08:00
Marina Glancy efbd56960c MDL-51215 course: redirect to manage appropriate category 2015-08-27 11:13:06 +08:00
Tim Hunt aa8092c60f MDL-47494 gapselect: Clarify comment. 2015-08-26 23:14:16 +01:00
David Mudrák f729af1609 MDL-51148 tool_langimport: Use the amended string in Behat test 2015-08-26 17:03:36 +02:00
Helen Foster ce2c0f3a74 MDL-51148 lang: Merge English strings from the en_fix language pack 2015-08-26 16:46:43 +02:00
Ruslan Kabalin 7f2033eafe MDL-51217 auth: Check if recaptcha enabled in the plugin used for signup. 2015-08-26 15:25:40 +01:00
Dan Poltawski cd1b845f62 MDL-50641 rss: fix front page rss links
Fallback to guest user token when no user is specified in rss_get_url
rather than generating a junk token which is no use to anyone, this
matches existing logic which has been in place in forum for a while
and avoids custom handling all over the place.
2015-08-26 08:08:43 +01:00
Damyon Wiese 572e00928a MDL-51179 Atto: When a resume is aborted - create a fresh draft for future saves. 2015-08-26 14:15:53 +08:00
David Monllao 6ddfb278d2 Merge branch 'wip_MDL-50869_master' of git://github.com/gjb2048/moodle 2015-08-26 09:44:21 +08:00
Marina Glancy 55a8e86807 MDL-50923 themes: content-only class added before region-only 2015-08-26 03:40:37 +02:00
Andrew Davis 9679425c16 MDL-51205 coding style fixes in /pix 2015-08-26 07:10:53 +08:00
Andrew Davis 560c7d6afa MDL-51204 coding style fixes in /lang 2015-08-26 07:00:03 +08:00
Andrew Davis d1cb06fb1b MDL-49950 removed a duplicate string definition 2015-08-26 05:40:31 +08:00
Andrew Davis d66c9f0d7b MDL-50529 core_grade: removed duplicate code 2015-08-25 21:14:47 +08:00
Eloy Lafuente (stronk7) 4738193225 Merge branch 'wip-MDL-50923-master' of git://github.com/marinaglancy/moodle 2015-08-25 11:34:33 +02:00
Dan Poltawski f1352da1ba Merge branch 'wip-MDL-27177-master' of git://github.com/abgreeve/moodle 2015-08-25 09:55:00 +01:00
Damyon Wiese 2e96b001c4 MDL-51179 Atto: Abort autosave if there are more recent changes to the files
If the files in the draft area have been modified more recently than the timestamp
of the draft - do not restore the files, or you will delete any newer files. We
cannot really guess here - merging the 2 lists of files will be wrong.
2015-08-25 16:09:57 +08:00
David Monllao 7ac0ddd00a Merge branch 'MDL-50933' of git://github.com/timhunt/moodle 2015-08-25 14:28:06 +08:00
David Monllao a2ce97e306 Merge branch 'MDL-50996' of git://github.com/timhunt/moodle 2015-08-25 14:26:25 +08:00
Ramindu Deshapriya 202203e38f MDL-51172 core_files: Added Behat test to automate MDLQA-8166 2015-08-25 08:49:01 +05:30
David Monllao 09fc06d799 Merge branch 'wip-MDL-50973-master' of git://github.com/marinaglancy/moodle 2015-08-25 10:13:18 +08:00
David Monllao 61e44f4033 Merge branch 'mdl-50957' of git://github.com/cdsmith-umn/moodle 2015-08-25 10:06:49 +08:00
Adrian Greeve 4fc7b6a07b MDL-27177 roles: Update to behat full profile tests. 2015-08-25 09:43:17 +08:00
Adrian Greeve 82e4d43842 MDL-27177 roles: Unit test for newly created function. 2015-08-25 09:43:17 +08:00
Adrian Greeve 66a43cd543 MDL-27177 roles: Allow students to see co-students profiles.
If the student shares a course with another student then let them
see the same detail on the full profile page as they do on the
course profile page.
2015-08-25 09:43:17 +08:00
Eloy Lafuente (stronk7) bcf9c54c20 Merge branch 'MDL-50714-master' of git://github.com/andrewnicols/moodle 2015-08-25 00:06:01 +02:00
Tim Hunt 924db7109c MDL-45841 forum: show unread posts on blog-style forum front page 2015-08-24 21:44:56 +01:00
Dan Poltawski ee9b9ffd51 Merge branch 'MDL-49701' of git://github.com/jmvedrine/moodle 2015-08-24 15:14:15 +01:00
Clement Smith 368c1bb674 MDL-50957 grade/report/user: Fix division by zero
When using "sum of grades" and $grademax is zero, a division by zero
error occurs in fill_contributions_column() in
grade/report/user/lib.php.
2015-08-24 09:05:30 -05:00
Dan Poltawski eee9e47d28 MDL-50723 upgrade.txt: Note dropped unused table
Just in case..
2015-08-24 14:52:26 +01:00
Dan Poltawski 482ebc1786 Merge branch 'MDL-50723-master' of git://github.com/andrewnicols/moodle 2015-08-24 14:47:25 +01:00
Dan Poltawski 030806a4ba Merge branch 'MDL-40179-master' of git://github.com/lameze/moodle 2015-08-24 13:40:15 +01:00
Dan Poltawski fcd8119eda Merge branch 'wip-MDL-27859-master' of https://github.com/marinaglancy/moodle 2015-08-24 10:55:03 +01:00
Dan Poltawski 7ee1695850 Merge branch 'MDL-49826_grade_single_view' of git://github.com/davosmith/moodle 2015-08-24 10:39:06 +01:00
Dan Poltawski 4d9845426e Merge branch 'MDL-47450-master' of git://github.com/FMCorz/moodle 2015-08-24 10:25:32 +01:00
Tim Hunt 857e2a6f8c MDL-50996 quiz: fix review error with unusual permissions 2015-08-24 09:53:52 +01:00
Michael Aherne a25b5a9e6b MDL-51181 config: Correct documentation of lock_factory 2015-08-24 09:06:26 +01:00
David Monllao 1e5b562ac9 Merge branch 'MDL-50958-master' of git://github.com/lameze/moodle 2015-08-24 15:40:10 +08:00
David Monllao 259bd67ce9 Merge branch 'MDL-51184-master' of git://github.com/marinaglancy/moodle 2015-08-24 15:29:58 +08:00
Marina Glancy ba2ad4316e MDL-51184 themes: correctly check $CFG->svgicons
Thanks to Ralf Wiederhold for pointing out the bug
2015-08-24 11:06:24 +08:00
Damyon Wiese e0d08bfa5d MDL-51116 Mustache: Caching issue exists with mustache templates
The first ajax load fetches the template and puts it in localstorage + a js var

The second load gets it from local storage, but does not put it in the js var.

The pix_icon helper expects it to be in the js var always.
2015-08-24 10:50:40 +08:00
Bruce Silver 88a26baec0 MDL-50958 block_messages: declare missing stdClass object 2015-08-24 10:47:24 +08:00
David Monllao 8d2a44b554 Merge branch 'wip-MDL-51087-master' of git://github.com/marinaglancy/moodle 2015-08-24 10:18:14 +08:00
Marina Glancy 2aaed97f61 MDL-51131 tags: remove instances when course is deleted 2015-08-22 21:51:11 +08:00
Tim Hunt 83cd293a10 MDL-50933 quiz: improve completion behat tests
These now use the faster set-up methods.
2015-08-21 17:51:04 +01:00
Marina Glancy 46f708ea17 MDL-27859 tags: unit test for tag cleanup 2015-08-21 21:14:10 +08:00
Marina Glancy a196f37088 MDL-27859 tags: unit test for correlated tags 2015-08-21 21:14:06 +08:00
Tim Hunt 99348b2319 MDL-47494 ddmarker: Fix unit tests for 3.0 compatibility. 2015-08-21 12:35:58 +01:00
Tim Hunt 4a53044a10 MDL-47494 ddimageortext: Fix unit tests for 3.0 compatibility. 2015-08-21 12:35:36 +01:00
Tim Hunt 976d30839d MDL-47494 ddwtos: Fix unit tests for 3.0 compatibility. 2015-08-21 12:35:01 +01:00
Tim Hunt b0380cd884 MDL-47494 gapselect: Fix unit tests for 3.0 compatibility. 2015-08-21 12:32:55 +01:00
Andrew Nicols 3c3d38d09a MDL-51170 core: Scheme section of URL should be case insensitive 2015-08-21 12:26:10 +08:00
Andrew Nicols bff7570e87 MDL-50714 mod_forum: Add tests for all groupmodes 2015-08-21 08:19:29 +08:00
Andrew Nicols 344e126378 MDL-50714 mod_forum: Correct use of movedicussions cap when posting
The ability to view the group dropdown was too closely related to the
movediscussions capability when posting, or editing a forum post.

The movedicussions capability should only be considered for some parts of
this logic. Users should be able to select the group to post to when
writing message, as long as they have access to that group.
2015-08-21 08:18:46 +08:00
Nelson Moller 52b08f5fce MDL-51090: mod_quiz grading validation of an essay question
An invalid format is casted to 0 (if a string) or to some truncated value in other cases (ex: 10..5).
2015-08-20 19:58:49 +01:00
Gareth J Barnard 267c636702 MDL-50869 themes: Quiz feedback colours are not accessible. 2015-08-20 16:44:29 +01:00
Davo Smith 4021aa45ce MDL-49826 gradereport_singleview: fix permission check
Users with capability 'moodle/grade:edit' should be able to edit grade values
- 'moodle/grade:manage' is not needed, as grade items are not being changed.
2015-08-20 14:55:56 +01:00
Dan Poltawski 6d392b3027 weekly release 3.0dev 2015-08-20 14:24:28 +01:00
David Monllao cf9fe42f6e Merge branch 'wip-mdl-42634' of git://github.com/rajeshtaneja/moodle 2015-08-20 15:41:07 +08:00
Andrew Nicols 9ed97f19ad Merge branch 'MDL-50801_master-unexisting-caption' of git://github.com/dmonllao/moodle 2015-08-20 15:37:13 +08:00
David Monllao bcd58d9ff7 MDL-50801 atto_table: Caption node might not be present
Users may not use atto table (which always adds a caption) to set
HTML tables, this patch addresses that case.
2015-08-20 15:25:44 +08:00
Andrew Nicols cf86d4f5bc MDL-42634 theme: Increase margin on activity instance to not cover controls 2015-08-20 15:18:14 +08:00
David Monllao 9502083292 MDL-49280 auth: Rewording duplicate emails setting
From allowuserstoshareemailaddresses to allowaccountssameemail, also
changing lang strings.
2015-08-20 12:56:11 +08:00
Damyon Wiese 85fa6a9305 MDL-50150 Mustache: Update to 2.9.0 version of mustache.php
And enable the BLOCKS pragma (we need it for reusable templates).
2015-08-20 11:44:56 +08:00
Damyon Wiese 841e689a1c MDL-50150 Mustache: Add "BLOCKS" feature to javascript mustache engine.
Pull request: https://github.com/janl/mustache.js/pull/473
2015-08-20 11:44:49 +08:00
David Monllao 3ac1350598 Merge branch 'MDL-50880-master' of git://github.com/marinaglancy/moodle 2015-08-20 10:31:20 +08:00
David Monllao 7046798f56 MDL-50391 mod_lti: Fixing indentation 2015-08-20 09:49:22 +08:00
Eloy Lafuente (stronk7) 05f97c615c Merge branch 'MDL-50801_master' of git://github.com/dmonllao/moodle 2015-08-19 19:14:00 +02:00
Andrew Nicols 933183e52a MDL-42634 theme: Increase margin on sectionname to not cover controls 2015-08-19 18:30:38 +02:00
Eloy Lafuente (stronk7) edd94e24b0 Merge branch 'MDL-49085_master' of git://github.com/dmonllao/moodle 2015-08-19 18:30:37 +02:00
Eloy Lafuente (stronk7) 5d60665bef Merge branch 'MDL-46078-master' of git://github.com/damyon/moodle 2015-08-19 18:30:36 +02:00
Barry Oosthuizen 4f0c8f307a MDL-41944 block_onlines_users: Add unit tests 2015-08-19 18:30:36 +02:00
Barry Oosthuizen 0964aa33cf MDL-41944 block_onlines_users: Improve performance 2015-08-19 18:30:35 +02:00
Dan Poltawski d34af71782 Merge branch 'wip-MDL-49746-master' of git://github.com/marinaglancy/moodle 2015-08-19 18:30:34 +02:00
Dan Poltawski a9334960dd Merge branch 'wip-MDL-30315-master' of git://github.com/abgreeve/moodle 2015-08-19 18:30:33 +02:00
Eloy Lafuente (stronk7) 839b8c3905 Merge branch 'MDL-47449-master' of git://github.com/andrewnicols/moodle 2015-08-19 18:30:33 +02:00
Dan Poltawski 215c5cf5c2 MDL-46387 shifter: missing built changes 2015-08-19 18:30:32 +02:00
Dan Poltawski bf4253d772 Merge branch 'MDL-46387-master' of https://github.com/dthies/moodle 2015-08-19 18:30:31 +02:00
Dan Poltawski b1da1e289b Merge branch 'MDL-49841-master' of git://github.com/andrewnicols/moodle 2015-08-19 18:30:31 +02:00
Dan Poltawski 2bd33cfdb0 Merge branch 'MDL-50127-master-squashed' of git://github.com/xow/moodle 2015-08-19 18:30:30 +02:00
Dan Poltawski c47a48d8f5 Merge branch 'MDL-33365-master-3' of git://github.com/andrewnicols/moodle 2015-08-19 18:30:29 +02:00
Dan Poltawski cfd9279f3d Merge branch 'MDL-46167-master' of https://github.com/mackensen/moodle 2015-08-19 18:30:28 +02:00
David Monllao d2999f8085 Merge branch 'MDL-50391-master' of git://github.com/aspark21/moodle 2015-08-19 18:30:28 +02:00
David Monllao edd6e9ebe2 Merge branch 'MDL-51102-master' of git://github.com/andrewnicols/moodle 2015-08-19 18:30:27 +02:00
Marina Glancy 40e501284c MDL-50880 message: correctly compare with empty string
Thanks to David Herney Bernal for providing a fix
2015-08-19 16:01:42 +08:00
Simey Lameze e450eb32d9 MDL-40179 auth_cas: change is_proxybypass parameter to use server url 2015-08-19 10:43:03 +08:00
David Monllao 556decf159 MDL-50801 atto_table: Allow caption position to be set 2015-08-19 09:02:45 +08:00
Adrian Greeve 9b272cc069 MDL-30315 grades: Fix up function doc block.
This was annoying me no end so here is a commit
to set it right.
2015-08-18 17:02:46 +08:00
Adrian Greeve a9ef9c5e82 MDL-30315 grades: Unit tests for grade import. 2015-08-18 17:02:46 +08:00
Adrian Greeve 0305798c62 MDL-30315 gradebook: Uploading feedback doesn't override grades. 2015-08-18 17:02:45 +08:00
Andrew Nicols 2300a312a4 MDL-33365 core: Move JS output to body
It turns out that, after all these years, we've been doing it wrong.
The YUI Loader should be loaded at the top of the body, not in the head.

Having it in the head means that the body has not yet loaded, and we see
a number of minor issues for scripts which happen very early in the load
process. One of these is the creation of invalid HTML from the YUI loader
because it is not able to insert in the body as it has not yet been
created.

To be safe, we must move all JS to the same point (because of unknown
dependencies between them). These should be placed as early in the body as
possible.

We also change the way in which the legacy YUI css modules are loaded.
2015-08-18 15:48:55 +08:00
David Monllao cc7a4f4b39 MDL-49085 block_tag_youtube: Using Youtube data api v3 2015-08-18 11:12:55 +08:00
Marina Glancy 97b1867f0f MDL-50683 user: add default choice 2015-08-18 10:01:11 +08:00
David Monllao ff5b060c37 Merge branch 'MDL-50990_master' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/base/style/blocks.css
2015-08-18 09:47:38 +08:00
Dan Poltawski 0568684bfd Merge branch 'MDL-49891-master-2' of git://github.com/xow/moodle 2015-08-17 15:17:11 +01:00
Dan Poltawski cfeadc66b0 Merge branch 'MDL-49280-m' of https://github.com/micaherne/moodle 2015-08-17 15:03:59 +01:00
Dan Poltawski c7d17be417 Merge branch 'MDL-44828-master' of git://github.com/junpataleta/moodle 2015-08-17 14:24:57 +01:00
Dan Poltawski edc3889618 Merge branch 'MDL-42634-master' of git://github.com/andrewnicols/moodle 2015-08-17 11:44:57 +01:00
David Monllao 2394cf72d6 Merge branch 'wip-MDL-50303-master' of git://github.com/marinaglancy/moodle 2015-08-17 15:06:15 +08:00
David Monllao f3e77a5ea5 Merge branch 'wip-MDL-50962-master' of git://github.com/abgreeve/moodle 2015-08-17 14:56:14 +08:00
David Monllao 6df0e78849 Merge branch 'MDL-51016-m' of git://github.com/micaherne/moodle 2015-08-17 14:21:00 +08:00
David Monllao 78af7dae54 Merge branch 'MDL-50637' of git://github.com/sk-unikent/moodle 2015-08-17 13:56:18 +08:00
David Monllao c05c91d0d4 Merge branch 'wip-MDL-51095-master' of git://github.com/marinaglancy/moodle 2015-08-17 12:06:47 +08:00
David Monllao 34e0377fc6 Merge branch 'wip-MDL-50881-master' of git://github.com/marinaglancy/moodle 2015-08-17 12:03:23 +08:00
David Monllao 889a0c840a Merge branch 'MDL-50911_master' of git://github.com/StudiUM/moodle 2015-08-17 11:58:28 +08:00
David Monllao 7d8edf67ae Merge branch 'wip-MDL-50932-master' of git://github.com/marinaglancy/moodle 2015-08-17 11:43:42 +08:00
Bruce Silver edd99023a6 MDL-50962 user: Profile fields display properly
The department and idnumber fields were not displaying
properly on the user profile pages.
2015-08-17 10:33:05 +08:00
David Monllao 87aadca845 Merge branch 'MDL-51057-M30' of git://github.com/lazydaisy/moodle 2015-08-17 09:53:21 +08:00
David Monllao 068f1fce33 Merge branch 'MDL-51077-master' of git://github.com/sammarshallou/moodle 2015-08-17 09:44:53 +08:00
David Monllao 5e8a03b429 Merge branch 'MDL-51088-master' of git://github.com/andrewnicols/moodle 2015-08-17 09:24:55 +08:00
David Monllao 81c81527cb Merge branch 'wip-mdl-51106' of git://github.com/rajeshtaneja/moodle 2015-08-17 09:01:45 +08:00
David Monllao fd76204a8b Merge branch 'MDL-51100-master' of git://github.com/andrewnicols/moodle 2015-08-17 08:50:49 +08:00
Daniel Thies 2f62ae82a1 MDL-46387 editor_atto: Add behat test for sub/sup 2015-08-16 15:10:02 -05:00
sam marshall 89a73b0815 MDL-51077 Availability: Date restriction unit test static not cleared 2015-08-14 10:51:29 +01:00
John Okely 5e9a937bba MDL-49891 theme_bootstrapbase: Add meta data description to frontpage 2015-08-14 16:49:55 +08:00
Frederic Massart e36b5c0030 MDL-50127 mod_data: RTL styles for the required image 2015-08-14 16:46:58 +08:00
John Okely c07c5e7bdd MDL-50127 mod_data: Fix required icons in add entry screen 2015-08-14 16:46:58 +08:00
Andrew Nicols 97b1a48204 MDL-47449 completion: Ignore timemodified when comparing 2015-08-14 10:53:20 +08:00
Andrew Nicols 504c97925c MDL-47449 phpunit: Add comparitor for isEqual with exceptions
We often do isEqual tests but where a field, may have a single exception.
Ordinarily we can handle this easily by breaking the test down, but when
dealing with mocked objects we can only pass an instance of a
PHPUnit_Framework_Constraint, or a single value (which is cast to an
instance of PHPUnit_Framework_Constraint_IsEqual).

To deal with instances of time-based exception, we need to be able to
compare simple objects and classes where one or two values may be
different.
2015-08-14 10:53:19 +08:00
Andrew Nicols d78613701c MDL-49841 testing: Correct composer incantation 2015-08-14 10:27:53 +08:00
Jun Pataleta 0c4c3b9aed MDL-44828 filelib: Fix open error for force-downloaded files in mobile
Allow guessing of file's MIME type by default. Fallback to
application/octet-stream if MIME type cannot be determined.
2015-08-14 09:54:20 +08:00
Rajesh Taneja 369729cfda MDL-51100 behat: Remove javascript tag from usermenu steps 2015-08-14 08:53:03 +08:00
Andrew Nicols 711b1d6b3e MDL-51100 behat: Remove javascript tag from usermenu steps
These tests only needed the javascript tag because of the user menu.
Now that issue has been resolved, they do not need it.

Note: Some were also not using the singleselect feature, so would fail
without changes to use this too as they were not handling proper selection
of the singleselect element.
2015-08-14 08:52:29 +08:00
Andrew Nicols 04c24a55ec MDL-50723 core: Remove long-defunct table webdav_locks 2015-08-14 08:42:34 +08:00
Andrew Nicols 2e782e5142 MDL-51088 mod_forum: Improve mod_forum behat performance 2015-08-14 07:58:13 +08:00
Andrew Nicols 4569c6966a MDL-51088 completion: Do not require hover to confirm xpath 2015-08-14 07:58:13 +08:00
lazydaisy 054a565806 MDL-50990 theme_base: Fixed errors in CSS mark-up in style/blocks.css 2015-08-14 00:35:04 +01:00
lazydaisy 66cd0e6980 MDL-51057 theme_base: RTL fix adds missing padding to block header h2. 2015-08-14 00:34:05 +01:00
Daniel Thies dc9ca4acea MDL-46387 editor-atto: Toggle sub/sup tags using rangy
In order to have a consistant browser behavior and prevent nesting of
subscripts and superscripts, tags are converted to CSS classes and then
the CSS classes in the selection are toggeled using the rangy crossbrowser
selection library already included in Atto without using an execCommand.
2015-08-13 15:46:29 -05:00
Alistair Spark 8b40604ab9 MDL-50391 format_singleactivity: fix LTI Tool opens in existing window 2015-08-13 14:13:02 +01:00
Marina Glancy 3bacf558d1 MDL-50391 format_singleactivity: fix activity_has_subtypes() 2015-08-13 14:13:02 +01:00
Dan Poltawski 5f92c736e3 MDL-51110 badges: prevent duplicate award of badges
Previously duplicate users could be returned when they had
done duplicate badge criteria - this would lead to a duplicate
constraint being hit as they were attempted to be awarded twice.
2015-08-13 13:21:03 +01:00
Eloy Lafuente (stronk7) dda862abb5 weekly release 3.0dev 2015-08-13 12:16:31 +02:00
Eloy Lafuente (stronk7) 2e446e9443 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-08-13 12:16:24 +02:00
Marina Glancy ddf4e69762 MDL-50923 theme: add missing content-only css class 2015-08-13 16:55:18 +08:00
Andrew Nicols d245f6757d MDL-51102 behat: Add a non-JS version of wait 2015-08-13 15:56:22 +08:00
Rajesh Taneja 3d3d2ae529 MDL-51106 behat: Fixed misuse of javascript tag 2015-08-13 13:23:15 +08:00
Andrew Nicols ff89d94a6f MDL-51100 behat: Remove javascript tag where not required
These tests only needed the javascript tag because of the user menu.
Now that issue has been resolved, they do not need it.

Note: Some were also not using the singleselect feature, so would fail
without changes to use this too as they were not handling proper selection
of the singleselect element.
2015-08-13 13:12:28 +08:00
Marina Glancy 1165cab2b3 MDL-51095 enrol_meta: add missing include
Thanks to Shaun Meyer for providing a patch
2015-08-13 12:29:24 +08:00
Marina Glancy a039418383 MDL-50303 cache: removed unused cache definition 2015-08-13 11:56:53 +08:00
Andrew Nicols 317fd6fe56 MDL-51100 behat: Correct javascript requirement of user menu step 2015-08-13 08:35:17 +08:00
Eloy Lafuente (stronk7) 28a614a83f Merge branch 'MDL-50371' of https://github.com/danielneis/moodle 2015-08-13 00:38:41 +02:00
AMOS bot 0cbc507b6d Automatically generated installer lang files 2015-08-13 00:04:21 +08:00
AMOS bot 61331bd1ee Automatically generated installer lang files 2015-08-13 00:04:21 +08:00
Skylar Kelty e074ef4c52 MDL-50920 enrol: Remove pointless DB update in enrol_meta 2015-08-12 11:52:24 +01:00
Marina Glancy f711237e05 MDL-50791 auth: add heading on signup form page 2015-08-12 13:23:30 +08:00
Marina Glancy a3c9174b3d MDL-50791 forms: make server validation errors accessible 2015-08-12 13:23:08 +08:00
Marina Glancy bd7a0fd38b MDL-51087 auth: user client side validation in signup 2015-08-12 13:06:58 +08:00
David Monllao 01fdb048cf Merge branch 'MDL-46860-master' of git://github.com/ryanwyllie/moodle 2015-08-12 10:45:29 +08:00
David Monllao 6413794018 Merge branch 'MDL-37864-master' of git://github.com/xow/moodle 2015-08-12 09:35:46 +08:00
David Monllao 819ab257f7 Merge branch 'MDL-46321-master' of git://github.com/tonyjbutler/moodle 2015-08-12 08:49:14 +08:00
David Monllao c68b32067e MDL-50839 user: realuseravatar should also read avatarsize 2015-08-12 08:39:07 +08:00
David Monllao f2e50523d1 Merge branch 'MDL-50839-master' of git://github.com/Dave-B/moodle 2015-08-12 08:32:11 +08:00
David Monllao 3718d2cd17 Merge branch 'MDL-50947_master' of git://github.com/moodlerooms/moodle 2015-08-12 08:30:03 +08:00
David Monllao fb41850a3c Merge branch 'MDL-50720' of git://github.com/bostelm/moodle 2015-08-12 08:27:09 +08:00
David Monllao ede96605ac Merge branch 'MDL-51053-master' of git://github.com/sammarshallou/moodle 2015-08-12 08:23:29 +08:00
Eloy Lafuente (stronk7) 20c50b0d5c Merge branch 'MDL-50062-master' of git://github.com/FMCorz/moodle 2015-08-12 01:52:04 +02:00
Eloy Lafuente (stronk7) 4da133199f Merge branch 'MDL-50430' of https://github.com/danielneis/moodle 2015-08-12 00:48:07 +02:00
Eloy Lafuente (stronk7) 1dce5c99c8 Merge branch 'MDL-50446-master' of git://github.com/ryanwyllie/moodle 2015-08-12 00:11:42 +02:00
Eloy Lafuente (stronk7) b7759a1889 Merge branch 'MDL-50307-master-3' of git://github.com/xow/moodle 2015-08-11 23:44:50 +02:00
Eloy Lafuente (stronk7) 789d40a803 Merge branch 'MDL-49293-master' of git://github.com/andrewnicols/moodle 2015-08-11 22:58:09 +02:00
Eloy Lafuente (stronk7) 30deee105c Merge branch 'MDL-50642' of https://github.com/ecampbell/moodle 2015-08-11 22:32:11 +02:00
Sam Chaffee 5222ab7f4b MDL-50947 mod_lti Add removed grade.php to upgrade_stale_php_files_present 2015-08-11 10:42:08 -06:00
Sam Chaffee 4180d9706b MDL-50947 mod_lti Remove deprecated grade.php 2015-08-11 10:30:06 -06:00
Alain Benoit acf543c413 MDL-50911 Quiz: edit settings page not responsive 2015-08-11 09:16:43 -04:00
sam marshall 27479b5cc9 MDL-51053 Restore: Static cache breaks unit tests 2015-08-11 14:07:38 +01:00
David Balch 9dcd50358a MDL-50839 user_menu: Allow themes to set User menu avatar size.
Added an @array "options" parameter to user_get_user_navigation_info(),
for passing in avatarsize, and possibly other options in future.

Also removed an errant parameter in the /lib/outputrenderers.php
user_get_user_navigation_info() call, as there was no corresponding
parameter in the function definition.

(Test written by Jetha Chan.)
2015-08-11 13:57:17 +01:00
Eloy Lafuente (stronk7) 1877b7551e Merge branch 'MDL-50894_master' of https://github.com/gedion/moodle 2015-08-11 14:18:34 +02:00
Eloy Lafuente (stronk7) 99c582a19f Merge branch 'master_MDL-51015' of git://github.com/danmarsden/moodle 2015-08-11 14:09:42 +02:00
Henning Bostelmann 0bec64c6a1 MDL-50720 mod_data: Highlight non-approved entries 2015-08-11 11:30:02 +01:00
Marina Glancy afc6a26938 MDL-49746 course: sorting users by last access 2015-08-11 16:15:58 +08:00
Frederic Massart c855ced7bb MDL-42634 theme: Action menu is displayed correctly with hidden elements 2015-08-11 14:45:59 +08:00
David Monllao b84129b11e Merge branch 'MDL-50956' of git://github.com/bostelm/moodle 2015-08-11 13:20:11 +08:00
David Monllao 8c497d8d9f Merge branch 'MDL-51014-master' of git://github.com/sammarshallou/moodle 2015-08-11 13:08:11 +08:00
Marina Glancy 10c82ca307 MDL-50881 calendar: do not throw exception without sesskey 2015-08-11 12:50:41 +08:00
John Okely dd106c8824 MDL-37864 lib: Change help for headers to match existing table api 2015-08-11 12:18:21 +08:00
Marina Glancy edbea936c5 MDL-37864 lib: corrections to help icon in tables 2015-08-11 12:18:21 +08:00
Sergey Rozhkov 3fed76e4df MDL-37864 lib: Help icon work correctly in table header with sorting 2015-08-11 12:18:20 +08:00
John Okely 78a713685d MDL-50307 auth_db: Stop using AS to prevent error with some drivers 2015-08-11 12:11:43 +08:00
John Okely c8bde450a1 MDL-50307 auth_db: Fix associative fetching in ADODB 2.19 2015-08-11 12:11:43 +08:00
Rajesh Taneja b9432e1a7d MDL-50926 phpunit: Advanced testcase should extend base_testcase 2015-08-11 02:37:28 +02:00
Tony Levi b80b35d0fc MDL-50926 phpunit: Upgrade to phpunit 4.x 2015-08-11 02:35:11 +02:00
Daniel Neis Araujo 54cf94390b MDL-50430 forum: Add number of subscribers to forum subscriber list 2015-08-10 14:17:10 -03:00
Mark Johnson c5639c9118 MDL-51014 behat: Wait for filepicker to load repository 2015-08-10 13:37:24 +01:00
Tony Butler 5a699f25a2 MDL-46321 mod_forum: Remove move button to force destination selection 2015-08-10 11:00:00 +01:00
David Monllao f5d23fc162 Merge branch 'wip-MDL-51062-master' of git://github.com/marinaglancy/moodle 2015-08-10 14:23:42 +08:00
David Monllao 3f3bf3dbbe Merge branch 'MDL-50992-master' of git://github.com/damyon/moodle 2015-08-10 11:17:30 +08:00
David Monllao 583ef1966a Merge branch 'MDL-51007-master' of git://github.com/sammarshallou/moodle 2015-08-10 11:07:43 +08:00
Ryan Wyllie 4829645724 MDL-46860 filepicker: change responsive styling
Changed the filepicker's responsive styling to kick in
on screen width less than 768px (which is the bootstrap
standard) rather than 873px. This allows the standard
styling to apply within an iframe.
2015-08-10 02:18:53 +00:00
Ryan Wyllie d3065a3606 MDL-46860 filepicker: iframe context aware
The filepicker now checks if it's within an iframe when
creating the dialogue, if so it will set the dialogue width
to fit within the iframe and disable dragging.
2015-08-10 02:16:30 +00:00
Andrew Nicols 6270f4dbdd MDL-50949 cache: Improve cache performance tests 2015-08-10 08:04:03 +08:00
Andrew Nicols 340d2a7178 Merge branch 'MDL-50949-master' of git://github.com/FMCorz/moodle 2015-08-10 08:03:11 +08:00
Marina Glancy 7f0c7f01c0 MDL-51062 behat: permission steps should work without js 2015-08-09 20:33:27 +08:00
Frederic Massart ad606e6514 MDL-47450 blocks: Blocks can be moved on the site profile 2015-08-07 15:08:47 +08:00
AMOS bot 96274a3771 Automatically generated installer lang files 2015-08-07 00:03:59 +08:00
Michael Aherne 80dfcf49f5 MDL-51016 messaging: Fix email attachments on Windows 2015-08-06 12:53:17 +01:00
Dan Marsden 524aaa177a MDL-51015 mod_scorm: tidy up messy code, remove use of eval() 2015-08-06 22:20:05 +12:00
Andrew Nicols 57739a72cb weekly release 3.0dev 2015-08-06 12:11:01 +08:00
Andrew Nicols 43f7391881 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-08-06 12:10:54 +08:00
Frederic Massart b13afc368e MDL-50062 behat: Handle category mapping for grade items generator 2015-08-06 11:56:44 +08:00
Frederic Massart ca81f8c4b2 MDL-50062 grades: Behat tests for aggregation changes 2015-08-06 11:56:44 +08:00
Frederic Massart e1c5d6618d MDL-50062 grades: Fix false positives in Behat tests 2015-08-06 10:24:26 +08:00
Frederic Massart 01a088e0a2 MDL-50062 grades: Tests for item::set_aggregation_fields_for_aggregation 2015-08-06 10:24:25 +08:00
Frederic Massart 5419cbc9eb MDL-50062 grades: Carry agg. settings between categories when possible 2015-08-06 10:24:25 +08:00
Dave Cooper 135efd5116 MDL-50062 gradebook: Fixed behaviour when changing aggregation mathods. 2015-08-06 10:24:25 +08:00
Andrew Nicols 411e7eacd0 Merge branch 'MDL-50113-integration-fixup' of https://github.com/jethac/moodle 2015-08-06 09:42:43 +08:00
Eloy Lafuente (stronk7) 6d2ccd352f Merge branch 'MDL-44840-master' of git://github.com/lameze/moodle 2015-08-05 20:46:59 +02:00
Eoin Campbell dcd4464ea3 MDL-50642 qformat_xml: fix import of tags in Cloze questions 2015-08-05 19:11:11 +01:00
Eloy Lafuente (stronk7) 72d3fd1035 Merge branch 'MDL-50816-master' of git://github.com/jleyva/moodle 2015-08-05 18:20:52 +02:00
AMOS bot ddcd67022b Automatically generated installer lang files 2015-08-06 00:04:12 +08:00
AMOS bot 20f203e1d5 Automatically generated installer lang files 2015-08-06 00:04:12 +08:00
Eloy Lafuente (stronk7) aa29bb3ba0 Merge branch 'MDL-48970' of https://github.com/andrewhancox/moodle 2015-08-05 16:11:47 +02:00
sam marshall 362616ae6c MDL-51007 Availability: Unit test fails with extra plugins 2015-08-05 14:27:40 +01:00
Eloy Lafuente (stronk7) f72a201884 Merge branch 'MDL-38230' of git://github.com/jmvedrine/moodle 2015-08-05 12:38:51 +02:00
Jetha Chan 70465d09ff MDL-50113 message: responsive and long name fixups
Addresses responsive inconsistency on Firefox, also fixes display
of names which are long and don't have whitespace to break on.
2015-08-05 16:38:57 +09:00
Andrew Nicols e3554c1c57 MDL-50999 dock: Stop adding commands to DOM
The commands div should not be added to the DOM. The version shown in the
dock is different to the standard version in the block, and is manually
added to the dock panel when it is displayed.

The docked version contains additional actions (e.g. the undock button).

The original version of the dock should ideally remain untouched.

Note: A duplicate delegation was discovered when fixing this issue. This
was previosuly not triggered because the watched Node was removed
before the delegation took effect.
2015-08-05 10:06:35 +08:00
Andrew Nicols b167057c8a Merge branch 'MDL-48202-M30' of git://github.com/lazydaisy/moodle 2015-08-05 08:23:01 +08:00
Eloy Lafuente (stronk7) ad9a7604f9 MDL-35027 mod_forum: verify forced subscriptions cannot be edited
This commit adds a new scenario to verify that the option
to turn edition of subscribers is not available anymore
for forced-subscription activities.

It also gets rid of the @javascript tag in a just introduced
scenario not needing it.
2015-08-05 02:05:37 +02:00
Eloy Lafuente (stronk7) caf6577e7f Merge branch 'MDL-35027-B' of https://github.com/bostelm/moodle 2015-08-05 01:15:59 +02:00
Eloy Lafuente (stronk7) 6573ba3e27 MDL-44273 block_rss: Prevent PHP notices in tests + whitespace fix 2015-08-05 00:55:28 +02:00
Eloy Lafuente (stronk7) f2755d847e Merge branch 'MDL-44273' of https://github.com/NeillM/moodle 2015-08-04 20:24:00 +02:00
Eloy Lafuente (stronk7) 1f65da81f5 Merge branch 'MDL-50416-master' of git://github.com/lameze/moodle 2015-08-04 20:04:27 +02:00
Eloy Lafuente (stronk7) 569d879df8 MDL-46963 env: adding missing check_database_tables_row_format check 2015-08-04 19:48:02 +02:00
Eloy Lafuente (stronk7) 07b8df8b1e MDL-50624 env: adding missing restrict_php_version_7 check 2015-08-04 19:31:01 +02:00
Bruce Silver 01c7ba4b82 MDL-50992 lti: Fix debugging warning when creating a new tool 2015-08-04 22:15:03 +08:00
Neill Magill 83f215850e MDL-44273 block_rss: Back-off strategy for RSS feeds
Based on a patch by Davo Smith of Synergy Learning

RSS feeds can fail, either permanently or temporarily.
After this patch if a feed fails it will not be tried again in the next cron run.
If it continues to fail the delay between tries will be increased.
When a feed succeeds it will go back to being fetched on each cron run.

This should make the CRON process for RSS feeds finish faster when
there are lots of invalid feeds.
2015-08-04 11:04:29 +01:00
Andrew Nicols 3c81333aa4 Merge branch 'MDL-50008-master' of git://github.com/jleyva/moodle 2015-08-04 16:20:55 +08:00
Andrew Nicols 121eaa6cfe Merge branch 'MDL-49792-master' of git://github.com/jleyva/moodle 2015-08-04 16:17:43 +08:00
Andrew Nicols 673b3c730b Merge branch 'MDL-49791-master' of git://github.com/jleyva/moodle 2015-08-04 16:07:11 +08:00
Andrew Nicols b7fafb5aae Merge branch 'MDL-50893' of git://github.com/timhunt/moodle 2015-08-04 15:59:05 +08:00
Michael Aherne bc9837241f MDL-49280 user: Config for allowing duplicate emails 2015-08-04 08:46:08 +01:00
Andrew Nicols 719af68938 Merge branch 'wip-MDL-45113-master' of https://github.com/mackensen/moodle 2015-08-04 15:21:22 +08:00
Andrew Nicols 259ca15a2d Merge branch 'MDL-43709-master' of https://github.com/pauln/moodle 2015-08-04 12:26:12 +08:00
Andrew Nicols ac41247254 Merge branch 'MDL-50532-master' of git://github.com/FMCorz/moodle 2015-08-04 12:09:30 +08:00
Andrew Nicols 45f8f3e372 MDL-50493 mod_forum: Correct style issues 2015-08-04 11:53:04 +08:00
Andrew Nicols b9e4972c7a Merge branch 'MDL-50493-master' of git://github.com/jleyva/moodle 2015-08-04 11:46:14 +08:00
Andrew Nicols 8e8e8de93d Merge branch 'MDL-50771' of git://github.com/stronk7/moodle 2015-08-04 10:19:04 +08:00
Andrew Nicols 1d1e95164d Merge branch 'MDL-50113-master' of git://github.com/jethac/moodle 2015-08-04 10:15:05 +08:00
Andrew Nicols 80692b4b68 Merge branch 'MDL-42626-master' of git://github.com/jleyva/moodle 2015-08-04 10:07:40 +08:00
Andrew Nicols fec4959809 Merge branch 'MDL-45772-master-4' of git://github.com/xow/moodle 2015-08-04 09:56:47 +08:00
John Okely 380001929a MDL-45772 admin: Stop browsers from autofilling passwords incorrectly 2015-08-04 09:54:34 +08:00
Simey Lameze de5c8d90af MDL-50416 environment: add missing slasharguments checks 2015-08-04 09:31:47 +08:00
Eloy Lafuente (stronk7) 4d3dc631d4 Merge branch 'MDL-50515' of git://github.com/jmvedrine/moodle 2015-08-04 01:21:16 +02:00
Eloy Lafuente (stronk7) 7b82add579 Merge branch 'wip-MDL-19748-master' of https://github.com/marinaglancy/moodle 2015-08-03 21:20:04 +02:00
AMOS bot 5488871e5d Automatically generated installer lang files 2015-08-04 00:04:20 +08:00
Henning Bostelmann e143918f9e MDL-35027 mod_forum: Fix subscriber list in hidden forums
If the forum is force-subscribed and hidden, only subscribers that can
view hidden activities will be shown in the subscriber list.
2015-08-03 12:12:56 +01:00
Eloy Lafuente (stronk7) 0e1615dfef Merge branch 'MDL-50572-master' of git://github.com/junpataleta/moodle 2015-08-03 12:58:35 +02:00
Eloy Lafuente (stronk7) 15c0a85071 MDL-50771 oracle: Bind long (>4000byte) text as CLOB
While we already were detecting @ normalise_value()
both BLOBs and CLOBs properly on insert and update
statements (by introspectind the column specs), when
a long TEXT is being passed as part of an arbitrary
SQL, or within the conditions... it was being bound
as VARCHAR, leading to problems if used in combination
with DBMS_LOB functions.

This patch just ensures that any TEXT > 4000 bytes not
detected by normalise_value() will be, always, bound as CLOB,
unconditionally.

Covered with tests both covering its use with DBMS_LOB (the
reported bug) and also in general raw statements.
2015-08-03 10:50:56 +02:00
Jean-Michel Vedrine a001c1131e MDL-38230 mod_quiz: Create UI for removing of quiz access rule addons 2015-08-03 08:51:46 +02:00
Andrew Nicols 005eca8c2b Merge branch 'wip-MDL-22819-master' of https://github.com/marinaglancy/moodle 2015-08-03 10:22:04 +08:00
Andrew Nicols 77831a69cc Merge branch 'MDL-49864-master' of git://github.com/junpataleta/moodle 2015-08-03 09:39:57 +08:00
Andrew Nicols 4314797382 Merge branch 'MDL-50624-master' of git://github.com/ryanwyllie/moodle 2015-08-03 09:19:17 +08:00
Jun Pataleta 0bf75ff15f MDL-49864 mod_assign: Fix missing annotations when viewing PDF
Added 'draft = 1' criteria for the delete query in
page_editor::set_annotations in order to prevent the deletion of non-draft
annotations while the PDF is being edited.
2015-08-03 09:07:03 +08:00
Ryan Wyllie 19452dc4be MDL-50624 environment: add PHP7 as unsupported version
Added PHP7 as an unsupported version for Moodle 2.8 and 2.9 in
the environment checks
2015-08-03 00:58:50 +00:00
lazydaisy b0b18f491c MDL-48202 theme_bootstrapbase: blocks are 6px taller after undocking. 2015-08-02 21:42:58 +01:00
Jean-Michel Vedrine 66cf47a045 MDL-49701 mod_lesson: open time should be before close time 2015-08-02 10:33:04 +02:00
Jean-Michel Vedrine 297b32905c MDL-50515 mod_lesson: Can't remove content buttons from content page 2015-08-02 09:32:34 +02:00
Marina Glancy 336a843391 MDL-50973 admin: do not throw exception on /admin/ 2015-08-01 17:37:24 +08:00
Charles Fulton b6f28375b7 MDL-45113 auth: add is_configured method and convert auth_db to use it 2015-07-31 15:16:08 +00:00
Jun Pataleta bf2986c2e3 MDL-50572 youtube: Disable Youtube
Disabled Youtube repository and Youtube Tag Block on new Moodle installations.
2015-07-31 15:20:19 +08:00
Simey Lameze e284ac02c3 MDL-50416 environment: remove slasharguments warning from install 2015-07-31 11:34:42 +08:00
Juan Leyva 013937907f MDL-42626 messages: Hide deleted users in contact/blocked list 2015-07-30 23:05:51 +02:00
Juan Leyva 734c7452d3 MDL-50008 folder: New Web Service mod_folder_view_folder 2015-07-30 23:02:47 +02:00
Juan Leyva 2d7927c982 MDL-50008 folder: Move logging and completion to new API 2015-07-30 23:01:43 +02:00
Juan Leyva 3c779961ad MDL-49792 resource: New WS mod_resource_view_resource 2015-07-30 23:01:21 +02:00
Juan Leyva 537f7b38c8 MDL-49792 resource: Move logging and completion to new API 2015-07-30 23:01:01 +02:00
Juan Leyva 0918811037 MDL-49791 page: New Web Service mod_page_view_page 2015-07-30 22:59:30 +02:00
Juan Leyva caa460ee7a MDL-49791 page: Move logging and completion to new API 2015-07-30 22:59:08 +02:00
Clement Smith 8c0b46f74f MDL-50963 lang/en/grades.php: Improve bad grade error message
The error message received when inputting a grade value that is too
low indicates that zero is a valid grade value. This is incorrect as
the lowest valid grade value is 1. This updates the error message to
indicate the minimum acceptable grade value is 1, not 0.
2015-07-30 09:00:26 -05:00
Andrew Nicols 032a4fe51c weekly release 3.0dev 2015-07-30 14:41:52 +08:00
Andrew Nicols 0ad1aa2166 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-07-30 14:41:46 +08:00
Ryan Wyllie fd4eca115a MDL-50446 block_site_main_menu: Test add URL resource
Behat tests to confirm that adding a URL resource to
the main menu block doens't break the javascript.
2015-07-30 03:39:53 +00:00
Ryan Wyllie fd57126fc7 MDL-50446 block_site_main_menu: Fix the onclick property handling 2015-07-30 02:07:24 +00:00
Daniel Neis Araujo b6d1812dd7 MDL-50371 gradebook: gradepointdefault for manual itens and categories 2015-07-29 17:08:27 -03:00
Henning Bostelmann afd9a921fa MDL-50956 block_site_main_menu: Show site content on course pages 2015-07-29 16:46:33 +01:00
Frederic Massart 47b04bcf7f MDL-50949 cache: Tests for performance debugging of cache usage 2015-07-29 14:38:58 +08:00
Mark Nelson bc5d93c766 MDL-50535 core_grades: fixed behat failing 2015-07-29 14:23:06 +08:00
Frederic Massart e75115810c MDL-50949 cache: Performance debug keeps track of hits/misses/sets 2015-07-29 12:56:10 +08:00
Frederic Massart b2f6f88dc2 MDL-50532 tasks: Delete obsolete tasks during upgrade 2015-07-29 11:25:16 +08:00
Marina Glancy 7b3c5e0e0b MDL-50932 cache: fix bug in prescanned file store
Thanks to Mark Nielsen for providing a patch
2015-07-29 11:23:01 +08:00
Jean-Michel Vedrine 239e9eb8f6 MDL-44840 mod_lesson: fix import of truefalse questions 2015-07-29 11:04:55 +08:00
Simey Lameze 06ae66043b MDL-49360 core_lib: remove get_referer() call form auth ldap 2015-07-29 10:43:03 +08:00
Jetha Chan 3d16b203ad MDL-50113 message: improve display of long names 2015-07-29 11:31:09 +09:00
Andrew Nicols ad913a2d97 Merge branch 'MDL-49581_m30v4' of https://github.com/sbourget/moodle 2015-07-29 09:32:11 +08:00
Stephen Bourget 58459ff0f0 MDL-49581 Lesson: Remove high score unit tests. 2015-07-28 17:06:02 -04:00
Tim Hunt 1f17e41e9a MDL-50893 questions: cannot create a question with name 0 2015-07-28 18:18:17 +01:00
Dan Poltawski 8b56685253 Merge branch 'MDL-50834' of https://github.com/danielneis/moodle 2015-07-28 13:25:57 +01:00
Dan Poltawski 4cb1a61f81 Merge branch 'MDL-50535_master' of git://github.com/markn86/moodle 2015-07-28 13:14:24 +01:00
Dan Poltawski 0618747ce3 Merge branch 'MDL-50370' of git://github.com/barbararamiro/moodle 2015-07-28 12:43:10 +01:00
Dan Poltawski 55155aeee2 Merge branch 'MDL-50833-master' of git://github.com/merrill-oakland/moodle 2015-07-28 12:38:52 +01:00
Dan Poltawski dbceb531a7 Merge branch 'MDL-50868-master' of git://github.com/jethac/moodle 2015-07-28 12:10:55 +01:00
Dan Poltawski 92ec6278ae Merge branch 'MDL-49629' of https://github.com/spvickers/moodle 2015-07-28 12:00:35 +01:00
Dan Poltawski 099dd967aa Merge branch 'MDL-49581_m30v3' of https://github.com/sbourget/moodle 2015-07-28 10:48:11 +01:00
Simey Lameze 25565918d9 MDL-49360 core_lib: fix typo on auth_ldap 2015-07-28 15:04:27 +08:00
Andrew Nicols 8a53c3f433 Merge branch 'wip-MDL-50874-master' of https://github.com/marinaglancy/moodle 2015-07-28 14:08:54 +08:00
Andrew Nicols 335adbe919 Merge branch 'MDL-50295-master' of git://github.com/danpoltawski/moodle 2015-07-28 14:02:07 +08:00
Andrew Nicols 86ab683cb9 Merge branch 'MDL-44962_master' of https://github.com/dmonllao/moodle 2015-07-28 11:16:09 +08:00
Andrew Nicols 588cf28082 Merge branch 'MDL-35148-master' of git://github.com/FMCorz/moodle 2015-07-28 11:06:38 +08:00
Frederic Massart e32af34f76 MDL-35148 themes: Updated checks deciding when mobile themes are used
Now, if a site-theme is set for tablet/phone AND the user is using
a tablet/phone that site-theme will be used, always. In any other
case the normal theme resolution will be used: course, category, ...
2015-07-28 10:59:18 +08:00
Damyon Wiese 5ce0f749a6 MDL-46078 Assign: Completion is not using assignment API.
Should not be directly querying the DB to get the submission, use the API!
2015-07-28 10:19:59 +08:00
Dan Poltawski 2ac792f579 Merge branch 'MDL-41598-master' of https://github.com/mackensen/moodle 2015-07-27 15:24:31 +01:00
Dan Poltawski b860082e13 Merge branch 'MDL-43785-master' of git://github.com/andrewnicols/moodle 2015-07-27 14:49:18 +01:00
Dan Poltawski 14f438c531 Merge branch 'MDL-50125_master' of git://github.com/dmonllao/moodle 2015-07-27 12:21:33 +01:00
Dan Poltawski 5dee13ee92 Merge branch 'MDL-49360-master' of git://github.com/lameze/moodle 2015-07-27 12:08:46 +01:00
Dan Poltawski 6d0e700eda Merge branch 'MDL-49383-master' of git://github.com/lameze/moodle 2015-07-27 12:05:45 +01:00
Dan Poltawski d2a0482d17 Merge branch 'wip-MDL-50649-master' of git://github.com/marinaglancy/moodle 2015-07-27 11:57:52 +01:00
Dan Poltawski 53fb02da8e Merge branch 'MDL-50645_master' of git://github.com/dmonllao/moodle 2015-07-27 10:36:55 +01:00
Dan Poltawski b0917db5ee Merge branch 'MDL-46398-master' of git://github.com/junpataleta/moodle 2015-07-27 10:26:25 +01:00
Andrew Nicols 0c8699c8a9 Merge branch 'MDL-46232-master' of git://github.com/FMCorz/moodle 2015-07-27 15:53:59 +08:00
Frederic Massart a180d06cb8 MDL-46232 user: Handle bulk delete of users without email addresses 2015-07-27 15:47:39 +08:00
Andrew Nicols 2ed6be873b MDL-43785 lib: Improve session timeout warnings 2015-07-27 14:29:47 +08:00
Simey Lameze dcee0b9447 MDL-49360 core_lib: add new method get_local_referer()
This commit also replace all usages of $_SERVER['HTTP_REFERER'] and get_referer().
2015-07-27 11:11:24 +08:00
Simey Lameze f4864c1cd2 MDL-49383 core: initial deprecation of get_referer function 2015-07-27 10:33:39 +08:00
AMOS bot 72e59317d9 Automatically generated installer lang files 2015-07-26 00:03:56 +08:00
Mark Nelson 7080b38f2e MDL-50535 core_course: disabled 'gradepass' field when no ratings set 2015-07-24 13:31:18 -07:00
Gedion Woldeselassie c28eb52862 MDL-50894 lib/conditionlib: Occasional cron error
Inhibit division by zero error warnings when rawgrademax and rawgrademin are
equal. The change does not affect existing functional behavior.
2015-07-24 11:36:26 -05:00
David Monllao 082f6c34a8 MDL-44962 mod_wiki: No input filter
Thanks to Tim Lock for the partial fix.
2015-07-24 16:33:55 +02:00
Marina Glancy a457306bff MDL-22819 tags: fix breadcrumb on manage tags page 2015-07-24 21:25:36 +08:00
Daniel Neis Araujo 9de0c83086 MDL-50834 gradebook: Add help text and link to xml grade import 2015-07-24 09:54:34 -03:00
Marina Glancy 7cd401446d MDL-50649 report: query optimisation 2015-07-24 17:38:18 +08:00
Jun Pataleta 959dd36783 MDL-46398 medialib : Change media player ranks
Change player ranks for QT and HTML5 players so that the QT player will be
the fallback player for the playback of MP4, M4V and M4A files.
2015-07-24 15:54:45 +08:00
Jetha Chan b42cb67935 MDL-50868 weblib: add unit test for ruby support 2015-07-24 14:09:48 +09:00
Jetha Chan 171b4563a0 MDL-50868 weblib: add ruby support to purify_html 2015-07-24 14:09:27 +09:00
AMOS bot 3a7e17537d Automatically generated installer lang files 2015-07-24 00:04:16 +08:00
David Monllao 7333fa3391 MDL-50125 navigation: Allowing all kind of plugins to extend navigation 2015-07-23 08:40:06 +02:00
Dan Poltawski 6a51993e9f MDL-49434 availability: more bad whitespace 2015-07-22 23:58:12 +01:00
Dan Poltawski e870b10343 MDL-49434 availability: fix trailing whitespace 2015-07-22 23:49:52 +01:00
Dan Poltawski d84625438e weekly release 3.0dev 2015-07-22 20:42:54 +01:00
Dan Poltawski f2d9f75875 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-07-22 20:42:52 +01:00
Marina Glancy 57ca231ad9 MDL-49434 availability: unit test adjustments 2015-07-22 12:49:22 +08:00
Andrew Nicols 12ae35433f Merge branch 'MDL-50563' of https://github.com/NeillM/moodle 2015-07-22 09:16:32 +08:00
Andrew Nicols bb4ecc7423 Merge branch 'MDL-50762-master' of https://github.com/luryus/moodle 2015-07-22 09:12:05 +08:00
Andrew Nicols 944455b514 Merge branch 'MDL-50699-master' of https://github.com/pauln/moodle 2015-07-22 09:05:06 +08:00
Andrew Nicols 50834fa15f Merge branch 'MDL-50525' of https://github.com/andrewhancox/moodle 2015-07-22 08:55:05 +08:00
Andrew Nicols 6597994206 Merge branch 'MDL-50523' of https://github.com/andrewhancox/moodle 2015-07-22 08:16:36 +08:00
Dan Poltawski 8930d28254 MDL-50663 blocks: minor style fixes 2015-07-21 15:42:34 +01:00
Dan Poltawski da001d4dba Merge branch 'MDL-50663-master' of https://github.com/sk-unikent/moodle 2015-07-21 15:40:10 +01:00
Dan Poltawski 8fb4743e1e Merge branch 'MDL-50293_master' of https://github.com/Syxton/moodle 2015-07-21 12:51:46 +01:00
Marina Glancy 9a7e398664 MDL-50874 block: basic tests for tag-related blocks 2015-07-21 17:02:10 +08:00
Dan Poltawski 3dd2be1df7 Merge branch 'MDL-50427-master' of git://github.com/jleyva/moodle 2015-07-21 09:41:09 +01:00
Dan Poltawski ca43103134 Merge branch 'MDL-50639_mod_book_fontsize_master' of https://github.com/barrysspace/moodle 2015-07-21 09:08:15 +01:00
Andrew Nicols 83bd7fcc89 Merge branch 'MDL-49618-master' of https://github.com/marinaglancy/moodle 2015-07-21 12:14:53 +08:00
Andrew Nicols 8aa8a7465b Merge branch 'MDL-49176_marking_guide' of git://github.com/davosmith/moodle 2015-07-21 11:25:42 +08:00
Andrew Nicols fd05c11399 Merge branch 'MDL-47230_master' of https://github.com/barrysspace/moodle 2015-07-21 11:11:52 +08:00
Andrew Nicols 31cd898ce7 Merge branch 'wip-MDL-41650-master' of https://github.com/marinaglancy/moodle 2015-07-21 09:29:11 +08:00
Andrew Nicols 7b8d4f4005 Merge branch 'MDL-49434-master' of https://github.com/sammarshallou/moodle 2015-07-21 08:13:19 +08:00
Stephen Bourget bb685cf3fa MDL-49581 Lesson: Remove broken high score function 2015-07-20 20:06:44 -04:00
Andrew Hancox c3f38fa686 MDL-50523 mod_assign: Conditionally disable activity setting
On activity settings form if "Students submit in groups" is set to no then
disable "Require group to make submission" setting.
2015-07-20 19:45:02 +01:00
Andrew Hancox b11e24ba7d MDL-50525 mod_assign: Moved preventsubmissionnotingroup
Moved preventsubmissionnotingroup to between teamsubmission and
requireallteammemberssubmit to keep all settings related to
group submissions together.
2015-07-20 19:43:26 +01:00
David Monllao 592ea4b975 MDL-50645 cache: get_plugins_with_function for more than one plugintype 2015-07-20 20:22:04 +02:00
David Monllao 9effa14810 MDL-50645 cache: New plugin_functions cache
Improves memory usage as we don't need to include all files every time we want
to see if any plugin supports a callback.
2015-07-20 20:21:07 +02:00
Dan Poltawski 2e934446c8 Merge branch 'MDL-49440_master' of https://github.com/crazyserver/moodle 2015-07-20 14:02:55 +01:00
Dan Poltawski 641e3c4346 Merge branch 'wip-MDL-50678-master' of git://github.com/marinaglancy/moodle 2015-07-20 13:53:47 +01:00
Barbara Ramiro 265f4f388c MDL-50370 Icons: Filetype icon for ePub 2015-07-20 19:30:25 +08:00
Dan Poltawski 0c59bb747d Merge branch 'MDL-50673-master-workshop-submissions' of git://github.com/mudrd8mz/moodle 2015-07-20 11:20:12 +01:00
Dan Poltawski d44ae46632 Merge branch 'wip-MDL-50612-master' of https://github.com/marinaglancy/moodle 2015-07-20 10:12:16 +01:00
Dan Poltawski 8bdb261a31 Merge branch 'MDL-49582-master' of https://github.com/lucisgit/moodle 2015-07-20 08:23:22 +01:00
Juan Leyva 0b9fc18ba1 MDL-50427 mod_scorm: Rename scorm_view_display to scorm_print_launch
In order to avoid confusion with the new scorm_view fuction
2015-07-20 09:15:44 +02:00
Juan Leyva e9bf301145 MDL-50427 mod_scorm: New Web Service mod_scorm_view_scorm 2015-07-20 09:15:44 +02:00
Juan Leyva ade341deb2 MDL-50427 mod_scorm: Move logging and completion to new API 2015-07-20 09:13:42 +02:00
AMOS bot 1b084d9215 Automatically generated installer lang files 2015-07-20 00:04:59 +08:00
Marina Glancy dd8a0a3909 MDL-19748 tags: edit tags not allowed for auth users 2015-07-19 21:09:32 +08:00
apsdehal aba6e0bfe9 MDL-41650 Tags: Changed css classes of errors and success notice 2015-07-19 20:21:47 +08:00
spvickers 3f35882825 MDL-49629 mod_lti: Add icon fields
Icon fields added to input form when defining an external tool at the
admin level.  The icon for a tool derived from a tool proxy can be
overridden.  Course cache is cleared if current icon value is changed.

Add text boxes to edit form for entering icon URLs.
2015-07-18 12:02:04 -04:00
AMOS bot 118cd37ab6 Automatically generated installer lang files 2015-07-18 00:05:18 +08:00
Lauri Koskela e225a665ff MDL-50762 tool_capability: Do not hide first capability in list 2015-07-17 15:28:37 +03:00
Neill Magill 2c9aca8a45 MDL-50563 blocks: A hidden block that is dropped should be dimmed
Before this patch when dragging and dropping a hidden block it would display as though visible when it was dropped.

This is only a display issue, as a page refresh caused it to be dimmed in its new position.
2015-07-17 09:25:38 +01:00
Barry Oosthuizen 545e415802 MDL-50639 mod_book: Remove 0.8em font sizes 2015-07-17 08:47:07 +01:00
David Mudrák a81b4cab22 MDL-50673 workshop: Fix some coding style violations 2015-07-16 19:44:06 +02:00
David Mudrák 65ba4cdad2 MDL-50673 workshop: Fix the way how submissions are counted
The count_submissions() method does not take the actual enrolment into
account. It is part of the API that looks on all existing data
regardless the actual status of their owner. The author of the
submission may be unenrolled or suspended, in which case they are not
displayed in the report and we would get wrong figures.
2015-07-16 19:41:16 +02:00
M Kassaei bfde810a8b MDL-50673 workshop: Display all participants during submission phase
This patch adds a new report to be displayed during the submission
phase. The report displays all participants who are supposed to submit
their work into the workshop and the status of their submission.
2015-07-16 19:21:37 +02:00
AMOS bot 29c05319e5 Automatically generated installer lang files 2015-07-17 00:04:58 +08:00
Syxton 483fb4ec44 MDL-50293 navigation: File name not wrapping
A long File name doesn't always wrap correctly in the Navigation block.
2015-07-16 10:26:19 -04:00
Tony Butler bf7c844e94 MDL-49582 core_lib: Add button to allow user to reset table preferences 2015-07-16 11:39:25 +01:00
pau.ferrer-ocana 6d4088b7e3 MDL-49440 lib: Date picker duplicated week day names repaired
Thanks Marc Català for the patch
2015-07-16 12:38:59 +02:00
Dan Poltawski e1d4e288ac weekly release 3.0dev 2015-07-16 08:16:15 +01:00
Dan Poltawski 8b11f0db8a Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-07-16 08:16:12 +01:00
Juan Leyva 6166a9fbe7 MDL-50816 notes: Delete never met condition code 2015-07-15 15:31:26 +02:00
Eric Merrill 06c9c36bdc MDL-50833 report: Still make a chart if there are no logs 2015-07-15 09:13:30 -04:00
sam marshall aad5b7f1d0 MDL-49434 availability: Revert MDL-49418 (obsoleted by this change)
This reverts commit 51fef1de35.
2015-07-15 11:43:05 +01:00
sam marshall c7b738546c MDL-49434 availability: Use renderables for multiple messages
Co-Authored-By: Andrew Nicols <andrew@nicols.co.uk>
2015-07-15 11:43:01 +01:00
Barry Oosthuizen 5f9ff79065 MDL-47230 mod_book: Sub chapter bullet formatting 2015-07-15 09:38:29 +01:00
Marina Glancy f1aeb61893 MDL-50678 mod_glossary: removed extra login check 2015-07-15 14:08:48 +08:00
AMOS bot a42a8b6273 Automatically generated installer lang files 2015-07-15 00:05:00 +08:00
Dan Poltawski 82b9551f2d Merge branch 'MDL-49796-master' of git://github.com/jleyva/moodle 2015-07-14 13:01:18 +01:00
Juan Leyva 1c2b788256 MDL-49796 webservices: Fix the functions description 2015-07-14 11:31:57 +02:00
Dan Poltawski 2002b96aea Merge branch 'MDL-37832-M30' of git://github.com/lazydaisy/moodle 2015-07-14 10:14:11 +01:00
Dan Poltawski 0492b93211 Merge branch 'MDL-50270-master' of git://github.com/ankitagarwal/moodle 2015-07-14 08:57:30 +01:00
Dan Poltawski af78b79a58 Merge branch 'MDL-50814-master' of git://github.com/jleyva/moodle 2015-07-14 08:55:06 +01:00
Dan Poltawski 22c844acf4 Merge branch 'MDL-50711_M30' of git://github.com/lazydaisy/moodle 2015-07-14 08:45:27 +01:00
Marina Glancy fc55273e0f MDL-50612 grades: remove gradepass if there is no grading 2015-07-14 13:16:34 +08:00
Pierre GUINOISEAU 7dc5dac678 MDL-50612 grades: do not remove grade box if gradepass field exists 2015-07-14 13:16:31 +08:00
Mary Evans 20955a30c3 MDL-37832 theme: Improved "My Moodle" expandable/collapsible caption. 2015-07-14 00:39:43 +01:00
Dan Poltawski 5852140e65 Merge branch 'MDL-50799-master' of git://github.com/merrill-oakland/moodle 2015-07-13 16:08:23 +01:00
Damyon Wiese b0a583932a MDL-50784 ajax: Require a sesskey for all ajax requests.
This needs to be done before we can expose any webservices that
change state, or return private info to ajax (to prevent CSRF).

Currently there are no webservices exposed to ajax that meet these
criteria - so this issue is to prevent future security issues.
2015-07-13 16:49:06 +02:00
Juan Leyva d3754a972d MDL-50814 badges: Fix incorrect default ordering 2015-07-13 15:08:22 +02:00
Dan Poltawski 5fceb11e6c Merge branch 'MDL-50806-master' of git://github.com/merrill-oakland/moodle 2015-07-13 13:42:53 +01:00
Dan Poltawski a1333dd3a3 Merge branch 'MDL-50732_composerFix' of https://github.com/moodlerooms/moodle 2015-07-13 13:41:15 +01:00
Dan Poltawski 218936aecc Merge branch 'MDL-50798-master' of git://github.com/merrill-oakland/moodle 2015-07-13 13:35:14 +01:00
Dan Poltawski da52ce53b6 Merge branch 'MDL-50800-master' of https://github.com/dkleto/moodle 2015-07-13 13:27:01 +01:00
Ankit Agarwal d494100ea8 MDL-50270 groups: Properly deprecate old apis 2015-07-13 14:55:38 +05:30
Dan Poltawski eb2b84d6d2 Merge branch 'master_MDL-49647' of https://github.com/danmarsden/moodle 2015-07-13 10:05:27 +01:00
Juan Leyva 91a12bc64c MDL-49796 assign: Unit texts for view_grading_table 2015-07-13 09:25:24 +02:00
Juan Leyva e0d6d10a83 MDL-49796 assign: New external function view_grading_table 2015-07-13 09:25:23 +02:00
Paul Nicholls 8ff7531ed7 MDL-43709 Forum: Reset forums not working with multiple forum types
The SQL being generated from the selected forum types on the course reset
form was using AND, resulting in never matching anything if more than one
forum type was selected for resetting (as each forum can only have one
type).  This should use $DB->get_in_or_equal() to generate sensible SQL.
2015-07-13 16:19:08 +12:00
Adam Riddell faf01a4f82 MDL-50800 question: Add missing make_answer method
question/type/calculatedmulti/questiontype.php:
        - Add public make_answer method so that apply_attempt_state
          method in qtype_multichoice_base does not cause a fatal
          error when attempting to call make_answer.
2015-07-13 09:54:15 +10:00
Mary Evans 0163c590f3 MDL-50711 theme_bootstrapbase: Added inverse horizontal divider colors. 2015-07-12 02:50:45 +01:00
Eloy Lafuente (stronk7) 9325cd963f weekly release 3.0dev 2015-07-10 18:11:13 +02:00
Eloy Lafuente (stronk7) 188458a604 MDL-50049 deprecation: Extra minor fixes.
- complete and cleanup upgrade.txt
- replace remaining uses in comments.
- fix some incorrect bulk-replacement in previous commit.
2015-07-10 01:59:31 +02:00
Eloy Lafuente (stronk7) b164e2ec30 Merge branch 'MDL-50049-master' of git://github.com/ankitagarwal/moodle 2015-07-09 20:24:13 +02:00
Eric Merrill cef7621e30 MDL-50806 questions: Allow more memory when doing a question import 2015-07-09 12:27:32 -04:00
Dan Marsden d1673b8f6c MDL-49647 mod_scorm: correct escaping of javascript content. 2015-07-09 16:35:20 +12:00
Marina Glancy fc62987c84 MDL-49618 forum: apply format_string 2015-07-09 08:24:08 +08:00
Eric Merrill a8524f3354 MDL-50799 question: Improve Show all text to be more accurate 2015-07-08 17:17:02 -04:00
Eric Merrill c7092fe489 MDL-50798 question: Raise time limit when rendering questions
Rendering a large number of questions may be quite slow, so we want to
raise the limit.

We don’t call raise() in the loop because the quiz buffer captures this
function for a AJAX script, and we should only call raise if we expect
a corresponding output to the users browser. This helps to prevent
unexpected load balancer disconnects. See core_php_time_limit::raise()
for more details.
2015-07-08 15:49:10 -04:00
Eloy Lafuente (stronk7) 525dce0ade Merge branch 'MDL-49732_master' of https://github.com/jinhofer/moodle 2015-07-07 19:18:19 +02:00
Eloy Lafuente (stronk7) 17d47fa5aa Merge branch 'MDL-50489-master' of git://github.com/jleyva/moodle 2015-07-07 19:12:12 +02:00
Eloy Lafuente (stronk7) cc623a384f Merge branch 'MDL-49185-master' of git://github.com/lameze/moodle 2015-07-07 16:59:19 +02:00
Dan Poltawski 6bf2e10e0a MDL-50466 logstore: bump version to load new task definitions 2015-07-07 15:09:28 +01:00
Dan Poltawski 64489778cd MDL-50295 output: prevent 'emoji' arrows
We need to append U+FE0E VARIATION SELECTOR-15 to the arrow to ensure
our l/rarrows are displayed as text icons, not 'emoji' icons.

See http://unicode.org/reports/tr51/#Diversity for more details of why
this changed in iOS 8.3+.
2015-07-07 14:26:09 +01:00
Dan Poltawski 81eaa3400f Merge branch 'MDL-48074_not_in_group' of git://github.com/davosmith/moodle 2015-07-07 10:09:48 +01:00
Dan Poltawski fae47ac284 Merge branch 'MDL-50466-m' of https://github.com/micaherne/moodle 2015-07-07 09:36:50 +01:00
Dan Poltawski b4947d16d1 MDL-50653 myprofilelib: fix stray ending dl tag
(That is outputing content, rest of function is not!)
2015-07-07 08:53:38 +01:00
Dan Poltawski 28f2335d61 Merge branch 'MDL-50653' of https://github.com/bmbrands/moodle 2015-07-07 08:52:37 +01:00
Dan Poltawski f79860257a MDL-50749 js: add some TODOs to some small hacks 2015-07-07 08:48:32 +01:00
Dan Poltawski da24257a3b Merge branch 'MDL-50749-master' of https://github.com/mackensen/moodle 2015-07-07 08:38:43 +01:00
Charles Fulton 096fd59653 MDL-46167 admin_cli: allow skipping of database installation 2015-07-04 19:15:50 +00:00
Charles Fulton 8d1cdd0139 MDL-50749 course: add fake element for behat compatibility 2015-07-03 18:43:46 +00:00
Eloy Lafuente (stronk7) 78ebb3481c Merge branch 'MDL-50757-master' of git://github.com/damyon/moodle 2015-07-03 11:26:18 +02:00
Damyon Wiese 4359caa22b MDL-50757 upgrade: Unset config value that will never be used again 2015-07-03 16:37:54 +08:00
Davo Smith 0c9d8172b5 MDL-48074 enrol: option to filter by users 'not in any group' 2015-07-03 09:35:57 +01:00
Adrian Greeve 316c560cc5 MDL-50757 gradebook: Update fix for pre 2.8 upgrades.
Moodle installations that updated before the 2.8 grade push
were being flagged for a gradebook freeze. This was resulting in
calculated grades being shown as different to how they were
displayed before the upgrade. This fix retains the original
grade value.
2015-07-03 13:13:12 +08:00
Mark Nielsen a256eddbc3 MDL-50732 testing: Remove repositories from composer 2015-07-02 09:15:41 -07:00
Dan Poltawski e5eefbbf01 weekly release 3.0dev 2015-07-02 14:25:56 +01:00
Dan Poltawski 5a559cacf1 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-07-02 14:25:53 +01:00
Juan Leyva 039c81f098 MDL-50489 forum: Handle qanda forums in get_forum_discussions_paginated
I removed the last qanda checks in forum_user_can_see_discussion because they are not necessary and
they make the external function fail.

A user in a qanda forum can always see a discussion (he needs to see the discussion to be able to reply).
What he cannot see are the other user posts unless he has replied to the discussion once and the edition period
(usually 30 minutes) has ended.

Note also that forum_user_can_see_discussion was originally only used when displaying forums in blog format
in order to display the button show more or not, this is the reason this wasn't detected before.
2015-07-02 10:55:40 +02:00
Marina Glancy 6e4b8381bf MDL-48239 grades: corrected docs url for calculation changes 2015-07-02 15:49:48 +08:00
Marina Glancy f677ece516 MDL-48239 grades: fix notification class 2015-07-02 15:49:46 +08:00
Adrian Greeve 3f8a714f36 MDL-48239 gradebook: Oracle fix for string compare.
Update to upgradelib.php where string comparisions cause
phpunit failures in Oracle.
2015-07-02 12:30:26 +08:00
Eloy Lafuente (stronk7) 3950aa134f Merge branch 'wip-MDL-48239-master' of git://github.com/abgreeve/moodle 2015-07-02 05:42:08 +02:00
Adrian Greeve 6a7c8feb10 MDL-48239 gradebook: Change to calculated grade item min and max.
Regardless of the setting 'Min and max grades used in calculation'
Calculated grade items will always update the min and max raw grade.
2015-07-02 11:13:26 +08:00
Adrian Greeve 716c081049 MDL-48239 gradebook: Unit test for upgrade function. 2015-07-02 11:13:25 +08:00
Adrian Greeve f44ffb724a MDL-48239 gradebook: Behat tests for calculated grade items. 2015-07-02 11:13:25 +08:00
Adrian Greeve 4d4dcc2718 MDL-48239 gradebook: Calculated grades maxgrade now able to be set. 2015-07-02 11:13:25 +08:00
Andrew Hancox fef51794a0 MDL-48970 groups: Fix hover description on groups overview page
If a course exists within multiple groupings then the description
should display when you mouseover any instance of it on the overview
page.
2015-07-01 21:26:48 +01:00
Dan Poltawski 559c0f09bd MDL-39319 langimport: fix language file ordering and trailing whitespace 2015-07-01 11:06:33 +02:00
Dan Poltawski 56420e3664 Merge branch 'MDL-39319-master' of git://github.com/mastnym/moodle 2015-07-01 11:04:37 +02:00
Rajesh Taneja bc7a59536b MDL-50481 behat: SingleSelect can be urlselect and should support id/name 2015-07-01 10:52:21 +08:00
David Monllao b4d7038a88 Merge branch 'MDL-50497-M30' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2015-07-01 08:54:28 +08:00
Eloy Lafuente (stronk7) e96e66aa16 MDL-50130 todo: Conditional code to be changed to API by MDL-50728 2015-06-30 19:56:48 +02:00
Juan Leyva f804c73055 MDL-50130 users: Filter profile fields data in external functions 2015-06-30 19:52:19 +02:00
AMOS bot 7fd8762479 Automatically generated installer lang files 2015-07-01 00:04:55 +08:00
Dan Poltawski 0b45c56da1 Merge branch 'wip-mdl-50481' of https://github.com/rajeshtaneja/moodle 2015-06-30 12:25:52 +02:00
Dan Poltawski 2606aecc3b Merge branch 'MDL-33765_master_offset' of git://github.com/markn86/moodle 2015-06-30 11:32:47 +02:00
Dan Poltawski 8ce68b0723 Merge branch 'MDL-43949_master' of git://github.com/dmonllao/moodle 2015-06-30 10:34:08 +02:00
Dan Poltawski 1b80849856 Merge branch 'MDL-47787-master' of https://github.com/tbannister/moodle 2015-06-30 09:52:52 +02:00
David Monllao 35af60da7e MDL-50569 backup: Missing get_target call 2015-06-30 10:26:18 +08:00
Dan Marsden 476e97f280 MDL-50614 mod_scorm: Improve validation on currentorg 2015-06-30 10:12:51 +08:00
David Monllao c6a1425ffb Merge branch 'MDL-50569-master' of git://github.com/FMCorz/moodle 2015-06-30 09:30:57 +08:00
Mark Nelson eabbc98c78 MDL-50220 mod_forum: added missing capability check 2015-06-29 18:43:09 +02:00
Eloy Lafuente (stronk7) 154d468dbb Merge branch 'wip-mdl-50675' of https://github.com/rajeshtaneja/moodle 2015-06-29 18:25:55 +02:00
Eloy Lafuente (stronk7) 0339f2c4c1 MDL-50688 lib: small cleanup + http/https coverage. 2015-06-29 17:12:55 +02:00
Petr Skoda 5c1f41f058 MDL-50688 lib: fix local url validation bug
Change-Id: I350bb8c9ace5cc0403f083f728c100097be7aa7e
Reviewed-on: https://review.totaralms.com/8101
Tested-by: Jenkins Automation <jenkins@totaralms.com>
Reviewed-by: Sam Hemelryk <sam.hemelryk@totaralms.com>
Reviewed-by: Alastair Munro <alastair.munro@totaralms.com>
2015-06-29 16:44:03 +02:00
Ankit Agarwal 2149326b8c MDL-50049 deprecation: Remove usage of deprecated api and cleanup 2015-06-29 17:15:50 +05:30
Skylar Kelty 56af0fbda8 MDL-50663 blocks: Fix /my/ page when in non-user context 2015-06-29 11:37:10 +01:00
David Monllao 489878ad09 Merge branch 'MDL-50708_master' of git://github.com/nadavkav/moodle 2015-06-29 15:57:27 +08:00
Michael Aherne 8daf8d87f2 MDL-50466 tasks: Specific minute values for log cleanup 2015-06-29 08:45:04 +01:00
Frederic Massart eff864e7eb MDL-50569 grades: Restore as merge always ignores minmaxtouse 2015-06-29 14:24:13 +08:00
Frederic Massart cd4061ecd4 MDL-50569 grades: Handle minmaxtouse in backup/restore 2015-06-29 14:24:12 +08:00
Ankit Agarwal 8322ed4a66 MDL-50049 deprecation: Rearrange deprecated apis for better future management 2015-06-29 11:36:36 +05:30
Ankit Agarwal 33c46db574 MDL-50049 deprecation: Group together long term deprecated apis 2015-06-29 11:36:36 +05:30
Ankit Agarwal 1ac1d29b6d MDL-50049 deprecation: Final deprecation of old apis 2015-06-29 11:36:36 +05:30
David Monllao 21a0a68196 Merge branch 'MDL-50646-master-preflang' of git://github.com/mudrd8mz/moodle 2015-06-29 13:35:44 +08:00
David Monllao e3e7c90528 Merge branch 'MDL-50652_master' of git://github.com/reskit/moodle 2015-06-29 13:01:51 +08:00
Mark Nelson 8e7774fa8c MDL-33765 filter_glossary: fixed jshint warning 2015-06-28 21:44:11 -07:00
Martin Mastny a42f94a38d MDL-33765 filter_glossary: Stacking JS windows with offset 2015-06-28 21:44:11 -07:00
Martin Mastny 57a1f4fc65 MDL-33765 mod_glossary: Concept in ajax request not linking to itself 2015-06-28 21:44:11 -07:00
David Monllao 5324a7202a Merge branch 'wip_MDL-50659_master' of git://github.com/gjb2048/moodle 2015-06-29 11:45:02 +08:00
Rajesh Taneja 139dcb1879 MDL-50675 repository_wikimedia: Fixed title varaible 2015-06-29 09:53:45 +08:00
Rajesh Taneja f463158b1f MDL-50675 repository_wikimedia: Wikimedia is using https and not http 2015-06-29 09:53:02 +08:00
Nadav Kavalerchik e51bdc0bcc MDL-50708 SCORM: Right align menu item folder icon, when in RTL mode. 2015-06-27 23:49:11 +03:00
Gareth J Barnard 8576569f14 MDL-50659 themes: Regression: Drag a link makes icons move. 2015-06-26 11:41:16 +01:00
Paul Nicholls a673650477 MDL-50699 Lesson: "Link to next activity" empty until Lesson saved
Due to a logic bug, the "Link to next activity" dropdown was empty (only
contains the "None" option) until the Lesson had been saved.  This minor
change allows a "next activity" to be specified when initially creating
the Lesson whilst still preventing the user from choosing the Lesson as its
own next activity.
2015-06-26 16:16:23 +12:00
Tyler Bannister 7f7144fd50 MDL-47787 course: Added question delete to cm delete. 2015-06-25 16:35:22 -04:00
Mary Evans d8d65e76e0 MDL-50497 theme_bootstrapbase: Divider colours look wrong when inverted 2015-06-25 18:18:56 +01:00
Marc Català 90faa6ae9c MDL-50652 workshop: Workshop module allows duplicated ID number 2015-06-25 14:28:10 +02:00
David Monllao ed0fd1f6ec MDL-43949 groups: Add idnumber to web services
Thanks to Vitor Martins for his contribution.
2015-06-25 16:55:14 +08:00
Marina Glancy fd36588fb6 MDL-49257 grades: apply freeze when restoring with contents deleting 2015-06-25 14:39:15 +08:00
David Monllao 38cb73a47f weekly release 3.0dev 2015-06-25 13:49:57 +08:00
David Monllao f301aacb6f Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-06-25 13:49:55 +08:00
Marina Glancy feda17c38e MDL-49257 grades: strings adjustments 2015-06-25 09:56:36 +08:00
Bas Brands bffb1c15b3 MDL-50653 user: forgotten closing div tag on the page
The /user/view.php was missing a closing div for the <div class="description">
causing the page grid to break on any Bootstrap 3 based theme.
2015-06-24 08:36:52 +02:00
David Monllao 94f73fdbcc MDL-50283 gradeform_rubric: No need to escape HTML entities 2015-06-24 11:21:56 +08:00
Eloy Lafuente (stronk7) 870d1aae1e MDL-49022 auth_ldap: keep method visibility unmodified. 2015-06-24 03:07:35 +02:00
Eloy Lafuente (stronk7) 78f312ae75 Merge branch 'wip-mdl-49022' of https://github.com/rajeshtaneja/moodle 2015-06-24 03:02:59 +02:00
Dan Poltawski b32ba584b2 Merge branch 'MDL-49497' of git://github.com/stronk7/moodle 2015-06-23 16:25:04 +01:00
Eloy Lafuente (stronk7) 9a1adda585 MDL-49497 curl: keep api private and test it using reflection.
While strictly we should not be testing private APIs, in order
to get this backported to stables without changing visibility
we use reflection to access to such private properties and methods.

Also added one exttest to verify user agent is properly sent.

Finally, fix some wrong whitespace and changed the helper class name
to better alternative.
2015-06-23 17:20:20 +02:00
Dave Cooper cbb7c6a905 MDL-49497 curl: Add configurable User-Agent unit tests. 2015-06-23 15:59:59 +02:00
Dave Cooper 300fcae31d MDL-49497 curl: Allow configurable User-Agent.
Thanks to Kartik Yadav for assistance with this patch.
2015-06-23 15:59:59 +02:00
Dan Poltawski 6d59f63914 Merge branch 'MDL-50533-master' of git://github.com/jethac/moodle 2015-06-23 14:12:21 +01:00
Dan Poltawski 782300f3a8 Merge branch 'MDL-50283_master' of https://github.com/dmonllao/moodle 2015-06-23 12:37:05 +01:00
Dan Poltawski 20a16512ee Merge branch 'wip-MDL-49257-master' of git://github.com/marinaglancy/moodle 2015-06-23 11:20:08 +01:00
Rajesh Taneja 5ee54f87a1 MDL-49022 auth_ldap: Updated unit test, checking sync_user events 2015-06-23 17:00:35 +08:00
Mark Ward 7b9643b59c MDL-49022 auth_ldap: trigger event when required.
When calling update_user_record() for auth_ldap the method
now has option to trigger event core\event\user_updated when
syncing with domain controller.
This means that the event will be triggered by sync_users()
but not by user_signup().
2015-06-23 17:00:34 +08:00
Marina Glancy 46267b7b25 MDL-49257 grades: behat tests for extra credit 2015-06-23 14:25:50 +08:00
Marina Glancy 156d048659 MDL-49257 grades: fix bugs with extra credit weights
When we adjust the weights in natural grading (setup screen), the extra credit items
should not depend on other overrides. If extra credit item's weight was overriden, it stays as it is.
Otherwise it is calculated as itemgrademax / totalgrademax (total excludes extra credit items)
2015-06-23 14:25:50 +08:00
Marina Glancy deb3d5ed00 MDL-49257 grades: introduce calculation freeze
In order to prevent changes in the existing grades when we fix bugs
we are introducing the gradebook code versioning. Each course may
"freeze" the code version to the older date. Freezing is usually done
during upgrade or restore and can be removed by the teacher by pressing
the button and accepting potential grade changes. There is no visible
setting and not possible to change the version back manually.

See MDL-50432 and MDL-50522
2015-06-23 14:25:47 +08:00
David Monllao 866573e02b Merge branch 'MDL-50491' of git://github.com/stronk7/moodle 2015-06-23 13:31:34 +08:00
David Monllao 54a1ef2655 MDL-50611 testing: Extra http status code checking 2015-06-23 10:34:18 +08:00
David Monllao 8cb6117867 Merge branch 'MDL-50611-master' of git://github.com/LukeCarrier/moodle 2015-06-23 10:25:36 +08:00
spvickers 01f38dd0e2 MDL-49185 mod_lti: Check for all capabilities
Added check for explicit and implicit enabled capabilities when parsing
a custom parameter.
2015-06-23 10:22:41 +08:00
Eloy Lafuente (stronk7) 26adb614ae Merge branch 'MDL-50171-master' of git://github.com/jleyva/moodle 2015-06-23 01:42:47 +02:00
Eloy Lafuente (stronk7) 06ec3e57f1 Merge branch 'MDL-29763_portfolio_description' of git://github.com/davosmith/moodle 2015-06-23 01:39:55 +02:00
Eloy Lafuente (stronk7) cd1d7c2993 Merge branch 'MDL-50089-master' of git://github.com/merrill-oakland/moodle 2015-06-22 19:58:53 +02:00
Eric Merrill 394ade5f2b MDL-50089 grades: Use grade item min/max in exports 2015-06-22 12:58:40 -04:00
Eloy Lafuente (stronk7) 7415646bcd Merge branch 'MDL-50583_master' of git://github.com/dmonllao/moodle 2015-06-22 18:57:35 +02:00
Luke Carrier 0897e19093 MDL-50611 test: use cURL extension to download Composer
The curl binary is nowhere near as common in Windows environments as it is
in Linux and Mac ones. In order to encourage more users to adopt Behat and
PHPUnit for their testing, we should avoid introducing unnecessary
hurdles.
2015-06-22 15:50:01 +01:00
Dan Poltawski 0c689b02fb Merge branch 'MDL-50460_master' of git://github.com/lazydaisy/moodle 2015-06-22 13:29:10 +01:00
Dan Poltawski bf6395107b Merge branch 'MDL-50091' of git://github.com/timhunt/moodle 2015-06-22 12:06:49 +01:00
David Monllao 15e6543a5f Merge branch 'MDL-50622-master-enfix' of git://github.com/mudrd8mz/moodle 2015-06-22 17:43:56 +08:00
Davo Smith 556e33d77c MDL-49176 gradingform_guide: display newline characters as <br> tags 2015-06-22 10:13:18 +01:00
David Monllao 61e4716383 Merge branch 'MDL-50561-master' of git://github.com/jleyva/moodle 2015-06-22 16:02:57 +08:00
David Monllao 336bded4f1 Merge branch 'wip-MDL-50568-master' of git://github.com/marinaglancy/moodle 2015-06-22 15:33:06 +08:00
David Monllao 502d960528 Merge branch 'wip-MDL-50580-master' of git://github.com/marinaglancy/moodle 2015-06-22 12:48:26 +08:00
David Monllao e15f9c8cad Merge branch 'MDL-50631-master-clilogo' of git://github.com/mudrd8mz/moodle 2015-06-22 11:19:07 +08:00
Davo Smith 1a6448fded MDL-29763 portfolio: add helpful description to the page 2015-06-19 14:54:58 +01:00
Tim Hunt 1c733bd604 MDL-50648 grader report: columns misaligned with some permissions
If a user can see the grader report and singleview report, but not
the user report ($CFG->grade_profilereport) then the colspans
were wrong and so the columns did not line up under the right headers.
2015-06-19 12:35:54 +01:00
David Mudrák 7e670032bf MDL-50646 admin: Use site default lang as new user's preferred lang
As a result of MDL-49632, the preferred language is no longer part of
the "Add a new user" form. So the lang property is not passed to the
user_create_user() when creating a new user and the value always falls
back to "en" (which is the default defined in the database for this
column).

This patch makes sure that the site default language is used in such
case.
2015-06-19 13:25:44 +02:00
Helen Foster ddef7f7848 MDL-50622 lang: Merge English strings from the en_fix language pack 2015-06-19 12:11:33 +02:00
Juan Leyva 2291883052 MDL-50561 messages: Add missing __isset magic method 2015-06-19 09:44:50 +02:00
Juan Leyva 3c4d2965de MDL-50171 data: Fixed incorrect text formatting in external functions 2015-06-19 09:43:51 +02:00
David Monllao a939ae6da7 MDL-50283 gradingform_rubric: Minor styling fixes 2015-06-19 12:44:07 +08:00
Syxton e22c8d2ae3 MDL-50283 rubric: Add duplicate row button
Adds the ability to duplicate a row in a rubric.
2015-06-19 12:00:23 +08:00
Rajesh Taneja 77f1778c40 MDL-50481 core_grades: Fixed behat feature and step to work with non-js
xPath used in step is not using proper oring
and fails with goutee driver. Also, feature don't
really need to be executed in js, so setting that
as non-js
2015-06-19 12:00:11 +08:00
Rajesh Taneja bf4c3ee0ff MDL-50481 behat: Press go button for given single select in non-js
For non-js mode, ensure we press the go button
for the specified single select, as there can be
multiple single selects on the page with go button
2015-06-19 12:00:11 +08:00
Mary Evans 3078b980f5 MDL-50460 theme_bootstrapbase: Profile image overlays docked blocks. 2015-06-19 02:46:15 +01:00
AMOS bot 1920f3a35a Automatically generated installer lang files 2015-06-19 00:04:06 +08:00
Dan Poltawski f4bfbd5aa2 weekly release 3.0dev 2015-06-18 14:03:02 +01:00
Dan Poltawski 096ca66866 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-06-18 14:03:00 +01:00
Skylar Kelty f936c2a9fa MDL-50637 calendar: Fix subscription table layout 2015-06-18 13:21:33 +01:00
Eloy Lafuente (stronk7) c13b7bca50 Merge branch 'MDL-50004-M30' of git://github.com/lazydaisy/moodle 2015-06-18 07:25:29 +02:00
Eloy Lafuente (stronk7) 51a09cb43e Merge branch 'MDL-50107-master' of git://github.com/jleyva/moodle 2015-06-18 07:13:40 +02:00
Dan Poltawski bceaa941c8 Merge branch 'MDL-49959_course_dnd_message' of https://github.com/barrysspace/moodle 2015-06-18 07:13:39 +02:00
Martin Mastny 25bfc7cfc0 MDL-49744 JavaScript: Glossary term window is draggable 2015-06-18 07:13:38 +02:00
Dan Poltawski 4b22fa7996 Merge branch 'MDL-42192-simpledata-unit-test' of git://github.com/dmonllao/moodle 2015-06-18 07:13:37 +02:00
Dan Poltawski a0dffaa946 MDL-42192 accesslib: tweak get_all_capabilities
Tony thinks its bike shed painting, I think its a bit more readable
and memory efficient. I am using integrator dictatorship for sure.
2015-06-18 07:13:37 +02:00
Dan Poltawski a6661ae013 Merge branch 'capabilities_cache' of git://github.com/tlevi/moodle 2015-06-18 07:13:35 +02:00
Andrew Nicols 40d7ef8231 Merge branch 'wip-MDL-50216-master' of git://github.com/abgreeve/moodle 2015-06-18 07:13:34 +02:00
Andrew Nicols cd27a8608c MDL-39353 xmlrpc: Add note to upgrde.txt regarding proxybypass 2015-06-18 07:13:34 +02:00
Andrew Nicols 4265cfa557 Merge branch 'MDL-39353' of https://github.com/rtcn2/moodle 2015-06-18 07:13:33 +02:00
Andrew Nicols 670befcc0b Merge branch 'wip-MDL-49667-master' of git://github.com/marinaglancy/moodle 2015-06-18 07:13:32 +02:00
Eloy Lafuente (stronk7) 33e8095d94 Merge branch 'MDL-48283-master' of git://github.com/xow/moodle
Conflicts:
theme/bootstrapbase/style/moodle.css
2015-06-18 07:13:10 +02:00
Andrew Nicols d04e408e38 Merge branch 'php7_reserved_words' of git://github.com/tlevi/moodle 2015-06-18 07:10:38 +02:00
Andrew Nicols 7512af87d4 Merge branch 'MDL-50380-master' of git://github.com/lameze/moodle 2015-06-18 07:10:37 +02:00
Eloy Lafuente (stronk7) 0d6f53e8f7 MDL-50491 filters: Some final touches.
- Complete the deprecation information to follow the rules.
- Minor tweak to PLAIN tests to have clearer expectations.
- Completely delete get_global_config() from filters, there
  was not much utility keeping it there. Note we have opted
  for direct deletion because it's private API, not public one
  (and searching github/google/docs did not reveal any use
  of those functions either, just in case).
2015-06-18 04:11:24 +02:00
David Mudrák 394034ec6e MDL-50631 cli: Display the Moodle ASCII logo in the CLI installer header 2015-06-17 22:48:14 +02:00
David Mudrák 85f8fe5e1b MDL-50631 cli: Add a new function to display Moodle ASCII logo 2015-06-17 22:45:48 +02:00
Tim Hunt 41e5e524f9 MDL-50491 filters: Eliminate un-resettable static caching.
This was breaking unit tests. I think it is no longer necessary since
get_config now has good caching of its own.
2015-06-17 13:48:56 +01:00
Tim Hunt 7d94679ff1 MDL-50491 filters: option to disable some filters in filter_text.
This lets you programmatically prevent certain filters running on
certain content.

Also, I created some unit tests for the basic format_text functionality
since there did not seem to be any yet.
2015-06-17 13:48:55 +01:00
Tim Hunt a94b2cb873 MDL-50491 admin: new setting class for list of filters. 2015-06-17 13:48:55 +01:00
Tim Hunt 502561d657 MDL-50491 filters: deprectate old methods & improve comments
Two methods relating to the old way of doing format_text caching have
been deprecated.
2015-06-17 13:48:54 +01:00
Tim Hunt 2ebeeeaf0a MDL-50091 grade singleview: use standard API to build the link
Acutally the necessary code was already there. There was just some
unnecessary code that was added with the issue number MDL-47746. I have
just stripped out the unused code, which fixes the bug where a missing
activity caused a fatal error.
2015-06-17 13:46:04 +01:00
Marina Glancy 5e91f96c92 MDL-50580 signup: move recaptcha outside of category 2015-06-17 11:17:32 +08:00
M Kassaei ef0a59ab7c MDL-47494 ddimageortext: Fix drag and drop on Android touch devices. #85108
The initial suggestion for how to do this fix came from Davo Smith.
2015-06-16 18:38:56 +01:00
M Kassaei 3f6905b410 MDL-47494 ddwtos: Fix drag and drop on Android touch devices. #85101
The initial suggestion for how to do this fix came from Davo Smith.
2015-06-16 18:25:53 +01:00
M Kassaei e76deaac51 MDL-47494 ddmarker: Fix drag and drop on Android touch devices. #85111
The original idea for this fix came from Davo Smith.
2015-06-16 18:20:40 +01:00
AMOS bot f506c4b3bb Automatically generated installer lang files 2015-06-17 00:03:59 +08:00
AMOS bot 34fcf06cae Automatically generated installer lang files 2015-06-17 00:03:58 +08:00
Jetha Chan affa8c035c MDL-50533 theme_bootstrapbase: retarget collapse styles 2015-06-16 16:28:27 +08:00
Marina Glancy 034fed3edc MDL-49667 navigation: allow items without branches in the settings menu
also remove the code that adds a "return to XXX user" link that was
supposed to be removed in MDL-23911 , otherwise the link would become
visible after the bug fix (but not functional).
2015-06-16 10:19:52 +08:00
Martin Mastny 78ee66c097 MDL-50216 JavaScript: Default visibility of M.core.info set to false 2015-06-16 09:50:36 +08:00
Dan Poltawski 28887344d6 Merge branch 'MDL-49368' of git://github.com/timhunt/moodle 2015-06-15 12:14:35 +01:00
Dan Poltawski 846dade5ab Merge branch 'MDL-49098-master' of git://github.com/xow/moodle 2015-06-15 12:12:07 +01:00
Dan Poltawski 459fccb791 Merge branch 'MDL-50219-master' of git://github.com/jleyva/moodle 2015-06-15 11:06:09 +01:00
Andrew Nicols 9cd9a27422 Merge branch 'MDL-50459-master' of git://github.com/jleyva/moodle 2015-06-15 16:02:53 +08:00
Andrew Nicols 951bd98f73 Merge branch 'wip-MDL-50222-master' of git://github.com/marinaglancy/moodle 2015-06-15 15:16:30 +08:00
Tony Levi 303936aa57 MDL-50453 core: Replace reserved word usage in progress\null (PHP7) 2015-06-15 12:21:27 +09:30
GeekSmith 82cca1ab16 MDL-50583 upgrade: Optimize upgrade_minmaxgrade
Reverse join order to use existing database keys. Changed query to use the
more easily read NOT IN.
2015-06-15 10:40:46 +08:00
Andrew Nicols d0d93a769d Merge branch 'MDL-50438-master' of git://github.com/mastnym/moodle 2015-06-15 10:20:19 +08:00
Andrew Nicols 941420c266 Merge branch 'MDL-50509-master-vartypo' of git://github.com/mudrd8mz/moodle 2015-06-15 09:56:49 +08:00
Andrew Nicols 62c6744fc8 MDL-50554 themes: Rebuild of bootstrapbase 2015-06-15 09:48:44 +08:00
Andrew Nicols e9ca711ecc Merge branch 'MDL-50520-master' of git://github.com/jethac/moodle 2015-06-15 09:08:48 +08:00
Mary Evans f6218c4be8 MDL-50004 theme: Fixes frontpage coursename and enrolment icons. 2015-06-15 00:23:34 +01:00
Gareth J Barnard 3f737fc07d MDL-50554 themes: Drag a link move mouse makes icons move in Chrome. 2015-06-14 21:36:02 +01:00
Juan Leyva 0b074e88d6 MDL-50459 messages: Handle deleted users in external functions 2015-06-14 22:12:00 +02:00
Juan Leyva 32fb60e761 MDL-50219 users: Include add_user_private_files in the mobile service 2015-06-14 22:09:28 +02:00
Dan Poltawski f1a415ea70 weekly release 3.0dev 2015-06-12 10:24:37 +01:00
Dan Poltawski 51150c54ff Merge branch 'MDL-48618_master-test-calculated' of git://github.com/dmonllao/moodle 2015-06-12 10:19:23 +01:00
Eloy Lafuente (stronk7) 6eb9e03872 MDL-50176 repository_youtube: delay loading google service stuff
Loading Google client services is a little monster, eating around
2MB (opcache enabled) of memory. As far as we instantiate the
repository instances really early, no matter they are not used
later (editor, file picker, admin...).. we are delaying the
load of the service until we know we are going to use it.

Surely applying this very same (sort of lazy load) techinque
to other repositories could lead to a nice memory reduction
in lots of pages.

MDL-50176 repository_youtube: also delay the inclusion of client.

While memory was fixed with previous commit, still some extra included
files where being reported, so go crazy and move all the stuff to
the new init delayed method.
2015-06-12 10:27:30 +02:00
David Monllao 12a4770d9b MDL-48618 grades: Testing calculated items with minmaxtouse 2015-06-12 13:19:04 +08:00
Marina Glancy 1d61d56574 MDL-50568 navigation: correct cap check 2015-06-12 10:41:36 +08:00
Frederic Massart 6bd5ca3db0 MDL-48618 grades: Do not run minmax upgrade for fresh installs 2015-06-11 17:16:34 +08:00
Dan Poltawski e2ddd9ad04 Merge branch 'wip-mdl-49659' of https://github.com/rajeshtaneja/moodle 2015-06-11 09:56:07 +01:00
David Monllao d8ee571298 MDL-48618 upgrade: Matching conditions and upgrade savepoints 2015-06-11 15:02:06 +08:00
David Monllao 408e3812af MDL-48618 grades: Forcing new upgrade savepoint 2015-06-11 14:37:31 +08:00
David Monllao e87acc8386 Merge branch 'MDL-48618-master' of git://github.com/FMCorz/moodle 2015-06-11 14:20:56 +08:00
Rajesh Taneja 352a70e25d MDL-49659 theme_clean: Add login info in the nav bar 2015-06-11 10:21:35 +08:00
Eloy Lafuente (stronk7) b2521cfa45 Merge branch 'MDL-50250-master' of git://github.com/lameze/moodle 2015-06-11 00:32:11 +02:00
Eloy Lafuente (stronk7) 05df4bc5f9 MDL-50452 behat: 2nd level dep. Update twig/twig to v1.18.2 2015-06-10 13:34:58 +02:00
Juan Leyva d421a41979 MDL-50107 webservices: Enable CORS in login/token.php 2015-06-10 11:33:53 +02:00
Rod Norfor 0f382fe2e7 MDL-39353 xmlrpc: Add proxy support 2015-06-10 08:17:36 +01:00
Frederic Massart 056aeae8d4 MDL-48618 grades: Test for the minmax upgrade step 2015-06-10 12:33:42 +08:00
Frederic Massart 597fc6db1a MDL-48618 grades: Behat tests to cover min/max grade changes
The values provided as part of this test are similar to values
that can be found in 2.7. This is to ensure that users will not
experience changes in grades.
2015-06-10 12:33:42 +08:00
Frederic Massart 2eb4a83c29 MDL-48618 grades: Unit tests for grade_grade::get_min/max_grade() 2015-06-10 12:33:41 +08:00
Frederic Massart ebea19cb26 MDL-48618 grades: Handling of inconsistencies due to min/max grades 2015-06-10 12:33:41 +08:00
Eloy Lafuente (stronk7) 22214c22d1 Merge branch 'MDL-49882' of git://github.com/jmvedrine/moodle 2015-06-10 01:39:17 +02:00
Eloy Lafuente (stronk7) 28ddf1e94d Merge branch 'MDL-47480-master' of git://github.com/ankitagarwal/moodle 2015-06-10 00:32:10 +02:00
Eloy Lafuente (stronk7) 75704fe6b8 Merge branch 'wip-MDL-28954-master' of https://github.com/marinaglancy/moodle 2015-06-10 00:23:20 +02:00
Eloy Lafuente (stronk7) db91aae8f4 Merge branch 'MDL-50145_master' of git://github.com/markn86/moodle 2015-06-09 20:40:56 +02:00
Eloy Lafuente (stronk7) 7d91e86452 Merge branch 'm30_MDL-50415_Add_PHP_Variables_In_PHPInfo_Admin_Page' of https://github.com/scara/moodle 2015-06-09 20:35:02 +02:00
Eloy Lafuente (stronk7) 094356a954 Merge branch 'wip-mdl-50179' of https://github.com/rajeshtaneja/moodle 2015-06-09 20:32:10 +02:00
Eloy Lafuente (stronk7) b3b6dc9d66 Merge branch 'MDL-50176' of git://github.com/aolley/moodle 2015-06-09 20:28:36 +02:00
Dan Poltawski cc9806146d Merge branch 'MDL-43731' of https://github.com/ramdesh/moodle 2015-06-09 14:56:52 +01:00
Dan Poltawski f68cf0a2b7 Merge branch 'MDL-49659_master' of git://github.com/lazydaisy/moodle 2015-06-09 14:42:12 +01:00
Dan Poltawski 6362f68ebe Merge branch 'MDL-49885_course_overview_block2' of https://github.com/andyjdavis/moodle 2015-06-09 13:57:10 +01:00
Dan Poltawski 39e8ff6226 Merge branch 'MDL-50186-master' of git://github.com/mastnym/moodle 2015-06-09 13:28:16 +01:00
Barry Oosthuizen a3657f8b42 MDL-49959 course: Fix hidden drag and drop message 2015-06-09 09:37:53 +01:00
Mark Nelson 1254e48f26 MDL-50145 mod_lesson: added behat test for multiple dashboard lessons 2015-06-09 00:49:04 -07:00
Jetha Chan e37d53dac1 MDL-50520 templates: fix helpers not firing inside pix helper 2015-06-09 15:23:04 +08:00
Mark Nelson 2c4b43d9b2 MDL-50145 mod_lesson: fixed issue with duplicate values 2015-06-08 22:09:25 -07:00
Rajesh Taneja 2835eee63b MDL-50179 lesson: Get student/attempts only when showing overview 2015-06-09 09:34:10 +08:00
Rajesh Taneja f0b48270d3 MDL-50179 behat: Use %d for windows compatibility 2015-06-09 09:34:10 +08:00
Eloy Lafuente (stronk7) b26f8af988 MDL-48470 strings: Fix unit tests by moving to another string. 2015-06-08 22:53:06 +02:00
Eloy Lafuente (stronk7) d3c2a653a8 Merge branch 'MDL-48470-master' of git://github.com/ankitagarwal/moodle 2015-06-08 19:55:34 +02:00
Eloy Lafuente (stronk7) d4d1b2b5a3 Merge branch 'MDL-50394_master' of git://github.com/markn86/moodle 2015-06-08 18:32:45 +02:00
Eloy Lafuente (stronk7) 6422f03f15 Merge branch 'MDL-50442-master' of git://github.com/jleyva/moodle 2015-06-08 18:21:31 +02:00
Eloy Lafuente (stronk7) 4a85f8dc16 Merge branch 'MDL-50408_master' of git://github.com/dmonllao/moodle 2015-06-08 15:49:06 +02:00
David Mudrák cdc6938bf9 MDL-50509 datalib: Fix the typo in the variable name
The line is supposed to sanitize the function parameter.
2015-06-08 11:14:08 +02:00
Marina Glancy 2bf60e22f7 MDL-50222 admin: do not use deprecated print_textarea() 2015-06-08 17:10:58 +08:00
David Monllao 5c73688b4a MDL-50408 tool_log: Extra deprecation tip
Adding a debugging message and returning alternative data to keep backwards
compatibility as get_readers is a widely used function.
2015-06-08 15:56:23 +08:00
Marina Glancy 6218473334 MDL-28954 cohorts: support files in cohort descriptions 2015-06-08 09:18:45 +08:00
Eloy Lafuente (stronk7) eec5902cd6 Merge branch 'wip-mdl-50452' of git://github.com/rajeshtaneja/moodle 2015-06-08 02:33:31 +02:00
Andrew Davis ef38a7286b MDL-49885 core_blocks: fixed course_overview block applicable_formats() 2015-06-08 05:42:18 +08:00
Eloy Lafuente (stronk7) 208ebc5cd1 Merge branch 'MDL-50456-master' of git://github.com/damyon/moodle 2015-06-07 21:56:18 +02:00
Juan Leyva b1aa7dfac3 MDL-50493 forum: Handle correctly qanda forums in get_discussion_posts 2015-06-06 00:00:56 +02:00
Eric Merrill c07775dfff MDL-48618 gradebook: Only use individual min/max for aggrigate grades 2015-06-05 17:05:24 +08:00
Juan Leyva ceac202f64 MDL-50442 ws: Add core_user_get_users_by_field to the mobile service 2015-06-04 22:02:04 +02:00
Mary Evans 5563c0bcc1 MDL-49659 theme: Removed home link and limited login info in secure.php
Credits: Thanks go to Andreas Hruska [https://github.com/ahruska] for the original patch for this issue.
2015-06-04 17:39:49 +01:00
Eloy Lafuente (stronk7) 17abbfba1f weekly release 3.0dev 2015-06-04 12:08:53 +02:00
Eloy Lafuente (stronk7) 7d55d643a0 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-06-04 12:08:45 +02:00
Rajesh Taneja 7deb61e7c0 MDL-47995 lib: encode title properly, before additing it to image title 2015-06-04 11:13:00 +08:00
jinhofer 59f7fd42e0 MDL-50140 grade/import: Fix for misplaced CSH buttons 2015-06-03 15:44:28 +01:00
Eloy Lafuente (stronk7) 0eee70506e Merge branch 'MDL-47995-master' of git://github.com/lameze/moodle 2015-06-03 11:10:41 +02:00
yashvardhanpatel07 3da723d548 MDL-49098 feedback: Fix completion message language strings
With contributions from John Okely
2015-06-03 16:47:52 +08:00
Dan Poltawski 21313019d9 Merge branch 'MDL-46294-master' of git://github.com/ankitagarwal/moodle 2015-06-03 08:53:19 +01:00
Mark Nelson 9758da6ed5 MDL-50394 core_course: fixed form validation of 'gradepass' 2015-06-02 23:31:46 -07:00
Damyon Wiese 2139d7995b MDL-50456 Javascript: Fix simple logic error in core/url amd module 2015-06-03 14:21:03 +08:00
Rajesh Taneja bf32276058 MDL-50452 behat: Added tag for moodle 3.0 2015-06-03 11:50:11 +08:00
Ankit Agarwal 28ac49c899 MDL-46294 completion: Final deprecation of get_incomplete_criteria 2015-06-03 07:36:40 +05:30
Eloy Lafuente (stronk7) 1df669e7bf Merge branch 'MDL-50228' of git://github.com/timhunt/moodle 2015-06-03 01:29:46 +02:00
Eloy Lafuente (stronk7) 23abab38e7 Merge branch 'MDL-50198' of git://github.com/timhunt/moodle 2015-06-03 01:19:42 +02:00
Eloy Lafuente (stronk7) 2426d816fe Merge branch 'MDL-49901_master' of https://github.com/jinhofer/moodle 2015-06-02 19:57:38 +02:00
Dan Poltawski 4bbb035830 Merge branch 'MDL-49905_postform_timeoption' of https://github.com/kylemn/moodle 2015-06-02 16:06:45 +01:00
Dan Poltawski 38414e965c Merge branch 'MDL-50009-m' of https://github.com/micaherne/moodle 2015-06-02 14:42:21 +01:00
Dan Poltawski f272503420 Merge branch 'MDL-50260-remove-code-optional_param' of git://github.com/tmuras/moodle 2015-06-02 14:22:59 +01:00
Dan Poltawski 09bc038674 Merge branch 'MDL-49793-master' of git://github.com/jleyva/moodle 2015-06-02 14:01:05 +01:00
Dan Poltawski 356fd5bae7 Merge branch 'm29_MDL-49628a' of https://github.com/totara/moodle 2015-06-02 13:54:01 +01:00
Dan Poltawski 290b156276 Merge branch 'MDL-49323-master' of git://github.com/nmoller/moodle 2015-06-02 13:23:37 +01:00
Dan Poltawski f73b04871a Merge branch 'MDL-50155' of https://github.com/andrewhancox/moodle 2015-06-02 12:08:24 +01:00
Dan Poltawski 17abf1caa2 MDL-30960 version: bump for new setting 2015-06-02 11:47:43 +01:00
Dan Poltawski ca5c7d7535 Merge branch 'MDL-30960_master' of https://github.com/danielneis/moodle 2015-06-02 11:42:10 +01:00
Marina Glancy 29645f9745 MDL-26501 mod_glossary: fixes to tabs management 2015-06-02 11:25:27 +01:00
Nivedita Setru 223d6cb3bf MDL-26501 mod_glossary: Allow to specify visible tabs 2015-06-02 11:25:26 +01:00
Dan Poltawski 77679fb2e5 Merge branch 'MDL-36957-master' of git://github.com/FMCorz/moodle 2015-06-02 11:07:57 +01:00
Dan Poltawski 554dedf6a6 Merge branch 'MDL-46927_master' of git://github.com/markn86/moodle 2015-06-02 09:03:43 +01:00
Tomasz Muras 88661686aa MDL-50250 core_lib: Remove obsolete param from p() method.
Obsolete param $obsolete is not used anywhere and can be removed.
Also small fix in wording in related documentation.
2015-06-02 15:51:13 +08:00
Martin Mastny d2be12cb3e MDL-50438 filter_glossary: Added missing exception classes 2015-06-02 14:20:36 +08:00
Mark Nelson 94f78b0d15 MDL-46927 core_files: fixed issue with system course restores
When clicking on 'Restore' next to a file in the 'Course
backup area' in the system context the message 'Sorry,
the requested file could not be found' was displayed.
This fix adds missing functionality to the class
'file_info_context_system' so that the file information
is correctly returned.
2015-06-01 23:08:40 -07:00
Ankit Agarwal c44b4213e6 MDL-47480 tasks: Define order for getting tasks 2015-06-02 08:08:04 +05:30
AMOS bot 87c8667d3b Automatically generated installer lang files 2015-06-02 00:04:14 +08:00
Nelson Moller b73eed1249 MDL-49323 mod_assign: Fixed numeric validation in grade form.
The behat test for another decimal separator was incorporated.
2015-06-01 10:54:12 -04:00
Eloy Lafuente (stronk7) f0fa70d0df Merge branch 'MDL-29771' of git://github.com/timhunt/moodle 2015-06-01 16:13:18 +02:00
Dan Poltawski df0a584485 Merge branch 'MDL-50341' of git://github.com/timhunt/moodle 2015-06-01 15:03:23 +01:00
Dan Poltawski 825be82b8a MDL-50322 forum: add basic split post behat coverage
Also bump version for autoloading new class.
2015-06-01 14:59:06 +01:00
Dan Poltawski 918950d0cd Merge branch 'MDL-50322-master' of git://github.com/mastnym/moodle 2015-06-01 13:49:57 +01:00
Dan Poltawski 3235dc1285 Merge branch 'MDL-50140_master' of https://github.com/jinhofer/moodle 2015-06-01 13:34:18 +01:00
Dan Poltawski 6395168b67 Merge branch 'MDL-50304_master' of https://github.com/jinhofer/moodle 2015-06-01 13:21:54 +01:00
Juan Leyva 752036b826 MDL-49793 url: New Web Service mod_url_view_url 2015-06-01 13:46:22 +02:00
Juan Leyva f3fe1b8b35 MDL-49793 url: Move logging and completion to new API 2015-06-01 13:43:17 +02:00
Dan Poltawski 0800e9637c Merge branch 'MDL-46479-master' of git://github.com/ankitagarwal/moodle 2015-06-01 12:36:25 +01:00
Dan Poltawski c92bfbfcca MDL-50406 less: build css 2015-06-01 12:01:34 +01:00
Dan Poltawski 5a1a53a03a Merge branch 'MDL-50406_master' of git://github.com/nadavkav/moodle 2015-06-01 11:42:22 +01:00
Dan Poltawski 9492e529ef Merge branch 'MDL-50309_master' of git://github.com/markn86/moodle 2015-06-01 10:25:48 +01:00
Dan Poltawski 5ffb982d25 Merge branch 'MDL-49707-master' of git://github.com/ankitagarwal/moodle 2015-06-01 10:09:06 +01:00
Ankit Agarwal 2639cdf0b0 MDL-49707 inbound: localpart should be < 15 2015-06-01 10:06:16 +05:30
Adam Olley b8264f5b2b MDL-50176 repository_youtube: Switch to using YouTube Data API
As of April 20, 2015, the old API used by repository_youtube is no longer
accessible. This change switches over to using the standard Google Data
API v3.

Unfortunately this means that to search YouTube, a developer api key is now
*required*.

Special thanks to UNSW for sponsoring this work.
2015-06-01 09:25:40 +09:30
Tim Hunt 3af05ae35b MDL-29771 interactive behaviour: better state text in try again state
Before it just said 'Not complete'. It is more helpful to show the number
of tries remaining in this state as well.
2015-05-31 21:09:55 +01:00
Tim Hunt 312dce0ebc MDL-50341 quiz statistics: non-attempted questions broke first-try stats
For behaviours that allow multiple tries, and when the teacher had chosen to
generate statistics for the first tries only, and when a student had not
attempted one question, then an error occurred. It should have been classified
as no response.
2015-05-31 13:36:53 +01:00
Jean-Michel Vedrine 5d33ec9c7e MDL-49882 mod_lesson: Essay questions not imported into lessons 2015-05-31 07:24:11 +02:00
AMOS bot 7452baffa6 Automatically generated installer lang files 2015-05-31 00:03:56 +08:00
Matteo Scaramuccia 7b9f73ee10 MDL-50415 Admin: added the PHP Variables section in the PHPinfo page. 2015-05-30 07:04:46 +02:00
Nadav Kavalerchik af3a0656be MDL-50406 Messages: Right align messages menu box, in RTL mode. 2015-05-29 20:45:54 +03:00
AMOS bot 121cfa76c2 Automatically generated installer lang files 2015-05-30 00:04:03 +08:00
David Monllao b3e6802cf8 MDL-42192 caches: Adding simpledata tests 2015-05-29 17:18:31 +08:00
Martin Mastny 96a2e00d42 MDL-39319 langimport: Javascript confirmation when uninstalling 2015-05-29 13:08:33 +08:00
Martin Mastny 6ddf92c774 MDL-39319 langimport: Able to delete more languages at once 2015-05-29 13:08:33 +08:00
Martin Mastny 069d0f1733 MDL-50322 mod_forum: Added validation when spliting discussions 2015-05-29 09:11:39 +08:00
AMOS bot 9277e79e2a Automatically generated installer lang files 2015-05-29 00:03:56 +08:00
jinhofer aa65ecea98 MDL-50304 atto/plugins/table: Fixed _addRowAfter function 2015-05-28 07:53:10 -05:00
jinhofer 0fa9b33463 MDL-50140 grade/import: Added CSH buttons to import grades
CSH buttons have been added to CSV Import as well as Paste
from spreadsheet in the following areas:
Encoding, Separator (csv only), Verbose, Preview, Map to,
and Map from.

The heading of Import CSV had a CSH button added as well.

All CSH buttons were given associated language strings.
2015-05-28 07:51:50 -05:00
AMOS bot 62bdf9b779 Merge branch 'master' into install_master 2015-05-28 14:21:55 +08:00
Simey Lameze e9588b7e68 MDL-50380 mod_wiki: fix missing parameter on wiki edit files page
Also fixing a typo on the $referer variable.
2015-05-28 12:40:43 +08:00
Mark Nelson 2b7b0bae62 MDL-50309 core_upgrade: fixed undefined '$customusermenuitems' notice 2015-05-27 21:29:39 -07:00
Martin Mastny 9cf1b21127 MDL-50186 forms: Removed special characters from id attribute 2015-05-28 11:41:51 +08:00
David Monllao 0c6faf4b51 weekly on-sync release 3.0dev 2015-05-28 11:41:36 +08:00
David Monllao 187c4d47be Merge branch 'MDL-50373' of git://github.com/timhunt/moodle 2015-05-28 09:27:30 +08:00
Tim Hunt e7df2335b6 MDL-50373 questions: random Qs must not pick deleted or sub- questions
This was a regression caused by MDL-6340. I missed the necessary
    AND parent = 0 AND hidden = 0
in one query of the question table.
2015-05-27 20:32:47 +01:00
Eloy Lafuente (stronk7) e987eeef75 Merge branch 'wip-mdl-49806' of https://github.com/rajeshtaneja/moodle 2015-05-27 12:20:50 +02:00
Ankit Agarwal 648cddcbca MDL-46479 enrol_plugin: Final deprecation of instance_deletable() 2015-05-27 14:03:21 +05:30
David Monllao c5954f64ae MDL-50330 blog: Make other users blogs accessible 2015-05-27 14:03:34 +08:00
David Monllao de6b4e9dac Merge branch 'MDL-50340-master' of git://github.com/ankitagarwal/moodle 2015-05-27 11:58:22 +08:00
David Monllao 9d1593d686 Merge branch 'wip-mdl-49772' of git://github.com/rajeshtaneja/moodle 2015-05-27 11:50:01 +08:00
Rajesh Taneja b7861ddab3 MDL-49772 behat: Removed optimization as it's not required
This api is called very few times in behat
initilisation process, so such optimization
is an over engineer. Hence removing it.
2015-05-27 11:20:48 +08:00
Rajesh Taneja e2e37bc510 MDL-49806 behat: Ensure user is marked complete before runnning cron 2015-05-27 09:24:18 +08:00
David Monllao 1bd2c8ad01 Merge branch 'MDL-49611' of git://github.com/srynot4sale/moodle-fixes 2015-05-27 08:49:23 +08:00
jinhofer 36231b6cd5 MDL-49732 atto/plugins/link: Added CTRL+K for creating a link 2015-05-26 15:45:05 -05:00
Eloy Lafuente (stronk7) 777cb3ece8 Merge branch 'wip-mdl-49772' of https://github.com/rajeshtaneja/moodle 2015-05-26 18:48:03 +02:00
Eloy Lafuente (stronk7) 84152b676a Merge branch 'wip-MDL-50191-master' of https://github.com/marinaglancy/moodle 2015-05-26 18:19:42 +02:00
AMOS bot c472077460 Automatically generated installer lang files 2015-05-27 00:03:51 +08:00
Dan Poltawski 502bcf9738 Merge branch 'MDL-50318-master-courseresources' of git://github.com/mudrd8mz/moodle 2015-05-26 13:05:16 +01:00
Dan Poltawski 2a72614f53 Merge branch 'MDL-49787_email_attachments_symlink_fix' of https://github.com/iamandrew/moodle 2015-05-26 12:57:12 +01:00
Dan Poltawski 450b0f1dfd Merge branch 'MDL-49776-master' of git://github.com/lameze/moodle 2015-05-26 11:53:34 +01:00
Dan Poltawski aa55e70382 Merge branch 'MDL-49560-master' of git://github.com/gurgus/moodle 2015-05-26 11:33:26 +01:00
Dan Poltawski e0db4c775e Merge branch 'MDL-50271-master' of git://github.com/jleyva/moodle 2015-05-26 11:31:38 +01:00
David Monllao 9b7c42eac7 Merge branch 'MDL-50344-master' of git://github.com/ankitagarwal/moodle 2015-05-26 17:29:22 +08:00
David Monllao 74c32f21e2 Merge branch 'MDL-48664-master' of git://github.com/jethac/moodle 2015-05-26 14:45:34 +08:00
David Monllao fb00b083ce Merge branch 'MDL-46550-master' of git://github.com/ankitagarwal/moodle 2015-05-26 12:28:59 +08:00
David Monllao c8f92d487a Merge branch 'MDL-50289-master-notes' of git://github.com/mudrd8mz/moodle 2015-05-26 12:23:03 +08:00
Jetha Chan b146b6a8c3 MDL-48664 output: change paging_bar to not use non-breaking spaces 2015-05-26 12:13:14 +08:00
Daniel Neis 2108ac8a4f MDL-30960 messages: add option to set authtype 2015-05-25 13:40:48 -03:00
Dan Poltawski 9dbe663dbf Merge branch 'MDL-50313-master-featureidnumber' of git://github.com/mudrd8mz/moodle 2015-05-25 13:54:04 +01:00
Dan Poltawski 3b88ce4bce Merge branch 'MDL-50321-master-modupgradetxt' of git://github.com/mudrd8mz/moodle 2015-05-25 12:30:34 +01:00
Dan Poltawski cd580ee337 Merge branch 'MDL-40592_master' of https://github.com/nadavkav/moodle 2015-05-25 12:28:38 +01:00
Dan Poltawski e2a472e024 Merge branch 'MDL-49493-master' of git://github.com/mastnym/moodle 2015-05-25 12:00:44 +01:00
David Mudrák e9acc1d6c5 MDL-50289 notes: No navigation to notes if the feature is disabled 2015-05-25 12:35:26 +02:00
David Monllao 5362e3ca3a Merge branch 'wip-MDL-49572-master' of git://github.com/marinaglancy/moodle 2015-05-25 17:54:00 +08:00
Damien Bezborodov e604d38fc7 MDL-50285 gradereport_user: Grade categories calculate wrong with suspended users (Student's view) 2015-05-25 17:43:48 +08:00
David Monllao d34a865a61 Merge branch 'wip-MDL-50330-master' of git://github.com/abgreeve/moodle 2015-05-25 16:37:06 +08:00
Marina Glancy d08f2f1175 MDL-49560 webservice: avoid recursion in soap
Thanks to El Leonidych for providing a patch
2015-05-25 15:57:23 +08:00
Ankit Agarwal f987afbc2c MDL-50344 restore: Make restore file required 2015-05-25 12:02:16 +05:30
Ankit Agarwal 2d3fcda8ec MDL-50340 adminstration: Fix restore course links 2015-05-25 11:11:20 +05:30
spvickers 058cd1c1d0 MDL-49776 mod_lti: Set parameter in privacy check
Moved sending of the lis_result_sourcedid parameter to within the block
which checks that grades are being accepted for the link.
2015-05-25 13:01:33 +08:00
iclearn b85ce5e4ed MDL-47995 mod_url: add proper title encoding on url mod 2015-05-25 12:46:28 +08:00
iclearn c9b445990f MDL-47995 mod_resource: properly encode resource title 2015-05-25 12:44:46 +08:00
Martin Mastny 4ee052641e MDL-49493 backup: Implemented missing methods for anonymous backup 2015-05-25 10:35:11 +08:00
AMOS bot 0b36a6d05c Automatically generated installer lang files 2015-05-23 00:04:01 +08:00
Juan Leyva b3e1e2d007 MDL-50271 webservices: Allow to load multiple themes in WS_SERVER mode 2015-05-22 13:27:23 +02:00
Adrian Greeve c2c5f874e1 MDL-50330 blog: Behat test for blog visibility. 2015-05-22 16:13:03 +08:00
Nadav Kavalerchik d19de800ed MDL-40592 assign/grading: Display default user picture, if none is set. 2015-05-22 10:35:47 +03:00
Adrian Greeve 0c7131622d MDL-50330 blog: Fixed fatal error accessing blogs. 2015-05-22 15:34:09 +08:00
Tim Hunt ce95661817 MDL-49368 qtypes match & multichice: cope with editing after attempt
Teachers should not radically edit a question after it has been
attempted. However, if they do, we should handle it gracefully, rather
than triggering PHP errors.
2015-05-21 18:17:14 +01:00
Tomasz Muras 75aefe070b MDL-50260 lib: remove unnecessary isset check in optional_param().
There is no need to do check:
if (!isset($default))
As we're guaranteed that function was called with 3 arguments (func_num_args() == 3).
2015-05-21 18:54:28 +02:00
David Mudrák f7a84c6386 MDL-50321 docs: Add info about deprecated method into mod/upgrade.txt
This was forgotten in MDL-49101.
2015-05-21 18:06:41 +02:00
AMOS bot b0758a1090 Automatically generated installer lang files 2015-05-22 00:03:49 +08:00
AMOS bot b8347ccafa Merge branch 'master' into install_master 2015-05-22 00:03:48 +08:00
David Mudrák 01f329babe MDL-50318 course: Fix the URL of embedded images at resources overview
Not only mod_resource instances are listed here. All modules that
declare their FEATURE_MOD_ARCHETYPE as MOD_ARCHETYPE_RESOURCE (well, all
but those without own view page, such as mod_label) are listed. So we
must use the real plugin name when rendering the intro field.
2015-05-21 17:23:25 +02:00
Tim Hunt 8f21a4fb12 MDL-47494 ddimageortext: Fix editing form javascript. 2015-05-21 15:59:03 +01:00
Tim Hunt be1ce906b5 MDL-47494 ddimageortext: Fix behat failures. 2015-05-21 15:58:55 +01:00
Tim Hunt 16f1bcee3d MDL-47494 ddmarker: Fix editing form javascript. 2015-05-21 15:57:11 +01:00
Tim Hunt 9deb358dda MDL-47494 ddmarker: Fix behat failures. 2015-05-21 15:57:10 +01:00
Tim Hunt 8ffe874059 MDL-47494 ddwtos: Fix behat failures. 2015-05-21 15:54:54 +01:00
David Mudrák de158ec57c MDL-50313 docs: Fix the documentation for the FEATURE_IDNUMBER constant
The constant is used by course/moodleform_mod.php to decide whether the
field 'ID number' (cmidnumber) should be included in the common module
settings section of the activity settings form. Activity modules that do
not use grades (such as the Label) can explicitly return false when
checking for this feature support. By default, all activity modules are
supposed to support it.
2015-05-21 16:53:00 +02:00
Eloy Lafuente (stronk7) 803f565753 weekly on-sync release 3.0dev 2015-05-21 12:44:08 +02:00
Rajesh Taneja 91a96d402a MDL-49772 behat: Added support to updatestep file by parallel run 2015-05-21 13:24:29 +08:00
Marina Glancy e65d05c128 MDL-50191 cohorts: check manage cap to display hide icon 2015-05-21 12:19:57 +08:00
AMOS bot 21b2b8c485 Automatically generated installer lang files 2015-05-21 00:03:49 +08:00
Eloy Lafuente (stronk7) 2e365978de Merge branch 'MDL-50277-master' of git://github.com/andrewnicols/moodle 2015-05-20 11:04:56 +02:00
Marina Glancy 2d1164800c MDL-49572 cache: correctly purge cache on event 2015-05-20 14:07:58 +08:00
David Monllao a103ccb4a4 Merge branch 'wip-mdl-49061' of git://github.com/rajeshtaneja/moodle 2015-05-20 10:18:11 +08:00
Rajesh Taneja 99018b283d MDL-49061 behat: Fixed input name to use full activity name 2015-05-20 10:07:26 +08:00
Andrew Nicols 4218673093 MDL-50277 Javascript: Hardcode nodejs dependencies
In order to produce a consistent build across the board, we must hardcode
several package versions. We must additionally specify compatible
versions for any sub-dependency that we have a requirement upon.

In this instance, the only sub-dependency which has an effect upon the
overall output is grunt-contrib-uglify's dependency upon uglify-js.

Since change in uglify-js may lead to changes in the generated output, we
must specify a fixed version of that dependency. That version must be
compatible with the dependency signature for grunt-contrib-uglify or the
dependency manager will just download a different version.

This issue also bumps the version of uglify-js to a version which changes
the output. This is the latest version at time of commit.
2015-05-20 09:41:17 +08:00
Eloy Lafuente (stronk7) 7dd6cd75de Merge branch 'wip-mdl-50259' of https://github.com/rajeshtaneja/moodle 2015-05-19 18:02:34 +02:00
Dan Poltawski 2ce0c86d62 Merge branch 'wip-MDL-49061-master' of https://github.com/marinaglancy/moodle 2015-05-19 15:00:26 +01:00
Dan Poltawski c1b9c3d10d Merge branch 'wip-mdl-50203' of https://github.com/rajeshtaneja/moodle 2015-05-19 12:38:56 +01:00
Aaron Barnes 03f3f7180f MDL-49611 completion: Update dangling err_nocriteria lang strings 2015-05-19 22:41:19 +12:00
Andrew Nicols 5fd62ba064 Merge branch 'MDL-50276-master' of git://github.com/ankitagarwal/moodle 2015-05-19 15:43:28 +08:00
Dan Poltawski 9e4e5d1194 Merge branch 'wip-mdl-50116' of https://github.com/rajeshtaneja/moodle 2015-05-19 08:27:49 +01:00
Rajesh Taneja 53cf1a4149 MDL-50259 behat: Use strict activity name checking
contains might select wrong activity
so using strict activity text checking
2015-05-19 14:20:05 +08:00
Ankit Agarwal 23e9968a25 MDL-50276 forums: Add a new line in forum emails 2015-05-19 11:46:00 +05:30
Rajesh Taneja d31e69f976 MDL-50116 behat: Fixed xpath for selecting table row 2015-05-19 13:32:32 +08:00
Eloy Lafuente (stronk7) 4115105c2c Merge branch 'MDL-50169' of https://github.com/sk-unikent/moodle 2015-05-19 02:03:07 +02:00
Eloy Lafuente (stronk7) 74ebb5ce4b Merge branch 'MDL-50280' of https://github.com/sk-unikent/moodle 2015-05-19 01:43:06 +02:00
Eric Merrill 0f7f2134a7 MDL-48467 atto: Clean the textarea during submission when in HTML mode 2015-05-19 01:39:22 +02:00
Eloy Lafuente (stronk7) bb6b107111 Merge branch 'MDL-50197' of git://github.com/timhunt/moodle 2015-05-19 00:35:35 +02:00
Eloy Lafuente (stronk7) 767da25767 Merge branch 'MDL-50245' of git://github.com/timhunt/moodle 2015-05-19 00:32:58 +02:00
Dan Poltawski 04d73f4fff Merge branch 'MDL-49949-master' of git://github.com/mastnym/moodle 2015-05-18 15:32:56 +01:00
Dan Poltawski 7b88b85392 Merge branch 'MDL-49764_master' of https://github.com/jinhofer/moodle 2015-05-18 15:28:48 +01:00
Skylar Kelty 5b8e7b9564 MDL-50280 WebCT import scripts don't always clean up 2015-05-18 15:25:18 +01:00
Andrew Hancox b3834b3632 MDL-50155 core: Move and rename common settings config page
AMOS BEGIN
CPY [commonsettings,admin],[commonactivitysettings,admin]
AMOS END
2015-05-18 14:48:01 +01:00
Dan Poltawski 62fc688bac Merge branch 'MDL-49906-master' of git://github.com/lameze/moodle 2015-05-18 14:04:10 +01:00
Dan Poltawski 4bd7eb6117 Merge branch 'MDL-50092_master' of git://github.com/dmonllao/moodle 2015-05-18 13:58:14 +01:00
jinhofer 75a548b5f3 MDL-49764 grade/report/grader: Fixed height issue for IE 2015-05-18 07:47:54 -05:00
Dan Poltawski d597f85638 Merge branch 'MDL-50254-master' of git://github.com/damyon/moodle 2015-05-18 13:09:42 +01:00
Dan Poltawski 14dbf56266 Merge branch 'MDL-50177_master' of git://github.com/dmonllao/moodle 2015-05-18 13:01:51 +01:00
Ankit Agarwal 1785f52cf6 MDL-48470 strings: Remove deprecated strings 2015-05-18 14:45:03 +05:30
Damyon Wiese 4c7dfac372 MDL-50254 Mustache: Missing alias for namespaced class in mustache
Thanks to Francesco Bigiarini for the report and suggested fix.
2015-05-18 15:11:12 +08:00
Ankit Agarwal fa31be3b7f MDL-46550 logs: Fix incorrect url
Thanks to Nadav Kavalerchik for the suggestion on patch
2015-05-18 11:49:55 +05:30
David Monllao 7ab171fdff Merge branch 'wip-MDL-49742-master' of git://github.com/abgreeve/moodle 2015-05-18 10:16:49 +08:00
Adrian Greeve 1fc2bb35e6 MDL-49742 lib: Removed additional names on tables for sorting.
When additional names are disabled, they are no longer shown as
sortable headings in the enrolment and admin user tables.
2015-05-15 15:29:52 +08:00
Martin Mastny 1be1c66a9b MDL-49949 grader: Using method to determine item name 2015-05-15 14:58:00 +08:00
Rajesh Taneja 2ffaceb7a9 MDL-50116 behat: updated symfony/symfony version 2015-05-15 10:07:02 +08:00
Tim Hunt 3a1bc53bc2 MDL-50245 quiz: fix CSS of search options in the qbank dialogue 2015-05-14 14:40:44 +01:00
Tim Hunt 1bad9be67a MDL-50228 quiz: improve overall feedback section of the form 2015-05-14 10:21:16 +01:00
John Okely 8ccd193498 MDL-48283 completion: Add moodle-has-zindex class to completion progress 2015-05-14 17:05:01 +08:00
David Monllao b5dbb126f9 weekly on-sync release 3.0dev 2015-05-14 11:35:20 +08:00
Tony Levi aa7017432a MDL-42192 accesslib: Cache capabilities list
With thanks to Andrew Nicols <andrew@nicols.co.uk> for some ammendments.
2015-05-14 11:23:47 +09:30
Rajesh Taneja e9eaf94226 MDL-50203 behat: Click on link in student 1 row 2015-05-13 15:19:59 +08:00
Simey Lameze baa850a309 MDL-49906 core_user: add require login exception message 2015-05-13 13:51:22 +08:00
Marina Glancy bdbe385cc2 MDL-49061 reports: call format_string on activities names 2015-05-13 12:14:13 +08:00
David Monllao 51062c52cb Merge branch 'MDL-25138-master' of git://github.com/lameze/moodle 2015-05-13 10:23:01 +08:00
Damyon Wiese d051442461 MDL-25138 core_tags: remove duplicated related tags 2015-05-13 10:04:09 +08:00
Simey Lameze da7f951345 MDL-25138 core_tag: fix correlated tags query unique error 2015-05-13 10:04:09 +08:00
Eloy Lafuente (stronk7) a17d9a6b99 Merge branch 'MDL-50187_master' of git://github.com/dmonllao/moodle 2015-05-12 09:48:28 +02:00
Skylar Kelty 6e60e99570 MDL-50169: Fix grade report SQL logic 2015-05-12 08:03:56 +01:00
David Monllao 729a6c5617 MDL-50177 completion: Also accepting cm integer strings 2015-05-12 12:19:43 +08:00
David Monllao 88d127d37c Merge branch 'MDL-34102' of git://github.com/jmvedrine/moodle 2015-05-12 12:08:30 +08:00
David Monllao 6491a90be0 Merge branch 'MDL-50184' of git://github.com/stronk7/moodle 2015-05-12 10:57:00 +08:00
Eloy Lafuente (stronk7) b758ab3053 MDL-50183 upgrade: add 2.9.0 separation line to all upgrade scripts 2015-05-12 00:21:05 +02:00
Tim Hunt a29922c7b1 MDL-50198 quiz: password should be non-advanced by default
So the Extra restrictions form section is not empty by default.
2015-05-11 16:19:30 +01:00
Tim Hunt ca79762ac4 MDL-50197 quiz editing: fix dialogue titles at the end of the quiz 2015-05-11 16:19:08 +01:00
David Monllao 709314447b MDL-50092 enrol_imsenterprise: Fixing wrong field name
Thanks to JD for the fix.
2015-05-11 14:55:02 +08:00
Tim Hunt 56f6628e9c MDL-47494 ddimageortext: Bump version for 1.8 release. 2015-05-11 07:38:24 +01:00
David Monllao 2261bc153a MDL-50187 docs: Including all x.y releases 2015-05-11 11:05:06 +08:00
Eloy Lafuente (stronk7) 66d46d1534 MDL-50184 backup: Bump release to 3.0 2015-05-11 01:46:50 +02:00
Eloy Lafuente (stronk7) 753d681076 weekly back-to-dev release 3.0dev 2015-05-10 21:39:35 +02:00
Tim Hunt 2a1af96b26 MDL-47494 ddmarker: Fix Behat tests for 2.9. 2015-05-08 16:41:45 +01:00
Tim Hunt 9b74b3b540 MDL-47494 ddimageortext: Fix Behat tests for 2.9. 2015-05-08 16:41:25 +01:00
Tim Hunt bea20e16c9 MDL-47494 ddwtos: Fix Behat tests for 2.9. 2015-05-08 16:40:57 +01:00
Tim Hunt 2bf2e46ce3 MDL-47494 ddimageortext: ddimageortext: statistics failed when drag items were grouped #51569
The error in classify_response caused a fatal error in the quiz
statistics report.

Correctly testing this required some updates to the unit tests to
correctly replicate what happens when a question is attempted.
2015-05-08 12:21:36 +01:00
Ramindu Deshapriya 239419057f MDL-43731 mod_book: Added Behat test to automate MDLQA-1791 2015-05-08 00:19:33 +05:30
Michael Aherne 5ea1e1110f MDL-50009 cron: Prevent tasks from leaving uncommitted transactions 2015-04-29 09:39:07 +01:00
Kyle Nguyen c46cb498f6 MDL-49905 post_form: added hour option to timed forum posts 2015-04-28 19:14:22 -07:00
jinhofer 253db9dea7 MDL-49901 course/yui: Changed action for course format 2015-04-16 14:22:17 -05:00
Frederic Massart 725d18f980 MDL-36957 backup: Allow invalid setting level in backup info file 2015-04-09 17:33:52 +08:00
Brian Barnes 32bd11cb39 MDL-49628 general: improved accessibility of single selects 2015-04-09 11:12:16 +12:00
Andrew Davidson 890e164179 MDL-49787 email: Updated email attachement path check to use realpath() in order to allow for symlinked temp directories 2015-04-08 10:05:08 +01:00
Daniel Kosinski fd14eb5c40 MDL-46705 admin: Check if course with same shortname already exists 2015-03-24 19:13:13 +01:00
Tim Hunt 0038534314 MDL-47494 ddmarker: Bump version for 1.8 release. 2015-03-18 13:58:01 +00:00
Tim Hunt 4aee940432 MDL-47494 ddimageortext: Bump version for 1.7 release. 2015-03-18 13:56:54 +00:00
Tim Hunt 88a0478ce4 MDL-47494 gapselect: Bump version for 1.7 release. 2015-03-18 13:56:27 +00:00
Tim Hunt 020b3c2162 MDL-47494 gapselect: Add outestssufficient marker. 2015-03-18 13:56:17 +00:00
Tim Hunt bbdb0d5338 MDL-47494 ddwtos: Bump version for 1.5 release. 2015-03-18 13:55:10 +00:00
Tim Hunt ef39316a3d MDL-47494 ddwtos: Add outestssufficient marker. 2015-03-18 13:53:04 +00:00
Tim Hunt c46f0a8a8b MDL-47494 ddmarker: Add outestssufficient marker. 2015-03-18 13:52:25 +00:00
Tim Hunt 29d9ab6a98 MDL-47494 ddmarker: Fix JavaScript error on the editing form. 2015-03-18 13:51:08 +00:00
Tim Hunt 52b8f798a4 MDL-47494 ddimageortext: Add outestssufficient marker. 2015-03-18 13:28:41 +00:00
Tim Hunt f0c1f12405 MDL-47494 ddimageortext: Merge branch 'projectestac-master' 2015-03-18 13:26:20 +00:00
pau.ferrer-ocana c5091dc01f MDL-47494 ddimageortext: Solve error when showing more than one question in the same page 2015-03-16 10:29:10 +01:00
Andrew Nicols 9b16c1af2c MDL-49293 db: Pass sql_concat_join to sql_concat 2015-03-06 11:56:46 +08:00
Andrew Nicols 29e2563a6d MDL-49293 db: Test sql_concat_join with more conditions 2015-03-06 11:36:31 +08:00
Tim Hunt ac10e87b71 MDL-47494 gapselect: Fix qtype gapselect Behat tests. #33559 2015-02-20 13:51:37 +00:00
Alan Carter dff367ca68 MDL-47494 gapselect: Add test for Moodle XML export to the OU qtype Behat tests #14897 2015-02-20 13:51:37 +00:00
M Kassaei 3cb75b2b15 MDL-47494 gapselect: Replace "Choose... " with non-breaking space when appropriate, #14429 2015-02-20 13:51:30 +00:00
Tim Hunt ad0e615ea7 MDL-47494 ddwtos: Fix dd qtype Behat tests to not use the generic type step. #14895 2015-02-20 13:47:10 +00:00
Tim Hunt d804067d09 MDL-47494 ddimageortext: Fix dd qtype Behat tests to not use the generic type step. #14895 2015-02-20 13:46:54 +00:00
Tim Hunt e885360f7d MDL-47494 ddmarker: Fix dd qtype Behat tests to not use the generic type step. #14895 2015-02-20 13:46:34 +00:00
Tim Hunt ceae322f63 MDL-47494 ddmarker: Markers qtype, don't allow repeated coordinates. #18476 2015-02-20 13:46:21 +00:00
Tim Hunt ee859c3fc6 MDL-47494 ddwtos: Update dd qtype tests to use js_pending not fixed waits #14895 2015-02-13 19:00:47 +00:00
Tim Hunt 4f168c8d2f MDL-47494 ddmarker: Update dd qtype tests to use js_pending not fixed waits #14895 2015-02-13 18:59:57 +00:00
Tim Hunt 682bf667ea MDL-47494 ddimageortext: Update dd qtype tests to use js_pending not fixed waits #14895 2015-02-13 18:59:19 +00:00
M Kassaei 24c6f2fc8c MDL-47494 ddmarker: Convert the JavaScript to use Shifter. #13314 2015-02-13 17:46:07 +00:00
M Kassaei 3936325002 MDL-47494 ddwtos: Convert the JavaScript to use Shifter. #13314 2015-02-13 17:45:55 +00:00
M Kassaei cf5977991c MDL-47494 ddimageortext: Convert the JavaScript to use Shifter. #13314 2015-02-13 17:44:58 +00:00
Tim Hunt a366c8b950 MDL-47494 ddmarker: Improve the drag-drop question Behat tests.
* Added tests for previewing the question, to make sure it works when
attempted.
* Added Moodle XML export tests.
* Reorganised the tests to follow the 'Test one thing per scenario' best
practice.

This commit requires MDL-49154 to work.
2015-02-13 17:41:21 +00:00
Tim Hunt 42865c8448 MDL-47494 ddimageortext: Improve the drag-drop question Behat tests.
* Added tests for previewing the question, to make sure it works when
attempted.
* Added Moodle XML export tests.
* Reorganised the tests to follow the 'Test one thing per scenario' best
practice.

This commit requires MDL-49154 to work.
2015-02-13 17:38:38 +00:00
Tim Hunt e200e47fe6 MDL-47494 ddwtos: Improve the drag-drop question Behat tests.
* Added tests for previewing the question, to make sure it works when
attempted.
* Added Moodle XML export tests.
* Reorganised the tests to follow the 'Test one thing per scenario' best
practice.

This commit requires MDL-49154 to work.
2015-02-13 17:34:07 +00:00
Tim Hunt 2cb2d3b6b4 MDL-47494 ddmarker: Remove no longer necessary Chrome hack. #12732
This was causing weird scroll behaviour all of a sudden.
2015-01-22 17:21:47 +00:00
Tim Hunt 145f46ed28 MDL-47494 ddimageortext: DD markers / onto image: form, drag items before drop zones. #12656
That is a more logical order, and now that sections of the form are
collapsible, it is not necessary to put the drop zones right beside
the preview.
2014-12-02 18:02:48 +00:00
Tim Hunt 0419c32d79 MDL-47494 ddmarker: A few more coding style things. 2014-12-02 17:59:10 +00:00
Tim Hunt 4dc37d690e MDL-47494 gapselect: A few more coding style things. 2014-12-02 17:58:46 +00:00
Tim Hunt a9c32a6fea MDL-47494 ddwtos: Fix lots of coding style issues. 2014-11-28 18:43:19 +00:00
Tim Hunt 647d937394 MDL-47494 gapselect: Fix lots of coding style issues. 2014-11-28 18:42:39 +00:00
Tim Hunt 51c3521aa5 MDL-47494 ddimageortext: Fix lots of coding style issues. 2014-11-28 18:42:04 +00:00
Tim Hunt f8bb5fdc2e MDL-47494 ddmarker: Fix lots of coding style issues. 2014-11-28 18:41:27 +00:00
Tim Hunt 9398fc3478 MDL-47494 ddmarker: Bump the version number for the 1.7 release. 2014-11-12 16:04:13 +00:00
Tim Hunt 8ba17a5823 MDL-47494 ddwtos: Bump version for the 1.4 release. 2014-11-12 16:01:41 +00:00
Tim Hunt aea4a6b6fa MDL-47494 ddimageortext: Bump the version number for the 1.6 release. 2014-11-12 16:00:45 +00:00
Tim Hunt 7b23157ba4 MDL-47494 gapselect: Bump the version number for the 1.6 release. 2014-11-12 15:59:58 +00:00
M Kassaei 5d2bc33f87 MDL-47494 ddmarker: Added behat feature files, #12176 2014-11-03 14:40:32 +00:00
Tim Hunt edd945b392 MDL-47494 ddmarker: New crosshairs for ddmarker. #11243 2014-11-03 14:40:03 +00:00
M Kassaei 7e4b796bed MDL-47494 ddmarker: dd markers questions can display markers in more than one line, #11243 2014-11-03 14:39:14 +00:00
M Kassaei 3b5048294f MDL-47494 ddimageortext: Adding a behat feature to ddimageotext qtype, #12175 2014-11-03 14:37:38 +00:00
M Kassaei 7988db9ddb MDL-47494 ddwtos: Adding a behat feature to ddwtos qtype, #12010 2014-11-03 14:36:40 +00:00
M Kassaei 45dba0d0e7 MDL-47494 gapselect: qtype_gapselect: Adding behat feature and testing, #12009 2014-11-03 14:35:00 +00:00
Tim Hunt e6d087539b MDL-47494 ddmarker: Update version number for the 1.6 release. 2014-07-03 11:38:29 +01:00
Tim Hunt 2870a500e5 MDL-47494 ddmarker: DD markers, add help for the drop zones. #11029 2014-07-03 11:37:27 +01:00
Tim Hunt de3309a087 MDL-47494 ddmarker: Fix ddmarker keyboard support. #10714 2014-07-03 11:37:08 +01:00
Tim Hunt dacc427271 MDL-47494 ddimageortext: Update version.php for the 1.5 release. 2014-04-28 20:23:01 +01:00
Tim Hunt 499e5dc0c5 MDL-47494 ddimageortext: Merge pull request #25 from jamiepratt/MDL-45111-master
MDL-45111 quiz responses report : fatal error when counting responses
2014-04-28 20:21:16 +01:00
Tim Hunt 7c303593db MDL-47494 ddmarker: Update version.php for the 1.5 release. 2014-04-28 19:54:05 +01:00
James Pratt 13ee9a2639 MDL-47494 ddimageortext: MDL-45111 quiz responses report : fatal error when counting responses
not all possible responses where returned by question type method.
2014-04-18 19:40:50 +07:00
Charles Fulton f09afcdd28 MDL-41598 auth_shibboleth: don't override wantsurl 2014-02-14 10:51:17 -08:00
Tim Hunt 3c3633b3c6 MDL-47494 ddmarker: Fix use of deprecated accesslib functions. 2014-01-31 16:17:04 +00:00
Tim Hunt 9d26e5b4ec MDL-47494 ddmarker: Export of ddmarker did got noofdrags wrong. #9523 2014-01-20 17:27:09 +00:00
Tim Hunt 5bec9816a1 MDL-47494 ddmarker: Update version number for the 1.4 release. 2014-01-08 13:20:32 +00:00
Tim Hunt 864d36c939 MDL-47494 ddimageortext: Update version number for the 1.4 release. 2014-01-08 13:08:26 +00:00
Tim Hunt 2095ea2c13 MDL-47494 gapselect: Update version number for the 1.5 release. 2014-01-08 12:56:58 +00:00
Tim Hunt d15e37dde6 MDL-47494 ddmarker: Incorrect types causing tags to be stripped. #9127 2014-01-08 11:48:25 +00:00
Colin Chambers 0cdce4d520 MDL-47494 ddmarker: Fix weird drag-drop marker behaviour in IE10. #7936
Moving the markers with the keyboard was not working. The markers would
move in weird directions!
2014-01-08 11:47:51 +00:00
Tim Hunt e7a04b0423 MDL-47494 ddimageortext: Incorrect types causing tags to be stripped. #9127 2014-01-08 11:45:33 +00:00
Tim Hunt db50ffecf5 MDL-47494 ddmarker: Merge pull request #23 from merrill-oakland/master
Fixing CSS border-colour should be border-color.
2013-09-17 09:50:24 -07:00
Eric Merrill a5dc533b0f MDL-47494 ddmarker: Fixing CSS border-colour should be border-color. 2013-09-17 11:06:32 -04:00
Tim Hunt 984efa0c94 MDL-47494 ddimageortext: Merge pull request #20 from jamiepratt/wip_CONTRIB-4557
CONTRIB-4557 make sure bg image is not re-sized
2013-08-20 04:09:12 -07:00
Tim Hunt b4db7c2f7b MDL-47494 ddmarker: Merge pull request #22 from jamiepratt/wip_CONTRIB-4557
CONTRIB-4557 make sure bg image is not re-sized
2013-08-20 04:08:54 -07:00
Jamie Pratt ff8fee7f82 MDL-47494 ddimageortext: CONTRIB-4557 make sure bg image is not re-sized
by bootstrap based themes.
2013-08-20 11:38:42 +07:00
Jamie Pratt 55478278df MDL-47494 ddmarker: CONTRIB-4557 make sure bg image is not re-sized
by bootstrap based themes.
2013-08-20 11:38:42 +07:00
Tim Hunt eff03a8be7 MDL-47494 ddmarker: Fix incorrect PARAM_TEXT. 2013-08-07 19:37:48 +01:00
Tim Hunt 874104d5af MDL-47494 ddimageortext: Fix incorrect PARAM_TEXT. 2013-08-07 19:37:32 +01:00
Tim Hunt 09ab016651 MDL-47494 gapselect: Fix incorrect PARAM_TEXT. 2013-08-07 19:36:45 +01:00
Tim Hunt 18be442ce3 MDL-47494 ddmarker: Fix use of deprecated context functions.
Also, improve import to use new qformat_xml method.
2013-08-02 14:30:14 +01:00
Tim Hunt 86687aadb6 MDL-47494 ddimageortext: Fix use of deprecated context functions.
Also, improve import to use new qformat_xml method.
2013-08-02 14:28:56 +01:00
Tim Hunt 8434f64a48 MDL-47494 ddmarker: Update version and readme for the 1.3 release. 2013-07-01 15:42:04 +01:00
Tim Hunt cdf20995e9 MDL-47494 ddimageortext: Update version and readme for the 1.3 release. 2013-07-01 15:38:58 +01:00
Tim Hunt eb663e429f MDL-47494 ddwtos: Update version and readme for the 1.3 release. 2013-07-01 15:27:24 +01:00
Tim Hunt fd1a28351c MDL-47494 gapselect: Update version and readme for the 1.4 release. 2013-07-01 15:23:27 +01:00
Tim Hunt 9e2e37970e MDL-47494 ddmarker: Fix broken unit tests. 2013-07-01 15:16:38 +01:00
Tim Hunt 1a3cd05df7 MDL-47494 ddwtos: Fix broken unit tests. 2013-07-01 15:15:52 +01:00
Tim Hunt 08243fa88f MDL-47494 gapselect: Fix broken unit tests. 2013-07-01 15:15:30 +01:00
Tim Hunt 6bcdbcf6b7 MDL-47494 gapselect: Merge pull request #12 from colchambers/wip6609.1
expand choices by default
2013-07-01 03:50:52 -07:00
Colin Chambers 4c489e0e44 MDL-47494 gapselect: expand choices by default 2013-06-27 15:10:38 +01:00
Tim Hunt 6ffa80e528 MDL-47494 ddmarker: Merge pull request #21 from colchambers/wip6859.1
merge multiple tries and hints. Group hints visually
2013-06-06 07:56:03 -07:00
Tim Hunt bcf13bf0f6 MDL-47494 ddmarker: Merge pull request #20 from jamiepratt/wipnoofdrags
allow for 2,3,4,5,6 drags not just 1 or infinite
2013-06-06 07:55:52 -07:00
Colin Chambers 80f0299310 MDL-47494 ddmarker: merge multiple tries and hints. Group hints visually 2013-06-06 15:47:35 +01:00
Jamie Pratt ad1b0ae9c7 MDL-47494 ddmarker: change index of form element we refer to
changes in form base class broke the code to
refer to the marker label input field.
2013-05-31 17:39:19 +07:00
Jamie Pratt e1f5f60197 MDL-47494 ddmarker: allow for 2,3,4,5,6 drags not just 1 or infinite 2013-05-31 15:18:32 +07:00
Tim Hunt 09e43f0a68 MDL-47494 ddimageortext: Fix failing unit tests. 2013-05-22 14:05:26 +01:00
Tim Hunt e9a2711b85 MDL-47494 ddimageortext: Final form improvement tweaks. #6614 2013-05-22 14:02:38 +01:00
Tim Hunt 7baa445fbe MDL-47494 ddmarker: Minor coding style clean-up. #6859 2013-05-22 14:01:13 +01:00
Colin Chambers 4139151f75 MDL-47494 ddimageortext: Update OU Qtype ddimageortext for simplified forms #6614 2013-05-22 12:41:33 +01:00
Colin Chambers 26492f707c MDL-47494 ddmarker: Update OU Qtype ddmarker for simplified forms #6859 2013-05-21 14:49:07 +01:00
Tim Hunt aa877b5b49 MDL-47494 gapselect: Merge pull request #11 from colchambers/wip6846
Qtype gapselect showing Did you remember to call setType() errors on edi...
2013-05-17 07:08:15 -07:00
Colin Chambers 35e3fc1018 MDL-47494 gapselect: Qtype gapselect showing Did you remember to call setType() errors on editing form #6846 2013-05-17 14:57:04 +01:00
Tim Hunt 150f70266e MDL-47494 gapselect: Merge pull request #10 from jamiepratt/wip_move_combinable_dirs
Wip move combinable dirs
2013-05-15 05:16:58 -07:00
Jamie Pratt 05091b6de3 MDL-47494 gapselect: moved lang strings for combinable sub questions to
their question type directories
2013-05-14 19:48:15 +07:00
Jamie Pratt 458700d833 MDL-47494 gapselect: fixing @package and removing @subpackage 2013-05-14 19:34:17 +07:00
Jamie Pratt 220982f898 MDL-47494 gapselect: move combinable hooks out of combined qtype plug in
and into their respective question type plug ins.
2013-05-14 18:41:05 +07:00
Tim Hunt 7ab3615a00 MDL-47494 gapselect: Bump version number for the 2.5-compatible release. 2013-04-29 16:41:08 +01:00
Colin Chambers 1f2cae4c0e MDL-47494 gapselect: Update OU Qtype gapselect for simplified forms #6609 2013-04-29 16:29:27 +01:00
Tim Hunt e2245b62d4 MDL-47494 ddmarker: Bump version number. 2013-03-14 15:49:33 +00:00
Tim Hunt 5263d6d7b3 MDL-47494 ddmarker: Fix codecheker and jshint warnings. 2013-03-14 15:49:22 +00:00
Tim Hunt 54b8dddafd MDL-47494 ddmarker: Shape validation should be more whitespace-tolerant.
Also clean up the unit-test code.
2013-03-14 15:47:49 +00:00
Tim Hunt 7b95ca37bf MDL-47494 ddmarker: Move translations to AMOS. 2013-03-14 15:47:30 +00:00
Tim Hunt a214a28fd1 MDL-47494 ddimageortext: Bump version number. 2013-03-14 14:23:07 +00:00
Tim Hunt 81c87fa76d MDL-47494 ddimageortext: Fix codechecker and jshint issues. 2013-03-14 14:22:59 +00:00
Tim Hunt 8312572b8b MDL-47494 ddimageortext: Move lang strings to AMOS. 2013-03-14 14:22:04 +00:00
Tim Hunt 66d2356bd3 MDL-47494 ddimageortext: Clean up comments in unit tests. 2013-03-14 14:21:45 +00:00
Tim Hunt 46573340db MDL-47494 ddwtos: Bump version number. 2013-03-14 12:22:26 +00:00
Tim Hunt a5290cd828 MDL-47494 ddwtos: Fixup codechecker and jshint issues. 2013-03-14 12:21:02 +00:00
Tim Hunt 025589c7e1 MDL-47494 ddwtos: Ensure all tests are in group qtype_ddwtos. 2013-03-14 12:20:26 +00:00
Tim Hunt d65b9ec77f MDL-47494 ddwtos: Move translations to AMOS. 2013-03-14 12:19:54 +00:00
Tim Hunt 27fb64d890 MDL-47494 gapselect: Bump version number. 2013-03-14 11:47:20 +00:00
Tim Hunt bbe27b2d30 MDL-47494 gapselect: Ensure all unit tests are in a qtype_gapselect group. 2013-03-14 11:46:50 +00:00
Tim Hunt 8d6fb0c66a MDL-47494 gapselect: Fix codechecker issues.
Also remove old translations that are now in AMOS, and add some unit
tests.
2013-03-13 18:33:53 +00:00
Tim Hunt 4ff00ebb02 MDL-47494 ddimageortext: Merge pull request #17 from colchambers/MDL-37463
MDL-37463 Question: Drag drop image form lang capitalisation
2013-01-30 03:35:29 -08:00
Colin Chambers 784c54ea36 MDL-47494 ddimageortext: MDL-37463 Question: Drag drop image form lang capitalisation 2013-01-30 11:32:13 +00:00
Tim Hunt feab78b6a6 MDL-47494 ddimageortext: Merge pull request #16 from colchambers/MDL-37759
MDL-37759 Question: Drag Drop Images group add more link
2013-01-29 08:13:57 -08:00
Colin Chambers 0cf0f86041 MDL-47494 ddimageortext: MDL-37759 Question: Drag Drop Images group add more link 2013-01-29 15:45:58 +00:00
Tim Hunt 61ba43b0b3 MDL-47494 gapselect: Fix incorrect preg_quote usage. 2013-01-15 14:52:01 +00:00
Tim Hunt d5515e1df3 MDL-47494 ddwtos: Fix incorrect preg_quote usage. 2013-01-15 14:49:52 +00:00
Tim Hunt c0d7468e42 MDL-47494 ddmarker: Fix incorrect preg_quote usage. 2013-01-15 14:48:47 +00:00
Tim Hunt 7a6539401f MDL-47494 ddimageortext: Fix incorrect preg_quote without delimiter. 2013-01-15 14:47:36 +00:00
Tim Hunt 463f4b4c6a MDL-47494 ddimageortext: Merge branch 'MOODLE_22_STABLE' 2012-09-28 18:13:43 +01:00
Tim Hunt 7e6b0bc1f1 MDL-47494 ddimageortext: Merge branch 'MOODLE_21_STABLE' into MOODLE_22_STABLE 2012-09-28 18:13:28 +01:00
Tim Hunt ae64c68608 MDL-47494 ddimageortext: Form validation should ensure coordinates are ints. 2012-09-28 18:13:10 +01:00
Tim Hunt 8aaa057e3a MDL-47494 gapselect: Merge pull request #9 from ndunand/master
Added French translation.
2012-08-30 05:48:35 -07:00
Nicolas Dunand f1b241bcbf MDL-47494 gapselect: Added French translation 2012-08-30 14:47:37 +02:00
Tim Hunt 664a362d0c MDL-47494 ddwtos: Merge pull request #10 from ndunand/master
Added French translation.
2012-08-30 05:43:55 -07:00
Nicolas Dunand 227b7cb8cd MDL-47494 ddwtos: Added French translation 2012-08-30 14:42:52 +02:00
Tim Hunt 323869e159 MDL-47494 ddmarker: Merge pull request #18 from ndunand/master
Added French translation.
2012-08-30 05:40:11 -07:00
Nicolas Dunand 5d841ae48b MDL-47494 ddmarker: Added French translation 2012-08-30 14:38:55 +02:00
Tim Hunt 94c4876d65 MDL-47494 ddimageortext: Merge pull request #14 from ndunand/master
Added French translation.
2012-08-30 05:36:11 -07:00
Nicolas Dunand ad8234a323 MDL-47494 ddimageortext: Added French translation 2012-08-30 14:34:05 +02:00
Tim Hunt c3bb638a53 MDL-47494 gapselect: Merge branch 'MOODLE_22_STABLE' 2012-08-20 14:41:25 +01:00
Tim Hunt 2c627d24c4 MDL-47494 gapselect: New icon by Paul Hillery. 2012-08-20 14:41:25 +01:00
Tim Hunt 480efcf7c7 MDL-47494 ddmarker: Merge branch 'MOODLE_22_STABLE' 2012-08-20 14:39:54 +01:00
Tim Hunt 8abe8b670c MDL-47494 ddmarker: New icon by Paul Hillery. 2012-08-20 14:39:53 +01:00
Tim Hunt 599cad2bb2 MDL-47494 ddimageortext: Merge branch 'MOODLE_22_STABLE' 2012-08-20 14:39:07 +01:00
Tim Hunt 07ef9448bf MDL-47494 ddimageortext: New icon by Paul Hillery. 2012-08-20 14:38:44 +01:00
Tim Hunt 270a93ecfc MDL-47494 ddwtos: Merge branch 'MOODLE_22_STABLE' 2012-08-20 14:35:06 +01:00
Tim Hunt 7169a77abd MDL-47494 ddwtos: New icon by Paul Hillery. 2012-08-20 14:34:02 +01:00
Tim Hunt 77178d2d97 MDL-47494 ddwtos: Remove enums from install.xml 2012-08-20 10:54:33 +01:00
Tim Hunt 51ffcb950a MDL-47494 ddmarker: Update release information. 2012-08-16 16:41:59 +02:00
Tim Hunt 4553903ca0 MDL-47494 ddmarker: Update release information. 2012-08-16 16:41:15 +02:00
Tim Hunt 1f8e5648fb MDL-47494 ddimageortext: Fix required version. 2012-08-16 16:38:16 +02:00
Tim Hunt 95fe59ff62 MDL-47494 ddimageortext: Update release information. 2012-08-16 16:32:36 +02:00
Tim Hunt 39a6b826d2 MDL-47494 ddimageortext: Update release information. 2012-08-16 16:31:46 +02:00
Tim Hunt cd7cce9593 MDL-47494 ddwtos: Update release information. 2012-08-16 12:24:01 +02:00
Tim Hunt 5cd80c75c5 MDL-47494 ddwtos: Update release information. 2012-08-16 12:22:45 +02:00
Tim Hunt 90b4b3fef1 MDL-47494 gapselect: Update release information. 2012-08-16 11:59:32 +02:00
Tim Hunt 457af23a50 MDL-47494 gapselect: Update release information. 2012-08-16 11:58:38 +02:00
Tim Hunt 34632b52d6 MDL-47494 ddmarker: Merge pull request #17 from jamiepratt/wip_js_fix
Wip js fix
2012-08-08 04:14:33 -07:00
Tim Hunt 6cbe5bb3b2 MDL-47494 ddmarker: Merge pull request #16 from jamiepratt/wip_js_fix_22
Wip js fix 22
2012-08-08 04:14:22 -07:00
Jamie Pratt 701baddf73 MDL-47494 ddmarker: Merge branch 'wip_js_fix_22' into wip_js_fix 2012-08-08 16:06:25 +07:00
Jamie Pratt d99d47fdca MDL-47494 ddmarker: Merge branch 'wip_js_fix_21' into wip_js_fix_22 2012-08-08 16:05:10 +07:00
Jamie Pratt b2500c880b MDL-47494 ddmarker: NOBUG fixing redundant empty divs every 2 secs 2012-08-08 16:01:33 +07:00
Tim Hunt 5355d9557b MDL-47494 ddimageortext: Merge branch 'MOODLE_22_STABLE' 2012-08-07 17:39:16 +01:00
Tim Hunt 148c37f7d7 MDL-47494 ddimageortext: Merge branch 'MOODLE_21_STABLE' into MOODLE_22_STABLE 2012-08-07 17:37:30 +01:00
Tim Hunt 727d8c94ab MDL-47494 ddimageortext: Russian translation, thanks to Sergey Zolotykhin. 2012-08-07 17:32:21 +01:00
Tim Hunt 2da2c6d949 MDL-47494 ddmarker: Merge branch 'MOODLE_22_STABLE' 2012-08-06 16:06:31 +01:00
Tim Hunt 5fb9aa82c7 MDL-47494 ddmarker: Merge branch 'MOODLE_21_STABLE' into MOODLE_22_STABLE 2012-08-06 16:05:35 +01:00
Tim Hunt 1e83b54f66 MDL-47494 ddmarker: Fix shuffle drag items + show misplaced bug. #4274 2012-08-06 16:04:16 +01:00
Tim Hunt 13fb133365 MDL-47494 ddmarker: Merge pull request #14 from jamiepratt/wip_ou-4201_php_strict_notices
OU-4201 fixing php strict notices
2012-07-30 03:27:39 -07:00
Tim Hunt bc1937e8cb MDL-47494 ddimageortext: Merge pull request #13 from jamiepratt/wip_highlight
NOBUG Hilight drop target, and use YUI dd groups.
2012-07-30 03:26:48 -07:00
Jamie Pratt 15c668b0d6 MDL-47494 ddimageortext: NOBUG Hilight drop target, and use YUI dd groups. 2012-07-30 13:09:21 +07:00
Jamie Pratt 326d8f8d3f MDL-47494 ddmarker: OU-4201 fixing php strict notices 2012-07-29 13:00:54 +07:00
Tim Hunt 3045d510d7 MDL-47494 ddwtos: Hilight drop target, and use YUI dd groups. 2012-07-27 16:15:59 +01:00
Tim Hunt 1577cd61c8 MDL-47494 ddwtos: Merge pull request #9 from jamiepratt/wip_ou-4202_version_fixes
OU-4202 fix version no to require Moodle 2.3
2012-07-27 06:01:23 -07:00
Tim Hunt bc338a5b27 MDL-47494 ddwtos: Merge pull request #8 from jamiepratt/wip_ou-4200_ddfix
OU-4200 Fix for broken drag and drop with YUI 3.5.1
2012-07-27 05:58:58 -07:00
Tim Hunt f4a48bfc0b MDL-47494 gapselect: Merge pull request #7 from jamiepratt/wip_ou-4202_version_fixes
OU-4202 fix version no to require Moodle 2.3
2012-07-27 05:58:31 -07:00
Tim Hunt 09c8445abf MDL-47494 ddimageortext: Merge pull request #11 from jamiepratt/wip_ou-4193_ddfix
OU-4193 Fix for broken drag and drop with YUI 3.5.1
2012-07-27 05:57:32 -07:00
Tim Hunt c5c1a3d694 MDL-47494 ddimageortext: Merge pull request #12 from jamiepratt/wip_ou-4202_version_fix
OU-4202 fix version no to require Moodle 2.3
2012-07-27 05:57:05 -07:00
Tim Hunt 1fd56de47f MDL-47494 ddmarker: Merge pull request #13 from jamiepratt/wip_ou-4202_version_fixes
OU-4202 fix version no to require Moodle 2.3
2012-07-27 05:56:49 -07:00
Jamie Pratt c9af2d68c3 MDL-47494 ddwtos: OU-4202 fix version no to require Moodle 2.3 2012-07-27 14:23:49 +07:00
Jamie Pratt dbca110a81 MDL-47494 gapselect: OU-4202 fix version no to require Moodle 2.3 2012-07-27 14:23:49 +07:00
Jamie Pratt 3d0b5fc7c0 MDL-47494 ddmarker: OU-4202 fix version no to require Moodle 2.3 2012-07-27 14:23:49 +07:00
Jamie Pratt 4e4b48a478 MDL-47494 ddimageortext: OU-4202 fix version no to require Moodle 2.3 2012-07-27 13:38:51 +07:00
Jamie Pratt 34826a67c3 MDL-47494 ddwtos: OU-4200 Fix for broken drag and drop with YUI 3.5.1 2012-07-27 12:54:50 +07:00
Jamie Pratt 93905b6881 MDL-47494 ddimageortext: OU-4193 Fix for broken drag and drop with YUI 3.5.1 2012-07-27 12:54:21 +07:00
Tim Hunt 9cc064abf8 MDL-47494 gapselect: Merge remote-tracking branch 'ou/MOODLE_21_STABLE' into MOODLE_22_STABLE 2012-06-21 10:24:40 +01:00
Tim Hunt 78393112f3 MDL-47494 gapselect: Merge pull request #6 from jamiepratt/wip_lib_php_fixes_2_1
Wip lib php fixes 2 1
2012-06-21 02:24:05 -07:00
Tim Hunt d958b90765 MDL-47494 gapselect: Merge pull request #5 from jamiepratt/wip_lib_fixes
Wip lib fixes
2012-06-21 02:23:51 -07:00
Tim Hunt 857b88d252 MDL-47494 ddwtos: Merge remote-tracking branch 'ou/MOODLE_21_STABLE' into MOODLE_22_STABLE 2012-06-21 10:22:31 +01:00
Tim Hunt 4b7850c8ef MDL-47494 ddwtos: Merge pull request #7 from jamiepratt/wip_lib_php_fixes_2_1
Wip lib php fixes 2 1
2012-06-21 02:21:51 -07:00
Tim Hunt 3f7251bbe9 MDL-47494 ddwtos: Merge pull request #6 from jamiepratt/wip_lib_fixes
Wip lib fixes
2012-06-21 02:21:45 -07:00
Tim Hunt 3de985b747 MDL-47494 ddimageortext: Merge pull request #9 from jamiepratt/wip_lib_php_fixes_2_1
NOBUG fixes for fileaccess through lib.php
2012-06-21 02:19:47 -07:00
Tim Hunt 9a25a40521 MDL-47494 ddimageortext: Merge pull request #10 from jamiepratt/wip_lib_fixes
Wip lib fixes
2012-06-21 02:19:42 -07:00
Jamie Pratt 3505610d11 MDL-47494 gapselect: Merge branch 'wip_lib_php_fixes_2_1' into wip_lib_fixes
Conflicts:
	lib.php
Merge branch 'wip_lib_php_fixes_2_1' into wip_lib_fixes

Conflicts:
	lib.php
2012-06-21 14:22:00 +07:00
Jamie Pratt b0da01d272 MDL-47494 ddwtos: Merge branch 'wip_lib_php_fixes_2_1' into wip_lib_fixes
Conflicts:
	lib.php
Merge branch 'wip_lib_php_fixes_2_1' into wip_lib_fixes

Conflicts:
	lib.php
2012-06-21 14:21:59 +07:00
Jamie Pratt 5901152a05 MDL-47494 gapselect: NOBUG oops. Forgot to change plug in name inside function 2012-06-21 14:17:27 +07:00
Jamie Pratt 0ac7a9be18 MDL-47494 ddwtos: NOBUG oops. Forgot to change plug in name inside function 2012-06-21 14:17:26 +07:00
Jamie Pratt c48797ac26 MDL-47494 gapselect: NOBUG added extra options param for file access 2012-06-21 14:07:42 +07:00
Jamie Pratt 6ab6252f8a MDL-47494 ddwtos: NOBUG added extra options param for file access 2012-06-21 14:07:41 +07:00
Jamie Pratt 940c0c76cb MDL-47494 gapselect: Merge branch 'wip_lib_php_fixes_2_1' into wip_lib_fixes 2012-06-21 13:42:52 +07:00
Jamie Pratt 5de5ae31ee MDL-47494 ddwtos: Merge branch 'wip_lib_php_fixes_2_1' into wip_lib_fixes 2012-06-21 13:42:44 +07:00
Jamie Pratt db344be62c MDL-47494 ddimageortext: Merge branch 'wip_lib_php_fixes_2_1' into wip_lib_fixes 2012-06-21 13:40:01 +07:00
Jamie Pratt 0749cc7c30 MDL-47494 ddimageortext: NOBUG fixes for fileaccess through lib.php
added missing lib.php files and fixed comments
2012-06-21 12:45:11 +07:00
Jamie Pratt 981f50588d MDL-47494 gapselect: NOBUG fixes for fileaccess through lib.php
added missing lib.php files and fixed comments
2012-06-21 12:45:11 +07:00
Jamie Pratt ceb9e80486 MDL-47494 ddwtos: NOBUG fixes for fileaccess through lib.php
added missing lib.php files and fixed comments
2012-06-21 12:45:11 +07:00
Tim Hunt 08b47def1f MDL-47494 ddwtos: Merge pull request #4 from jamiepratt/wip_unittestconversions
NOBUG changed unit tests to use PHPUnit
2012-06-20 04:21:55 -07:00
Tim Hunt 1b9d6bb270 MDL-47494 ddwtos: Merge pull request #3 from chillofoctober/master
Translate qtype ddwtos to russian language
2012-06-20 04:21:40 -07:00
Tim Hunt d33e1b6a78 MDL-47494 gapselect: Merge pull request #4 from jamiepratt/wip_unittestconversions
NOBUG changed unit tests to use PHPUnit
2012-06-20 04:18:33 -07:00
Tim Hunt 77192cf305 MDL-47494 ddmarker: Merge remote-tracking branch 'jp/wip_unittestconversions'
Conflicts:
	tests/question_test.php
	tests/questiontype_test.php
	tests/shapes_test.php
	tests/walkthrough_test.php
2012-06-20 10:54:05 +01:00
Tim Hunt 521f92010e MDL-47494 ddmarker: Merge pull request #9 from jamiepratt/wip_readme_2_1
Wip readme 2 1
2012-06-20 02:47:14 -07:00
Tim Hunt 41db46c6f9 MDL-47494 ddmarker: Merge pull request #7 from jamiepratt/wip_readme
Wip readme
2012-06-20 02:46:47 -07:00
Tim Hunt 75ba4c5576 MDL-47494 ddmarker: Merge pull request #12 from jamiepratt/wip_file_access_2_3
NOBUG change in file access api in 2.3
2012-06-20 02:42:55 -07:00
Tim Hunt f44c7f1998 MDL-47494 ddimageortext: Merge pull request #7 from jamiepratt/wip_file_access_2_3
NOBUG change in file access api in 2.3
2012-06-20 02:40:10 -07:00
Jamie Pratt bd6d6e4a87 MDL-47494 ddmarker: NOBUG change in file access api in 2.3 2012-06-19 20:11:44 +07:00
Jamie Pratt 4c0f4ffe8e MDL-47494 ddimageortext: NOBUG change in file access api in 2.3 2012-06-19 20:11:24 +07:00
Jamie Pratt 0291aa6672 MDL-47494 ddmarker: Merge branch 'wip_readme_2_1' into wip_readme 2012-06-19 19:16:09 +07:00
Jamie Pratt d7423110fd MDL-47494 ddmarker: NOBUG fixing sql for mysql. Thanks to Alain Roussel.
removed usage of 'drop' keyword as table alias
2012-06-19 19:14:08 +07:00
Jamie Pratt b3adccfb61 MDL-47494 gapselect: NOBUG changed unit tests to use PHPUnit 2012-06-19 14:55:21 +07:00
Jamie Pratt 543e4deef1 MDL-47494 ddwtos: NOBUG changed unit tests to use PHPUnit 2012-06-19 14:53:53 +07:00
Jamie Pratt 4c72a49cd7 MDL-47494 ddmarker: NOBUG using phpunit instead of simpletest library 2012-06-19 14:41:31 +07:00
Tim Hunt 3f22d29cce MDL-47494 gapselect: Merge pull request #3 from chillofoctober/master
Translate gapselect to russian language
2012-06-18 08:40:10 -07:00
Tim Hunt 0c859404c9 MDL-47494 ddimageortext: Merge pull request #6 from jamiepratt/wip_unittestconversions
NOBUG changed unit tests to use PHPUnit
2012-06-18 08:34:34 -07:00
Jamie Pratt c7b2d1fbd9 MDL-47494 ddimageortext: NOBUG changed unit tests to use PHPUnit 2012-06-16 16:57:53 +07:00
Eugene Shwab ae486a635a MDL-47494 ddwtos: Translate to russian language 2012-06-14 14:01:17 +04:00
Tim Hunt 8ece5d73a0 MDL-47494 ddmarker: Merge pull request #10 from chillofoctober/master
Translate qtype ddmarker to russian language
2012-06-13 03:48:58 -07:00
Eugene Shwab 8c743d7d8d MDL-47494 ddmarker: Translate to russian language 2012-06-13 14:45:23 +04:00
Tim Hunt 201061d943 MDL-47494 ddimageortext: Merge pull request #3 from jamiepratt/master
NOBUG adding an alt tag to drag and drop background image - master branch
2012-06-08 05:19:55 -07:00
Eugene Shwab 2029b1d80e MDL-47494 gapselect: Translate to russian language 2012-06-08 16:06:38 +04:00
Jamie Pratt 6521797d7b MDL-47494 ddimageortext: Merge branch 'master' of git://github.com/moodleou/moodle-qtype_ddimageortext 2012-05-08 12:42:39 +07:00
Jamie Pratt 6396b9342f MDL-47494 ddmarker: Merge branch 'wip_readme_2_1' into wip_readme 2012-04-10 20:29:06 +07:00
Jamie Pratt aee03a6b74 MDL-47494 ddmarker: NOBUG added instructions to README about converting imagetarget qs
and renamed README.txt to README.md
2012-04-10 20:28:00 +07:00
Jamie Pratt 19f5c30c25 MDL-47494 ddmarker: Merge branch 'wip_imagetargetupgrader_2_1' into wip_imagetargetupgrader 2012-04-08 19:29:10 +07:00
Jamie Pratt ac4abff022 MDL-47494 ddmarker: NOBUG couple of small fixes 2012-04-08 19:28:06 +07:00
Jamie Pratt 4a1582ab7c MDL-47494 ddmarker: Merge branch 'wip_imagetargetupgrader_2_1' into wip_imagetargetupgrader 2012-04-08 18:17:55 +07:00
Jamie Pratt 73f356a4ee MDL-47494 ddmarker: NOBUG converted question conversion code to use a renderer 2012-04-08 18:16:38 +07:00
Jamie Pratt 2578a29ac2 MDL-47494 ddmarker: Merge branch 'wip_imagetargetupgrader_2_1' into wip_imagetargetupgrader 2012-04-07 14:37:29 +07:00
Jamie Pratt b409f1990e MDL-47494 ddmarker: NOBUG fixing and updating tags in phpdoc comments 2012-04-07 14:34:58 +07:00
Jamie Pratt 6a3b599366 MDL-47494 ddmarker: NOBUG added progress bar for question conversion during upgrade 2012-04-07 14:24:25 +07:00
Jamie Pratt 34ec5ad14d MDL-47494 ddmarker: NOBUG made string for label into a constant so it is easy to change 2012-04-07 14:23:18 +07:00
Tim Hunt 344d774ecd MDL-47494 gapselect: Fix PHP strict errors. 2012-04-05 13:42:25 +01:00
Tim Hunt 81d1cac12b MDL-47494 ddimageortext: Fix PHP strict errors. 2012-04-05 13:40:12 +01:00
Tim Hunt 5b8460a374 MDL-47494 ddwtos: Fix PHP strict errors. 2012-04-05 13:35:37 +01:00
Jamie Pratt 86529cb3ab MDL-47494 ddmarker: NOBUG refactoring so that automatic and manual conversion code is shared 2012-04-04 14:42:40 +07:00
Jamie Pratt d544fb24ce MDL-47494 ddmarker: NOBUG added script to do upgrade automatically during 2.1 site upgrade 2012-04-04 12:58:02 +07:00
Jamie Pratt 4b47ad4623 MDL-47494 ddmarker: Merge branch 'wip_imagetargetconverter_2_1' into wip_imagetargetconverter 2012-04-02 18:59:10 +07:00
Jamie Pratt 5153be2b26 MDL-47494 ddmarker: NOBUG not using list progress trace any more as it is has a bug 2012-04-02 17:20:12 +07:00
Jamie Pratt 35c7dea6d2 MDL-47494 ddmarker: NOBUG added script needed for upgrading attempt data from imagetarget qs 2012-04-02 16:33:09 +07:00
Jamie Pratt a79d43fe9c MDL-47494 ddmarker: NOBUG adding a condition to catch if there are no questions to convert 2012-04-01 17:30:42 +07:00
Jamie Pratt 874007d480 MDL-47494 ddmarker: Merge branch 'wip_imagetargetconverter_2_1' into wip_imagetargetconverter
Conflicts:
	imagetargetconverter.php
2012-03-31 18:54:49 +07:00
Jamie Pratt 45766c517a MDL-47494 ddmarker: NOBUG implemented conversion of question itself 2012-03-31 18:47:15 +07:00
Jamie Pratt c3efffdb72 MDL-47494 ddmarker: NOBUG improvement in wording of messages for the user 2012-03-31 18:13:22 +07:00
Jamie Pratt 864e786019 MDL-47494 ddmarker: NOBUG make it possible to select just one question for processing 2012-03-31 14:23:25 +07:00
Jamie Pratt e1bd1cf6e3 MDL-47494 ddmarker: NOBUG loading imagetarget and answers records all before processing 2012-03-31 14:09:31 +07:00
Jamie Pratt f26e975dd5 MDL-47494 ddmarker: NOBUG subclass list and list item classes to add specific processing 2012-03-31 10:52:28 +07:00
Jamie Pratt 44f16ef16d MDL-47494 ddmarker: NOBUG some fixes to php doc comments 2012-03-31 10:25:13 +07:00
Jamie Pratt d4e4c3131d MDL-47494 ddmarker: NOBUG moved list classes to new file 2012-03-31 10:04:15 +07:00
Jamie Pratt d0c2245757 MDL-47494 ddmarker: NOBUG adding method to process questions. 2012-03-31 09:46:23 +07:00
Tim Hunt 995d770e66 MDL-47494 gapselect: Files in hints were not moved or deleted properly for OU qtypes. #3478 2012-03-30 10:32:13 +01:00
Tim Hunt 5110ed6134 MDL-47494 ddmarker: Files in hints were not moved or deleted properly for OU qtypes. #3478 2012-03-30 10:30:52 +01:00
Tim Hunt daac3bb85e MDL-47494 ddimageortext: Files in hints were not moved or deleted properly for OU qtypes. #3478 2012-03-30 10:29:30 +01:00
Jamie Pratt 9437265e8b MDL-47494 ddmarker: NOBUG restructuring if conditions to interpret page params 2012-03-29 16:31:43 +07:00
Jamie Pratt 2de9e082ee MDL-47494 ddmarker: NOBUG fixing error in sql to fetch relevant questions 2012-03-29 15:29:06 +07:00
Jamie Pratt b30cfa2c4f MDL-47494 ddmarker: Merge branch 'wip_imagetargetconverter_2_1' into wip_imagetargetconverter 2012-03-29 14:07:44 +07:00
Jamie Pratt af9d63a8dc MDL-47494 ddmarker: NOBUG list questions in categories in category / context selection UI 2012-03-29 14:05:57 +07:00
Jamie Pratt a83fc46784 MDL-47494 ddmarker: NOBUG fixing white space issue 2012-03-27 18:22:49 +07:00
Jamie Pratt a922c16cb7 MDL-47494 ddmarker: Merge branch 'wip_imagetargetconverter_2_1' into wip_imagetargetconverter 2012-03-27 18:22:09 +07:00
Jamie Pratt e1e835e727 MDL-47494 ddmarker: NOBUG fixing coding style deviations found by code checker. 2012-03-27 18:20:14 +07:00
Jamie Pratt 466faa083a MDL-47494 ddmarker: Merge branch 'wip_imagetargetconverter_2_1' into wip_imagetargetconverter 2012-03-27 17:35:35 +07:00
Jamie Pratt 2379439f63 MDL-47494 ddmarker: NOBUG change API calls that only work post 2.1
This need to be merged into master branch because we want to keep the
2.1 branch mergeable but then we will merge with 'ours' strategy,
effectively discarding changes.
2012-03-27 17:32:51 +07:00
Jamie Pratt 49d7891f60 MDL-47494 ddmarker: Merge branch 'wip_imagetargetconverter_2_1' into wip_imagetargetconverter 2012-03-22 09:53:48 +07:00
Jamie Pratt 5e37b1f0f7 MDL-47494 ddmarker: NOBUG further work on adminpage 2012-03-22 09:52:56 +07:00
Jamie Pratt f22414b1e5 MDL-47494 ddmarker: Merge branch 'wip_imagetargetconverter_2_1' into wip_imagetargetconverter 2012-02-28 13:07:45 +07:00
Jamie Pratt 6bdb7323ae MDL-47494 ddmarker: NOBUG admin page that lists contexts and categories
and the number of questions contained in them.
2012-02-28 13:05:45 +07:00
Tim Hunt 876b295595 MDL-47494 gapselect: Fix incorrect foreign key declaration. 2012-02-21 22:56:51 +00:00
Tim Hunt aad328b21d MDL-47494 ddmarker: Merge branch 'MOODLE_21_STABLE' 2012-02-10 16:25:40 +00:00
Tim Hunt 03337d8bab MDL-47494 ddmarker: Add extra pluginname string to appease the plugins DB 2012-02-10 16:25:23 +00:00
Tim Hunt d8555d4a9f MDL-47494 ddmarker: Merge branch 'MOODLE_21_STABLE'
Conflicts:
	version.php
2012-02-10 16:22:23 +00:00
Tim Hunt 141233ed2c MDL-47494 ddmarker: Merge remote-tracking branch 'jp/master' 2012-02-10 16:20:27 +00:00
Tim Hunt 2a71bf53d2 MDL-47494 ddmarker: Clean up version.php and comments. 2012-02-10 16:20:14 +00:00
Tim Hunt 0a32d51a33 MDL-47494 ddmarker: Merge remote-tracking branch 'jp/MOODLE_21_STABLE' into MOODLE_21_STABLE 2012-02-10 16:13:00 +00:00
Tim Hunt eeb58297a6 MDL-47494 ddimageortext: Merge branch 'MOODLE_21_STABLE'
Conflicts:
	README.txt
	lang/en/qtype_ddimageortext.php
	version.php
2012-02-10 16:00:47 +00:00
Tim Hunt c109c9012e MDL-47494 ddimageortext: Fix version.php, and wrong qtype name in comments. 2012-02-10 15:52:42 +00:00
Tim Hunt fee4224fcc MDL-47494 ddimageortext: Merge remote-tracking branch 'jp/MOODLE_21_STABLE' into MOODLE_21_STABLE 2012-02-10 15:45:07 +00:00
Tim Hunt 90e64ecb4e MDL-47494 ddwtos: Merge branch 'MOODLE_21_STABLE'
Conflicts:
	lang/en/qtype_ddwtos.php
	version.php
2012-02-10 15:14:51 +00:00
Tim Hunt 12d0d76b90 MDL-47494 ddwtos: Update version.php 2012-02-10 15:13:02 +00:00
Tim Hunt 61809dfaaa MDL-47494 gapselect: Merge branch 'MOODLE_21_STABLE'
Conflicts:
	lang/en/qtype_gapselect.php
2012-02-10 14:46:42 +00:00
Tim Hunt be806cc405 MDL-47494 gapselect: Merge remote-tracking branch 'jp/master'
Conflicts:
	lang/en/qtype_gapselect.php
2012-02-10 14:45:04 +00:00
Tim Hunt 11f623878d MDL-47494 gapselect: Update version.php and readme. 2012-02-10 14:42:32 +00:00
Tim Hunt 89ad73e6b1 MDL-47494 gapselect: Update language strings to work with Moodle 2.2. 2012-02-06 07:58:50 +01:00
Jamie Pratt 81b0d1a70f MDL-47494 ddimageortext: NOBUG adding an alt tag to drag and drop background image 2012-02-05 19:04:53 +07:00
Jamie Pratt 5f924369ce MDL-47494 ddimageortext: NOBUG adding an alt tag to drag and drop background image 2012-02-05 19:03:11 +07:00
Jamie Pratt 415893bb24 MDL-47494 ddmarker: Merge branch 'MOODLE_21_STABLE' 2012-02-05 18:44:23 +07:00
Jamie Pratt 612607d66c MDL-47494 ddmarker: NOBUG adding an alt tag to drag and drop background image 2012-02-05 18:43:31 +07:00
Tim Hunt 063ce1658b MDL-47494 ddmarker: Merge pull request #1 from jamiepratt/master
changed repo url in readme
2012-02-04 23:31:36 -08:00
Tim Hunt 218d0acb98 MDL-47494 ddmarker: Merge pull request #2 from jamiepratt/MOODLE_21_STABLE
Change in url in Moodle 21 stable
2012-02-04 23:27:31 -08:00
Tim Hunt 9fde49522d MDL-47494 ddimageortext: Merge pull request #1 from jamiepratt/master
Changed repo url in the README.
2012-02-04 23:26:43 -08:00
Tim Hunt aa9ab4a474 MDL-47494 ddimageortext: Merge pull request #2 from jamiepratt/MOODLE_21_STABLE
Fixing the repo url in MOODLE_21_STABLE
2012-02-04 23:25:47 -08:00
Jamie Pratt 8f042b5159 MDL-47494 ddwtos: Merge branch 'MOODLE_21_STABLE' 2012-02-05 14:12:19 +07:00
Jamie Pratt dce199af16 MDL-47494 ddwtos: NOBUG updating repo url in installation instructions 2012-02-05 14:10:43 +07:00
Jamie Pratt 266eade0cd MDL-47494 gapselect: Merge branch 'MOODLE_21_STABLE' 2012-02-05 12:57:56 +07:00
Jamie Pratt ce6bc6c673 MDL-47494 gapselect: NOBUG updating repo url in installation instructions 2012-02-05 12:57:05 +07:00
Jamie Pratt 6420d735b1 MDL-47494 ddmarker: Merge branch 'MOODLE_21_STABLE' 2012-02-05 12:56:06 +07:00
Jamie Pratt c710a1ebdb MDL-47494 ddmarker: NOBUG updating repo url in installation instructions 2012-02-05 12:51:40 +07:00
Jamie Pratt a9975ec074 MDL-47494 ddimageortext: NOBUG updating installations instruction with moodleou repo url 2012-02-05 12:38:16 +07:00
Jamie Pratt 5cf31e57d5 MDL-47494 ddimageortext: NOBUG updating installations instruction with moodleou repo url 2012-02-05 12:10:13 +07:00
Jamie Pratt 533a0aa2be MDL-47494 gapselect: Merge branch 'diff_2_2' changes for Moodle 2.2+
Conflicts:
	lang/en/qtype_gapselect.php
2012-02-04 18:27:11 +07:00
Jamie Pratt f37cb12ed0 MDL-47494 gapselect: NOBUG change to string identifiers 2012-02-04 18:20:46 +07:00
Jamie Pratt 801012aaaf MDL-47494 gapselect: NOBUG fixing unit tests related to change in default for hint format 2012-02-04 18:20:45 +07:00
Tim Hunt 7421dafa8f MDL-47494 ddmarker: Fix default text format when importing hints. 2012-02-03 19:18:13 +01:00
Tim Hunt 445143ef48 MDL-47494 ddmarker: Fix default text format when importing hints. 2012-02-03 19:14:11 +01:00
Jamie Pratt 3683ba61e7 MDL-47494 ddwtos: NOBUG change to string identifiers 2012-02-03 13:02:41 +07:00
Jamie Pratt 209d3e7ad5 MDL-47494 ddmarker: Merge branch 'MOODLE_21_STABLE' 2012-02-03 12:55:34 +07:00
Jamie Pratt bfd69fe659 MDL-47494 ddmarker: NOBUG updating README.txt installation instructions to include 2.1 branch 2012-02-03 12:54:22 +07:00
Jamie Pratt 9c6e2570be MDL-47494 ddmarker: NOBUG change to string identifiers 2012-01-31 18:00:59 +07:00
Jamie Pratt 77328c4143 MDL-47494 ddimageortext: NOBUG change to string identifiers 2012-01-31 18:00:04 +07:00
Jamie Pratt bb6427e31d MDL-47494 ddwtos: NOBUG change in dependency code for qtypes 2012-01-31 17:04:12 +07:00
Jamie Pratt 1f92921f6f MDL-47494 ddimageortext: NOBUG change in dependency code in qtypes 2012-01-31 16:59:04 +07:00
Jamie Pratt 4dafd7aa56 MDL-47494 ddmarker: NOBUG change in dependency code for qtypes 2012-01-31 16:43:00 +07:00
Jamie Pratt d82d9b649f MDL-47494 ddimageortext: Merge branch 'MOODLE_21_STABLE' of github.com:jamiepratt/moodle-qtype_ddimageortext into MOODLE_21_STABLE 2012-01-31 16:23:11 +07:00
Jamie Pratt 9a94582b0a MDL-47494 ddimageortext: NOBUG requires the gapselect question type to be installed 2012-01-31 16:15:31 +07:00
Jamie Pratt 551fdcc830 MDL-47494 ddmarker: NOBUG fixing unit tests in testwalkthrough.php 2012-01-30 21:00:04 +07:00
Jamie Pratt 389c6f5589 MDL-47494 ddmarker: NOBUG fixing testquestion.php unit tests 2012-01-29 17:23:01 +07:00
Jamie Pratt 317caf1150 MDL-47494 ddmarker: NOBUG fixing potential issue with use of core php array_intersect func 2012-01-29 15:14:02 +07:00
Jamie Pratt cf25df7a30 MDL-47494 ddmarker: NOBUG fixing obvious typo and redundant logic test. 2012-01-29 15:11:33 +07:00
Jamie Pratt 1cae63adf7 MDL-47494 ddmarker: NOBUG making polygon::is_point_in_shape more robust 2012-01-26 18:00:45 +07:00
Jamie Pratt 0aa089c778 MDL-47494 ddmarker: NOBUG return null for random_guess_score as it is incalculable
there are no shown drop zones and we don't know how many drag items have to be
dragged to the image. We could do the complicated calculation to find the area
of a polygon and compare it to the area of the image but it is an overly
complex a calculation I feel outside the scope of the current project.
2012-01-26 17:00:10 +07:00
Jamie Pratt a681f140a8 MDL-47494 ddwtos: OU-2666 Fixed problem when drag misplaced from drop and not dragged off 2011-12-23 14:48:13 +07:00
Jamie Pratt 5be9d2a2f1 MDL-47494 ddwtos: NOBUG css to fix alignment when superscripts and subscripts in drag boxes
Fixes weird layout bug with web browsers that means the boxes will not line up.
2011-12-13 15:52:50 +07:00
Jamie Pratt edf84c8c63 MDL-47494 ddwtos: NOBUG removing unused ie7fix code that is no longer needed
thanks to Tim's fix to sub sup alignment.
2011-12-13 15:40:14 +07:00
Tim Hunt f1034eee15 MDL-47494 ddwtos: Align drag boxes containing sup and sub better. #2094 2011-12-09 17:05:34 +00:00
Tim Hunt 48b3936649 MDL-47494 ddimageortext: Fix import/export and unit tests. 2011-12-09 13:04:14 +07:00
jamiepratt 16be22cd31 MDL-47494 ddimageortext: Merge pull request #6 from timhunt/MOODLE_21_STABLE
Fix unit tests
2011-12-08 22:00:46 -08:00
Tim Hunt 5283ee02c1 MDL-47494 gapselect: Blank menus should say 'Choose ...'.
Also fix unit tests and import.
2011-12-06 14:52:58 +00:00
Tim Hunt 548071f614 MDL-47494 ddimageortext: Fix import/export and unit tests. 2011-12-06 14:50:19 +00:00
Tim Hunt efff972a54 MDL-47494 ddwtos: Fix unit tests 2011-12-06 14:45:33 +00:00
Tim Hunt afc09933e6 MDL-47494 gapselect: Select menus should start saying 'Choose ...', not blank. 2011-12-05 12:51:08 +00:00
Tim Hunt 1371d090c8 MDL-47494 gapselect: Fix export of combined feedback. 2011-12-05 12:50:24 +00:00
Jamie Pratt 50f0ab7f6e MDL-47494 ddmarker: OU-2488 Proper British English 2011-12-02 22:59:15 +07:00
Tim Hunt 6c6fc62627 MDL-47494 ddimageortext: Remove redundant line of code. Hints are automatically output anyway. 2011-12-02 20:36:35 +07:00
jamiepratt a26cec5a41 MDL-47494 ddimageortext: Merge pull request #5 from timhunt/MOODLE_21_STABLE
Moodle 21 stable
2011-12-02 05:35:01 -08:00
Jamie Pratt ac9c8df673 MDL-47494 ddmarker: OU-2489 Using js instead of styling to position markers correctly
on home
2011-12-02 20:20:19 +07:00
Jamie Pratt 53c8848761 MDL-47494 ddmarker: OU-2493 Assigned some extra keys to move markers about the screen 2011-12-02 20:19:30 +07:00
Jamie Pratt 6daf12fe14 MDL-47494 ddmarker: OU-2488 Improved English in coordinate validation error messages. 2011-12-02 16:44:39 +07:00
Jamie Pratt f76c454b04 MDL-47494 ddmarker: OU-2409 fixed punctuation and style in auto generated hints
for wrongly placed drags
2011-12-02 16:07:31 +07:00
Tim Hunt 8c0650fc4a MDL-47494 ddimageortext: Remove redundant line of code. Hints are automatically output anyway. 2011-12-01 11:49:21 +00:00
Jamie Pratt 6e96abb029 MDL-47494 ddmarker: OU-2453 Fixed drag redraw so now there are no duplicate drag items 2011-11-30 08:21:52 +07:00
Jamie Pratt 8d5d2155e4 MDL-47494 ddmarker: OU-2454 Fix for text boxes in feedback in IE7 being broken in half by br 2011-11-30 08:09:19 +07:00
Jamie Pratt 9a0723c5d6 MDL-47494 ddmarker: OU-2426 Work around bug seen in IE7
Graphics.destroy function was throwing an error. Seems there is a bug in the
YUI library affecting IE 7 and 8.
2011-11-29 19:26:05 +07:00
Jamie Pratt d89a348524 MDL-47494 ddmarker: OU-2422 Added 20px margin between drag items and image above 2011-11-29 14:44:06 +07:00
Jamie Pratt 5a34e0b037 MDL-47494 ddmarker: OU-2407 allow tags in markers
relaxed form validation and hardened js
2011-11-29 14:29:34 +07:00
Jamie Pratt 7401a9146b MDL-47494 ddmarker: OU-2409 adding a comma between misplaced markers in feedback 2011-11-29 14:28:35 +07:00
Jamie Pratt f00f4682d9 MDL-47494 ddimageortext: Merge branch 'master' into MOODLE_21_STABLE 2011-11-29 07:07:26 +07:00
Jamie Pratt f8f8163e94 MDL-47494 ddimageortext: NOBUG lang string changes 2011-11-29 07:06:24 +07:00
Jamie Pratt 3ed6823de4 MDL-47494 ddmarker: NOBUG some lang string changes 2011-11-29 07:05:28 +07:00
Jamie Pratt a709dca58b MDL-47494 ddmarker: NOBUG adding gridline overlay to drop background image in ddmarker. 2011-11-25 17:50:40 +07:00
Tim Hunt 7547c32aa4 MDL-47494 ddwtos: Summarise response did not work when choices contained HTML. #2009 2011-11-24 16:45:31 +00:00
Tim Hunt a719f4d218 MDL-47494 gapselect: Bug fixes: #2009
1. Automatic display of right answer did not work if question text
contained images.

2. A choice of '0' was rejected by the form validation.

3. Hard coded strings moved to lang strings.
2011-11-24 16:43:12 +00:00
Tim Hunt 1e62114e5d MDL-47494 ddimageortext: Fix invalid HTML caused by empty_tag('div', ...). #2273 2011-11-24 00:14:17 +07:00
jamiepratt d857b79a55 MDL-47494 ddimageortext: Merge pull request #4 from timhunt/MOODLE_21_STABLE
Moodle 21 stable
2011-11-23 09:10:16 -08:00
Tim Hunt 39ed2eee2a MDL-47494 ddimageortext: Fix invalid HTML caused by empty_tag('div', ...). #2273 2011-11-23 17:04:35 +00:00
Jamie Pratt bd3406adf9 MDL-47494 ddmarker: NOBUG fix to silly typo that was causing response summary not to be shown 2011-11-23 20:16:39 +07:00
Jamie Pratt a187ada8cf MDL-47494 ddimageortext: NOBUG if any choice is 'infinite' return null for random guess score 2011-11-23 13:44:15 +07:00
Jamie Pratt 172d6dfd12 MDL-47494 ddimageortext: NOBUG if any choice is 'infinite' return null for random guess score 2011-11-23 12:50:29 +07:00
Jamie Pratt 14230fd6dc MDL-47494 ddmarker: NOBUG fix question statistics in quiz statistics report 2011-11-23 12:31:24 +07:00
Jamie Pratt 5e0f5f52de MDL-47494 ddmarker: NOBUG fixing CSS selectors so that they apply style to highlighted marker text 2011-11-23 11:51:21 +07:00
Jamie Pratt fb15199865 MDL-47494 ddmarker: NOBUG implemented backup and restore. 2011-11-19 19:30:34 +07:00
Jamie Pratt fd1be85cbe MDL-47494 ddmarker: NOBUG implement import / export of question type 2011-11-19 17:59:56 +07:00
Jamie Pratt 615888af8e MDL-47494 ddimageortext: Merge branch 'master' into MOODLE_21_STABLE 2011-11-19 17:24:20 +07:00
Jamie Pratt 5b7d9decd9 MDL-47494 ddimageortext: NOBUG adding main question type table that needs deleting to question_delete 2011-11-19 17:23:32 +07:00
Jamie Pratt 3c63e5916e MDL-47494 ddimageortext: Merge branch 'master' into MOODLE_21_STABLE 2011-11-19 17:11:25 +07:00
Jamie Pratt cb5c4e62ac MDL-47494 ddimageortext: NOBUG fixing question tables referred to for question deleting 2011-11-19 17:10:19 +07:00
Jamie Pratt 2bd257656b MDL-47494 ddimageortext: Merge branch 'master' into MOODLE_21_STABLE
Conflicts:
	questiontype.php
2011-11-19 17:09:18 +07:00
Jamie Pratt d36f336d84 MDL-47494 ddimageortext: MDL-29058 change in api related to fix for saving feedback files 2011-11-19 17:00:51 +07:00
Jamie Pratt 267ccc7347 MDL-47494 ddmarker: NOBUG oops. Finish code for moving and deleting files related to question 2011-11-19 15:15:29 +07:00
Jamie Pratt 5356733eff MDL-47494 ddmarker: NOBUG suppress link in drag items in question editing form 2011-11-19 15:15:01 +07:00
Jamie Pratt c9cf5af4e5 MDL-47494 ddmarker: NOBUG fixed issue with occurances of html_writer::empty_tag('div'.....
Divs were being generated as <div /> which is probably illegal html and was not
getting correctly selected with YUI to add children.
2011-11-19 14:16:09 +07:00
Jamie Pratt 14fe3addd8 MDL-47494 ddmarker: NOBUG suppressing link in drag when using question editing form 2011-11-18 19:14:39 +07:00
Jamie Pratt c28563d2f0 MDL-47494 ddmarker: NOBUG suppress message about wrongly dragged question parts when there are none. 2011-11-18 18:40:50 +07:00
Jamie Pratt e8decd151d MDL-47494 ddmarker: Merge branch 'master' of git://github.com/jamiepratt/moodle-qtype_ddmarker
Conflicts:
	question.php
2011-11-18 18:37:57 +07:00
Jamie Pratt 8ed8434c63 MDL-47494 ddmarker: NOBUG string change 2011-11-18 13:19:33 +07:00
Jamie Pratt 6f6d6e2fbe MDL-47494 ddmarker: NOBUG fixed notice when hints are displayed 2011-11-18 13:17:27 +07:00
Jamie Pratt 6d6cda8902 MDL-47494 ddmarker: NOBUG fix for notices seen when pressing 'fill in correct response' in preview 2011-11-18 13:12:48 +07:00
Jamie Pratt 597a696a4a MDL-47494 ddmarker: NOBUG fixed some problems with response summaries 2011-11-18 13:12:10 +07:00
Jamie Pratt cb88dc139b MDL-47494 ddmarker: NOBUG fixed some problems with response summaries 2011-11-18 12:34:00 +07:00
Jamie Pratt d7625a96f1 MDL-47494 ddimageortext: NOBUG moving some methods from out of the question_type base class 2011-11-18 11:36:45 +07:00
Jamie Pratt c82675e06c MDL-47494 ddimageortext: NOBUG adding comments to identify keys for key numbers in keyboard listener 2011-11-18 11:30:28 +07:00
Tim Hunt 5a20554702 MDL-47494 ddimageortext: Tweak lang strings and fix file permissions. 2011-11-18 11:30:27 +07:00
Jamie Pratt fdaacb9e60 MDL-47494 ddimageortext: NOBUG adding some drop shadow to drags 2011-11-18 11:30:26 +07:00
Jamie Pratt b9640ba51f MDL-47494 ddimageortext: NOBUG moving some methods from out of the question_type base class 2011-11-18 11:15:08 +07:00
Jamie Pratt 374c250b51 MDL-47494 ddmarker: NOBUG added a border to draggable items 2011-11-17 16:17:06 +07:00
Jamie Pratt 67a2afa43e MDL-47494 ddmarker: NOBUG hopefully made some of the student facing messages more intelligible 2011-11-17 16:13:10 +07:00
Jamie Pratt 70c434ee5b MDL-47494 ddmarker: NOBUG implemented highlighting of incorrectly dragged drag items. 2011-11-17 16:08:02 +07:00
Jamie Pratt 43964253f3 MDL-47494 ddmarker: NOBUG control highlighting drops without hit by showmisplaced flag from form 2011-11-17 16:04:05 +07:00
Jamie Pratt e47c7eaec2 MDL-47494 ddmarker: NOBUG implemented the highlighting of drop zones with no drag hit 2011-11-17 13:20:43 +07:00
Jamie Pratt bcbe321a87 MDL-47494 ddmarker: NOBUG implemented 'Fill in correct responses' 2011-11-16 16:01:47 +07:00
Jamie Pratt 457c35b3dc MDL-47494 ddmarker: NOBUG increase opacity of marker text to 0.6 to make them more readable 2011-11-16 14:37:09 +07:00
Jamie Pratt a365808af1 MDL-47494 ddmarker: NOBUG fixed a couple of bugs displaying marker text 2011-11-16 14:32:23 +07:00
Jamie Pratt 5d76e39400 MDL-47494 ddmarker: NOBUG fixing PHP notice about missing label property. 2011-11-16 13:07:52 +07:00
Jamie Pratt 7792acc0a8 MDL-47494 ddmarker: NOBUG corrected grading equation to include penalty and clarified code
also removed debug code
2011-11-16 13:00:16 +07:00
Jamie Pratt b1d1ae5095 MDL-47494 ddmarker: NOBUG coded clear wrong from response 2011-11-15 17:40:33 +07:00
Jamie Pratt 33164c0424 MDL-47494 ddmarker: NOBUG coded question grading. 2011-11-15 17:09:09 +07:00
Jamie Pratt 6f789d3dbd MDL-47494 ddmarker: NOBUG more work on code to validate coordinates entered when editing question 2011-11-14 15:39:44 +07:00
Jamie Pratt 2b3e53b36f MDL-47494 ddimageortext: NOBUG adding comments to identify keys for key numbers in keyboard listener 2011-11-12 15:48:37 +07:00
Jamie Pratt f881a720ef MDL-47494 ddmarker: NOBUG implemented keyboard control of drag items for accessibility. 2011-11-12 15:21:50 +07:00
Jamie Pratt c278048873 MDL-47494 ddmarker: NOBUG adding some space between drag items so they can be easily distinguished 2011-11-10 13:48:00 +07:00
Jamie Pratt 197acdf79b MDL-47494 ddmarker: NOBUG removing console.log 2011-11-10 13:06:02 +07:00
Jamie Pratt b88753e448 MDL-47494 ddmarker: NOBUG no longer deleting dragged node 2011-11-10 13:04:13 +07:00
Jamie Pratt 450ecdea9d MDL-47494 ddmarker: NOBUG added code to reposition drags every 500ms 2011-11-10 12:41:23 +07:00
Jamie Pratt 054c1ce49a MDL-47494 ddmarker: NOBUG changed code for positioning drag items
Now it does not delete all drag items each time and reclone them. It repositions
existing items and deletes and creates new drag items as needed.
2011-11-10 12:35:40 +07:00
Jamie Pratt 3865a58874 MDL-47494 ddmarker: NOBUG use CSS to move target center to point at 0,0 of dragitem div
changed from calculating difference being drag item xy and target center xy
which was error prone.
2011-11-08 14:42:23 +07:00
Jamie Pratt 6409471538 MDL-47494 ddmarker: NOBUG rewrote code to save target center xy in hidden input tags
also bases position of drags on contents of hidden inputs ie. on target center
xy.
2011-11-08 12:59:04 +07:00
jamiepratt ef3bc620e9 MDL-47494 ddimageortext: Merge pull request #1 from timhunt/master
Just some minor tweaks to bring us into synch with the latest ouvle version.
2011-11-07 03:57:15 -08:00
Tim Hunt 0491945d58 MDL-47494 gapselect: Fix file-permissions. 2011-11-04 16:15:03 +00:00
Tim Hunt a8bc7c608d MDL-47494 ddwtos: Whitespace and file permission fixes. 2011-11-04 15:34:24 +00:00
Tim Hunt c56c771f9e MDL-47494 ddimageortext: Tweak lang strings and fix file permissions. 2011-11-04 14:20:00 +00:00
Jamie Pratt b5cdc3e7a7 MDL-47494 ddimageortext: NOBUG adding some drop shadow to drags 2011-11-04 17:49:38 +07:00
Jamie Pratt 44e47bd9a3 MDL-47494 ddmarker: NOBUG added drop shadow on marker text being dragged 2011-11-04 17:23:58 +07:00
Jamie Pratt 10cbf24afd MDL-47494 ddmarker: NOBUG added js functionality for 'infinite' drags. 2011-11-04 17:06:51 +07:00
Jamie Pratt bf2892c4fd MDL-47494 ddmarker: NOBUG oops. Just committing crosshairs.gif now 2011-11-04 10:16:25 +07:00
Jamie Pratt 477179666f MDL-47494 ddmarker: NOBUG dragging and dropping of non infinite choices is now working. 2011-11-03 19:47:54 +07:00
Jamie Pratt b1330fe887 MDL-47494 ddmarker: NOBUG some style improvements 2011-11-03 17:54:40 +07:00
Jamie Pratt a98db2a929 MDL-47494 ddmarker: NOBUG js for question renderer - cloning drags and storing drop coords 2011-11-03 16:22:56 +07:00
Jamie Pratt 5e0be900ae MDL-47494 ddimageortext: Merge branch 'master' into MOODLE_21_STABLE 2011-11-03 16:21:29 +07:00
Jamie Pratt 2a1ec7554c MDL-47494 ddimageortext: NOBUG allow sub classes to add class names to hidden input fields 2011-11-03 16:19:52 +07:00
Jamie Pratt e5c0a2c442 MDL-47494 ddwtos: OU-2004 Fixed the initial positioning of 'infinite' choices 2011-11-02 18:39:22 +07:00
Jamie Pratt e354ce47c2 MDL-47494 ddmarker: NOBUG adding target icon to drag items and some improvements to styles 2011-11-02 15:56:46 +07:00
Jamie Pratt f8d20b1f18 MDL-47494 ddimageortext: Merge branch 'master' into MOODLE_21_STABLE 2011-11-02 13:53:07 +07:00
Jamie Pratt 5429a22009 MDL-47494 ddimageortext: NOBUG have url generation code work in other question types that extend this 2011-11-02 13:51:05 +07:00
Jamie Pratt ddbea1ae6b MDL-47494 ddmarker: NOBUG have renderer output correct html and fix file access to bgimage 2011-11-02 13:49:54 +07:00
Jamie Pratt c77b71bc1b MDL-47494 ddimageortext: Merge branch 'master' into MOODLE_21_STABLE
Conflicts:
	edit_ddimageortext_form.php
2011-10-31 18:55:08 +07:00
Jamie Pratt 6aad8ee353 MDL-47494 ddimageortext: NOBUG fixed disabling of select options when the background image is not loaded 2011-10-31 17:38:28 +07:00
Jamie Pratt eab829f388 MDL-47494 ddimageortext: NOBUG removing unnecessary reference to obsolete head_code method 2011-10-31 16:20:21 +07:00
Jamie Pratt d164d09315 MDL-47494 ddimageortext: NOBUG removing unnecessary form input event responder that was causing errors 2011-10-31 16:19:04 +07:00
Jamie Pratt b34bc99705 MDL-47494 ddmarker: NOBUG moved colours out of css style sheet and into js
Need to be able to assign a colour to the fill of shapes displayed and this
cannot be done with css.
2011-10-31 16:14:52 +07:00
Jamie Pratt def5ae8de4 MDL-47494 ddmarker: NOBUG further styling adjustments 2011-10-31 12:31:07 +07:00
Jamie Pratt 3c023b916f MDL-47494 ddmarker: NOBUG some styling of marker text spans 2011-10-31 12:24:37 +07:00
Jamie Pratt 4b549f07a5 MDL-47494 ddmarker: NOBUG centering marker text. 2011-10-29 12:33:49 +07:00
Jamie Pratt 64b3d6e833 MDL-47494 ddmarker: NOBUG further developments 2011-10-29 12:19:21 +07:00
Jamie Pratt b2e57f524b MDL-47494 ddimageortext: NOBUG not using yui3-cssfonts or yui3-csssrest but forgot to remove class names 2011-10-29 12:07:50 +07:00
Jamie Pratt be132b50d5 MDL-47494 ddwtos: NOBUG changing unit tests to expect slightly different html output from renderer 2011-10-25 17:21:54 +07:00
Jamie Pratt 99c6577a94 MDL-47494 ddmarker: NOBUG added some unit tests for shape hit checks and fixed bugs I found. 2011-10-24 11:43:55 +07:00
Jamie Pratt 60c9d277da MDL-47494 ddmarker: NOBUG added class for hit testing in various shapes and unit tests for polygons 2011-10-22 20:29:36 +07:00
Jamie Pratt ead24b25b4 MDL-47494 ddwtos: NOBUG added drop shadow to drag items when they are being dragged 2011-10-19 11:50:46 +07:00
Jamie Pratt 6ce8469ad4 MDL-47494 ddwtos: NOBUG Reverting "new icon for question type"
This reverts commit 5e8d09377744cd83f84bb2c5330c53d463b151f6.
2011-10-17 19:26:52 +07:00
Jamie Pratt ecbdefb4ea MDL-47494 ddimageortext: NOBUG updated README with instructions about how to install 2.1+ version. 2011-10-14 13:29:06 +07:00
Jamie Pratt d39f90b34f MDL-47494 ddimageortext: NOBUG updated README with instructions about how to install 2.1+ version. 2011-10-14 13:27:46 +07:00
Jamie Pratt ed4d9c8f1d MDL-47494 ddwtos: NOBUG removing unused css clause. 2011-10-14 11:34:40 +07:00
Jamie Pratt fe25f5a0d0 MDL-47494 ddwtos: NOBUG tidying up padding calculation code, using same code for drags and drops 2011-10-14 11:32:01 +07:00
Tim Hunt 1d28421946 MDL-47494 ddwtos: Add a bit more padding in the drop-boxes. 2011-10-13 15:39:43 +01:00
Jamie Pratt 33be3558ee MDL-47494 gapselect: NOBUG took out the appended group no in box id. It is not needed place nos are
unique already.
2011-10-13 21:19:30 +07:00
Jamie Pratt 68cd4818c4 MDL-47494 gapselect: Merge branch 'master' of git://github.com/timhunt/moodle-qtype_gapselect 2011-10-13 19:07:43 +07:00
Tim Hunt 8edf95a2bc MDL-47494 ddwtos: Some minor coding style clean-up. 2011-10-12 17:46:38 +01:00
Tim Hunt ac6beb7511 MDL-47494 gapselect: Improve file handling in overall feedback. 2011-10-12 17:41:04 +01:00
Jamie Pratt 25d9b67ea8 MDL-47494 ddwtos: NOBUG fix for ie7 not correctly calculating height of span with sub and sup. 2011-10-11 13:01:11 +07:00
Jamie Pratt 20dc02a4a9 MDL-47494 ddwtos: Revert "NOBUG making hidden inputs visible for easy debugging during deve.."
This reverts commit 39eac49aed4ac985d56cef68f4cc8470443a04ec.
2011-10-08 15:18:26 +07:00
Jamie Pratt 095838849f MDL-47494 ddwtos: NOBUG fixed various problems by making border of dropped drag object invisible
Fixes problem not being able to see whether element has focus and ugly
appearance of double borders when drag element is slightly misplaced. Also
made drop a couple of pixels higher and wider than drag.
2011-10-08 14:55:26 +07:00
Jamie Pratt f631835500 MDL-47494 ddwtos: NOBUG new icon for question type 2011-10-08 13:12:19 +07:00
Jamie Pratt 70297e993d MDL-47494 ddwtos: NOBUG added keyboard support also removed use of not selector.
Not selector does not work in IE7 I think.
2011-10-07 20:26:55 +07:00
Jamie Pratt 8fee473050 MDL-47494 ddwtos: NOBUG combination fix for size of drag objects and ie issues
Drag box size was off by one pixel in some cases. In IE7 padding was not being
set correctly.
2011-10-07 13:34:51 +07:00
Jamie Pratt 54a5be5338 MDL-47494 ddwtos: NOBUG rewrite of js for YUI3 and also associated changes to styles and html 2011-10-07 13:11:23 +07:00
Jamie Pratt 0f5bb17587 MDL-47494 gapselect: NOBUG cannot select id with ':' in YUI3.
Moved calculation of id to a new method so that I can fetch it and pass it to
ddwtos js.
2011-10-06 16:19:21 +07:00
Jamie Pratt c3e7201a40 MDL-47494 ddwtos: NOBUG added a yui3 module skeleton.
Copied a couple of functions that might be needed. Removed script.js - old YUI2
code.
2011-10-06 15:50:24 +07:00
Jamie Pratt 022ab315dd MDL-47494 ddwtos: NOBUG making hidden inputs visible for easy debugging during developement 2011-10-06 14:45:07 +07:00
Jamie Pratt 8aae74a457 MDL-47494 ddmarker: NOBUG made a start to validation of shape coords saved and also at the same time
a start on code to interpret the coords for use in hit detection.
2011-10-05 20:11:54 +07:00
Jamie Pratt ae674bd250 MDL-47494 ddmarker: NOBUG added display of marker text at center of shape. 2011-10-05 20:09:48 +07:00
Jamie Pratt 81fa308cda MDL-47494 ddmarker: NOBUG Removed redundant code and reference to unused module. 2011-10-02 13:21:20 +07:00
Jamie Pratt f23600db44 MDL-47494 ddmarker: NOBUG changed to use change events on input elements to trigger repopulation of
Marker select box.
2011-10-02 13:19:40 +07:00
Jamie Pratt 57e3c7cfc3 MDL-47494 ddmarker: NOBUG drop zones now appearing where they are supposed to. 2011-10-01 21:23:36 +07:00
Jamie Pratt c2682aa64b MDL-47494 ddmarker: NOBUG displaying drop zones. But polygon drop zone is not in the right place! 2011-10-01 18:52:37 +07:00
Jamie Pratt bf442b625a MDL-47494 ddmarker: NOBUG removed drop->label property. 2011-10-01 18:51:35 +07:00
Jamie Pratt 6a69507ba8 MDL-47494 ddmarker: NOBUG changed to using checkbox instead of advcheckbox 2011-10-01 18:50:04 +07:00
Jamie Pratt c1bf167397 MDL-47494 ddimageortext: OU-1578 Also found that filepicker is not hidden correctly when label is '0' and
there is no file.
2011-09-28 19:41:41 +07:00
Jamie Pratt 3597982ab0 MDL-47494 ddimageortext: NOBUG further refactoring during development of ddmarker question type. 2011-09-28 19:38:19 +07:00
Jamie Pratt d2ac6cea2a MDL-47494 ddmarker: NOBUG question editing form is now working correctly. 2011-09-28 19:31:48 +07:00
Jamie Pratt 35d4aea953 MDL-47494 ddimageortext: OU-1597 Renaming question types. 2011-09-28 10:44:03 +07:00
Jamie Pratt 48980d9d60 MDL-47494 ddwtos: OU-1597 Renaming question types. 2011-09-28 10:41:49 +07:00
Jamie Pratt eaabb89113 MDL-47494 ddimageortext: OU-1578 A text drag item with label '0' was not getting saved. 2011-09-28 09:40:48 +07:00
Colin Chambers 22db3cad22 MDL-47494 ddwtos: Set ie7 drag drop players using onDomReady #738 2011-09-27 15:39:59 +01:00
Colin Chambers bcad586f2d MDL-47494 ddwtos: now prevents event on key down using ddwtos qtype #740 2011-09-27 15:39:57 +01:00
Jamie Pratt bc1bcf6e33 MDL-47494 ddimageortext: NOBUG more refactoring 2011-09-27 19:40:41 +07:00
Jamie Pratt eb4b065ade MDL-47494 ddmarker: NOBUG fixing case of ddmarker where it should be upper case. 2011-09-27 17:40:54 +07:00
Jamie Pratt dda954a26c MDL-47494 ddmarker: NOBUG extending functionality from ddimageortext question type. 2011-09-26 14:29:44 +07:00
Jamie Pratt 878ecb4804 MDL-47494 ddmarker: NOBUG first try at an icon for the question type. 2011-09-26 14:29:20 +07:00
Jamie Pratt d2c112fd8c MDL-47494 ddimageortext: NOBUG moved functionality for questions into base classes that can be
extended by other question types.
2011-09-26 14:27:35 +07:00
Jamie Pratt 8e1d95beb1 MDL-47494 ddmarker: NOBUG edited README.txt 2011-09-24 15:57:31 +07:00
Jamie Pratt b3878dbdb8 MDL-47494 ddmarker: NOBUG initial commit of new ddmarker code. Have changed file names and
occurances of 'ddmarker' in code. Also changed relevant tables and table
contents in install.xml and changed file names.
2011-09-24 15:47:37 +07:00
Jamie Pratt e522e6c3e6 MDL-47494 ddimageortext: OU-1549 "Is question text line spacing in drag and drop questions larger than
normal?" Missed one selector in style.css
2011-09-21 09:16:35 +07:00
Jamie Pratt 27c106ad40 MDL-47494 ddimageortext: OU-1549 "Is question text line spacing in drag and drop questions larger than
normal?" Missed one selector in style.css
2011-09-20 13:15:42 +07:00
Jamie Pratt fda1da57e1 MDL-47494 ddimageortext: OU-1549 Double line spacing was accidentally copied over from ddwtos question
type.
2011-09-16 16:18:53 +07:00
Jamie Pratt 649e99a8c9 MDL-47494 ddimageortext: OU-1549 Double line spacing was accidentally copied over from ddwtos question
type.
2011-09-16 16:16:22 +07:00
Jamie Pratt 7c0a4f54df MDL-47494 ddimageortext: NOBUG fixing a 1 pixel jump downwards and to the right seen on dropping drag
items when form editing in IE9 and Chrome.
2011-09-15 16:24:22 +07:00
Jamie Pratt 7d35968d74 MDL-47494 ddimageortext: NOBUG fixing a 1 pixel jump downwards and to the right seen on dropping drag
items when form editing in IE9 and Chrome.
2011-09-15 16:21:47 +07:00
Jamie Pratt ce6d6b175b MDL-47494 ddimageortext: NOBUG optional_param_array is not available in MOODLE 2.1 but must be used in
MOODLE 2.2 on.
2011-09-15 12:11:45 +07:00
Jamie Pratt 59932119c8 MDL-47494 ddimageortext: NOBUG I realised that the yui css I was using didn't actually do a lot. Instead
of including yui css I copied the relevant style to the question style sheet.
2011-09-15 10:33:20 +07:00
Jamie Pratt 0957568d3a MDL-47494 ddimageortext: NOBUG need to use 3.2 yui url to access 3.2 yui which is the latest available in
MOODLE_21_STABLE
2011-09-14 19:46:23 +07:00
Jamie Pratt e58d0a2d58 MDL-47494 ddimageortext: NOBUG removing unnecessary declaration of dependencies. 2011-09-14 19:37:22 +07:00
Jamie Pratt 38955535bd MDL-47494 ddimageortext: NOBUG fixed some whitespace and coding guideline issues found by codechecker. 2011-09-13 20:41:07 +07:00
Jamie Pratt 7e2699d919 MDL-47494 ddimageortext: NOBUG fixed broken unit tests. 2011-09-13 20:27:38 +07:00
Jamie Pratt ea9bec768a MDL-47494 ddimageortext: NOBUG fixing typo in code for course restore. 2011-09-13 20:13:58 +07:00
Jamie Pratt e05bd4be13 MDL-47494 ddimageortext: NOBUG fixing import of text as well as image based drag items. 2011-09-13 20:13:31 +07:00
Jamie Pratt 06f00779cf MDL-47494 ddimageortext: NOBUG fixing code that constrains xy coords to within the background image.
And also fixed links to css to standardize character metrics.
2011-09-13 19:42:37 +07:00
Jamie Pratt 9593b7206e MDL-47494 ddimageortext: NOBUG removing erroneous require of YUI 2 code. 2011-09-12 20:20:41 +07:00
Jamie Pratt 0a65100c42 MDL-47494 ddimageortext: NOBUG changing url to css from yui 3.4 build 2011-09-12 20:16:40 +07:00
Jamie Pratt 73b6f0006b MDL-47494 ddimageortext: NOBUG couple of small bug fixes. 2011-09-12 20:12:55 +07:00
Jamie Pratt 31077627c3 MDL-47494 ddimageortext: NOBUG renaming of files and string replacement to change name of question type. 2011-09-12 18:57:02 +07:00
Jamie Pratt c4d8ad0eda MDL-47494 ddimageortext: NOBUG continued converting functionality of question type so it can be used
with either image or text drag items.
2011-09-12 17:37:41 +07:00
Jamie Pratt 42167fc493 MDL-47494 ddimageortext: NOBUG added select drag item type selector and js code to hide the filepicker. 2011-09-09 18:51:50 +07:00
Jamie Pratt 1a17df84de MDL-47494 ddimageortext: NOBUG removed help button as it does not work on a submit button anyway. 2011-09-09 15:23:57 +07:00
Jamie Pratt 97bb83259f MDL-47494 ddimageortext: NOBUG hardened code that waits for images loaded before going on. 2011-09-09 13:03:11 +07:00
Jamie Pratt a3be6d9da1 MDL-47494 ddimageortext: NOBUG started making this a mixed question type with draggable text as welll as
draggable images.
2011-09-08 19:22:46 +07:00
Jamie Pratt 50000b74d8 MDL-47494 ddimageortext: NOBUG added and amended code to allow a teacher to create questions with
draggable text mixed with images.
2011-09-08 10:35:32 +07:00
Jamie Pratt 43281f4b28 MDL-47494 ddimageortext: OU-1442 <br /> does not work well in a form field label across browsers and
themes.
2011-09-06 17:50:42 +07:00
Jamie Pratt 7643f065d9 MDL-47494 ddimageortext: OU-1442 unordered lists will not work in many themes / browser combinations
inside a form.
2011-09-03 15:21:14 +07:00
Jamie Pratt d22736bfe5 MDL-47494 ddimageortext: NOBUG problems with IE 9 mean I had to remove this code that checks that coords
in the form places drag image on bg image.
2011-09-03 15:01:29 +07:00
Jamie Pratt f15a56df11 MDL-47494 ddimageortext: OU-1441 added a refresh button to reload page and especially preview area. 2011-09-02 21:28:51 +07:00
Jamie Pratt 6ff680a7ad MDL-47494 ddimageortext: OU-1443 Correcting spelling mistake. 2011-09-02 21:04:30 +07:00
Jamie Pratt 1f82adbe9c MDL-47494 ddimageortext: NOBUG using same concept as used in question editing form to reduce delays in
repositioning drags.
2011-09-02 21:00:42 +07:00
Jamie Pratt 8d24c8c6f8 MDL-47494 ddimageortext: NOBUG removing some commented out code. 2011-09-02 20:33:52 +07:00
Jamie Pratt 1025d075c8 MDL-47494 ddimageortext: NOBUG noticed that when dragging and dropping drag item was off by 1 pixel
in both x and y axis.
2011-09-02 20:13:05 +07:00
Jamie Pratt 79594d6018 MDL-47494 ddimageortext: OU-1430 changing from repositioning drags when needed to repositioning every 1/2
second. This solves the problem of being able to detect when html editor has
upset the x y coords on a page.
2011-09-02 20:12:14 +07:00
Jamie Pratt 5445febbc8 MDL-47494 ddimageortext: NOBUG fixing an issue with refactoring. 2011-09-02 18:38:08 +07:00
Jamie Pratt a116cdfa3d MDL-47494 ddimageortext: NOBUG refactored backup and restore code so it can be reused by ddwordtoimage 2011-09-01 18:32:12 +07:00
Jamie Pratt dd6550e23b MDL-47494 ddimageortext: NOBUG should say drag images to image not images to images. 2011-09-01 18:07:32 +07:00
Jamie Pratt 8c2bf1f0d7 MDL-47494 ddimageortext: NOBUG wait a little longer for page to settle down after images loaded. This
seems to be necessary because after the tinymce editor loads xy coords all
change.
2011-09-01 17:19:24 +07:00
Jamie Pratt 5a641fe31e MDL-47494 ddimageortext: NOBUG change to use id to find form in a way that works with IE7. 2011-08-25 18:17:13 +07:00
Jamie Pratt 3637ee1686 MDL-47494 ddimageortext: NOBUG implemented question walkthrough unit tests. 2011-08-25 13:37:38 +07:00
Jamie Pratt dfd89ae5a2 MDL-47494 ddimageortext: NOBUG removed exception as it messes up unit tests where files do not exist and
are not needed.
2011-08-24 19:48:46 +07:00
Jamie Pratt 769fd123e4 MDL-47494 gapselect: Merge branch 'master' of git://github.com/timhunt/moodle-qtype_gapselect 2011-08-24 18:42:01 +07:00
Jamie Pratt c1844f5be8 MDL-47494 ddimageortext: NOBUG updating README file with up to date installation instructions. 2011-08-24 18:30:12 +07:00
Jamie Pratt 87c64021c2 MDL-47494 ddimageortext: NOBUG mainly white space changes to fix code formatting issues highlighted by
code checker.
2011-08-24 18:25:53 +07:00
Jamie Pratt e074cd91ea MDL-47494 ddimageortext: NOBUG "Typo in DDWtoS foreign key definition #874" applying a small fix for
a typo from a fix to the ddwtos code that this code is based on.
2011-08-24 17:52:53 +07:00
Jamie Pratt bfe791348d MDL-47494 ddimageortext: NOBUG made changes to Tim's ddwtos unit tests so that they can be used with
this question type.
2011-08-24 17:48:28 +07:00
Jamie Pratt 104059b342 MDL-47494 ddimageortext: NOBUG little bit of rejigging of question and response summarising. 2011-08-23 13:19:35 +07:00
Jamie Pratt 5fd925aaa9 MDL-47494 ddimageortext: NOBUG added key handlers for arrow keys, space key and escape key to select
drags for drop zones.
2011-08-22 22:23:35 +07:00
Jamie Pratt dbf87f16be MDL-47494 ddimageortext: NOBUG a few comments for js classes. 2011-08-22 14:51:18 +07:00
Jamie Pratt 8bfaad3b5b MDL-47494 ddimageortext: NOBUG removing 'correct answer is' textual feedback to student as it is
unintelligible and improving summarising of response. Fixed random guess
score in statistics that was showing zero. Fixed statistics for question
parts.
2011-08-21 20:57:29 +07:00
Jamie Pratt da102a7fe4 MDL-47494 ddimageortext: NOBUG moved student attempt code into same module as base class in order to
reduce the ammount of files that must be loaded. Teacher editing form code is
still separate.
2011-08-21 17:16:13 +07:00
Jamie Pratt 59a4937f0a MDL-47494 ddimageortext: NOBUG fixed typo that was causing intermittent problems with poll_image_loading. 2011-08-21 16:18:17 +07:00
Jamie Pratt 26295e67a9 MDL-47494 ddimageortext: NOBUG converted js from static code to modular code. As well as making code
clearer this also made it so we use different instances of the same
code for the several questions on the same page.
2011-08-21 16:17:42 +07:00
Jamie Pratt 9b2ccabae8 MDL-47494 ddimageortext: NOBUG added feedback for student when they have not dragged an image to each
drop zone.
2011-08-20 20:52:38 +07:00
Jamie Pratt f65546366d MDL-47494 ddimageortext: NOBUG fixed shuffle choices value not being imported. 2011-08-20 20:36:05 +07:00
Jamie Pratt cc5a1217e6 MDL-47494 ddimageortext: NOBUG implemented import and export to Moodle XML format. 2011-08-20 18:13:20 +07:00
Jamie Pratt de1291955f MDL-47494 ddimageortext: NOBUG implementing question back up and restore. 2011-08-20 12:55:47 +07:00
Jamie Pratt f8db311062 MDL-47494 ddimageortext: NOBUG implemented moving and deleting files associated with question when
question is moved or deleted.
2011-08-20 11:16:36 +07:00
Jamie Pratt 3c2b258d19 MDL-47494 ddimageortext: NOBUG changed to using dragimage as filearea for dragimages and using drag id as
item id instead of using file area dragimage_[a-j] etc.
2011-08-20 10:36:50 +07:00
Jamie Pratt 7cac27f4e1 MDL-47494 ddimageortext: NOBUG issue with padding updating when uploading a new image in the same group. 2011-08-19 19:31:44 +07:00
Jamie Pratt 372aad7a96 MDL-47494 ddimageortext: NOBUG needed to switch to using drag id as item id for drag image fileareas. 2011-08-19 18:18:18 +07:00
Jamie Pratt 61c6aed4c8 MDL-47494 ddimageortext: NOBUG previous commit which changed the way padding update worked broke padding
setting in preview mode. Fixed now.
2011-08-19 15:27:13 +07:00
Jamie Pratt 950ce13961 MDL-47494 ddimageortext: NOBUG fixed (non)updating of padding size when group is changed. 2011-08-19 15:07:20 +07:00
Jamie Pratt 14178839d9 MDL-47494 ddimageortext: NOBUG fixed bug seen in IE7 with poll_image_load and with padding sizes. 2011-08-19 14:41:45 +07:00
Jamie Pratt 23f1e8f539 MDL-47494 ddimageortext: NOBUG renamed module.js to dd.js to make it easier to find in list of js files
in js debugger, makes sense to have a more descriptive name I think.
2011-08-19 13:05:34 +07:00
Jamie Pratt 1f6d7f5f26 MDL-47494 ddimageortext: NOBUG further hardening of JS. Fixed bugs in poll_for_image_load and fixed error
in IE7 about undefined parameters.
2011-08-19 12:59:30 +07:00
Jamie Pratt 09a9329a5a MDL-47494 ddimageortext: NOBUG removing some of the redundant node clones. 2011-08-18 22:28:15 +07:00
Jamie Pratt a8be2699a9 MDL-47494 ddimageortext: NOBUG more work to make JS more reliable across browsers. 2011-08-18 18:44:40 +07:00
Jamie Pratt dbe2635db6 MDL-47494 ddimageortext: NOBUG using polling of complete js property to test for image loading, seems to
be more reliable.
2011-08-18 16:46:45 +07:00
Jamie Pratt 152045b331 MDL-47494 ddimageortext: NOBUG trying to get padding to work correctly in IE7. 2011-08-18 16:31:46 +07:00
Jamie Pratt aa854a768a MDL-47494 ddimageortext: NOBUG some polishing of code. 2011-08-17 10:08:51 +07:00
Jamie Pratt a135d087d6 MDL-47494 ddimageortext: NOBUG further refactoring and changes to make the code work in IE too. 2011-08-16 18:47:27 +07:00
Jamie Pratt f20ac87f23 MDL-47494 ddimageortext: NOBUG refactored js and added disabling of options in select boxes dependent of
whether the image is 'infinite' or not and whether it is selected elsewhere.
2011-08-15 21:55:24 +07:00
Jamie Pratt 8f1c40332f MDL-47494 ddimageortext: NOBUG javascript almost done but needs refactoring hopefully to simplify it. 2011-08-14 15:55:17 +07:00
Jamie Pratt 9e5f72e116 MDL-47494 ddimageortext: NOBUG adding output of question text. 2011-08-11 18:44:24 +07:00
Jamie Pratt 1d5ba96423 MDL-47494 ddimageortext: NOBUG ironed out a few bugs with drag item choice nos. 2011-08-11 18:22:27 +07:00
Jamie Pratt 9ba6e055cc MDL-47494 ddimageortext: NOBUG file access function that I forgot to add and commit earlier. 2011-08-11 17:40:02 +07:00
Jamie Pratt 770e940684 MDL-47494 ddimageortext: NOBUG make the cursor not change to the move cursor over drag objects when
in readonly mode.
2011-08-11 17:39:11 +07:00
Jamie Pratt 5c951453e0 MDL-47494 ddimageortext: NOBUG fixed problems with hint options 'show number correct' and 'clear wrong
answers'.
2011-08-11 16:13:30 +07:00
Jamie Pratt b79b7fb6d5 MDL-47494 ddimageortext: NOBUG small fix to ignore invalid values in hidden fields. 2011-08-11 14:56:38 +07:00
Jamie Pratt b59900489a MDL-47494 ddimageortext: NOBUG js for form and question pretty much finished. Some debugging still
necessary.
2011-08-11 14:17:43 +07:00
Jamie Pratt 3fbd84d956 MDL-47494 ddimageortext: NOBUG new icon for question type 2011-08-08 15:38:07 +07:00
Jamie Pratt 8262ace5d0 MDL-47494 ddimageortext: NOBUG added server side resizing of oversize images. 2011-08-02 09:18:32 +07:00
Jamie Pratt a61b274b69 MDL-47494 ddimageortext: NOBUG passing values of max heights and widths into js from PHP constants. 2011-08-01 21:12:45 +07:00
Jamie Pratt 649e58e904 MDL-47494 ddimageortext: NOBUG implemented resizing of images,validity checks on form data, different
sizes for margins so all items in a group take up the same screen real estate.
2011-08-01 20:42:18 +07:00
Jamie Pratt 0fe992a97d MDL-47494 ddimageortext: NOBUG made a lot of progress with javascript necessary for question editing form
and question attempt UI.
2011-07-22 16:25:14 +07:00
Tim Hunt fd670f534a MDL-47494 ddwtos: Also, fix the ou-qtype unit test failures. #940 2011-07-05 18:03:10 +01:00
Tim Hunt 0023a1ec77 MDL-47494 ddwtos: Fix ddwtos and gapselect unit tests #67 2011-07-05 17:09:02 +01:00
Tim Hunt f1f181f4b0 MDL-47494 gapselect: Latest gapselect qtype fixes from Jamie. #23 2011-07-05 16:45:23 +01:00
Tim Hunt 4ce6bba9a0 MDL-47494 gapselect: Fix ddwtos and gapselect unit tests #67 2011-07-05 16:36:39 +01:00
Jamie Pratt dd9ae7a0d7 MDL-47494 gapselect: NOBUG noticed use of deprecated database function. 2011-07-05 16:31:59 +01:00
Colin Chambers 287273c60c MDL-47494 ddwtos: ddwtos fix problems in Firefox. #383 2011-07-05 16:19:15 +01:00
Colin Chambers 5a28b55573 MDL-47494 ddwtos: used longer timeout for xy resize function on ie7 #738 2011-07-05 16:19:05 +01:00
Jamie Pratt e79dad73e1 MDL-47494 ddimageortext: NOBUG completed most of the basics of the question editing form and saving of
data in database.
2011-06-30 16:43:33 +07:00
Tim Hunt 8e4e31fb3d MDL-47494 ddwtos: Typo in DDWtoS foreign key definition #874 2011-06-28 11:06:37 +01:00
Jamie Pratt a821983e4e MDL-47494 gapselect: NOBUG noticed use of deprecated database function. 2011-06-27 15:12:57 +07:00
Jamie Pratt 943b33da7e MDL-47494 ddimageortext: NOBUG changing file names to qtype name 2011-06-23 15:06:56 +07:00
Jamie Pratt b0a8a7ebbd MDL-47494 ddimageortext: NOBUG adding a TODO.txt to track tasks. 2011-06-23 14:58:20 +07:00
Jamie Pratt 1d41020572 MDL-47494 ddimageortext: NOBUG db structure for this question type. 2011-06-23 14:57:35 +07:00
Jamie Pratt a709851155 MDL-47494 ddimageortext: NOBUG search and replace for ddwtos, replaced with ddimagetoimage 2011-06-21 19:45:14 +07:00
Jamie Pratt 339481f106 MDL-47494 ddimageortext: NOBUG new README.txt for new question type ddimagetoimage - Darg and Drop Image
to Image. I forked the existing ddwtos question type which has a lot in common
with this new question type to give me a quick start setting up the needed
infrastructure for a Moodle question type plug in.
2011-06-21 19:37:24 +07:00
Tim Hunt a2d6ea7a41 MDL-47494 gapselect: Implement the new variants handling. 2011-05-26 22:10:13 +01:00
Tim Hunt 1b7e0abcb8 MDL-47494 ddwtos: Implement the new variants handling. 2011-05-26 22:09:46 +01:00
Tim Hunt a8448b3f79 MDL-47494 ddimageortext: Implement the new variants handling. 2011-05-26 22:09:46 +01:00
Tim Hunt 0d881bcff9 MDL-47494 ddwtos: Updated the readme file to add install instructions. 2011-05-16 05:01:14 -07:00
Tim Hunt 47b5deb6ae MDL-47494 ddimageortext: Updated the readme file to add install instructions. 2011-05-16 05:01:14 -07:00
Tim Hunt 083cf9f317 MDL-47494 gapselect: Added install instructions to the README.txt file. 2011-05-16 04:58:45 -07:00
Tim Hunt 8654d04080 MDL-47494 ddwtos: Add a readme file. 2011-05-15 23:07:56 +01:00
Tim Hunt 3ea20c8f7f MDL-47494 ddimageortext: Add a readme file. 2011-05-15 23:07:56 +01:00
Tim Hunt 1421af37ad MDL-47494 gapselect: Add a readme. 2011-05-15 22:48:45 +01:00
Tim Hunt 9fe4dd964b MDL-47494 ddwtos: Fix some more codechecker issues. 2011-05-14 22:53:25 +01:00
Tim Hunt fa4a86a3e5 MDL-47494 ddimageortext: Fix some more codechecker issues. 2011-05-14 22:53:25 +01:00
Tim Hunt 17fdaa42f6 MDL-47494 gapselect: Fix some more codechecker issues. 2011-05-14 22:53:25 +01:00
Tim Hunt 13d7b21968 MDL-47494 ddwtos: MDL-27408 update all question and quiz plugin version.php files. 2011-05-12 23:18:47 +01:00
Tim Hunt bc4f8bcb79 MDL-47494 ddimageortext: MDL-27408 update all question and quiz plugin version.php files. 2011-05-12 23:18:47 +01:00
Tim Hunt 895a2d9538 MDL-47494 gapselect: MDL-27408 update all question and quiz plugin version.php files. 2011-05-12 23:18:47 +01:00
Wale Olujide 4aeb04bba4 MDL-47494 gapselect: Fix for minor css issue for wip#372 2011-05-10 11:45:08 +01:00
Tim Hunt 77812de332 MDL-47494 ddwtos: Finished backup and restore of attempt data. Yay 2011-05-05 21:26:25 +01:00
Tim Hunt f32281ebf6 MDL-47494 ddimageortext: Finished backup and restore of attempt data. Yay 2011-05-05 21:26:25 +01:00
Tim Hunt 7b4805d6e2 MDL-47494 gapselect: Finished backup and restore of attempt data. Yay 2011-05-05 21:26:25 +01:00
Tim Hunt dfccb172a4 MDL-47494 ddwtos: numerical qtype: assorted changes
1. database upgrade to merge instructions into the questiontext field,
and remove the UNITDISPLAY option.

2. Changes to the validation in deferred feedback mode, so students
are warned about incomplete answers.

3. Using this to wark students if they enter an answer that is not
recognised as a number.
2011-04-28 20:06:47 +01:00
Tim Hunt 332641ac72 MDL-47494 ddimageortext: numerical qtype: assorted changes
1. database upgrade to merge instructions into the questiontext field,
and remove the UNITDISPLAY option.

2. Changes to the validation in deferred feedback mode, so students
are warned about incomplete answers.

3. Using this to wark students if they enter an answer that is not
recognised as a number.
2011-04-28 20:06:47 +01:00
Tim Hunt 6229791a29 MDL-47494 ddwtos: Better way of handling the creation of test questions for different question types. 2011-04-28 20:06:37 +01:00
Tim Hunt 46b0a9735c MDL-47494 ddimageortext: Better way of handling the creation of test questions for different question types. 2011-04-28 20:06:37 +01:00
Tim Hunt 060e029448 MDL-47494 gapselect: Fix codechecker issues in qtype_gapselect. 2011-04-08 05:05:22 +01:00
Tim Hunt 29929b5b2c MDL-47494 ddwtos: Fix codechecker problems in match, description and ddwtos qtypes. 2011-04-05 17:54:39 +01:00
Tim Hunt 944829e930 MDL-47494 ddimageortext: Fix codechecker problems in match, description and ddwtos qtypes. 2011-04-05 17:54:39 +01:00
Tim Hunt 046d8165f8 MDL-47494 gapselect: Add lots of missing public/protected/private. 2011-03-23 16:22:25 +00:00
Tim Hunt 092c416ebc MDL-47494 ddwtos: Add lots of missing public/protected/private. 2011-03-23 16:22:25 +00:00
Tim Hunt adebc4e51d MDL-47494 ddimageortext: Add lots of missing public/protected/private. 2011-03-23 16:22:25 +00:00
Tim Hunt aa6a0ff0f8 MDL-47494 gapselect: Question import, support for files in hints.
Also fix some minor bugs and unit tests.
2011-03-23 14:27:22 +00:00
Tim Hunt 0234ddc87f MDL-47494 ddwtos: Question import, support for files in hints.
Also fix some minor bugs and unit tests.
2011-03-23 14:27:22 +00:00
Tim Hunt c9826b0a30 MDL-47494 ddimageortext: Question import, support for files in hints.
Also fix some minor bugs and unit tests.
2011-03-23 14:27:22 +00:00
Tim Hunt 75cd9829a3 MDL-47494 gapselect: Update quiz and questions backup and restore.
This does not include user data yet, and it needs more testing.
2011-03-02 17:42:51 +00:00
Tim Hunt a74bf71919 MDL-47494 ddwtos: Update quiz and questions backup and restore.
This does not include user data yet, and it needs more testing.
2011-03-02 17:42:51 +00:00
Tim Hunt 01bac81a41 MDL-47494 ddimageortext: Update quiz and questions backup and restore.
This does not include user data yet, and it needs more testing.
2011-03-02 17:42:51 +00:00
Tim Hunt 4ffe7ac4d6 MDL-47494 gapselect: Review and fix the format parameter to all calls to format_text. 2011-02-24 20:18:16 +00:00
Tim Hunt 1de3265e50 MDL-47494 ddwtos: Split question_definition::init_first_step into start_attempt and apply_attempt_state. 2011-02-24 19:12:42 +00:00
Tim Hunt 81f5dc53f1 MDL-47494 ddimageortext: Split question_definition::init_first_step into start_attempt and apply_attempt_state. 2011-02-24 19:12:42 +00:00
Tim Hunt 6ec101ac94 MDL-47494 gapselect: Split question_definition::init_first_step into start_attempt and apply_attempt_state. 2011-02-24 19:12:42 +00:00
Tim Hunt 468dfe7d77 MDL-47494 ddwtos: Massively reduce the number of references to quiz in the question code.
This mostly involves moving lang strings around, but I don't have time to do an AMOS script now.
2011-02-23 18:53:50 +00:00
Tim Hunt 453aded6c2 MDL-47494 ddimageortext: Massively reduce the number of references to quiz in the question code.
This mostly involves moving lang strings around, but I don't have time to do an AMOS script now.
2011-02-23 18:53:50 +00:00
Tim Hunt 462c5539b9 MDL-47494 gapselect: Eliminate integer and boolean in PHPdoc comments. should be int and bool. 2011-02-23 16:25:25 +00:00
Tim Hunt 9d55f4a5ce MDL-47494 ddwtos: Add missing defined('MOODLE_INTERNAL') || die(); 2011-02-23 16:00:20 +00:00
Tim Hunt 425362802e MDL-47494 ddimageortext: Add missing defined('MOODLE_INTERNAL') || die(); 2011-02-23 16:00:20 +00:00
Tim Hunt b28ad86a28 MDL-47494 gapselect: Add missing defined('MOODLE_INTERNAL') || die(); 2011-02-23 16:00:20 +00:00
Tim Hunt 3a4ac328c5 MDL-47494 ddwtos: Fix @package names and PHPdoc layout. 2011-02-23 13:38:16 +00:00
Tim Hunt 5b4602d267 MDL-47494 ddimageortext: Fix @package names and PHPdoc layout. 2011-02-23 13:38:16 +00:00
Tim Hunt 9df0480d48 MDL-47494 gapselect: Fix @package names and PHPdoc layout. 2011-02-23 13:38:16 +00:00
Tim Hunt cb30b30f97 MDL-47494 ddwtos: Add @package and GPL boiler-plate to files in /question. 2011-02-22 19:59:12 +00:00
Tim Hunt c205413ad9 MDL-47494 ddimageortext: Add @package and GPL boiler-plate to files in /question. 2011-02-22 19:59:12 +00:00
Tim Hunt f7dd2d4447 MDL-47494 gapselect: Add @package and GPL boiler-plate to files in /question. 2011-02-22 19:59:12 +00:00
Tim Hunt 60cbb9edb2 MDL-47494 ddwtos: Fix new stdClass -> stdClass(), and trailing whitespace. 2011-02-21 18:10:19 +00:00
Tim Hunt 3919f482a7 MDL-47494 ddimageortext: Fix new stdClass -> stdClass(), and trailing whitespace. 2011-02-21 18:10:19 +00:00
Tim Hunt 5fa78cb4a2 MDL-47494 gapselect: Fix new stdClass -> stdClass(), and trailing whitespace. 2011-02-21 18:10:19 +00:00
Tim Hunt 03269a959e MDL-47494 gapselect: Quiz editing now works, as does the random question type.
However, all this needs more testing.

Also, a bit of a purge of training whitespace and global .
2011-02-10 20:50:18 +00:00
Tim Hunt f7ecca1ccd MDL-47494 ddwtos: Images in questions now work in quiz attempts. 2011-02-09 20:33:51 +00:00
Tim Hunt 7368987a5f MDL-47494 ddimageortext: Images in questions now work in quiz attempts. 2011-02-09 20:33:51 +00:00
Tim Hunt 7c98182ebd MDL-47494 gapselect: Images in questions now work in quiz attempts. 2011-02-09 20:33:51 +00:00
Tim Hunt 5ac7176c7b MDL-47494 ddwtos: Finish making ddwtos work, mostly. Also various other JS fixes.
This JavaScript really needs to be rewritten to use YUI3.
2011-02-02 19:03:38 +00:00
Tim Hunt 303bf01902 MDL-47494 ddimageortext: Finish making ddwtos work, mostly. Also various other JS fixes.
This JavaScript really needs to be rewritten to use YUI3.
2011-02-02 19:03:38 +00:00
Tim Hunt e45d37bbf3 MDL-47494 gapselect: Finish making ddwtos work, mostly. Also various other JS fixes.
This JavaScript really needs to be rewritten to use YUI3.
2011-02-02 19:03:38 +00:00
Tim Hunt 6c5435420f MDL-47494 ddwtos: ddwtos and gapselect qtypes now very nearly work.
Todo rendering questions with files, and ddwtos javascript.
2011-02-01 23:44:40 +00:00
Tim Hunt 428b36687d MDL-47494 ddimageortext: ddwtos and gapselect qtypes now very nearly work.
Todo rendering questions with files, and ddwtos javascript.
2011-02-01 23:44:40 +00:00
Tim Hunt 721ef2ea31 MDL-47494 gapselect: ddwtos and gapselect qtypes now very nearly work.
Todo rendering questions with files, and ddwtos javascript.
2011-02-01 23:44:40 +00:00
Tim Hunt 5f5ee7d76a MDL-47494 ddwtos: Now all the unit tests for the the ddwtos and gapselect qtypes pass. 2011-02-01 11:40:29 +00:00
Tim Hunt 08c1d356eb MDL-47494 ddimageortext: Now all the unit tests for the the ddwtos and gapselect qtypes pass. 2011-02-01 11:40:29 +00:00
Tim Hunt 7540fcdcc2 MDL-47494 gapselect: Now all the unit tests for the the ddwtos and gapselect qtypes pass. 2011-02-01 11:40:29 +00:00
Tim Hunt e9cd990297 MDL-47494 ddwtos: More work on the ddwtos and gapselect qtypes.
Now there are no longer fatal errors that break other qtypes, but these two qtypes still not work completely. More to come.
2011-01-31 18:07:38 +00:00
Tim Hunt 77e268e1e9 MDL-47494 ddimageortext: More work on the ddwtos and gapselect qtypes.
Now there are no longer fatal errors that break other qtypes, but these two qtypes still not work completely. More to come.
2011-01-31 18:07:38 +00:00
Tim Hunt 43df6cac07 MDL-47494 gapselect: More work on the ddwtos and gapselect qtypes.
Now there are no longer fatal errors that break other qtypes, but these two qtypes still not work completely. More to come.
2011-01-31 18:07:38 +00:00
Tim Hunt 61381e5066 MDL-47494 ddwtos: work-in-progress converting the ddwtos and gapselect qtypes. 2011-01-28 19:07:33 +00:00
Tim Hunt a2bb148ae3 MDL-47494 ddimageortext: work-in-progress converting the ddwtos and gapselect qtypes. 2011-01-28 19:07:33 +00:00
Tim Hunt 0d24b17a89 MDL-47494 gapselect: work-in-progress converting the ddwtos and gapselect qtypes. 2011-01-28 19:07:33 +00:00
9075 changed files with 733162 additions and 424093 deletions
-3
View File
@@ -1,3 +0,0 @@
--errors=errors,duplicate-properties
--warnings=known-properties,display-property-grouping,empty-rules,important
--exclude-list=vendor/,lib/editor/tinymce/,lib/yuilib/,theme/bootstrapbase/style/
+78
View File
@@ -0,0 +1,78 @@
# Generated by "grunt ignorefiles"
*/**/yui/src/*/meta/
*/**/build/
node_modules/
vendor/
admin/tool/usertours/amd/src/tour.js
admin/tool/usertours/amd/src/popper.js
auth/cas/CAS/
auth/fc/fcFPP.php
enrol/lti/ims-blti/
filter/algebra/AlgParser.pm
filter/tex/mimetex.*
lib/editor/atto/yui/src/rangy/js/*.*
lib/editor/tinymce/plugins/pdw/tinymce/
lib/editor/tinymce/plugins/spellchecker/rpc.php
lib/editor/tinymce/tiny_mce/
lib/adodb/
lib/bennu/
lib/evalmath/
lib/lessphp/
lib/phpexcel/
lib/google/
lib/htmlpurifier/
lib/jabber/
lib/minify/matthiasmullie-minify/
lib/minify/matthiasmullie-pathconverter/
lib/pear/Auth/RADIUS.php
lib/pear/Crypt/CHAP.php
lib/pear/HTML/Common.php
lib/pear/HTML/QuickForm.php
lib/pear/HTML/QuickForm/
lib/pear/PEAR.php
lib/phpmailer/
lib/simplepie/
lib/tcpdf/
lib/typo3/
lib/yuilib/
lib/yuilib/gallery/
lib/jquery/
lib/html2text/
lib/markdown/
lib/recaptchalib.php
lib/xhprof/
lib/xmlize.php
lib/horde/
lib/requirejs/
lib/amd/src/loglevel.js
lib/mustache/
lib/amd/src/mustache.js
lib/graphlib.php
lib/php-css-parser/
lib/rtlcss/
lib/scssphp/
lib/spout/
lib/amd/src/chartjs-lazy.js
lib/maxmind/GeoIp2/
lib/maxmind/MaxMind/
lib/ltiprovider/
media/player/videojs/amd/src/
media/player/videojs/videojs/
mod/assign/feedback/editpdf/fpdi/
repository/s3/S3.php
theme/boost/scss/bootstrap/
theme/boost/amd/src/alert.js
theme/boost/amd/src/button.js
theme/boost/amd/src/carousel.js
theme/boost/amd/src/collapse.js
theme/boost/amd/src/dropdown.js
theme/boost/amd/src/modal.js
theme/boost/amd/src/popover.js
theme/boost/amd/src/scrollspy.js
theme/boost/amd/src/tab.js
theme/boost/amd/src/tooltip.js
theme/boost/amd/src/util.js
theme/boost/amd/src/tether.js
theme/bootstrapbase/less/bootstrap/
theme/bootstrapbase/javascript/html5shiv.js
theme/bootstrapbase/amd/src/bootstrap.js
+180
View File
@@ -0,0 +1,180 @@
{
'env': {
'browser': true,
'amd': true
},
'globals': {
'M': true,
'Y': true
},
'rules': {
// See http://eslint.org/docs/rules/ for all rules and explanations of all
// rules.
// === Possible Errors ===
'comma-dangle': 'off',
'no-cond-assign': 'error',
'no-console': 'error',
'no-constant-condition': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-dupe-args': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-empty': 'warn',
'no-empty-character-class': 'error',
'no-ex-assign': 'error',
'no-extra-boolean-cast': 'error',
'no-extra-parens': 'off',
'no-extra-semi': 'error',
'no-func-assign': 'error',
'no-inner-declarations': 'error',
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-obj-calls': 'error',
'no-prototype-builtins': 'off',
'no-regex-spaces': 'error',
'no-sparse-arrays': 'error',
'no-unexpected-multiline': 'error',
'no-unreachable': 'warn',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
'use-isnan': 'error',
'valid-jsdoc': ['warn', { 'requireReturn': false, 'requireParamDescription': false, 'requireReturnDescription': false }],
'valid-typeof': 'error',
// === Best Practices ===
// (these mostly match our jshint config)
'array-callback-return': 'warn',
'block-scoped-var': 'warn',
'complexity': 'warn',
'consistent-return': 'warn',
'curly': 'error',
'dot-notation': 'warn',
'no-alert': 'warn',
'no-caller': 'error',
'no-case-declarations': 'error',
'no-div-regex': 'error',
'no-empty-pattern': 'error',
'no-empty-function': 'warn',
'no-eq-null': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'warn',
'no-fallthrough': 'error',
'no-floating-decimal': 'warn',
'no-global-assign': 'warn',
// Enabled by grunt for AMD modules: 'no-implicit-globals': 'error',
'no-implied-eval': 'error',
'no-invalid-this': 'error',
'no-iterator': 'error',
'no-labels': 'error',
'no-loop-func': 'error',
'no-multi-spaces': 'warn',
'no-multi-str': 'error',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-octal': 'error',
'no-octal-escape': 'error',
'no-proto': 'error',
'no-redeclare': 'warn',
'no-return-assign': 'error',
'no-script-url': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-sequences': 'warn',
'no-throw-literal': 'warn',
'no-unmodified-loop-condition': 'error',
'no-unused-expressions': 'error',
'no-unused-labels': 'error',
'no-useless-call': 'warn',
'no-useless-escape': 'warn',
'no-with': 'error',
'wrap-iife': ['error', 'any'],
// === Variables ===
'no-delete-var': 'error',
'no-undef': 'error',
'no-undef-init': 'error',
'no-unused-vars': ['error', { 'caughtErrors': 'none' }],
// === Stylistic Issues ===
'array-bracket-spacing': 'warn',
'block-spacing': 'warn',
'brace-style': ['warn', '1tbs'],
'camelcase': 'warn',
'comma-spacing': ['warn', { 'before': false, 'after': true }],
'comma-style': ['warn', 'last'],
'computed-property-spacing': 'error',
'consistent-this': 'off',
'eol-last': 'off',
'func-call-spacing': ['warn', 'never'],
'func-names': 'off',
'func-style': 'off',
// indent currently not doing well with our wrapping style, so disabled.
'indent': ['off', 4, { 'SwitchCase': 1 }],
'key-spacing': ['warn', { 'beforeColon': false, 'afterColon': true, 'mode': minimum }],
'keyword-spacing': 'warn',
'linebreak-style': ['error', 'unix'],
'lines-around-comment': 'off',
'max-len': ['error', 132],
'max-lines': 'off',
'max-depth': 'warn',
'max-nested-callbacks': ['warn', 5],
'max-params': 'off',
'max-statements': 'off',
'max-statements-per-line': ['warn', { max: 2 }],
'new-cap': ['warn', { 'properties': false }],
'new-parens': 'warn',
'newline-after-var': 'off',
'newline-before-return': 'off',
'newline-per-chained-call': 'off',
'no-array-constructor': 'off',
'no-bitwise': 'error',
'no-continue': 'off',
'no-inline-comments': 'off',
'no-lonely-if': 'off',
'no-mixed-operators': 'off',
'no-mixed-spaces-and-tabs': 'error',
'no-multiple-empty-lines': 'warn',
'no-negated-condition': 'off',
'no-nested-ternary': 'warn',
'no-new-object': 'off',
'no-plusplus': 'off',
'no-tabs': 'error',
'no-ternary': 'off',
'no-trailing-spaces': 'error',
'no-underscore-dangle': 'off',
'no-unneeded-ternary': 'off',
'no-whitespace-before-property': 'warn',
'object-curly-newline': 'off',
'object-curly-spacing': 'warn',
'object-property-newline': 'off',
'one-var': 'off',
'one-var-declaration-per-line': ['warn', 'initializations'],
'operator-assignment': 'off',
'operator-linebreak': 'off',
'padded-blocks': 'off',
'quote-props': ['warn', 'as-needed', {'unnecessary': false, 'keywords': true, 'numbers': true}],
'quotes': 'off',
'require-jsdoc': 'warn',
'semi': 'error',
'semi-spacing': ['warn', {'before': false, 'after': true}],
'sort-vars': 'off',
'space-before-blocks': 'warn',
'space-before-function-paren': ['warn', 'never'],
'space-in-parens': 'warn',
'space-infix-ops': 'warn',
'space-unary-ops': 'warn',
'spaced-comment': 'warn',
'unicode-bom': 'error',
'wrap-regex': 'off',
// === Deprecations ===
"no-restricted-properties": ['warn', {
'object': 'M',
'property': 'str',
'message': 'Use AMD module "core/str" or M.util.get_string()'
}],
}
}
+5 -1
View File
@@ -1,3 +1,6 @@
// NOTE: We use eslint now. This file is used only by shifter. We keep the configuration
// here because shifter uses jshint after modules have been concating. Eslint can't
// currently do this.
{
"asi": false,
"bitwise": true,
@@ -35,7 +38,8 @@
"plusplus": false,
"predef": [
"M",
"define"
"define",
"require"
],
"proto": false,
"regexdash": false,
+79
View File
@@ -0,0 +1,79 @@
# Generated by "grunt ignorefiles"
theme/bootstrapbase/style/
theme/clean/style/custom.css
theme/more/style/custom.css
node_modules/
vendor/
admin/tool/usertours/amd/src/tour.js
admin/tool/usertours/amd/src/popper.js
auth/cas/CAS/
auth/fc/fcFPP.php
enrol/lti/ims-blti/
filter/algebra/AlgParser.pm
filter/tex/mimetex.*
lib/editor/atto/yui/src/rangy/js/*.*
lib/editor/tinymce/plugins/pdw/tinymce/
lib/editor/tinymce/plugins/spellchecker/rpc.php
lib/editor/tinymce/tiny_mce/
lib/adodb/
lib/bennu/
lib/evalmath/
lib/lessphp/
lib/phpexcel/
lib/google/
lib/htmlpurifier/
lib/jabber/
lib/minify/matthiasmullie-minify/
lib/minify/matthiasmullie-pathconverter/
lib/pear/Auth/RADIUS.php
lib/pear/Crypt/CHAP.php
lib/pear/HTML/Common.php
lib/pear/HTML/QuickForm.php
lib/pear/HTML/QuickForm/
lib/pear/PEAR.php
lib/phpmailer/
lib/simplepie/
lib/tcpdf/
lib/typo3/
lib/yuilib/
lib/yuilib/gallery/
lib/jquery/
lib/html2text/
lib/markdown/
lib/recaptchalib.php
lib/xhprof/
lib/xmlize.php
lib/horde/
lib/requirejs/
lib/amd/src/loglevel.js
lib/mustache/
lib/amd/src/mustache.js
lib/graphlib.php
lib/php-css-parser/
lib/rtlcss/
lib/scssphp/
lib/spout/
lib/amd/src/chartjs-lazy.js
lib/maxmind/GeoIp2/
lib/maxmind/MaxMind/
lib/ltiprovider/
media/player/videojs/amd/src/
media/player/videojs/videojs/
mod/assign/feedback/editpdf/fpdi/
repository/s3/S3.php
theme/boost/scss/bootstrap/
theme/boost/amd/src/alert.js
theme/boost/amd/src/button.js
theme/boost/amd/src/carousel.js
theme/boost/amd/src/collapse.js
theme/boost/amd/src/dropdown.js
theme/boost/amd/src/modal.js
theme/boost/amd/src/popover.js
theme/boost/amd/src/scrollspy.js
theme/boost/amd/src/tab.js
theme/boost/amd/src/tooltip.js
theme/boost/amd/src/util.js
theme/boost/amd/src/tether.js
theme/bootstrapbase/less/bootstrap/
theme/bootstrapbase/javascript/html5shiv.js
theme/bootstrapbase/amd/src/bootstrap.js
+94
View File
@@ -0,0 +1,94 @@
{
"rules": {
"at-rule-empty-line-before": [ "always",
{"except": [ "blockless-group"], ignore: ["after-comment", "all-nested"]}
],
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always-single-line",
"at-rule-no-unknown": null, # Enabled for non-scss in grunt.
"at-rule-semicolon-newline-after": "always",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always-multi-line",
"block-closing-brace-space-before": "always-single-line",
"block-no-empty": true,
"block-no-single-line": true,
"block-opening-brace-newline-after": "always-multi-line",
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",
"color-hex-case": ["lower", { "severity": "warning" }],
"color-hex-length": ["short", { "severity": "warning" }],
"color-no-invalid-hex": true,
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-ignored-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-space-before": "never",
"declaration-block-single-line-max-declarations": 1,
"declaration-block-trailing-semicolon": "always",
"declaration-colon-newline-after": "always-multi-line",
"declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never",
"declaration-no-important": true,
"function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "always-multi-line",
"function-comma-space-after": "always-single-line",
"function-comma-space-before": "never",
"function-linear-gradient-no-nonstandard-direction": true,
"function-max-empty-lines": 0,
"function-name-case": "lower",
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never-single-line",
"function-url-data-uris": never,
"function-whitespace-after": "always",
"indentation": 4,
"keyframe-declaration-no-important": true,
"length-zero-no-unit": [true, { "severity": "warning" }],
"max-empty-lines": 2,
"max-line-length": [132, { "severity": "warning" }],
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-no-missing-punctuation": true,
"media-feature-parentheses-space-inside": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-browser-hacks": null, # Enabled for non-scss in grunt.
"no-empty-source": true,
"no-eol-whitespace": true,
"no-extra-semicolons": [true, { "severity": "warning" }],
"no-invalid-double-slash-comments": true,
"no-unknown-animations": true,
"property-case": "lower",
"property-no-unknown": true,
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-max-empty-lines": 0,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-no-unknown": true,
"selector-root-no-composition": true,
"selector-type-case": "lower",
"selector-type-no-unknown": true,
"string-no-newline": true,
"time-no-imperceptible": true,
"unit-blacklist": ["pt"],
"unit-case": "lower",
"unit-no-unknown": true,
"value-keyword-case": ["lower", {"ignoreKeywords": ["/(@|$)/"]}],
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
}
}
+134 -46
View File
@@ -13,26 +13,31 @@ language: php
php:
# We only run the highest and lowest supported versions to reduce the load on travis-ci.org.
- 7.0
- 5.6
# - 5.5
- 5.4
services:
- redis-server
env:
# Although we want to run these jobs and see failures as quickly as possible, we also want to get the slowest job to
# start first so that the total run time is not too high.
#
# We only run MySQL on PHP 5.6, so run that first.
# We only run MySQL on PHP 7.0, so run that first.
# CI Tests should be second-highest in priority as these only take <= 60 seconds to run under normal circumstances.
# Postgres is significantly is pretty reasonable in its run-time.
# Run unit tests on MySQL
- DB=mysqli PHPUNIT=true INSTALL=false CITEST=false
- DB=mysqli TASK=PHPUNIT
# Run CI Tests without running PHPUnit.
- DB=none PHPUNIT=false INSTALL=false CITEST=true
- DB=none TASK=CITEST
# Run unit tests on Postgres
- DB=pgsql PHPUNIT=true INSTALL=false CITEST=false
- DB=pgsql TASK=PHPUNIT
# Perform an upgrade test too.
- DB=pgsql TASK=UPGRADE
matrix:
# Enable fast finish.
@@ -40,37 +45,62 @@ matrix:
# It will not stop the jobs from running.
fast_finish: true
include:
# Run grunt/npm install on lowest supported npm version
- php: 7
env: DB=none TASK=GRUNT NVM_VERSION='4'
# Run grunt/npm install on highest version ('node' is an alias for the latest node.js version.)
- php: 7
env: DB=none TASK=GRUNT NVM_VERSION='node'
exclude:
# MySQL - it's just too slow.
# Exclude it on all versions except for latest.
# - env: DB=mysqli PHPUNIT=true INSTALL=false CITEST=false
# php: 5.6
#
# - env: DB=mysqli PHPUNIT=true INSTALL=false CITEST=false
# php: 5.5
# Exclude it on all versions except for 7.0
- env: DB=mysqli PHPUNIT=true INSTALL=false CITEST=false
php: 5.4
- env: DB=mysqli TASK=PHPUNIT
php: 5.6
# Moodle 2.7 is not compatible with PHP 7 for the upgrade test.
- env: DB=pgsql TASK=UPGRADE
php: 7.0
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
install:
# Disable xdebug. We aren't generating code coverage, and it has a huge impact upon test performance.
- rm /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
# Set the encrypted GITHUB_TOKEN if it's available to raise the API limit.
- if [ -n "$GITHUB_APITOKEN" ]; then composer config github-oauth.github.com $GITHUB_APITOKEN; fi
- >
if [ "$TASK" = 'PHPUNIT' ];
then
if [ -n "$GITHUB_APITOKEN" ]; then
composer config github-oauth.github.com $GITHUB_APITOKEN;
echo 'auth.json' >> .git/info/exclude
fi
# Install composer dependencies.
# We need --no-interaction in case we hit API limits for composer. This causes it to fall back to a standard clone.
# Typically it should be able to use the Composer cache if any other job has already completed before we started here.
- travis_retry composer install --prefer-dist --no-interaction
# Enable Redis.
echo 'extension="redis.so"' > /tmp/redis.ini
phpenv config-add /tmp/redis.ini
# Install composer dependencies.
# We need --no-interaction in case we hit API limits for composer. This causes it to fall back to a standard clone.
# Typically it should be able to use the Composer cache if any other job has already completed before we started here.
travis_retry composer install --prefer-dist --no-interaction;
fi
- >
if [ "$TASK" = 'GRUNT' ];
then
nvm install $NVM_VERSION ;
nvm use $NVM_VERSION ;
fi
before_script:
- >
if [ "$INSTALL" = 'true' -o "$PHPUNIT" = 'true' ];
if [ "$TASK" = 'PHPUNIT' -o "$TASK" = 'UPGRADE' ];
then
# Copy generic configuration in place.
cp config-dist.php config.php ;
@@ -112,38 +142,37 @@ before_script:
mysql -u root -e 'SET GLOBAL innodb_file_per_table=ON;' ;
mysql -e 'CREATE DATABASE travis_ci_test DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;' ;
fi
if [ "$PHPUNIT" = 'true' ];
then
# Create a directory for the phpunit dataroot.
mkdir -p "$HOME"/roots/phpunit
# The phpunit dataroot and prefix..
sed -i \
-e "/require_once/i \\\$CFG->phpunit_dataroot = '\/home\/travis\/roots\/phpunit';" \
-e "/require_once/i \\\$CFG->phpunit_prefix = 'p_';" \
config.php ;
# Initialise PHPUnit for Moodle.
php admin/tool/phpunit/cli/init.php
fi
fi
script:
########################################################################
# PHPUnit
########################################################################
- >
if [ "$PHPUNIT" = 'true' ];
if [ "$TASK" = 'PHPUNIT' ];
then
vendor/bin/phpunit;
# Create a directory for the phpunit dataroot.
mkdir -p "$HOME"/roots/phpunit
# The phpunit dataroot and prefix..
sed -i \
-e "/require_once/i \\\$CFG->phpunit_dataroot = '\/home\/travis\/roots\/phpunit';" \
-e "/require_once/i \\\$CFG->phpunit_prefix = 'p_';" \
-e "/require_once/i \\define('TEST_SESSION_REDIS_HOST', '127.0.0.1');" \
config.php ;
# Initialise PHPUnit for Moodle.
php admin/tool/phpunit/cli/init.php
fi
- >
if [ "$TASK" = 'GRUNT' ];
then
npm install --no-spin;
npm install --no-spin -g grunt ;
fi
########################################################################
# CI Tests
########################################################################
- >
if [ "$CITEST" = 'true' ];
if [ "$TASK" = 'CITEST' ];
then
# Note - this is deliberately placed in the script section as we
# should not add any code until after phpunit has run.
@@ -155,7 +184,7 @@ script:
# We need the official upstream for comparison
git remote add upstream https://github.com/moodle/moodle.git;
git fetch upstream MOODLE_29_STABLE;
git fetch upstream master;
export GIT_PREVIOUS_COMMIT="`git merge-base FETCH_HEAD $TRAVIS_COMMIT`";
export GIT_COMMIT="$TRAVIS_COMMIT";
export UPSTREAM_FETCH_HEAD=`git rev-parse FETCH_HEAD`
@@ -166,9 +195,68 @@ script:
export phpcmd=`which php`;
fi
# Actually run the CI Tests - do this outside of the main test to make output clearer.
########################################################################
# Upgrade test
########################################################################
- >
if [ "$CITEST" = 'true' ];
if [ "$TASK" = 'UPGRADE' ];
then
# We need the official upstream.
git remote add upstream https://github.com/moodle/moodle.git;
# Checkout 27 STABLE branch.
git fetch upstream MOODLE_27_STABLE;
git checkout MOODLE_27_STABLE;
# Perform the upgrade
php admin/cli/install_database.php --agree-license --adminpass=Password --adminemail=admin@example.com --fullname="Upgrade test" --shortname=Upgrade;
# Return to the previous commit
git checkout -;
# Perform the upgrade
php admin/cli/upgrade.php --non-interactive --allow-unstable ;
# The local_ci repository can be used to check upgrade savepoints.
git clone https://github.com/moodlehq/moodle-local_ci.git local/ci ;
fi
script:
- >
if [ "$TASK" = 'PHPUNIT' ];
then
vendor/bin/phpunit;
fi
- >
if [ "$TASK" = 'CITEST' ];
then
bash local/ci/php_lint/php_lint.sh;
fi
- >
if [ "$TASK" = 'GRUNT' ];
then
grunt ;
# Add all files to the git index and then run diff --cached to see all changes.
# This ensures that we get the status of all files, including new files.
git add . ;
git diff --cached --exit-code ;
fi
########################################################################
# Upgrade test
########################################################################
- >
if [ "$TASK" = 'UPGRADE' ];
then
cp local/ci/check_upgrade_savepoints/check_upgrade_savepoints.php ./check_upgrade_savepoints.php
result=`php check_upgrade_savepoints.php`;
# Check if there are problems
count=`echo "$result" | grep -P "ERROR|WARN" | wc -l` ;
if (($count > 0));
then
echo "$result"
exit 1 ;
fi
fi
+56
View File
@@ -0,0 +1,56 @@
CONTRIBUTING TO MOODLE
======================
Moodle is made by people like you. We are members of a big worldwide community
of developers, designers, teachers, testers, translators and other users. We
work in universities, schools, companies and other places. You are very welcome
to join us and contribute to the project.
See <https://docs.moodle.org/dev/Contributing_to_Moodle> for the many ways you
can help, not only with coding.
Moodle is open to community contributions to core, though all code must go
through peer-review, automated behaviour testing, continuous integration and
human post-integration checks.
Pull requests
-------------
Please do not open pull requests via Github. The repository there is just a
mirror of the official repository at <https://git.moodle.org>. Issues are
reported and patches provided via <https://tracker.moodle.org>. See below for
more information.
Moodle core bug fixes and new features
--------------------------------------
During the years of intensive development, a mature process of including
submitted patches has evolved.
* Every bug fix or new feature must have a tracker issue.
* You publish the branch implementing the fix or new feature in your public
clone of the moodle.git repository (typically on Github).
* Your patch is peer-reviewed, discussed, integrated, tested and then released
as a part of moodle.git.
* New features are developed on the master branch. Bug fixes are also
backported to currently supported maintenance (stable) branches.
For further details, see <https://docs.moodle.org/dev/Process>.
Moodle plugins
--------------
Moodle has a framework for additional plugins to extend its functionality. We
have a Moodle plugins directory <https://moodle.org/plugins/> where you can
register and maintain your plugin. Plugins hosted in the plugins directory can
be easily installed and updated via the Moodle administration interface.
* You are expected to have a public source code repository with your plugin
code.
* After registering your plugin in the plugins directory it is reviewed before
being published.
* You are expected to continuously release updated versions of the plugin via
the plugins directory. We do not pull from your code repository; you must do
it explicitly.
For further details, see <https://docs.moodle.org/dev/Plugin_contribution>.
+145 -24
View File
@@ -13,6 +13,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2014 Andrew Nicols
@@ -26,7 +27,18 @@
module.exports = function(grunt) {
var path = require('path'),
tasks = {},
cwd = process.env.PWD || process.cwd();
cwd = process.env.PWD || process.cwd(),
async = require('async'),
DOMParser = require('xmldom').DOMParser,
xpath = require('xpath'),
semver = require('semver');
// Verify the node version is new enough.
var expected = semver.validRange(grunt.file.readJSON('package.json').engines.node);
var actual = semver.valid(process.version);
if (!semver.satisfies(actual, expected)) {
grunt.fail.fatal('Node version too old. Require ' + expected + ', version installed: ' + actual);
}
// Windows users can't run grunt in a subdirectory, so allow them to set
// the root by passing --root=path/to/dir.
@@ -34,9 +46,9 @@ module.exports = function(grunt) {
var root = grunt.option('root');
if (grunt.file.exists(__dirname, root)) {
cwd = path.join(__dirname, root);
grunt.log.ok('Setting root to '+cwd);
grunt.log.ok('Setting root to ' + cwd);
} else {
grunt.fail.fatal('Setting root to '+root+' failed - path does not exist');
grunt.fail.fatal('Setting root to ' + root + ' failed - path does not exist');
}
}
@@ -55,26 +67,81 @@ module.exports = function(grunt) {
* @param {String} srcPath the matched src path
* @return {String} The rewritten destination path.
*/
var uglify_rename = function (destPath, srcPath) {
var uglifyRename = function(destPath, srcPath) {
destPath = srcPath.replace('src', 'build');
destPath = destPath.replace('.js', '.min.js');
destPath = path.resolve(cwd, destPath);
return destPath;
};
/**
* Find thirdpartylibs.xml and generate an array of paths contained within
* them (used to generate ignore files and so on).
*
* @return {array} The list of thirdparty paths.
*/
var getThirdPartyPathsFromXML = function() {
var thirdpartyfiles = grunt.file.expand('*/**/thirdpartylibs.xml');
var libs = ['node_modules/', 'vendor/'];
thirdpartyfiles.forEach(function(file) {
var dirname = path.dirname(file);
var doc = new DOMParser().parseFromString(grunt.file.read(file));
var nodes = xpath.select("/libraries/library/location/text()", doc);
nodes.forEach(function(node) {
var lib = path.join(dirname, node.toString());
if (grunt.file.isDir(lib)) {
// Ensure trailing slash on dirs.
lib = lib.replace(/\/?$/, '/');
}
// Look for duplicate paths before adding to array.
if (libs.indexOf(lib) === -1) {
libs.push(lib);
}
});
});
return libs;
};
// Project configuration.
grunt.initConfig({
jshint: {
options: {jshintrc: '.jshintrc'},
amd: { src: amdSrc }
eslint: {
// Even though warnings dont stop the build we don't display warnings by default because
// at this moment we've got too many core warnings.
options: {quiet: !grunt.option('show-lint-warnings')},
amd: {
src: amdSrc,
// Check AMD with some slightly stricter rules.
rules: {
'no-unused-vars': 'error',
'no-implicit-globals': 'error'
}
},
// Check YUI module source files.
yui: {
src: ['**/yui/src/**/*.js', '!*/**/yui/src/*/meta/*.js'],
options: {
// Disable some rules which we can't safely define for YUI rollups.
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
'no-unused-expressions': 'off'
}
}
}
},
uglify: {
amd: {
files: [{
expand: true,
src: amdSrc,
rename: uglify_rename
}]
rename: uglifyRename
}],
options: {report: 'none'}
}
},
less: {
@@ -84,7 +151,7 @@ module.exports = function(grunt) {
"theme/bootstrapbase/style/editor.css": "theme/bootstrapbase/less/editor.less",
},
options: {
compress: true
compress: false // We must not compress to keep the comments.
}
}
},
@@ -98,11 +165,11 @@ module.exports = function(grunt) {
},
bootstrapbase: {
files: ["theme/bootstrapbase/less/**/*.less"],
tasks: ["less:bootstrapbase"]
tasks: ["css"]
},
yui: {
files: ['**/yui/src/**/*.js'],
tasks: ['shifter']
tasks: ['yui']
},
},
shifter: {
@@ -110,9 +177,59 @@ module.exports = function(grunt) {
recursive: true,
paths: [cwd]
}
},
stylelint: {
less: {
options: {
syntax: 'less',
configOverrides: {
rules: {
// These rules have to be disabled in .stylelintrc for scss compat.
"at-rule-no-unknown": true,
"no-browser-hacks": [true, {"severity": "warning"}]
}
}
},
src: ['theme/**/*.less']
},
scss: {
options: {syntax: 'scss'},
src: ['*/**/*.scss']
},
css: {
src: ['*/**/*.css'],
options: {
configOverrides: {
rules: {
// These rules have to be disabled in .stylelintrc for scss compat.
"at-rule-no-unknown": true,
"no-browser-hacks": [true, {"severity": "warning"}]
}
}
}
}
}
});
/**
* Generate ignore files (utilising thirdpartylibs.xml data)
*/
tasks.ignorefiles = function() {
// An array of paths to third party directories.
var thirdPartyPaths = getThirdPartyPathsFromXML();
// Generate .eslintignore.
var eslintIgnores = ['# Generated by "grunt ignorefiles"', '*/**/yui/src/*/meta/', '*/**/build/'].concat(thirdPartyPaths);
grunt.file.write('.eslintignore', eslintIgnores.join('\n'));
// Generate .stylelintignore.
var stylelintIgnores = [
'# Generated by "grunt ignorefiles"',
'theme/bootstrapbase/style/',
'theme/clean/style/custom.css',
'theme/more/style/custom.css'
].concat(thirdPartyPaths);
grunt.file.write('.stylelintignore', stylelintIgnores.join('\n'));
};
/**
* Shifter task. Is configured with a path to a specific file or a directory,
* in the case of a specific file it will work out the right module to be built.
@@ -121,14 +238,13 @@ module.exports = function(grunt) {
* so be careful to to call done().
*/
tasks.shifter = function() {
var async = require('async'),
done = this.async(),
var done = this.async(),
options = grunt.config('shifter.options');
// Run the shifter processes one at a time to avoid confusing output.
async.eachSeries(options.paths, function (src, filedone) {
async.eachSeries(options.paths, function(src, filedone) {
var args = [];
args.push( path.normalize(__dirname + '/node_modules/shifter/bin/shifter'));
args.push(path.normalize(__dirname + '/node_modules/shifter/bin/shifter'));
// Always ignore the node_modules directory.
args.push('--excludes', 'node_modules');
@@ -176,7 +292,7 @@ module.exports = function(grunt) {
cmd: "node",
args: args,
opts: {cwd: src, stdio: 'inherit', env: process.env}
}, function (error, result, code) {
}, function(error, result, code) {
if (code) {
grunt.fail.fatal('Shifter failed with code: ' + code);
} else {
@@ -205,7 +321,7 @@ module.exports = function(grunt) {
tasks.startup = function() {
// Are we in a YUI directory?
if (path.basename(path.resolve(cwd, '../../')) == 'yui') {
grunt.task.run('shifter');
grunt.task.run('yui');
// Are we in an AMD directory?
} else if (inAMD) {
grunt.task.run('amd');
@@ -222,9 +338,11 @@ module.exports = function(grunt) {
var changedFiles = Object.create(null);
var onChange = grunt.util._.debounce(function() {
var files = Object.keys(changedFiles);
grunt.config('jshint.amd.src', files);
grunt.config('uglify.amd.files', [{ expand: true, src: files, rename: uglify_rename }]);
grunt.config('eslint.amd.src', files);
grunt.config('eslint.yui.src', files);
grunt.config('uglify.amd.files', [{expand: true, src: files, rename: uglifyRename}]);
grunt.config('shifter.options.paths', files);
grunt.config('stylelint.less.src', files);
changedFiles = Object.create(null);
}, 200);
@@ -235,17 +353,20 @@ module.exports = function(grunt) {
// Register NPM tasks.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-stylelint');
// Register JS tasks.
grunt.registerTask('shifter', 'Run Shifter against the current directory', tasks.shifter);
grunt.registerTask('amd', ['jshint', 'uglify']);
grunt.registerTask('js', ['amd', 'shifter']);
grunt.registerTask('ignorefiles', 'Generate ignore files for linters', tasks.ignorefiles);
grunt.registerTask('yui', ['eslint:yui', 'shifter']);
grunt.registerTask('amd', ['eslint:amd', 'uglify']);
grunt.registerTask('js', ['amd', 'yui']);
// Register CSS taks.
grunt.registerTask('css', ['less:bootstrapbase']);
grunt.registerTask('css', ['stylelint:scss', 'stylelint:less', 'less:bootstrapbase', 'stylelint:css']);
// Register the startup task.
grunt.registerTask('startup', 'Run the correct tasks for the current directory', tasks.startup);
+20
View File
@@ -0,0 +1,20 @@
MOODLE INSTALLATION
===================
Here is a short summary of the installation process (which can take just a few
minutes):
1. Move the Moodle files into your web directory.
2. Create a single database for Moodle to store all its tables in (or choose an
existing database).
3. Visit your Moodle site with a browser. You should be taken to the
install.php script, which will lead you through creating a config.php file
and then setting up Moodle, creating an admin account etc.
4. Set up a cron task to call the file admin/cron.php every minute.
For more information, see <https://docs.moodle.org/en/Installing_Moodle>.
Good luck and have fun!
+7
View File
@@ -0,0 +1,7 @@
*** PLEASE DO NOT OPEN PULL REQUESTS VIA GITHUB ***
The moodle.git repository at Github is just a mirror of the official repository. We do not accept pull requests at Github.
See CONTRIBUTING.txt guidelines for how to contribute patches for Moodle. Thank you.
--
+21 -22
View File
@@ -1,29 +1,28 @@
QUICK INSTALL
=============
.-..-.
_____ | || |
/____/-.---_ .---. .---. .-.| || | .---.
| | _ _ |/ _ \/ _ \/ _ || |/ __ \
* | | | | | || |_| || |_| || |_| || || |___/
|_| |_| |_|\_____/\_____/\_____||_|\_____)
For the impatient, here is a basic outline of the
installation process, which normally takes me only
a few minutes:
Moodle - the world's open source learning platform
1) Move the Moodle files into your web directory.
Moodle <https://moodle.org> is a learning platform designed to provide
educators, administrators and learners with a single robust, secure and
integrated system to create personalised learning environments.
2) Create a single database for Moodle to store all
its tables in (or choose an existing database).
You can download Moodle <https://download.moodle.org> and run it on your own
web server, ask one of our Moodle Partners <https://moodle.com/partners/> to
assist you, or have a MoodleCloud site <https://moodle.com/cloud/> set up for
you.
3) Visit your Moodle site with a browser, you should
be taken to the install.php script, which will lead
you through creating a config.php file and then
setting up Moodle, creating an admin account etc.
Moodle is widely used around the world by universities, schools, companies and
all manner of organisations and individuals.
4) Set up a cron task to call the file admin/cron.php
every five minutes or so.
Moodle is provided freely as open source software, under the GNU General Public
License <https://docs.moodle.org/dev/License>.
Moodle is written in PHP and JavaScript and uses an SQL database for storing
the data.
For more information, see the INSTALL DOCUMENTATION:
http://docs.moodle.org/en/Installing_Moodle
Good luck and have fun!
Martin Dougiamas, Lead Developer
See <https://docs.moodle.org> for details of Moodle's many features.
+42 -28
View File
@@ -1,34 +1,48 @@
------------------------
Moodle Trademark License
------------------------
MOODLE TRADEMARKS POLICY
========================
The name Moodle is a registered trademark of the Moodle Trust.
The word "Moodle" is trademarked in many countries around the world. The word
was originally an acronym: Modular Object-Oriented Dynamic Learning
Environment. The trademark is owned by Martin Dougiamas, Founder and Director
of Moodle.
A key part of the business model that allows us to produce and
distribute Moodle as completely Free open source software is that
we restrict the commercial use of the Moodle trademark to those
who have contracted to support Moodle development (Moodle Partners).
The law obligates trademark owners to police their marks and prevent the use of
confusingly similar names by third parties. Through this policy wed like to
make it clear how Moodle-related projects, organisations, and people can use
the Moodle trademark. Wed also like to be clear about how use of the word is
restricted when used to promote commercial Moodle services. We do this to
protect the very business model that allows us to continue developing Moodle
for you.
If you are intending to use the name (and/or logo) to advertise
generic Moodle™ services (eg Moodle Hosting, Moodle Support,
Moodle Certification, Moodle Training, Moodle Consulting,
Moodle Customisation, Moodle Courseware Development, Moodle
Theme design, Moodle Integrations, Moodle Installations, etc)
or as the name of a software package, then you must seek
direct permission in writing from the Moodle Trust via the
moodle.com helpdesk, in accordance with normal trademark
restrictions.
Allowed uses
------------
There are no restrictions on how you use the name in other
contexts (for example, if you use Moodle just to provide
courses then you can use the name freely to refer to it.)
The following uses dont require any permission at all:
If you aren't sure of a particular case, please ask us via
http://moodle.com/helpdesk: we'll be happy to either provide
you with official permission in writing or help you fix
your wording.
* Referring to the software or the Moodle project.
* Describing your own Moodle implementation (including within corporate
settings).
* Describing a Moodle-based community hub.
* Describing some software youve made that integrates with Moodle
(eg a Moodle integration feature on another system).
Martin Dougiamas
Executive Director
Moodle Trust
http://moodle.com
Restricted uses
---------------
The following uses are generally prohibited without explicit and direct
permission being granted to you by Moodle Pty Ltd. We do this to protect the
Moodle project from software and sites which could confuse people. Please
contact us to ask for permission in writing.
* You cant use "Moodle" in the name of your software (including Mobile apps)
* You cant use "Moodle" in your company name
* You cant use "Moodle" in your domain name
* You cant use "Moodle" in advertising-related keywords (such as Adsense)
* You cant use "Moodle" to describe services around Moodle (such as hosting,
training, support, consulting, course creation services, theme development,
customisation, installation, integration and certification). This applies
even if you do not charge for the services. Note that usually only Moodle
Partners have this permission.
For information about the Moodle Partner Certification Mark as well as for how
to contact us, please see <https://moodle.com/trademarks/>.
+48
View File
@@ -0,0 +1,48 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Admin settings search form
*
* @package admin
* @copyright 2016 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once $CFG->libdir.'/formslib.php';
/**
* Admin settings search form
*
* @package admin
* @copyright 2016 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class admin_settings_search_form extends moodleform {
function definition () {
$mform = $this->_form;
//$mform->addElement('header', 'settingsheader', get_string('search', 'admin'));
$elements = [];
$elements[] = $mform->createElement('text', 'query', get_string('query', 'admin'));
$elements[] = $mform->createElement('submit', 'search', get_string('search'));
$mform->addGroup($elements);
$mform->setType('query', PARAM_RAW);
$mform->setDefault('query', optional_param('query', '', PARAM_RAW));
}
}
+106
View File
@@ -0,0 +1,106 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Allows admin to configure antiviruses.
*
* @package core_antivirus
* @copyright 2015 Ruslan Kabalin, Lancaster University.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
$action = required_param('action', PARAM_ALPHANUMEXT);
$antivirus = required_param('antivirus', PARAM_PLUGIN);
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/antiviruses.php', array('action' => $action, 'antivirus' => $antivirus));
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', context_system::instance());
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=manageantiviruses";
// Get currently installed and enabled antivirus plugins.
$availableantiviruses = \core\antivirus\manager::get_available();
if (!empty($antivirus) and empty($availableantiviruses[$antivirus])) {
redirect ($returnurl);
}
$activeantiviruses = explode(',', $CFG->antiviruses);
foreach ($activeantiviruses as $key => $active) {
if (empty($availableantiviruses[$active])) {
unset($activeantiviruses[$key]);
}
}
if (!confirm_sesskey()) {
redirect($returnurl);
}
switch ($action) {
case 'disable':
// Remove from enabled list.
$key = array_search($antivirus, $activeantiviruses);
unset($activeantiviruses[$key]);
break;
case 'enable':
// Add to enabled list.
if (!in_array($antivirus, $activeantiviruses)) {
$activeantiviruses[] = $antivirus;
$activeantiviruses = array_unique($activeantiviruses);
}
break;
case 'down':
$key = array_search($antivirus, $activeantiviruses);
// Check auth plugin is valid.
if ($key !== false) {
// Move down the list.
if ($key < (count($activeantiviruses) - 1)) {
$fsave = $activeantiviruses[$key];
$activeantiviruses[$key] = $activeantiviruses[$key + 1];
$activeantiviruses[$key + 1] = $fsave;
}
}
break;
case 'up':
$key = array_search($antivirus, $activeantiviruses);
// Check auth is valid.
if ($key !== false) {
// Move up the list.
if ($key >= 1) {
$fsave = $activeantiviruses[$key];
$activeantiviruses[$key] = $activeantiviruses[$key - 1];
$activeantiviruses[$key - 1] = $fsave;
}
}
break;
default:
break;
}
set_config('antiviruses', implode(',', $activeantiviruses));
core_plugin_manager::reset_caches();
redirect ($returnurl);
-4
View File
@@ -64,8 +64,6 @@ echo "<form id=\"authmenu\" method=\"post\" action=\"auth_config.php\">\n";
echo "<div>\n";
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />\n";
echo "<input type=\"hidden\" name=\"auth\" value=\"".$auth."\" />\n";
// HACK to prevent browsers from automatically inserting the user's password into the wrong fields.
echo prevent_form_autofill_password();
// auth plugin description
echo $OUTPUT->box_start();
@@ -148,8 +146,6 @@ function print_auth_lock_options($auth, $user_fields, $helptext, $retrieveopts,
// If custom field then pick name from database.
$fieldshortname = str_replace('profile_field_', '', $fieldname);
$fieldname = $customfieldname[$fieldshortname]->name;
} elseif ($fieldname == 'phone1') {
$fieldname = get_string('phone');
} elseif ($fieldname == 'url') {
$fieldname = get_string('webpage');
} else {
+4 -1
View File
@@ -154,7 +154,10 @@
$settings = '<a href="' . $blocksettings->url . '">' . get_string('settings') . '</a>';
} else if ($blocksettings instanceof admin_settingpage) {
$settings = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=blocksetting'.$block->name.'">'.$strsettings.'</a>';
} else {
} else if (!file_exists($CFG->dirroot.'/blocks/'.$block->name.'/settings.php')) {
// If the block's settings node was not found, we check that the block really provides the settings.php file.
// Note that blocks can inject their settings to other nodes in the admin tree without using the default locations.
// This can be done by assigning null to $setting in settings.php and it is a valid case.
debugging('Warning: block_'.$block->name.' returns true in has_config() but does not provide a settings.php file',
DEBUG_DEVELOPER);
}
+1 -1
View File
@@ -28,7 +28,7 @@
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php'); // cli only functions
require_once($CFG->libdir.'/cronlib.php');
+1 -1
View File
@@ -25,7 +25,7 @@
define('CLI_SCRIPT', 1);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php');
require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
+1 -1
View File
@@ -30,7 +30,7 @@
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php'); // cli only functions
require_once($CFG->libdir.'/cronlib.php');
+57 -17
View File
@@ -74,12 +74,14 @@ Options:
--adminpass=PASSWORD Password for the moodle admin account,
required in non-interactive mode.
--adminemail=STRING Email address for the moodle admin account.
--upgradekey=STRING The upgrade key to be set in the config.php, leave empty to not set it.
--non-interactive No interactive questions, installation fails if any
problem encountered.
--agree-license Indicates agreement with software license,
required in non-interactive mode.
--allow-unstable Install even if the version is not marked as stable yet,
required in non-interactive mode.
--skip-database Stop the installation before installing the database.
-h, --help Print out this help
Example:
@@ -88,7 +90,7 @@ Example:
// distro specific customisation
$distrolibfile = dirname(dirname(dirname(__FILE__))).'/install/distrolib.php';
$distrolibfile = __DIR__.'/../../install/distrolib.php';
$distro = null;
if (file_exists($distrolibfile)) {
require_once($distrolibfile);
@@ -98,7 +100,7 @@ if (file_exists($distrolibfile)) {
}
// Nothing to do if config.php exists
$configfile = dirname(dirname(dirname(__FILE__))).'/config.php';
$configfile = __DIR__.'/../../config.php';
if (file_exists($configfile)) {
require($configfile);
require_once($CFG->libdir.'/clilib.php');
@@ -145,10 +147,10 @@ define('PHPUNIT_TEST', false);
define('IGNORE_COMPONENT_CACHE', true);
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.4.4") < 0) {
if (version_compare(phpversion(), "5.6.5") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
fwrite(STDERR, "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).\n");
fwrite(STDERR, "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
@@ -157,7 +159,7 @@ if (version_compare(phpversion(), "5.4.4") < 0) {
global $CFG;
$CFG = new stdClass();
$CFG->lang = 'en';
$CFG->dirroot = dirname(dirname(dirname(__FILE__)));
$CFG->dirroot = dirname(dirname(__DIR__));
$CFG->libdir = "$CFG->dirroot/lib";
$CFG->wwwroot = "http://localhost";
$CFG->httpswwwroot = $CFG->wwwroot;
@@ -170,7 +172,7 @@ $CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = true;
$CFG->debugdeveloper = true;
$parts = explode('/', str_replace('\\', '/', dirname(dirname(__FILE__))));
$parts = explode('/', str_replace('\\', '/', dirname(__DIR__)));
$CFG->admin = array_pop($parts);
//point pear include path to moodles lib/pear so that includes and requires will search there for files before anywhere else
@@ -242,7 +244,7 @@ list($options, $unrecognized) = cli_get_params(
'chmod' => isset($distro->directorypermissions) ? sprintf('%04o',$distro->directorypermissions) : '2777', // let distros set dir permissions
'lang' => $CFG->lang,
'wwwroot' => '',
'dataroot' => empty($distro->dataroot) ? str_replace('\\', '/', dirname(dirname(dirname(dirname(__FILE__)))).'/moodledata'): $distro->dataroot, // initialised later after including libs or by distro
'dataroot' => empty($distro->dataroot) ? str_replace('\\', '/', dirname(dirname(dirname(__DIR__))).'/moodledata'): $distro->dataroot, // initialised later after including libs or by distro
'dbtype' => empty($distro->dbtype) ? $defaultdb : $distro->dbtype, // let distro skip dbtype selection
'dbhost' => empty($distro->dbhost) ? 'localhost' : $distro->dbhost, // let distros set dbhost
'dbname' => 'moodle',
@@ -257,9 +259,11 @@ list($options, $unrecognized) = cli_get_params(
'adminuser' => 'admin',
'adminpass' => '',
'adminemail' => '',
'upgradekey' => '',
'non-interactive' => false,
'agree-license' => false,
'allow-unstable' => false,
'skip-database' => false,
'help' => false
),
array(
@@ -271,7 +275,8 @@ $interactive = empty($options['non-interactive']);
// set up language
$lang = clean_param($options['lang'], PARAM_SAFEDIR);
if (file_exists($CFG->dirroot.'/install/lang/'.$lang)) {
$languages = get_string_manager()->get_list_of_translations();
if (array_key_exists($lang, $languages)) {
$CFG->lang = $lang;
}
@@ -286,28 +291,41 @@ if ($options['help']) {
}
//Print header
cli_logo();
echo PHP_EOL;
echo get_string('cliinstallheader', 'install', $CFG->target_release)."\n";
//Fist select language
if ($interactive) {
cli_separator();
$languages = get_string_manager()->get_list_of_translations();
// Do not put the langs into columns because it is not compatible with RTL.
$langlist = implode("\n", $languages);
$default = $CFG->lang;
cli_heading(get_string('availablelangs', 'install'));
echo $langlist."\n";
cli_heading(get_string('chooselanguagehead', 'install'));
if (array_key_exists($default, $languages)) {
echo $default.' - '.$languages[$default]."\n";
}
if ($default !== 'en') {
echo 'en - English (en)'."\n";
}
echo '? - '.get_string('availablelangs', 'install')."\n";
$prompt = get_string('clitypevaluedefault', 'admin', $CFG->lang);
$error = '';
do {
echo $error;
$input = cli_input($prompt, $default);
$input = clean_param($input, PARAM_SAFEDIR);
if (!file_exists($CFG->dirroot.'/install/lang/'.$input)) {
$error = get_string('cliincorrectvalueretry', 'admin')."\n";
if ($input === '?') {
echo implode("\n", $languages)."\n";
$error = "\n";
} else {
$error = '';
$input = clean_param($input, PARAM_SAFEDIR);
if (!array_key_exists($input, $languages)) {
$error = get_string('cliincorrectvalueretry', 'admin')."\n";
} else {
$error = '';
}
}
} while ($error !== '');
$CFG->lang = $input;
@@ -706,6 +724,24 @@ if (!empty($options['adminemail']) && !validate_email($options['adminemail'])) {
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
// Ask for the upgrade key.
if ($interactive) {
cli_separator();
cli_heading(get_string('upgradekeyset', 'admin'));
if ($options['upgradekey'] !== '') {
$prompt = get_string('clitypevaluedefault', 'admin', $options['upgradekey']);
$options['upgradekey'] = cli_input($prompt, $options['upgradekey']);
} else {
$prompt = get_string('clitypevalue', 'admin');
$options['upgradekey'] = cli_input($prompt);
}
}
// Set the upgrade key if it was provided.
if ($options['upgradekey'] !== '') {
$CFG->upgradekey = $options['upgradekey'];
}
if ($interactive) {
if (!$options['agree-license']) {
cli_separator();
@@ -770,7 +806,11 @@ if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
cli_error(get_string('pluginschecktodo', 'admin'));
}
install_cli_database($options, $interactive);
if (!$options['skip-database']) {
install_cli_database($options, $interactive);
} else {
echo get_string('cliskipdatabase', 'install')."\n";
}
echo get_string('cliinstallfinished', 'install')."\n";
exit(0); // 0 means success
+3 -3
View File
@@ -63,16 +63,16 @@ Example:
";
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.4.4") < 0) {
if (version_compare(phpversion(), "5.6.5") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
fwrite(STDERR, "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).\n");
fwrite(STDERR, "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
// Nothing to do if config.php does not exist
$configfile = dirname(dirname(dirname(__FILE__))).'/config.php';
$configfile = __DIR__.'/../../config.php';
if (!file_exists($configfile)) {
fwrite(STDERR, 'config.php does not exist, can not continue'); // do not localize
fwrite(STDERR, "\n");
+1 -1
View File
@@ -24,7 +24,7 @@
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php'); // cli only functions
if ($DB->get_dbfamily() !== 'mysql') {
+1 -1
View File
@@ -25,7 +25,7 @@
define('CLI_SCRIPT', true);
require(dirname(__FILE__).'/../../config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir . '/clilib.php');
if ($DB->get_dbfamily() !== 'mysql') {
+1 -1
View File
@@ -26,7 +26,7 @@
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php'); // cli only functions
if ($DB->get_dbfamily() !== 'mysql') {
+1 -1
View File
@@ -23,7 +23,7 @@
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php');
list($options, $unrecognized) = cli_get_params(array('help' => false), array('h' => 'help'));
+40 -13
View File
@@ -26,13 +26,26 @@
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php'); // cli only functions
// Define the input options.
$longparams = array(
'help' => false,
'username' => '',
'password' => '',
'ignore-password-policy' => false
);
$shortparams = array(
'h' => 'help',
'u' => 'username',
'p' => 'password',
'i' => 'ignore-password-policy'
);
// now get cli options
list($options, $unrecognized) = cli_get_params(array('help'=>false),
array('h'=>'help'));
list($options, $unrecognized) = cli_get_params($longparams, $shortparams);
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
@@ -47,29 +60,43 @@ There are no security checks here because anybody who is able to
execute this file may execute any PHP too.
Options:
-h, --help Print out this help
-h, --help Print out this help
-u, --username=username Specify username to change
-p, --password=newpassword Specify new password
--ignore-password-policy Ignore password policy when setting password
Example:
\$sudo -u www-data /usr/bin/php admin/cli/reset_password.php
"; //TODO: localize - to be translated later when everything is finished
\$sudo -u www-data /usr/bin/php admin/cli/reset_password.php --username=rosaura --password=jiu3jiu --ignore-password-policy
";
echo $help;
die;
}
cli_heading('Password reset'); // TODO: localize
$prompt = "enter username (manual authentication only)"; // TODO: localize
$username = cli_input($prompt);
if ($options['username'] == '' ) {
cli_heading('Password reset');
$prompt = "Enter username (manual authentication only)";
$username = cli_input($prompt);
} else {
$username = $options['username'];
}
if (!$user = $DB->get_record('user', array('auth'=>'manual', 'username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id))) {
cli_error("Can not find user '$username'");
}
$prompt = "Enter new password"; // TODO: localize
$password = cli_input($prompt);
if ($options['password'] == '' ) {
$prompt = "Enter new password";
$password = cli_input($prompt);
} else {
$password = $options['password'];
}
$errmsg = '';//prevent eclipse warning
if (!check_password_policy($password, $errmsg)) {
cli_error($errmsg);
if (!$options['ignore-password-policy'] ) {
if (!check_password_policy($password, $errmsg)) {
cli_error(html_to_text($errmsg, 0));
}
}
$hashedpassword = hash_internal_user_password($password);
@@ -78,4 +105,4 @@ $DB->set_field('user', 'password', $hashedpassword, array('id'=>$user->id));
echo "Password changed\n";
exit(0); // 0 means success
exit(0); // 0 means success.
@@ -17,7 +17,7 @@
/**
* This script implements some useful svg manipulation tricks.
*
* @package theme_base
* @package core_admin
* @subpackage cli
* @copyright 2012 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
@@ -25,7 +25,7 @@
define('CLI_SCRIPT', true);
require(__DIR__.'/../../../config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php');
// Now get cli options.
@@ -45,10 +45,10 @@ if (!file_exists($path)) {
}
if ($options['ie9fix']) {
theme_base_recurse_svgs($path, '', 'theme_base_svgtool_ie9fix', $blacklist);
core_admin_recurse_svgs($path, '', 'core_admin_svgtool_ie9fix', $blacklist);
} else if ($options['noaspectratio']) {
theme_base_recurse_svgs($path, '', 'theme_base_svgtool_noaspectratio', $blacklist);
core_admin_recurse_svgs($path, '', 'core_admin_svgtool_noaspectratio', $blacklist);
} else {
$help =
@@ -78,7 +78,7 @@ exit(0);
*
* @param string $file
*/
function theme_base_svgtool_ie9fix($file) {
function core_admin_svgtool_ie9fix($file) {
global $CFG;
if (strpos($file, $CFG->dirroot.DIRECTORY_SEPARATOR) === 0) {
@@ -115,7 +115,7 @@ function theme_base_svgtool_ie9fix($file) {
*
* @param string $file
*/
function theme_base_svgtool_noaspectratio($file) {
function core_admin_svgtool_noaspectratio($file) {
global $CFG;
if (strpos($file, $CFG->dirroot.DIRECTORY_SEPARATOR) === 0) {
@@ -155,7 +155,7 @@ function theme_base_svgtool_noaspectratio($file) {
* @param string $filecallback
* @param array $blacklist
*/
function theme_base_recurse_svgs($base, $sub, $filecallback, $blacklist) {
function core_admin_recurse_svgs($base, $sub, $filecallback, $blacklist) {
if (is_dir("$base/$sub")) {
$items = new DirectoryIterator("$base/$sub");
foreach ($items as $item) {
@@ -163,7 +163,7 @@ function theme_base_recurse_svgs($base, $sub, $filecallback, $blacklist) {
continue;
}
$file = $item->getFilename();
theme_base_recurse_svgs("$base/$sub", $file, $filecallback, $blacklist);
core_admin_recurse_svgs("$base/$sub", $file, $filecallback, $blacklist);
}
unset($item);
unset($items);
+12 -2
View File
@@ -38,24 +38,30 @@ if (function_exists('opcache_reset') and !isset($_SERVER['REMOTE_ADDR'])) {
define('CLI_SCRIPT', true);
define('CACHE_DISABLE_ALL', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/adminlib.php'); // various admin-only functions
require_once($CFG->libdir.'/upgradelib.php'); // general upgrade/install related functions
require_once($CFG->libdir.'/clilib.php'); // cli only functions
require_once($CFG->libdir.'/environmentlib.php');
// now get cli options
$lang = isset($SESSION->lang) ? $SESSION->lang : $CFG->lang;
list($options, $unrecognized) = cli_get_params(
array(
'non-interactive' => false,
'allow-unstable' => false,
'help' => false
'help' => false,
'lang' => $lang
),
array(
'h' => 'help'
)
);
if ($options['lang']) {
$SESSION->lang = $options['lang'];
}
$interactive = empty($options['non-interactive']);
if ($unrecognized) {
@@ -74,6 +80,10 @@ Options:
--non-interactive No interactive questions or confirmations
--allow-unstable Upgrade even if the version is not marked as stable yet,
required in non-interactive mode.
--lang=CODE Set preferred language for CLI output. Defaults to the
site language if not set. Defaults to 'en' if the lang
parameter is invalid or if the language pack is not
installed.
-h, --help Print out this help
Example:
+82
View File
@@ -0,0 +1,82 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Lets users manage data formats
*
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @copyright 2016 Brendan Heywood (brendan@catalyst-au.net)
* @package core
* @subpackage dataformat
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$action = required_param('action', PARAM_ALPHANUMEXT);
$name = required_param('name', PARAM_PLUGIN);
$syscontext = context_system::instance();
$PAGE->set_url('/admin/dataformats.php');
$PAGE->set_context($syscontext);
require_login();
require_capability('moodle/site:config', $syscontext);
require_sesskey();
$return = new moodle_url('/admin/settings.php', array('section' => 'managedataformats'));
$plugins = core_plugin_manager::instance()->get_plugins_of_type('dataformat');
$sortorder = array_flip(array_keys($plugins));
if (!isset($plugins[$name])) {
print_error('courseformatnotfound', 'error', $return, $name);
}
switch ($action) {
case 'disable':
if ($plugins[$name]->is_enabled()) {
set_config('disabled', 1, 'dataformat_'. $name);
core_plugin_manager::reset_caches();
}
break;
case 'enable':
if (!$plugins[$name]->is_enabled()) {
unset_config('disabled', 'dataformat_'. $name);
core_plugin_manager::reset_caches();
}
break;
case 'up':
if ($sortorder[$name]) {
$currentindex = $sortorder[$name];
$seq = array_keys($plugins);
$seq[$currentindex] = $seq[$currentindex - 1];
$seq[$currentindex - 1] = $name;
set_config('dataformat_plugins_sortorder', implode(',', $seq));
}
break;
case 'down':
if ($sortorder[$name] < count($sortorder) - 1) {
$currentindex = $sortorder[$name];
$seq = array_keys($plugins);
$seq[$currentindex] = $seq[$currentindex + 1];
$seq[$currentindex + 1] = $name;
set_config('dataformat_plugins_sortorder', implode(',', $seq));
}
break;
}
redirect($return);
+4 -21
View File
@@ -1145,11 +1145,6 @@
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="2.8" requires="2.2">
@@ -1423,11 +1418,6 @@
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="3.0" requires="2.2">
@@ -1444,7 +1434,6 @@
<VENDOR name="oracle" version="10.2" />
</DATABASE>
<PHP version="5.4.4" level="required">
<RESTRICT function="restrict_php_version_71" message="unsupportedphpversion71" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
@@ -1567,11 +1556,6 @@
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="3.1" requires="2.7">
@@ -1588,7 +1572,6 @@
<VENDOR name="oracle" version="10.2" />
</DATABASE>
<PHP version="5.4.4" level="required">
<RESTRICT function="restrict_php_version_71" message="unsupportedphpversion71" />
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
@@ -1713,9 +1696,9 @@
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_unoconv_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
@@ -1863,9 +1846,9 @@
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_tls_libraries" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
<ON_CHECK message="tlswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
+1 -1
View File
@@ -22,7 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir . '/adminlib.php');
$action = optional_param('action', '', PARAM_ALPHA);
+306 -55
View File
@@ -30,10 +30,10 @@ if (!file_exists('../config.php')) {
}
// Check that PHP is of a sufficient version as soon as possible
if (version_compare(phpversion(), '5.4.4') < 0) {
if (version_compare(phpversion(), '5.6.5') < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it to later place
echo "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).<br />";
echo "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).<br />";
echo "Please upgrade your server software or install older Moodle version.";
die();
}
@@ -52,8 +52,24 @@ if (!function_exists('json_encode') || !function_exists('json_decode')) {
die();
}
// Make sure xml extension is available.
if (!extension_loaded('xml')) {
echo 'Moodle requires the xml PHP extension. Please install or enable the xml extension.';
die();
}
define('NO_OUTPUT_BUFFERING', true);
if (isset($_POST['upgradekey'])) {
// Before you start reporting issues about the collision attacks against
// SHA-1, you should understand that we are not actually attempting to do
// any cryptography here. This is hashed purely so that the key is not
// that apparent in the address bar itself. Anyone who catches the HTTP
// traffic can immediately use it as a valid admin key.
header('Location: index.php?cache=0&upgradekeyhash='.sha1($_POST['upgradekey']));
die();
}
if ((isset($_GET['cache']) and $_GET['cache'] === '0')
or (isset($_POST['cache']) and $_POST['cache'] === '0')
or (!isset($_POST['cache']) and !isset($_GET['cache']) and empty($_GET['sesskey']) and empty($_POST['sesskey']))) {
@@ -88,22 +104,51 @@ core_component::get_core_subsystems();
require_once($CFG->libdir.'/adminlib.php'); // various admin-only functions
require_once($CFG->libdir.'/upgradelib.php'); // general upgrade/install related functions
$confirmupgrade = optional_param('confirmupgrade', 0, PARAM_BOOL);
$confirmrelease = optional_param('confirmrelease', 0, PARAM_BOOL);
$confirmplugins = optional_param('confirmplugincheck', 0, PARAM_BOOL);
$showallplugins = optional_param('showallplugins', 0, PARAM_BOOL);
$agreelicense = optional_param('agreelicense', 0, PARAM_BOOL);
$fetchupdates = optional_param('fetchupdates', 0, PARAM_BOOL);
$newaddonreq = optional_param('installaddonrequest', null, PARAM_RAW);
$confirmupgrade = optional_param('confirmupgrade', 0, PARAM_BOOL); // Core upgrade confirmed?
$confirmrelease = optional_param('confirmrelease', 0, PARAM_BOOL); // Core release info and server checks confirmed?
$confirmplugins = optional_param('confirmplugincheck', 0, PARAM_BOOL); // Plugins check page confirmed?
$showallplugins = optional_param('showallplugins', 0, PARAM_BOOL); // Show all plugins on the plugins check page?
$agreelicense = optional_param('agreelicense', 0, PARAM_BOOL); // GPL license confirmed for installation?
$fetchupdates = optional_param('fetchupdates', 0, PARAM_BOOL); // Should check for available updates?
$newaddonreq = optional_param('installaddonrequest', null, PARAM_RAW); // Plugin installation requested at moodle.org/plugins.
$upgradekeyhash = optional_param('upgradekeyhash', null, PARAM_ALPHANUM); // Hash of provided upgrade key.
$installdep = optional_param('installdep', null, PARAM_COMPONENT); // Install given missing dependency (required plugin).
$installdepx = optional_param('installdepx', false, PARAM_BOOL); // Install all missing dependencies.
$confirminstalldep = optional_param('confirminstalldep', false, PARAM_BOOL); // Installing dependencies confirmed.
$abortinstall = optional_param('abortinstall', null, PARAM_COMPONENT); // Cancel installation of the given new plugin.
$abortinstallx = optional_param('abortinstallx', null, PARAM_BOOL); // Cancel installation of all new plugins.
$confirmabortinstall = optional_param('confirmabortinstall', false, PARAM_BOOL); // Installation cancel confirmed.
$abortupgrade = optional_param('abortupgrade', null, PARAM_COMPONENT); // Cancel upgrade of the given existing plugin.
$abortupgradex = optional_param('abortupgradex', null, PARAM_BOOL); // Cancel upgrade of all upgradable plugins.
$confirmabortupgrade = optional_param('confirmabortupgrade', false, PARAM_BOOL); // Upgrade cancel confirmed.
$installupdate = optional_param('installupdate', null, PARAM_COMPONENT); // Install given available update.
$installupdateversion = optional_param('installupdateversion', null, PARAM_INT); // Version of the available update to install.
$installupdatex = optional_param('installupdatex', false, PARAM_BOOL); // Install all available plugin updates.
$confirminstallupdate = optional_param('confirminstallupdate', false, PARAM_BOOL); // Available update(s) install confirmed?
if (!empty($CFG->disableupdateautodeploy)) {
// Invalidate all requests to install plugins via the admin UI.
$newaddonreq = null;
$installdep = null;
$installdepx = false;
$abortupgrade = null;
$abortupgradex = null;
$installupdate = null;
$installupdateversion = null;
$installupdatex = false;
}
// Set up PAGE.
$url = new moodle_url('/admin/index.php');
$url->param('cache', $cache);
if (isset($upgradekeyhash)) {
$url->param('upgradekeyhash', $upgradekeyhash);
}
$PAGE->set_url($url);
unset($url);
// Are we returning from an add-on installation request at moodle.org/plugins?
if ($newaddonreq and !$cache and empty($CFG->disableonclickaddoninstall)) {
if ($newaddonreq and !$cache and empty($CFG->disableupdateautodeploy)) {
$target = new moodle_url('/admin/tool/installaddon/index.php', array(
'installaddonrequest' => $newaddonreq,
'confirm' => 0));
@@ -174,7 +219,6 @@ if (!core_tables_exist()) {
$PAGE->set_heading($strinstallation);
$PAGE->set_cacheable(false);
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
echo $output->install_licence_page();
die();
@@ -189,7 +233,6 @@ if (!core_tables_exist()) {
$PAGE->set_heading($strinstallation . ' - Moodle ' . $CFG->target_release);
$PAGE->set_cacheable(false);
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
echo $output->install_environment_page($maturity, $envstatus, $environment_results, $release);
die();
@@ -203,7 +246,7 @@ if (!core_tables_exist()) {
$PAGE->set_heading($strinstallation . ' - Moodle ' . $CFG->target_release);
$output = $PAGE->get_renderer('core', 'admin');
$url = new moodle_url('/admin/index.php', array('agreelicense' => 1, 'confirmrelease' => 1, 'lang' => $CFG->lang));
$url = new moodle_url($PAGE->url, array('agreelicense' => 1, 'confirmrelease' => 1, 'lang' => $CFG->lang));
echo $output->unsatisfied_dependencies_page($version, $failed, $url);
die();
}
@@ -253,11 +296,19 @@ if (empty($CFG->version)) {
// Detect config cache inconsistency, this happens when you switch branches on dev servers.
if ($CFG->version != $DB->get_field('config', 'value', array('name'=>'version'))) {
purge_all_caches();
redirect(new moodle_url('/admin/index.php'), 'Config cache inconsistency detected, resetting caches...');
redirect(new moodle_url($PAGE->url), 'Config cache inconsistency detected, resetting caches...');
}
if (!$cache and $version > $CFG->version) { // upgrade
$PAGE->set_url(new moodle_url($PAGE->url, array(
'confirmupgrade' => $confirmupgrade,
'confirmrelease' => $confirmrelease,
'confirmplugincheck' => $confirmplugins,
)));
check_upgrade_key($upgradekeyhash);
// Warning about upgrading a test site.
$testsite = false;
if (defined('BEHAT_SITE_RUNNING')) {
@@ -273,7 +324,6 @@ if (!$cache and $version > $CFG->version) { // upgrade
// We then purge the regular caches.
purge_all_caches();
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
if (upgrade_stale_php_files_present()) {
@@ -318,40 +368,137 @@ if (!$cache and $version > $CFG->version) { // upgrade
$PAGE->set_heading($strplugincheck);
$PAGE->set_cacheable(false);
$reloadurl = new moodle_url('/admin/index.php', array('confirmupgrade' => 1, 'confirmrelease' => 1, 'cache' => 0));
$pluginman = core_plugin_manager::instance();
// Check for available updates.
if ($fetchupdates) {
// No sesskey support guaranteed here, because sessions might not work yet.
$updateschecker = \core\update\checker::instance();
if ($updateschecker->enabled()) {
$updateschecker->fetch();
}
redirect($reloadurl);
redirect($PAGE->url);
}
$deployer = \core\update\deployer::instance();
if ($deployer->enabled()) {
$deployer->initialize($reloadurl, $reloadurl);
// Cancel all plugin installations.
if ($abortinstallx) {
// No sesskey support guaranteed here, because sessions might not work yet.
$abortables = $pluginman->list_cancellable_installations();
if ($abortables) {
if ($confirmabortinstall) {
foreach ($abortables as $plugin) {
$pluginman->cancel_plugin_installation($plugin->component);
}
redirect($PAGE->url);
} else {
$continue = new moodle_url($PAGE->url, array('abortinstallx' => $abortinstallx, 'confirmabortinstall' => 1));
echo $output->upgrade_confirm_abort_install_page($abortables, $continue);
die();
}
}
redirect($PAGE->url);
}
$deploydata = $deployer->submitted_data();
if (!empty($deploydata)) {
// No sesskey support guaranteed here, because sessions might not work yet.
echo $output->upgrade_plugin_confirm_deploy_page($deployer, $deploydata);
die();
// Cancel single plugin installation.
if ($abortinstall) {
// No sesskey support guaranteed here, because sessions might not work yet.
if ($confirmabortinstall) {
$pluginman->cancel_plugin_installation($abortinstall);
redirect($PAGE->url);
} else {
$continue = new moodle_url($PAGE->url, array('abortinstall' => $abortinstall, 'confirmabortinstall' => 1));
$abortable = $pluginman->get_plugin_info($abortinstall);
if ($pluginman->can_cancel_plugin_installation($abortable)) {
echo $output->upgrade_confirm_abort_install_page(array($abortable), $continue);
die();
}
redirect($PAGE->url);
}
}
// Cancel all plugins upgrades (that is, restore archived versions).
if ($abortupgradex) {
// No sesskey support guaranteed here, because sessions might not work yet.
$restorable = $pluginman->list_restorable_archives();
if ($restorable) {
upgrade_install_plugins($restorable, $confirmabortupgrade,
get_string('cancelupgradehead', 'core_plugin'),
new moodle_url($PAGE->url, array('abortupgradex' => 1, 'confirmabortupgrade' => 1))
);
}
redirect($PAGE->url);
}
// Cancel single plugin upgrade (that is, install the archived version).
if ($abortupgrade) {
// No sesskey support guaranteed here, because sessions might not work yet.
$restorable = $pluginman->list_restorable_archives();
if (isset($restorable[$abortupgrade])) {
$restorable = array($restorable[$abortupgrade]);
upgrade_install_plugins($restorable, $confirmabortupgrade,
get_string('cancelupgradehead', 'core_plugin'),
new moodle_url($PAGE->url, array('abortupgrade' => $abortupgrade, 'confirmabortupgrade' => 1))
);
}
redirect($PAGE->url);
}
// Install all available missing dependencies.
if ($installdepx) {
// No sesskey support guaranteed here, because sessions might not work yet.
$installable = $pluginman->filter_installable($pluginman->missing_dependencies(true));
upgrade_install_plugins($installable, $confirminstalldep,
get_string('dependencyinstallhead', 'core_plugin'),
new moodle_url($PAGE->url, array('installdepx' => 1, 'confirminstalldep' => 1))
);
}
// Install single available missing dependency.
if ($installdep) {
// No sesskey support guaranteed here, because sessions might not work yet.
$installable = $pluginman->filter_installable($pluginman->missing_dependencies(true));
if (!empty($installable[$installdep])) {
$installable = array($installable[$installdep]);
upgrade_install_plugins($installable, $confirminstalldep,
get_string('dependencyinstallhead', 'core_plugin'),
new moodle_url($PAGE->url, array('installdep' => $installdep, 'confirminstalldep' => 1))
);
}
}
// Install all available updates.
if ($installupdatex) {
// No sesskey support guaranteed here, because sessions might not work yet.
$installable = $pluginman->filter_installable($pluginman->available_updates());
upgrade_install_plugins($installable, $confirminstallupdate,
get_string('updateavailableinstallallhead', 'core_admin'),
new moodle_url($PAGE->url, array('installupdatex' => 1, 'confirminstallupdate' => 1))
);
}
// Install single available update.
if ($installupdate and $installupdateversion) {
// No sesskey support guaranteed here, because sessions might not work yet.
if ($pluginman->is_remote_plugin_installable($installupdate, $installupdateversion)) {
$installable = array($pluginman->get_remote_plugin_info($installupdate, $installupdateversion, true));
upgrade_install_plugins($installable, $confirminstallupdate,
get_string('updateavailableinstallallhead', 'core_admin'),
new moodle_url($PAGE->url, array('installupdate' => $installupdate,
'installupdateversion' => $installupdateversion, 'confirminstallupdate' => 1)
)
);
}
}
echo $output->upgrade_plugin_check_page(core_plugin_manager::instance(), \core\update\checker::instance(),
$version, $showallplugins, $reloadurl,
new moodle_url('/admin/index.php', array('confirmupgrade'=>1, 'confirmrelease'=>1, 'confirmplugincheck'=>1, 'cache'=>0)));
$version, $showallplugins, $PAGE->url, new moodle_url($PAGE->url, array('confirmplugincheck' => 1)));
die();
} else {
// Always verify plugin dependencies!
$failed = array();
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
$reloadurl = new moodle_url('/admin/index.php', array('confirmupgrade' => 1, 'confirmrelease' => 1, 'cache' => 0));
echo $output->unsatisfied_dependencies_page($version, $failed, $reloadurl);
echo $output->unsatisfied_dependencies_page($version, $failed, $PAGE->url);
die();
}
unset($failed);
@@ -374,9 +521,17 @@ if (!$cache and $branch <> $CFG->branch) { // Update the branch
}
if (!$cache and moodle_needs_upgrading()) {
$PAGE->set_url(new moodle_url($PAGE->url, array('confirmplugincheck' => $confirmplugins)));
check_upgrade_key($upgradekeyhash);
if (!$PAGE->headerprinted) {
// means core upgrade or installation was not already done
$pluginman = core_plugin_manager::instance();
$output = $PAGE->get_renderer('core', 'admin');
if (!$confirmplugins) {
$strplugincheck = get_string('plugincheck');
@@ -385,6 +540,7 @@ if (!$cache and moodle_needs_upgrading()) {
$PAGE->set_heading($strplugincheck);
$PAGE->set_cacheable(false);
// Check for available updates.
if ($fetchupdates) {
require_sesskey();
$updateschecker = \core\update\checker::instance();
@@ -394,36 +550,130 @@ if (!$cache and moodle_needs_upgrading()) {
redirect($PAGE->url);
}
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
// Cancel all plugin installations.
if ($abortinstallx) {
require_sesskey();
$abortables = $pluginman->list_cancellable_installations();
if ($abortables) {
if ($confirmabortinstall) {
foreach ($abortables as $plugin) {
$pluginman->cancel_plugin_installation($plugin->component);
}
redirect($PAGE->url);
} else {
$continue = new moodle_url($PAGE->url, array('abortinstallx' => $abortinstallx,
'confirmabortinstall' => 1));
echo $output->upgrade_confirm_abort_install_page($abortables, $continue);
die();
}
}
redirect($PAGE->url);
}
$deployer = \core\update\deployer::instance();
if ($deployer->enabled()) {
$deployer->initialize($PAGE->url, $PAGE->url);
// Cancel single plugin installation.
if ($abortinstall) {
require_sesskey();
if ($confirmabortinstall) {
$pluginman->cancel_plugin_installation($abortinstall);
redirect($PAGE->url);
} else {
$continue = new moodle_url($PAGE->url, array('abortinstall' => $abortinstall, 'confirmabortinstall' => 1));
$abortable = $pluginman->get_plugin_info($abortinstall);
if ($pluginman->can_cancel_plugin_installation($abortable)) {
echo $output->upgrade_confirm_abort_install_page(array($abortable), $continue);
die();
}
redirect($PAGE->url);
}
}
$deploydata = $deployer->submitted_data();
if (!empty($deploydata)) {
require_sesskey();
echo $output->upgrade_plugin_confirm_deploy_page($deployer, $deploydata);
die();
// Cancel all plugins upgrades (that is, restore archived versions).
if ($abortupgradex) {
require_sesskey();
$restorable = $pluginman->list_restorable_archives();
if ($restorable) {
upgrade_install_plugins($restorable, $confirmabortupgrade,
get_string('cancelupgradehead', 'core_plugin'),
new moodle_url($PAGE->url, array('abortupgradex' => 1, 'confirmabortupgrade' => 1))
);
}
redirect($PAGE->url);
}
// Cancel single plugin upgrade (that is, install the archived version).
if ($abortupgrade) {
require_sesskey();
$restorable = $pluginman->list_restorable_archives();
if (isset($restorable[$abortupgrade])) {
$restorable = array($restorable[$abortupgrade]);
upgrade_install_plugins($restorable, $confirmabortupgrade,
get_string('cancelupgradehead', 'core_plugin'),
new moodle_url($PAGE->url, array('abortupgrade' => $abortupgrade, 'confirmabortupgrade' => 1))
);
}
redirect($PAGE->url);
}
// Install all available missing dependencies.
if ($installdepx) {
require_sesskey();
$installable = $pluginman->filter_installable($pluginman->missing_dependencies(true));
upgrade_install_plugins($installable, $confirminstalldep,
get_string('dependencyinstallhead', 'core_plugin'),
new moodle_url($PAGE->url, array('installdepx' => 1, 'confirminstalldep' => 1))
);
}
// Install single available missing dependency.
if ($installdep) {
require_sesskey();
$installable = $pluginman->filter_installable($pluginman->missing_dependencies(true));
if (!empty($installable[$installdep])) {
$installable = array($installable[$installdep]);
upgrade_install_plugins($installable, $confirminstalldep,
get_string('dependencyinstallhead', 'core_plugin'),
new moodle_url($PAGE->url, array('installdep' => $installdep, 'confirminstalldep' => 1))
);
}
}
// Install all available updates.
if ($installupdatex) {
require_sesskey();
$installable = $pluginman->filter_installable($pluginman->available_updates());
upgrade_install_plugins($installable, $confirminstallupdate,
get_string('updateavailableinstallallhead', 'core_admin'),
new moodle_url($PAGE->url, array('installupdatex' => 1, 'confirminstallupdate' => 1))
);
}
// Install single available update.
if ($installupdate and $installupdateversion) {
require_sesskey();
if ($pluginman->is_remote_plugin_installable($installupdate, $installupdateversion)) {
$installable = array($pluginman->get_remote_plugin_info($installupdate, $installupdateversion, true));
upgrade_install_plugins($installable, $confirminstallupdate,
get_string('updateavailableinstallallhead', 'core_admin'),
new moodle_url($PAGE->url, array('installupdate' => $installupdate,
'installupdateversion' => $installupdateversion, 'confirminstallupdate' => 1)
)
);
}
}
// Show plugins info.
echo $output->upgrade_plugin_check_page(core_plugin_manager::instance(), \core\update\checker::instance(),
echo $output->upgrade_plugin_check_page($pluginman, \core\update\checker::instance(),
$version, $showallplugins,
new moodle_url($PAGE->url),
new moodle_url('/admin/index.php', array('confirmplugincheck'=>1, 'cache'=>0)));
new moodle_url($PAGE->url, array('confirmplugincheck' => 1, 'cache' => 0)));
die();
}
// Make sure plugin dependencies are always checked.
$failed = array();
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
/** @var core_admin_renderer $output */
if (!$pluginman->all_plugins_ok($version, $failed)) {
$output = $PAGE->get_renderer('core', 'admin');
$reloadurl = new moodle_url('/admin/index.php', array('cache' => 0));
echo $output->unsatisfied_dependencies_page($version, $failed, $reloadurl);
echo $output->unsatisfied_dependencies_page($version, $failed, $PAGE->url);
die();
}
unset($failed);
@@ -569,7 +819,7 @@ $updateschecker = \core\update\checker::instance();
$availableupdates = array();
$availableupdatesfetch = null;
if (empty($CFG->disableupdatenotifications)) {
if ($updateschecker->enabled()) {
// Only compute the update information when it is going to be displayed to the user.
$availableupdates['core'] = $updateschecker->get_update_info('core',
array('minmaturity' => $CFG->updateminmaturity, 'notifybuilds' => $CFG->updatenotifybuilds));
@@ -578,14 +828,13 @@ if (empty($CFG->disableupdatenotifications)) {
$pluginman = core_plugin_manager::instance();
foreach ($pluginman->get_plugins() as $plugintype => $plugintypeinstances) {
foreach ($plugintypeinstances as $pluginname => $plugininfo) {
if (!empty($plugininfo->availableupdates)) {
foreach ($plugininfo->availableupdates as $pluginavailableupdate) {
if ($pluginavailableupdate->version > $plugininfo->versiondisk) {
if (!isset($availableupdates[$plugintype.'_'.$pluginname])) {
$availableupdates[$plugintype.'_'.$pluginname] = array();
}
$availableupdates[$plugintype.'_'.$pluginname][] = $pluginavailableupdate;
$pluginavailableupdates = $plugininfo->available_updates();
if (!empty($pluginavailableupdates)) {
foreach ($pluginavailableupdates as $pluginavailableupdate) {
if (!isset($availableupdates[$plugintype.'_'.$pluginname])) {
$availableupdates[$plugintype.'_'.$pluginname] = array();
}
$availableupdates[$plugintype.'_'.$pluginname][] = $pluginavailableupdate;
}
}
}
@@ -600,12 +849,14 @@ $buggyiconvnomb = (!function_exists('mb_convert_encoding') and @iconv('UTF-8', '
$registered = $DB->count_records('registration_hubs', array('huburl' => HUB_MOODLEORGHUBURL, 'confirmed' => 1));
// Check if there are any cache warnings.
$cachewarnings = cache_helper::warnings();
// Check if there are events 1 API handlers.
$eventshandlers = $DB->get_records_sql('SELECT DISTINCT component FROM {events_handlers}');
$themedesignermode = !empty($CFG->themedesignermode);
admin_externalpage_setup('adminnotifications');
/* @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
echo $output->admin_notifications_page($maturity, $insecuredataroot, $errorsdisplayed, $cronoverdue, $dbproblems,
$maintenancemode, $availableupdates, $availableupdatesfetch, $buggyiconvnomb,
$registered, $cachewarnings);
$registered, $cachewarnings, $eventshandlers, $themedesignermode);
+85
View File
@@ -24,6 +24,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Return a list of page types
* @param string $pagetype current page type
@@ -37,3 +39,86 @@ function admin_page_type_list($pagetype, $parentcontext, $currentcontext) {
);
return $array;
}
/**
* File serving.
*
* @param stdClass $course The course object.
* @param stdClass $cm The cm object.
* @param context $context The context object.
* @param string $filearea The file area.
* @param array $args List of arguments.
* @param bool $forcedownload Whether or not to force the download of the file.
* @param array $options Array of options.
* @return void|false
*/
function core_admin_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = array()) {
global $CFG;
if (in_array($filearea, ['logo', 'logocompact'])) {
$size = array_shift($args); // The path hides the size.
$itemid = clean_param(array_shift($args), PARAM_INT);
$filename = clean_param(array_shift($args), PARAM_FILE);
$themerev = theme_get_revision();
if ($themerev <= 0) {
// Normalise to 0 as -1 doesn't place well with paths.
$themerev = 0;
}
// Extract the requested width and height.
$maxwidth = 0;
$maxheight = 0;
if (preg_match('/^\d+x\d+$/', $size)) {
list($maxwidth, $maxheight) = explode('x', $size);
$maxwidth = clean_param($maxwidth, PARAM_INT);
$maxheight = clean_param($maxheight, PARAM_INT);
}
$lifetime = 0;
if ($itemid > 0 && $themerev == $itemid) {
// The itemid is $CFG->themerev, when 0 or less no caching. Also no caching when they don't match.
$lifetime = DAYSECS * 60;
}
// Anyone, including guests and non-logged in users, can view the logos.
$options = ['cacheability' => 'public'];
// Check if we've got a cached file to return. When lifetime is 0 then we don't want to cached one.
$candidate = $CFG->localcachedir . "/core_admin/$themerev/$filearea/{$maxwidth}x{$maxheight}/$filename";
if (file_exists($candidate) && $lifetime > 0) {
send_file($candidate, $filename, $lifetime, 0, false, false, '', false, $options);
}
// Find the original file.
$fs = get_file_storage();
$filepath = "/{$context->id}/core_admin/{$filearea}/0/{$filename}";
if (!$file = $fs->get_file_by_hash(sha1($filepath))) {
send_file_not_found();
}
// No need for resizing, but if the file should be cached we save it so we can serve it fast next time.
if (empty($maxwidth) && empty($maxheight)) {
if ($lifetime) {
file_safe_save_content($file->get_content(), $candidate);
}
send_stored_file($file, $lifetime, 0, false, $options);
}
// Proceed with the resizing.
$filedata = $file->resize_image($maxwidth, $maxheight);
if (!$filedata) {
send_file_not_found();
}
// If we don't want to cached the file, serve now and quit.
if (!$lifetime) {
send_content_uncached($filedata, $filename);
}
// Save, serve and quit.
file_safe_save_content($filedata, $candidate);
send_file($candidate, $filename, $lifetime, 0, false, false, '', false, $options);
}
send_file_not_found();
}
+1 -1
View File
@@ -27,7 +27,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
+1 -1
View File
@@ -29,7 +29,7 @@
*/
// Security check.
if (!file_exists(dirname(__FILE__).'/mailout-debugger.enable')) {
if (!file_exists(__DIR__.'/mailout-debugger.enable')) {
mdie("Disabled.");
}
$tmpdir=sys_get_temp_dir(); // default
+79
View File
@@ -0,0 +1,79 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Enrol config manipulation script.
*
* @package core
* @subpackage media
* @copyright 2016 Marina Glancy
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('NO_OUTPUT_BUFFERING', true);
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$action = required_param('action', PARAM_ALPHANUMEXT);
$media = required_param('media', PARAM_PLUGIN);
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/media.php');
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', context_system::instance());
require_sesskey();
$plugins = core_plugin_manager::instance()->get_plugins_of_type('media');
$sortorder = array_values(\core\plugininfo\media::get_enabled_plugins());
$return = new moodle_url('/admin/settings.php', array('section' => 'managemediaplayers'));
if (!array_key_exists($media, $plugins)) {
redirect($return);
}
switch ($action) {
case 'disable':
$plugins[$media]->set_enabled(false);
break;
case 'enable':
$plugins[$media]->set_enabled(true);
break;
case 'up':
if (($pos = array_search($media, $sortorder)) > 0) {
$tmp = $sortorder[$pos - 1];
$sortorder[$pos - 1] = $sortorder[$pos];
$sortorder[$pos] = $tmp;
\core\plugininfo\media::set_enabled_plugins($sortorder);
}
break;
case 'down':
if ((($pos = array_search($media, $sortorder)) !== false) && ($pos < count($sortorder) - 1)) {
$tmp = $sortorder[$pos + 1];
$sortorder[$pos + 1] = $sortorder[$pos];
$sortorder[$pos] = $tmp;
\core\plugininfo\media::set_enabled_plugins($sortorder);
}
break;
}
redirect($return);
+1 -1
View File
@@ -21,7 +21,7 @@
* @copyright 2011 Lancaster University Network Services Limited
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->dirroot . '/message/lib.php');
require_once($CFG->libdir.'/adminlib.php');
+1 -1
View File
@@ -2,7 +2,7 @@
// Allows the admin to control user logins from remote moodles.
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
require_once(__DIR__ . '/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/lib.php');
+1 -1
View File
@@ -27,7 +27,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir . '/adminlib.php');
$step = optional_param('step', 'verify', PARAM_ALPHA);
+1 -1
View File
@@ -2,7 +2,7 @@
// Allows the admin to configure mnet stuff
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/lib.php');
+2 -1
View File
@@ -60,7 +60,8 @@ class mnet_simple_host_form extends moodleform {
}
if ($host = $DB->get_record('mnet_host', array('wwwroot' => $wwwroot))) {
global $CFG;
return array('wwwroot' => get_string('hostexists', 'mnet', $CFG->wwwroot . '/admin/mnet/peers.php?hostid=' . $host->id));
return array('wwwroot' => get_string('hostexists', 'mnet',
new moodle_url('/admin/mnet/peers.php', array('hostid' => $host->id))));
}
return array();
}
+3 -3
View File
@@ -27,7 +27,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot.'/mnet/lib.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/mnet/peer_forms.php');
@@ -109,7 +109,7 @@ if (!empty($hostid)) {
$mnet_peer->set_id($hostid);
echo $OUTPUT->header();
$currenttab = 'mnetdetails';
require_once($CFG->dirroot . '/admin/mnet/tabs.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/tabs.php');
if ($hostid != $CFG->mnet_all_hosts_id) {
$mnet_peer->currentkey = mnet_get_public_key($mnet_peer->wwwroot, $mnet_peer->application);
@@ -144,7 +144,7 @@ if (empty($noreviewform) && $id = optional_param('id', 0, PARAM_INT)) {
// we're editing an existing one, so set up the tabs
$currenttab = 'mnetdetails';
$mnet_peer->set_id($id);
require_once($CFG->dirroot . '/admin/mnet/tabs.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/tabs.php');
} else if (empty($noreviewform) && ($wwwroot = optional_param('wwwroot', '', PARAM_URL)) && ($applicationid = optional_param('applicationid', 0, PARAM_INT))) {
$application = $DB->get_field('mnet_application', 'name', array('id'=>$applicationid));
$mnet_peer->bootstrap($wwwroot, null, $application);
+2 -2
View File
@@ -24,9 +24,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot . '/admin/mnet/profilefields_form.php');
require_once($CFG->dirroot . '/' . $CFG->admin .'/mnet/profilefields_form.php');
$mnet = get_mnet_environment();
require_login();
+3 -3
View File
@@ -25,9 +25,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot . '/admin/mnet/services_form.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/services_form.php');
$mnet = get_mnet_environment();
require_login();
@@ -82,7 +82,7 @@ if ($formdata = $mform->get_data()) {
echo $OUTPUT->header();
$currenttab = 'mnetservices';
require_once($CFG->dirroot . '/admin/mnet/tabs.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/tabs.php');
echo $OUTPUT->box_start();
$s = mnet_get_service_info($mnet_peer, false); // basic data only
$mform->set_data($s);
+1 -1
View File
@@ -12,7 +12,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package mnet
*/
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require(__DIR__.'/../../config.php');
require_once $CFG->dirroot.'/mnet/xmlrpc/client.php';
require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/lib.php');
+1 -1
View File
@@ -1,7 +1,7 @@
<?php
// Allows the admin to configure services for remote hosts
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
include_once($CFG->dirroot.'/mnet/lib.php');
+1 -1
View File
@@ -28,7 +28,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)).'/config.php');
require_once(__DIR__ . '/../config.php');
// The authorization code generated by the authorization server.
$code = required_param('code', PARAM_RAW);
+1 -1
View File
@@ -8,7 +8,7 @@
echo $OUTPUT->header();
echo '<div class="phpinfo">';
echo '<div class="phpinfo text-ltr">';
ob_start();
phpinfo(INFO_GENERAL + INFO_CONFIGURATION + INFO_MODULES + INFO_VARIABLES);
+1 -1
View File
@@ -26,7 +26,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
+63 -54
View File
@@ -18,32 +18,27 @@
/**
* UI for general plugins management
*
* Supported HTTP parameters:
*
* ?fetchremote=1 - check for available updates
* ?updatesonly=1 - display plugins with available update only
* ?contribonly=1 - display non-standard add-ons only
* ?uninstall=foo_bar - uninstall the given plugin
* ?delete=foo_bar - delete the plugin folder (it must not be installed)
* &confirm=1 - confirm the uninstall or delete action
*
* @package core
* @subpackage admin
* @copyright 2011 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/filelib.php');
$fetchremote = optional_param('fetchremote', false, PARAM_BOOL);
$updatesonly = optional_param('updatesonly', false, PARAM_BOOL);
$contribonly = optional_param('contribonly', false, PARAM_BOOL);
$uninstall = optional_param('uninstall', '', PARAM_COMPONENT);
$delete = optional_param('delete', '', PARAM_COMPONENT);
$confirmed = optional_param('confirm', false, PARAM_BOOL);
$return = optional_param('return', 'overview', PARAM_ALPHA);
$fetchupdates = optional_param('fetchupdates', false, PARAM_BOOL); // Check for available plugins updates.
$updatesonly = optional_param('updatesonly', false, PARAM_BOOL); // Show updateable plugins only.
$contribonly = optional_param('contribonly', false, PARAM_BOOL); // Show additional plugins only.
$uninstall = optional_param('uninstall', '', PARAM_COMPONENT); // Uninstall the plugin.
$delete = optional_param('delete', '', PARAM_COMPONENT); // Delete the plugin folder after it is uninstalled.
$confirmed = optional_param('confirm', false, PARAM_BOOL); // Confirm the uninstall/delete action.
$return = optional_param('return', 'overview', PARAM_ALPHA); // Where to return after uninstall.
$installupdate = optional_param('installupdate', null, PARAM_COMPONENT); // Install given available update.
$installupdateversion = optional_param('installupdateversion', null, PARAM_INT); // Version of the available update to install.
$installupdatex = optional_param('installupdatex', false, PARAM_BOOL); // Install all available plugin updates.
$confirminstallupdate = optional_param('confirminstallupdate', false, PARAM_BOOL); // Available update(s) install confirmed?
// NOTE: do not use admin_externalpage_setup() here because it loads
// full admin tree which is not possible during uninstallation.
@@ -52,15 +47,19 @@ require_login();
$syscontext = context_system::instance();
require_capability('moodle/site:config', $syscontext);
// URL params we want to maintain on redirects.
$pageparams = array('updatesonly' => $updatesonly, 'contribonly' => $contribonly);
$pageurl = new moodle_url('/admin/plugins.php', $pageparams);
$pluginman = core_plugin_manager::instance();
if ($uninstall) {
require_sesskey();
if (!$confirmed) {
admin_externalpage_setup('pluginsoverview');
admin_externalpage_setup('pluginsoverview', '', $pageparams);
} else {
$PAGE->set_url('/admin/plugins.php');
$PAGE->set_url($pageurl);
$PAGE->set_context($syscontext);
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
@@ -122,7 +121,7 @@ if ($uninstall) {
if ($delete and $confirmed) {
require_sesskey();
$PAGE->set_url('/admin/plugins.php');
$PAGE->set_url($pageurl);
$PAGE->set_context($syscontext);
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
@@ -149,13 +148,6 @@ if ($delete and $confirmed) {
'core_plugin_manager::get_plugin_info() returned not-null versiondb for the plugin to be deleted');
}
// Make sure the folder is removable.
if (!$pluginman->is_plugin_folder_removable($pluginfo->component)) {
throw new moodle_exception('err_removing_unremovable_folder', 'core_plugin', '',
array('plugin' => $pluginfo->component, 'rootdir' => $pluginfo->rootdir),
'plugin root folder is not removable as expected');
}
// Make sure the folder is within Moodle installation tree.
if (strpos($pluginfo->rootdir, $CFG->dirroot) !== 0) {
throw new moodle_exception('err_unexpected_plugin_rootdir', 'core_plugin', '',
@@ -164,44 +156,61 @@ if ($delete and $confirmed) {
}
// So long, and thanks for all the bugs.
fulldelete($pluginfo->rootdir);
// Reset op code caches.
if (function_exists('opcache_reset')) {
opcache_reset();
}
$pluginman->remove_plugin_folder($pluginfo);
// We need to execute upgrade to make sure everything including caches is up to date.
redirect(new moodle_url('/admin/index.php'));
}
admin_externalpage_setup('pluginsoverview');
// Install all avilable updates.
if ($installupdatex) {
require_once($CFG->libdir.'/upgradelib.php');
require_sesskey();
$PAGE->set_url($pageurl);
$PAGE->set_context($syscontext);
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
$installable = $pluginman->filter_installable($pluginman->available_updates());
upgrade_install_plugins($installable, $confirminstallupdate,
get_string('updateavailableinstallallhead', 'core_admin'),
new moodle_url($PAGE->url, array('installupdatex' => 1, 'confirminstallupdate' => 1))
);
}
// Install single available update.
if ($installupdate and $installupdateversion) {
require_once($CFG->libdir.'/upgradelib.php');
require_sesskey();
$PAGE->set_url($pageurl);
$PAGE->set_context($syscontext);
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
if ($pluginman->is_remote_plugin_installable($installupdate, $installupdateversion)) {
$installable = array($pluginman->get_remote_plugin_info($installupdate, $installupdateversion, true));
upgrade_install_plugins($installable, $confirminstallupdate,
get_string('updateavailableinstallallhead', 'core_admin'),
new moodle_url($PAGE->url, array('installupdate' => $installupdate,
'installupdateversion' => $installupdateversion, 'confirminstallupdate' => 1)
)
);
}
}
admin_externalpage_setup('pluginsoverview', '', $pageparams);
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
$checker = \core\update\checker::instance();
// Filtering options.
$options = array(
'updatesonly' => $updatesonly,
'contribonly' => $contribonly,
);
if ($fetchremote) {
if ($fetchupdates) {
require_sesskey();
$checker->fetch();
redirect(new moodle_url($PAGE->url, $options));
redirect($PAGE->url);
}
$deployer = \core\update\deployer::instance();
if ($deployer->enabled()) {
$myurl = new moodle_url($PAGE->url, array('updatesonly' => $updatesonly, 'contribonly' => $contribonly));
$deployer->initialize($myurl, new moodle_url('/admin'));
$deploydata = $deployer->submitted_data();
if (!empty($deploydata)) {
echo $output->upgrade_plugin_confirm_deploy_page($deployer, $deploydata);
die();
}
}
echo $output->plugin_management_page($pluginman, $checker, $options);
echo $output->plugin_management_page($pluginman, $checker, $pageparams);
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir . '/portfoliolib.php');
require_once($CFG->libdir . '/portfolio/forms.php');
require_once($CFG->libdir . '/adminlib.php');
+1 -1
View File
@@ -3,7 +3,7 @@
//error_reporting(0);
//ini_set('display_errors',0);
require_once(dirname(dirname(__FILE__)).'/config.php');
require_once(__DIR__ . '/../config.php');
$tmp = explode('@',$_ENV['RECIPIENT']);
$address = $tmp[0];
+1 -1
View File
@@ -25,7 +25,7 @@
*/
require_once(dirname(__FILE__) . '/../config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir . '/questionlib.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/tablelib.php');
+1 -1
View File
@@ -25,7 +25,7 @@
*/
require_once(dirname(__FILE__) . '/../config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir . '/questionlib.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/tablelib.php');
+1
View File
@@ -329,6 +329,7 @@ class site_registration_form extends moodleform {
array('class' => 'registration_textfield'));
$mform->setType('contactphone', PARAM_TEXT);
$mform->addHelpButton('contactphone', 'sitephone', 'hub');
$mform->setForceLtr('contactphone');
$mform->addElement('text', 'contactemail', get_string('siteemail', 'hub'),
array('class' => 'registration_textfield'));
+696 -283
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -27,7 +27,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
+1 -1
View File
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->dirroot . '/repository/lib.php');
require_once($CFG->libdir . '/adminlib.php');
+1 -1
View File
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(__DIR__ . '/../config.php');
require_once($CFG->dirroot . '/repository/lib.php');
require_once($CFG->libdir . '/adminlib.php');
+1 -1
View File
@@ -23,7 +23,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require(dirname(dirname(__FILE__)) . '/config.php');
require(__DIR__ . '/../config.php');
require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup('resetemoticons');
+85
View File
@@ -0,0 +1,85 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file processes AJAX requests and returns JSON
*
* This is a server part of yui permissions manager module
*
* @package core_role
* @copyright 2015 Martin Mastny
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('AJAX_SCRIPT', true);
require(__DIR__ . '/../../config.php');
$contextid = required_param('contextid', PARAM_INT);
$getroles = optional_param('getroles', 0, PARAM_BOOL);
list($context, $course, $cm) = get_context_info_array($contextid);
$PAGE->set_context($context);
require_login($course, false, $cm);
require_capability('moodle/role:review', $context);
require_sesskey();
$OUTPUT->header();
list($overridableroles, $overridecounts, $nameswithcounts) = get_overridable_roles($context,
ROLENAME_BOTH, true);
if ($getroles) {
echo json_encode($overridableroles);
die();
}
$capability = required_param('capability', PARAM_CAPABILITY);
$roleid = required_param('roleid', PARAM_INT);
$action = required_param('action', PARAM_ALPHA);
$capability = $DB->get_record('capabilities', array('name' => $capability), '*', MUST_EXIST);
if (!isset($overridableroles[$roleid])) {
throw new moodle_exception('invalidarguments');
}
if (!has_capability('moodle/role:override', $context)) {
if (!has_capability('moodle/role:safeoverride', $context) || !is_safe_capability($capability)) {
require_capability('moodle/role:override', $context);
}
}
switch ($action) {
case 'allow':
role_change_permission($roleid, $context, $capability->name, CAP_ALLOW);
break;
case 'prevent':
role_change_permission($roleid, $context, $capability->name, CAP_PREVENT);
break;
case 'prohibit':
role_change_permission($roleid, $context, $capability->name, CAP_PROHIBIT);
break;
case 'unprohibit':
role_change_permission($roleid, $context, $capability->name, CAP_INHERIT);
break;
default:
throw new moodle_exception('invalidarguments');
}
echo json_encode($action);
die();
+1 -1
View File
@@ -22,7 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../../config.php');
require_once(__DIR__ . '/../../config.php');
require_once($CFG->libdir . '/adminlib.php');
$mode = required_param('mode', PARAM_ALPHANUMEXT);
+1 -1
View File
@@ -22,7 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../../config.php');
require_once(__DIR__ . '/../../config.php');
$contextid = required_param('contextid', PARAM_INT);
+22 -6
View File
@@ -106,18 +106,22 @@ abstract class core_role_capability_table_base {
$component = $capability->component;
// Start the row.
echo '<tr class="' . implode(' ', array_unique(array_merge(array('rolecap'),
$this->get_row_classes($capability)))) . '">';
$rowattributes = $this->get_row_attributes($capability);
// Handle class attributes same as other.
$rowclasses = array_unique(array_merge(array('rolecap'), $this->get_row_classes($capability)));
if (array_key_exists('class', $rowattributes)) {
$rowclasses = array_unique(array_merge($rowclasses, array($rowattributes['class'])));
}
$rowattributes['class'] = implode(' ', $rowclasses);
// Table cell for the capability name.
echo '<th scope="row" class="name"><span class="cap-desc">' . get_capability_docs_link($capability) .
$contents = '<th scope="row" class="name"><span class="cap-desc">' . get_capability_docs_link($capability) .
'<span class="cap-name">' . $capability->name . '</span></span></th>';
// Add the cells specific to this table.
$this->add_row_cells($capability);
$contents .= $this->add_row_cells($capability);
// End the row.
echo "</tr>\n";
echo html_writer::tag('tr', $contents, $rowattributes);
}
// End of the table.
@@ -167,6 +171,17 @@ abstract class core_role_capability_table_base {
return array();
}
/**
* For subclasses to override. Additional attributes to be added to
* each table row for the capability
*
* @param stdClass $capability the capability this row relates to.
* @return array attribute names and their values.
*/
protected function get_row_attributes($capability) {
return array();
}
/**
* For subclasses to override. Output the data cells for this capability. The
* capability name cell will already have been output.
@@ -174,6 +189,7 @@ abstract class core_role_capability_table_base {
* You can rely on get_row_classes always being called before add_row_cells.
*
* @param stdClass $capability the capability this row relates to.
* @return string html of row cells
*/
protected abstract function add_row_cells($capability);
}
@@ -35,7 +35,6 @@ abstract class core_role_capability_table_with_risks extends core_role_capabilit
protected $allpermissions; // We don't need perms ourselves, but all our subclasses do.
protected $strperms; // Language string cache.
protected $risksurl; // URL in moodledocs about risks.
protected $riskicons = array(); // Cache to avoid regenerating the HTML for each risk icon.
/** @var array The capabilities to highlight as default/inherited. */
protected $parentpermissions;
protected $displaypermissions;
@@ -163,15 +162,16 @@ abstract class core_role_capability_table_with_risks extends core_role_capabilit
protected abstract function add_permission_cells($capability);
protected function add_row_cells($capability) {
$this->add_permission_cells($capability);
$cells = $this->add_permission_cells($capability);
// One cell for each possible risk.
foreach ($this->allrisks as $riskname => $risk) {
echo '<td class="risk ' . str_replace('risk', '', $riskname) . '">';
$cells .= '<td class="risk ' . str_replace('risk', '', $riskname) . '">';
if ($risk & (int)$capability->riskbitmask) {
echo $this->get_risk_icon($riskname);
$cells .= $this->get_risk_icon($riskname);
}
echo '</td>';
$cells .= '</td>';
}
return $cells;
}
/**
@@ -182,12 +182,12 @@ abstract class core_role_capability_table_with_risks extends core_role_capabilit
*/
public function get_risk_icon($type) {
global $OUTPUT;
if (!isset($this->riskicons[$type])) {
$iconurl = $OUTPUT->pix_url('i/' . str_replace('risk', 'risk_', $type));
$text = '<img src="' . $iconurl . '" alt="' . get_string($type . 'short', 'admin') . '" />';
$action = new popup_action('click', $this->risksurl, 'docspopup');
$this->riskicons[$type] = $OUTPUT->action_link($this->risksurl, $text, $action, array('title'=>get_string($type, 'admin')));
}
return $this->riskicons[$type];
$iconurl = $OUTPUT->pix_url('i/' . str_replace('risk', 'risk_', $type));
$text = '<img src="' . $iconurl . '" alt="' . get_string($type . 'short', 'admin') . '" />';
$action = new popup_action('click', $this->risksurl, 'docspopup');
$riskicon = $OUTPUT->action_link($this->risksurl, $text, $action, array('title'=>get_string($type, 'admin')));
return $riskicon;
}
}
@@ -79,6 +79,6 @@ class core_role_check_capability_table extends core_role_capability_table_base {
$a->fullname = $this->fullname;
$a->capability = $capability->name;
$a->context = $this->contextname;
echo '<td>' . $result . '</td>';
return '<td>' . $result . '</td>';
}
}
@@ -413,7 +413,7 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
}
public function save_changes() {
global $DB;
global $DB, $CFG;
if (!$this->roleid) {
// Creating role.
@@ -422,6 +422,13 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
} else {
// Updating role.
$DB->update_record('role', $this->role);
// This will ensure the course contacts cache is purged so name changes get updated in
// the UI. It would be better to do this only when we know that fields affected are
// updated. But thats getting into the weeds of the coursecat cache and role edits
// should not be that frequent, so here is the ugly brutal approach.
require_once($CFG->libdir . '/coursecatlib.php');
coursecat::role_assignment_changed($this->role->id, context_system::instance());
}
// Assignable contexts.
@@ -628,6 +635,7 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
protected function add_permission_cells($capability) {
// One cell for each possible permission.
$content = '';
foreach ($this->displaypermissions as $perm => $permname) {
$strperm = $this->strperms[$permname];
$extraclass = '';
@@ -638,11 +646,12 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi
if ($this->permissions[$capability->name] == $perm) {
$checked = 'checked="checked" ';
}
echo '<td class="' . $permname . $extraclass . '">';
echo '<label><input type="radio" name="' . $capability->name .
$content .= '<td class="' . $permname . $extraclass . '">';
$content .= '<label><input type="radio" name="' . $capability->name .
'" value="' . $perm . '" ' . $checked . '/> ';
echo '<span class="note">' . $strperm . '</span>';
echo '</label></td>';
$content .= '<span class="note">' . $strperm . '</span>';
$content .= '</label></td>';
}
return $content;
}
}
@@ -45,19 +45,20 @@ class core_role_define_role_table_basic extends core_role_define_role_table_adva
$perm = $this->permissions[$capability->name];
$permname = $this->allpermissions[$perm];
$defaultperm = $this->allpermissions[$this->parentpermissions[$capability->name]];
echo '<td class="' . $permname . '">';
$content = '<td class="' . $permname . '">';
if ($perm == CAP_ALLOW || $perm == CAP_INHERIT) {
$checked = '';
if ($perm == CAP_ALLOW) {
$checked = 'checked="checked" ';
}
echo '<input type="hidden" name="' . $capability->name . '" value="' . CAP_INHERIT . '" />';
echo '<label><input type="checkbox" name="' . $capability->name .
$content .= '<input type="hidden" name="' . $capability->name . '" value="' . CAP_INHERIT . '" />';
$content .= '<label><input type="checkbox" name="' . $capability->name .
'" value="' . CAP_ALLOW . '" ' . $checked . '/> ' . $this->strallow . '</label>';
} else {
echo '<input type="hidden" name="' . $capability->name . '" value="' . $perm . '" />';
echo $this->strperms[$permname] . '<span class="note">' . $this->stradvmessage . '</span>';
$content .= '<input type="hidden" name="' . $capability->name . '" value="' . $perm . '" />';
$content .= $this->strperms[$permname] . '<span class="note">' . $this->stradvmessage . '</span>';
}
echo '</td>';
$content .= '</td>';
return $content;
}
}
@@ -73,6 +73,7 @@ class core_role_override_permissions_table_advanced extends core_role_capability
}
// One cell for each possible permission.
$content = '';
foreach ($this->displaypermissions as $perm => $permname) {
$strperm = $this->strperms[$permname];
$extraclass = '';
@@ -83,8 +84,8 @@ class core_role_override_permissions_table_advanced extends core_role_capability
if ($this->permissions[$capability->name] == $perm) {
$checked = 'checked="checked" ';
}
echo '<td class="' . $permname . $extraclass . '">';
echo '<label><input type="radio" name="' . $capability->name .
$content .= '<td class="' . $permname . $extraclass . '">';
$content .= '<label><input type="radio" name="' . $capability->name .
'" value="' . $perm . '" ' . $checked . $disabled . '/> ';
if ($perm == CAP_INHERIT) {
$inherited = $this->parentpermissions[$capability->name];
@@ -95,8 +96,9 @@ class core_role_override_permissions_table_advanced extends core_role_capability
}
$strperm .= ' (' . $inherited . ')';
}
echo '<span class="note">' . $strperm . '</span>';
echo '</label></td>';
$content .= '<span class="note">' . $strperm . '</span>';
$content .= '</label></td>';
}
return $content;
}
}
+41 -16
View File
@@ -67,6 +67,8 @@ class core_role_permissions_table extends core_role_capability_table_base {
protected function add_row_cells($capability) {
global $OUTPUT, $PAGE;
$renderer = $PAGE->get_renderer('core');
$adminurl = new moodle_url("/admin/");
$context = $this->context;
$contextid = $this->context->id;
@@ -75,7 +77,6 @@ class core_role_permissions_table extends core_role_capability_table_base {
$overridableroles = $this->overridableroles;
$roles = $this->roles;
list($needed, $forbidden) = get_roles_with_cap_in_context($context, $capability->name);
$neededroles = array();
$forbiddenroles = array();
@@ -91,40 +92,50 @@ class core_role_permissions_table extends core_role_capability_table_base {
foreach ($roles as $id => $name) {
if (isset($needed[$id])) {
$neededroles[$id] = $roles[$id];
$templatecontext = array("rolename" => $name, "roleid" => $id, "action" => "prevent", "spanclass" => "allowed",
"linkclass" => "preventlink", "adminurl" => $adminurl->out(), "imageurl" => "");
if (isset($overridableroles[$id]) and ($allowoverrides or ($allowsafeoverrides and is_safe_capability($capability)))) {
$preventurl = new moodle_url($PAGE->url, array('contextid'=>$contextid, 'roleid'=>$id, 'capability'=>$capability->name, 'prevent'=>1));
$neededroles[$id] .= $OUTPUT->action_icon($preventurl, new pix_icon('t/delete', get_string('prevent', 'core_role')));
$templatecontext['imageurl'] = $renderer->pix_url('t/delete');
}
$neededroles[$id] = $renderer->render_from_template('core/permissionmanager_role', $templatecontext);
}
}
$neededroles = implode(', ', $neededroles);
$neededroles = implode(' ', $neededroles);
foreach ($roles as $id => $name) {
if (isset($forbidden[$id]) and ($allowoverrides or ($allowsafeoverrides and is_safe_capability($capability)))) {
$forbiddenroles[$id] = $roles[$id];
$templatecontext = array("rolename" => $name, "roleid" => $id, "action" => "unprohibit",
"spanclass" => "forbidden", "linkclass" => "unprohibitlink", "adminurl" => $adminurl->out(),
"imageurl" => "");
if (isset($overridableroles[$id]) and prohibit_is_removable($id, $context, $capability->name)) {
$unprohibiturl = new moodle_url($PAGE->url, array('contextid'=>$contextid, 'roleid'=>$id, 'capability'=>$capability->name, 'unprohibit'=>1));
$forbiddenroles[$id] .= $OUTPUT->action_icon($unprohibiturl, new pix_icon('t/delete', get_string('delete')));
$templatecontext['imageurl'] = $renderer->pix_url('t/delete');
}
$forbiddenroles[$id] = $renderer->render_from_template('core/permissionmanager_role', $templatecontext);
}
}
$forbiddenroles = implode(', ', $forbiddenroles);
$forbiddenroles = implode(' ', $forbiddenroles);
if ($allowable and ($allowoverrides or ($allowsafeoverrides and is_safe_capability($capability)))) {
$allowurl = new moodle_url($PAGE->url, array('contextid'=>$contextid, 'capability'=>$capability->name, 'allow'=>1));
$neededroles .= '<div class="allowmore">'.$OUTPUT->action_icon($allowurl, new pix_icon('t/add', get_string('allow', 'core_role'))).'</div>';
$allowurl = new moodle_url($PAGE->url, array('contextid' => $contextid,
'capability' => $capability->name, 'allow' => 1));
$allowicon = $OUTPUT->action_icon($allowurl, new pix_icon('t/add', get_string('allow', 'core_role')), null,
array('class' => 'allowlink', 'data-action' => 'allow'));
$neededroles .= html_writer::div($allowicon, 'allowmore');
}
if ($forbitable and ($allowoverrides or ($allowsafeoverrides and is_safe_capability($capability)))) {
$prohibiturl = new moodle_url($PAGE->url, array('contextid'=>$contextid, 'capability'=>$capability->name, 'prohibit'=>1));
$forbiddenroles .= '<div class="prohibitmore">'.$OUTPUT->action_icon($prohibiturl, new pix_icon('t/add', get_string('prohibit', 'core_role'))).'</div>';
$prohibiturl = new moodle_url($PAGE->url, array('contextid' => $contextid,
'capability' => $capability->name, 'prohibit' => 1));
$prohibiticon = $OUTPUT->action_icon($prohibiturl, new pix_icon('t/add', get_string('prohibit', 'core_role')), null,
array('class' => 'prohibitlink', 'data-action' => 'prohibit'));
$forbiddenroles .= html_writer::div($prohibiticon, 'prohibitmore');
}
$risks = $this->get_risks($capability);
echo '<td>' . $risks . '</td>';
echo '<td>' . $neededroles . '</td>';
echo '<td>' . $forbiddenroles . '</td>';
$contents = html_writer::tag('td', $risks, array('class' => 'risks text-nowrap'));
$contents .= html_writer::tag('td', $neededroles, array('class' => 'allowedroles'));
$contents .= html_writer::tag('td', $forbiddenroles, array('class' => 'forbiddenroles'));
return $contents;
}
protected function get_risks($capability) {
@@ -147,4 +158,18 @@ class core_role_permissions_table extends core_role_capability_table_base {
return $return;
}
/**
* Add additional attributes to row
*
* @param stdClass $capability capability that this table row relates to.
* @return array key value pairs of attribute names and values.
*/
protected function get_row_attributes($capability) {
return array(
'data-id' => $capability->id,
'data-name' => $capability->name,
'data-humanname' => get_capability_string($capability->name),
);
}
}
+3 -2
View File
@@ -71,8 +71,9 @@ class core_role_preset {
$dom->appendChild($top);
$top->appendChild($dom->createElement('shortname', $role->shortname));
$top->appendChild($dom->createElement('name', $role->name));
$top->appendChild($dom->createElement('description', $role->description));
$top->appendChild($dom->createElement('name', htmlspecialchars($role->name, ENT_COMPAT | ENT_HTML401, 'UTF-8')));
$top->appendChild($dom->createElement('description', htmlspecialchars($role->description, ENT_COMPAT | ENT_HTML401,
'UTF-8')));
$top->appendChild($dom->createElement('archetype', $role->archetype));
$contextlevels = $dom->createElement('contextlevels');
@@ -129,7 +129,7 @@ class core_role_view_role_definition_table extends core_role_define_role_table_a
} else {
$default = "&#xa0;";
}
echo '<td class="' . $permname . '">' . $this->strperms[$permname] . '<span class="note">' .
return '<td class="' . $permname . '">' . $this->strperms[$permname] . '<span class="note">' .
$default . '</span></td>';
}
+7 -7
View File
@@ -28,7 +28,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../../config.php');
require_once(__DIR__ . '/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
$action = required_param('action', PARAM_ALPHA);
@@ -256,9 +256,9 @@ if ($action === 'view') {
<input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
<input type="hidden" name="return" value="<?php p($return); ?>" />
<input type="hidden" name="resettype" value="none" />
<div class="submit buttons">
<input type="submit" name="savechanges" value="<?php p($submitlabel); ?>" />
<input type="submit" name="cancel" value="<?php print_string('cancel'); ?>" />
<div class="submitbuttons">
<input type="submit" name="savechanges" class="btn btn-primary" value="<?php p($submitlabel); ?>" />
<input type="submit" name="cancel" class="btn btn-secondary" value="<?php print_string('cancel'); ?>" />
</div>
<?php
}
@@ -271,9 +271,9 @@ if ($action === 'view') {
echo '</div>';
} else {
?>
<div class="submit buttons">
<input type="submit" name="savechanges" value="<?php p($submitlabel); ?>" />
<input type="submit" name="cancel" value="<?php print_string('cancel'); ?>" />
<div class="submitbuttons">
<input type="submit" name="savechanges" class="btn btn-primary" value="<?php p($submitlabel); ?>" />
<input type="submit" name="cancel" class="btn btn-secondary" value="<?php print_string('cancel'); ?>" />
</div>
</div></form>
<?php
+1 -1
View File
@@ -31,7 +31,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../../config.php');
require_once(__DIR__ . '/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/roles/lib.php');
+9
View File
@@ -195,6 +195,15 @@ if ($capability && ($allowoverrides || ($allowsafeoverrides && is_safe_capabilit
echo $OUTPUT->header();
echo $OUTPUT->heading($title);
$adminurl = new moodle_url('/admin/');
$arguments = array('contextid' => $contextid,
'contextname' => $contextname,
'adminurl' => $adminurl->out());
$PAGE->requires->strings_for_js(
array('roleprohibitinfo', 'roleprohibitheader', 'roleallowinfo', 'roleallowheader',
'confirmunassigntitle', 'confirmroleunprohibit', 'confirmroleprevent', 'confirmunassignyes',
'confirmunassignno'), 'core_role');
$PAGE->requires->js_call_amd('core/permissionmanager', 'initialize', array($arguments));
$table = new core_role_permissions_table($context, $contextname, $allowoverrides, $allowsafeoverrides, $overridableroles);
echo $OUTPUT->box_start('generalbox capbox');
// Print link to advanced override page.
+26 -20
View File
@@ -7,7 +7,8 @@ require_once($CFG->libdir.'/adminlib.php');
$query = trim(optional_param('query', '', PARAM_NOTAGS)); // Search string
$PAGE->set_context(context_system::instance());
$context = context_system::instance();
$PAGE->set_context($context);
admin_externalpage_setup('search', '', array('query' => $query)); // now hidden page
@@ -18,15 +19,18 @@ $errormsg = '';
$focus = '';
// now we'll deal with the case that the admin has submitted the form with changed settings
if ($data = data_submitted() and confirm_sesskey()) {
if ($data = data_submitted() and confirm_sesskey() and isset($data->action) and $data->action == 'save-settings') {
require_capability('moodle/site:config', $context);
if (admin_write_settings($data)) {
$statusmsg = get_string('changessaved');
redirect($PAGE->url, get_string('changessaved'), null, \core\output\notification::NOTIFY_SUCCESS);
}
if (!empty($adminroot->errors)) {
$errormsg = get_string('errorwithsettings', 'admin');
$firsterror = reset($adminroot->errors);
$focus = $firsterror->id;
} else {
redirect($PAGE->url);
}
}
@@ -34,6 +38,8 @@ if ($data = data_submitted() and confirm_sesskey()) {
// to modify them
echo $OUTPUT->header($focus);
echo $OUTPUT->heading(get_string('administrationsite'));
if ($errormsg !== '') {
echo $OUTPUT->notification($errormsg);
@@ -41,24 +47,24 @@ if ($errormsg !== '') {
echo $OUTPUT->notification($statusmsg, 'notifysuccess');
}
$resultshtml = admin_search_settings_html($query); // case insensitive search only
$showsettingslinks = true;
echo '<form action="' . $PAGE->url->out(true) . '" method="post" id="adminsettings">';
echo '<div>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
// HACK to prevent browsers from automatically inserting the user's password into the wrong fields.
echo prevent_form_autofill_password();
echo '</div>';
echo '<fieldset>';
echo '<div class="clearer"><!-- --></div>';
if ($resultshtml != '') {
echo $resultshtml;
} else {
echo get_string('noresults','admin');
if (has_capability('moodle/site:config', $context)) {
require_once("admin_settings_search_form.php");
$form = new admin_settings_search_form();
$form->display();
echo '<hr>';
if ($query) {
echo admin_search_settings_html($query);
$showsettingslinks = false;
}
}
if ($showsettingslinks) {
$node = $PAGE->settingsnav->find('root', navigation_node::TYPE_SITE_ADMIN);
if ($node) {
echo $OUTPUT->render_from_template('core/settings_link_page', ['node' => $node]);
}
}
echo '</fieldset>';
echo '</form>';
echo $OUTPUT->footer();
+180
View File
@@ -0,0 +1,180 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Manage global search areas.
*
* @package core_search
* @copyright 2016 Dan Poltawski <dan@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(__DIR__ . '/../config.php');
require_once($CFG->libdir . '/adminlib.php');
admin_externalpage_setup('searchareas');
$areaid = optional_param('areaid', null, PARAM_ALPHAEXT);
$action = optional_param('action', null, PARAM_ALPHA);
try {
$searchmanager = \core_search\manager::instance();
} catch (core_search\engine_exception $searchmanagererror) {
// Continue, we return an error later depending on the requested action.
}
echo $OUTPUT->header();
if ($action) {
require_sesskey();
if ($areaid) {
// We need to check that the area exists.
$area = \core_search\manager::get_search_area($areaid);
if ($area === false) {
throw new moodle_exception('invalidrequest');
}
}
// All actions but enable/disable need the search engine to be ready.
if ($action !== 'enable' && $action !== 'disable') {
if (!empty($searchmanagererror)) {
throw $searchmanagererror;
}
}
switch ($action) {
case 'enable':
$area->set_enabled(true);
echo $OUTPUT->notification(get_string('searchareaenabled', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'disable':
$area->set_enabled(false);
echo $OUTPUT->notification(get_string('searchareadisabled', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'delete':
$search = \core_search\manager::instance();
$search->delete_index($areaid);
echo $OUTPUT->notification(get_string('searchindexdeleted', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'indexall':
$searchmanager->index();
echo $OUTPUT->notification(get_string('searchindexupdated', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'reindexall':
$searchmanager->index(true);
echo $OUTPUT->notification(get_string('searchreindexed', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
case 'deleteall':
$searchmanager->delete_index();
echo $OUTPUT->notification(get_string('searchalldeleted', 'admin'), \core\output\notification::NOTIFY_SUCCESS);
break;
default:
throw new moodle_exception('invalidaction');
break;
}
}
$searchareas = \core_search\manager::get_search_areas_list();
if (empty($searchmanagererror)) {
$areasconfig = $searchmanager->get_areas_config($searchareas);
} else {
$areasconfig = false;
}
if (!empty($searchmanagererror)) {
$errorstr = get_string($searchmanagererror->errorcode, $searchmanagererror->module, $searchmanagererror->a);
echo $OUTPUT->notification($errorstr, \core\output\notification::NOTIFY_ERROR);
} else {
echo $OUTPUT->notification(get_string('indexinginfo', 'admin'), \core\output\notification::NOTIFY_INFO);
}
$table = new html_table();
$table->id = 'core-search-areas';
$table->head = array(get_string('searcharea', 'search'), get_string('enable'), get_string('newestdocindexed', 'admin'),
get_string('searchlastrun', 'admin'), get_string('searchindexactions', 'admin'));
foreach ($searchareas as $area) {
$areaid = $area->get_area_id();
$columns = array(new html_table_cell($area->get_visible_name()));
if ($area->is_enabled()) {
$columns[] = $OUTPUT->action_icon(admin_searcharea_action_url('disable', $areaid),
new pix_icon('t/hide', get_string('disable'), 'moodle', array('title' => '', 'class' => 'iconsmall')),
null, array('title' => get_string('disable')));
if ($areasconfig) {
$columns[] = $areasconfig[$areaid]->lastindexrun;
if ($areasconfig[$areaid]->indexingstart) {
$timediff = $areasconfig[$areaid]->indexingend - $areasconfig[$areaid]->indexingstart;
$laststatus = $timediff . ' , ' .
$areasconfig[$areaid]->docsprocessed . ' , ' .
$areasconfig[$areaid]->recordsprocessed . ' , ' .
$areasconfig[$areaid]->docsignored;
} else {
$laststatus = '';
}
$columns[] = $laststatus;
$columns[] = html_writer::link(admin_searcharea_action_url('delete', $areaid), 'Delete index');
} else {
$blankrow = new html_table_cell(get_string('searchnotavailable', 'admin'));
$blankrow->colspan = 3;
$columns[] = $blankrow;
}
} else {
$columns[] = $OUTPUT->action_icon(admin_searcharea_action_url('enable', $areaid),
new pix_icon('t/show', get_string('enable'), 'moodle', array('title' => '', 'class' => 'iconsmall')),
null, array('title' => get_string('enable')));
$blankrow = new html_table_cell(get_string('searchareadisabled', 'admin'));
$blankrow->colspan = 3;
$columns[] = $blankrow;
}
$row = new html_table_row($columns);
$table->data[] = $row;
}
// Cross-search area tasks.
$options = array();
if (!empty($searchmanagererror)) {
$options['disabled'] = true;
}
echo $OUTPUT->box_start('search-areas-actions');
echo $OUTPUT->single_button(admin_searcharea_action_url('indexall'), get_string('searchupdateindex', 'admin'), 'get', $options);
echo $OUTPUT->single_button(admin_searcharea_action_url('reindexall'), get_string('searchreindexindex', 'admin'), 'get', $options);
echo $OUTPUT->single_button(admin_searcharea_action_url('deleteall'), get_string('searchdeleteindex', 'admin'), 'get', $options);
echo $OUTPUT->box_end();
echo html_writer::table($table);
echo $OUTPUT->footer();
/**
* Helper for generating url for management actions.
*
* @param string $action
* @param string $areaid
* @return moodle_url
*/
function admin_searcharea_action_url($action, $areaid = false) {
$params = array('action' => $action, 'sesskey' => sesskey());
if ($areaid) {
$params['areaid'] = $areaid;
}
return new moodle_url('/admin/searchareas.php', $params);
}
+34 -30
View File
@@ -40,7 +40,7 @@ $errormsg = '';
if ($data = data_submitted() and confirm_sesskey()) {
if (admin_write_settings($data)) {
$statusmsg = get_string('changessaved');
redirect($PAGE->url, get_string('changessaved'), null, \core\output\notification::NOTIFY_SUCCESS);
}
if (empty($adminroot->errors)) {
@@ -48,6 +48,7 @@ if ($data = data_submitted() and confirm_sesskey()) {
case 'site': redirect("$CFG->wwwroot/");
case 'admin': redirect("$CFG->wwwroot/$CFG->admin/");
}
redirect($PAGE->url);
} else {
$errormsg = get_string('errorwithsettings', 'admin');
$firsterror = reset($adminroot->errors);
@@ -76,20 +77,23 @@ if (empty($SITE->fullname)) {
// ---------------------------------------------------------------------------------------------------------------
echo '<form action="settings.php" method="post" id="adminsettings">';
echo '<div class="settingsform clearfix">';
echo html_writer::input_hidden_params($PAGE->url);
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="hidden" name="return" value="'.$return.'" />';
// HACK to prevent browsers from automatically inserting the user's password into the wrong fields.
echo prevent_form_autofill_password();
$pageparams = $PAGE->url->params();
$context = [
'actionurl' => $PAGE->url->out(false),
'params' => array_map(function($param) use ($pageparams) {
return [
'name' => $param,
'value' => $pageparams[$param]
];
}, array_keys($pageparams)),
'sesskey' => sesskey(),
'return' => $return,
'title' => null,
'settings' => $settingspage->output_html(),
'showsave' => true
];
echo $settingspage->output_html();
echo '<div class="form-buttons"><input class="form-submit" type="submit" value="'.get_string('savechanges','admin').'" /></div>';
echo '</div>';
echo '</form>';
echo $OUTPUT->render_from_template('core_admin/settings', $context);
} else {
if ($PAGE->user_allowed_editing()) {
@@ -120,23 +124,23 @@ if (empty($SITE->fullname)) {
// ---------------------------------------------------------------------------------------------------------------
echo '<form action="settings.php" method="post" id="adminsettings">';
echo '<div class="settingsform clearfix">';
echo html_writer::input_hidden_params($PAGE->url);
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="hidden" name="return" value="'.$return.'" />';
// HACK to prevent browsers from automatically inserting the user's password into the wrong fields.
echo prevent_form_autofill_password();
echo $OUTPUT->heading($settingspage->visiblename);
$pageparams = $PAGE->url->params();
$context = [
'actionurl' => $PAGE->url->out(false),
'params' => array_map(function($param) use ($pageparams) {
return [
'name' => $param,
'value' => $pageparams[$param]
];
}, array_keys($pageparams)),
'sesskey' => sesskey(),
'return' => $return,
'title' => $settingspage->visiblename,
'settings' => $settingspage->output_html(),
'showsave' => $settingspage->show_save()
];
echo $settingspage->output_html();
if ($settingspage->show_save()) {
echo '<div class="form-buttons"><input class="form-submit" type="submit" value="'.get_string('savechanges','admin').'" /></div>';
}
echo '</div>';
echo '</form>';
echo $OUTPUT->render_from_template('core_admin/settings', $context);
}
$PAGE->requires->yui_module('moodle-core-formchangechecker',
+27 -49
View File
@@ -12,7 +12,10 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // sp
$ADMIN->add('appearance', new admin_category('themes', new lang_string('themes')));
// "themesettings" settingpage
$temp = new admin_settingpage('themesettings', new lang_string('themesettings', 'admin'));
$temp->add(new admin_setting_configtext('themelist', new lang_string('themelist', 'admin'), new lang_string('configthemelist','admin'), '', PARAM_NOTAGS));
$setting = new admin_setting_configtext('themelist', new lang_string('themelist', 'admin'),
new lang_string('configthemelist', 'admin'), '', PARAM_NOTAGS);
$setting->set_force_ltr(true);
$temp->add($setting);
$setting = new admin_setting_configcheckbox('themedesignermode', new lang_string('themedesignermode', 'admin'), new lang_string('configthemedesignermode', 'admin'), 0);
$setting->set_updatedcallback('theme_reset_all_caches');
$temp->add($setting);
@@ -22,7 +25,8 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // sp
$temp->add(new admin_setting_configcheckbox('allowthemechangeonurl', new lang_string('allowthemechangeonurl', 'admin'), new lang_string('configallowthemechangeonurl', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowuserblockhiding', new lang_string('allowuserblockhiding', 'admin'), new lang_string('configallowuserblockhiding', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('allowblockstodock', new lang_string('allowblockstodock', 'admin'), new lang_string('configallowblockstodock', 'admin'), 1));
$temp->add(new admin_setting_configtextarea('custommenuitems', new lang_string('custommenuitems', 'admin'), new lang_string('configcustommenuitems', 'admin'), '', PARAM_TEXT, '50', '10'));
$temp->add(new admin_setting_configtextarea('custommenuitems', new lang_string('custommenuitems', 'admin'),
new lang_string('configcustommenuitems', 'admin'), '', PARAM_RAW, '50', '10'));
$temp->add(new admin_setting_configtextarea(
'customusermenuitems',
new lang_string('customusermenuitems', 'admin'),
@@ -30,7 +34,7 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // sp
'grades,grades|/grade/report/mygrades.php|grades
messages,message|/message/index.php|message
preferences,moodle|/user/preferences.php|preferences',
PARAM_TEXT,
PARAM_RAW,
'50',
'10'
));
@@ -51,6 +55,26 @@ preferences,moodle|/user/preferences.php|preferences',
}
}
// Logos section.
$temp = new admin_settingpage('logos', new lang_string('logossettings', 'admin'));
// Logo file setting.
$title = get_string('logo', 'admin');
$description = get_string('logo_desc', 'admin');
$setting = new admin_setting_configstoredfile('core_admin/logo', $title, $description, 'logo', 0,
['maxfiles' => 1, 'accepted_types' => ['.jpg', '.png']]);
$setting->set_updatedcallback('theme_reset_all_caches');
$temp->add($setting);
// Small logo file setting.
$title = get_string('logocompact', 'admin');
$description = get_string('logocompact_desc', 'admin');
$setting = new admin_setting_configstoredfile('core_admin/logocompact', $title, $description, 'logocompact', 0,
['maxfiles' => 1, 'accepted_types' => ['.jpg', '.png']]);
$setting->set_updatedcallback('theme_reset_all_caches');
$temp->add($setting);
$ADMIN->add('appearance', $temp);
// Calendar settings.
$temp = new admin_settingpage('calendar', new lang_string('calendarsettings','admin'));
@@ -148,7 +172,6 @@ preferences,moodle|/user/preferences.php|preferences',
$temp->add(new admin_setting_configcheckbox('navshowcategories', new lang_string('navshowcategories', 'admin'), new lang_string('confignavshowcategories', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('navshowmycoursecategories', new lang_string('navshowmycoursecategories', 'admin'), new lang_string('navshowmycoursecategories_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('navshowallcourses', new lang_string('navshowallcourses', 'admin'), new lang_string('confignavshowallcourses', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('navexpandmycourses', new lang_string('navexpandmycourses', 'admin'), new lang_string('navexpandmycourses_desc', 'admin'), 1));
$sortoptions = array(
'sortorder' => new lang_string('sort_sortorder', 'admin'),
'fullname' => new lang_string('sort_fullname', 'admin'),
@@ -173,49 +196,6 @@ preferences,moodle|/user/preferences.php|preferences',
$ADMIN->add('appearance', new admin_externalpage('resetemoticons', new lang_string('emoticonsreset', 'admin'),
new moodle_url('/admin/resetemoticons.php'), 'moodle/site:config', true));
// The "media" subpage.
$temp = new admin_settingpage('mediasettings', get_string('mediasettings', 'core_media'));
$temp->add(new admin_setting_heading('mediaformats', get_string('mediaformats', 'core_media'),
format_text(get_string('mediaformats_desc', 'core_media'), FORMAT_MARKDOWN)));
// External services.
$temp->add(new admin_setting_configcheckbox('core_media_enable_youtube',
get_string('siteyoutube', 'core_media'), get_string('siteyoutube_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_vimeo',
get_string('sitevimeo', 'core_media'), get_string('sitevimeo_desc', 'core_media'), 0));
// Options which require Flash.
$temp->add(new admin_setting_configcheckbox('core_media_enable_mp3',
get_string('mp3audio', 'core_media'), get_string('mp3audio_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_flv',
get_string('flashvideo', 'core_media'), get_string('flashvideo_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_swf',
get_string('flashanimation', 'core_media'), get_string('flashanimation_desc', 'core_media'), 1));
// HTML 5 media.
// Audio now enabled by default so that it can provide a fallback for mp3 on devices without flash.
$temp->add(new admin_setting_configcheckbox('core_media_enable_html5audio',
get_string('html5audio', 'core_media'), get_string('html5audio_desc', 'core_media'), 1));
// Video now enabled by default so it can provide mp4 support.
$temp->add(new admin_setting_configcheckbox('core_media_enable_html5video',
get_string('html5video', 'core_media'), get_string('html5video_desc', 'core_media'), 1));
// Legacy players.
$temp->add(new admin_setting_heading('legacymediaformats',
get_string('legacyheading', 'core_media'), get_string('legacyheading_desc', 'core_media')));
$temp->add(new admin_setting_configcheckbox('core_media_enable_qt',
get_string('legacyquicktime', 'core_media'), get_string('legacyquicktime_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_wmp',
get_string('legacywmp', 'core_media'), get_string('legacywmp_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_rm',
get_string('legacyreal', 'core_media'), get_string('legacyreal_desc', 'core_media'), 1));
$ADMIN->add('appearance', $temp);
// "documentation" settingpage
$temp = new admin_settingpage('documentation', new lang_string('moodledocs'));
$temp->add(new admin_setting_configtext('docroot', new lang_string('docroot', 'admin'), new lang_string('configdocroot', 'admin'), 'http://docs.moodle.org', PARAM_URL));
@@ -254,8 +234,6 @@ preferences,moodle|/user/preferences.php|preferences',
$setting->set_updatedcallback('js_reset_all_caches');
$temp->add($setting);
$temp->add(new admin_setting_configcheckbox('modchooserdefault', new lang_string('modchooserdefault', 'admin'), new lang_string('configmodchooserdefault', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('modeditingmenu', new lang_string('modeditingmenu', 'admin'), new lang_string('modeditingmenu_desc', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('blockeditingmenu', new lang_string('blockeditingmenu', 'admin'), new lang_string('blockeditingmenu_desc', 'admin'), 1));
$ADMIN->add('appearance', $temp);
// link to tag management interface
+50
View File
@@ -0,0 +1,50 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* File.
*
* @package core_competency
* @copyright 2016 Frédéric Massart - FMCorz.net
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
// Save processing when the user will not be able to access anything.
if (has_capability('moodle/site:config', $systemcontext)) {
$parentname = 'competencies';
// Settings page.
$settings = new admin_settingpage('competencysettings', new lang_string('competenciessettings', 'core_competency'),
'moodle/site:config', false);
$ADMIN->add($parentname, $settings);
// Load the full tree of settings.
if ($ADMIN->fulltree) {
$setting = new admin_setting_configcheckbox('core_competency/enabled',
new lang_string('enablecompetencies', 'core_competency'),
new lang_string('enablecompetencies_desc', 'core_competency'), 1);
$settings->add($setting);
$setting = new admin_setting_configcheckbox('core_competency/pushcourseratingstouserplans',
new lang_string('pushcourseratingstouserplans', 'core_competency'),
new lang_string('pushcourseratingstouserplans_desc', 'core_competency'), 1);
$settings->add($setting);
}
}
+62 -4
View File
@@ -72,13 +72,13 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$formcourseformats[$courseformat] = new lang_string('pluginname', "format_$courseformat");
}
$temp->add(new admin_setting_configselect('moodlecourse/format', new lang_string('format'), new lang_string('coursehelpformat'),
'weeks',$formcourseformats));
'topics', $formcourseformats));
$temp->add(new admin_setting_configtext('moodlecourse/maxsections', new lang_string('maxnumberweeks'),
new lang_string('maxnumberweeks_desc'), 52));
$temp->add(new admin_settings_num_course_sections('moodlecourse/numsections', new lang_string('numberweeks'),
new lang_string('coursehelpnumberweeks'), 10));
new lang_string('coursehelpnumberweeks'), 4));
$choices = array();
$choices['0'] = new lang_string('hiddensectionscollapsed');
@@ -92,6 +92,9 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configselect('moodlecourse/coursedisplay', new lang_string('coursedisplay'),
new lang_string('coursedisplay_help'), COURSE_DISPLAY_SINGLEPAGE, $choices));
$temp->add(new admin_setting_configduration('moodlecourse/courseduration', get_string('courseduration'),
get_string('courseduration_desc'), YEARSECS));
// Appearance.
$temp->add(new admin_setting_heading('appearancehdr', new lang_string('appearance'), ''));
@@ -192,6 +195,7 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_filters', new lang_string('generalfilters','backup'), new lang_string('configgeneralfilters','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_comments', new lang_string('generalcomments','backup'), new lang_string('configgeneralcomments','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_badges', new lang_string('generalbadges','backup'), new lang_string('configgeneralbadges','backup'), array('value'=>1,'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_calendarevents', new lang_string('generalcalendarevents','backup'), new lang_string('configgeneralcalendarevents','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_userscompletion', new lang_string('generaluserscompletion','backup'), new lang_string('configgeneraluserscompletion','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_logs', new lang_string('generallogs','backup'), new lang_string('configgenerallogs','backup'), array('value'=>0, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_histories', new lang_string('generalhistories','backup'), new lang_string('configgeneralhistories','backup'), array('value'=>0, 'locked'=>0)));
@@ -199,6 +203,7 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_groups',
new lang_string('generalgroups', 'backup'), new lang_string('configgeneralgroups', 'backup'),
array('value' => 1, 'locked' => 0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_competencies', new lang_string('generalcompetencies','backup'), new lang_string('configgeneralcompetencies','backup'), array('value'=>1, 'locked'=>0)));
$ADMIN->add('backups', $temp);
@@ -208,6 +213,19 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configcheckbox('backup/import_general_duplicate_admin_allowed',
new lang_string('importgeneralduplicateadminallowed', 'backup'),
new lang_string('importgeneralduplicateadminallowed_desc', 'backup'), 0));
// Import defaults section.
$temp->add(new admin_setting_heading('importsettings', new lang_string('importsettings', 'backup'), ''));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_import_activities', new lang_string('generalactivities','backup'), new lang_string('configgeneralactivities','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_import_blocks', new lang_string('generalblocks','backup'), new lang_string('configgeneralblocks','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_import_filters', new lang_string('generalfilters','backup'), new lang_string('configgeneralfilters','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_import_calendarevents', new lang_string('generalcalendarevents','backup'), new lang_string('configgeneralcalendarevents','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_import_questionbank', new lang_string('generalquestionbank','backup'), new lang_string('configgeneralquestionbank','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_import_groups',
new lang_string('generalgroups', 'backup'), new lang_string('configgeneralgroups', 'backup'),
array('value' => 1, 'locked' => 0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_import_competencies', new lang_string('generalcompetencies','backup'), new lang_string('configgeneralcompetencies','backup'), array('value'=>1, 'locked'=>0)));
$ADMIN->add('backups', $temp);
// Create a page for automated backups configuration and defaults.
@@ -229,7 +247,8 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
);
$temp->add(new admin_setting_configselect('backup/backup_auto_storage', new lang_string('automatedstorage', 'backup'), new lang_string('automatedstoragehelp', 'backup'), 0, $storageoptions));
$temp->add(new admin_setting_special_backup_auto_destination());
$keepoptoins = array(
$maxkeptoptions = array(
0 => new lang_string('all'), 1 => '1',
2 => '2',
5 => '5',
@@ -243,7 +262,44 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
300 => '300',
400 => '400',
500 => '500');
$temp->add(new admin_setting_configselect('backup/backup_auto_keep', new lang_string('keep'), new lang_string('backupkeephelp'), 1, $keepoptoins));
$temp->add(new admin_setting_configselect('backup/backup_auto_max_kept', new lang_string('automatedmaxkept', 'backup'),
new lang_string('automatedmaxkepthelp', 'backup'), 1, $maxkeptoptions));
$automateddeletedaysoptions = array(
0 => new lang_string('never'),
1000 => new lang_string('numdays', '', 1000),
365 => new lang_string('numdays', '', 365),
180 => new lang_string('numdays', '', 180),
150 => new lang_string('numdays', '', 150),
120 => new lang_string('numdays', '', 120),
90 => new lang_string('numdays', '', 90),
60 => new lang_string('numdays', '', 60),
35 => new lang_string('numdays', '', 35),
10 => new lang_string('numdays', '', 10),
5 => new lang_string('numdays', '', 5),
2 => new lang_string('numdays', '', 2)
);
$temp->add(new admin_setting_configselect('backup/backup_auto_delete_days', new lang_string('automateddeletedays', 'backup'),
'', 0, $automateddeletedaysoptions));
$minkeptoptions = array(
0 => new lang_string('none'),
1 => '1',
2 => '2',
5 => '5',
10 => '10',
20 => '20',
30 => '30',
40 => '40',
50 => '50',
100 => '100',
200 => '200',
300 => '300',
400 => '400'
);
$temp->add(new admin_setting_configselect('backup/backup_auto_min_kept', new lang_string('automatedminkept', 'backup'),
new lang_string('automatedminkepthelp', 'backup'), 0, $minkeptoptions));
$temp->add(new admin_setting_configcheckbox('backup/backup_shortname', new lang_string('backup_shortname', 'admin'), new lang_string('backup_shortnamehelp', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_skip_hidden', new lang_string('skiphidden', 'backup'), new lang_string('skiphiddenhelp', 'backup'), 1));
$temp->add(new admin_setting_configselect('backup/backup_auto_skip_modif_days', new lang_string('skipmodifdays', 'backup'), new lang_string('skipmodifdayshelp', 'backup'), 30, array(
@@ -274,12 +330,14 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_filters', new lang_string('generalfilters','backup'), new lang_string('configgeneralfilters','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_comments', new lang_string('generalcomments','backup'), new lang_string('configgeneralcomments','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_badges', new lang_string('generalbadges','backup'), new lang_string('configgeneralbadges','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_calendarevents', new lang_string('generalcalendarevents','backup'), new lang_string('configgeneralcalendarevents','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_userscompletion', new lang_string('generaluserscompletion','backup'), new lang_string('configgeneraluserscompletion','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_logs', new lang_string('generallogs', 'backup'), new lang_string('configgenerallogs', 'backup'), 0));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_histories', new lang_string('generalhistories','backup'), new lang_string('configgeneralhistories','backup'), 0));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_questionbank', new lang_string('generalquestionbank','backup'), new lang_string('configgeneralquestionbank','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_groups', new lang_string('generalgroups', 'backup'),
new lang_string('configgeneralgroups', 'backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_competencies', new lang_string('generalcompetencies','backup'), new lang_string('configgeneralcompetencies','backup'), 1));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_messages', new lang_string('messages', 'message'), new lang_string('backupmessageshelp','message'), 0));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_blogs', new lang_string('blogs', 'blog'), new lang_string('backupblogshelp','blog'), 0));
+1 -5
View File
@@ -13,10 +13,6 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('enablesafebrowserintegration', new lang_string('enablesafebrowserintegration', 'admin'), new lang_string('configenablesafebrowserintegration', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('dndallowtextandlinks', new lang_string('dndallowtextandlinks', 'admin'), new lang_string('configdndallowtextandlinks', 'admin'), 0));
// The CSS optimiser setting. When changed we need to reset the theme caches in order to ensure they are regenerated through the optimiser.
$enablecssoptimiser = new admin_setting_configcheckbox('enablecssoptimiser', new lang_string('enablecssoptimiser','admin'), new lang_string('enablecssoptimiser_desc','admin'), 0);
$enablecssoptimiser->set_updatedcallback('theme_reset_all_caches');
$temp->add($enablecssoptimiser);
$ADMIN->add('experimental', $temp);
@@ -32,7 +28,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('development', $temp);
// "Profiling" settingpage (conditionally if the 'xhprof' extension is available only).
$xhprofenabled = extension_loaded('xhprof') && function_exists('xhprof_enable');
$xhprofenabled = extension_loaded('xhprof') || extension_loaded('tideways');
$temp = new admin_settingpage('profiling', new lang_string('profiling', 'admin'), 'moodle/site:config', !$xhprofenabled);
// Main profiling switch.
$temp->add(new admin_setting_configcheckbox('profilingenabled', new lang_string('profilingenabled', 'admin'), new lang_string('profilingenabled_help', 'admin'), false));
+11 -2
View File
@@ -58,9 +58,18 @@ if (has_capability('moodle/grade:manage', $systemcontext)
GRADE_NAVMETHOD_TABS => new lang_string('tabs', 'grades'),
GRADE_NAVMETHOD_COMBO => new lang_string('combo', 'grades'))));
$temp->add(new admin_setting_configtext('grade_export_userprofilefields', new lang_string('gradeexportuserprofilefields', 'grades'), new lang_string('gradeexportuserprofilefields_desc', 'grades'), 'firstname,lastname,idnumber,institution,department,email', PARAM_TEXT));
$setting = new admin_setting_configtext('grade_export_userprofilefields',
new lang_string('gradeexportuserprofilefields', 'grades'),
new lang_string('gradeexportuserprofilefields_desc', 'grades'),
'firstname,lastname,idnumber,institution,department,email', PARAM_TEXT);
$setting->set_force_ltr(true);
$temp->add($setting);
$temp->add(new admin_setting_configtext('grade_export_customprofilefields', new lang_string('gradeexportcustomprofilefields', 'grades'), new lang_string('gradeexportcustomprofilefields_desc', 'grades'), '', PARAM_TEXT));
$setting = new admin_setting_configtext('grade_export_customprofilefields',
new lang_string('gradeexportcustomprofilefields', 'grades'),
new lang_string('gradeexportcustomprofilefields_desc', 'grades'), '', PARAM_TEXT);
$setting->set_force_ltr(true);
$temp->add($setting);
$temp->add(new admin_setting_configcheckbox('recovergradesdefault', new lang_string('recovergradesdefault', 'grades'), new lang_string('recovergradesdefault_help', 'grades'), 0));
+2 -1
View File
@@ -10,7 +10,8 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configtext('defaultcity', new lang_string('defaultcity', 'admin'), new lang_string('defaultcity_help', 'admin'), ''));
$temp->add(new admin_setting_heading('iplookup', new lang_string('iplookup', 'admin'), new lang_string('iplookupinfo', 'admin')));
$temp->add(new admin_setting_configfile('geoipfile', new lang_string('geoipfile', 'admin'), new lang_string('configgeoipfile', 'admin', $CFG->dataroot.'/geoip/'), $CFG->dataroot.'/geoip/GeoLiteCity.dat'));
$temp->add(new admin_setting_configfile('geoip2file', new lang_string('geoipfile', 'admin'),
new lang_string('configgeoipfile', 'admin', $CFG->dataroot.'/geoip/'), $CFG->dataroot.'/geoip/GeoLite2-City.mmdb'));
$temp->add(new admin_setting_configtext('googlemapkey3', new lang_string('googlemapkey3', 'admin'), new lang_string('googlemapkey3_help', 'admin'), '', PARAM_RAW, 60));
$temp->add(new admin_setting_configtext('allcountrycodes', new lang_string('allcountrycodes', 'admin'), new lang_string('configallcountrycodes', 'admin'), '', '/^(?:\w+(?:,\w+)*)?$/'));
+147 -33
View File
@@ -33,14 +33,16 @@ if ($hassiteconfig) {
// activity modules
$ADMIN->add('modules', new admin_category('modsettings', new lang_string('activitymodules')));
$temp = new admin_settingpage('managemodulescommon', new lang_string('commonsettings', 'admin'));
$ADMIN->add('modsettings', new admin_page_managemods());
$temp = new admin_settingpage('managemodulescommon', new lang_string('commonactivitysettings', 'admin'));
$temp->add(new admin_setting_configcheckbox('requiremodintro',
get_string('requiremodintro', 'admin'), get_string('requiremodintro_desc', 'admin'), 0));
$ADMIN->add('modsettings', $temp);
$ADMIN->add('modsettings', new admin_page_managemods());
foreach (core_plugin_manager::instance()->get_plugins_of_type('mod') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('mod');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\mod $plugin */
$plugin->load_settings($ADMIN, 'modsettings', $hassiteconfig);
}
@@ -50,7 +52,9 @@ if ($hassiteconfig) {
$temp = new admin_settingpage('manageformats', new lang_string('manageformats', 'core_admin'));
$temp->add(new admin_setting_manageformats());
$ADMIN->add('formatsettings', $temp);
foreach (core_plugin_manager::instance()->get_plugins_of_type('format') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('format');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\format $plugin */
$plugin->load_settings($ADMIN, 'formatsettings', $hassiteconfig);
}
@@ -58,7 +62,9 @@ if ($hassiteconfig) {
// blocks
$ADMIN->add('modules', new admin_category('blocksettings', new lang_string('blocks')));
$ADMIN->add('blocksettings', new admin_page_manageblocks());
foreach (core_plugin_manager::instance()->get_plugins_of_type('block') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('block');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\block $plugin */
$plugin->load_settings($ADMIN, 'blocksettings', $hassiteconfig);
}
@@ -67,7 +73,9 @@ if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('messageoutputs', new lang_string('messageoutputs', 'message')));
$ADMIN->add('messageoutputs', new admin_page_managemessageoutputs());
$ADMIN->add('messageoutputs', new admin_page_defaultmessageoutputs());
foreach (core_plugin_manager::instance()->get_plugins_of_type('message') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('message');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\message $plugin */
$plugin->load_settings($ADMIN, 'messageoutputs', $hassiteconfig);
}
@@ -80,6 +88,9 @@ if ($hassiteconfig) {
$temp->add(new admin_setting_heading('manageauthscommonheading', new lang_string('commonsettings', 'admin'), ''));
$temp->add(new admin_setting_special_registerauth());
$temp->add(new admin_setting_configcheckbox('authloginviaemail', new lang_string('authloginviaemail', 'core_auth'), new lang_string('authloginviaemail_desc', 'core_auth'), 0));
$temp->add(new admin_setting_configcheckbox('allowaccountssameemail',
new lang_string('allowaccountssameemail', 'core_auth'),
new lang_string('allowaccountssameemail_desc', 'core_auth'), 0));
$temp->add(new admin_setting_configcheckbox('authpreventaccountcreation', new lang_string('authpreventaccountcreation', 'admin'), new lang_string('authpreventaccountcreation_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('loginpageautofocus', new lang_string('loginpageautofocus', 'admin'), new lang_string('loginpageautofocus_help', 'admin'), 0));
$temp->add(new admin_setting_configselect('guestloginbutton', new lang_string('guestloginbutton', 'auth'),
@@ -94,18 +105,30 @@ if ($hassiteconfig) {
new lang_string('forgottenpassword', 'auth'), ''));
$temp->add(new admin_setting_confightmleditor('auth_instructions', new lang_string('instructions', 'auth'),
new lang_string('authinstructions', 'auth'), ''));
$temp->add(new admin_setting_configtext('allowemailaddresses', new lang_string('allowemailaddresses', 'admin'), new lang_string('configallowemailaddresses', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('denyemailaddresses', new lang_string('denyemailaddresses', 'admin'), new lang_string('configdenyemailaddresses', 'admin'), '', PARAM_NOTAGS));
$setting = new admin_setting_configtext('allowemailaddresses', new lang_string('allowemailaddresses', 'admin'),
new lang_string('configallowemailaddresses', 'admin'), '', PARAM_NOTAGS);
$setting->set_force_ltr(true);
$temp->add($setting);
$setting = new admin_setting_configtext('denyemailaddresses', new lang_string('denyemailaddresses', 'admin'),
new lang_string('configdenyemailaddresses', 'admin'), '', PARAM_NOTAGS);
$setting->set_force_ltr(true);
$temp->add($setting);
$temp->add(new admin_setting_configcheckbox('verifychangedemail', new lang_string('verifychangedemail', 'admin'), new lang_string('configverifychangedemail', 'admin'), 1));
$temp->add(new admin_setting_configtext('recaptchapublickey', new lang_string('recaptchapublickey', 'admin'), new lang_string('configrecaptchapublickey', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('recaptchaprivatekey', new lang_string('recaptchaprivatekey', 'admin'), new lang_string('configrecaptchaprivatekey', 'admin'), '', PARAM_NOTAGS));
$setting = new admin_setting_configtext('recaptchapublickey', new lang_string('recaptchapublickey', 'admin'), new lang_string('configrecaptchapublickey', 'admin'), '', PARAM_NOTAGS);
$setting->set_force_ltr(true);
$temp->add($setting);
$setting = new admin_setting_configtext('recaptchaprivatekey', new lang_string('recaptchaprivatekey', 'admin'), new lang_string('configrecaptchaprivatekey', 'admin'), '', PARAM_NOTAGS);
$setting->set_force_ltr(true);
$temp->add($setting);
$ADMIN->add('authsettings', $temp);
$temp = new admin_externalpage('authtestsettings', get_string('testsettings', 'core_auth'), new moodle_url("/auth/test_settings.php"), 'moodle/site:config', true);
$ADMIN->add('authsettings', $temp);
foreach (core_plugin_manager::instance()->get_plugins_of_type('auth') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('auth');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\auth $plugin */
$plugin->load_settings($ADMIN, 'authsettings', $hassiteconfig);
}
@@ -119,7 +142,9 @@ if ($hassiteconfig) {
$temp = new admin_externalpage('enroltestsettings', get_string('testsettings', 'core_enrol'), new moodle_url("/enrol/test_settings.php"), 'moodle/site:config', true);
$ADMIN->add('enrolments', $temp);
foreach(core_plugin_manager::instance()->get_plugins_of_type('enrol') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('enrol');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\enrol $plugin */
$plugin->load_settings($ADMIN, 'enrolments', $hassiteconfig);
}
@@ -130,11 +155,25 @@ if ($hassiteconfig) {
$temp = new admin_settingpage('manageeditors', new lang_string('editorsettings', 'editor'));
$temp->add(new admin_setting_manageeditors());
$ADMIN->add('editorsettings', $temp);
foreach (core_plugin_manager::instance()->get_plugins_of_type('editor') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('editor');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\editor $plugin */
$plugin->load_settings($ADMIN, 'editorsettings', $hassiteconfig);
}
// Antivirus plugins.
$ADMIN->add('modules', new admin_category('antivirussettings', new lang_string('antiviruses', 'antivirus')));
$temp = new admin_settingpage('manageantiviruses', new lang_string('antivirussettings', 'antivirus'));
$temp->add(new admin_setting_manageantiviruses());
$ADMIN->add('antivirussettings', $temp);
$plugins = core_plugin_manager::instance()->get_plugins_of_type('antivirus');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/* @var \core\plugininfo\antivirus $plugin */
$plugin->load_settings($ADMIN, 'antivirussettings', $hassiteconfig);
}
/// License types
$ADMIN->add('modules', new admin_category('licensesettings', new lang_string('licenses')));
$temp = new admin_settingpage('managelicenses', new lang_string('managelicenses', 'admin'));
@@ -169,11 +208,40 @@ if ($hassiteconfig) {
}
$ADMIN->add('filtersettings', $temp);
foreach (core_plugin_manager::instance()->get_plugins_of_type('filter') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('filter');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\filter $plugin */
$plugin->load_settings($ADMIN, 'filtersettings', $hassiteconfig);
}
// Media players.
$ADMIN->add('modules', new admin_category('mediaplayers', new lang_string('type_media_plural', 'plugin')));
$temp = new admin_settingpage('managemediaplayers', new lang_string('managemediaplayers', 'media'));
$temp->add(new admin_setting_heading('mediaformats', get_string('mediaformats', 'core_media'),
format_text(get_string('mediaformats_desc', 'core_media'), FORMAT_MARKDOWN)));
$temp->add(new admin_setting_managemediaplayers());
$temp->add(new admin_setting_heading('managemediaplayerscommonheading', new lang_string('commonsettings', 'admin'), ''));
$temp->add(new admin_setting_configtext('media_default_width',
new lang_string('defaultwidth', 'core_media'), new lang_string('defaultwidthdesc', 'core_media'),
400, PARAM_INT, 10));
$temp->add(new admin_setting_configtext('media_default_height',
new lang_string('defaultheight', 'core_media'), new lang_string('defaultheightdesc', 'core_media'),
300, PARAM_INT, 10));
$ADMIN->add('mediaplayers', $temp);
$plugins = core_plugin_manager::instance()->get_plugins_of_type('media');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\media $plugin */
$plugin->load_settings($ADMIN, 'mediaplayers', $hassiteconfig);
}
// Data format settings.
$ADMIN->add('modules', new admin_category('dataformatsettings', new lang_string('dataformats')));
$temp = new admin_settingpage('managedataformats', new lang_string('managedataformats'));
$temp->add(new admin_setting_managedataformats());
$ADMIN->add('dataformatsettings', $temp);
//== Portfolio settings ==
require_once($CFG->libdir. '/portfoliolib.php');
@@ -265,22 +333,16 @@ if ($hassiteconfig) {
new lang_string('createrepository', 'repository'), $url, 'moodle/site:config', true));
$ADMIN->add('repositorysettings', new admin_externalpage('repositoryinstanceedit',
new lang_string('editrepositoryinstance', 'repository'), $url, 'moodle/site:config', true));
foreach (core_plugin_manager::instance()->get_plugins_of_type('repository') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('repository');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\repository $plugin */
$plugin->load_settings($ADMIN, 'repositorysettings', $hassiteconfig);
}
/// Web services
$ADMIN->add('modules', new admin_category('webservicesettings', new lang_string('webservices', 'webservice')));
// Mobile
$temp = new admin_settingpage('mobile', new lang_string('mobile','admin'), 'moodle/site:config', false);
$enablemobiledocurl = new moodle_url(get_docs_url('Enable_mobile_web_services'));
$enablemobiledoclink = html_writer::link($enablemobiledocurl, new lang_string('documentation'));
$temp->add(new admin_setting_enablemobileservice('enablemobilewebservice',
new lang_string('enablemobilewebservice', 'admin'),
new lang_string('configenablemobilewebservice', 'admin', $enablemobiledoclink), 0));
$temp->add(new admin_setting_configtext('mobilecssurl', new lang_string('mobilecssurl', 'admin'), new lang_string('configmobilecssurl','admin'), '', PARAM_URL));
$ADMIN->add('webservicesettings', $temp);
/// overview page
$temp = new admin_settingpage('webservicesoverview', new lang_string('webservicesoverview', 'webservice'));
$temp->add(new admin_setting_webservicesoverview());
@@ -312,7 +374,9 @@ if ($hassiteconfig) {
'admin'), new lang_string('configenablewsdocumentation', 'admin', $wsdoclink), false));
$ADMIN->add('webservicesettings', $temp);
/// links to protocol pages
foreach (core_plugin_manager::instance()->get_plugins_of_type('webservice') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('webservice');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\webservice $plugin */
$plugin->load_settings($ADMIN, 'webservicesettings', $hassiteconfig);
}
@@ -384,7 +448,9 @@ if ($hassiteconfig || has_capability('moodle/question:config', $systemcontext))
get_string('responsehistory', 'question'), '', 0, $hiddenofvisible));
// Settings for particular question types.
foreach (core_plugin_manager::instance()->get_plugins_of_type('qtype') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('qtype');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\qtype $plugin */
$plugin->load_settings($ADMIN, 'qtypesettings', $hassiteconfig);
}
@@ -396,7 +462,9 @@ if ($hassiteconfig && !empty($CFG->enableplagiarism)) {
$ADMIN->add('plagiarism', new admin_externalpage('manageplagiarismplugins', new lang_string('manageplagiarism', 'plagiarism'),
$CFG->wwwroot . '/' . $CFG->admin . '/plagiarism.php'));
foreach (core_plugin_manager::instance()->get_plugins_of_type('plagiarism') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('plagiarism');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\plagiarism $plugin */
$plugin->load_settings($ADMIN, 'plagiarism', $hassiteconfig);
}
@@ -420,6 +488,7 @@ if ($hassiteconfig) {
}
if (!empty($pages)) {
$ADMIN->add('modules', new admin_category('coursereports', new lang_string('coursereports')));
core_collator::asort_objects_by_property($pages, 'visiblename');
foreach ($pages as $page) {
$ADMIN->add('coursereports', $page);
}
@@ -443,10 +512,49 @@ foreach (core_component::get_plugin_list('report') as $report => $plugindir) {
$ADMIN->add('modules', new admin_category('reportplugins', new lang_string('reports')));
$ADMIN->add('reportplugins', new admin_externalpage('managereports', new lang_string('reportsmanage', 'admin'),
$CFG->wwwroot . '/' . $CFG->admin . '/reports.php'));
core_collator::asort_objects_by_property($pages, 'visiblename');
foreach ($pages as $page) {
$ADMIN->add('reportplugins', $page);
}
if ($hassiteconfig) {
// Global Search engine plugins.
$ADMIN->add('modules', new admin_category('searchplugins', new lang_string('search', 'admin')));
$temp = new admin_settingpage('manageglobalsearch', new lang_string('globalsearchmanage', 'admin'));
$pages = array();
$engines = array();
foreach (core_component::get_plugin_list('search') as $engine => $plugindir) {
$engines[$engine] = new lang_string('pluginname', 'search_' . $engine);
$settingspath = "$plugindir/settings.php";
if (file_exists($settingspath)) {
$settings = new admin_settingpage('search' . $engine,
new lang_string('pluginname', 'search_' . $engine), 'moodle/site:config');
include($settingspath);
if ($settings) {
$pages[] = $settings;
}
}
}
// Setup status.
$temp->add(new admin_setting_searchsetupinfo());
// Search engine selection.
$temp->add(new admin_setting_heading('searchengineheading', new lang_string('searchengine', 'admin'), ''));
$temp->add(new admin_setting_configselect('searchengine',
new lang_string('selectsearchengine', 'admin'), '', 'solr', $engines));
$ADMIN->add('searchplugins', $temp);
$ADMIN->add('searchplugins', new admin_externalpage('searchareas', new lang_string('searchareas', 'admin'),
new moodle_url('/admin/searchareas.php')));
core_collator::asort_objects_by_property($pages, 'visiblename');
foreach ($pages as $page) {
$ADMIN->add('searchplugins', $page);
}
}
/// Add all admin tools
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('tools', new lang_string('tools', 'admin')));
@@ -455,7 +563,9 @@ if ($hassiteconfig) {
}
// Now add various admin tools.
foreach (core_plugin_manager::instance()->get_plugins_of_type('tool') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('tool');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\tool $plugin */
$plugin->load_settings($ADMIN, null, $hassiteconfig);
}
@@ -466,6 +576,7 @@ if ($hassiteconfig) {
$ADMIN->add('cache', new admin_externalpage('cacheconfig', new lang_string('cacheconfig', 'cache'), $CFG->wwwroot .'/cache/admin.php'));
$ADMIN->add('cache', new admin_externalpage('cachetestperformance', new lang_string('testperformance', 'cache'), $CFG->wwwroot . '/cache/testperformance.php'));
$ADMIN->add('cache', new admin_category('cachestores', new lang_string('cachestores', 'cache')));
$ADMIN->locate('cachestores')->set_sorting(true);
foreach (core_component::get_plugin_list('cachestore') as $plugin => $path) {
$settingspath = $path.'/settings.php';
if (file_exists($settingspath)) {
@@ -479,10 +590,11 @@ if ($hassiteconfig) {
// Add Calendar type settings.
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('calendartype', new lang_string('calendartypes', 'calendar')));
foreach (core_component::get_plugin_list_with_file('calendartype', 'settings.php') as $plugin => $settingspath) {
$settings = new admin_settingpage('calendartype_' . $plugin . '_settings', new lang_string('pluginname', 'calendartype_' . $plugin), 'moodle/site:config');
include($settingspath);
$ADMIN->add('calendartype', $settings);
$plugins = core_plugin_manager::instance()->get_plugins_of_type('calendartype');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\calendartype $plugin */
$plugin->load_settings($ADMIN, 'calendartype', $hassiteconfig);
}
}
@@ -495,7 +607,9 @@ if ($hassiteconfig) {
// Extend settings for each local plugin. Note that their settings may be in any part of the
// settings tree and may be visible not only for administrators.
foreach (core_plugin_manager::instance()->get_plugins_of_type('local') as $plugin) {
$plugins = core_plugin_manager::instance()->get_plugins_of_type('local');
core_collator::asort_objects_by_property($plugins, 'displayname');
foreach ($plugins as $plugin) {
/** @var \core\plugininfo\local $plugin */
$plugin->load_settings($ADMIN, null, $hassiteconfig);
}
+6 -16
View File
@@ -96,6 +96,11 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('passwordchangelogout',
new lang_string('passwordchangelogout', 'admin'),
new lang_string('passwordchangelogout_desc', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('passwordchangetokendeletion',
new lang_string('passwordchangetokendeletion', 'admin'),
new lang_string('passwordchangetokendeletion_desc', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('groupenrolmentkeypolicy', new lang_string('groupenrolmentkeypolicy', 'admin'), new lang_string('groupenrolmentkeypolicy_desc', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('disableuserimages', new lang_string('disableuserimages', 'admin'), new lang_string('configdisableuserimages', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('emailchangeconfirmation', new lang_string('emailchangeconfirmation', 'admin'), new lang_string('configemailchangeconfirmation', 'admin'), 1));
@@ -109,7 +114,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "httpsecurity" settingpage
$temp = new admin_settingpage('httpsecurity', new lang_string('httpsecurity', 'admin'));
$temp->add(new admin_setting_configcheckbox('loginhttps', new lang_string('loginhttps', 'admin'), new lang_string('configloginhttps', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('cookiesecure', new lang_string('cookiesecure', 'admin'), new lang_string('configcookiesecure', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('cookiesecure', new lang_string('cookiesecure', 'admin'), new lang_string('configcookiesecure', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('cookiehttponly', new lang_string('cookiehttponly', 'admin'), new lang_string('configcookiehttponly', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowframembedding', new lang_string('allowframembedding', 'admin'), new lang_string('allowframembedding_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('loginpasswordautocomplete', new lang_string('loginpasswordautocomplete', 'admin'), new lang_string('loginpasswordautocomplete_help', 'admin'), 0));
@@ -127,19 +132,4 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
}
$temp->add(new admin_setting_configselect('notifyloginthreshold', new lang_string('notifyloginthreshold', 'admin'), new lang_string('confignotifyloginthreshold', 'admin'), '10', $options));
$ADMIN->add('security', $temp);
// "antivirus" settingpage
$temp = new admin_settingpage('antivirus', new lang_string('antivirus', 'admin'));
$temp->add(new admin_setting_configcheckbox('runclamonupload', new lang_string('runclamavonupload', 'admin'), new lang_string('configrunclamavonupload', 'admin'), 0));
$temp->add(new admin_setting_configexecutable('pathtoclam', new lang_string('pathtoclam', 'admin'), new lang_string('configpathtoclam', 'admin'), ''));
$temp->add(new admin_setting_configdirectory('quarantinedir', new lang_string('quarantinedir', 'admin'), new lang_string('configquarantinedir', 'admin'), ''));
$temp->add(new admin_setting_configselect('clamfailureonupload', new lang_string('clamfailureonupload', 'admin'), new lang_string('configclamfailureonupload', 'admin'), 'donothing', array('donothing' => new lang_string('configclamdonothing', 'admin'),
'actlikevirus' => new lang_string('configclamactlikevirus', 'admin'))));
$ADMIN->add('security', $temp);
} // end of speedup
+61 -7
View File
@@ -12,6 +12,7 @@ $temp->add(new admin_setting_configexecutable('pathtodu', new lang_string('patht
$temp->add(new admin_setting_configexecutable('aspellpath', new lang_string('aspellpath', 'admin'), new lang_string('edhelpaspellpath'), ''));
$temp->add(new admin_setting_configexecutable('pathtodot', new lang_string('pathtodot', 'admin'), new lang_string('pathtodot_help', 'admin'), ''));
$temp->add(new admin_setting_configexecutable('pathtogs', new lang_string('pathtogs', 'admin'), new lang_string('pathtogs_help', 'admin'), '/usr/bin/gs'));
$temp->add(new admin_setting_configexecutable('pathtounoconv', new lang_string('pathtounoconv', 'admin'), new lang_string('pathtounoconv_help', 'admin'), '/usr/bin/unoconv'));
$ADMIN->add('server', $temp);
@@ -27,8 +28,12 @@ if ($primaryadmin) {
$primaryadminemail = NULL;
$primaryadminname = NULL;
}
$temp->add(new admin_setting_configtext('supportname', new lang_string('supportname', 'admin'), new lang_string('configsupportname', 'admin'), $primaryadminname, PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('supportemail', new lang_string('supportemail', 'admin'), new lang_string('configsupportemail', 'admin'), $primaryadminemail, PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('supportname', new lang_string('supportname', 'admin'),
new lang_string('configsupportname', 'admin'), $primaryadminname, PARAM_NOTAGS));
$setting = new admin_setting_configtext('supportemail', new lang_string('supportemail', 'admin'),
new lang_string('configsupportemail', 'admin'), $primaryadminemail, PARAM_NOTAGS);
$setting->set_force_ltr(true);
$temp->add($setting);
$temp->add(new admin_setting_configtext('supportpage', new lang_string('supportpage', 'admin'), new lang_string('configsupportpage', 'admin'), '', PARAM_URL));
$ADMIN->add('server', $temp);
@@ -78,7 +83,6 @@ $temp->add(new admin_setting_configselect('statsmaxruntime', new lang_string('st
60*60*7 => '7 '.new lang_string('hours'),
60*60*8 => '8 '.new lang_string('hours') )));
$temp->add(new admin_setting_configtext('statsruntimedays', new lang_string('statsruntimedays', 'admin'), new lang_string('configstatsruntimedays', 'admin'), 31, PARAM_INT));
$temp->add(new admin_setting_configtime('statsruntimestarthour', 'statsruntimestartminute', new lang_string('statsruntimestart', 'admin'), new lang_string('configstatsruntimestart', 'admin'), array('h' => 0, 'm' => 0)));
$temp->add(new admin_setting_configtext('statsuserthreshold', new lang_string('statsuserthreshold', 'admin'), new lang_string('configstatsuserthreshold', 'admin'), 0, PARAM_INT));
$ADMIN->add('server', $temp);
@@ -209,15 +213,65 @@ $ADMIN->add('server', $temp);
$ADMIN->add('server', new admin_externalpage('adminregistration', new lang_string('hubs', 'admin'),
"$CFG->wwwroot/$CFG->admin/registration/index.php"));
// E-mail settings.
$ADMIN->add('server', new admin_category('email', new lang_string('categoryemail', 'admin')));
$temp = new admin_settingpage('outgoingmailconfig', new lang_string('outgoingmailconfig', 'admin'));
$temp->add(new admin_setting_heading('smtpheading', new lang_string('smtp', 'admin'),
new lang_string('smtpdetail', 'admin')));
$temp->add(new admin_setting_configtext('smtphosts', new lang_string('smtphosts', 'admin'),
new lang_string('configsmtphosts', 'admin'), '', PARAM_RAW));
$options = array('' => new lang_string('none', 'admin'), 'ssl' => 'SSL', 'tls' => 'TLS');
$temp->add(new admin_setting_configselect('smtpsecure', new lang_string('smtpsecure', 'admin'),
new lang_string('configsmtpsecure', 'admin'), '', $options));
$authtypeoptions = array('LOGIN' => 'LOGIN', 'PLAIN' => 'PLAIN', 'NTLM' => 'NTLM', 'CRAM-MD5' => 'CRAM-MD5');
$temp->add(new admin_setting_configselect('smtpauthtype', new lang_string('smtpauthtype', 'admin'),
new lang_string('configsmtpauthtype', 'admin'), 'LOGIN', $authtypeoptions));
$temp->add(new admin_setting_configtext('smtpuser', new lang_string('smtpuser', 'admin'),
new lang_string('configsmtpuser', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configpasswordunmask('smtppass', new lang_string('smtppass', 'admin'),
new lang_string('configsmtpuser', 'admin'), ''));
$temp->add(new admin_setting_configtext('smtpmaxbulk', new lang_string('smtpmaxbulk', 'admin'),
new lang_string('configsmtpmaxbulk', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_heading('noreplydomainheading', new lang_string('noreplydomain', 'admin'),
new lang_string('noreplydomaindetail', 'admin')));
$temp->add(new admin_setting_configtext('noreplyaddress', new lang_string('noreplyaddress', 'admin'),
new lang_string('confignoreplyaddress', 'admin'), 'noreply@' . get_host_from_url($CFG->wwwroot), PARAM_NOTAGS));
$temp->add(new admin_setting_configtextarea('allowedemaildomains',
new lang_string('allowedemaildomains', 'admin'),
new lang_string('configallowedemaildomains', 'admin'),
''));
$temp->add(new admin_setting_heading('emaildoesnotfit', new lang_string('doesnotfit', 'admin'),
new lang_string('doesnotfitdetail', 'admin')));
$charsets = get_list_of_charsets();
unset($charsets['UTF-8']); // Not needed here.
$options = array();
$options['0'] = 'UTF-8';
$options = array_merge($options, $charsets);
$temp->add(new admin_setting_configselect('sitemailcharset', new lang_string('sitemailcharset', 'admin'),
new lang_string('configsitemailcharset','admin'), '0', $options));
$temp->add(new admin_setting_configcheckbox('allowusermailcharset', new lang_string('allowusermailcharset', 'admin'),
new lang_string('configallowusermailcharset', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowattachments', new lang_string('allowattachments', 'admin'),
new lang_string('configallowattachments', 'admin'), 1));
$options = array('LF' => 'LF', 'CRLF' => 'CRLF');
$temp->add(new admin_setting_configselect('mailnewline', new lang_string('mailnewline', 'admin'),
new lang_string('configmailnewline', 'admin'), 'LF', $options));
$choices = array(new lang_string('never', 'admin'),
new lang_string('always', 'admin'),
new lang_string('onlynoreply', 'admin'));
$temp->add(new admin_setting_configselect('emailfromvia', new lang_string('emailfromvia', 'admin'),
new lang_string('configemailfromvia', 'admin'), 1, $choices));
$ADMIN->add('email', $temp);
// "update notifications" settingpage
if (empty($CFG->disableupdatenotifications)) {
$temp = new admin_settingpage('updatenotifications', new lang_string('updatenotifications', 'core_admin'));
$temp->add(new admin_setting_configcheckbox('updateautocheck', new lang_string('updateautocheck', 'core_admin'),
new lang_string('updateautocheck_desc', 'core_admin'), 1));
if (empty($CFG->disableupdateautodeploy)) {
$temp->add(new admin_setting_configcheckbox('updateautodeploy', new lang_string('updateautodeploy', 'core_admin'),
new lang_string('updateautodeploy_desc', 'core_admin'), 0));
}
$temp->add(new admin_setting_configselect('updateminmaturity', new lang_string('updateminmaturity', 'core_admin'),
new lang_string('updateminmaturity_desc', 'core_admin'), MATURITY_STABLE,
array(
+5 -2
View File
@@ -34,7 +34,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// Conditional activities: completion and availability
$optionalsubsystems->add(new admin_setting_configcheckbox('enablecompletion',
new lang_string('enablecompletion','completion'),
new lang_string('configenablecompletion','completion'), 0));
new lang_string('configenablecompletion', 'completion'), 1));
$options = array(
1 => get_string('completionactivitydefault', 'completion'),
@@ -45,10 +45,13 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$optionalsubsystems->add($checkbox = new admin_setting_configcheckbox('enableavailability',
new lang_string('enableavailability', 'availability'),
new lang_string('enableavailability_desc', 'availability'), 0));
new lang_string('enableavailability_desc', 'availability'), 1));
$checkbox->set_affects_modinfo(true);
$optionalsubsystems->add(new admin_setting_configcheckbox('enableplagiarism', new lang_string('enableplagiarism','plagiarism'), new lang_string('configenableplagiarism','plagiarism'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablebadges', new lang_string('enablebadges', 'badges'), new lang_string('configenablebadges', 'badges'), 1));
$optionalsubsystems->add(new admin_setting_configcheckbox('enableglobalsearch', new lang_string('enableglobalsearch', 'admin'),
new lang_string('enableglobalsearch_desc', 'admin'), 0, 1, 0));
}
+2 -1
View File
@@ -30,6 +30,7 @@ if ($hassiteconfig) {
$ADMIN->add('root', new admin_category('users', new lang_string('users','admin')));
$ADMIN->add('root', new admin_category('courses', new lang_string('courses','admin')));
$ADMIN->add('root', new admin_category('grades', new lang_string('grades')));
$ADMIN->add('root', new admin_category('competencies', new lang_string('competencies', 'core_competency')));
$ADMIN->add('root', new admin_category('badges', new lang_string('badges'), empty($CFG->enablebadges)));
$ADMIN->add('root', new admin_category('location', new lang_string('location','admin')));
$ADMIN->add('root', new admin_category('language', new lang_string('language')));
@@ -46,4 +47,4 @@ $ADMIN->add('root', new admin_category('development', new lang_string('developme
$ADMIN->add('root', new admin_category('unsupported', new lang_string('unsupported', 'admin'), true));
// hidden search script
$ADMIN->add('root', new admin_externalpage('search', new lang_string('searchresults'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));
$ADMIN->add('root', new admin_externalpage('search', new lang_string('search', 'admin'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:configview', true));
+5 -2
View File
@@ -185,12 +185,15 @@ if ($hassiteconfig
new lang_string('showuseridentity_desc', 'admin'), array('email' => 1), array(
'idnumber' => new lang_string('idnumber'),
'email' => new lang_string('email'),
'phone1' => new lang_string('phone'),
'phone1' => new lang_string('phone1'),
'phone2' => new lang_string('phone2'),
'department' => new lang_string('department'),
'institution' => new lang_string('institution'),
)));
$temp->add(new admin_setting_configtext('fullnamedisplay', new lang_string('fullnamedisplay', 'admin'), new lang_string('configfullnamedisplay', 'admin'), 'language', PARAM_TEXT, 50));
$setting = new admin_setting_configtext('fullnamedisplay', new lang_string('fullnamedisplay', 'admin'),
new lang_string('configfullnamedisplay', 'admin'), 'language', PARAM_TEXT, 50);
$setting->set_force_ltr(true);
$temp->add($setting);
$temp->add(new admin_setting_configtext('alternativefullnameformat', new lang_string('alternativefullnameformat', 'admin'),
new lang_string('alternativefullnameformat_desc', 'admin'),
'language', PARAM_RAW, 50));
+69
View File
@@ -0,0 +1,69 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/setting
Admin setting template.
Context variables required for this template:
* labelfor - id of the form element
* title - Setting title
* override - Overridden message
* warning - Warning message
* name - Setting name
* error - Error message
* element - The Element HTML
* forceltr - Force this element to be displayed LTR
* default - Default value
Example context (json):
{
"title": "Setting title",
"labelfor": "id0",
"override": "Overidden",
"warning": "Warning",
"name": "Name",
"error": "Error",
"element": "Raw HTML",
"forceltr": false,
"default": "Default value"
}
}}
<div class="form-item clearfix" id="{{id}}">
<div class="form-label">
<label {{#labelfor}}for="{{labelfor}}"{{/labelfor}}>
{{{title}}}
{{#override}}
<div class="form-overridden">{{override}}</div>
{{/override}}
{{#warning}}
<div class="form-warning">{{warning}}</div>
{{/warning}}
</label>
<span class="form-shortname">{{{name}}}</span>
</div>
<div class="form-setting">
{{#error}}
<div><span class="error">{{error}}</span></div>
{{/error}}
{{{element}}}
{{#default}}
<div class="form-defaultinfo {{#forceltr}}text-ltr{{/forceltr}}">{{{default}}}</div>
{{/default}}
</div>
<div class="form-description">{{{description}}}</div>
</div>
@@ -0,0 +1,41 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/setting_configcheckbox
Admin checkbox setting template.
Context variables required for this template:
* name - form element name
* no - no value
* value - yes value
* id - element id
* checked - boole
Example context (json):
{
"name": "test",
"no": "False",
"value": "True",
"id": "test0",
"checked": "checked"
}
}}
<div class="form-checkbox defaultsnext">
<input type="hidden" name="{{name}}" value="{{no}}">
<input type="checkbox" name="{{name}}" value="{{value}}" id="{{id}}" {{#checked}}checked{{/checked}}>
</div>
@@ -0,0 +1,48 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/setting_configcolourpicker
Admin setting colour picker template.
Context variables required for this template:
* icon - optional icon context (see pix_icon)
* name - element name
* id - element id
* value - element value
* haspreviewconfig - show preview of selected color
Example context (json):
{
"icon": false,
"name": "name0",
"id": "id0",
"value": "#555655",
"haspreviewconfig": false
}
}}
<div class="form-colourpicker defaultsnext">
<div class="admin_colourpicker clearfix">
{{#icon}}
{{>core/pix_icon}}
{{/icon}}
</div>
<input type="text" name="{{name}}" id="{{id}}" value="{{value}}" size="12" class="text-ltr">
{{#haspreviewconfig}}
<input type="button" id="{{id}}_preview" value={{#quote}}{{#str}}preview{{/str}}{{/quote}} class="admin_colourpicker_preview">
{{/haspreviewconfig}}
</div>
@@ -0,0 +1,41 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/setting_configdirectory
Admin directory setting template.
Context variables required for this template:
* name - form element name
* id - element id
* size - size of the field
* readonly - Make the field readonly
* value - value
* showvalidity - Show a green check if the path is readable
* valid - True if the path is readable
Example context (json):
{
"name": "test",
"value": "/my-super-secret-path/",
"id": "test0",
"readonly": true,
"showvalidity": true,
"valid": false
}
}}
{{>core_admin/setting_configfile}}
@@ -0,0 +1,45 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/setting_configduration
Admin duration setting template.
Context variables required for this template:
* name - form element name
* options - list of options for units containing name, value, selected
* value - yes
* id - element id
Example context (json):
{
"name": "test",
"value": "5",
"id": "test0",
"options": [ { "name": "Minutes", "value": "mins", "selected": true } ]
}
}}
<div class="form-duration defaultsnext">
<input type="text" size="5" id="{{id}}v" name="{{name}}[v]" value="{{value}}" class="text-ltr">
<label class="accesshide" for="{{id}}u">{{#str}}durationunits, admin{{/str}}</label>
<select id="{{id}}u" name="{{name}}[u]">
{{#options}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
{{/options}}
</select>
</div>
@@ -0,0 +1,34 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/setting_configempty
Admin empty setting template.
Context variables required for this template:
* name - form element name
* id - element id
Example context (json):
{
"name": "test",
"id": "test0"
}
}}
<div class="form-empty">
<input type="hidden" name="{{name}}" id="{{id}}" value="">
</div>
@@ -0,0 +1,41 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/setting_configexecutable
Admin executable setting template.
Context variables required for this template:
* name - form element name
* id - element id
* size - size of the field
* readonly - Make the field readonly
* value - value
* showvalidity - Show a green check if the path is readable
* valid - True if the path is readable
Example context (json):
{
"name": "test",
"value": "/usr/bin/cowsay",
"id": "test0",
"readonly": true,
"showvalidity": true,
"valid": false
}
}}
{{>core_admin/setting_configfile}}
@@ -0,0 +1,52 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/setting_configfile
Admin file setting template.
Context variables required for this template:
* name - form element name
* id - element id
* size - size of the field
* readonly - Make the field readonly
* value - value
* showvalidity - Show a green check if the path is readable
* valid - True if the path is readable
Example context (json):
{
"name": "test",
"value": "/my-super-secret-path/file",
"id": "test0",
"readonly": true,
"showvalidity": true,
"valid": false
}
}}
<div class="form-file defaultsnext">
<input type="text" name="{{name}}" id="{{id}}" size="{{size}}" value="{{value}}" class="text-ltr" {{#readonly}}readonly{{/readonly}}>
{{#showvalidity}}
{{#valid}}
<span class="pathok">&#x2714;</span>
{{/valid}}
{{^valid}}
<span class="patherror">&#x2718;</span>
{{/valid}}
{{/showvalidity}}
</div>
@@ -0,0 +1,39 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_admin/setting_confightmleditor
Admin htmleditor setting template.
Context variables required for this template:
* rows - number of rows
* cols - number of cols
* id - element id
* name - element name
* value - default text
* forceltr - always ltr
Example context (json):
{
"name": "test",
"id": "test0",
"value": "Your aims are high, and you are capable of much.",
"rows": 5,
"cols": 30
}
}}
{{>core_admin/setting_configtextarea}}

Some files were not shown because too many files have changed in this diff Show More