Compare commits

...

3041 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) c1ed254643 Moodle release 2.7 2014-05-10 18:35:21 +02:00
AMOS bot e99836a306 Automatically generated installer lang files 2014-05-10 00:46:32 +00:00
Damyon Wiese 8c80b452dc on-demand release 2.7rc2+ 2014-05-09 11:07:26 +08:00
Damyon Wiese b69f3db458 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2014-05-09 11:07:10 +08:00
Marina Glancy f094167bef MDL-45486 Bump all versions to planned release 2014-05-09 10:50:39 +08:00
Dan Poltawski a5fd1a13c8 Merge branch 'MDL-45486' of git://github.com/stronk7/moodle 2014-05-09 10:50:26 +08:00
John Okely 6d90ef2b4a MDL-45296 mod_assign: Revert changes to lock_submission and unlock_submission events 2014-05-09 09:58:55 +08:00
AMOS bot fe75ff290f Automatically generated installer lang files 2014-05-09 00:40:45 +00:00
Eloy Lafuente (stronk7) 538bf99ece MDL-45486 Bump all versions to planned release
This bumps all versions to planned 2.7 release
(2014051200) version and all the dependencies to
current 2.7rc2 (2014050800)
2014-05-09 02:12:28 +02:00
Eloy Lafuente (stronk7) 2fe085b284 MDL-45296 tests: ensure all submissions exist
The changes performed with the change from
create_from_user() to create_from_submission()
in practice enforce a new restriction about
submissions having to exist in order to fire
their lock/unlock events.

This did not exist before the change and, also,
it seems that the assign api itself, submission->lock() ...
also accepts non existing submissions.

So I was not 100% sure about how to fix these events:

1) enforcing submission to exist.
2) firing them only if the submission exist.

I've gone with 1) for now, making tests to pass. But will
raise the question in the Tracker, just in case we have
to move to the 2) approach for any reason.
2014-05-08 20:03:34 +02:00
Eloy Lafuente (stronk7) b95db263ca MDL-45296 tests: Fix unit tests to have objectid
In order to create the needed subscriptions to
make the event tests reliable a subscriptions
generator has been added. It performs raw-sql
subscriptions because by using the forum API
events would be fired (and that's something
we don't want to happen).
2014-05-08 20:03:17 +02:00
Eloy Lafuente (stronk7) 98b69989ff Moodle release 2.7rc2 2014-05-08 16:36:41 +02:00
Eloy Lafuente (stronk7) b8f0ec297d Merge branch 'MDL-45296' of git://github.com/stronk7/moodle 2014-05-08 15:58:46 +02:00
Eloy Lafuente (stronk7) b8ac973a21 MDL-45296 phpdoc: add some missing params 2014-05-08 15:52:07 +02:00
John Okely 9c94ca5843 MDL-45296 events: Fix objecttable and ids
Various events had them incorrectly set or missing:
  - submission_locked
  - submission_unlocked
  - subscription_created
  - subscription_deleted
2014-05-08 15:30:03 +02:00
Marina Glancy 585ff7eaec Merge branch 'MDL-45462-master' of git://github.com/FMCorz/moodle 2014-05-08 19:50:13 +08:00
Eloy Lafuente (stronk7) b8622d1632 Merge branch 'MDL-45443-master' of git://github.com/FMCorz/moodle 2014-05-08 12:52:54 +02:00
Eloy Lafuente (stronk7) 6280e88d69 Merge branch 'MDL-45444-master' of git://github.com/andrewnicols/moodle 2014-05-08 12:40:27 +02:00
Eloy Lafuente (stronk7) a23a2ed19d Merge branch 'wip-mdl-44262' of https://github.com/rajeshtaneja/moodle
Conflicts:
	composer.json
2014-05-08 12:00:33 +02:00
Rajesh Taneja 50a01e0fc5 MDL-44262 Behat: Bump behat version to get format fix 2014-05-08 17:46:50 +08:00
Frederic Massart a36f8b36dd MDL-45443 theme_base: Missing closing bracket ruining the CSS 2014-05-08 17:37:37 +08:00
Eloy Lafuente (stronk7) ab870c7e69 Merge branch 'wip-mdl-45461' of https://github.com/rajeshtaneja/moodle 2014-05-08 11:31:54 +02:00
Marina Glancy 9a9b5257fa Merge branch 'MDL-45373-master' of git://github.com/jamiepratt/moodle 2014-05-08 15:41:20 +08:00
Frederic Massart c5e8a036c5 MDL-45332 repository_url: URL parameter is using PARAM_URL 2014-05-08 15:35:03 +08:00
Andrew Nicols 079c3a9446 MDL-45444 editor_atto: Fix vertical alignment of editor buttons 2014-05-08 12:33:12 +08:00
Marina Glancy 317e98badd MDL-45414 wiki: blank image for page index icons 2014-05-08 12:12:50 +08:00
Marina Glancy b76ae3b0ce Merge branch 'MDL-44630_CC_Changes' of git://github.com/moodlerooms/moodle 2014-05-08 12:05:20 +08:00
Marina Glancy f69c0d572e Merge branch 'MDL-45398-master' of git://github.com/sammarshallou/moodle 2014-05-08 12:04:53 +08:00
Frederic Massart 6f6345e327 MDL-45462 flickr: Requests are now done over HTTPS 2014-05-08 11:27:36 +08:00
Dan Poltawski d1a316373f Merge branch 'MDL-45425-master' of git://github.com/andrewnicols/moodle 2014-05-08 11:05:20 +08:00
Dan Poltawski 327c382c47 MDL-43312 tinymce: bump plugin version 2014-05-08 10:52:36 +08:00
Dan Poltawski dac2e286da Merge branch 'MDL-43312-master' of git://github.com/damyon/moodle 2014-05-08 10:51:51 +08:00
Rajesh Taneja 8ad79f5c2e MDL-45461 behat: Added custom hack notice for chrome+safari+ie 2014-05-08 10:10:28 +08:00
Eloy Lafuente (stronk7) 9c1bbddce7 Merge branch '45457-27' of git://github.com/samhemelryk/moodle 2014-05-07 23:54:36 +02:00
Sam Hemelryk 1c17e19a5c MDL-45457 phpdoc: fixed up a couple of @package typos 2014-05-08 08:14:10 +12:00
Mark Nielsen e686494fbc MDL-44630: Fixing PHP foreach warnings 2014-05-07 12:39:47 -07:00
Eloy Lafuente (stronk7) 1cf1ef9fe6 Merge branch 'MDL-45449-master' of https://github.com/sammarshallou/moodle 2014-05-07 19:58:52 +02:00
sam marshall c545f3b0db MDL-45449 Availabillity settings - new visible/hidden control (eye icon) is hard to spot
This change makes it use a larger icon.
2014-05-07 16:35:23 +01:00
Eloy Lafuente (stronk7) 83b25b12ff Merge branch '45231-27-3' of git://github.com/samhemelryk/moodle 2014-05-07 15:50:15 +02:00
Dan Poltawski 917ceadbd7 Merge branch 'wip-MDL-45319-master' of git://github.com/marinaglancy/moodle 2014-05-07 17:51:31 +08:00
sam marshall 59d585d135 MDL-45398 Manage availability restrictions: Show/hide not working
The show/hide icons were not working correctly. In addition, the
report still displayed even when availability feature was turned
off.

As well as fixing them, I added a Behat test to cover this report.
2014-05-07 10:15:27 +01:00
Marina Glancy 2cba18ee43 Merge branch 'MDL-45282_message' of git://github.com/andyjdavis/moodle 2014-05-07 16:52:11 +08:00
Dan Poltawski fb3f578f41 Merge branch 'MDL-45410-en_fix' of git://github.com/mudrd8mz/moodle 2014-05-07 16:38:00 +08:00
Mark Nelson 425e761712 MDL-45319 events: added debugging messages for missing relateduserid value 2014-05-07 16:28:59 +08:00
Mark Nelson f1e0f66ca8 MDL-45319 events: set the relateduserid when triggering the user_created/updated/deleted events 2014-05-07 16:28:59 +08:00
Mark Nelson e687396a1e MDL-45319 events: trivial changes 2014-05-07 16:28:59 +08:00
Marina Glancy eaea796e70 MDL-45126 do not allow guests see name and summary of hidden course 2014-05-07 16:22:20 +08:00
Juan Leyva 679e323aaa MDL-43119 Add valid until dates for tokens created by login/token.php
3 months were decided
2014-05-07 16:16:40 +08:00
Andrew Davis f624f56999 MDL-45282 core_user: fixed up some oddities in the bulk user messaging screen 2014-05-07 15:34:29 +08:00
Andrew Nicols ee37639542 MDL-45425 editor_atto: Check for change selections asynchronously 2014-05-07 14:30:28 +08:00
Frederic Massart b04bf988ef MDL-43877 blocks: Files from blocks in my/ were accessible to the world 2014-05-07 14:27:11 +08:00
Dan Poltawski 5140fac5da Merge branch 'MDL-44606-master' of http://github.com/damyon/moodle 2014-05-07 14:18:13 +08:00
Dan Poltawski b6cb3a4324 Merge branch 'wip-MDL-45421-master' of git://github.com/abgreeve/moodle 2014-05-07 14:16:20 +08:00
Damyon Wiese 0cd720fe51 MDL-44606 assign: disable sesskey protection for unit test. 2014-05-07 14:06:08 +08:00
Damyon Wiese 85e8f68108 Merge branch 'MDL-45290-master-fix' of https://github.com/jethac/moodle 2014-05-07 13:28:20 +08:00
Marina Glancy 97436e311c Merge branch 'MDL-45387-master' of git://github.com/jethac/moodle 2014-05-07 13:06:30 +08:00
Marina Glancy 90ce5afd81 Merge branch 'MDL-45201-master' of git://github.com/ankitagarwal/moodle 2014-05-07 13:06:17 +08:00
Damyon Wiese 6363588b72 MDL-43312 TinyMCE: Version bump to 3.5.10. Remove all the hacks.
I retested the old bugs that required custom hacks to tinymce and could not reproduce them,
so I have not reimplemented the hacks.
2014-05-07 12:54:43 +08:00
Damyon Wiese 46b56588ae MDL-44606 Assign: Some grading functions are missing sesskey protection 2014-05-07 12:36:38 +08:00
Adrian Greeve 4b8f05adc6 MDL-45421 report_eventlist: Changed sorting of event name column to sort by event name.
It was sorting by the full event path previous to this.
2014-05-07 12:30:36 +08:00
Dan Poltawski fa00be94b1 Merge branch 'wip-MDL-45414-master' of git://github.com/marinaglancy/moodle 2014-05-07 12:05:17 +08:00
Dan Poltawski 4d693c3839 Merge branch 'wip-MDL-45429-master' of git://github.com/marinaglancy/moodle 2014-05-07 11:50:09 +08:00
Eric Merrill 391101008a MDL-45439 reports Don't send contextlevel to legacy logging.
It doesn't support the column.
2014-05-07 11:10:19 +08:00
Jetha Chan c9b94fb0d4 MDL-45387 core_form: erroneous escaping on reference list
Fixed erroneous escaping in JS.
2014-05-07 10:52:51 +08:00
Helen Foster f15fa7a281 MDL-45410 Merge English strings from the en_fix language pack 2014-05-07 00:16:51 +02:00
Sam Hemelryk cfd97e02f7 MDL-45231 theme_clean: navbar is absolute when running behat in IE 2014-05-07 09:42:07 +12:00
Mark Nielsen 4bcde92185 MDL-44630: Fix CC backup of quizzes
The common cartridge backup was skipping
quizzes because the <questions> element
is no longer in the Moodle backup file.
Instead, now reading from the list of
<question_instances> list.
2014-05-06 14:00:13 -07:00
Eloy Lafuente (stronk7) f8fa440649 on-demand release 2.7rc1+ 2014-05-06 15:57:48 +02:00
Marina Glancy 88c0e2f374 MDL-45357 events: unittest correction, event description change 2014-05-06 17:13:37 +08:00
Jetha Chan cecd602d8b MDL-45290 rubrics: overflow, delete button alignment
Adjusted delete button alignment, restored overflow rule, amended button alignment, minor RTL fixes.
2014-05-06 16:47:20 +08:00
Andrew Nicols 02915dfc23 MDL-45357 events: Remove unnecessary the before 'id' in event descriptions 2014-05-06 16:45:05 +08:00
Andrew Nicols 4d87e5c109 MDL-45357 events: Normalise event description names 2014-05-06 16:44:04 +08:00
Andrew Nicols f32629c7ea MDL-45357 events: Improve clarity of allow role change descriptions 2014-05-06 16:43:56 +08:00
Mark Nelson 196d227f21 MDL-45357 events: removed unnecessary verb from description 2014-05-06 16:43:29 +08:00
Andrew Nicols eb497e26fb MDL-45338 editor_atto: Correct gesturemoveend listening
Delegate gesturemoveend rather than listen to ensure adequate event filters
and that we apply to only the correct editor.
2014-05-06 16:10:31 +08:00
Marina Glancy 447d55d55a MDL-45429 block_glossary_random: check capability before suggesting to edit 2014-05-06 16:06:29 +08:00
James Pratt 96a0b9aaaa MDL-45373 quiz response analysis : count all tries at question
don't filter repeated tries.
2014-05-06 12:26:02 +07:00
Marina Glancy e7efd59b51 Merge branch 'MDL-45409-master' of git://github.com/ankitagarwal/moodle 2014-05-06 12:19:58 +08:00
Damyon Wiese e4f1dd46b0 MDL-45412 Cache: Mongo DB string change (older is less than) 2014-05-06 12:03:44 +08:00
Damyon Wiese 7c6f2e29ae MDL-45412 Cache: Look for the newer classname first (mongo store) 2014-05-06 12:03:27 +08:00
Damyon Wiese 87f7ae9c46 Merge branch '45412-27' of git://github.com/samhemelryk/moodle 2014-05-06 12:03:19 +08:00
Dan Poltawski 02c482704b Merge branch 'MDL-45403-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/editor/atto/plugins/link/yui/build/moodle-atto_link-button/moodle-atto_link-button-min.js
2014-05-06 11:48:38 +08:00
Dan Poltawski 73c2ae4bff Merge branch 'MDL-45253-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
2014-05-06 11:34:17 +08:00
Marina Glancy c3625f5ba3 MDL-45414 wiki: fix broken image 2014-05-06 11:34:01 +08:00
Dan Poltawski 63469ab11d Merge branch 'MDL-45338-master' of git://github.com/andrewnicols/moodle 2014-05-06 11:27:41 +08:00
Damyon Wiese f35bfa2cff Merge branch 'MDL-45290-master-fix' of http://github.com/jethac/moodle 2014-05-06 11:23:39 +08:00
Dan Poltawski 4644e7d067 Merge branch 'MDL-45376-master' of https://github.com/sammarshallou/moodle 2014-05-06 11:16:32 +08:00
Jetha Chan fe778267f2 MDL-45290 rubric: IE8 and minor fixes, RTL
Added a fallback style for IE8, adjusted some minor styles, added RTL capability.
2014-05-06 10:44:59 +08:00
Dan Poltawski 5bf52355ea Merge branch 'MDL-30106' of git://github.com/jleyva/moodle 2014-05-06 10:25:48 +08:00
Dan Poltawski ba60c47265 Merge branch 'MDL-42956-master' of git://github.com/lameze/moodle 2014-05-06 10:18:44 +08:00
Sam Hemelryk 6deb0813d0 MDL-45412 cachestore_mongodb: added notification of old Mongo version use 2014-05-06 09:30:27 +12:00
Sam Hemelryk 4907a8ed70 MDL-45412 cachestore_mongodb: fixed use of deprecated Mongo class 2014-05-06 09:29:45 +12:00
Juan Leyva fb8840d291 MDL-30106 forum: get_posts WS fixes in data generator and def. values 2014-05-05 11:56:43 +02:00
Juan Leyva 4ed1546154 MDL-30106 forum: Bump version number (upgrading service and installing new ws) 2014-05-05 11:56:43 +02:00
Juan Leyva e2ede4262f MDL-30106 forum: New web service mod_forum_get_forum_discussion_posts 2014-05-05 11:55:43 +02:00
Frederic Massart 664c851755 MDL-45403 editor_atto: Change default for tagMarchRequiresAll to true 2014-05-05 17:47:54 +08:00
Frederic Massart e76ae8077a MDL-45253 editor_atto: Async the highlighting of buttons 2014-05-05 17:46:13 +08:00
Frederic Massart fafeb5a293 MDL-45253 editor_atto: Check for button highlights on change event
This will allow a button to be highlighted when a plugin has updated
the content, not only when the selection has changed.
2014-05-05 17:46:13 +08:00
Frederic Massart e988383645 MDL-45253 editor_atto: Prevent selection of all nodes when selection is empty 2014-05-05 17:46:13 +08:00
Frederic Massart d78920bdba MDL-45253 editor_atto: selectionFilterMatches includes parents 2014-05-05 17:46:13 +08:00
Marina Glancy 6df154bd20 Merge branch 'MDL-34904-master' of git://github.com/ankitagarwal/moodle 2014-05-05 17:41:01 +08:00
Damyon Wiese 6d8617bed9 Merge branch 'MDL-45359-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2014-05-05 17:24:08 +08:00
Marina Glancy a7c1a5bcb5 Merge branch 'MDL-44174-master' of git://github.com/FMCorz/moodle 2014-05-05 17:18:04 +08:00
Marina Glancy 4cbe8be96d Merge branch 'MDL-45342-master' of git://github.com/ankitagarwal/moodle 2014-05-05 17:17:45 +08:00
Marina Glancy cbc394fabf Merge branch 'MDL-43319-master' of git://github.com/danpoltawski/moodle 2014-05-05 17:17:30 +08:00
Marina Glancy d0144cd38e Merge branch 'MDL-44972-master' of git://github.com/damyon/moodle 2014-05-05 17:17:11 +08:00
Marina Glancy b9c5bae5b1 Merge branch '45231-27-2' of git://github.com/samhemelryk/moodle 2014-05-05 17:16:52 +08:00
Damyon Wiese c1660772b1 MDL-44972 Atto dialogues: Change M.core.dialogue attribute name to "focusOnShowSelector"
And some minor cleanups.
2014-05-05 16:27:36 +08:00
Ankit Agarwal 5793538a59 MDL-45409 conditional_activity: Do not iterate over deprecated properties 2014-05-05 16:26:35 +08:00
Marina Glancy 16feb870d4 Merge branch 'MDL-45357_master' of git://github.com/markn86/moodle 2014-05-05 16:09:53 +08:00
Mark Nelson c5cfb3ca98 MDL-45357 events: changed event descriptions to ensure consistency in core 2014-05-05 00:55:50 -07:00
Damyon Wiese e5ddec38cd MDL-44972 Atto: Focus on the first input field in forms in dialogues. 2014-05-05 15:21:11 +08:00
Damyon Wiese 2372366f58 MDL-44224: outdent plugin - handle divs that have been silently switched for ps
Also - fix a shifter warning.
2014-05-05 14:07:02 +08:00
Sam Hemelryk b16c2ec5c8 MDL-44224 atto_indent: converts blockquotes to div indents 2014-05-05 14:07:01 +08:00
Ankit Agarwal 2b34a377ea MDL-45201 recent_activity: Fix set type notice in recent activity form 2014-05-05 13:29:51 +08:00
Damyon Wiese 3917871e90 Merge branch 'MDL-45290-master' of git://github.com/jethac/moodle 2014-05-05 10:43:15 +08:00
Damyon Wiese 7da3113b7b Merge branch 'MDL-45382-master' of git://github.com/FMCorz/moodle 2014-05-05 10:35:28 +08:00
Marina Glancy a128a24fca Merge branch 'wip-MDL-45127-master' of git://github.com/abgreeve/moodle 2014-05-05 10:18:03 +08:00
Sam Hemelryk 31a8eddc24 MDL-45231 theme_clean: default navbar to absolute when running behat 2014-05-05 08:11:46 +12:00
Dan Poltawski 0401143193 Moodle release 2.7rc1 2014-05-02 17:41:54 +08:00
Dan Poltawski 94d5dc0b98 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2014-05-02 17:41:51 +08:00
Adrian Greeve 028f535fd9 MDL-45127 mod_lesson: Behat test for reviewing a lesson. 2014-05-02 16:09:06 +08:00
Adrian Greeve 0aec842e58 MDL-45127 mod_lesson: Fixed reviewing lesson answers changing the lesson grade. 2014-05-02 16:09:06 +08:00
Adrian Greeve 20685b287d MDL-45127 mod_lesson: Updated question edit screen with more help text.
Unless the custom scores is selected in the lesson settings the score section
in the question settings will be disabled. A help link has been added with
a description similar to this one.
2014-05-02 16:09:05 +08:00
Dan Poltawski f25e8c4133 Merge branch 'MDL-45054-master' of https://github.com/sammarshallou/moodle 2014-05-02 14:59:25 +08:00
Jetha Chan 73eb9f4339 MDL-45290 rubric: visual fixups
Fixed up visual issues with rubric editor on Clean.
2014-05-02 14:27:14 +08:00
Ankit Agarwal 200aeda661 MDL-34904 lti: Fix notice while using lti in frontpage 2014-05-02 14:05:13 +08:00
Andrew Nicols e30506416b MDL-45338 editor_atto: Check for selection changes on touch-based devices too 2014-05-02 14:03:16 +08:00
Frederic Massart ad9353be73 MDL-44174 theme_clean: Updating information in readme file 2014-05-02 12:56:00 +08:00
Ankit Agarwal f20ae2c5d6 MDL-45342 book: Automate MDLQA-2423 - A teacher can create book chapters and subchapters 2014-05-02 12:13:42 +08:00
Frederic Massart 16c6440dcb MDL-45382 atto_link: Missing context when finding anchors 2014-05-02 12:02:36 +08:00
Andrew Davis 08b90682e4 MDL-45314 core_grade: a JS fix for the grader report 2014-05-02 11:13:45 +08:00
Marina Glancy e2c3c3e080 Merge branch 'MDL-45237-master' of git://github.com/danpoltawski/moodle 2014-05-02 11:13:06 +08:00
Dan Poltawski 39f332972b Merge branch 'MDL-45362-master' of https://github.com/sammarshallou/moodle 2014-05-02 10:59:29 +08:00
Dan Poltawski eb72c1ff05 Merge branch '44729-27' of git://github.com/samhemelryk/moodle 2014-05-02 09:44:49 +08:00
Sam Hemelryk 09d5cfadc5 MDL-44729 theme_bootstrapbase: override the maintenance renderer
This patch overrides the maintenance renderer in the bootstrapbase
theme in order to override the notification method in the same way
we override the core renderer notification method.
This ensures now that clean is standard that notifications during
maintenance tasks (install, upgrade etc) look pretty.
2014-05-02 13:42:22 +12:00
AMOS bot 2d5ffd51ed Automatically generated installer lang files 2014-05-02 00:39:03 +00:00
sam marshall 1710973161 MDL-45376 Completion: Form locking is still not working right
On submit of the form, it called 'freeze' on the completion-related
fields (even though they shouldn't have been frozen because you
already clicked the unlock button).
2014-05-01 18:08:46 +01:00
Marina Glancy 3409fac5ef Merge branch 'MDL-45273' of git://github.com/timhunt/moodle 2014-05-01 21:17:01 +08:00
Marina Glancy 097efb8b41 Merge branch 'wip-MDL-43557-master' of https://github.com/abgreeve/moodle 2014-05-01 21:16:47 +08:00
sam marshall f67dd62820 MDL-45054 Conditional availability: HTML structure improvements
1. Changed the 'delete' and 'eye' buttons to use an <a> link
tag so that it works without custom tabindex and shows a correct
mouse cursor. This also reduces the code slightly.

2. Changed the Cancel button on the dialog to use the mdl-align
class which is used in Atto dialogs. This results in the button
being centered, consistent with those dialogs.
2014-05-01 12:22:38 +01:00
sam marshall a3a2423982 MDL-45362 Availability: Behat test fails on first of month 2014-05-01 11:18:06 +01:00
Tim Hunt 0e8fe7de3d MDL-45273 quiz fixup settings initialisation. 2014-05-01 11:09:05 +01:00
Adrian Greeve 6522afdfa4 MDL-43557 events: Update of webservice function called string. 2014-05-01 18:00:39 +08:00
Dan Poltawski bff7fab342 Merge branch 'MDL-36836-master' of git://github.com/jethac/moodle 2014-05-01 16:34:21 +08:00
Damyon Wiese 6e4c18522d Revert "MDL-45239 editor_atto: The editor cannot be active if it is not the active element"
This reverts commit 05a7f9e749.
2014-05-01 16:22:41 +08:00
Jetha Chan 13e118ca65 MDL-36836 filepicker: alfresco select box fix
Adjusted position of alfresco select box; amended border/background application in base.
2014-05-01 16:08:02 +08:00
Dan Poltawski 066f0395a6 Merge branch 'MDL-45365-master' of git://github.com/damyon/moodle 2014-05-01 14:52:02 +08:00
Dan Poltawski 9d39960028 Merge branch 'MDL-43570' of https://github.com/KristerV/moodle
Conflicts:
	version.php
2014-05-01 14:43:22 +08:00
Dan Poltawski c6b8b0a827 MDL-45237 report_loglive: prevent debug warnings
The use of $PAGE necessitates the $PAGE params to be set. Really
the url shouldn't be necessary for this scenario as its enforced for
things like redirects. But this is the quick fix to keep our logs
clean.
2014-05-01 14:21:41 +08:00
Marina Glancy cb3cc79c82 Merge branch 'MDL-44398-master' of git://github.com/ankitagarwal/moodle 2014-05-01 14:21:39 +08:00
Damyon Wiese 6a20bfa06d MDL-45365 Courselib unit tests: cmid -> instanceid confusion
Yet again an instanceid is being passed instead of a cmid.
2014-05-01 14:00:40 +08:00
Dan Poltawski 5090038929 MDL-43319 phpdoc: fix too much ham consumption by developers 2014-05-01 13:34:20 +08:00
Andrew Nicols 0ef60744c3 MDL-45359 JS: Only change mask zIndex on modal dialogues
When dealing with a non-modal dialogue within a modal dialogue, we should
not update the z-index of the underyling maskNode as it does not belong to
this dialogue.
2014-05-01 12:33:44 +08:00
Damyon Wiese 0c3e0f4752 Merge branch 'MDL-45329-master' of git://github.com/andrewnicols/moodle 2014-05-01 12:29:55 +08:00
Marina Glancy 7936ca2c54 MDL-45273 quiz: whitespace fix 2014-05-01 12:19:49 +08:00
Marina Glancy ea50fe37c8 Merge branch 'MDL-45273' of git://github.com/timhunt/moodle 2014-05-01 12:16:48 +08:00
Dan Poltawski 8d863216d8 Merge branch 'MDL-44815-master' of git://github.com/andrewnicols/moodle 2014-05-01 12:06:32 +08:00
Marina Glancy f1251b7730 Merge branch 'MDL-45314_resize' of git://github.com/andyjdavis/moodle 2014-05-01 12:04:11 +08:00
Andrew Davis 85b609c938 MDL-45314 core_grade: keep the two grader report scrollbars the same when the table changes width 2014-05-01 11:57:45 +08:00
Andrew Nicols 5b932559ce MDL-44815 theme: Make chooser icons the standard 16px
The only exception to this rule is the activity chooser which is allowed
24px.
2014-05-01 11:54:26 +08:00
Andrew Nicols b76ed36f85 MDL-44815 core: Add chooser type to boundingbox class 2014-05-01 11:54:25 +08:00
Dan Poltawski 9482292af2 Merge branch 'MDL-45254-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/editor/atto/plugins/equation/yui/build/moodle-atto_equation-button/moodle-atto_equation-button-min.js
2014-05-01 11:53:28 +08:00
Marina Glancy a608d3f40b Merge branch 'MDL-45292-master' of git://github.com/jethac/moodle 2014-05-01 11:48:00 +08:00
Marina Glancy 2027ee89e3 Merge branch 'wip-MDL-45360-master' of git://github.com/abgreeve/moodle 2014-05-01 11:47:51 +08:00
Marina Glancy 64db8b7bcf Merge branch 'MDL-45343-master' of git://github.com/ankitagarwal/moodle 2014-05-01 11:47:40 +08:00
Marina Glancy 8505550532 Merge branch 'MDL-45258-master' of git://github.com/ankitagarwal/moodle 2014-05-01 11:47:27 +08:00
Andrew Nicols f12f34166d MDL-45329 admin_task: Allow scheduled task change prevention
Some hosting providers have a requirement to prevent users making
modifications to the configuration of scheduled tasks as doing so may have
a negative impact not only on their own site, but also on the performance
of other sites (depending on host configuration). For example, if the
statistics or automated backup tasks were run every minute, this could have
a negative impact for other users).
2014-05-01 11:40:25 +08:00
Dan Poltawski 0024400788 Merge branch 'MDL-45167-master' of git://github.com/andrewnicols/moodle 2014-05-01 11:37:13 +08:00
Marina Glancy d2d4a49091 Merge branch 'wip-MDL-45348-master' of git://github.com/abgreeve/moodle 2014-05-01 11:22:54 +08:00
Adrian Greeve ae63d3e11e MDL-45348 report_eventlist: Removed duplicate list link in plugins > report.
I also fixed up a spelling mistake in the language pack (relatedobservers).
2014-05-01 11:12:39 +08:00
Andrew Nicols 395e5e5304 MDL-45167 install: Improve styling of installation process 2014-05-01 10:43:21 +08:00
Dan Poltawski c37257151b Merge branch 'MDL-45283-master' of git://github.com/FMCorz/moodle 2014-05-01 10:40:14 +08:00
Damyon Wiese 45b4f8734a Merge branch 'MDL-44867-m2' of git://github.com/andrewnicols/moodle 2014-05-01 10:29:42 +08:00
Andrew Nicols 241836683a MDL-44867 atto_equation: Adjust the help string describing cursor info 2014-05-01 10:18:03 +08:00
Adrian Greeve 780b2e6ccc MDL-45360 report_eventlist: Fixed up css for the Events list detail page.
When the screen size is reduced the details are moved underneath the headings
prematurely.
2014-05-01 10:01:55 +08:00
Krister Viirsaar ecdb94d3e0 MDL-43570 filetypes: Added new filetypes - ddoc, bdoc, cdoc 2014-04-30 13:04:34 +03:00
Ankit Agarwal c906551fc6 MDL-45343 report_log: Fix missing enddate clause when using date filter 2014-04-30 16:52:29 +08:00
Damyon Wiese 5077d63790 Merge branch 'w19_MDL-45262_m27_choice' of https://github.com/skodak/moodle 2014-04-30 16:37:53 +08:00
Damyon Wiese 954e15bf27 Merge branch 'mdl44575-master' of https://github.com/tlock/moodle 2014-04-30 16:31:41 +08:00
Dan Poltawski da916029ba Merge branch 'MDL-45256-master' of git://github.com/FMCorz/moodle 2014-04-30 15:48:17 +08:00
Damyon Wiese 1b3f9ea1ba Merge branch 'MDL-44867-master' of git://github.com/andrewnicols/moodle 2014-04-30 15:40:36 +08:00
Frederic Massart 8cf55094af MDL-45256 portfolio: Adding missing global in testcase 2014-04-30 15:32:23 +08:00
Petr Skoda 8e937d25d0 MDL-45262 remove set_page_detail() leftover from choice report 2014-04-30 15:25:47 +08:00
Damyon Wiese 46a7e1d23b Merge branch 'MDL-45321' of git://github.com/timhunt/moodle 2014-04-30 15:25:22 +08:00
Marina Glancy 6776b3ffa0 Merge branch 'w19_MDL-43557_m27_cleanup' of git://github.com/skodak/moodle 2014-04-30 15:12:56 +08:00
Marina Glancy 6032ae0f13 Merge branch 'MDL-43557_master' of git://github.com/markn86/moodle 2014-04-30 15:12:31 +08:00
Petr Skoda b649341dab MDL-43557 add missing description to \mod_quiz\event\attempt_becameoverdue 2014-04-30 15:00:03 +08:00
Petr Skoda 8b233bdacd MDL-43557 fix BC issue in \core\event\course_completed and incorrect description 2014-04-30 14:59:45 +08:00
Dan Poltawski 63c6df66c3 Merge branch 'MDL-45256-master' of git://github.com/FMCorz/moodle 2014-04-30 14:58:56 +08:00
Dan Poltawski 4df8bbfc87 Merge branch 'MDL-45298-master' of git://github.com/FMCorz/moodle 2014-04-30 14:15:40 +08:00
Damyon Wiese da8a720d75 Merge branch 'MDL-45239-master' of git://github.com/andrewnicols/moodle 2014-04-30 12:13:49 +08:00
Frederic Massart 98fed696dc MDL-45283 restore: Prevent failure when user course grade exists
When we restore a course, the grade that a user has for the
grade item of the course cannot be created twice. If we try
to create it when it already exists, a database exception is
raised because of index duplication.

The safest way to proceed is certainly to ignore the grade
information from the backup, otherwise we could potentially
overwrite existing information. Though, this only applies
to restore as merge, and it does not affect the update of
the course grade.
2014-04-30 12:09:13 +08:00
Petr Skoda 3373120f60 MDL-43557 fix assertion for course section event description 2014-04-30 11:44:56 +08:00
Dan Poltawski 4b1e2c5fc8 Merge branch 'MDL-44780_mathjax_default' of https://github.com/andyjdavis/moodle 2014-04-30 11:25:02 +08:00
Andrew Nicols d8e2dc99b7 MDL-44867 atto_equation: Switch to the Downarrow for cursor position
The \square macro is not available in standard MimeTeX.
2014-04-30 11:14:36 +08:00
Petr Skoda d1c7cf5376 MDL-43557 fix relateduserid in \mod_workshop\event\submission_assessed
The assessment is related to the original author of submission.
2014-04-30 11:03:43 +08:00
Mark Nelson 02a5a4b2ff MDL-43557 events: fixed minor issues in existing events 2014-04-29 19:16:11 -07:00
Mark Nelson 4d9c1b573e MDL-43557 mod_lesson: removed incorrect usage of snapshots 2014-04-29 19:15:47 -07:00
Mark Nelson f3d981897e MDL-43557 events: renamed event class names
1) The core 'item_tagged' class was renamed to 'tag_added'.
2) The core 'item_untagged' class was renamed to 'tag_removed'.
3) The core 'message_read' class was renamed to 'message_viewed'.
4) The mod_forum 'userreport_viewed' class was renamed to 'user_report_viewed'.
5) The report_outline 'activity_viewed' was renamed to 'activity_report_viewed'.
6) The report_outline 'outline_viewed' was renamed to 'report_viewed'.
2014-04-29 19:15:47 -07:00
Mark Nelson e692f58558 MDL-43557 events: removed underscores from event string keys
AMOS START
 MOV [event_legacy_logged, logstore_legacy],[eventlegacylogged,logstore_legacy]
 MOV [event_cohort_created,cohort],[eventcohortcreated,cohort]
 MOV [event_cohort_deleted,cohort],[eventcohortdeleted,cohort]
 MOV [event_cohort_member_added,cohort],[eventcohortmemberadded,cohort]
 MOV [event_cohort_member_removed,cohort],[eventcohortmemberremoved,cohort]
 MOV [event_cohort_updated,cohort],[eventcohortupdated,cohort]
 MOV [event_group_created,group],[eventgroupcreated,group]
 MOV [event_group_deleted,group],[eventgroupdeleted,group]
 MOV [event_group_member_added,group],[eventgroupmemberadded,group]
 MOV [event_group_member_removed,group],[eventgroupmemberremoved,group]
 MOV [event_group_updated,group],[eventgroupupdated,group]
 MOV [event_grouping_created,group],[eventgroupingcreated,group]
 MOV [event_grouping_deleted,group],[eventgroupingdeleted,group]
 MOV [event_grouping_updated,group],[eventgroupingupdated,group]
 MOV [event_webservice_function_called,webservice],[eventwebservicefunctioncalled,webservice]
 MOV [event_webservice_login_failed,webservice],[eventwebserviceloginfailed,webservice]
 MOV [event_webservice_service_created,webservice],[eventwebserviceservicecreated,webservice]
 MOV [event_webservice_service_deleted,webservice],[eventwebserviceservicedeleted,webservice]
 MOV [event_webservice_service_updated,webservice],[eventwebserviceserviceupdated,webservice]
 MOV [event_webservice_service_user_added,webservice],[eventwebserviceserviceuseradded,webservice]
 MOV [event_webservice_service_user_removed,webservice],[eventwebserviceserviceuserremoved,webservice]
 MOV [event_webservice_token_created,webservice],[eventwebservicetokencreated,webservice]
 MOV [event_webservice_token_sent,webservice],[eventwebservicetokensent,webservice]
 MOV [event_user_loggedin,auth],[eventuserloggedin,auth]
 MOV [event_assessable_uploaded,assignsubmission_file],[eventassessableuploaded,assignsubmission_file]
 MOV [event_assessable_uploaded,assignsubmission_onlinetext],[eventassessableuploaded,assignsubmission_onlinetext]
 MOV [event_chapter_created,mod_book],[eventchaptercreated,mod_book]
 MOV [event_chapter_deleted,mod_book],[eventchapterdeleted,mod_book]
 MOV [event_chapter_updated,mod_book],[eventchapterupdated,mod_book]
 MOV [event_chapter_viewed,mod_book],[eventchapterviewed,mod_book]
 MOV [event_book_exported,booktool_exportimscp],[eventbookexported,booktool_exportimscp]
 MOV [event_book_printed,booktool_print],[eventbookprinted,booktool_print]
 MOV [event_chapter_printed,booktool_print],[eventchapterprinted,booktool_print]
 MOV [event_message_sent,mod_chat],[eventmessagesent,mod_chat]
 MOV [event_sessions_viewed,mod_chat],[eventsessionsviewed,mod_chat]
 MOV [event_answer_created,mod_choice],[eventanswercreated,mod_choice]
 MOV [event_answer_updated,mod_choice],[eventanswerupdated,mod_choice]
 MOV [event_report_viewed,mod_choice],[eventreportviewed,mod_choice]
 MOV [event_assessable_uploaded,mod_forum],[eventassessableuploaded,mod_forum]
 MOV [event_assessable_uploaded,mod_workshop],[eventassessableuploaded,mod_workshop]
AMOS END
2014-04-29 19:15:47 -07:00
Marina Glancy 3f0a5f287a Merge branch 'MDL-45257-master-2nd' of git://github.com/FMCorz/moodle 2014-04-30 10:05:11 +08:00
Marina Glancy 00cb2f0010 Merge branch 'MDL-27459-master' of git://github.com/sammarshallou/moodle 2014-04-30 09:55:25 +08:00
Marina Glancy 8ced50e3da Merge branch 'MDL-45315-master' of git://github.com/danpoltawski/moodle 2014-04-30 09:55:10 +08:00
Krister Viirsaar c6ac68eead MDL-42635 lesson: Fixed error message 2014-04-30 09:51:10 +08:00
Andrew Davis feac5dc7ba MDL-44780 filter_mathjaxloader: mathjax is now at the top of the filter list 2014-04-30 08:29:14 +08:00
Andrew Davis 0c7d3f2bc4 MDL-44780 filter_mathjaxloader: switched mathjax filter on by default 2014-04-30 08:29:13 +08:00
Eloy Lafuente (stronk7) f500ff4e52 MDL-45221 Allow unit tests to pass under any OS
This commit gets rid of the old lib/tests/other/executable.php
file completely because it was only executable under unix OSs
and moves the check to be performed against some mimetex binaries
that are known to be executable and bundled with every installation.

Note this was discovered because the weekly rolling process changed
the execution permissions of the "fixture" file and, at the end
we decided to get rid of it completely, folowing the plan above.
2014-04-29 19:22:54 +02:00
Eloy Lafuente (stronk7) 65dcef2ae4 on-demand release 2.7beta+ 2014-04-29 15:14:22 +02:00
Eloy Lafuente (stronk7) 7c02f52a0e NOBUG: Fixed file access permissions 2014-04-29 15:14:21 +02:00
Tim Hunt 3180508949 MDL-45273 quiz: Fix codechecker issues. 2014-04-29 11:57:01 +01:00
Tim Hunt 9b38aca0ce MDL-45321 quiz upgrade: make it more tolerant to old bad data. 2014-04-29 11:41:16 +01:00
Tim Hunt 8a347d8011 MDL-45273 only create the quiz settings if necessary. 2014-04-29 11:16:49 +01:00
Tim Hunt 9ec7a71661 MDL-45273 remove the need for quiz settings.php to include locallib.php. 2014-04-29 11:16:44 +01:00
Tim Hunt de4cd1e047 MDL-45273 quiz: move admin settings into classes folder. 2014-04-29 11:16:39 +01:00
Frederic Massart 89708ffc5f MDL-45256 portfolio: Do not require strict XML when parsing content 2014-04-29 17:43:44 +08:00
Frederic Massart 94545c73f1 MDL-45256 portfolio: Unit tests for rewrite pluginfile urls 2014-04-29 17:43:44 +08:00
sam marshall 97c3c2c2cc MDL-27459 Completion: When ratings off, disallow grade completion
For activities that use ratings, there is no grade unless ratings
are enabled. The completion system still lets you select 'complete
when user gets a grade', which leads to later errors.

This change simply disables the 'completion on grade' field if
ratings are enabled for the activity, but not turned on in the form.
2014-04-29 10:28:34 +01:00
Marina Glancy a8294bd955 Merge branch 'MDL-45229-master' of git://github.com/FMCorz/moodle 2014-04-29 17:27:56 +08:00
Frederic Massart 1cc9c00c3e MDL-45229 event: Adding information about stricter validation 2014-04-29 17:12:43 +08:00
Dan Poltawski a15d2052e8 MDL-45315 block_news_items: Add missing depedency 2014-04-29 14:24:10 +08:00
Marina Glancy 0af422fe0f Merge branch 'MDL-44614_master-missing-upload' of git://github.com/dmonllao/moodle 2014-04-29 13:02:41 +08:00
Marina Glancy 506b3e2317 Merge branch 'MDL-45289-master' of git://github.com/danpoltawski/moodle 2014-04-29 12:49:30 +08:00
David Monllao d2e6b3b26b MDL-44614 behat: Added missing @_file_upload 2014-04-29 09:55:47 +07:00
Damyon Wiese eff880c371 Merge branch 'MDL-44916-master' of git://github.com/phalacee/moodle 2014-04-29 10:21:25 +08:00
Dan Poltawski e1850856c9 MDL-45289 block_course_summary: Add behat tests 2014-04-29 09:52:54 +08:00
Sam Hemelryk e0eca9b3e5 Merge branch 'MDL-45312' of git://github.com/timhunt/moodle 2014-04-29 10:24:20 +12:00
Sam Hemelryk 4299dc5bb6 Merge branch 'MDL-45221-master' of git://github.com/andrewnicols/moodle 2014-04-29 09:10:05 +12:00
Tim Hunt 856c2f1404 MDL-45312 qtype_missingtype or qbehaviour_missing cannot be uninstalled.
They are required by the system.
2014-04-28 21:45:46 +01:00
Sam Hemelryk 48dba530c6 Merge branch 'MDL-45229-master' of git://github.com/FMCorz/moodle 2014-04-29 08:40:16 +12:00
Marina Glancy cd360f69a4 Merge branch 'w18_MDL-45287_m27_dbreset' of git://github.com/skodak/moodle 2014-04-28 20:17:57 +08:00
Marina Glancy db9cd0b085 Merge branch 'wip-mdl-45293' of git://github.com/rajeshtaneja/moodle 2014-04-28 18:01:27 +08:00
Marina Glancy e8277bd886 Merge branch 'MDL-45156_master' of git://github.com/dmonllao/moodle 2014-04-28 18:01:15 +08:00
Marina Glancy 2666d179ff Merge branch 'MDL-45266-master' of git://github.com/danpoltawski/moodle 2014-04-28 18:00:57 +08:00
Jetha Chan 899fa34a8e MDL-45292 filepicker: fixed border style
Fixed base style issues on RTL.
2014-04-28 17:04:55 +08:00
Petr Skoda a9236a2c3f MDL-45287 fix behat database reset between scenarios
We cannot find out if DB received any writes because behat
web access runs in different request.

This was affecting only scenarios without generators.
2014-04-28 17:02:58 +08:00
Frederic Massart c56f0f4a2c MDL-45298 theme: More permissive usage of retired themes settings 2014-04-28 16:27:33 +08:00
Damyon Wiese 70579a3622 Merge branch 'MDL-45079_master' of https://github.com/totara/openbadges 2014-04-28 16:15:54 +08:00
Simey Lameze 5ad9dd5ff2 MDL-42956 auth: Fix hard-coded LIMIT clause on keepalive_client method. 2014-04-28 16:08:49 +08:00
Ankit Agarwal a9282e4120 MDL-45258 tags:context object/0 should not be passed to tag_set() 2014-04-28 15:35:01 +08:00
Frederic Massart abf3a51e29 MDL-45257 mod_assign: Removing wonky feedback_updated event 2014-04-28 15:13:55 +08:00
Rajesh Taneja 66d8b25b1c MDL-45293 report_participation: ensure only web and ws logs are shown 2014-04-28 13:50:47 +08:00
Marina Glancy 254402dbbe Merge branch 'w17_MDL-45128_m27_stats' of git://github.com/skodak/moodle 2014-04-28 13:48:18 +08:00
Marina Glancy 37501cac1c Merge branch 'MDL-45288_master' of git://github.com/dmonllao/moodle 2014-04-28 13:48:09 +08:00
Marina Glancy f6db769eb2 Merge branch 'MDL-44614_master' of git://github.com/dmonllao/moodle 2014-04-28 13:03:39 +08:00
Marina Glancy c6b4a7f4a2 Merge branch 'MDL-44627-master' of git://github.com/lameze/moodle 2014-04-28 12:43:37 +08:00
Andrew Nicols 9cd7bb3764 MDL-45221 admin: configexecutable admin settings should only accept files 2014-04-28 12:21:21 +08:00
Simey Lameze 9e533215bd MDL-44627 events: Triggering event course module updated actions. 2014-04-28 12:11:24 +08:00
Jason Fowler b23a320558 MDL-44916 Question: Fixing alignment in bootstrap themes 2014-04-28 11:37:26 +08:00
Petr Skoda 8dcb7ae62e MDL-45128 include only education related events from real users in statistics processing 2014-04-28 11:31:31 +08:00
Frederic Massart 1f6988bb3b MDL-45229 event: Trigger event when section visibility changes 2014-04-28 11:27:47 +08:00
Frederic Massart be9fb21191 MDL-45229 event: Validate sectionnum in course_section_updated 2014-04-28 11:27:44 +08:00
David Monllao 0a0af55021 MDL-45288 behat: Restricting click to .logininfo 2014-04-28 10:20:34 +07:00
Marina Glancy e865dff3bb Merge branch 'MDL-44004-master' of git://github.com/FMCorz/moodle 2014-04-28 11:16:45 +08:00
David Monllao 23102c3e2e MDL-44614 behat: Automate MDLQA-61
In an Offline activity assignment, a teacher can
grade and give comments on an assignment completed
offline.
2014-04-28 10:01:01 +07:00
David Monllao 6f9f05a06e MDL-44614 behat: Automate MDLQA-60
A teacher can provide feedback
comments and files for an assignment.
2014-04-28 10:00:41 +07:00
Damyon Wiese 782c811478 Merge branch 'MDL-45268-master' of git://github.com/danpoltawski/moodle 2014-04-28 10:50:04 +08:00
Marina Glancy 566fd05d21 Merge branch 'master_MDL-45210' of git://github.com/totara/moodle 2014-04-28 10:46:04 +08:00
Marina Glancy 3a0edd1fcd Merge branch 'MDL-45052-master' of git://github.com/ankitagarwal/moodle 2014-04-28 10:44:36 +08:00
Ankit Agarwal c4652889f1 MDL-45052 events: Cleanup db/events.php 2014-04-28 10:33:18 +08:00
Dan Poltawski 16f37c5c13 MDL-45266 behat: tests for login block 2014-04-28 10:32:50 +08:00
Sam Hemelryk 934cedc46e Merge branch 'mdl45232' of https://github.com/tlevi/moodle 2014-04-28 14:23:33 +12:00
Dan Poltawski 853c1d7169 Merge branch '45248-27' of git://github.com/samhemelryk/moodle 2014-04-28 10:17:16 +08:00
Sam Hemelryk 6ce786cbe7 Merge branch 'MDL-45164_master' of git://github.com/dmonllao/moodle 2014-04-28 14:09:27 +12:00
Sam Hemelryk 0e7408683f Merge branch 'MDL-45284_master' of git://github.com/dmonllao/moodle 2014-04-28 14:09:18 +12:00
Dan Poltawski cf3166aafb Merge branch 'w17_MDL-45250_m27_ripaddtolog' of https://github.com/skodak/moodle 2014-04-28 09:40:41 +08:00
Sam Hemelryk 1e902feb66 Merge branch 'wip-MDL-45280-master' of git://github.com/marinaglancy/moodle 2014-04-28 12:22:44 +12:00
Sam Hemelryk 6b8e2f6794 Merge branch 'MDL-45286' of git://github.com/stronk7/moodle 2014-04-28 12:15:38 +12:00
Eloy Lafuente (stronk7) 1940cc3a91 MDL-45286 timezones: updated to 2014b 2014-04-28 01:01:04 +02:00
Yuliya Bozhko 774ead81fc MDL-45079 badges: Remove user email address from badge page
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2014-04-28 10:01:05 +12:00
Sam Hemelryk a5f4213939 MDL-45248 course: fixed assumptions when logging a course view 2014-04-28 08:12:35 +12:00
David Monllao caf02d3d02 MDL-45156 behat: Changing html_writer::empty_tag for start_tag
Also reducing the heading size.

Credits to Daniele Cordella.
2014-04-27 16:14:34 +07:00
David Monllao 560fc52dca MDL-45284 behat: Replace wrongly triggered not found exception 2014-04-27 11:55:47 +07:00
David Monllao 2353a68fa8 MDL-45164 behat: Add a wait to avoid random failures
It may fail in fast systems as the JS animation
to remove the delete comment may be slower than
the following steps where we check that the element
is not there anymore.
2014-04-27 07:44:15 +07:00
Marina Glancy c7fb7fa370 MDL-45280 wrtie default value for admin_setting_configstoredfile
this fixes regression from MDL-45134
2014-04-26 10:37:37 +08:00
Dan Poltawski 16a8764210 MDL-45268 behat: tests for participants block 2014-04-25 16:13:21 +08:00
Petr Skoda b33da4bfe3 MDL-45250 add debugging message to deprecated add_to_log() 2014-04-25 15:29:58 +08:00
Dan Poltawski 14f820c79b Merge branch 'MDL-42869' of https://github.com/danielneis/moodle 2014-04-25 14:04:38 +08:00
Dan Poltawski 1bdedfb880 Merge branch 'w17_MDL-45080_m27_questioncreate' of https://github.com/skodak/moodle 2014-04-25 13:31:47 +08:00
Dan Poltawski ff17f6f8df Merge branch 'MDL-44730_install' of https://github.com/andyjdavis/moodle 2014-04-25 13:26:49 +08:00
Andrew Davis 2e1682811c MDL-44730 core_install: reduced the width of the buttons on the first few screens of the installer so they sit side by side 2014-04-25 10:39:35 +08:00
sam marshall f2faa7cd17 MDL-45260 Memcache session support does not work for multiple servers 2014-04-24 12:49:15 +01:00
Dan Poltawski 83ddacfff7 on-demand release 2.7beta+ 2014-04-24 17:57:16 +08:00
Dan Poltawski a6a488d409 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2014-04-24 17:57:13 +08:00
Ankit Agarwal 867c44c348 MDL-44398 tags: Fix incorrect usage of caps 2014-04-24 16:38:31 +08:00
Marina Glancy a44b25a3d3 Merge branch 'wip-MDL-44637-master' of git://github.com/abgreeve/moodle 2014-04-24 16:33:57 +08:00
Petr Skoda b64af72c2c MDL-45090 explain event->courseid 2014-04-24 16:31:50 +08:00
Adrian Greeve 663aab727d MDL-44637 events: Update to string that was throwing off event list column ordering. 2014-04-24 16:24:23 +08:00
Adrian Greeve 780a43d660 MDL-44637 report_eventlist: Behat tests for the event listing tool. 2014-04-24 16:24:22 +08:00
Adrian Greeve 4f078f38ae MDL-44637 report_eventlist: Created a tool for listing all events. 2014-04-24 16:24:22 +08:00
Frederic Massart 3f32733702 MDL-44004 grading_rubric: Ensure that score is set before using it 2014-04-24 16:21:07 +08:00
Andrew Nicols d926ce7173 MDL-45254 atto_equation: Allow insertion of macros at the beginning of words 2014-04-24 15:13:19 +08:00
Petr Skoda 0ee1edd0ff MDL-45080 fix question_category_created url and legacy log data 2014-04-24 14:28:43 +08:00
Marina Glancy 7b99722e93 Merge branch 'MDL-45207-master' of git://github.com/andrewnicols/moodle 2014-04-24 14:00:46 +08:00
Marina Glancy faf67a87a0 Merge branch '45249-27' of git://github.com/samhemelryk/moodle 2014-04-24 12:00:00 +08:00
Marina Glancy eb2d613ce0 Merge branch 'MDL-45158' of git://github.com/jleyva/moodle 2014-04-24 11:54:10 +08:00
Sam Hemelryk 5fbcc5263a Merge branch 'MDL-45096-master' of git://github.com/andrewnicols/moodle 2014-04-24 12:14:34 +12:00
Sam Hemelryk 5852a965ca Merge branch 'MDL-44928-master' of git://github.com/xow/moodle 2014-04-24 11:37:34 +12:00
Sam Hemelryk d4f0e345ab Merge branch 'MDL-45169-master' of git://github.com/FMCorz/moodle 2014-04-24 11:33:34 +12:00
Sam Hemelryk ecb98f6ecd Merge branch 'w17_MDL-45214_m27_idsortlog' of https://github.com/skodak/moodle 2014-04-24 11:10:46 +12:00
Sam Hemelryk 91a73fd53d Merge branch 'MDL-45238-master' of git://github.com/FMCorz/moodle 2014-04-24 11:05:27 +12:00
Sam Hemelryk 8ddcb3ff8c Merge branch 'MDL-45124-master' of git://github.com/andrewnicols/moodle 2014-04-24 11:03:15 +12:00
Sam Hemelryk a544822bd8 Merge branch 'MDL-45186-master' of git://github.com/FMCorz/moodle 2014-04-24 11:01:33 +12:00
Sam Hemelryk a870d3e8fb MDL-45249 report_loglive: add missing @_switch_window tag to required tests 2014-04-24 09:50:27 +12:00
Daniel Neis Araujo 912af66e61 MDL-42869 calendar: HTML validation check fails on add event screen 2014-04-23 14:50:35 -03:00
Andrew Nicols 05a7f9e749 MDL-45239 editor_atto: The editor cannot be active if it is not the active element
FireFox thinks that you can have an active selection on an element which
currently does not have focus. How this can be the case is a mystery.
2014-04-23 16:59:40 +08:00
Dan Poltawski d7ef1ac747 Merge branch 'MDL-45172_block' of https://github.com/andyjdavis/moodle 2014-04-23 16:40:22 +08:00
Frederic Massart 7d47f470bf MDL-45238 event\course_viewed: Added require for course/lib.php 2014-04-23 16:34:24 +08:00
Dan Poltawski 54de59e70a Merge branch 'MDL-45075-master' of git://github.com/andrewnicols/moodle 2014-04-23 16:13:08 +08:00
Andrew Nicols 7bb7de44cf MDL-45075 mod_forum: Add unit tests for forum subscription on forum creation 2014-04-23 16:07:50 +08:00
John Okely f548bc4de5 MDL-44928 mod_forum: Add unit tests for urls in mod_forum events 2014-04-23 15:59:26 +08:00
John Okely 2b7781d662 MDL-44928 mod_forum: Fix urls in log entries for forum events 2014-04-23 15:54:15 +08:00
Andrew Nicols ea382deaaf MDL-45207 atto_equation: Handle multiple equations on the same line 2014-04-23 15:34:26 +08:00
Petr Skoda a8d7d6175a MDL-45214 always try to use ID sort in get_events_select()
This should make PostgreSQL behave more like MySQL
and resolve the problem when events were appearing in different
order.
2014-04-23 15:29:35 +08:00
Marina Glancy 3ebfb87878 Merge branch 'w17_MDL-45219_m27_addtolog' of git://github.com/skodak/moodle 2014-04-23 15:25:01 +08:00
Marina Glancy 66d3188112 Merge branch 'MDL-45134-master' of git://github.com/FMCorz/moodle 2014-04-23 14:45:59 +08:00
Frederic Massart 8aa64bab43 MDL-45169 atto_image: Translatable string for 'size'
AMOS BEGIN
 CPY [size,core],[size,atto_image]
AMOS END
2014-04-23 14:43:28 +08:00
Marina Glancy 19a1a68e45 Merge branch 'MDL-45008-master' of git://github.com/andrewnicols/moodle 2014-04-23 14:33:51 +08:00
Marina Glancy cae96c6217 Merge branch 'wip-MDL-45218-master' of git://github.com/abgreeve/moodle 2014-04-23 14:33:12 +08:00
Dan Poltawski f58add15b1 Merge branch 'wip-MDL-45148-master' of https://github.com/mackensen/moodle 2014-04-23 14:22:17 +08:00
Dan Poltawski 0a4fa71345 Merge branch 'MDL-45194-master' of git://github.com/FMCorz/moodle 2014-04-23 13:29:20 +08:00
Marina Glancy cc2c7d6767 Merge branch 'MDL-44991-master' of git://github.com/sammarshallou/moodle 2014-04-23 13:24:54 +08:00
Marina Glancy a20ec8a0eb Merge branch 'MDL-45109_master' of git://github.com/nadavkav/moodle 2014-04-23 13:23:46 +08:00
Marina Glancy ff35a0129f Merge branch 'MDL-44855-master' of git://github.com/andrewnicols/moodle 2014-04-23 13:12:25 +08:00
Marina Glancy 14ccfec4e1 Merge branch 'MDL-44950-master' of git://github.com/ankitagarwal/moodle 2014-04-23 13:11:23 +08:00
Frederic Massart 519a17e59f MDL-45134 adminlib: No more validation error when a config file is not set
When the destination draft area existed and the user draft area has not
been used, and thus does not exist, an error was displayed to the user
saying that they could not save the setting.

This was intended to handle the cases where the draft area disappears
and would overwrite the content of the destination area, deleting
all its content. But now we do not prompt with an error when
overwriting empty with empty.
2014-04-23 12:40:05 +08:00
Adrian Greeve 75cab92b19 MDL-45218 events: Unit tests and fixtures for new static methods in base event class. 2014-04-23 12:14:33 +08:00
Petr Skoda dce7ec41e9 MDL-45219 add course recent_activity_viewed event 2014-04-23 11:53:36 +08:00
Petr Skoda f40d61c187 MDL-45219 add report_viewed event to report_questioninstances 2014-04-23 11:53:36 +08:00
Petr Skoda db473c0d5a MDL-45219 add report_viewed event to tool_capability 2014-04-23 11:53:35 +08:00
Petr Skoda a991a1dd23 MDL-45219 add \mod\chat\course_module_viewed event 2014-04-23 11:53:35 +08:00
Petr Skoda 2f3c20b245 MDL-45219 remove old assignment course instance list 2014-04-23 11:53:35 +08:00
Adrian Greeve cc662b0639 MDL-45218 events: New static methods for getting general event information.
New methods are get_static_info() and get_explanation().
2014-04-23 11:52:05 +08:00
Adrian Greeve 7c084af93d MDL-45216 events: Unit tests for core/event/manager.
This includes unit tests for the new method get_all_observers
and updates to other methods that have been updated.
2014-04-23 11:51:08 +08:00
Adrian Greeve 1b9fb2e815 MDL-45216 events: Update to core/event/manager to return observer information. 2014-04-23 11:51:08 +08:00
Andrew Davis 40d230162c MDL-45172 block_completionstatus: added a check for an empty string before appending 2014-04-23 11:22:04 +08:00
Tony Levi 368e04dc7a MDL-45232: mod_data: Simultaneously added entries do not sort correctly
This was picked up by behat on a fast machine, when using shorter polling interval.
2014-04-23 12:41:43 +09:30
Dan Poltawski b7ff518b17 Merge branch 'w17_MDL-45203_m27_loginlog' of https://github.com/skodak/moodle 2014-04-23 10:44:10 +08:00
Dan Poltawski 98bb800209 Merge branch 'MDL-45226-master' of git://github.com/andrewnicols/moodle 2014-04-23 10:39:26 +08:00
Petr Skoda cd25119e34 MDL-45203 implement new event user_password_updated 2014-04-23 09:51:57 +08:00
AMOS bot bb01999336 Automatically generated installer lang files 2014-04-23 00:37:56 +00:00
AMOS bot fded9b6ea5 Merge branch 'master' into install_master 2014-04-23 00:37:55 +00:00
Andrew Nicols 7c5ea4935a MDL-45226 AJAX: Backport upstream bug fixes from YUI
This backports the following two patches:
* https://github.com/yui/yui3/issues/1757
* https://github.com/yui/yui3/issues/1778
2014-04-22 23:25:27 +08:00
Juan Leyva 2e04d25053 MDL-45158 mobile: Grades functions included in Mobile Service 2014-04-22 14:11:11 +02:00
AMOS bot b888d7011b Automatically generated installer lang files 2014-04-22 11:14:59 +00:00
Eloy Lafuente (stronk7) e471fc6c9d on-demand release 2.7beta+ 2014-04-22 12:31:22 +02:00
Andrew Nicols f857b668f9 MDL-44855 AJAX: Arrays and Objects should be defined in the initializer
JavaScript is a prototypal language and complex types should be defined as
null in the prototype, and set up in the initializer instead.
2014-04-22 17:03:21 +08:00
Steve Clay d8edfff658 MDL-45096 block_navigation: Check for existence of the siteadminbranch before modifying it
Prevents JS errors in some themes when admin block is hidden
2014-04-22 16:32:42 +08:00
Andrew Nicols d2782804cb MDL-45124 dndupload: Lowercase types when comparing
IE helpfull uses a mixed-case version of 'Text' which fails the string
comparison. All other browsers use lowercase for their mime-types.
2014-04-22 16:08:26 +08:00
Frederic Massart 5730debbb9 MDL-45194 assign_feedback: Cache was never set and used in is_enabled 2014-04-22 15:32:25 +08:00
Dan Poltawski d55806ce05 Merge branch 'MDL-40716-master' of https://github.com/andrewnicols/moodle 2014-04-22 15:18:59 +08:00
Dan Poltawski 026c563da0 bump version for new events 2014-04-22 15:10:52 +08:00
Andrew Nicols 4d1becbbab MDL-40716 report_completion: Set RTL 2014-04-22 15:06:23 +08:00
Andrew Nicols 6411513518 MDL-45008 atto_link: Standardise unlinking for non-selections
When placing the cursor within a link, but not making a selection, we
should unlink the whole link.
2014-04-22 12:37:27 +08:00
Dan Poltawski de125853db Merge branch 'wip-MDL-45154-master' of git://github.com/marinaglancy/moodle 2014-04-22 12:35:10 +08:00
Frederic Massart 90f9e30b3b MDL-45186 mod_quiz: Some RTL improvements on quiz edit page 2014-04-22 12:27:34 +08:00
Marina Glancy 04b0ce956d Merge branch 'MDL-43673' of git://github.com/stronk7/moodle 2014-04-22 12:27:13 +08:00
Marina Glancy 9ff40d83b5 Merge branch 'w17_MDL-41185_m27_courselog' of git://github.com/skodak/moodle 2014-04-22 12:26:24 +08:00
Petr Skoda 0cd189bdf3 MDL-41185 fix url in course_viewed event after course deleted
Includes a minor fix for course invalidation after deleting of course,
this improvement should not affect normal execution, that is why
it was not backported.
2014-04-22 11:52:37 +08:00
Andrew Nicols 8e6775d8f9 MDL-45075 mod_forum: Move user subscription to an observer
The forum subscription function is called in some cases on forum creation
(specifically the case of an automatically subscribed forum).

Since the forum subscription requires both the course_module instance, and
the context these must both be present when subscribing users to the forum,
however these are not fully set up until after the forum has been created.

By moving the subscription to a subscriber, we are able to hook into the
module creation event after the course_module and context have been linked
to the forum instance.
2014-04-22 11:50:52 +08:00
Ankit Agarwal a3cfbccd49 MDL-44950 logstore_database: Make all settings positive for usability 2014-04-22 11:39:03 +08:00
Marina Glancy bbab4e22f2 MDL-45154 user profiles: category name duplication error 2014-04-22 10:44:51 +08:00
Simon Coggins be39d92577 MDL-45210: Fix broken link when plagiarism plugins are disabled 2014-04-22 13:27:02 +12:00
Sam Hemelryk 23a9a5632c Merge branch 'wip-MDL-45045_master' of git://github.com/gjb2048/moodle
Conflicts:
	lib/yui/build/moodle-core-blocks/moodle-core-blocks-min.js
2014-04-22 10:46:51 +12:00
Sam Hemelryk 65ffd68179 Merge branch 'MDL-43145-master' of git://github.com/andrewnicols/moodle 2014-04-22 10:39:09 +12:00
Sam Hemelryk 24901691a1 Merge branch 'mdl45012-master' of https://github.com/tlock/moodle 2014-04-22 10:10:04 +12:00
Sam Hemelryk 7ecb30d765 Merge branch 'wip-MDL-45037-master' of git://github.com/abgreeve/moodle 2014-04-22 09:59:01 +12:00
Sam Hemelryk e237b23ebf Merge branch 'MDL-44270' of git://github.com/jonof/moodle 2014-04-22 09:18:20 +12:00
Sam Hemelryk c6d1088db0 Merge branch 'MDL-45118-shibboleth-login-warning' of https://github.com/mpetrowi/moodle 2014-04-22 09:15:55 +12:00
Sam Hemelryk 4e61249dd9 Merge branch 'MDL-42761-master' of git://github.com/FMCorz/moodle 2014-04-22 08:57:25 +12:00
Sam Hemelryk 56418292f1 Merge branch 'MDL-45138-master' of https://github.com/sammarshallou/moodle
Conflicts:
	availability/yui/build/moodle-core_availability-form/moodle-core_availability-form-min.js
2014-04-22 08:29:38 +12:00
Eloy Lafuente (stronk7) b69e9d8724 Merge branch 'MDL-45205-master-option2' of git://github.com/danpoltawski/moodle 2014-04-21 15:26:37 +02:00
Dan Poltawski 452ef53428 MDL-45205 backup: avoid oracle incompatible query
Instead of aliasing column name with sql, use the backup API.
2014-04-21 20:36:52 +08:00
Petr Skoda f49151c30b MDL-41185 cleanup course viewed events
Thanks Marina for spotting some of the issues.
2014-04-21 18:12:53 +08:00
Adrian Greeve 68a7235889 MDL-41185 events: Added events for different course view pages 2014-04-21 17:39:18 +08:00
Dan Poltawski 95f7bd8c0d Merge branch 'MDL-45114-master' of git://github.com/jamiepratt/moodle 2014-04-21 14:45:10 +08:00
Dan Poltawski b576d3fec0 Merge branch 'w16_MDL-45049_m27_debugging' of https://github.com/skodak/moodle 2014-04-21 14:41:23 +08:00
Dan Poltawski eec3795270 Merge branch 'MDL-45145_master' of https://github.com/markn86/moodle 2014-04-21 10:51:38 +08:00
Dan Poltawski 085c68d959 Merge branch 'MDL-45171' of git://github.com/stronk7/moodle 2014-04-21 10:12:34 +08:00
Nadav Kavalerchik b992594aac MDL-45109 - theme/bootstrapbase - Fix Unordered and Ordered lists in RTL mode 2014-04-20 17:03:03 +03:00
James Pratt 9b604f28d2 MDL-45114 quiz simulate report : multi-choice multi qtype response data
fixing download.
2014-04-19 15:04:16 +07:00
Eloy Lafuente (stronk7) 6b139edaf9 MDL-45171 log reports: fix sql for cross support
Rules for cross-db support are:

- Always use the 'AS' keyword for columns.
- Never use the 'AS' keyword for tables/views.
2014-04-18 17:34:06 +02:00
Dan Poltawski c8ca0cea77 Merge branch 'MDL-44468_master' of git://github.com/ds125v/moodle 2014-04-18 15:27:41 +08:00
Dan Poltawski c1985943de Merge branch 'MDL-40716_master' of https://github.com/nadavkav/moodle 2014-04-18 15:12:21 +08:00
Dan Poltawski 3497702ae5 Merge branch 'MDL-45010-master' of git://github.com/FMCorz/moodle 2014-04-18 14:54:54 +08:00
Dan Poltawski 3c9016eff1 Merge branch '45147-27' of git://github.com/samhemelryk/moodle 2014-04-18 14:16:23 +08:00
Dan Poltawski d2907f5cb9 Merge branch 'MDL-44778_atto_border' of https://github.com/andyjdavis/moodle 2014-04-18 14:07:53 +08:00
Dan Poltawski ac13361b77 Merge branch 'MDL-45023-master' of git://github.com/jamiepratt/moodle 2014-04-18 13:47:10 +08:00
Dan Poltawski f658717108 Merge branch 'MDL-45110-master' of git://github.com/jamiepratt/moodle 2014-04-18 12:03:23 +08:00
Dan Poltawski aee01173f7 Merge branch '45123-27' of git://github.com/samhemelryk/moodle 2014-04-18 11:54:48 +08:00
Dan Poltawski d2b8b67a9c Merge branch 'MDL-44674-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin-min.js
2014-04-18 11:49:39 +08:00
Dan Poltawski 3ff2fae230 Merge branch 'MDL-44906-master' of git://github.com/andrewnicols/moodle 2014-04-18 11:42:36 +08:00
Dan Poltawski 3bc5fbebc5 Merge branch 'MDL-39607-master' of git://github.com/FMCorz/moodle 2014-04-18 11:10:39 +08:00
Rajeev S 4a8347b294 MDL-43789: coursename disallows spaces in user bulk actions filter
Spaces and other non alphanumeric characters are disallowed in
coursename filter for user bulk actions.This prevents filtering
based upon courserole if the coursename contains spaces or other non
alphanumeric characters.
2014-04-18 11:07:14 +08:00
Dan Poltawski a6d4ba1d97 Merge branch 'wip-MDL-43626-master' of git://github.com/abgreeve/moodle 2014-04-18 10:52:45 +08:00
Dan Poltawski 768a10f066 Merge branch 'wip-MDL-45036-master' of git://github.com/abgreeve/moodle 2014-04-18 10:50:06 +08:00
Dan Poltawski a94b4c6e55 Merge branch 'MDL-45071_master' of https://github.com/markn86/moodle 2014-04-18 10:47:04 +08:00
Dan Poltawski 166dfd56b8 Merge branch 'MDL-45059-master' of https://github.com/sammarshallou/moodle 2014-04-18 10:30:12 +08:00
Dan Poltawski 2e6b251de2 Merge branch 'MDL-44990-master' of git://github.com/lameze/moodle 2014-04-18 10:26:38 +08:00
Dan Poltawski af80f7b4a5 Merge branch 'MDL-45027-master' of https://github.com/sammarshallou/moodle
Conflicts:
	availability/yui/build/moodle-core_availability-form/moodle-core_availability-form-min.js
2014-04-18 10:23:45 +08:00
Dan Poltawski b8d2340bb7 Merge branch 'MDL-41975-master' of git://github.com/FMCorz/moodle 2014-04-18 10:05:26 +08:00
Dan Poltawski b67362cf98 Merge branch 'wip-MDL-45154-master' of git://github.com/marinaglancy/moodle 2014-04-18 09:57:21 +08:00
Mark Nelson a97a7585ff MDL-45145 mod_quiz: ensure quiz cmid is set before triggering the 'attempt_deleted' event 2014-04-17 18:44:58 -07:00
Eloy Lafuente (stronk7) a0461340ff on-demand release 2.7beta+ 2014-04-17 15:49:54 +02:00
sam marshall 1282c47446 MDL-45138 Conditional availability: toggling AND/OR affects nested groups 2014-04-17 14:09:12 +01:00
Dan Poltawski 63476b0f6f Merge branch 'MDL-44619_master' of git://github.com/dmonllao/moodle 2014-04-17 17:02:04 +08:00
Damyon Wiese 186f092ee8 Merge branch 'MDL-45119-master' of git://github.com/andrewnicols/moodle 2014-04-17 16:17:12 +08:00
Marina Glancy c18c7869fa Merge branch 'w16_MDL-45144_m27_booklog' of git://github.com/skodak/moodle 2014-04-17 15:57:03 +08:00
Simey Lameze da223c11a5 MDL-44990 logging: Capabilites removed from legacy and standard log. 2014-04-17 15:50:59 +08:00
Petr Skoda c95f956851 MDL-45144 describe mod_book events changes 2014-04-17 15:35:03 +08:00
Marina Glancy 5bbc92e19c Merge branch 'MDL-44658' of git://github.com/danielneis/moodle 2014-04-17 15:06:09 +08:00
Damyon Wiese 5cfa441ba7 MDL-41101 assign: Add relateduserid to some events
When events are acting on another users submission, it makes
sense to put the submission->userid in the relateduserid field.
2014-04-17 15:05:24 +08:00
Frederic Massart 970c44196c MDL-39607 theme: Update Moodle logo 2014-04-17 14:33:39 +08:00
Petr Skoda ef2a9ece71 MDL-45144 convert book events to create_from_xxx() helpers 2014-04-17 14:29:31 +08:00
Marina Glancy 3e5ee8073b MDL-45154 user profiles: avoid redirection warnings 2014-04-17 14:25:52 +08:00
Petr Skoda 98cb244de1 MDL-45144 delete duplicated legacy log entries in mod_book
The general agreement is we should trigger one event
per simple action.

This partially resolves MDL-39963.
2014-04-17 13:30:30 +08:00
Frederic Massart d9a4f52927 MDL-42761 badges: Remove H2s from help popup 2014-04-17 12:46:07 +08:00
Charles Fulton 2f9c7f45dc MDL-45148 unit testing: pass role id instead of user id 2014-04-16 20:46:00 -07:00
Andrew Nicols 8ae76e1388 MDL-45119 editpdf: Do not load quick comments in read-only mode 2014-04-17 11:43:51 +08:00
Andrew Nicols 5344148b34 MDL-45119 ajax: Correct use of COUNT in exception dialogue 2014-04-17 11:43:51 +08:00
Andrew Nicols 10d7d8f2b7 MDL-45119 ajax: AJAX exceptions need a String in the Link 2014-04-17 11:43:51 +08:00
Marina Glancy 43a7ac723d MDL-45087 report_log: do not show anonymous actions, use indexes 2014-04-17 11:40:50 +08:00
Sam Hemelryk 3bf384d0e3 MDL-45147 my: automate testing of block restriction 2014-04-17 15:30:00 +12:00
Marina Glancy 0b10dfce9d Merge branch 'w16_MDL-41101_m27_assign' of git://github.com/skodak/moodle 2014-04-17 11:20:51 +08:00
Marina Glancy 127daca011 Merge branch 'wip-mdl-45143' of git://github.com/rajeshtaneja/moodle 2014-04-17 11:04:26 +08:00
Marina Glancy 2d6221b2ae Merge branch 'MDL-44621_master' of git://github.com/dmonllao/moodle 2014-04-17 11:04:10 +08:00
Marina Glancy 8416d55261 Merge branch 'MDL-44618_master' of git://github.com/dmonllao/moodle 2014-04-17 11:03:52 +08:00
Marina Glancy c5b027629f Merge branch 'MDL-44617_master' of git://github.com/dmonllao/moodle 2014-04-17 11:03:25 +08:00
Petr Skoda 0202d43dd4 MDL-41101 verify contextlevel in all assign events 2014-04-17 11:01:18 +08:00
Marina Glancy 354aca95f4 Merge branch 'MDL-44992-master' of git://github.com/sammarshallou/moodle 2014-04-17 11:01:16 +08:00
Damyon Wiese 7c9b2aafeb MDL-35373 mod_assign: Add a behat test for word count limit. 2014-04-17 10:27:07 +08:00
Petr Škoda 4781ff2e5f MDL-41101 use snapshots for submissions and grades in assign events 2014-04-17 09:59:09 +08:00
Tony Butler 651b7f179a MDL-35373 mod_assign Add functionality to enforce onlinetext word limit
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
2014-04-17 09:58:20 +08:00
Tony Butler dc66404bf6 MDL-35373 mod_assign Add form elements for assignsubmission_onlinetext word limit
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
2014-04-17 09:58:12 +08:00
Petr Škoda bf5b441327 MDL-41101 move assign property to the assign event base class 2014-04-17 09:51:13 +08:00
Petr Škoda 31904cca34 MDL-41101 use record snapshots for user data in assign events
The problem is that event->get_user() would be very confusing
because it is mostly related user.
2014-04-17 09:51:12 +08:00
Petr Škoda 0e5deb2018 MDL-41101 tidy up the phpdocs in new assign events 2014-04-17 09:51:12 +08:00
Petr Škoda 1b90858f23 MDL-41101 convert assign event triggers to new create_from_xxx helpers 2014-04-17 09:51:12 +08:00
Mark Nelson b7656ff069 MDL-41101 mod_assign: replaced 'save grading feedback' add_to_log call with an event 2014-04-17 09:51:11 +08:00
Mark Nelson 9147c4e07f MDL-41101 mod_assign: replaced 'grade submission' add_to_log call with an event 2014-04-17 09:51:11 +08:00
Mark Nelson 81f92c220b MDL-41101 mod_assign: replaced 'view batch set marker allocation' add_to_log call with an event 2014-04-17 09:51:11 +08:00
Mark Nelson eef4d5946a MDL-41101 mod_assign: replaced 'view batch set marking workflow state' add_to_log call with an event 2014-04-17 09:51:11 +08:00
Mark Nelson cf2d7bfb49 MDL-41101 mod_assign: replaced 'view' add_to_log call for the submission status page with an event 2014-04-17 09:51:10 +08:00
Mark Nelson 47349e4eb0 MDL-41101 mod_assign: replaced 'view confirm submit assignment form' add_to_log call with an event 2014-04-17 09:51:10 +08:00
Mark Nelson c24aaa389a MDL-41101 mod_assign: replaced 'submission statement accepted' add_to_log call with an event 2014-04-17 09:51:10 +08:00
Mark Nelson b06decdd59 MDL-41101 mod_assign: replaced 'view' add_to_log call for the reveal identities confirmation page with an event 2014-04-17 09:51:09 +08:00
Mark Nelson e65221c27b MDL-41101 mod_assign: replaced 'view submit assignment form' add_to_log call with an event 2014-04-17 09:51:09 +08:00
Mark Nelson 7eda466cb9 MDL-41101 mod_assign: replaced 'view submission grading table' add_to_log call with an event 2014-04-17 09:51:09 +08:00
Mark Nelson 1045b6e333 MDL-41101 mod_assign: replaced 'view grading form' add_to_log call with an event 2014-04-17 09:51:09 +08:00
Mark Nelson 3290c01dc5 MDL-41101 mod_assign: replaced 'view feedback' add_to_log call with an event 2014-04-17 09:51:08 +08:00
Mark Nelson 1be7aef2b1 MDL-41101 mod_assign: replaced 'view submission' add_to_log call with an event 2014-04-17 09:51:08 +08:00
Mark Nelson 749658b7e3 MDL-41101 mod_assign: replaced 'view all' add_to_log call with an event 2014-04-17 09:51:08 +08:00
Mark Nelson c17e70e5b2 MDL-41101 mod_assign: introduced event base class
Also performed the following -

1) Deprecated the assignment's add_to_log function (part of it's functionality exists in the base class to set the legacy log data).
2) Edited existing events to use the new base class.
3) Renamed event_test.php to events_test.php to match the rest of core.
4) Moved the event tests from locallib_test.php to events_test.php.
5) When setting legacy data use lang_string, rather than get_string, as we may not be using them if legacy log is disabled.
2014-04-17 09:51:07 +08:00
Mark Nelson 6f8f3044b1 MDL-41101 mod_assign: removed underscores from event string keys
AMOS BEGIN
 MOV [event_all_submissions_downloaded, mod_assign],[eventallsubmissionsdownloaded, mod_assign]
 MOV [event_assessable_submitted, mod_assign],[eventassessablesubmitted, mod_assign]
 MOV [event_extension_granted, mod_assign],[eventextensiongranted, mod_assign]
 MOV [event_identities_revealed, mod_assign],[eventidentitiesrevealed, mod_assign]
 MOV [event_marker_updated, mod_assign],[eventmarkerupdated, mod_assign]
 MOV [event_statement_accepted, mod_assign],[eventstatementaccepted, mod_assign]
 MOV [event_submission_duplicated, mod_assign],[eventsubmissionduplicated, mod_assign]
 MOV [event_submission_graded, mod_assign],[eventsubmissiongraded, mod_assign]
 MOV [event_submission_locked, mod_assign],[eventsubmissionlocked, mod_assign]
 MOV [event_submission_status_updated, mod_assign],[eventsubmissionstatusupdated, mod_assign]
 MOV [event_submission_unlocked, mod_assign],[eventsubmissionunlocked, mod_assign]
 MOV [event_workflow_state_updated, mod_assign],[eventworkflowstateupdated, mod_assign]
AMOS END
2014-04-17 09:51:07 +08:00
Andrew Davis 1615cc45e9 MDL-44778 core_theme: added the well and well-small class to Base 2014-04-17 08:48:21 +08:00
Rajesh Taneja cb115024a8 MDL-45142 report_partcipation: Fixed behat feature file name 2014-04-17 08:47:57 +08:00
Andrew Davis fcc19a2ff4 MDL-44778 editor_atto: added a border around the equation preview 2014-04-17 08:45:10 +08:00
Sam Hemelryk 6f9ab86591 Merge branch 'MDL-44616_master' of git://github.com/dmonllao/moodle 2014-04-17 08:52:07 +12:00
Sam Hemelryk 0ed1514cc6 Merge branch 'wip-MDL-45116_master' of https://github.com/kwiliarty/moodle 2014-04-17 08:39:34 +12:00
Sam Hemelryk 1891dba68f Merge branch 'MDL-45061' of git://github.com/jleyva/moodle 2014-04-17 08:37:26 +12:00
Eloy Lafuente (stronk7) 1011d70413 Merge branch 'MDL-45132-master' of git://github.com/FMCorz/moodle 2014-04-16 16:22:28 +02:00
Frederic Massart 218d751d07 MDL-45132 curl: Unit Tests for file uploads 2014-04-16 17:29:22 +08:00
Dan Poltawski 287fc6ce68 Merge branch 'MDL-44798-master' of git://github.com/andrewnicols/moodle 2014-04-16 15:21:08 +08:00
Dan Poltawski 4916184896 Merge branch 'MDL-44349-master' of https://github.com/lucisgit/moodle 2014-04-16 15:11:27 +08:00
Marina Glancy 09e1805072 Merge branch 'MDL-44951-master' of git://github.com/jethac/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-16 14:44:04 +08:00
Marina Glancy 8b611b8e86 Merge branch 'MDL-41286_master' of git://github.com/markn86/moodle 2014-04-16 14:42:40 +08:00
Marina Glancy 2522b260e6 Merge branch 'MDL-44758-master' of git://github.com/jethac/moodle 2014-04-16 14:42:15 +08:00
Dan Poltawski 36b5096e59 Merge branch 'wip-mdl-44977' of https://github.com/rajeshtaneja/moodle 2014-04-16 14:34:58 +08:00
Damyon Wiese 4b6e01cd76 Merge branch 'MDL-44629-B' of https://github.com/bostelm/moodle 2014-04-16 14:23:07 +08:00
Dan Poltawski c312e59e7d Merge branch 'wip-mdl-44979' of https://github.com/rajeshtaneja/moodle 2014-04-16 13:56:37 +08:00
Frederic Massart 935448edb1 MDL-41975 repository_alfresco: Updating details about Alfresco URL and timestamps 2014-04-16 13:47:24 +08:00
Michael Woods e0c8ddba33 MDL-41975 repository_alfresco: Ensure Moodle sends GMT time to Alfresco 2014-04-16 13:46:50 +08:00
Mark Nelson 70279746ec MDL-41286 report_outline: updated report to use logging api
AMOS START
 MOV [neverseen, mod_folder],[neverseen, report_outline]
 MOV [neverseen, mod_page],[neverseen, report_outline]
 MOV [neverseen, mod_resource],[neverseen, report_outline]
 MOV [neverseen, mod_url],[neverseen, report_outline]
AMOS END
2014-04-15 22:42:59 -07:00
Dan Poltawski 63eb19cbdf Merge branch 'MDL-45089_chat' of https://github.com/andyjdavis/moodle 2014-04-16 13:00:46 +08:00
Andrew Nicols 234ead3461 MDL-44798 editor_atto: Backport a fix for HTML5Shiv
This is a backport of the Rangy workaround for a bug in HTML5Shiv, which
breaks document.createElement by returning nodes which have parent nodes.

HTML5Shiv refuses to fix this bug so Rangy has had to work around it.

For more information see:
* https://code.google.com/p/rangy/issues/detail?id=104; and
* https://github.com/aFarkas/html5shiv/issues/64.
2014-04-16 12:14:28 +08:00
Marina Glancy 8662cd767e Merge branch 'MDL-45081-master' of git://github.com/FMCorz/moodle 2014-04-16 11:51:57 +08:00
Dan Poltawski 0dda3b10ea Merge branch 'MDL-44295' of https://github.com/scyrma/moodle 2014-04-16 11:33:14 +08:00
Damyon Wiese cc29e5d4dd Merge branch 'MDL-43277-master' of git://github.com/andrewnicols/moodle 2014-04-16 11:12:36 +08:00
Sam Hemelryk 7747557d03 MDL-45123 atto_equation: improvements to ajax.php 2014-04-16 15:12:03 +12:00
Matt Petro 5f1b2e8821 MDL-45118 shibboleth: set context on index page 2014-04-15 23:11:32 -04:00
Damyon Wiese 37477af87a Merge branch 'MDL-45062' of git://github.com/jleyva/moodle 2014-04-16 10:57:46 +08:00
Damyon Wiese 63c61733f0 MDL-45062 webservices: fix unit test for update_grades
This fixes the broken unit test (which exposes a fail) and
the next patch from Juan fixes the fail.
2014-04-16 10:55:58 +08:00
Damyon Wiese 0cbd1f913d Merge branch 'MDL-45055-master' of git://github.com/ankitagarwal/moodle 2014-04-16 10:41:17 +08:00
Dan Poltawski 21f2bad26c Merge branch 'MDL-44941-master' of git://github.com/FMCorz/moodle 2014-04-16 10:30:47 +08:00
Dan Poltawski 30a3b12f88 Merge branch 'MDL-45076-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-16 09:10:28 +08:00
Sam Hemelryk c87a54102e Merge branch 'w16_MDL-45100_m27_coursecontext' of https://github.com/skodak/moodle 2014-04-16 11:43:48 +12:00
Sam Hemelryk 37358ac5c0 Merge branch 'wip-MDL-45083-master' of git://github.com/marinaglancy/moodle 2014-04-16 09:52:05 +12:00
Sam Hemelryk d4449f2f17 Merge branch 'wip-MDL-44998-master' of git://github.com/marinaglancy/moodle 2014-04-16 09:46:54 +12:00
Sam Hemelryk d668060fdc Merge branch 'MDL-45034-master' of git://github.com/damyon/moodle
Conflicts:
	lib/editor/atto/plugins/image/yui/build/moodle-atto_image-button/moodle-atto_image-button-min.js
2014-04-16 09:23:30 +12:00
Daniel Neis Araujo 37032563b5 MDL-44658 Make userid,fieldid unique in user_info_data 2014-04-15 17:48:13 -03:00
Kevin Wiliarty 5a87760dd6 MDL-45116: Workshop submission title displays behind author picture 2014-04-15 13:50:52 -04:00
Eloy Lafuente (stronk7) 11310954ea on-demand release 2.7beta+ 2014-04-15 16:33:14 +02:00
David Monllao a0f59af847 MDL-44621 behat: Automating MDLQA-20
Database activity entries can be viewed in a list
or singly or they can be searched or browsed.
2014-04-15 20:16:19 +07:00
David Monllao 25a49eb660 MDL-44621 behat: Adding text selector
Same behaviour than I should see step,
it looks for the text in the node + descendants,
but, to get the lower level match discards the
nodes with children that also contains the
same text.
2014-04-15 20:13:44 +07:00
David Monllao f2cc870f9c MDL-44618 behat: MDLQA-18 converted to a behat scenario
In a database activity, students can add
entries to a database.
2014-04-15 18:34:36 +07:00
James Pratt f87675fc1c MDL-45110 quiz responses : Notice when behaviour does not allow
multiple tries at a question
2014-04-15 18:29:50 +07:00
David Monllao 7e471fca18 MDL-44618 behat: Steps to speed up mod_data features creation
A step to add a field to a database and
another one to add a database entry.
2014-04-15 18:22:22 +07:00
Juan Leyva 5f0283046e MDL-45061 airnotifier: Changed default port value to 443 2014-04-15 12:12:22 +02:00
Marina Glancy 4ba9490813 MDL-44826 atto: re-shifted js 2014-04-15 18:07:10 +08:00
Juan Leyva ccc165fd8e MDL-45062 web services: Description of method result value for update_grades_return is invalid 2014-04-15 11:59:44 +02:00
Marina Glancy 2e68bf6136 Merge branch 'MDL-44826-master' of git://github.com/damyon/moodle 2014-04-15 17:55:30 +08:00
Frederic Massart f0031a7c15 MDL-44941 core: Removing irrelevant assertion causing failures
The timemodified property is not called when the user logs in, and
so we should not be checking if its value matches the current time.
2014-04-15 17:25:47 +08:00
Rajesh Taneja 9ddb683a59 MDL-45073 report_log: Fixed behat 2014-04-15 17:16:43 +08:00
Rajesh Taneja 6636050115 MDL-41283 report_participation: Fixed behat 2014-04-15 17:15:51 +08:00
Marina Glancy cf051cc46e Revert "MDL-41283 report_participation: Fixed legacy actions returned from api's"
This reverts commit 7b7bb92d42.
2014-04-15 17:14:57 +08:00
David Monllao d7f9d94020 MDL-44617 behat: Automate MDLQA-1464
A student can add submission comments to an
online text type assignment.
2014-04-15 16:08:06 +07:00
David Monllao 9076d3206a MDL-44616 behat: Adding steps to test MDLQA-1709 and MDLQA-62
- In an assignment with file submissions enabled,
  students can upload a set number of files.
- In assignments with file uploading enabled
  the Student can use File Picker to upload files.
2014-04-15 16:01:30 +07:00
Damyon Wiese d3931a7d4d MDL-45034 Atto: Image dialogue improvements.
1. Fix Nan bugs in auto width / height
2. Allow percentages in auto width / height
3. Change dialogue title
4. Prevent preview image resizing from changing the height of the dialogue.
5. Change wording to "Auto size"
6. Auto adjust size when the "Auto size" checkbox is toggled.
7. Add img-responsive to images with the original aspect ratio.
8. If the width and height fields are left blank, revert them to the image size.
2014-04-15 16:43:27 +08:00
Damyon Wiese 7bbc64b88f MDL-44826 Atto: Set default image alignment to 'bottom' 2014-04-15 15:47:52 +08:00
Rajesh Taneja 7ca6a3fa4e MDL-45073 report_log: setup table if log reader enabled 2014-04-15 15:47:51 +08:00
Petr Škoda aa386d2929 MDL-45100 fix course_context classname PHPDdos typo in context API 2014-04-15 15:46:19 +08:00
Petr Škoda 875d1e30e9 MDL-45035 add missing @since to \core\event\unknown_logged class 2014-04-15 14:56:51 +08:00
Damyon Wiese f2fb8b09c2 Merge branch 'w16_MDL-45070_m27_ubuntumaria' of https://github.com/skodak/moodle 2014-04-15 14:46:40 +08:00
Marina Glancy c733401634 Merge branch 'MDL-45035-master' of git://github.com/ankitagarwal/moodle 2014-04-15 14:34:36 +08:00
Marina Glancy fdb8bae241 Merge branch 'wip-mdl-41283' of git://github.com/rajeshtaneja/moodle
Conflicts:
	mod/upgrade.txt
2014-04-15 14:34:28 +08:00
Tony Levi 800e902813 MDL-44908: Fix upgrade_grade_item_fix_sortorder performance 2014-04-15 14:26:48 +08:00
Rajesh Taneja 58cc51cd66 MDL-41283 report_participation: moved code to locallib 2014-04-15 13:31:04 +08:00
Rajesh Taneja 7b7bb92d42 MDL-41283 report_participation: Fixed legacy actions returned from api's 2014-04-15 13:31:03 +08:00
Rajesh Taneja b2b4ec308e MDL-41283 report_participation: Added phpdoc about function not used
In new logging api, xxx_get_view_actions() and xxx_get_post_actions()
will not be used to identify the paticipation of user. Event's crud
and edulevel status will define user's participation.
2014-04-15 13:31:03 +08:00
Rajesh Taneja ff6a853aad MDL-41283 report_participation: Updated report to use logging api 2014-04-15 13:31:03 +08:00
Damyon Wiese 12f8adbd25 Merge branch 'wip-mdl-44910' of https://github.com/rajeshtaneja/moodle 2014-04-15 13:16:15 +08:00
Sam Hemelryk 19dfbe3001 Merge branch 'MDL-40674_master' of https://github.com/nadavkav/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-15 16:47:38 +12:00
Sam Hemelryk 00719eefd7 Merge branch 'MDL-44826-master' of git://github.com/damyon/moodle 2014-04-15 16:42:12 +12:00
Marina Glancy 72aeb83a74 MDL-44998 log_standard: review indexes 2014-04-15 12:25:48 +08:00
Damyon Wiese d28af3d4aa MDL-44826 Atto: Image alignment options
If an image has custom alignment or margins - don't overwrite
them unless a new alignment option is chosen.
2014-04-15 12:23:31 +08:00
Frederic Massart f82bc6be01 MDL-45076 theme_bootstrapbase: Clean up participants controls LESS 2014-04-15 12:19:53 +08:00
Jonathon Fowler 6b2b72d6f9 MDL-44270 files: handle drag-drop js error when event has null types
This can happen when the 'dragover' event fires as has been observed
in Safari. When the dataTransfer.types property of the event is null,
accessing types.length throws a JavaScript error.
2014-04-15 14:18:55 +10:00
Frederic Massart a71b1f131e MDL-45076 theme_bootstrapbase: Select placement in participants page
Usually the group selector is aligned with the label, but as we want
it to be consistent with the rest of the selects in the participants
page we need an override.
2014-04-15 12:18:44 +08:00
Dan Poltawski 57506eb548 Merge branch 'wip-mdl-45073' of https://github.com/rajeshtaneja/moodle 2014-04-15 11:57:51 +08:00
Jetha Chan f0ddce4df1 MDL-44758 editor-atto: prevent table-in-table creation
Prevent new table creation, displaying table context menu instead when cursor is within caption, when multiple cells are selected, when selection contains both nodes within and outside of the table, and when selection contains nodes from multiple tables.
2014-04-15 11:39:57 +08:00
Dan Poltawski 42a9073423 Merge branch 'MDL-45074-master' of git://github.com/ankitagarwal/moodle 2014-04-15 11:38:01 +08:00
Dan Poltawski 81ff1c7570 Merge branch 'MDL-45084-master' of git://github.com/FMCorz/moodle 2014-04-15 11:05:37 +08:00
Rajesh Taneja cf247acf10 MDL-44910 behat: Fixed log and livelog behat
As default log store is changed to standard, test should
now take care of it
2014-04-15 10:56:41 +08:00
Dan Poltawski 72de455146 Merge branch 'MDL-45003-master' of git://github.com/jamiepratt/moodle 2014-04-15 10:33:30 +08:00
Dan Poltawski ca4554402d Merge branch '44354-27' of git://github.com/samhemelryk/moodle 2014-04-15 10:26:06 +08:00
Andrew Nicols b359900cd7 MDL-43277 block_navigation: Trim from the left for long names 2014-04-15 10:24:32 +08:00
Andrew Davis a2505cfdaa MDL-45089 mod_chat: changed the page type on the accessible popup 2014-04-15 09:04:33 +08:00
Sam Hemelryk 564a413367 Merge branch 'MDL-45040-master' of git://github.com/jethac/moodle 2014-04-15 12:31:44 +12:00
Sam Hemelryk e8bb3c3fa6 Merge branch 'MDL-41891_master' of https://github.com/nadavkav/moodle 2014-04-15 11:25:20 +12:00
Sam Hemelryk 92f4d00e5d Merge branch 'MDL-45086-master' of git://github.com/danpoltawski/moodle 2014-04-15 09:50:38 +12:00
Frederic Massart 5b98627ae6 MDL-45081 curl: Prefer usage of CURLFile over @file arguments 2014-04-14 17:39:30 +08:00
Marina Glancy 72f5bfc22b Merge branch 'MDL-45047-module-notation-deprecated' of git://github.com/mudrd8mz/moodle 2014-04-14 17:10:31 +08:00
Marina Glancy dd5e6ad03a Merge branch 'MDL-45057_master' of git://github.com/markn86/moodle 2014-04-14 17:10:02 +08:00
Marina Glancy 300735e95e Merge branch 'w16_MDL-44911_m27_unknownevent' of git://github.com/skodak/moodle 2014-04-14 17:09:49 +08:00
Dan Poltawski 78b00793e8 MDL-45086 lib: force upgrade
The availability changes change the course query for front page.
2014-04-14 16:36:02 +08:00
Ankit Agarwal 521d9d74e5 MDL-45074 report_loglive Fix parameter typo 2014-04-14 16:31:54 +08:00
Frederic Massart 034dbd7588 MDL-45084 theme: File was not chunked on IE
This only applied when themedesignermode was disabled, because the
first chunk is 0, but 0 is resolved to false. We needed to compare
$chunk with null in order to know if it was set.
2014-04-14 16:25:20 +08:00
Dan Poltawski 2c6401e3a9 Merge branch 'wip-MDL-43719-master' of git://github.com/abgreeve/moodle 2014-04-14 15:22:59 +08:00
Marina Glancy 3c4b2f0b4c MDL-45083 recent_activity: fixed debugging message on removed module type 2014-04-14 15:20:24 +08:00
Dan Poltawski c675899425 Merge branch 'w16_MDL-44366_m27_filtergloss' of https://github.com/skodak/moodle 2014-04-14 15:19:58 +08:00
Petr Škoda 1bfb41f45a MDL-44366 fix use of cm->uservisible in glossary concept cache 2014-04-14 15:16:28 +08:00
David Mudrák 09027084a7 MDL-45047 Put the deprecation warning into mod/upgrade.txt, too
It is already in the main lib/upgrade.txt but it should be mentioned here as
well.
2014-04-14 08:58:50 +02:00
Mark Nelson 92089e0ecc MDL-45057 mod_quiz: restored the user/group override deleted events 2014-04-13 22:32:06 -07:00
Petr Škoda 169ccfa442 MDL-45049 improve debugging output in error log for NO_DEBUG_DISPLAY scripts 2014-04-14 13:16:41 +08:00
Rajesh Taneja cfb804d8cd MDL-45073 report_log: Fixed activity report
1. Wrong reader class check and api
2. Passing logreader parameter for graph
3. Using proper time from for all log and today's log
2014-04-14 12:40:40 +08:00
Dan Poltawski 28770140ed Merge branch 'MDL-45009-master' of git://github.com/damyon/moodle 2014-04-14 12:23:57 +08:00
Petr Škoda d409944a95 MDL-44911 use unknown_logged class when viewing unknown events in reports 2014-04-14 11:59:00 +08:00
Ankit Agarwal 9634712a37 MDL-45055 events: Add debugging notice to events_trigger() 2014-04-14 11:51:37 +08:00
Damyon Wiese 390365e696 Merge branch 'MDL-44936-master' of git://github.com/FMCorz/moodle 2014-04-14 11:38:46 +08:00
Dan Poltawski e3c18e1e62 Merge branch 'w16_MDL-44366_m27_filtergloss' of https://github.com/skodak/moodle 2014-04-14 10:53:56 +08:00
Adrian Greeve 1283bad691 MDL-45037 gradebook: Allow dashes in xml grade values to be ignored.
This was delivering an error message when trying to import an exported
xml file (from Moodle).
2014-04-14 10:46:29 +08:00
Damyon Wiese 313ae82ec0 Merge branch 'MDL-44844-master' of git://github.com/andrewnicols/moodle 2014-04-14 10:32:00 +08:00
Damyon Wiese a4b2e65c7d Merge branch 'w16_MDL-44910_m27_logupgrade' of https://github.com/skodak/moodle 2014-04-14 10:14:47 +08:00
Andrew Nicols e41b0e7543 MDL-44674 editor_atto: Remove the ability to prevent callback wrapping
The callback wrapping handles various important ARIA options and should not
be so easily preventable.
2014-04-14 10:09:14 +08:00
Dan Poltawski 8f6b4739de Merge branch 'MDL-45048-master' of git://github.com/FMCorz/moodle 2014-04-14 10:01:11 +08:00
Damyon Wiese f8a8610be4 MDL-45009 Tex filter: Add \( \) delimiters for 1:1 compatibility with MathJax 2014-04-14 09:57:19 +08:00
Andrew Nicols 040e13010d MDL-44906 atto_collapse: Keep focus on the collapse button on toggle 2014-04-14 09:51:50 +08:00
Petr Škoda 6b7da257af MDL-45070 relax the mariaDB version checker to work with long Ubuntu versions
Example of Ubuntu version: 5.5.5-10.0.10-MariaDB-1~saucy-log
2014-04-14 09:44:45 +08:00
Petr Škoda 5d2abe72a2 MDL-44910 enable new logging during upgrade and installation
The legacy logging is now enabled for reading only
if legacy log data older than one day exists.
2014-04-14 09:43:40 +08:00
Petr Škoda 1e83288de7 MDL-44366 improve glossary filter performance
This should have when there are no glossaries in course or
when there are no linked entries in existing glossaries.
2014-04-14 09:42:40 +08:00
Petr Škoda 86286bdb7e MDL-44366 bump up glossary and filter version 2014-04-14 09:42:40 +08:00
Petr Škoda 37625e2abb MDL-44366 rework glossary filter caching 2014-04-14 09:42:39 +08:00
Mark Nelson 4e651893b7 MDL-45071 mod_quiz: retrieve all the name fields when deleting a user override 2014-04-13 18:41:58 -07:00
Tim Lock 1349800dd7 MDL-45012: Enable support for wma files within tinymce Moodle Media plugin 2014-04-14 08:31:17 +09:30
Eloy Lafuente (stronk7) a790c7f317 MDL-43673 wiki: verify page tags work as expected
This covers MDL-43109, verifying that saved tags
are available on re-edition of a page, without any warning/error.

Also official tags are verified to be working ok. With support
for multiple options added by MDL-43713 and MDL-43738.
2014-04-11 13:23:18 +02:00
sam marshall 02dd7ac2ea MDL-45059 Availability: Hide group options with groupmembersonly
When groupmembersonly is turned on, the 'restrict access' options
for group and grouping are supposed to appear only for sections
(which don't have groupmembersonly) and not for modules.

Prior to this fix, they appeared when creating a new module but
not when editing an existing one.
2014-04-11 12:11:35 +01:00
sam marshall 0a8de7f6c8 MDL-44992 Conditional availability tab focus bug
Tabbing through the eye icon triggered it to change. Corrected by
making it work the same way as the delete icon (Enter key to change).
2014-04-11 11:37:59 +01:00
sam marshall 90c3ffe3a3 MDL-44991 Behat: step to check if attribute does not contain text
The step checks that an attribute exists, but doesn't contain the
specified text.

Example:
Then the "class" attribute of "#mydiv" "css_element" should
not contain "accesshide"
2014-04-11 11:00:25 +01:00
sam marshall 2a848ab9e2 MDL-45027 Availability API: Better handling of invalid data in GUI
If there is invalid data in the availability condition (note: this
should not happen, but can do in unusual situations, such as
specifying a date after 2038 in 32-bit PHP), this should not
leave the course so broken that users cannot edit the activity and
update it.
2014-04-11 10:57:15 +01:00
Dan Poltawski 069fe267b6 Moodle release 2.7beta 2014-04-11 17:42:43 +08:00
Dan Poltawski 97c274ded7 MDL-40063/MDL-45057 quiz: disable related unit tests
I kept the commit number format same as the last commit just
to annoy Fred.
2014-04-11 17:36:40 +08:00
Dan Poltawski c5e5f1b786 MDL-40063/MDL-45057 quiz: disable firing of override events
This hacky solution is brought to you by the the motivation to
release.
2014-04-11 16:58:10 +08:00
James Pratt ea6db479dd MDL-45023 quiz statistics report : refactoring of tests for code reuse 2014-04-11 15:07:08 +07:00
Frederic Massart cf7a50b28e MDL-45048 repository_wikimedia: Abusing usage of optional_param
The optional_param call was moved outside of the constructor
because it was called every time the repository would be initialised.
That was leading to problems when the parameter was defined from
another form and not complying with its expected type.
2014-04-11 15:19:48 +08:00
Jetha Chan cee8be6325 MDL-44951 theme_bootstrapbase: forum post css tweaks
Adjusted forum post CSS for cleaner appearance.
2014-04-11 14:40:54 +08:00
Dan Poltawski 34f7e31ffb Merge branch 'MDL-40063_master' of https://github.com/markn86/moodle 2014-04-11 14:31:27 +08:00
Adrian Greeve f3f60eb27b MDL-45036 blocks: Update to the mentee block sql to incorporate additional name fields. 2014-04-11 14:00:46 +08:00
Adrian Greeve 0ee4ccb636 MDL-43719 tags: Fix the sql statement in the tag management page.
MSSQL and Oracle require that all fields in teh select also be present
in the group by section.
2014-04-11 13:54:54 +08:00
Ankit Agarwal 3610ad436c MDL-45035 events: Fix @package and @since tags in Moodle 2.7 events 2014-04-11 13:45:33 +08:00
James Pratt f4555f88c8 MDL-45003 qtype numeric : classify invalid response as no response. 2014-04-11 12:41:23 +07:00
Adrian Greeve c4a8dce799 MDL-43626 survey: Addition of additional names to survey. 2014-04-11 13:33:56 +08:00
Ankit Agarwal 9638600bbb MDL-45035 events: Fix @package and @since tags in Moodle 2.6 events 2014-04-11 13:32:33 +08:00
Dan Poltawski 9d1eed69a0 Merge branch 'MDL-44981-master' of git://github.com/jamiepratt/moodle 2014-04-11 13:01:38 +08:00
Damyon Wiese 2e8cbbb3ac MDL-44826 Atto: Remove most of the image alignment options
Just keep the simple ones and put some default padding on images.
2014-04-11 12:55:28 +08:00
Dan Poltawski d6a756a949 Merge branch 'MDL-44980-master-v2' of git://github.com/jamiepratt/moodle 2014-04-11 12:55:15 +08:00
Dan Poltawski 8a69b046e5 Merge branch 'wip-MDL-45038-master' of git://github.com/marinaglancy/moodle 2014-04-11 12:48:14 +08:00
Frederic Massart eddc1461f8 MDL-44936 csslib: Chunking supports @media queries and commas in rules 2014-04-11 12:05:00 +08:00
Mark Nelson 9d65d3e70b MDL-40063 mod_quiz: created 'override_created' events 2014-04-10 20:42:44 -07:00
Mark Nelson e8365f27e5 MDL-40063 mod_quiz: replaced ‘manualgrade’ add_to_log call with an event 2014-04-10 20:42:24 -07:00
Mark Nelson a2caf56dff MDL-40063 mod_quiz: replaced 'attempt' add_to_log call with an event 2014-04-10 20:41:56 -07:00
Mark Nelson 45e1e3bd76 MDL-40063 mod_quiz: replaced 'preview' add_to_log call with an event 2014-04-10 20:41:54 -07:00
Mark Nelson e0114708af MDL-40063 mod_quiz: replaced 'continue attempt' add_to_log call with an event 2014-04-10 20:41:39 -07:00
Mark Nelson 8de2eb3582 MDL-40063 mod_quiz: replaced 'delete override' add_to_log call with events 2014-04-10 20:41:09 -07:00
Mark Nelson e7d80a059a MDL-40063 mod_quiz: replaced 'edit override' add_to_log call with events 2014-04-10 20:40:51 -07:00
Mark Nelson 68758eff12 MDL-40063 mod_quiz: removed 'close attempt' add_to_log call 2014-04-10 20:40:27 -07:00
Mark Nelson 60ab03eb10 MDL-40063 mod_quiz: replaced 'view summary' add_to_log call with an event 2014-04-10 20:40:25 -07:00
Mark Nelson 2a3f82041f MDL-40063 mod_quiz: replaced 'review' add_to_log call with an event 2014-04-10 20:40:13 -07:00
Dan Poltawski af8a43248e weekly release 2.7dev 2014-04-11 11:39:56 +08:00
Mark Nelson 2ec79ad996 MDL-40063 mod_quiz: replaced 'report' add_to_log call with an event 2014-04-10 20:39:56 -07:00
Dan Poltawski ea1be84468 NOBUG: Fixed file access permissions 2014-04-11 11:39:56 +08:00
Dan Poltawski f940d3ad6d Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2014-04-11 11:39:52 +08:00
Mark Nelson 7dad3d95fd MDL-40063 mod_quiz: replaced 'delete attempt' add_to_log call with an event 2014-04-10 20:39:15 -07:00
Mark Nelson 58940b190a MDL-40063 mod_quiz: replaced 'addcategory' add_to_log call with an event 2014-04-10 20:38:34 -07:00
Mark Nelson 5e8f736565 MDL-40063 mod_quiz: replaced 'editquestions' add_to_log call with an event 2014-04-10 20:34:27 -07:00
Mark Nelson b332fc6c8c MDL-40063 mod_quiz: replaced 'view' and 'view all' add_to_log calls with events 2014-04-10 20:34:14 -07:00
Andrew Nicols 58f70bb6af MDL-43145 dock: Enable regions before the drag operation starts 2014-04-11 10:57:57 +08:00
Sam Hemelryk 34df4e4ba4 MDL-43145 dock: fixed up region_completely_docked code to ignore empty regions 2014-04-11 10:34:31 +08:00
Damyon Wiese 7b28067413 Revert "MDL-44758 editor-atto: prevent table-in-table creation"
This reverts commit 3a6511a530.

Conflicts:
	lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button-debug.js
	lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button-min.js
	lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button.js
	lib/editor/atto/plugins/table/yui/src/button/js/button.js
2014-04-11 09:47:57 +08:00
AMOS bot 375aa96db0 Automatically generated installer lang files 2014-04-10 22:38:35 +00:00
Gareth J Barnard 625fc64c73 MDL-45045 block theme: Fake blocks show empty region when editing and clicked. 2014-04-10 18:41:50 +01:00
Marina Glancy 58d113934d MDL-45038 modinfo: added property section_info::modinfo 2014-04-10 20:26:25 +08:00
Jetha Chan efbcbd5e46 MDL-45040 editor-atto: selection reverts erroneously
Fixed an issue where selections reverted on toolbar button press when the last selection was made by dragging outside of Atto.
2014-04-10 18:06:47 +08:00
Juan Leyva ad5a8cd6a2 MDL-44342 air notifier: Fixied checking for empty values in event object 2014-04-10 17:34:14 +08:00
Juan Leyva 6acfacfa9a MDL-44342 airnotifier: Added new functions to the Mobile service 2014-04-10 17:34:03 +08:00
Dan Poltawski e5d3f6ea26 Merge branch 'MDL-44868-master-fixup' of git://github.com/FMCorz/moodle
Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
2014-04-10 14:51:42 +08:00
Rajesh Taneja 0adadbf00b MDL-44070 core_completion: Removed unwanted tag 2014-04-10 14:28:28 +08:00
Frederic Massart 5e543b4f76 MDL-44868 editor_atto: Remember the last focused button in the toolbar 2014-04-10 14:22:10 +08:00
Damyon Wiese 5582fe49cc MDL-44170 LTI - fix unit tests. 2014-04-10 14:15:02 +08:00
Dan Poltawski c8d940a5a6 Merge branch 'MDL-44927-master-fix2' of https://github.com/damyon/moodle 2014-04-10 14:09:15 +08:00
Damyon Wiese 5f5d4e9e69 Merge branch 'MDL-44170-master' of https://github.com/adrianfish/moodle 2014-04-10 13:33:50 +08:00
Damyon Wiese 92810c07f7 MDL-44927 Atto: Fix bad merge of MDL-44760 (missing menu entry) 2014-04-10 13:26:03 +08:00
Damyon Wiese 0734383d63 MDL-44342 Airnotifier: Bug in retrieving user prefs (fixes fail in unit test) 2014-04-10 13:16:40 +08:00
Sam Hemelryk b3a72c7f0d MDL-44354 page: fixed ignored property when fetching a renderer 2014-04-10 15:15:05 +12:00
Rajesh Taneja 92a34f2865 MDL-44979 behat: no need to purge all cache again 2014-04-10 11:00:40 +08:00
Juan Leyva 2bb01d13cb MDL-44342 airnotifier: Change default Airnotifier url to use SSL
This commit include also a fix for checking forced settings
2014-04-10 09:25:32 +08:00
Sam Hemelryk 8abf605ee1 Merge branch 'MDL-44760-master-2' of https://github.com/andrewnicols/moodle 2014-04-10 09:26:07 +12:00
sam marshall 3e9c7420d3 MDL-44070 Behat: Fixed restrict_activity_by_date.feature 2014-04-09 17:51:59 +02:00
David Monllao af4830a257 MDL-44619 behat: Converting MDLQA-8
In a standard forum, students can start discussions
add replies and attach files to their posts.
2014-04-09 19:34:11 +07:00
Rajesh Taneja ae90dec5c2 MDL-44070 core_completion: Fixed behat 2014-04-09 14:24:55 +02:00
David Monllao 9bc60e016b MDL-44619 behat: filemanager field manager
Enough to allow attachments use in multi-field steps.
2014-04-09 19:03:26 +07:00
Dan Poltawski 1a1949437b Merge branch 'MDL-43856-master-fix1' of https://github.com/damyon/moodle 2014-04-09 17:37:24 +08:00
Damyon Wiese 16ad61bf55 MDL-43856 MathJax: Delay setting of lang until after MathJax startup 2014-04-09 16:44:40 +08:00
David Monllao 020cf9aeef MDL-44619 behat: Helper to init contexts outside behat 2014-04-09 15:12:09 +07:00
Damyon Wiese 21fd2384de Merge branch 'wip-MDL-40843-fix' of git://github.com/marinaglancy/moodle 2014-04-09 15:44:39 +08:00
Mark Nelson f68fee244a MDL-42462 mod_feedback: added $OUTPUT to list of global variables used to avoid error 2014-04-09 15:37:21 +08:00
Dan Poltawski 8921c6c0c2 Merge branch 'MDL-42195-master-fix2' of https://github.com/damyon/moodle 2014-04-09 15:32:30 +08:00
Marina Glancy 488bbfb720 MDL-40843 chat: fixed bug in SQL query in recent activity block 2014-04-09 15:31:49 +08:00
Andrew Nicols c63f90539a MDL-44760 editor_atto: Address issues with focus when closing menus
Safari fires it's events in a slightly different order for the focusoutside
event which causes the focusAfterHide to be called *after* we change focus.

As a result, we must keep track of the menus which are currently open and
remove their focusAfterHide.
2014-04-09 15:26:34 +08:00
Frederic Massart 97b97b6330 MDL-45010 mod_chat: Use H3 instead of H2 in recent activity info 2014-04-09 15:10:16 +08:00
Damyon Wiese 2471088111 MDL-42195 Bootstrap: Make selector for responsive images 100% the same as bootstrap3. 2014-04-09 14:57:33 +08:00
Andrew Nicols 9b2fc5741e MDL-44844 core: Fix custom menu navigation
Atto introduced a rule to hide all Nodes with the yui3-menu-hidden class
but this rule is too general and applies to non-atto content too.

As a result, when loading the menu and during the XY calculation, the
native Element.getBoundingClientRect() function was returning a bounding
box size of 0 because the Node was not visible and the node was being
hidden from view when it was later made visible.
2014-04-09 14:50:02 +08:00
Marina Glancy 039d204abd MDL-44070 availability: corrected SQL to be mysql-compatible 2014-04-09 14:41:12 +08:00
Damyon Wiese f1dce5734e MDL-44268 Assign: Fix behat test for assigned marker filter 2014-04-09 14:29:46 +08:00
Damyon Wiese d6a3f559db MDL-44268 Assign: Improve the "not submitted" filter 2014-04-09 14:29:46 +08:00
Jonathon Fowler c80d59f269 MDL-44268 assign: add 'not submitted' and 'no marker' filter options 2014-04-09 14:29:46 +08:00
Dan Poltawski 3c72b71191 Merge branch 'MDL-41123-master' of git://github.com/ankitagarwal/moodle 2014-04-09 14:03:42 +08:00
Damyon Wiese 43968c9f10 Merge branch 'mdl44669-master' of https://github.com/tlock/moodle 2014-04-09 13:05:46 +08:00
Dan Poltawski a935cccb2b Merge branch 'MDL-31679' of git://github.com/aolley/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-09 12:49:35 +08:00
Dan Poltawski c559161f4a Merge branch 'MDL-39759_http_response_code_master' of https://github.com/dongsheng/moodle 2014-04-09 12:38:30 +08:00
Dan Poltawski 28c247a735 MDL-44507 filemanger: fix coding style 2014-04-09 12:10:30 +08:00
Dan Poltawski 9eeacad9b8 Merge branch 'MDL-44507_master' of https://github.com/SWiT/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-09 11:52:33 +08:00
Dan Poltawski 1b9a1e8128 Merge branch 'MDL-29572_master' of https://github.com/jrchamp/moodle 2014-04-09 11:38:42 +08:00
Damyon Wiese 48dc9f0175 MDL-44927 Atto: Table editor typo that prevents creation of new tables. 2014-04-09 11:31:26 +08:00
Dan Poltawski 020af1058d Merge branch 'MDL-39740_grade_item_idnumber_fix' of git://github.com/ashleyholman/moodle 2014-04-09 11:12:55 +08:00
Marina Glancy 47a1315f02 Merge branch '44944-27' of git://github.com/samhemelryk/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-09 09:48:41 +08:00
Sam Hemelryk e97b942223 Merge branch 'MDL-40908_master' of https://github.com/markn86/moodle 2014-04-09 11:26:33 +12:00
AMOS bot 98f5b72acc Automatically generated installer lang files 2014-04-08 22:38:25 +00:00
Sam Hemelryk 6a90bc5e05 Merge branch 'MDL-44870-master' of git://github.com/FMCorz/moodle 2014-04-09 10:37:05 +12:00
Sam Hemelryk b983a5d869 Merge branch 'MDL-44765-master' of git://github.com/phalacee/moodle 2014-04-09 10:26:33 +12:00
Sam Hemelryk 6ef3728805 Merge branch 'wip-MDL-44971-2.7-submission_reopen_hook' of https://github.com/catalyst/moodle 2014-04-09 10:15:50 +12:00
Sam Hemelryk 0a293483e8 MDL-39833 format: tidied up API improvement to allow for future backport 2014-04-09 10:09:44 +12:00
Sam Hemelryk da98185a58 Merge branch 'MDL-39833' of https://github.com/shashirepo/moodle 2014-04-09 10:09:02 +12:00
Damyon Wiese 86bd7af5be MDL-42195 Bootstrap - put border and vertical-align back in the reset for all images 2014-04-08 17:04:43 +08:00
Marina Glancy d175d25adc Merge branch 'MDL-44881-master' of git://github.com/phalacee/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-08 16:55:49 +08:00
David Scotson a1071322f7 MDL-44468 backup: use html_writer::div call
Simplify the renderer code with the new html_writer
div function.
2014-04-08 09:46:42 +01:00
David Scotson 9b2a2ffe2a MDL-44468 backup: use notification API
Replace a hardcoded div.notifyproblem with a API call that,
in Standard theme, outputs the same HTML.

Also removes the .notifyproblem class from the heading,
as that might cause problems for themers who expect it to be
used consistently with the API.
2014-04-08 09:46:42 +01:00
Ankit Agarwal e5f4487194 MDL-41123 report_completion: Add context validations to the events 2014-04-08 16:07:35 +08:00
Jason Fowler 0d5bfb9c65 MDL-44881 Filepicker: Fix alignment and padding on file-select dialog 2014-04-08 14:44:50 +08:00
Damyon Wiese 0610d2ca92 Merge branch 'MDL-44131-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/editor/atto/plugins/equation/yui/build/moodle-atto_equation-button/moodle-atto_equation-button-debug.js
	lib/editor/atto/plugins/equation/yui/build/moodle-atto_equation-button/moodle-atto_equation-button-min.js
	lib/editor/atto/plugins/equation/yui/build/moodle-atto_equation-button/moodle-atto_equation-button.js
	lib/editor/atto/plugins/equation/yui/src/button/js/button.js
2014-04-08 14:18:50 +08:00
Dan Poltawski a5cd92574d Merge branch 'MDL-42462-Feedback-Fix-for-WCAG-2-0-issue-with-Informational-and-Error-Content-Displayed-in-red' of https://github.com/michael-milette/moodle 2014-04-08 14:11:59 +08:00
Frederic Massart 050159dc9f MDL-44131 atto_equation: Equation library groups are aria toolbars 2014-04-08 14:08:54 +08:00
Damyon Wiese 48395a9cdb Merge branch 'wip-MDL-40907-master' of git://github.com/marinaglancy/moodle 2014-04-08 14:01:34 +08:00
Dan Poltawski 052d51b15f Merge branch 'MDL-44241-master' of git://github.com/andrewnicols/moodle 2014-04-08 13:53:19 +08:00
Damyon Wiese 392cb4577a MDL-44070 Conditional availability - white space fix 2014-04-08 13:49:15 +08:00
Marina Glancy 158379e173 MDL-40907 events: additional legacy logging for module update/add events" 2014-04-08 13:45:13 +08:00
Marina Glancy 957944dca8 MDL-40907 events: view list of resources in course 2014-04-08 13:45:09 +08:00
Marina Glancy c3ba899abd MDL-40907 events: Allow one event write several entries to the legacy log table 2014-04-08 13:44:57 +08:00
Damyon Wiese 515fe565f6 Merge branch 'MDL-44070-master' of https://github.com/sammarshallou/moodle
Conflicts:
	theme/bootstrapbase/less/moodle/forms.less
	theme/bootstrapbase/style/moodle.css
	version.php
2014-04-08 13:30:41 +08:00
Damyon Wiese 594a5c8c02 Merge branch 'MDL-44235-master' of git://github.com/FMCorz/moodle 2014-04-08 12:32:49 +08:00
Damyon Wiese 19346e06cb Merge branch 'wip-MDL-44340-master' of git://github.com/abgreeve/moodle 2014-04-08 12:16:42 +08:00
Dan Poltawski 822b055c61 Merge branch 'MDL-44784-master' of git://github.com/FMCorz/moodle 2014-04-08 12:12:01 +08:00
Damyon Wiese 9a6c091f1c MDL-44342 message_airnotifier: Fix shifter warnings in JS 2014-04-08 12:11:36 +08:00
Dan Poltawski d0a3cec564 Merge branch 'MDL-44806-master' of git://github.com/phalacee/moodle 2014-04-08 12:07:15 +08:00
Dan Poltawski 9a59ebaa6c Merge branch 'MDL-44810-master' of git://github.com/jethac/moodle
Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin-min.js
2014-04-08 12:04:41 +08:00
Dan Poltawski a0c2ac6b86 MDL-43682 report_loglive: commit built yui files 2014-04-08 12:03:37 +08:00
Sam Hemelryk 2891559fd5 MDL-43682 report_loglive: fixed lint warning in fetchlogs JS 2014-04-08 15:41:54 +12:00
Dan Poltawski 23cc5bbdc0 Merge branch 'MDL-44868-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
	lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin-min.js
2014-04-08 11:37:25 +08:00
Dan Poltawski 95ce54f060 Merge branch 'MDL-44869-master' of git://github.com/FMCorz/moodle 2014-04-08 11:27:59 +08:00
Marina Glancy 39b70b23b7 Merge branch 'MDL-44677_scorm_commit' of git://github.com/davosmith/moodle 2014-04-08 11:14:52 +08:00
Marina Glancy 593fc9d8d6 Merge branch 'MDL-44948' of git://github.com/timhunt/moodle 2014-04-08 11:13:43 +08:00
Marina Glancy aaba0d56e2 Merge branch 'MDL-44891-master' of git://github.com/sammarshallou/moodle 2014-04-08 11:13:17 +08:00
Damyon Wiese 1786388680 MDL-44342 message_airnotifier: Fix for unit tests. 2014-04-08 10:55:33 +08:00
Damyon Wiese 1e16a58525 Merge branch 'wip-MDL-22999-m27' of https://github.com/jamesmcq/moodle 2014-04-08 10:09:21 +08:00
Sam Hemelryk e2a486837f Merge branch 'MDL-43975-master' of https://github.com/sammarshallou/moodle 2014-04-08 13:46:28 +12:00
Dan Poltawski 36e051dab4 Merge branch 'wip-MDL-18598-master' of git://github.com/marinaglancy/moodle 2014-04-08 09:45:07 +08:00
Damyon Wiese 9f7e101fc7 Merge branch 'MDL-44342' of git://github.com/jleyva/moodle 2014-04-08 09:27:48 +08:00
Dan Poltawski 3a047312b6 Merge branch '42317-27' of git://github.com/samhemelryk/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-08 09:22:38 +08:00
Marina Glancy 72c0f16889 Merge branch 'master_MDL-44938' of git://github.com/danmarsden/moodle 2014-04-08 08:53:58 +08:00
Marina Glancy 08cf1d787e Merge branch 'master_MDL-43011' of git://github.com/danmarsden/moodle 2014-04-08 08:53:49 +08:00
Marina Glancy 0f4fc5a878 Merge branch 'MDL-42195-master' of git://github.com/damyon/moodle 2014-04-08 08:53:35 +08:00
Marina Glancy efa6ee356b Merge branch 'MDL-44954' of git://github.com/jleyva/moodle 2014-04-08 08:34:24 +08:00
Sam Hemelryk 17c37406b5 Merge branch 'MDL-44408' of git://github.com/jleyva/moodle 2014-04-08 11:44:21 +12:00
Sam Hemelryk 3fb4d8fa88 Merge branch 'MDL-44912-master-core' of git://github.com/FMCorz/moodle 2014-04-08 11:42:29 +12:00
Sam Hemelryk 2e718bc4bd Merge branch 'MDL-44933-master' of git://github.com/FMCorz/moodle 2014-04-08 11:38:13 +12:00
Sam Hemelryk c1229656db Merge branch 'MDL-44454_old_code' of https://github.com/andyjdavis/moodle 2014-04-08 11:35:34 +12:00
Sam Hemelryk 652f9a5ef8 Merge branch 'MDL-36141' of https://github.com/merrill-oakland/moodle 2014-04-08 11:22:23 +12:00
AMOS bot 10f68d9d26 Automatically generated installer lang files 2014-04-07 22:39:43 +00:00
Sam Hemelryk 87f2c808f7 Merge branch 'MDL-44760-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button-debug.js
	lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button-min.js
	lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button.js
	lib/editor/atto/plugins/table/yui/src/button/js/button.js
	lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin-min.js
2014-04-08 08:59:54 +12:00
Sam Hemelryk 06d94411de MDL-43682 report_loglive: fixed whitespace issue 2014-04-08 08:51:17 +12:00
Sam Hemelryk 78add102b9 Merge branch 'MDL-43682-master' of git://github.com/ankitagarwal/moodle 2014-04-08 08:50:38 +12:00
Justin Filip 4400033004 MDL-22999 code_grades: Added Behat tests for configurable grade point maximum. 2014-04-07 16:02:37 -04:00
James McQuillan 597662335d MDL-22999 core_grades: Added ability to configure maximum grade value both globally and for each graded-activity. 2014-04-07 16:02:37 -04:00
sam marshall 46d70f0535 MDL-44070 Conditional availability enhancements (10): autogenerated
Includes all the autogenerated files (to make it easier/less worrying
when reviewing and rebasing).
2014-04-07 20:12:03 +01:00
sam marshall 8270f0d0bd MDL-44070 Conditional availability enhancements (9): wider changes
Changes to arbitrary areas of code that are necessary after the new
API (mostly to replace deprecated function calls).
2014-04-07 20:11:59 +01:00
sam marshall 00c832d7a1 MDL-44070 Conditional availability enhancements (8): display
Includes theme and renderer changes required for the new feature.
There are two parts: style required for the display as part of the
course page (when showing the list of conditions for an activity),
and style required for the settings form.

This change supports both the bootstrapbase theme (which was the
main theme used during development) and the old base theme.
2014-04-07 20:11:56 +01:00
sam marshall 400c0fd229 MDL-44070 Conditional availability enhancements (7): forms
Changes to the module and section editing forms to use the new
fields and JavaScript.
2014-04-07 20:11:52 +01:00
sam marshall 8d1f33e122 MDL-44070 Conditional availability enhancements (6): core changes
Changes core code to use new API instead of the old one when
checking user access to activities and sections.

Includes changes to other libraries that are necessary after
adding the availability system and removing old conditional tables
etc.
2014-04-07 20:11:48 +01:00
sam marshall 6a601097a0 MDL-44070 Conditional availability enhancements (5): deprecate old lib
The old conditionlib.php, which is replaced by the new availability
API, has been deprecated.

* Code which uses the key functions (is_available,
  get_full_information) should still work. These now show
  deprecated warnings and then pass through to equivalents in the
  new API.
* I have created new unit tests for these functions.
* The old language file has been removed (reused strings already
  moved with AMOS).
* Most other functions throw exceptions because it was impossible
  (due to fundamental API differences) or difficult to reimplement.
* I don't really expect that non-core code (outside unit tests) will
  have used any of the other functions.
2014-04-07 20:11:45 +01:00
sam marshall 38674ef91a MDL-44070 Conditional availability enhancements (4): backup
Implements backup and restore for the new conditional availability
data. This includes:

* Backup and restore of new field.
* Restore updates IDs in conditions, as required.
* Restore converts availability data from legacy (Moodle 2.6) backups.
* Unit tests for all this.
2014-04-07 20:11:41 +01:00
sam marshall e01efa2cfd MDL-44070 Conditional availability enhancements (3): conditions
Includes all the conditions that were in previous Moodle versions:

* Date
* Grade
* Completion (of another activity)
* User profile field

Also includes conditions that are used to reimplement
groupmembersonly:

* Grouping
* Group

For each condition, the component plus unit tests are included.

PLEASE NOTE: The code to actually check each condition is reused
from previous Moodle versions and has not been modified except to
pass codechecker. This is intentional, to reduce the risk of the
change and maximise the chance that behaviour is preserved. Some
of this code might not be very good and might need updating but
that can happen separately.

AMOS BEGIN
 CPY [contains,core_condition],[op_contains,availability_profile]
 CPY [doesnotcontain,core_condition],[op_doesnotcontain,availability_profile]
 CPY [endswith,core_condition],[op_endswith,availability_profile]
 CPY [isempty,core_condition],[op_isempty,availability_profile]
 CPY [isequalto,core_condition],[op_isequalto,availability_profile]
 CPY [isnotempty,core_condition],[op_isnotempty,availability_profile]
 CPY [startswith,core_condition],[op_startswith,availability_profile]
 CPY [completion_fail,core_condition],[option_fail,availability_completion]
 CPY [completion_pass,core_condition],[option_pass,availability_completion]
 CPY [completion_complete,core_condition],[option_complete,availability_completion]
 CPY [completion_incomplete,core_condition],[option_incomplete,availability_completion]
AMOS END
2014-04-07 20:11:37 +01:00
sam marshall d3db4b037c MDL-44070 Conditional availability enhancements (2): subsystem, API
This commit defines the new /availability root folder, with
/availability/classes, /availability/tests, and
/availability/condition where the condition plugins will live.
Condition plugin prefix is availability_, e.g. availability_date.

Rationale for this organisation:

1. I was originally going to put this in /lib/availability but
   it has been pointed out that putting even more junk in lib
   is probably bad.
2. 'availability' and 'condition' are the two names used in code
   to refer to this system ($CFG->enableavailability).
3. The prefix has to be short enough to allow database tables
   (although in practice I assume that condition plugins will not
   normally contain database tables).

The new API includes a Boolean tree structure that controls the
availability of an item.

AMOS BEGIN
 CPY [availabilityconditions,core_condition],[restrictaccess,core_availability]
 CPY [enableavailability,core_condition],[enableavailability,core_availability]
 CPY [configenableavailability,core_condition],[enableavailability_desc,core_availability]
AMOS END
2014-04-07 20:11:33 +01:00
sam marshall 8e97006ad0 MDL-44070 Conditional availability enhancements (1): DB upgrade
Converts existing data to new structure in database as part of
upgrade, including a progress bar.

Deletes the database tables and fields that were used by the old
system and are no longer needed.
2014-04-07 18:27:43 +01:00
Andrew Nicols ee616cff45 MDL-44760 editor_atto: Make menus consistent with Clean theme 2014-04-07 20:43:57 +08:00
James Pratt 1d75d9fe70 MDL-44981 quiz statistics report : Differentiating '0' and no response
in numeric questions.
2014-04-07 19:13:04 +07:00
James Pratt bec7719c3b MDL-44980 quiz statistics report : break down by variants failing
when there has only been one variant seen.
2014-04-07 18:44:48 +07:00
Henning Bostelmann af904bd75b MDL-44629 Assignment: add facility for displaying plugin-specific headers 2014-04-07 11:34:26 +01:00
Juan Leyva 5e12b369af MDL-44954 messages: Fixed save notifications with the notification flag 2014-04-07 12:19:52 +02:00
Juan Leyva d62c3c6ea8 MDL-44342 airnotifier: Add support for shifter in the YUI Module
This commit includes also some integrator review related fixes
2014-04-07 12:14:09 +02:00
Juan Leyva 438c7020c2 MDL-44342 airnotifier: Include missing defined and required lib in externallib.php 2014-04-07 12:14:01 +02:00
Juan Leyva b310aeecd4 MDL-44342 airnotifier: Add information about the message in the payload.
In order to check if is a notification or just a private message
2014-04-07 12:13:53 +02:00
Juan Leyva 1bcb18e7f9 MDL-44342 airnotifier: Unit tests for external functions (web services) 2014-04-07 12:13:53 +02:00
Juan Leyva 324facf457 MDL-44342 airnotifier: Use system context instead user.
Added missing capabilities and language strings
2014-04-07 12:13:43 +02:00
Juan Leyva 98fb4d413b MDL-44342 airnotifier: Add support for Android notifications 2014-04-07 12:13:43 +02:00
Juan Leyva a8f111aaf2 MDL-44342 airnotifier: rest.php should return success information
Javascript should handle properly errors, also, the eye and spinner
should be synchronized with the remote operation
2014-04-07 12:13:35 +02:00
Juan Leyva 3570f5e287 MDL-44342 airnotifier: Added support for the new workflow of registering devices
And also for request access keys to Airnotifier
2014-04-07 12:13:24 +02:00
mouneyrac 08ca1a5bfd MDL-44342 airnotifier: Initial work, first version of the plugin 2014-04-07 12:13:07 +02:00
Dan Poltawski b48eaedeb9 Merge branch 'MDL-43856-master' of git://github.com/damyon/moodle 2014-04-07 17:28:34 +08:00
Damyon Wiese 22cee6a7ea MDL-43856 MathJax: Remove unused build folder.
This is left over from when I renamed the module.
2014-04-07 17:21:43 +08:00
Dan Poltawski 4834cfdf59 Merge branch 'MDL-43856-master' of git://github.com/damyon/moodle 2014-04-07 16:58:46 +08:00
Ankit Agarwal 1722da6a7b MDL-43682 Some imporvements to loglive report 2014-04-07 16:58:45 +08:00
Ankit Agarwal 1ac341e23f MDL-43682 log: Fix issues with log report
Following fixes have been made:-
Porfile links where generating errors when there was no courseid present. Fixed the same.
get_readers() method was accessing an undefined property.
popups were used for action and ip address before the whole rewrite, we should maintain the same behaviour.
Fixed string issues.
Pass context to format_string method
2014-04-07 16:58:44 +08:00
Ankit Agarwal 5991eb80cd MDL-43682 loglive: Rewrite loglive to use new logging stores
AMOS BEGIN
 CPY [eventcomponent,report_log],[eventcomponent,report_loglive]
 CPY [eventcontext,report_log],[eventcontext,report_loglive]
 CPY [eventloggedas,report_log],[eventloggedas,report_loglive]
 CPY [eventorigin,report_log],[eventorigin,report_loglive]
 CPY [eventrelatedfullnameuser,report_log],[eventrelatedfullnameuser,report_loglive]
 CPY [nologreaderenabled,report_log],[nologreaderenabled,report_loglive]
 CPY [selectlogreader,report_log],[selectlogreader,report_loglive]
AMOS END
2014-04-07 16:58:44 +08:00
Damyon Wiese e017c50bcf Merge branch 'wip-MDL-40843-master' of git://github.com/marinaglancy/moodle 2014-04-07 16:57:06 +08:00
Marina Glancy a8e4b006ce Merge branch 'MDL-44761-master' of git://github.com/andrewnicols/moodle 2014-04-07 16:16:32 +08:00
Marina Glancy 502ff062a0 Merge branch 'wip-mdl-44873' of git://github.com/rajeshtaneja/moodle 2014-04-07 16:16:25 +08:00
Dan Poltawski e2e1622946 Merge branch 'MDL-44927-master' of git://github.com/damyon/moodle 2014-04-07 16:10:14 +08:00
Dan Poltawski 5e8be14cb9 Merge branch 'MDL-41569-master' of git://github.com/damyon/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-07 16:01:56 +08:00
Damyon Wiese 353473aa59 MDL-44927 Atto: Improve table editing UX
Hide context menu items that don't apply.
Add "Edit table" menu entry to change the caption / headers.
2014-04-07 15:57:59 +08:00
Damyon Wiese 1c9785d52d MDL-43856 MathJAX: Small correction to readme_moodle.txt
The CDN urls have been moved to settings.php.
2014-04-07 15:44:06 +08:00
Damyon Wiese 2aa476bbc8 Merge branch 'wip-MDL-43021-master' of git://github.com/marinaglancy/moodle 2014-04-07 15:19:11 +08:00
Rajesh Taneja 22001b4a9b MDL-44977 tool_profiling: set xhprof default settings
Set xhprof default settings, even if xhprof is not installed.
If xhprof is not installed, hide profiling admin settings,
else show them.
This is needed, because if xhprof is installed, then it will
fail all non-js behats which navigate to setting under
site administration, as profiling settings get displayed on
default admin page.
2014-04-07 14:55:55 +08:00
Nobelium e3528983f2 MDL-41476 scorm settings- SCORM1.2 standard mode and CMIString length
Adding SCORM 1.2 standard mode checkbox in scorm admin panel. By default it will be enabled
(i.e: config name = `scorm12standard`, plugin name = `scorm`, value = `1`)
If `scorm12standard` is `1` CMIString256 is of length 256 and CMIString4096 is of length is 4096
if `scorm12standard` is `0` CMIString256 and CMIString4096 are of length is 64000
2014-04-07 14:07:48 +08:00
Dan Poltawski 0678d09213 Merge branch 'wip-MDL-33486-master' of git://github.com/marinaglancy/moodle 2014-04-07 13:10:41 +08:00
Andrew Davis abdfe18ddb MDL-44454 core_user: removed unused code from user/index.php 2014-04-07 12:02:15 +08:00
Sam Hemelryk 54c4398a6d Merge branch 'w15_MDL-44882_m27_upgrademaint' of https://github.com/skodak/moodle 2014-04-07 15:43:12 +12:00
Sam Hemelryk b017ff6da6 Merge branch 'MDL-44748-master' of git://github.com/damyon/moodle 2014-04-07 15:18:52 +12:00
Damyon Wiese c61269af86 Merge branch '44967-27' of git://github.com/samhemelryk/moodle 2014-04-07 11:15:51 +08:00
Sam Hemelryk 5ee0b3ceaf Merge branch 'MDL-44758-master' of git://github.com/jethac/moodle
Conflicts:
	lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button-min.js
2014-04-07 15:02:40 +12:00
Dan Poltawski d69f584fe6 Merge branch 'wip-mdl-44945' of https://github.com/rajeshtaneja/moodle 2014-04-07 10:53:56 +08:00
Jetha Chan 3a6511a530 MDL-44758 editor-atto: prevent table-in-table creation
Prevent new table creation, displaying table context menu instead when cursor is within caption, when multiple cells are selected, when selection contains both nodes within and outside of the table, and when selection contains nodes from multiple tables.
2014-04-07 10:44:29 +08:00
Dan Poltawski 1c9e738b54 Merge branch '41551-27' of git://github.com/samhemelryk/moodle 2014-04-07 10:28:27 +08:00
Sam Hemelryk b96bee62b1 Merge branch 'MDL-44940' of git://github.com/timhunt/moodle 2014-04-07 13:16:12 +12:00
Jason Fowler 9754ab92da MDL-44765 Atto: Fix the accessibility warning events for image dialogue 2014-04-07 07:59:45 +08:00
Aaron Wells d54404e5bb MDL-44971 Add hook to "add_attempt" for mod/assign/submission plugins 2014-04-07 10:52:48 +12:00
Sam Hemelryk 2429e44011 Merge branch 'MDL-44846-master' of git://github.com/damyon/moodle 2014-04-07 08:48:50 +12:00
Sam Hemelryk 70aab3836a Merge branch 'MDL-44949-master' of git://github.com/damyon/moodle 2014-04-07 08:15:34 +12:00
Sam Hemelryk af23b60598 MDL-44944 theme_bootstrapbase: fixed content spacing issue with docked region
Thanks Mary Evans for the peer-review and better solution
2014-04-07 08:12:35 +12:00
Petr Škoda 1a361486a9 MDL-44882 always set maintenance mode on non-cached admin pages
This should resolve all issues with themes during upgrades.
2014-04-06 20:37:55 +08:00
Sam Hemelryk 566889aaa8 MDL-42317 output: reviewed standard/base layouts and converted where a better option was available 2014-04-06 15:57:32 +12:00
Sam Hemelryk 20015af513 MDL-42317 theme_bootstrapbase: more responsive styling for forms with blocks pre && post 2014-04-06 15:40:09 +12:00
Sam Hemelryk 04f1a90d05 MDL-41551 theme_base: improved custom block region handling for base 2014-04-06 15:17:48 +12:00
Sam Hemelryk 292dcf047f MDL-41551 blocks: added tracking and recognition of custom block regions 2014-04-06 15:17:47 +12:00
Sam Hemelryk 225c418fd2 MDL-41511 blocks: improved how custom block regions were being rendered.
There is a new theme property 'blockrendermethod' that can be set by the
theme in its config.php and tells Moodle what method it is using to render
blocks in the layout files.
Either blocks, or blocks_for_region.
Then when adding custom block regions to a page content we ensure we use
the same method the theme is using elsewhere.

This is really a hack becuase we (I) didn't properly deprecate
blocks_for_region when I added the blocks method.
2014-04-06 15:17:47 +12:00
Sam Hemelryk 9bebe2bbbc MDL-44967 upgrade: fixed theme removal when themes have been removed already 2014-04-06 10:50:34 +12:00
shashirepo 600be271c6 MDL-39833 course: require token change
MDL-39833 course: require token change
2014-04-05 12:29:47 +05:30
Eric Merrill 288e7b0921 MDL-36141 course Define role to limit access to Other users. 2014-04-04 14:58:48 -04:00
Tim Hunt 3a528d4e76 MDL-44948 add tool_qeupgradehelper to the list of deleted plugins. 2014-04-04 19:21:23 +01:00
Tim Hunt 07a0370bf8 MDL-44940 quiz editing page problems from MDL-43749.
* If the quiz starts with an empty page, you could not move the first
question up onto it.
* Adding page breaks in the middle sometimes added them in the wrong
place.
* Adding a new page at the end is problematic, and here we fix it as
much as possible, by letting you move the last question down to create a
new page. This needs MDL-40987 to be fixed properly.
2014-04-04 19:03:16 +01:00
sam marshall 15c8c47401 MDL-44891 Behat: Add step to check attribute
This commit creates a Behat step of the form:

Then the "title" attribute of "Toggle visibility" "button"
should contain "Show"

This is useful because unless I missed something there is currently
no step that checks attribute values; this seems like a simple
generic step. Behat is intended to check user-visible effects in
the resulting HTML, and sometimes these effects are implemented
using attribute values (two common examples are the alt= attribute,
which is visible to screenreader users, and the title= attribute,
which is visible to all users; there's also the src attribute of
images, and lots of other possibilities too).
2014-04-04 18:17:39 +01:00
sam marshall c0fb7f4417 MDL-44891 Behat: Add step to check attribute
This commit creates a Behat step of the form:

Then the "title" attribute of "Toggle visibility" "button"
should contain "Show"

This is useful because unless I missed something there is currently
no step that checks attribute values; this seems like a simple
generic step. Behat is intended to check user-visible effects in
the resulting HTML, and sometimes these effects are implemented
using attribute values (two common examples are the alt= attribute,
which is visible to screenreader users, and the title= attribute,
which is visible to all users; there's also the src attribute of
images, and lots of other possibilities too).
2014-04-04 18:16:28 +01:00
Tony Butler 1da7d44ac6 MDL-44349 core_moodlelib: Add unit tests for count_words()
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
2014-04-04 17:10:45 +01:00
Tony Butler 456acec4cc MDL-44349 core_moodlelib: Improve word counting rules
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
2014-04-04 17:10:45 +01:00
Juan Leyva 4595c79b74 MDL-44408 Adding missing order (so we start looking for newest discussions) 2014-04-04 12:13:47 +02:00
Juan Leyva 1fee2cd4e9 MDL-44408 Add "pagination" to WebService get_forum_discussions 2014-04-04 12:13:47 +02:00
Marina Glancy 9fb549a543 MDL-40843 workshop: sort entries in recent activity block by time 2014-04-04 16:52:02 +08:00
Marina Glancy a1bff2f92a MDL-40843 workshop: show user names in recent activity 2014-04-04 16:52:01 +08:00
Marina Glancy e19c086c36 MDL-40843 recent_activity: corrections to grouping and user fields 2014-04-04 16:52:01 +08:00
Marina Glancy d6f418cb77 MDL-40872 Restore functionality of showrecentsubmissions setting 2014-04-04 15:11:13 +08:00
Damyon Wiese aaf6f1e8f2 MDL-43856 MathJax: Dynamically load mathjax into the page (as required).
This is to solve a tricky edge case, when a page has no equations, and then an AJAX
action loads filtered content which contains an equation. (The glossary filter can do this).

To fix this I split the loading into configuration and typesetting. The config always happens,
but does not load the external mathjax libraries. The typesetting happens when an equation is
found - and is what triggers the load of MathJax. This can happen in response to an AJAX event.
2014-04-04 14:18:50 +08:00
Damyon Wiese 894e20395d MDL-43856 MathJax: Add a setting for additional delimiters to support e.g. ASCIIMATH 2014-04-04 13:30:08 +08:00
Rajesh Taneja f8b589c90c MDL-44873 behat: Added suppport for clean error class. 2014-04-04 13:22:58 +08:00
Rajesh Taneja 0ac63cfce7 MDL-44873 theme_bootstrapbase: Added support for notifytiny class 2014-04-04 13:19:13 +08:00
Andrew Nicols 49a510efbd MDL-44241 atto_unlink: Merge into atto_link 2014-04-04 12:03:02 +08:00
Damyon Wiese 8d1c017979 MDL-44949 Atto: JS error when picking an image from a repository 2014-04-04 12:03:01 +08:00
Jetha Chan 0a1456dfa8 MDL-44810 editor_atto: restore selection after button press
Fixed issue where clicking on buttons erroneously lost viewport focus and selection.
2014-04-04 11:47:56 +08:00
Marina Glancy f5c6e8db1d MDL-18598 forum: redefine index to allow faster cron jobs 2014-04-04 11:37:17 +08:00
Andrew Nicols d86e45f0ce MDL-44761 editor_atto: Add keyboard shortcut descriptions to the button titles. 2014-04-04 11:32:20 +08:00
Mark Nelson d999407125 MDL-40908 core_tag: created an 'item_untagged' event 2014-04-03 20:26:22 -07:00
Ankit Agarwal df13233697 MDL-41123 report_completion: Add events to completion report
Replace add_to_log with user_report_viewed event
add a report_viewed event
2014-04-04 10:32:26 +08:00
Rajesh Taneja fef8ee9114 MDL-44945 mod_workshop: fixed event snapshot 2014-04-04 10:09:08 +08:00
Mark Nelson bf2ae267ca MDL-40908 core_tag: created a 'tag_created' event 2014-04-03 18:15:32 -07:00
Mark Nelson db456ec1a5 MDL-40908 core_tag: created a 'tag_deleted' event 2014-04-03 18:15:32 -07:00
Mark Nelson 097bd4cdae MDL-40908 core_tag: created a 'tag_unflagged' event 2014-04-03 18:15:32 -07:00
Mark Nelson 6298494d73 MDL-40908 core_tag: replaced 'flag' add_to_log call with an event 2014-04-03 18:15:32 -07:00
Mark Nelson cfa2c6e198 MDL-40908 core_tag: replaced 'add' add_to_log call with an event 2014-04-03 18:15:31 -07:00
Mark Nelson 09fce43469 MDL-40908 core_tag: replaced 'update' add_to_log calls with an event 2014-04-03 18:15:31 -07:00
Dan Marsden 3babdf83fe MDL-43011 SCORM: use embedded layout instead of scorm for pop-up windows 2014-04-04 11:47:13 +13:00
Dan Marsden e0eac0c6f3 MDL-44938 SCORM: missing constant definition during upgrade. 2014-04-04 09:38:48 +13:00
Mark Nielsen cb4b7e55a0 MDL-44630: Review changes
* Fixing coding style violations.
* Fixing DOMDocument warning.
2014-04-03 10:10:10 -07:00
Mathieu Petit-Clair e4697e1fc9 MDL-44295 auth: Update truncate_userinfo to match current DB fields size. 2014-04-03 10:20:22 -04:00
Michael Milette cba011942c MDL-42462 - Feedback - Fix for WCAG 2.0 issue with Informational and Error Content Displayed in red
1) The same code used in other Moodle forms is now used in Feedback to display the "There are required fields in this form marked (*/Required field)" message at the top of the screen and each of the asterisks next to required fields.

2) Feedback specific styles (missingrequire, feeback_required_mark), which were used to highlight required and error fields, have been eliminated. These colours are now controlled by the common Moodle styles (mform1, mform, fdescription, required, req and error) that are used throughout the rest of Moodle for a more uniform appearance.

3) Field level error reporting now displays a message instead of just highlighting the field in a similar way that other Moodle forms do.

Affected files:

- /mod/feedback/styles.css
- /mod/feedback/complete.php
- /mod/feedback/complete_guest.php
- /mod/feedback/edit.php
- /mod/feedback/print.php
- /mod/feedback/item/captcha/lib.php
- /mod/feedback/item/info/lib.php
- /mod/feedback/item/multichoice/lib.php
- /mod/feedback/item/multichoicerated/lib.php
- /mod/feedback/item/numeric/lib.php
- /mod/feedback/item/textarea/lib.php
- /mod/feedback/item/textfield/lib.php
- /mod/feedback/lang/en/feedback.php

Signed-off-by: Michael Milette <michael.milette@instruxmedia.com>
2014-04-03 09:25:37 -04:00
AMOS bot 8b0342f8f8 Automatically generated installer lang files 2014-04-03 09:28:06 +00:00
Frederic Massart 06a9e10350 MDL-44933 themes: Allow chunking of CSS in designer mode 2014-04-03 17:12:10 +08:00
Frederic Massart da28376022 MDL-44933 themes: LESS file was served in designer mode and IE 2014-04-03 17:12:09 +08:00
Damyon Wiese 441f94b263 MDL-43856 MathJax: Coding style cleanups. 2014-04-03 14:36:42 +08:00
Damyon Wiese cc90cedc85 MDL-43856 MathJax: Improvements to the MathJax filter
* Remove all traces of mathjax from the atto equation editor - it is filter agnostic
* Add a M.core.event module for core events that can be published/subscribed to by plugins (loose coupling)
* Add a FILTER_CONTENT_UPDATED event so plugins can tell the filter system when nodes are added to the page
* Implement a listener for this event in the MathJax filter
* Fire this event from the equation editor and from the glossary filter
* Add a nolink tag to the mathjax filter, so equations will not be processed by the other filters
* Add a smarter throttle function to the equation editor preview updates (Y.throttle is dumb)
2014-04-03 14:36:36 +08:00
Damyon Wiese 289ed254a7 MDL-43856 MathJax: Add to standard plugins list 2014-04-03 14:36:33 +08:00
Damyon Wiese 8939ebac77 MDL-43856 MathJax: alter the equation editor to make it use MathJax if it is available.
If MathJax is loaded by any means, the editor should use it instead of the filter. This prevents
slow ajax requests and gives much better rendering. MathJax could be loaded by the filter,
or it could just be done the old way by sticking the include in the page header.
2014-04-03 14:36:25 +08:00
Damyon Wiese 7f6753151e MDL-43856 MathJax: Add a mathjax loader filter. 2014-04-03 14:36:16 +08:00
Adrian Greeve 1a219fb6c9 MDL-44340 mod_workshop: Added an event call to phase switched page.
This event was missed in the previous workshop add_to_log change over. The
switch phase event has been moved into the workshop::switch_phase() method.
Also workshop::log() has been deprecated. Developers should use the event
classes to log events.
2014-04-03 13:08:27 +08:00
Marina Glancy 1a727e121e weekly release 2.7dev 2014-04-03 12:39:44 +08:00
Frederic Massart 52329a32f1 MDL-44747 editor_atto: Improved configuration error messages 2014-04-03 11:24:05 +08:00
Marina Glancy e13016850c MDL-43021 course: corrections to the shortname and idnumber uniqueness validation 2014-04-03 11:07:01 +08:00
Frederic Massart 24650c78bb MDL-44235 atto_table: A long table caption does not overlap the table content 2014-04-03 11:05:38 +08:00
Rajesh Taneja ae8c220fd5 MDL-44832 behat: Fixed behat test 2014-04-03 10:59:58 +08:00
Damyon Wiese af6a2e9459 MDL-44846 Atto: Make the color plugins reliable.
The problem is that in IE, the browser implements color commands with font tags (<font color=...>).

We specifically strip font tags to avoid abuse when pasting from word (the world has seen enough of Tahoma).

This solution instead uses Rangy to set inline styles on the selection. This works in all browsers nicely.

I also updated the toggleInlineSelectionClass function to use the same rangy function. This solves problems with
whitespace squashing in ie.
2014-04-03 10:52:41 +08:00
Damyon Wiese 9d5859925e MDL-42195 Bootstrap: Make bootstrap responsive images "opt-in".
This responsive image behaviour prevents setting of image sizes in text editors,
as well as a string of pix icon bugs / profile image bugs across Moodle.

We are switching to Bootstrap 3 syntax where you need img-responsive class to images
that want this behaviour.
2014-04-03 09:21:50 +08:00
Eloy Lafuente (stronk7) fc7557677d MDL-44720 modinfo: whitespace fix 2014-04-02 23:17:10 +02:00
Eloy Lafuente (stronk7) 6b8798dedb Merge branch 'wip-MDL-44720-master' of git://github.com/marinaglancy/moodle 2014-04-02 21:32:42 +02:00
Frederic Massart 907a6737fc MDL-44912 libraries: Allow empty values in admin setting colour picker 2014-04-02 17:20:58 +08:00
Damyon Wiese c8afcb2e7b Merge branch 'master_MDL-44753' of https://github.com/danmarsden/moodle 2014-04-02 16:33:06 +08:00
Dan Poltawski 00f74dfd0d MDL-44590 course: fix deprecated behat step use 2014-04-02 15:58:29 +08:00
Dan Marsden e067e6f0ad MDL-44753 SCORM: make correct selection of first sco - also fixes MDL-44896 2014-04-02 20:50:21 +13:00
Marina Glancy bc348632e1 Merge branch 'MDL-44739-master-fixup' of git://github.com/FMCorz/moodle 2014-04-02 14:57:40 +08:00
Frederic Massart c682844ae9 MDL-44739 theme_more: Force default settings to be set 2014-04-02 14:56:44 +08:00
Marina Glancy ac32e42827 Merge branch 'MDL-42891-master' of git://github.com/ankitagarwal/moodle 2014-04-02 14:54:59 +08:00
Ankit Agarwal 2b0c88e2f6 MDL-42891 adminstration: update strings and display for login fails 2014-04-02 14:18:25 +08:00
Sam Hemelryk e070ffd8ab Merge branch 'MDL-32729-im' of git://github.com/andrewnicols/moodle 2014-04-02 16:37:19 +13:00
Andrew Nicols 5c1af530db MDL-32729 Question: Load all hidden fields from the source form 2014-04-02 10:52:02 +08:00
Eloy Lafuente (stronk7) c790670d77 Merge branch 'MDL-30085_grade_ws' of git://github.com/jleyva/moodle 2014-04-02 04:05:19 +02:00
Marina Glancy a5af7087db Merge branch 'MDL-44749-master' of git://github.com/andrewnicols/moodle 2014-04-02 09:56:46 +08:00
Andrew Nicols f87b22327f MDL-32729 Question: Correct button selection when openin qbank chooser
Some browsers do not bubble form submission events to the window, and we
had more than one form on the page in certain conditions. We need to select
all of the forms on a page and then test the action.
2014-04-02 09:54:32 +08:00
Andrew Nicols 9ad87e7900 MDL-44749 atto_collapse: Skip button inclusion if it will impact UX
Do not show the collapse button if:
* it's specified after the cut-off and would therefore be unusable; or
* the total number of groups matches the number of groups to display anyway.
2014-04-02 09:52:22 +08:00
Marina Glancy 0123472c87 Merge branch 'MDL-41063' of git://github.com/jmvedrine/moodle 2014-04-02 09:46:35 +08:00
Eloy Lafuente (stronk7) 2e20fc3742 Merge branch 'MDL-31262' of git://github.com/timhunt/moodle 2014-04-02 03:18:05 +02:00
Marina Glancy cc7c745c7d Merge branch 'master_MDL-44753' of git://github.com/danmarsden/moodle 2014-04-02 09:15:33 +08:00
Eloy Lafuente (stronk7) 96eead3f6c MDL-24408 Whitespace fix. 2014-04-02 03:14:36 +02:00
Eloy Lafuente (stronk7) bfa5acac64 Merge branch 'MDL-24408_2' of https://github.com/oasychev/moodle 2014-04-02 03:14:06 +02:00
Eloy Lafuente (stronk7) 6faa517856 Merge branch 'wip-MDL-34012-master' of git://github.com/marinaglancy/moodle 2014-04-02 02:57:15 +02:00
Eloy Lafuente (stronk7) b224448ac6 Merge branch 'wip-MDL-43398-master' of git://github.com/marinaglancy/moodle 2014-04-02 02:47:59 +02:00
Eloy Lafuente (stronk7) 0555761203 Merge branch 'w14_MDL-44843_m27_localedash' of https://github.com/skodak/moodle 2014-04-02 02:22:51 +02:00
Eloy Lafuente (stronk7) bd032a64f9 Merge branch 'wip-MDL-41102-master' of git://github.com/marinaglancy/moodle 2014-04-02 02:18:54 +02:00
Sam Hemelryk 3ed2a4b2cc Merge branch 'w14_MDL-44824_m27_subplugins' of https://github.com/skodak/moodle 2014-04-02 13:04:46 +13:00
Eloy Lafuente (stronk7) 57c92af7ad Merge branch 'MDL-42816-master' of https://github.com/StudiUM/moodle 2014-04-02 01:52:41 +02:00
Eloy Lafuente (stronk7) 929e32489f Merge branch 'MDL-28261-master' of git://github.com/andrewnicols/moodle 2014-04-02 01:12:52 +02:00
Eloy Lafuente (stronk7) e154e9d8cd Merge branch 'MDL-44000-master' of git://github.com/damyon/moodle
Conflicts:
	lib/editor/atto/plugins/image/yui/build/moodle-atto_image-button/moodle-atto_image-button-min.js
2014-04-02 00:27:30 +02:00
Dan Marsden c87a50cb45 MDL-44753 SCORM: add check during SCORM restore to make sure valid launch sco is set 2014-04-02 10:01:54 +13:00
Sam Hemelryk 067573bd02 Merge branch 'MDL-44832-master' of git://github.com/damyon/moodle 2014-04-02 09:54:33 +13:00
Sam Hemelryk de878a38c8 Merge branch 'MDL-44719-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/deprecatedlib.php
2014-04-02 09:54:13 +13:00
Sam Hemelryk 8412561a3d Merge branch 'MDL-44756_help' of https://github.com/andyjdavis/moodle 2014-04-02 09:51:47 +13:00
Sam Hemelryk 53361c3087 Merge branch 'MDL-44772-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
2014-04-02 09:43:25 +13:00
Sam Hemelryk 3b07cc1c4e Merge branch 'MDL-44762-master' of git://github.com/FMCorz/moodle 2014-04-02 09:29:11 +13:00
Sam Hemelryk 9b1a4cde78 Merge branch 'MDL-44834-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
2014-04-02 09:28:49 +13:00
Sam Hemelryk 0ea11b7cee Merge branch 'MDL-32729-master' of git://github.com/andrewnicols/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-02 09:27:23 +13:00
Sam Hemelryk b9c16d401a Merge branch 'MDL-43284-master' of git://github.com/phalacee/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-04-02 09:27:03 +13:00
Eloy Lafuente (stronk7) eafbd56da9 Merge branch 'wip-MDL-35305-master' of git://github.com/marinaglancy/moodle 2014-04-01 21:50:09 +02:00
sam marshall e645b4d580 MDL-43975 Sessions: Should support memcache, not just memcached
This commit adds a session handler which works using memcache (without
requiring the memcached extension), similar to the support for
memcache within MUC.

This may be less reliable than memcached but we have been using a
similar approach on our system without problems. In case, I added a
warning in config-dist.php.
2014-04-01 13:34:50 +01:00
Marina Glancy b3d75528de Merge branch 'w14_MDL-40910_m27_usergraded' of git://github.com/skodak/moodle 2014-04-01 17:40:35 +08:00
Marina Glancy e3e9701113 Merge branch 'wip-MDL44021' of git://github.com/jennymgray/moodle 2014-04-01 17:40:22 +08:00
Ankit Agarwal 53b9e63b80 MDL-42891 administration: Replace use of logtable in notify_login_failures() with new logging apis 2014-04-01 17:35:01 +08:00
Ankit Agarwal 52dc1de746 MDL-42891 administration: Re-implement incorrect login notification, without using the logtable. 2014-04-01 17:18:15 +08:00
Jenny Gray f8b3cd4bdf MDL-44021 mod_glossary - fixed search multiple keywords sql duplicate parameter error 2014-04-01 09:34:06 +01:00
Sam Hemelryk 4b92f2b79b Merge branch 'MDL-44745-master' of git://github.com/damyon/moodle 2014-04-01 21:20:05 +13:00
Marina Glancy 5bb81ad437 Merge branch 'MDL-44770-master' of git://github.com/jethac/moodle 2014-04-01 15:50:14 +08:00
Jetha Chan b1421abdb6 MDL-44770 editor_atto: moved table context menu 2014-04-01 15:46:37 +08:00
Marina Glancy 1a1049990f Merge branch 'MDL-44759-master' of git://github.com/FMCorz/moodle 2014-04-01 15:42:21 +08:00
Marina Glancy 99342b5197 Merge branch 'MDL-43999-master' of git://github.com/damyon/moodle 2014-04-01 15:35:05 +08:00
Marina Glancy 7fff0290eb Merge branch 'MDL-44777-master' of git://github.com/FMCorz/moodle 2014-04-01 15:34:44 +08:00
Marina Glancy 9632cad16b Merge branch 'MDL-44717-master' of git://github.com/ankitagarwal/moodle 2014-04-01 15:34:28 +08:00
Marina Glancy 9746748e04 Merge branch 'W14_MDL-44862_m27_pgsocket' of git://github.com/skodak/moodle 2014-04-01 15:33:38 +08:00
Damyon Wiese 43a737d1b5 MDL-43999 Atto : Make image dialogue open on double click of an image. 2014-04-01 15:22:12 +08:00
Frederic Massart 1eb5839cf9 MDL-44777 atto_equation: More consistent width of buttons 2014-04-01 15:21:11 +08:00
Ankit Agarwal b63f773296 MDL-44717 events: Fix multiple issues in events
Fix various incorrect urls
Fix incorrect phpdocs and other minor code style issues
Fix missing/incorrect strings

AMOS BEGIN
 MOV [eventblogassociationcreated, core_blog],[eventblogassociationadded, core_blog]
AMOS END
2014-04-01 15:08:34 +08:00
Marina Glancy 364411b123 MDL-44747 editor_atto: coding error fixed 2014-04-01 14:55:39 +08:00
Ankit Agarwal 85a4b8a3ce MDL-44717 events: Event restore process must call the init() method 2014-04-01 14:51:02 +08:00
Adrian Greeve 7ed25f480b MDL-44717 events: Fix for the name strings in various events.
AMOS BEGIN
 MOV [eventnoteupdate, core_notes],[eventnoteupdated, core_notes]
AMOS END
2014-04-01 14:45:05 +08:00
Adrian Greeve 55f59c2b44 MDL-44717 events: Quick update to incorrect mod workshop class definition. 2014-04-01 14:45:05 +08:00
Marina Glancy 3accdbff60 Merge branch 'MDL-44234-master' of git://github.com/FMCorz/moodle 2014-04-01 14:44:13 +08:00
Marina Glancy 0a4af310fd Merge branch 'MDL-44741-master' of git://github.com/FMCorz/moodle 2014-04-01 14:43:49 +08:00
Frederic Massart dfd5127531 MDL-44234 atto_table: Reduce the size of the caption field 2014-04-01 14:37:33 +08:00
Frederic Massart 7ff7f5ad27 MDL-44741 theme_more: Updated description of the theme 2014-04-01 14:34:42 +08:00
Marina Glancy e50a6fa5fb Merge branch 'MDL-44747-master' of git://github.com/FMCorz/moodle 2014-04-01 14:26:08 +08:00
Marina Glancy 0b5f523164 Merge branch 'MDL-44739-master' of git://github.com/FMCorz/moodle 2014-04-01 14:24:54 +08:00
Marina Glancy 75823325d3 Merge branch 'MDL-44746_master' of git://github.com/markn86/moodle 2014-04-01 13:51:09 +08:00
Marina Glancy 0b1afc71bb Merge branch 'w14_MDL-44715_m27_eventval' of git://github.com/skodak/moodle 2014-04-01 13:45:59 +08:00
Marina Glancy 2f7949cd57 Merge branch 'MDL-44755-master' of git://github.com/FMCorz/moodle 2014-04-01 13:32:03 +08:00
Marina Glancy 902eec06e9 Merge branch 'MDL-44811' of git://github.com/timhunt/moodle 2014-04-01 13:24:09 +08:00
Marina Glancy 814f40ba31 Merge branch 'MDL-44763_preview_int' of https://github.com/andyjdavis/moodle 2014-04-01 11:19:26 +08:00
Marina Glancy d767af7c2d Merge branch 'MDL-44754-master' of git://github.com/phalacee/moodle 2014-04-01 11:08:40 +08:00
Andrew Nicols c390774ade MDL-44752 atto: Correct spelling of color => colour in plugin languages 2014-04-01 11:08:18 +08:00
Marina Glancy e57f83a5c0 Merge branch 'MDL-44701' of git://github.com/aolley/moodle 2014-04-01 11:06:23 +08:00
Marina Glancy 502abeebb6 Merge branch 'MDL-44670-master' of git://github.com/FMCorz/moodle 2014-04-01 11:05:31 +08:00
Marina Glancy 31374d59d0 Merge branch 'MDL-44590-master' of git://github.com/danpoltawski/moodle 2014-04-01 11:04:52 +08:00
Andrew Davis 5491fd7f07 MDL-44763 editor_atto: removed unnecessary "preview" label 2014-04-01 10:57:16 +08:00
Marina Glancy 5259d51317 Merge branch 'MDL-44837-master' of git://github.com/sammarshallou/moodle 2014-04-01 10:39:24 +08:00
Marina Glancy 1bc60971b1 Merge branch 'wip_MDL-44854_master' of git://github.com/gjb2048/moodle 2014-04-01 10:37:22 +08:00
Marina Glancy 771b121287 Merge branch 'wip-MDL-44850_master' of git://github.com/gjb2048/moodle 2014-04-01 10:36:00 +08:00
Juan Leyva 19ed179716 MDL-30085 Moved to lib/classes for support autoloading 2014-03-31 15:15:18 +02:00
Juan Leyva 198e802f9d MDL-30085 core_grades functions moved to correct location 2014-03-31 15:15:17 +02:00
Andrew Davis d35499312d MDL-30085 core_grade: added a grade web service 2014-03-31 15:15:17 +02:00
Gareth J Barnard 7cc6112219 MDL-44854 theme: 'svg' font type not served. 2014-03-31 11:10:13 +01:00
Gareth J Barnard 9e98a0c04f MDL-44850 theme: 'eot' font type not served. 2014-03-31 11:01:30 +01:00
Frederic Massart 76748496d8 MDL-44869 atto_noautolink: Highlight button when noautolink is active 2014-03-31 17:50:08 +08:00
Frederic Massart ac0f8617d4 MDL-44870 atto_noautolink: Remove plugin from default toolbar settings 2014-03-31 17:24:02 +08:00
Frederic Massart 33bb15eb80 MDL-44808 atto_table: Removing unused language string for JS 2014-03-31 17:21:15 +08:00
Frederic Massart b9d065edc4 MDL-44868 editor_atto: Prevent disable buttons to keep tabIndex
Now, if a button gets disabled but the tabIndex and the focus
are on that button, the focus and tabIndex are moves to its
closest neighbour.
2014-03-31 16:47:32 +08:00
Frederic Massart af31595b4b MDL-44868 editor_atto: Toolbar navigation ignores disabled buttons 2014-03-31 16:40:29 +08:00
Marina Glancy 0cbc523621 Merge branch 'w14_MDL-44733_m27_taskdisabled' of git://github.com/skodak/moodle 2014-03-31 16:36:27 +08:00
Marina Glancy de19c44c82 Merge branch 'MDL-44808-master' of git://github.com/FMCorz/moodle 2014-03-31 16:36:12 +08:00
Damyon Wiese ffb8aff65c MDL-44000 Atto: Add option to constrain image size
(Keep aspect ratio)

Also some small improvements to the edit image dialogue.
2014-03-31 16:28:57 +08:00
Marina Glancy b13f4e8e7c Merge branch 'MDL-44764-master' of git://github.com/FMCorz/moodle 2014-03-31 15:55:29 +08:00
Petr Škoda 246230715e MDL-44733 add disabled class rows with disabled scheduled tasks 2014-03-31 15:48:19 +08:00
Damyon Wiese 5081de00d7 MDL-44748 Atto: Make it the default on upgrade. 2014-03-31 15:47:32 +08:00
Damyon Wiese c70de965aa MDL-44583 Assign: performance fixes 2014-03-31 12:53:02 +08:00
Marina Glancy 7e1288f847 Merge branch 'MDL-44822' of git://github.com/aolley/moodle 2014-03-31 12:46:21 +08:00
Frederic Massart 8e608fff83 MDL-44784 atto: Show settings link on plugins list 2014-03-31 12:44:16 +08:00
Frederic Massart 36beb828de MDL-44757 atto_equation: Use Moodle Docs URL for TeX doc 2014-03-31 12:07:34 +08:00
Frederic Massart 73afb59759 MDL-44747 editor_atto: Renamed subplugin setting class 2014-03-31 11:28:43 +08:00
Frederic Massart 356ec27f08 MDL-44747 editor_atto: Improved validation of toolbar config
This ensures that:
- Plugins are only used once,
- Group names are unique,
- Lines match: group = plugin[, plugin[, plugin ...]],
- There are some groups and plugins defined,
- The plugins used are installed.
2014-03-31 11:28:43 +08:00
Frederic Massart a3fa796118 MDL-44755 atto_editor: Remove hardcoded icons from settings
Previously, we hardcoded a list of icons for Atto plugins. This is not
a good idea as it would be very quickly outdated, or incomplete. Now,
we proceed as we often do: if the image pix/icon exists in the plugin
it is displayed, else nothing is displayed.
2014-03-31 11:26:53 +08:00
Frederic Massart 89331bc217 MDL-44764 atto_image: Reword the alt related labels 2014-03-31 11:25:46 +08:00
Frederic Massart 7887b47524 MDL-44767 atto_editor: Browser hangs when making a selection 2014-03-31 11:13:15 +08:00
Marina Glancy c531e2e632 Merge branch 'MDL-44804-master' of git://github.com/FMCorz/moodle 2014-03-31 11:03:31 +08:00
Jetha Chan f8c3af1321 MDL-44770 editor-atto: table context menu opens from button
Context menu now opens from button, rather than table cell. Modified wording of table strings.
2014-03-31 10:56:36 +08:00
Frederic Massart adb2473a2b MDL-44759 atto_undo: Buttons are only enabled when needed
Before the patch it was happening that the undo or redo buttons
were enabled even though clicking on them didn't produce anything.
This is partly because we were not storing the initial value, we
allowed for the stack to be empty, and we were using not clean
HTML.
2014-03-31 10:49:59 +08:00
Andrew Davis 13f432976a MDL-44756 editor_atto: changed a string 2014-03-31 10:25:39 +08:00
Jason Fowler 38528fa40a MDL-44806 Atto: Prevent Accessibility Checker dialog from being needlessly large 2014-03-31 09:55:29 +08:00
Eloy Lafuente (stronk7) 6576413e48 MDL-44862 postgres: tests to support socket & port
Both the database auth and enrol plugins use ADOdb
to perform connections. Socket and port are allowed
there if passed as "socket:port", so, when both are
configured in CFG, we pass them that way. Else
ADOdb defaults to standard port (5432).
2014-03-31 09:28:57 +08:00
Jean-Michel Vedrine f88d75e51a MDL-41063 Lesson qformat_default class is missing an error function 2014-03-30 09:03:38 +02:00
Petr Škoda 96255f472c MDL-44862 always add dbport to dbsocket in pg driver
This should hopefully resolve problems when using sockets connection
to pg servers running on non-standard ports.
2014-03-30 10:06:39 +08:00
Mark Nelson a82f3b4f2a MDL-44746 core_events: minor changes to the user_deleted event 2014-03-29 15:25:49 -07:00
Mark Nelson 601c998c64 MDL-44746 core_events: removed incorrect uses of snapshots 2014-03-29 15:25:49 -07:00
Petr Škoda ffe60f5bbd MDL-40910 add new core event user_graded
This event is triggered when teacher manually edits the grade in gradebook.
2014-03-29 15:34:11 +08:00
Tim Hunt 6a981b45c3 MDL-31262 fix quiz review capability check.
This change is logically the same as changing
    $this->has_capability('mod/quiz:viewreports')
to
    $this->has_capability('mod/quiz:viewreports') || $this->has_capability('mod/quiz:preview')
in the original code. However, I rewrote the logic so that we test the
most common and performance-critical case first - that of a student
lookign at their own attempt.
2014-03-28 18:37:21 +00:00
Tim Hunt 4dc30936f7 MDL-44811 quiz settings form title: change for consistency.
Thanks to Fred for poining out that most other activities use the work
Appearance for these sorts of settings.
2014-03-28 18:02:02 +00:00
Frederic Massart 23cead686e MDL-44808 atto_table: Remove accessibility information from dialogue 2014-03-28 17:27:57 +08:00
Marina Glancy dc8a848c7d MDL-41102 report_performance: correctly check state of automated backups
Thanks to Renaat Debleu for the patch
2014-03-28 16:39:55 +08:00
Marina Glancy 9dbcfd93e4 MDL-34012 chat: removing repetetive db query (performance) 2014-03-28 15:21:08 +08:00
Jason Fowler 87c0e4e06b MDL-44754 Atto: Explaining what group names are used for in toolbars 2014-03-28 14:48:38 +08:00
Marina Glancy d3adc16e48 MDL-33486 wiki: allow searching individual wikis 2014-03-28 14:16:13 +08:00
Petr Škoda 578645aadf MDL-44715 use parent::validate_data() consistently in all events
Includes some minor PHPDocs typo fixes.
2014-03-28 14:09:31 +08:00
Damyon Wiese e9ddbae9c0 MDL-44832 Assign: Convert grading menu to a moodle action-menu
This is required because YUI broke something.
2014-03-28 12:56:46 +08:00
Petr Škoda 25ab60ba8e MDL-44843 try to hack around strict locale names in OSX 2014-03-28 11:44:18 +08:00
Marina Glancy e9e9b197b3 MDL-35305 wiki: backup and restore files
Thanks to Tatsuya Shirai for the patch
2014-03-28 10:30:45 +08:00
Petr Škoda 0a5aa65b53 MDL-44733 add support for disabling of scheduled tasks 2014-03-28 10:23:37 +08:00
Oleg Sychev 92e83e2d0e MDL-24408 extra_question_fields: separate answer data creation code
Now any question using extra_question_fields can overload make_answer
(just as make_hint), instead of overloading whole initialise_question_answers.
2014-03-28 00:27:05 +03:00
Oleg Sychev f0c6c18189 MDL-24408 extra_answer_fields: save_question_answers function
question_type::save_question_answers function added, supporting
saving answers and extra answer fields. It can be called from
save_question_options function for the questions, using
question_answers table. Special functions created for overloading
so that every question could tune it to it's own form.

Shortanswer qtype save_question_options() converted as a proof of
concept and for testing purposes.
2014-03-28 00:27:03 +03:00
Oleg Sychev a68207b664 MDL-24408 extra_answer_fields: loading data to the question editing form
Now question_edit_form can load extra answer fields. If a question
type need to do something more complex for particular field, it
can overload added functions without duplicating other code.
2014-03-28 00:27:01 +03:00
Oleg Sychev 6276672854 MDL-24408 extra_answer_fields : get answers even if they miss extra data
Extra answer data may be optional, saving DB space - i.e. not every row in
question_answers will have respective row in extra answers table. Current
implementation of question_type::get_question_options() won't return such
answers at all. This commit fix that, changing join type for db query.

Also fixed coding style violation in the variable name in get_question_options.
2014-03-28 00:26:59 +03:00
sam marshall 07ba4070e4 MDL-44837 Behat: 'dialogue' selector only works for confirm dialogues
The dialogue selector in Behat (used only in one place) didn't work for
other types of standard Moodle notification dialogue.
2014-03-27 16:45:04 +00:00
Gilles-Philippe Leblanc 2d35b7d3d8 MDL-42816 auth_manual: Add password expiry for manual auth method 2014-03-27 10:45:01 -04:00
Frederic Massart 5ce4583a46 MDL-44834 editor_atto: Delegate change event to one editor 2014-03-27 19:48:37 +08:00
Marina Glancy ad32dda90c weekly release 2.7dev 2014-03-27 16:52:07 +08:00
Marina Glancy 6474439d55 NOBUG: Fixed file access permissions 2014-03-27 16:52:07 +08:00
Marina Glancy a13c2addee NOBUG: Fixed SVG browser compatibility 2014-03-27 16:52:06 +08:00
Marina Glancy a5c3dec8e8 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-03-27 16:52:05 +08:00
Frederic Massart 2f0a1236a7 MDL-44772 editor_atto: Initial height of editor matches textarea's
We set a min-height and a height in JavaScript to force the editor
to start at a certain height, but then it can be expanded thanks
to the CSS property resize. Though as IE does not support the resize
property we ignore we do not set a height so that the editor expands
as we type.
2014-03-27 15:17:49 +08:00
Marina Glancy 5ffb5fd4b3 MDL-43398 wiki: remove extra Choose... option from select 2014-03-27 14:58:33 +08:00
Jerome Mouneyrac 3ef5218b30 MDL-43398 Wiki: Choose... options cause SQL errors or seen inappropriate. 2014-03-27 14:58:28 +08:00
Damyon Wiese 46bb7a5a7f MDL-43883 Fix wiki behat tests to work with Atto 2014-03-27 13:02:31 +08:00
Damyon Wiese 786ced9925 MDL-43883 Behat: Fix deprecation and move custom matches to the editor field only. 2014-03-27 12:36:37 +08:00
Frederic Massart 125cf72361 MDL-44762 editor_atto: Closing dropdowns when item is clicked 2014-03-27 12:17:00 +08:00
Rajesh Taneja 3e469992a1 MDL-44084 behat: Fixed setting value for form editor 2014-03-27 12:12:09 +08:00
Petr Škoda c7e5683a7e MDL-44824 add missing subplugin type names 2014-03-27 11:59:26 +08:00
Petr Škoda aed0f5b78c MDL-44824 add missing subplugin type names 2014-03-27 11:46:36 +08:00
Petr Škoda f805fd1203 MDL-44824 add missing subplugin type names 2014-03-27 11:46:20 +08:00
Marina Glancy 92e2e85523 MDL-44720 modinfo: make it easier to use cm_info instead of get_coursemodule_from_id
by adding function cm_info::get_course_module_record()
2014-03-27 11:24:00 +08:00
Jason Fowler 7105ac89bd MDL-43284 Theme: Clean theme errors with padding in Question Bank fixed 2014-03-27 10:33:45 +08:00
AMOS bot 38164faf70 Automatically generated installer lang files 2014-03-27 00:48:26 +00:00
Adam Olley 0f204015a6 MDL-44701 gradereport_grader: Display warning on navigation if unsaved grades are present 2014-03-27 11:10:25 +10:30
Adam Olley 9f7674bddc MDL-44822 assignfeedback_editpdf: Stop test generation in is_enabled()
This change also moves one of the checks in test_gs_path. If
generateimage is false, there's no need to stat for the fixture file.
2014-03-27 10:16:53 +10:30
Matt Switlik 0a4fe80bff MDL-44507 filemanager: indicator for clicking Download All in filemanager 2014-03-26 14:34:36 -04:00
Andrew Nicols 0b98f8e8e0 MDL-32729 Question: Convert remaining Questionbank code to YUI3 2014-03-27 00:28:08 +08:00
Andrew Robert Nicols ac32c27e24 MDL-32729 Question: Switch to the YUI3 chooser dialogue
This uses the core chooserdialogue and associated style changes to make an
easily generated chooser with question descriptions.
2014-03-27 00:28:08 +08:00
Frederic Massart 6cb48e0424 MDL-44804 editor_atto: JS error when filepicker is disabled 2014-03-26 17:20:31 +08:00
Dan Poltawski 3c87c0880e Merge branch 'MDL-43784-master-fixup' of git://github.com/FMCorz/moodle 2014-03-26 16:25:39 +08:00
Frederic Massart 969b30022e MDL-43784 behat: Removed usage of Afterburner in a feature 2014-03-26 16:18:13 +08:00
Rajesh Taneja b033c16390 MDL-44084 behat: Fixed behat set_value for atto editor 2014-03-26 15:56:21 +08:00
Petr Škoda 9c093a7bf8 MDL-44316 move the tag context upgrade to the end and fix issues 2014-03-26 15:36:50 +08:00
Jetha Chan 0326b83149 MDL-42588 mod_scorm: option for displaying activity name
Added option to display or hide activity name on SCORM player.
2014-03-26 15:27:50 +08:00
Rajesh Taneja 3233f32dfb MDL-44557 behat: Resize window only possible with javascript 2014-03-26 14:45:30 +08:00
Marina Glancy f2bf88130d Merge branch 'wip-mdl-44557' of git://github.com/rajeshtaneja/moodle 2014-03-26 14:10:53 +08:00
Rajesh Taneja 3b0b5e570d MDL-44557 behat: Allow nehat to resize window
Run all behat with medium (1024x768) screen size to
avoid failures with small screen size. Also, added
feature to let scenario chnage screen size if need be.
2014-03-26 13:59:14 +08:00
Mark Nelson 0a341617e4 MDL-44316 upgrade: fix to ensure upgraded and new installations have matching 'tag_instance' tables 2014-03-25 22:17:30 -07:00
Sam Hemelryk e1190da615 Merge branch 'w13_MDL-44510_m27_phpunit4' of https://github.com/skodak/moodle 2014-03-26 16:35:47 +13:00
Petr Škoda 08ec831ff8 MDL-44510 fix class guessing in phpunit 4 2014-03-26 11:32:33 +08:00
Frederic Massart e80981bf1e MDL-43784 tests: Commenting tests relying on deprecated themes 2014-03-26 11:09:48 +08:00
Marina Glancy a93c826698 Merge branch 'MDL-44084-master' of git://github.com/damyon/moodle 2014-03-26 10:02:06 +08:00
Marina Glancy 205c6db50d MDL-44084 atto: correct standard plugins list and namespace bug fix 2014-03-26 10:01:49 +08:00
Damyon Wiese b725a0eb19 MDL-43883 Atto behat: Make the set_field js handle atto or simple textarea 2014-03-26 10:01:49 +08:00
Damyon Wiese f81d318332 MDL-43883 Atto Behat: Remove deprecated step 2014-03-26 10:01:49 +08:00
Damyon Wiese 5f3ea8cf66 MDL-43883 Atto behat: Rubrics are expecting magic tweaking in text from tinymce. 2014-03-26 10:01:49 +08:00
Damyon Wiese 9f07f05a48 MDL-43883 Behat: Make Atto the default text editor and adjust behat to use it. 2014-03-26 10:01:49 +08:00
Damyon Wiese da00661d1f MDL-44487 Atto: Restrict size of image preview in popup.
Instead of only restricting the width, we set a max-width and max-height in css.
We also make the dialog a bit wider so it looks better in clean.
2014-03-26 10:01:49 +08:00
Andrew Nicols 6246779510 MDL-44164 atto: Refactor the world 2014-03-26 10:01:48 +08:00
Jerome Mouneyrac 8951d61411 MDL-44128 Atto: fix keyboard navigation for the dropdowns 2014-03-26 10:01:48 +08:00
Damyon Wiese d321f68b3d MDL-44219 Atto: Convert selection logic to use Rangy JS Library
This removes alot of complex, hard to test, hard to debug code from the editor so
we can focus on the things we want to spend time on. Rangy seems a good choice for
browser support, stability and features.
2014-03-26 10:01:48 +08:00
Sam Hemelryk 67d3fe45bb MDL-44219 editor_atto: reinvent the event wheel for the atto editor 2014-03-26 10:01:48 +08:00
Damyon Wiese 86a83e3a9f MDL-44063 Atto: Set the default block element to p (if the browser supports it)
Also insert an empty paragraph by default and remove it on save.
2014-03-26 10:01:46 +08:00
Jason Fowler b5a83da1cf MDL-44215 Atto: Setting toolbar to break at predetermined point 2014-03-26 10:01:46 +08:00
Andrew Nicols 9ee8a359c9 MDL-44225 atto_equation: Set focus after adding equation from toolbar 2014-03-26 10:01:45 +08:00
Andrew Davis a279604330 MDL-44226 editor_atto: refactored the accessibility checker to make it usable by users who don't know html 2014-03-26 10:01:45 +08:00
Andrew Nicols 117f9f04dc MDL-44475 editor_atto: Stop using deprecating functionality 2014-03-26 10:01:45 +08:00
Sam Hemelryk c9292b18a3 MDL-44220 atto_image: added image alignment control 2014-03-26 10:01:44 +08:00
Andrew Davis bed1abbc89 MDL-43864 editor_atto: added a prevent autolink button to atto 2014-03-26 10:01:44 +08:00
Jason Fowler 18ce3fe4ee MDL-44223 Atto: Setting images to display a place holder when src is broken 2014-03-26 10:01:44 +08:00
Sam Hemelryk bdfbdeeb64 MDL-44040 editor: implemented shortcuts for bold, italic, underline and undo 2014-03-26 10:01:44 +08:00
Andrew Davis f331980308 MDL-44218 editor_atto: prevent atto getting massive and allow the user to resize it 2014-03-26 10:01:44 +08:00
Sam Hemelryk a30a40cbf4 MDL-44221 editor_atto: convert plugins to use insert_html_at_focus_point 2014-03-26 10:01:44 +08:00
Sam Hemelryk 2faf4c4584 MDL-44221 editor_atto: fixed bug creating table in IE <= 10
This involved introducing a insert_html_at_focus_point method for
the editor and using that instead of insertHTML
2014-03-26 10:01:44 +08:00
Sam Hemelryk 9d535d04c2 MDL-44228 editor_atto: added missing outdent icon 2014-03-26 10:01:44 +08:00
Jerome Mouneyrac 6f0a16002a MDL-44228 add Atto sub-plugins admin table 2014-03-26 10:01:43 +08:00
Jerome Mouneyrac 7ca3ad91a0 MDL-44227 Atto: the screenreader helper now displays some texts when alt or title don\'t exist 2014-03-26 10:01:43 +08:00
Jason Fowler e7109b5949 MDL-44216 Atto: Reversing the indent outdent buttons 2014-03-26 10:01:43 +08:00
Damyon Wiese 3ee53a425f MDL-44092 Atto: Add selectionchanged event and listeners in the buttons.
This means the buttons can indicate the state of the text under the cursor.
2014-03-26 10:01:43 +08:00
Jerome Mouneyrac 99061b7ad1 MDL-43863 Add Undo/Redo plugins to Atto 2014-03-26 10:01:43 +08:00
Frederic Massart f6bef145bd MDL-44125 atto_align: Style with CSS whenever possible 2014-03-26 10:01:43 +08:00
Frederic Massart acc94f70c8 MDL-44125 atto_align: New plugin for text alignment 2014-03-26 10:01:43 +08:00
Damyon Wiese 8bf5ad67ea MDL-43855 Atto: Add an equation editor
This equation editor relies on whatever the currently configured filter is to do the rendering.
If there is no filter that handles latex ($$ blah $$) - this plugin will not show up.

This will not work with the solutions on the forums of adding MathJax in the header of the page,
but it will work with a real mathjax filter written for Moodle (work in progress). It works with
the existing tex filter.
2014-03-26 10:01:42 +08:00
Damyon Wiese 05843fd3ee MDL-44067 Atto: Improve table editing controls.
Remove flaky inline menu icons - instead clicking on the table button, when
you are in a table shows the context menu for the current cell.

I removed all the special code for 'atto_control' - because it did not work very well. Having non-contenteditable
nodes inside a contenteditable region seems in expose bugs in different browsers.
2014-03-26 10:01:42 +08:00
Damyon Wiese 5ec54dd125 MDL-44127 Atto: Improve Atto API to allow plugins with multiple buttons/menus 2014-03-26 10:01:42 +08:00
Damyon Wiese 8095505e3c MDL-44126 Atto: List of minor fixes from review.
toolbar order (base it on tinymce)
change plain to paragraph
default for collapse plugin should be 5 groups
fix alignment of table dialogue form
insert newlines in html generated by table plugin
rename accessibility helper to screenreader helper
remove accessibility hint for images and media files
fix some broken plugin names
style table captions
remove verbose accessibility hints
2014-03-26 10:01:42 +08:00
Damyon Wiese 961c7b1912 MDL-44032: Atto - move bootstrap changes into overrides file. 2014-03-26 10:01:42 +08:00
Marina Glancy 09bcedb39e Merge branch 'MDL-44596-master' of git://github.com/ankitagarwal/moodle 2014-03-26 10:01:06 +08:00
Jerome Mouneyrac fe0d247796 MDL-43869 New Atto plugin switch language LTR/RTL 2014-03-26 10:00:05 +08:00
Frederic Massart c7ef8e455e MDL-43870 atto_title: Remove quoted style 2014-03-26 10:00:05 +08:00
Frederic Massart 5a06d5d71d MDL-43870 atto_indent: Removing browser styling after execCommand 2014-03-26 10:00:05 +08:00
Damyon Wiese b03d59821a MDL-43934 Atto: Rename shifter meta files to the correct name.
This could have caused yui to fetch extra files because the dependencies might not have been loaded.
2014-03-26 10:00:04 +08:00
Damyon Wiese fcb5b5c473 MDL-43854 Atto: Add collapse toolbar plugin 2014-03-26 10:00:04 +08:00
Frederic Massart 4c37c1f416 MDL-43954 editor_atto: Fix styling for IE8 in clean and standard 2014-03-26 10:00:04 +08:00
Rossiani Wijaya 39e2a67a53 MDL-44032 Atto editor: add subscript and superscript plugins 2014-03-26 10:00:04 +08:00
Damyon Wiese 26f8822d5c MDL-43867 Atto: Accessibility improvements.
1/ Set the aria-labelledby attribute on the contenteditable div (find the label from
original textarea)

2/ Store/restore the selection for the contenteditable div when it is focused. This allows
you to select some text, then go to the toolbar and click a button, and the selection
will be restored before the button effect is applied.

3/ Add an accessibility helper plugin.

From testing in all screenreaders, I found that all of their support for contenteditable is not great.
They treat it like a textbox - which means you can type and edit text, but it tells you nothing about
the styles, links or images in the editor. So I added a button to the toolbar, that is only accessible
when navigating via keyboard, that opens an accesssibility helper dialogue. The dialogue shows the list
of current styles, a global list of all links, and a global list of all images. Choosing an image or link
from here, will focus on the editable region, and select the link/image.

4/ Add an accessibility checker plugin to Atto.

Checks for images with no alt, images and links with filenames as alternate text/link text, and contrast ratios
less than WCAG 2.0 AA.
2014-03-26 09:59:37 +08:00
Frederic Massart dad09216bc MDL-43953 editor_atto: Trigger form change when editing content 2014-03-26 09:59:37 +08:00
Frederic Massart 42e7766789 MDL-43968 editor_atto: Copying latest TinyMCE icons to core pix/e 2014-03-26 09:59:36 +08:00
Frederic Massart 60a051d471 MDL-44064 editor_atto: Do not die when a plugin is missing 2014-03-26 09:59:36 +08:00
Damyon Wiese 34f5867a11 MDL-43990 Atto: Add a function for changing the formatting of the selected block. 2014-03-26 09:59:36 +08:00
Damyon Wiese 0fa78b80b4 MDL-43861 Atto: Fix for toolbar menu repaint bug in chrome. 2014-03-26 09:59:36 +08:00
Rossiani Wijaya 534cf7b730 MDL-43861: Atto Plugins: create new plugin for font and background colors 2014-03-26 09:59:36 +08:00
Damyon Wiese 0012a94601 MDL-44003 Atto: Set type="button" on atto toolbar buttons.
To prevent them accidentally becoming the default submit buttons for the form.
2014-03-26 09:59:36 +08:00
Frederic Massart d19cf39edb MDL-44003 editor_atto: Identify the submit buttons in plugins 2014-03-26 09:59:36 +08:00
Frederic Massart 6e3220c053 MDL-43862 atto_managefiles: New plugin to manage files
AMOS BEGIN
 CPY [hasmissingfiles,tinymce_managefiles],[hasmissingfiles,atto_managefiles]
 CPY [deleteselected,tinymce_managefiles],[deleteselected,atto_managefiles]
 CPY [unusedfilesdesc,tinymce_managefiles],[unusedfilesdesc,atto_managefiles]
 CPY [unusedfilesheader,tinymce_managefiles],[unusedfilesheader,atto_managefiles]
AMOS END
2014-03-26 09:59:35 +08:00
Frederic Massart 224a9a51ad MDL-43859 atto_smiley: New plugin to insert smileys 2014-03-26 09:59:35 +08:00
Damyon Wiese 0ec6a46ad1 MDL-43869 Atto: Fix broken repositories.
The previous change on this issue accidentally fixed a selector,
so the repository API was recieving a valid node instead of null.
This means that it calls it's undocumented and dodgy callbacks on the node,
which are really calls directly to the TinyMCE API (just well buried).

But - by not setting the editor_target property, the api will not do
the secret handshakes.
2014-03-26 09:59:35 +08:00
Frederic Massart c7829b26e1 MDL-43858 atto_charmap: New plugin to insert special characters 2014-03-26 09:59:35 +08:00
Damyon Wiese 48bdf86f31 MDL-43869 Atto: Add functions to get the nodes from the elementids.
If plugins try and do this themselves with Y.one, they will fall foul of the
qtype essay page bug which uses : in the id for form elements.

This is an alternative solution, to escaping the ids, which seemed unreliable for older
version of ie.
2014-03-26 09:59:35 +08:00
Frederic Massart 45698f7714 MDL-43950 editor_atto: Add arguments to plugin callback params_for_js 2014-03-26 09:59:35 +08:00
Damyon Wiese d088a835d1 MDL-43857: Auto clean tag bloat from word/openoffice/googledocs
The cleanup rules are pulled from both testing of live docs, and the
jquery clean plugin. I tested with googledocs, libreoffice, word 2003
and word 2013.
2014-03-26 09:59:35 +08:00
Damyon Wiese b269f635f6 MDL-43869 Atto: id escaping so Atto works with when there is : in the id.
(Quiz)
Also includes fixes for Atto when the repositories should not be displayed.
2014-03-26 09:59:34 +08:00
Damyon Wiese 55c0403c6c MDL-43853 Atto: Performance. Turbocharge the loader.
Rewrite the atto plugin loader so that:

A) We have a real settings.php page and can edit the toolbar.
B) All plugins are loaded at the same time (not serially)
C) All plugins share the YUI sandbox (more performance boost).

I had to change the loading API for this - but there are not non-core uses yet,
this is the best time to break it.
2014-03-26 09:59:34 +08:00
Damyon Wiese f1e6953b36 MDL-43842 Atto: Remove licence and README.txt 2014-03-26 09:59:34 +08:00
Damyon Wiese 3df7cfc59a MDL-43842 Atto: Move pix-icons into core pix folder. 2014-03-26 09:59:34 +08:00
Damyon Wiese adca7326d8 MDL-43842: Import atto back into core 2014-03-26 09:59:34 +08:00
Ankit Agarwal 16e59c6af8 MDL-44596 logging: Refecator code to use component_callback() and get_plugin_list_with_function() 2014-03-26 09:50:41 +08:00
Ankit Agarwal 96c8d59dea MDL-44596 logging: Add some tests to log stores to test the new support methods 2014-03-26 09:12:43 +08:00
Ankit Agarwal 8ead8802fb MDL-44596 logging: Add callbacks to all reports that support log stores 2014-03-26 09:12:43 +08:00
Ankit Agarwal f0a0f3c2bd MDL-44596 logging: Improve management interfaces for reports and stores
This patch methods to the manager that uses callbacks from reports to determine how reports and stores are compatible with each other. This information is then displayed in the management pages.
2014-03-26 09:12:42 +08:00
Sam Hemelryk 46c627cf05 Merge branch 'MDL-44690-master' of git://github.com/jamiepratt/moodle 2014-03-26 13:25:51 +13:00
Tim Lock fdd3ebc545 MDL-44575: Prevent cron from sending feedback notifications when assignments are hidden in the gradebook 2014-03-26 09:47:01 +10:30
Sam Hemelryk bfb6e97eae Merge branch 'MDL-43784-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/classes/plugin_manager.php
	lib/db/upgrade.php
2014-03-26 11:33:47 +13:00
Sam Hemelryk dcb43ad7ff Merge branch 'MDL-44364-master-more' of git://github.com/FMCorz/moodle 2014-03-26 11:18:07 +13:00
Dan Poltawski 1696ee8050 Merge branch 'wip-MDL-44686-master' of git://github.com/marinaglancy/moodle 2014-03-26 05:15:50 +08:00
Eloy Lafuente (stronk7) eb4606aeb0 Merge branch 'wip-MDL-41285-master' of git://github.com/marinaglancy/moodle 2014-03-25 21:53:38 +01:00
Eloy Lafuente (stronk7) 767a5a08d9 Merge branch 'MDL-37418_master' of git://github.com/ds125v/moodle 2014-03-25 21:37:26 +01:00
Eloy Lafuente (stronk7) c56e0192ef Merge branch 'w13_MDL-44510_m27_phpunit4' of https://github.com/skodak/moodle 2014-03-25 21:03:44 +01:00
Marina Glancy 66113ef0ef Merge branch 'wip-mdl-43681' of git://github.com/rajeshtaneja/moodle 2014-03-25 18:08:40 +08:00
Marina Glancy daf7b64ef7 Merge branch 'w13_MDL-44107_m27_canview' of git://github.com/skodak/moodle 2014-03-25 17:10:27 +08:00
Andrew Nicols 1f777e5c6c MDL-41987 Javascript: Tidy up YUI documentation 2014-03-25 17:01:37 +08:00
Rajesh Taneja c865dacccc MDL-43681 report_log: check related user before displaying
Related user id can be noreply user which is not in
database.
2014-03-25 16:50:13 +08:00
Marina Glancy 0029497ca5 Merge branch 'w13_MDL-44732_m27_clitask' of git://github.com/skodak/moodle 2014-03-25 16:49:14 +08:00
Marina Glancy da1a0bc3a9 Merge branch 'MDL-44597-master' of git://github.com/andrewnicols/moodle 2014-03-25 16:49:01 +08:00
Marina Glancy e34003004e MDL-42588 scorm: revert accidental change of variable module back to plugin 2014-03-25 16:43:24 +08:00
Jetha Chan 74d2a9df6d MDL-42588 mod_scorm: display activity name
Added option to display or hide activity name on SCORM player. Added default admin setting and amended generator accordingly.
2014-03-25 16:20:52 +08:00
Marina Glancy d43556a63f Merge branch 'mdl44573-master' of git://github.com/tlock/moodle 2014-03-25 16:20:37 +08:00
Marina Glancy c5ff2a76e1 Merge branch 'MDL-42575-master' of git://github.com/jethac/moodle 2014-03-25 16:19:33 +08:00
Marina Glancy e9e3431ad9 Merge branch 'MDL-40915-master' of git://github.com/ankitagarwal/moodle 2014-03-25 16:18:28 +08:00
Jetha Chan 197407cabe MDL-42588 mod_scorm: display activity name
Added option to display or hide activity name on SCORM player.
2014-03-25 16:17:00 +08:00
James Pratt 49dda8fe6e MDL-44690 core_questions : amending unit tests
to use more human friendly format for submitted question type data.
2014-03-25 14:37:51 +07:00
Petr Škoda 9e00d46b9c MDL-44510 add extra PEAR PHPUnit info to upgrade.txt 2014-03-25 15:22:22 +08:00
Petr Škoda 15f009e1a2 MDL-44107 add debugging to deprecated event::can_view() 2014-03-25 14:53:17 +08:00
Marina Glancy 2bcb6dbeb0 Merge branch 'MDL-44665' of git://github.com/timhunt/moodle 2014-03-25 14:28:55 +08:00
Marina Glancy 3f4a4daa03 Merge branch 'MDL-44704_master' of git://github.com/markn86/moodle 2014-03-25 14:28:10 +08:00
Marina Glancy 390f3c6ade Merge branch 'MDL-44682' of git://github.com/timhunt/moodle 2014-03-25 14:27:42 +08:00
Marina Glancy dd043de942 Merge branch 'w13_MDL-44106_m27_requestorig' of git://github.com/skodak/moodle 2014-03-25 14:15:19 +08:00
Marina Glancy 19b4e34941 Merge branch 'w13_MDL-41284_m27_stats' of git://github.com/skodak/moodle 2014-03-25 14:06:41 +08:00
Marina Glancy f316de8a7f MDL-44316 core_tag: correction to the default value 2014-03-25 14:05:06 +08:00
Marina Glancy 81e50a3661 Merge branch 'MDL-44316_master' of git://github.com/markn86/moodle 2014-03-25 14:03:06 +08:00
Damyon Wiese 51e73837b6 MDL-41569: CSS Allow flexible table headers to wrap. 2014-03-25 13:51:26 +08:00
Damyon Wiese 4309255896 MDL-44745 Assign: Fix typo in assign->fullname function
This is a new function on master only.
2014-03-25 12:49:36 +08:00
Damyon Wiese d63e7470a9 MDL-44745 Assign: Make the grading table use the fullname function from the assign class.
This will take blind marking into account when displaying student names.
2014-03-25 12:45:36 +08:00
Frederic Massart 6538153bbd MDL-44719 libraries: Invalid call to ajaxenabled()
A bad conflict resolution in 7eaca5a810
wiped this function from the deprecatedlib file. This patch
restores it.

But as we should not call any deprecated function in core we
also remove the its usage.
2014-03-25 11:44:08 +08:00
Sam Hemelryk f94bde7250 Merge branch 'w13_MDL-44368_m27_actfilter' of https://github.com/skodak/moodle 2014-03-25 16:23:10 +13:00
Sam Hemelryk 11862768ce Merge branch 'wip-MDL-40059-master' of git://github.com/marinaglancy/moodle 2014-03-25 16:11:10 +13:00
Frederic Massart 94d3dbfe2b MDL-44739 theme_more: Set default theme settings 2014-03-25 10:50:44 +08:00
Sam Hemelryk 027d10d67f Merge branch 'MDL-44075-master-v3' of git://github.com/jamiepratt/moodle 2014-03-25 15:06:44 +13:00
Sam Hemelryk a4604e1e97 MDL-43839 unit test fixes 2014-03-25 15:06:32 +13:00
Sam Hemelryk 8134eb8573 Merge branch 'MDL-44535-master-v2' of https://github.com/jamiepratt/moodle 2014-03-25 12:51:14 +13:00
Damyon Wiese b5196badcd MDL-43960 assign: Add missing include
There was a report of mod_assign_save_grade webservice failing because of this.
I couldn't reproduce it, but grepping the code found one place where this include
should be added.
2014-03-25 12:38:09 +13:00
Sam Hemelryk a468750723 Merge branch 'w13_MDL-44511_m27_jquery' of https://github.com/skodak/moodle 2014-03-25 12:26:53 +13:00
Sam Hemelryk fe24226063 Merge branch 'MDL-44357-master-noplugin' of git://github.com/FMCorz/moodle 2014-03-25 08:56:49 +13:00
Andrew Nicols 6d402310a4 MDL-34353 Javascript: Allow chooser dialogues to fall back to non-JS version
In order for a chooser dialogue to be able to fall back to it's non-JS
equivalent, we need to use a different set of styles.

This change makes the chooser dialogue preparation function add a new class
to the body which is utilised in the CSS to accomplish this. When the class
is not present, the dialogue content is displayed inline.
2014-03-25 00:51:09 +08:00
Andrew Nicols 6bf267776c MDL-28261 Javascript: Check for a working connection in SCORM activities 2014-03-24 23:48:32 +08:00
Marina Glancy d11302b646 Merge branch 'wip-mdl-43681' of git://github.com/rajeshtaneja/moodle 2014-03-24 17:27:41 +08:00
Rajesh Taneja 877d5a3218 MDL-43681 logging: Invalid events are not added to get_events_select
If event is not restored then don't add it to returned list of
events in get_events_select
2014-03-24 17:26:42 +08:00
Rajesh Taneja 9c5d3f9553 MDl-43681 report_log: Added Behat test for report log 2014-03-24 17:26:42 +08:00
Rajesh Taneja ac8976c8b5 MDL-43681 report_log: Modified log report to use log readers 2014-03-24 17:24:12 +08:00
Marina Glancy 66cb56ade6 Merge branch 'w13_MDL-44639_m27_taskdocs' of git://github.com/skodak/moodle 2014-03-24 17:02:10 +08:00
Dan Poltawski 32145fb028 MDL-44590 behat: Add test for course category idnumber duplication 2014-03-24 16:43:42 +08:00
Dan Poltawski bd3c9587b7 MDL-44590 category: correct get_string component 2014-03-24 16:43:42 +08:00
Frederic Massart c4164bd6e1 MDL-44670 themes: Updated screenshots of Clean and More 2014-03-24 16:37:55 +08:00
Marina Glancy 0b536b368c Merge branch 'w13_MDL-44661_m27_anon' of git://github.com/skodak/moodle 2014-03-24 15:38:58 +08:00
Andrew Nicols 5d504395f7 MDL-44597 lessphp: Add sourceMap support in theme designer mode 2014-03-24 15:19:49 +08:00
Frederic Massart 53bbd369c0 MDL-44364 theme_bootstrapbase: Clean up calendar variables
There are a few reasons why I am cleaning up the calendar.less file.

1/ The variables were too specific, and unlikely to be overridden. If
   you are going to change the colour of the background, surely you will
   change the border to match the background. And if you want to do
   more advanced things, you will override the selectors anyway.

2/ If you wanted to re-use the color of the event, but not as a
   background or border, you would have to use a variable that
   was specific to the background or the border, a generic
   variable for the event colour seems required.

3/ The colour @redDarker should not be defined there, and its purpose
   is so limited that I do not think we need it at all. Also,
   this variable is unlikely to be re-used ever, better not
   introducing it.

4/ I removed the calendarHeadingsColor because those headings should
   really match the rest of the headings throughout the site. I
   removed it from the overlay, but used the standard Bootstrap
   one for the one in the page.

There are still a few things that would need improvement, like the
usage of @white for the background of the event, which will not really
look good on a dark background.
2014-03-24 15:16:11 +08:00
Frederic Massart e514c72229 MDL-44364 theme_bootstrapbase: Improve variable usage
The rules or selectors removed appeared either not to be used any more
or were enforcing a rule that was not adequate and should not be
replaced by a variable. Basically, the focus was to simplify our
usage of the colours and variables to use LESS more efficiently.
2014-03-24 15:16:11 +08:00
Frederic Massart 7c923cafe2 MDL-44364 theme_more: More settings to style the theme 2014-03-24 15:16:11 +08:00
Frederic Massart 379924a6a5 MDL-44357 libraries: Remove import_file method from core_lessc
This is not used any more, and would not work if the file to be
imported is located in a theme when $CFG->themedir is not set
to the default value.
2014-03-24 15:15:04 +08:00
Frederic Massart 833511a005 MDL-44357 theme_more: New customizable theme
AMOS BEGIN
 CPY [choosereadme,theme_clean],[choosereadme,theme_more]
 CPY [configtitle,theme_clean],[configtitle,theme_more]
 CPY [customcss,theme_clean],[customcss,theme_more]
 CPY [customcssdesc,theme_clean],[customcssdesc,theme_more]
 CPY [footnote,theme_clean],[footnote,theme_more]
 CPY [footnotedesc,theme_clean],[footnotedesc,theme_more]
 CPY [invert,theme_clean],[invert,theme_more]
 CPY [invertdesc,theme_clean],[invertdesc,theme_more]
 CPY [logo,theme_clean],[logo,theme_more]
 CPY [logodesc,theme_clean],[logodesc,theme_more]
 CPY [pluginname,theme_clean],[pluginname,theme_more]
 CPY [region-side-post,theme_clean],[region-side-post,theme_more]
 CPY [region-side-pre,theme_clean],[region-side-pre,theme_more]
AMOS END
2014-03-24 15:15:04 +08:00
Frederic Massart 08823e5f03 MDL-44357 theme: Do not include plugins LESS or CSS when compiling 2014-03-24 15:15:04 +08:00
Frederic Massart 29d73d2751 MDL-44357 theme: Chunk content in styles_debug for IE 2014-03-24 15:15:03 +08:00
Frederic Massart 40c0903edf MDL-44357 gradereport_grader: Fix wrong style causing LESS to fail 2014-03-24 15:15:03 +08:00
Frederic Massart 03525f7e2b MDL-44357 theme_bootstrapbase: Incorrect order in rule 2014-03-24 15:15:03 +08:00
Frederic Massart d433cf37cd MDL-44357 theme: Allow core to compile LESS in PHP 2014-03-24 15:15:03 +08:00
Petr Škoda 454c7b5d39 MDL-44661 fix legacy log reader to ignore new anonymous field 2014-03-24 14:57:21 +08:00
Sam Hemelryk 7911effdcb MDL-43839 fixed clean as default phpunit bugs 2014-03-24 17:10:54 +13:00
Petr Škoda 7a82dcec41 MDL-44732 add cli script for execution of scheduled tasks 2014-03-24 09:46:51 +08:00
Sam Hemelryk e911dc86f4 MDL-43839 fixed whitepace issues 2014-03-24 10:30:42 +13:00
Sam Hemelryk e23dcd5b94 Merge branch 'MDL-43839_clean_default3' of https://github.com/andyjdavis/moodle 2014-03-24 10:26:20 +13:00
Jonathan Champ 643e341cc0 MDL-29572 Grade Import: Avoid creating invalid temporary rows; Provide feedback on error 2014-03-22 21:41:20 -04:00
Mark Nelson cc033d48b5 MDL-44316 core_tag: changed the API to accept a contextid and component 2014-03-22 13:50:08 -07:00
Mark Nelson 8dfc4d9c58 MDL-44316 core: updated the 'tag_instance' table to store the component, contextid and timecreated 2014-03-22 13:50:07 -07:00
Mark Nelson e0c8619823 MDL-44316 test: added function to generate a tag 2014-03-22 13:47:24 -07:00
Tim Hunt f38965db42 MDL-44665 declare all quiz page types in the blocks UI. 2014-03-21 14:40:57 +00:00
Ankit Agarwal 5ac3b20dc5 MDL-40915 events: Add unit tests for the newly created events 2014-03-21 16:33:19 +08:00
Ankit Agarwal 9cb5d05f2f MDL-40915 events: Replace add_to_log with events in calendar 2014-03-21 16:33:19 +08:00
Ankit Agarwal 451c0e9e6a MDL-40915 events: Add events for calendar actions
Added a calendar_event_created
 Added a calendar_event_updated
 Added a calendar_event_deleted
2014-03-21 16:33:19 +08:00
Marina Glancy a2c271ddcb MDL-44686 behat: limit failure filename length to 255 chars 2014-03-21 15:50:11 +08:00
Marina Glancy 2d4d742f71 MDL-40059 glossary: unittests for events 2014-03-21 15:48:51 +08:00
Marina Glancy 7c92f9be80 MDL-40059 glossary: event for entry viewed 2014-03-21 15:48:51 +08:00
Marina Glancy 1ce054a38b MDL-40059 glossary: events for entry approval/disapproval 2014-03-21 15:48:51 +08:00
Marina Glancy 4d7c298f51 MDL-40059 glossary: events for add/edit/delete glossary category 2014-03-21 15:48:51 +08:00
Marina Glancy 99912e3044 MDL-40059 glossary: events for add/delete/update entries 2014-03-21 15:48:50 +08:00
Marina Glancy f527c5d040 MDL-40059 glossary: event course_module_instance_list_viewed 2014-03-21 15:48:50 +08:00
Marina Glancy 3dbe89ac62 MDL-40059 glossary: event course_module_viewed 2014-03-21 15:48:50 +08:00
Marina Glancy 177052dc55 MDL-41285 blocks: capabilities to view structural changes in recent activities 2014-03-21 15:46:12 +08:00
Marina Glancy f5b4cdf91d MDL-41285 blocks: recent activity does not use log table
instead it defines it's own table and stores the necessary events
2014-03-21 15:46:07 +08:00
Marina Glancy f7c1b465f9 MDL-41285 block_recent_activity: behat test for structural changes 2014-03-21 15:42:44 +08:00
Jetha Chan 846ffe600c MDL-42575 mod_page: revert heading option display
Reverted heading option display for page resource; made sure to not re-introduce class issues.
2014-03-21 15:42:34 +08:00
James Pratt 58794ac948 MDL-44690 core_questions : download of question steps data as csv file 2014-03-21 12:32:00 +07:00
Frederic Massart 7a2dabcbaa MDL-43784 theme: Removing all the old themes 2014-03-21 12:24:44 +08:00
Mark Nelson 53e4c89d8e MDL-44704 core_message: always use system context when triggering a message_sent event 2014-03-20 20:35:56 -07:00
Tim Hunt c35cf42e55 MDL-44682 fix bug in decompose_update_into_safe_changes 2014-03-20 15:10:38 +00:00
David Scotson e06005b604 MDL-37148 pix: make default user images smaller 2014-03-20 10:25:33 +00:00
Petr Škoda bc29320285 MDL-44661 implement event->anonymous property 2014-03-20 17:33:35 +08:00
Petr Škoda 5a1e6e355f MDL-44639 fix phpdocs in scheduled tasks tool 2014-03-20 17:32:56 +08:00
Petr Škoda b7f7c3bcf2 MDL-44639 fix some phpdocs issues in tasks classes
There is also one extra () to improve code readability.
2014-03-20 17:32:56 +08:00
Petr Škoda fa71f84fc8 MDL-44511 import latest jQuery and add tests 2014-03-20 17:31:34 +08:00
Petr Škoda 54f1423ecc MDL-44510 support PHPUnit 4.x
The old style PEAR installation is incompatible with PHPUnit 4,
nobody was supposed to use PEAR any more - composer
is the only supported library installation method now.
2014-03-20 17:30:42 +08:00
Petr Škoda f381e6cdcc MDL-44368 use $cm->uservisible in activity names filter
This allows proper linking of groupmembersonly and conditional activities.
2014-03-20 17:29:59 +08:00
Petr Škoda d58a8932b8 MDL-44107 deprecate can_view() in feedback events, to be replaced by is_anonymous()
See MDL-44661 for more info.
2014-03-20 17:29:19 +08:00
Petr Škoda bc22fa9310 MDL-44107 deprecated event_base::can_view()
The problem is that it would be too expensive and difficult
to implement reliable access control in each event.
2014-03-20 17:29:19 +08:00
Petr Škoda 965a3c6621 MDL-44106 add origin info to $PAGE object and use it in logs 2014-03-20 17:28:32 +08:00
Petr Škoda e5d48aad44 MDL-44106 add WS_SERVER constant to all web service calls
This will help us hack around some nasty webservice problems,
such as require_login() and it will be used to set proper 'ws' origin
in logged events.
2014-03-20 17:28:01 +08:00
Petr Škoda 92927fba72 MDL-41284 hack stats to use new log readers if available 2014-03-20 17:26:09 +08:00
Petr Škoda e6f0b5f135 MDL-41284 stop using log table for login weekly and monthly stats
We already have stats for each day, the SUM is what we want there...
2014-03-20 17:26:09 +08:00
Marina Glancy 9b8555fbea weekly release 2.7dev 2014-03-20 16:00:08 +08:00
Marina Glancy 5cff835bd6 Merge branch 'MDL-42892-master_42890' of git://github.com/ankitagarwal/moodle 2014-03-19 21:22:25 +01:00
Jetha Chan 3c9535dd94 MDL-44582 installer: added check for php json extension 2014-03-19 21:22:24 +01:00
Sam Hemelryk 84e8be12e5 Merge branch 'wip-mdl-44552' of https://github.com/rajeshtaneja/moodle 2014-03-19 21:22:24 +01:00
Marina Glancy ef3bffdec4 MDL-42025 behat: changed behat tag _only_local to _file_upload 2014-03-19 21:22:24 +01:00
Marina Glancy 4158a6f5ed Merge branch 'MDL-43341' of git://github.com/nobelium/moodle 2014-03-19 21:22:23 +01:00
Sam Hemelryk 89381287ce Merge branch 'MDL-44608-master-fix1' of http://github.com/damyon/moodle 2014-03-19 21:22:23 +01:00
Ankit Agarwal 2f4cf9a1da MDL-42890 backups: Updated help string to indicate logging is required 2014-03-19 15:40:53 +08:00
Adam Olley 19213efb98 MDL-31679 gradereport_grader: Add a horizontal scroll bar to the top of the grader report 2014-03-19 16:27:21 +10:30
Rajesh Taneja b54696395d MDL-44552 Events: Fixed wrong id returned in get_url 2014-03-19 09:57:44 +08:00
Marina Glancy 4826ed1177 Merge branch 'MDL-44141-master' of git://github.com/sammarshallou/moodle 2014-03-19 09:49:00 +08:00
Damyon Wiese 9be8583ac5 MDL-44608 task scheduler: Make unit test case insensitive 2014-03-19 09:24:50 +08:00
Eloy Lafuente (stronk7) 2c36f83422 MDL-41760 move upgrade steps to match 04 version.
In previous (merge) commit, version was moved, on conflict
to 04 (coz 01) was already in use. This commit moves the 3
upgrade steps to 02, 03 and 04, matching that final version.
2014-03-19 02:15:17 +01:00
Eloy Lafuente (stronk7) 1c774322ba Merge branch 'MDL-41760-master-v8' of https://github.com/jamiepratt/moodle
Conflicts:
	version.php
2014-03-19 02:14:00 +01:00
Eloy Lafuente (stronk7) b9add57766 Merge branch 'MDL-41216' of https://github.com/nobelium/moodle 2014-03-19 01:23:08 +01:00
Eloy Lafuente (stronk7) a4627988fd Merge branch 'MDL-44328-M27' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-03-19 01:02:51 +01:00
sam marshall ddf368a213 MDL-44141 Completion: System updates data during restore
The completion system has code which is supposed to prevent it
updating completion status while grades are being restored. This
code was a nasty hack and had not worked for some time. As a result
completion dates were restored incorrectly.

This commit implements a 'proper' way to find out if a restore is
currently running, replacing the previous hack.
2014-03-18 13:31:34 +00:00
James Pratt fcdd04db0a MDL-44075 quiz_statistics : Various coding style / phpdocs fixes 2014-03-18 19:09:39 +07:00
James Pratt ebb8de5d37 MDL-44535 quiz_statistics : response analysis - limit tries counted 2014-03-18 18:54:07 +07:00
James Pratt 038014c415 MDL-41760 quiz_statistics : response analysis for first/last/all tries 2014-03-18 18:47:19 +07:00
Andreas Grabs e68fc3c6f1 MDL-44653 mod_feedback - Include additional name fields using user_picture::fields() 2014-03-18 18:24:18 +08:00
Marina Glancy efd727063f Merge branch 'MDL-42892-master_42890' of git://github.com/ankitagarwal/moodle 2014-03-18 18:00:42 +08:00
Ankit Agarwal e1b2a0b4ef MDL-42892 logging: Refactor logstore_legacy to group all legacy related changes together 2014-03-18 17:50:48 +08:00
Marina Glancy aa1f1b75fb Merge branch 'MDL-38636-master' of git://github.com/roelmann/moodle 2014-03-18 17:39:40 +08:00
Ankit Agarwal 536c0865ef MDL-42892 logging: Remove usage of logtable from can_delete_course 2014-03-18 17:35:59 +08:00
Marina Glancy 7019e15e60 MDL-42025 behat: renamed deprecated method 2014-03-18 17:15:36 +08:00
Jerome Mouneyrac 9e103d6e15 MDL-42025 assignfeedback_editpdf: add behat tests 2014-03-18 17:14:31 +08:00
Davo Smith 8d17a43aee MDL-44677 mod_scorm - do not update unchanged scorm_scoes_track data 2014-03-18 08:58:33 +00:00
Marina Glancy 3aa71904a1 Merge branch 'w12_MDL-44191_m27_mysql56' of git://github.com/skodak/moodle 2014-03-18 16:03:47 +08:00
David Monllao 0176d12dd6 MDL-44246 behat: New mod_quiz test when JS is disabled
Also including a modification in behat_question_base
to make the internal method work with both JS and non-JS.
2014-03-18 15:32:58 +08:00
Marina Glancy 5a22864234 Merge branch 'MDL-44416' of git://github.com/appalachianstate/moodle 2014-03-18 14:45:55 +08:00
Marina Glancy 09f019ddb1 Merge branch 'MDL-44148-master' of git://github.com/jethac/moodle 2014-03-18 14:33:17 +08:00
Jetha Chan 93075bf073 MDL-44148 portfolio: set_user_config usage fix
Amended user/portfolio.php's use of portfolio_plugin_base::set_user_config to be consistent with the API.
2014-03-18 14:19:36 +08:00
Marina Glancy fabc88f0bb Merge branch 'MDL-29807' of git://github.com/jleyva/moodle 2014-03-18 13:52:45 +08:00
Juan Leyva 2e1eda559e MDL-44444 Add fileurl to mod_assign_get_submissions webservice response parameters 2014-03-18 13:46:16 +08:00
Sam Hemelryk f3516ad3b8 Merge branch 'wip-MDL-44542-master' of git://github.com/marinaglancy/moodle 2014-03-18 17:04:57 +13:00
Marina Glancy d2097020b4 MDL-44524 feedback: fix bug in sql under oracle
Thanks to Rob King"
2014-03-18 12:00:14 +08:00
Jetha Chan 74ecabb8aa MDL-42588 mod_scorm: display activity name
Added option to display or hide activity name on SCORM player.
2014-03-18 11:42:19 +08:00
Andrew Davis 7d1f086f31 MDL-43839 core: changed the default theme from standard to clean 2014-03-18 11:12:55 +08:00
Sam Hemelryk c98edede85 Merge branch 'MDL-44505' of https://github.com/bostelm/moodle 2014-03-18 15:00:24 +13:00
Sam Hemelryk 319633a0c6 Merge branch 'MDL-44502' of https://github.com/bostelm/moodle 2014-03-18 14:40:56 +13:00
Sam Hemelryk 72d80b598d Merge branch 'MDL-44433-master' of git://github.com/danpoltawski/moodle 2014-03-18 14:35:55 +13:00
Sam Hemelryk dbedde8d86 Merge branch 'MDL-44381-M27' of git://github.com/lazydaisy/moodle 2014-03-18 14:32:37 +13:00
Sam Hemelryk b02d88d98c Merge branch 'mdl44499-master' of https://github.com/tlock/moodle 2014-03-18 14:26:56 +13:00
Tim Lock 754e2efd0f MDL-44669: mod/assign: fix batchoperations JS when using select all checkboxes. 2014-03-18 11:09:57 +10:30
Sam Hemelryk 224f8dfda1 Merge branch 'w12_MDL-44527_m27_cacert' of https://github.com/skodak/moodle 2014-03-18 12:52:19 +13:00
Sam Hemelryk 43301757eb Merge branch 'w12_MDL-44515_m27_phpexcel' of https://github.com/skodak/moodle 2014-03-18 11:48:47 +13:00
Sam Hemelryk 0406fb9a4b Merge branch 'w12_MDL-44516_m27_purifier' of https://github.com/skodak/moodle 2014-03-18 11:48:21 +13:00
Sam Hemelryk 1c6dff6f1c Merge branch 'w12_MDL-44521_m27_tcpdf' of https://github.com/skodak/moodle 2014-03-18 11:48:11 +13:00
Sam Hemelryk 7286f5923d Merge branch 'w12_MDL-44522_m27_markdown' of https://github.com/skodak/moodle 2014-03-18 10:17:04 +13:00
Sam Hemelryk 114d1ccf32 Merge branch 'MDL-44550-master' of git://github.com/damyon/moodle 2014-03-18 09:43:42 +13:00
Sam Hemelryk c16fc19461 Merge branch 'w12_MDL-44599_m27_siteid' of https://github.com/skodak/moodle 2014-03-18 09:30:39 +13:00
Sam Hemelryk c961d9626e Merge branch 'w12_MDL-44609_m27_taskcomponent' of https://github.com/skodak/moodle 2014-03-18 09:16:09 +13:00
Sam Hemelryk 7aafc49c18 Merge branch 'MDL-44585-master' of https://github.com/StudiUM/moodle 2014-03-18 09:03:21 +13:00
Juan Leyva eb625bcf64 MDL-29807 Fixed invalid add_record_snapshot references and also inexistent check of empty short names 2014-03-17 12:35:20 +01:00
Marina Glancy e65825830f Merge branch 'MDL-44588' of git://github.com/timhunt/moodle 2014-03-17 18:18:36 +08:00
Marina Glancy ea406e6b94 Merge branch 'w12_MDL-44624_m27_dmltest' of git://github.com/skodak/moodle 2014-03-17 18:12:16 +08:00
Marina Glancy 9051b7f4ea Merge branch 'MDL-44610-m' of git://github.com/micaherne/moodle 2014-03-17 18:08:57 +08:00
Marina Glancy 3087d9d34e Merge branch 'MDL-44650' of git://github.com/danielneis/moodle 2014-03-17 17:53:00 +08:00
Marina Glancy 6f96d1a9a7 Merge branch 'w12_MDL-41115_m27_emaillogin' of git://github.com/skodak/moodle 2014-03-17 17:44:45 +08:00
Petr Škoda b7679cdbfb MDL-41115 fix username field label when allowing login via email
Thanks Marina for spotting this!
2014-03-17 17:34:45 +08:00
Marina Glancy 9ceac20f74 Merge branch 'MDL-44356-M27' of git://github.com/lazydaisy/moodle 2014-03-17 17:08:30 +08:00
Juan Leyva 0a8ab74728 MDL-29807 Control to avoid duplicate shortnames 2014-03-17 09:53:45 +01:00
Juan Leyva b129859207 MDL-29807 Service add admin page: should be able to enter the unique shortname of a service 2014-03-17 09:53:45 +01:00
Marina Glancy c83a1da7d9 Merge branch 'master_MDL-39568' of git://github.com/danmarsden/moodle 2014-03-17 16:20:58 +08:00
Marina Glancy 93eab4fd77 Merge branch 'w12_MDL-43604_m27_mariadb10' of git://github.com/skodak/moodle 2014-03-17 16:03:08 +08:00
Marina Glancy 4715639b22 Merge branch 'w12_MDL-44603_m27_extgrade2' of git://github.com/skodak/moodle 2014-03-17 14:38:01 +08:00
Marina Glancy 992d71cd8f Merge branch 'w12_MDL-44500_m27_eventcourse' of git://github.com/skodak/moodle 2014-03-17 14:32:28 +08:00
Marina Glancy 784d9c2be0 Merge branch 'w12_MDL-44635_m27_ajaxlogs' of git://github.com/skodak/moodle 2014-03-17 14:30:03 +08:00
Marina Glancy 3b85de7b99 Merge branch 'w12_MDL-44339_m27_testdebug' of git://github.com/skodak/moodle 2014-03-17 13:48:27 +08:00
Marina Glancy b26329fd55 Merge branch 'w12_MDL-44432_m27_logcron' of git://github.com/skodak/moodle 2014-03-17 13:03:18 +08:00
Petr Škoda a446fc00fb MDL-44603 fix incorrect hint for grades related class location
Thanks Marina!
2014-03-17 12:57:21 +08:00
Petr Škoda d3ab89fbb5 MDL-44635 discard error logging during ajax tests 2014-03-17 11:30:46 +08:00
Tim Lock 6b7aa837c9 MDL-44573: Remove HTML tags in outputs column in offline grading worksheet 2014-03-17 12:43:41 +10:30
Sam Hemelryk 9ea57c8bc3 Merge branch 'MDL-44608-master' of git://github.com/damyon/moodle 2014-03-17 12:37:02 +13:00
Petr Škoda 9c140a681e MDL-44300 force PHP 5.6.x to return raw file names for our own guessing 2014-03-17 12:34:02 +13:00
Sam Hemelryk a8db93c5ac Merge branch 'w11_MDL-44299_m27_sessiongc' of https://github.com/skodak/moodle 2014-03-17 12:10:48 +13:00
Trevor Cunningham 9c35f55a05 MDL-39568 gradinform_guide: show maxgrade to students when viewing marking guide 2014-03-17 08:59:08 +13:00
Mary Evans 75716794ec MDL-44356 theme_bootstrapbase: Centralize the drag and drop arrow in filemanager. 2014-03-15 21:22:11 +00:00
roelmann 2498dce0e9 Make hidden items more visible in breadcrumb
modified:   theme/serenity/style/core.css
2014-03-15 20:45:58 +00:00
Mary Evans 1e6a8f731c MDL-44381 theme_brick: Removed whitespace and reference to arialist theme in config.php. 2014-03-15 14:34:13 +00:00
Nobelium b4f71f0c10 MDL-41216 scorm: style.css now follows block format 2014-03-15 11:00:58 +00:00
Petr Škoda 37429ae33c MDL-44603 bump version to update web services 2014-03-15 11:10:10 +08:00
Petr Škoda 0fa50262e0 MDL-44603 fix core_grading_external class and test location 2014-03-15 11:08:21 +08:00
Petr Škoda ed57d984a8 MDL-44603 add support for external service autoloading 2014-03-15 10:53:39 +08:00
Nobelium 76e9e1028f MDL-43341 SCORM Report: spacer.gif must be managed with $OUTPUT->spacer 2014-03-14 22:16:07 +00:00
Daniel Neis Araujo db64fd6b1c MDL-44650 Remove invalid meta tags "pragma" and "expires" 2014-03-14 18:31:29 -03:00
Henning Bostelmann 013e85bbcc MDL-44505 mod_forum: Make mailing subject a configurable language string 2014-03-14 11:39:15 +00:00
Henning Bostelmann c746c60803 MDL-44502 filelib: Add mimetype for Maple worksheets 2014-03-14 11:39:07 +00:00
Gilles-Philippe Leblanc 3d90e53dab MDL-44585 grade_import: Restrict the accepted types in the gradebook import 2014-03-14 07:21:02 -04:00
Petr Škoda b2ad781349 MDL-44609 add component column to the scheduled task table 2014-03-14 15:48:25 +08:00
Petr Škoda ce1f5ed57a MDL-44624 fix false failures in DML tests 2014-03-14 14:14:10 +08:00
Petr Škoda 5940a2bbff MDL-44599 undeprecate SITEID
There is no way we could implement multitenant now,
it means there is no reason to deprecate SITEID.
2014-03-14 13:43:04 +08:00
Petr Škoda 1fc70846f0 MDL-44527 import latest certificate bundle 2014-03-14 13:41:35 +08:00
Petr Škoda cfc9130ec5 MDL-44522 import markdown 1.4.0 2014-03-14 13:40:11 +08:00
Petr Škoda fc9cedb321 MDL-44521 import TCPDF 6.0.062 2014-03-14 13:38:37 +08:00
Petr Škoda 6becafba0e MDL-44516 import htmlpurifier 4.6.0 2014-03-14 12:11:49 +08:00
Petr Škoda 7ec0e0629c MDL-44515 import latest PHPExcel 1.8.0 2014-03-14 12:10:52 +08:00
Petr Škoda 9ede00db18 MDL-44500 detect context-courseid inconsistencies in new events 2014-03-14 12:08:12 +08:00
Ankit Agarwal 2523979821 MDL-42890 backup: Remove usage of log table in backup cron helper 2014-03-14 12:07:17 +08:00
Ankit Agarwal dc06500559 MDL-42890 tool_log Default legacy reader should handle CRUD queries 2014-03-14 12:07:17 +08:00
Petr Škoda a9336f676c MDL-44432 use new task scheduler in new logging plugins 2014-03-14 12:05:54 +08:00
Petr Škoda 589eca14f2 MDL-44604 fix task cleanup in plugin uninstallation 2014-03-14 12:04:04 +08:00
Damyon Wiese bbd9226cb8 MDL-44608 Scheduled Tasks: Use $CFG->timezone if it is set to schedule tasks 2014-03-14 11:47:03 +08:00
Petr Škoda c386f35bca MDL-44339 treat unexpected debugging() calls in phpunit tests as errors 2014-03-14 11:43:46 +08:00
Petr Škoda 5d4c82560b MDL-44191 hack around MySQL 5.6 inability to lower auto_increment 2014-03-14 11:31:43 +08:00
Petr Škoda 1dd74afe9e MDL-43604 add support for future hacky MariaDB versions
This patch also shows the real server version without
normalisation on the environment page, this should
hopefully help people to identify MariaDB...
2014-03-14 11:28:05 +08:00
Petr Škoda 50f5c84359 MDL-41115 add option to allow login via email 2014-03-14 11:25:09 +08:00
Fred Woolard 1c027ffa33 MDL-44416 Correct detail view paging 2014-03-13 19:44:38 -04:00
Eloy Lafuente (stronk7) c0e88129d1 weekly release 2.7dev 2014-03-13 23:55:50 +01:00
Mark Nielsen c3d245cff3 MDL-44630: Several additions to Common Cartridge Import/Export
Changes provided by Darko Miletic and Sam Chaffee.

* Fix problem with CC import not detecting a CC package. (Sam)
* Fixed Common Cartridge not importing FIB answers. (Sam)
* Fix to CC export so that short answer pattern matching question
  in a quiz does not prevent the entire quiz from exporting. (Sam)
* Fix notice about missing index when there is no answer-specific
  feedback in short answer question during CC export. (Sam)
* Fixed Japanese characters being incorrectly encoded (garbled)
  on Common Cartridge import. (Sam)
* Changed import of CC discussions to create 'Standard General'
  forums in Moodle. (Sam)
* Fix problem with question name being replaced with question
  text on CC import of exported Moodle questions. (Sam)
* Fix CC 1.1 multiple choice question import having no correct
  answers. (Sam)
* Fixed problem with multiple choice, multiple answers allowed
  questions not exporting correct answers to CC. (Sam)
* Removed duplicate method. (Darko)
* Implemented fix that skips quiz export if it contains
  non-exportable question. (Darko)
* Fixed: Common cartridge export is extremely slow when dealing
  with lot of more than 200 files. (Darko)
* Added support for basic roles support in common cartridge. (Darko)
* Implemented folder resource export. (Darko)
* Minor fixes to adjust to the standard. (Darko)
* Added support for exporting simple fill in the blank
  (shortanswer without wildcards in Moodle). (Darko)
* Added support for exporting essay question. (Darko)
* Added support for true/false export. (Darko)
* Added support for exporting multiple response questions,
  added also category information into question metadata
  during export (Darko)
* Added support for correctly importing multiple response
  questions. (Darko)
2014-03-13 15:42:13 -07:00
Eloy Lafuente (stronk7) 630bb85d9e MDL-43266 testing: avoid assoc arrays for json
Last commit switched from raw arrays to associative
arrays. That leads to json_encode() to generate an
object instead of an array, ultimately leading to
problems with the rest of code expecting an array.

By using array_values() we are moving back to the
non-associative array.

Also, fix some file permissions.
2014-03-13 22:11:03 +01:00
Eloy Lafuente (stronk7) 1700bec3c6 Merge branch 'MDL-43266_master-last-fixes' of git://github.com/dmonllao/moodle
Conflicts:
	lib/phpunit/classes/util.php
2014-03-13 19:12:25 +01:00
Eloy Lafuente (stronk7) ad246c2d2c NOBUG: Bump version 2014-03-13 18:34:56 +01:00
Dan Poltawski f28b83ecea MDL-33653 quiz: remove unused string 2014-03-13 18:33:30 +01:00
Sam Hemelryk e9c78971b5 Revert "MDL-40699 Language - Add option to Override Moodle's default behaviour to reset the UI language on logout"
This reverts commit 08174740fb.
2014-03-13 18:33:29 +01:00
Sam Hemelryk 2d1823eb51 MDL-43497 role: added missing string 2014-03-13 18:33:28 +01:00
Tim Hunt 2f83d71ccc MDL-44534 also fix the mod_quiz behat tests.
They had duplicated code. I refactored.
2014-03-13 18:33:27 +01:00
David Monllao ced0f98322 MDL-44236 behat: Fixing wrong old step call 2014-03-13 18:33:27 +01:00
Frederic Massart c13854785f MDL-44334 lockscroll: Fix wrong warning message 2014-03-13 18:33:26 +01:00
Dan Poltawski 41244dd3ce Merge branch 'MDL-40913_master-fix' of https://github.com/markn86/moodle 2014-03-13 18:33:26 +01:00
Dan Poltawski 06a241bb8d Merge branch 'MDL-43236_master-fix-tablenode' of git://github.com/dmonllao/moodle 2014-03-13 18:33:25 +01:00
Mark Nelson f6a4a90e70 MDL-40913 core_message: fixed triggering the 'message_sent' event when the 'noreply' address is used 2014-03-13 18:33:25 +01:00
Marina Glancy b7d1cfca84 MDL-44337 behat grammer improvements, see MDL-43236 2014-03-13 18:33:24 +01:00
David Monllao 12427e7746 MDL-43236 behat: Include missing used namespace 2014-03-13 18:33:24 +01:00
Sam Hemelryk 63afbaa6be Merge branch 'master_MDL-37733' of git://github.com/danmarsden/moodle 2014-03-13 18:33:23 +01:00
Dan Poltawski 45ff52dab5 Merge branch 'MDL-44061-master' of git://github.com/andrewnicols/moodle 2014-03-13 18:33:21 +01:00
Sam Hemelryk b679a1760a Merge branch 'MDL-40699-UI-language-changes-when-logging-out-of-Moodle' of git://github.com/michael-milette/moodle 2014-03-13 18:33:20 +01:00
Eloy Lafuente (stronk7) 478baf8334 Merge branch 'wip-MDL-32699-master' of git://github.com/marinaglancy/moodle 2014-03-13 18:33:20 +01:00
Sam Hemelryk f3deabee48 Merge branch 'MDL-42368-master' of git://github.com/danpoltawski/moodle 2014-03-13 18:33:19 +01:00
Eloy Lafuente (stronk7) 38c5e34c00 Merge branch 'mdl27_mdl-43497_allow_force_language_02' of https://github.com/brki/moodle 2014-03-13 18:33:15 +01:00
Sam Hemelryk 5f2fcc388b Merge branch 'MDL-44345-master' of git://github.com/FMCorz/moodle 2014-03-13 18:32:54 +01:00
Sam Hemelryk ee4655eec1 Merge branch 'MDL-41173' of https://github.com/danielneis/moodle 2014-03-13 18:32:52 +01:00
Dan Poltawski 9b9e2655d2 Merge branch 'MDL-44478-master' of git://github.com/andrewnicols/moodle 2014-03-13 18:32:49 +01:00
Eloy Lafuente (stronk7) e649662489 Merge branch 'MDL-44534' of git://github.com/timhunt/moodle
Conflicts:
	question/tests/behat/copy_questions.feature
2014-03-13 18:32:41 +01:00
Dan Poltawski 454db7d467 Merge branch 'MDL-33653' of git://github.com/timhunt/moodle 2014-03-13 18:31:52 +01:00
Dan Poltawski c6b7551c71 Merge branch 'MDL-40913_master' of https://github.com/markn86/moodle 2014-03-13 18:31:52 +01:00
Marina Glancy e2cb3ffad6 MDL-43967 logging: references to the migrating dev docs 2014-03-13 18:31:52 +01:00
Dan Poltawski 7d1f141a44 Merge branch 'MDL-44095' of https://github.com/shashirepo/moodle 2014-03-13 18:31:49 +01:00
Dan Poltawski a8aa086bf9 Merge branch 'wip-MDL-44337-master' of git://github.com/marinaglancy/moodle 2014-03-13 18:31:49 +01:00
Dan Poltawski d8085046ba Merge branch 'wip-mdl-44458' of https://github.com/rajeshtaneja/moodle 2014-03-13 18:31:48 +01:00
Dan Poltawski 0fdb526f70 MDL-30085 bump version 2014-03-13 18:31:48 +01:00
Michael Aherne d432e0f722 MDL-44610 enrol Enable autoloading of enrolment plugins 2014-03-13 09:16:01 +00:00
Dan Poltawski b576089a41 MDL-44433 lang: Update the name of country code CV
ISO-3166 has updated this name to Cabo Verde:
https://www.iso.org/obp/ui/#iso:code:3166:CV
2014-03-13 17:06:35 +08:00
Tim Hunt fb4ae869e5 MDL-44588 quiz: fix crazy variable called $this. 2014-03-12 18:20:45 +00:00
David Monllao d3daf24563 MDL-43266 testing: Removing duplicated keys 2014-03-12 17:49:55 +08:00
Petr Škoda 1985ef8342 MDL-44299 resolve collision with session_gc() in PHP 5.6 2014-03-12 10:43:30 +08:00
Rajesh Taneja f325a6eb67 MDL-44458 notes: Fixed url in events 2014-03-11 15:26:20 +08:00
Juan Leyva ba1dc59721 MDL-44462 mobile: Add mod_assign functions to service definition
To support new functionality in the Moodle Mobile app.
2014-03-11 14:49:23 +08:00
Dan Poltawski 72e2a1d7eb Merge branch 'MDL-44480-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2014-03-11 14:35:51 +08:00
Dan Poltawski 234f953c44 Merge branch 'MDL-41855' of git://github.com/nobelium/moodle 2014-03-11 12:59:23 +08:00
Dan Poltawski b027184f10 Merge branch 'master_MDL-43247' of git://github.com/danmarsden/moodle 2014-03-11 12:42:27 +08:00
Dan Poltawski 8674c5e415 Merge branch 'MDL-44497-master' of https://github.com/jamiepratt/moodle 2014-03-11 12:35:57 +08:00
Michael Milette 08174740fb MDL-40699 Language - Add option to Override Moodle's default behaviour to reset the UI language on logout
This change adds an option to the Site Admin > Langauge > Language Settings page which can prevent Moodle from changing language when users log out.

Affected files:
	lang/en/admin.php
	admin/settings/language.php
	login/logout.php

Signed-off-by: Michael Milette <michael.milette@instruxmedia.com>
2014-03-11 00:35:30 -04:00
Damyon Wiese 7e9d4c2b72 MDL-44550 Docs: Remove comment about mysql_lock_factory from config-dist.php 2014-03-11 12:05:35 +08:00
Dan Poltawski 5f3b4694b3 Merge branch 'wip-MDL-42870-master' of git://github.com/marinaglancy/moodle 2014-03-11 11:37:44 +08:00
Dan Poltawski 060aa628b3 Merge branch 'master_MDL-44066' of git://github.com/danmarsden/moodle 2014-03-11 11:28:56 +08:00
Dan Poltawski c7cc278017 Merge branch 'wip-MDL-43966-master' of git://github.com/marinaglancy/moodle 2014-03-11 10:50:55 +08:00
David Monllao 6a0f3c4869 MDL-43236 behat: Fixing missing changes
All "" "" should exists and "" "" should not exists
must be converted to the ones using exist rather than exists.
2014-03-11 10:07:25 +08:00
Sam Hemelryk 1aefc90960 Merge branch 'wip-MDL-40721-master' of git://github.com/marinaglancy/moodle 2014-03-11 14:22:33 +13:00
Sam Hemelryk 8daf8cbc0a Merge branch 'w11_MDL-44451_m27_addonloc' of https://github.com/skodak/moodle 2014-03-11 14:18:08 +13:00
Eloy Lafuente (stronk7) 6d9ba13dc8 Merge branch '44547-27' of git://github.com/samhemelryk/moodle 2014-03-11 00:28:34 +01:00
Sam Hemelryk 8373c7e38e MDL-44547 repository_alfresco: version bump 2014-03-11 12:05:22 +13:00
Sam Hemelryk e89fba41af MDL-44496 fixed renamed method ref in comment 2014-03-11 11:54:52 +13:00
Sam Hemelryk 509edd5624 Merge branch 'w11_MDL-44496_m27_eventbuffer' of https://github.com/skodak/moodle 2014-03-11 11:54:05 +13:00
Sam Hemelryk 421786ed61 Merge branch 'MDL-44334-master' of git://github.com/andrewnicols/moodle 2014-03-11 10:10:08 +13:00
Sam Hemelryk 2710ad2b52 Merge branch 'MDL-43721-master' of git://github.com/damyon/moodle 2014-03-11 09:19:44 +13:00
Sam Hemelryk 1fef3f6aac Merge branch 'wip-MDL-44471-master' of git://github.com/marinaglancy/moodle 2014-03-11 08:51:36 +13:00
Nobelium 39af2f4171 MDL-41855 SCORM form : Auto update frequency option under File manager
Placing the Auto update frequency option underneath the File manager in /mod/scorm/mod_form.php
This changes the postion of the auto update freq option both while creating a new scorm object and while editing the scorm object.
2014-03-10 14:03:33 +00:00
Tim Hunt 7b2a5e5663 MDL-44534 increase core_question Behat test robustness. 2014-03-10 12:32:39 +00:00
Dan Poltawski 4e1aad54b8 Merge branch 'wip-mdl-44017' of https://github.com/rajeshtaneja/moodle 2014-03-10 15:13:43 +08:00
Dan Poltawski 7f42ee92eb Merge branch 'MDL-44440_master' of git://github.com/dmonllao/moodle 2014-03-10 13:45:26 +08:00
David Monllao 1f631c7c63 MDL-44440 behat: Changing , for > as a navigation tree nodes separator
Using greater than as seems a more natural separator
than the comma when separating nodes which have a
hierarchy relation.
2014-03-10 13:35:40 +08:00
Dan Poltawski c13c64b0e1 Merge branch 'MDL-43236_master' of git://github.com/dmonllao/moodle 2014-03-10 12:04:14 +08:00
Niclas Tollstorff 7f9759c25c MDL-37733 SCORM: Correct check for force new attempt 2014-03-08 21:22:38 +13:00
Dan Marsden 538864dffd MDL-44066 Restore: Restore source field.
Causes problems when restoring a SCORM pacakge that uses an alias.
2014-03-08 21:09:30 +13:00
Dan Marsden 6573b07780 MDL-43247 SCORM: improve pop-up handling and redirect to homepage on close. 2014-03-08 21:04:31 +13:00
Mark Nelson 7cd6abf28a MDL-40913 core_message: removed 'view' add_to_log call 2014-03-07 15:15:44 -08:00
Mark Nelson 5b09190975 MDL-40913 core_message: created 'message_read' event 2014-03-07 15:15:43 -08:00
Mark Nelson ab1bc5d222 MDL-40913 core_message: replaced 'write' add_to_log call with an event 2014-03-07 15:15:43 -08:00
Mark Nelson cd60936523 MDL-40913 core_message: replaced 'unblock contact' add_to_log call with an event 2014-03-07 15:15:43 -08:00
Mark Nelson 3f3d9521de MDL-40913 core_message: replaced 'block contact' add_to_log call with an event 2014-03-07 15:15:42 -08:00
Mark Nelson 5edf9f3bd3 MDL-40913 core_message: replaced 'remove contact' add_to_log call with an event 2014-03-07 15:15:42 -08:00
Mark Nelson 0d9bdf6185 MDL-40913 core_message: replaced 'add contact' add_to_log call with an event 2014-03-07 15:15:42 -08:00
Tim Hunt 8011be189e MDL-33653 fix preview links on calc qtype edit forms.
Also, refactor how we render preview icons, to eliminate duplication.
2014-03-07 19:46:56 +00:00
M Kassaei 7756e2bc85 MDL-33653 questions, a way to save changes and continue editing 2014-03-07 12:42:51 +00:00
James Pratt 185aae5dbe MDL-44497 quiz responses report : error when no attempts 2014-03-07 17:24:13 +07:00
Brian King c484af5aa6 MDL-43497 Language: Allow course language to be overridden 2014-03-07 09:11:18 +01:00
David Monllao 75ddb69563 MDL-43236 behat: Step arguments normalization
Updating step definitions arguments according to the
documentation page.
2014-03-07 16:05:21 +08:00
David Monllao 759b323e0e MDL-43236 behat: Updating references to deprecated methods 2014-03-07 16:05:21 +08:00
David Monllao c51c3b5575 MDL-43236 behat: Deprecate old steps
Correcting grammar errors and deprecating
the previous steps definitions:
- behat_data_generators::the_following_exists()
- behat_general::should_exists()
- behat_general::should_not_exists()
2014-03-07 16:05:21 +08:00
Rajesh Taneja 2cd29dd6f1 MDL-44017 Events: Added unit test for report_viewed events 2014-03-07 15:16:10 +08:00
Rajesh Taneja e1b16f9773 MDL-44017 Events: Deprecated content_viewed event
Replaced content_viewed event with appropriate events and deprecated
content_viewed event
2014-03-07 15:16:10 +08:00
Andrew Nicols b959e5085a MDL-44334 Javascript: Prevent scroll locking for small screen heights 2014-03-07 15:04:56 +08:00
David Monllao a542553d42 MDL-44440 behat: Refactoring features to use I navigate to
Replacing multiple "I expand node" steps by the
new "I navigate to". Also fixing few I navigate to
when dealing with non-JS.
2014-03-07 14:46:54 +08:00
David Monllao 370e88d4fe MDL-44440 behat: Other fixes to make clean work properly
- Update the step to follow links inside a treeview
  to work also when JS is disabled.
- Make regions accept header and footer.
- Change some locators refering to non-clean compatible
  regions.
- Restricting click to the table row in forum tracking
  because seems to conflict with the navigation bar when
  using narrow window sizes.
2014-03-07 14:27:52 +08:00
Rajesh Taneja 26fb3f5b71 MDL-44440 navigation: Added behat step to navigate from navigation/Admin block
This step will help navigate to different parts of moodle
using navigation or adminstration block.
2014-03-07 11:55:31 +08:00
David Monllao a1e81b8d3d MDL-44440 behat: Log out compatible with clean
.navbar needs to be clicked before following
log in or log out links.
2014-03-07 11:55:31 +08:00
Tim Lock 9619ff9ba3 MDL-44499: Fix PHP warning in upload_manager class 2014-03-07 14:19:26 +10:30
Krister d20593ff05 MDL-42368 Themes: Anomaly breadcrumb fix
Previously the editing button could become unreachable with small window
sizes.
2014-03-07 11:35:37 +08:00
Petr Škoda 875f191963 MDL-44496 fix minor trait docs issue
The store trait is not necessary any more in bufferef_writer
because we define the required methods as abstract.
2014-03-07 11:06:17 +08:00
Petr Škoda e23bd11010 MDL-44496 fix event buffering in log stores 2014-03-07 10:58:19 +08:00
Marina Glancy 30a32f147a MDL-42870 completion: performance and readability code refactoring 2014-03-07 10:21:49 +08:00
Marina Glancy f0d6479623 MDL-42870 completion: show failed activities as incompleted 2014-03-07 10:21:46 +08:00
Marina Glancy c7a8cef65e MDL-44471 Revert "MDL-42238 mod_wiki: Alternate name sql update to wiki_print_recent_activity"
This reverts commit 6d3d9bd927.
2014-03-07 09:56:29 +08:00
Marina Glancy 99fe2357e6 MDL-44337 glossary: behat test for glossary categories 2014-03-07 09:56:06 +08:00
Marina Glancy 1480f6ea68 MDL-43966 events: link to migration wiki in lib/upgrade.txt 2014-03-07 09:55:17 +08:00
Marina Glancy 2f8d26346f MDL-40721 wiki: missing page->set_url() when restoring wiki 2014-03-07 09:38:15 +08:00
Marina Glancy 846f6886f0 MDL-32699 wiki: only edit capability is required to restore wiki revision 2014-03-07 09:36:57 +08:00
Petr Škoda c6b44cb4f2 MDL-44359 fix explode(', ', regressions from MDL-44255 2014-03-07 08:51:04 +08:00
Eloy Lafuente (stronk7) 0a489777fc weekly release 2.7dev 2014-03-06 22:16:58 +01:00
Eloy Lafuente (stronk7) 5d04aed148 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-03-06 22:16:48 +01:00
Andrew Nicols d10e611876 MDL-44480 Javascript: Correct dialogue ID generation 2014-03-06 17:02:22 +08:00
Damyon Wiese c46db93c28 MDL-43721 Assign + groups: Improve performance of assign grading table
Add a function to the groups lib to filter a list of users down
to the ones who can see the module. Required because calling
groups_course_module_visible() for a list of users is too slow
and we shouldn't spread group logic outside of grouplib.php.

Using it in the assign grading table reduces DB queries from 6198/1 to 256/3.

This is 12secs down to 2.5secs.
2014-03-06 15:50:13 +08:00
Andrew Nicols 502d580970 MDL-44478 Javascript: Remove duplications in simpleyui rollup 2014-03-06 15:25:29 +08:00
Damyon Wiese a9e634afa6 MDL-43721 Assign: Static cache for plugin is_enabled and is_visible because they get used alot 2014-03-06 15:15:57 +08:00
Yuliya Bozhko 100ec86182 MDL-44140 badges: Prevent non-owners to change visibility of issued badges
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2014-03-06 14:33:51 +08:00
Damyon Wiese 052b8c81c6 Revert "MDL-32917 YUI2 to YUI3 Calendar port: only display the date from the matching selector and display the month/year matching the selector value"
There are numerous bugs with this new module to do with showing the currently selected date,
random changes in the selected dates, showing multiple selected dates and css errors.

This reverts commit 1d128663f6.
This reverts commit 4a521e6596.
2014-03-06 13:38:17 +08:00
Damyon Wiese 81b4ec4fc3 Merge branch 'MDL-32917-master-nomerge3' of git://github.com/mouneyrac/moodle 2014-03-06 11:41:09 +08:00
Jerome Mouneyrac 1d128663f6 MDL-32917 YUI2 to YUI3 Calendar port: only display the date from the matching selector and display the month/year matching the selector value 2014-03-06 11:35:00 +08:00
Damyon Wiese d09cfab660 Merge branch 'wip-MDL-44403-master' of git://github.com/marinaglancy/moodle 2014-03-06 09:21:24 +08:00
Dan Poltawski dc88f6699d Revert "MDL-43852 Filters Fixed naked-OR conditions."
While the patch worked as intended, we discovered some other concerns
about use of this setting in testing.

This reverts commit 840c1c554d.
2014-03-06 09:03:19 +08:00
Eloy Lafuente (stronk7) 170c87d808 Merge branch 'MDL-44425-en_fix' of git://github.com/mudrd8mz/moodle 2014-03-06 00:35:28 +01:00
Helen Foster fcca760ae7 MDL-44425 Merge English strings from the en_fix language pack 2014-03-05 13:29:32 +01:00
Frederic Massart eaafde6ec0 MDL-44345 repository_youtube: Endless loop when reaching last results 2014-03-05 16:58:13 +08:00
Andrew Nicols 1fa31fb376 MDL-44061 Ajax: Log whitespace issues to the server error log 2014-03-05 16:34:35 +08:00
Petr Škoda b3d5bd33f8 MDL-44451 fix plugin_misplaced_exception exception 2014-03-05 16:33:41 +08:00
Brent Boghosian 00dabc896b MDL-43635: Further support custom contexts
Reading from config DB table and reset method for after plugin install
Add PHPUnit test for custom context changes
2014-03-05 15:01:30 +08:00
Dan Poltawski 93881b8011 Merge branch 'MDL-44319-master' of git://github.com/damyon/moodle 2014-03-05 14:21:28 +08:00
Dan Poltawski ac8d049b47 Merge branch 'wip-MDL-44287-master' of git://github.com/marinaglancy/moodle 2014-03-05 14:18:21 +08:00
Dan Poltawski 08b47e6178 Merge branch 'MDL-43930-master-fix1' of git://github.com/damyon/moodle 2014-03-05 14:13:23 +08:00
Damyon Wiese 0cc30f6fcf Merge branch 'MDL-44370-master' of git://github.com/ankitagarwal/moodle 2014-03-05 13:44:56 +08:00
Damyon Wiese b33ec0697b Merge branch 'm27_MDL-44312_cron_overdue_warning_Does_Not_Take_Care_Of_cronclionly_And_cronremotepassword' of https://github.com/scara/moodle 2014-03-05 13:35:14 +08:00
Damyon Wiese 3294c1e6dd Merge branch 'MDL-41585' of https://github.com/totara/openbadges 2014-03-05 13:17:18 +08:00
Dan Poltawski a59b2e18d8 Merge branch '44180-27' of git://github.com/samhemelryk/moodle 2014-03-05 12:47:17 +08:00
Dan Poltawski 3be87d897d Merge branch 'MDL-41248' of git://github.com/timhunt/moodle 2014-03-05 12:39:53 +08:00
Damyon Wiese 67eb36413a MDL-43930 Assign: Fix unit tests.
The tests were expecting exact log data to match, I changed the data
but missed updating the test.
2014-03-05 12:21:27 +08:00
Damyon Wiese 23d142ef5a Merge branch 'MDL-44361-master' of git://github.com/andrewnicols/moodle 2014-03-05 11:36:16 +08:00
Dan Poltawski baa1c69408 Merge branch 'MDL-43930-master' of git://github.com/damyon/moodle 2014-03-05 11:22:35 +08:00
Dan Poltawski cb34249fe0 Merge branch 'wip-MDL-44321-master-fix2' of git://github.com/marinaglancy/moodle 2014-03-05 11:08:31 +08:00
Marina Glancy f2f7065895 MDL-44321 events: make sure the full object is passed to add_record_snapshot in book 2014-03-05 11:01:19 +08:00
Dan Poltawski 673a96bd4e Merge branch 'MDL-44065-master' of https://github.com/sammarshallou/moodle 2014-03-05 10:52:46 +08:00
Damyon Wiese 4cb6f806d7 Merge branch 'wip-MDL-44074-master_4' of git://github.com/gjb2048/moodle 2014-03-05 10:13:56 +08:00
Ankit Agarwal 0f1e1313a5 MDL-42079 calendar: Update core apis to support ical imports with rrule repeats 2014-03-05 09:48:07 +08:00
Ankit Agarwal 693fced7f1 MDL-42079 calendar: Add unittests for rrule_manager class 2014-03-05 09:48:07 +08:00
Ankit Agarwal 76eef5b2eb MDL-42079 calendar: Add a rrule_manager class 2014-03-05 09:48:07 +08:00
Mary Evans 457c1208d9 MDL-44328 theme_bootstrapbase: Re-defined colour variables making new ones where needed; 2014-03-05 01:44:04 +00:00
AMOS bot f172b961ae Automatically generated installer lang files 2014-03-05 00:54:42 +00:00
Tim Hunt 2fa19cfe82 MDL-43749 quiz editing: fix adding the first question.
The first question added to a quiz was getting slot number 2, not 1.
2014-03-04 17:57:47 +00:00
Dan Poltawski 81cbf283e8 Merge branch 'wip-MDL-44258-master' of git://github.com/marinaglancy/moodle 2014-03-04 17:49:06 +08:00
Damyon Wiese fa52adce76 Merge branch 'wip-mdl-41266' of https://github.com/rajeshtaneja/moodle 2014-03-04 16:59:10 +08:00
Ankit Agarwal cebfb9ec9f MDL-44370 calendar: Add support for restoring calendar log rules 2014-03-04 16:13:25 +08:00
Dan Poltawski f1284d3cfe Merge branch 'MDL-44272-master' of git://github.com/ankitagarwal/moodle 2014-03-04 15:59:55 +08:00
Rajesh Taneja 24b293e45e MDL-41266 Logging: Added choose option for external database store 2014-03-04 15:55:50 +08:00
Dan Poltawski 3071e2bbf9 Merge branch 'MDL-44278' of git://github.com/timhunt/moodle 2014-03-04 15:43:23 +08:00
Marina Glancy d5bc7b66e9 MDL-44403 events: MDL-44403 events: bug fix in legacy event data for unknown_service_api_called 2014-03-04 15:16:19 +08:00
Marina Glancy 24c32bdf2f MDL-44403 events: added public method to get eventdata 2014-03-04 15:16:15 +08:00
Ankit Agarwal e662454a35 MDL-44370 calendar: Fix calendar url in reports 2014-03-04 15:06:20 +08:00
Dan Poltawski cf77b7c932 Merge branch 'wip-MDL-44321-master-fix' of git://github.com/marinaglancy/moodle 2014-03-04 15:03:02 +08:00
Marina Glancy ae29096b5b MDL-44321 unittest correction since snapshot is not a reference to object any more. 2014-03-04 14:56:20 +08:00
Frederic Massart 695a18b6aa MDL-43468 mod_assign: Webservice parameters were not safely cleaned 2014-03-04 14:49:20 +08:00
Dan Poltawski 745f2cc521 Merge branch 'MDL-44436-master' of git://github.com/FMCorz/moodle 2014-03-04 14:40:23 +08:00
Damyon Wiese 98b51f3882 Merge branch 'MDL-32917-master-nomerge2' of git://github.com/mouneyrac/moodle 2014-03-04 14:27:33 +08:00
Frederic Massart cea24f4852 MDL-44436 context: Context IDs are forced to be int
The method context::insert_context_record() sets the context::$id to
an int, while when we create an instance, the $id is often read from
a DB $record object, and is a string. The ID should always be an int.
2014-03-04 14:24:40 +08:00
Damyon Wiese 90f9c88da2 Merge branch 'MDL-42842' of https://github.com/danielneis/moodle 2014-03-04 13:41:55 +08:00
Damyon Wiese ca0361084b Merge branch 'w10_MDL-41266_m27_logging' of https://github.com/skodak/moodle 2014-03-04 13:32:43 +08:00
Damyon Wiese 267c4b4292 Merge branch 'MDL-43738_master' of git://github.com/dmonllao/moodle 2014-03-04 13:29:03 +08:00
Dan Poltawski 1723cc26f6 Merge branch 'm27_MDL-43852_SWF_Not_Embedded_By_Mediaplugin_Filter' of https://github.com/scara/moodle 2014-03-04 12:56:08 +08:00
Dan Poltawski caf7665077 MDL-43146 enrol_imsenterprise: missing sesskey protection 2014-03-04 12:24:51 +08:00
Frederic Massart f4f0aa27d4 MDL-29409 repository_alfresco: Drop support for URL/link
The current solution has two major issues. Firstly, it is using the
session key in the file URL, allowing anyone with the link to steal
the identify of the poster. Secondly, the links are not presistent
and become broken as soon as the server is restarted. Let's not
support this any more until a proper solution is found in MDL-26454.
2014-03-04 11:34:51 +08:00
Dan Poltawski d129de3761 Merge branch 'w10_MDL-44358_m27_stylesrefact' of https://github.com/skodak/moodle 2014-03-04 07:38:56 +08:00
Matteo Scaramuccia ed25d7c411 MDL-44312 Administration Take care of cronclionly and cronremotepassword. 2014-03-03 21:46:31 +01:00
Dan Poltawski 5a02170cb3 Merge branch 'MDL-44377' of https://github.com/stronk7/moodle 2014-03-03 15:15:23 +08:00
Marina Glancy 3a7b9b76c2 MDL-39990 wiki: more detailed validation of view/edit access rights 2014-03-03 14:45:03 +08:00
Petr Škoda 31f28b6ac2 MDL-44358 inform developers that CSS handling was refactored 2014-03-03 14:19:12 +08:00
Dan Poltawski f504e63daa Merge branch 'wip-MDL-44321-master' of git://github.com/marinaglancy/moodle 2014-03-03 13:50:18 +08:00
Dan Poltawski a8b07dbf98 Merge branch 'wip-MDL-44362-master' of git://github.com/marinaglancy/moodle 2014-03-03 13:33:40 +08:00
Andrew Davis 5c45ea0c6b MDL-44082 mod_chat: added a security check for users already in the chat activity 2014-03-03 12:15:54 +08:00
Tomasz Muras 1298acc707 MDL-43656 mod_feedback: availablity date logic incorrect 2014-03-03 11:23:44 +08:00
Maria Torres dc8f55c302 MDL-43916 - Email addresses incorrectly displayed
When capabilities and settings do not allow it.
2014-03-03 10:35:00 +08:00
Dan Poltawski 818f4f953c Merge branch 'w06_MDL-43344_m27_flow' of https://github.com/skodak/moodle 2014-03-03 10:07:16 +08:00
Dan Poltawski b79f8bbb54 Merge branch 'MDL-43749' of git://github.com/timhunt/moodle 2014-03-03 09:36:54 +08:00
Mary Evans afd87a0b5f MDL-44328 theme_bootstrapbase: Improved clean theme calendar styling. 2014-03-03 01:36:29 +00:00
Sam Hemelryk 01773a6d00 MDL-44180 mod_quiz: unified @package use 2014-03-03 08:37:06 +13:00
Tim Hunt b111c177f0 MDL-43749 quiz DB tables. Put install.xml in a more logical order.
All settings tables before all user data.
2014-03-02 10:01:22 +01:00
Tim Hunt ccba5b8805 MDL-43749 normalise quiz database structure.
The sequence of questions that made up a quiz used to be stored as a
comma-separated list in quiz.questions. Now the same information is
stored in the rows in the quiz_slots table. This is not just 'better' in
a database design sense, but it allows for the future changes we will
need as we enhance the quiz in the MDL-40987 epic.

Having changed the database structure, all the rest of the code needs to
be changed to account for it, and that is done here.

Note that there are not many unit tests for the changed bit. That is
because as part of MDL-40987 we will be changing the code further, and
we will add unit tests then.
2014-03-02 10:00:40 +01:00
Tim Hunt 9eec598ca9 MDL-44251 fix typo in DML unit tests. 2014-03-02 09:41:17 +01:00
Tim Hunt c185726964 MDL-44251 DB helper to update rows without violating a unique index. 2014-03-02 09:41:03 +01:00
Gareth J Barnard d8037b26a0 MDL-44074 theme_bootstrapbase: No 768px-979px & 1200px+ empty blk span calcs. 2014-03-01 09:37:59 +00:00
AMOS bot 3c25f77457 Automatically generated installer lang files 2014-03-01 00:56:02 +00:00
Gordon Bateson 840c1c554d MDL-43852 Filters Fixed naked-OR conditions. 2014-02-28 23:55:17 +01:00
Eloy Lafuente (stronk7) 7b9ea861b6 MDL-44377 dml: enforce non-empty prefix for sqlsrv
Only MySQL is allowed to run Moodle instances without
(with an empty) database prefix. The rationale is that
"user" is a reserved word in every RDBMS but MySQL.

Before this patch, installation was breaking badly, when
the "user" CREATE TABLE statement was issued. With this
patch the error is shown earlier (on connection) preventing
any advance/use of the database.

This check is present in all the drivers, just sqlsrv was missing it.
2014-02-28 10:12:03 +01:00
Marina Glancy 6d59fdbab9 MDL-44258 workshop: adjust tests with MDL-43738 2014-02-28 17:09:57 +08:00
Marina Glancy 21d2280361 MDL-44362 recentactivity: fix regressions from MDL-44055 2014-02-28 16:39:32 +08:00
Marina Glancy 48ca9d3a8c MDL-44258 Behat test for workshop, automate MDLQA-99 2014-02-28 16:38:54 +08:00
Marina Glancy 7d96cf2369 MDL-44287 glossary: do not output before redirecting 2014-02-28 16:38:33 +08:00
Marina Glancy 6f9354beb0 MDL-44287 glossary: use course mod api to create new module when importing as new 2014-02-28 16:38:33 +08:00
Marina Glancy 74d45861e9 MDL-44321 events: Text correction in assessable events 2014-02-28 16:37:36 +08:00
Marina Glancy cd5be9a504 MDL-44321 events: make sure the full object is passed to add_record_snapshot() 2014-02-28 16:37:36 +08:00
Marina Glancy 5e70ea26bb MDL-44321 events: debug on errors in add_record_snapshot()
also clone object returned by get_record_snapshot() to prevent accidental changing of $COURSE or other important objects
2014-02-28 16:37:31 +08:00
Marina Glancy 1e242b41af MDL-44321 events: cleaning up course_module_instance_list_viewed event 2014-02-28 16:36:09 +08:00
Marina Glancy fbc4b77841 MDL-44321 events: cleaning up course_module_viewed event 2014-02-28 16:36:09 +08:00
Tim Hunt 73465743f9 MDL-44278 Quiz time overrides: use the same step everywhere.
On the main form, you could select to the nearest minute. On
the override form you could only select to the nearest 5 minutes.
2014-02-28 08:58:58 +01:00
Tim Hunt 8d3debf360 MDL-41248 completion: fix non-translatable text.
There were two hard-coded strings. Thanks to Guido Hornig for the suggested fix.
2014-02-28 08:10:54 +01:00
Jerome Mouneyrac 4a521e6596 MDL-32917 port YUI2 Moodle calendar into a shifted YUI3 Calendar 2014-02-28 15:05:43 +08:00
Petr Škoda 993d8d838f MDL-41266 improve naming of log reader interfaces 2014-02-28 14:52:30 +08:00
Petr Škoda 43d91d7665 MDL-42891 fix $interface parameter in dummy log manager and add unit tests 2014-02-28 14:52:30 +08:00
Ankit Agarwal e083efe0ac MDL-42891 logging: Add support for getting readers that implement a specific interface in log manager 2014-02-28 14:52:29 +08:00
Ankit Agarwal 8bae0d0d80 MDL-43759 logging: Rename trait writer to buffered_writer 2014-02-28 14:52:29 +08:00
Michael de Raadt ff2990ab9c MDL-41266 improve log store strings 2014-02-28 14:52:29 +08:00
Rajesh Taneja a825e33aa1 MDL-37658 core: Event strings added to core 2014-02-28 14:52:29 +08:00
Petr Škoda ce8a372a31 MDL-41269 use courseid index instead of contextid because new events are going to use courseid 2014-02-28 14:52:28 +08:00
Petr Škoda 0532c5852e MDL-41269 add standard log table indexes 2014-02-28 14:52:28 +08:00
Petr Škoda 35adf145dd MDL-41268 keep full backwards compatibility when installing new logging subsystem 2014-02-28 14:52:28 +08:00
Petr Škoda bdae738e38 MDL-41266 add new is_logging() method to log readers
This will be useful in live logs report where we want only readers that have latest data.
2014-02-28 14:52:28 +08:00
Petr Škoda 0852f9c625 MDL-41266 fix coding style issues 2014-02-28 14:52:27 +08:00
Petr Škoda 0d9d9efb65 MDL-41268 fix cron execution in new log manager 2014-02-28 14:52:27 +08:00
Petr Škoda bdaf91fd13 MDL-43931 add logging unit tests 2014-02-28 14:52:27 +08:00
Ankit Agarwal ed8f7c308b MDL-39933 logging: Get external dabatabase working. 2014-02-28 14:52:27 +08:00
Petr Škoda 81fbecc049 MDL-41269 add separate ip column to standard log table 2014-02-28 14:52:26 +08:00
Petr Škoda 770eac9805 MDL-41269 disable all logging during phpunit testing 2014-02-28 14:52:26 +08:00
Petr Škoda 30e55e9ac6 MDL-41269 add standard log life time and add missing lang strings 2014-02-28 14:52:26 +08:00
Ankit Agarwal ae0770513f MDL-43759 logging: Update stores to remove duplicated code 2014-02-28 14:52:26 +08:00
Ankit Agarwal f7b2b1fb7a MDL-43759 logging: Add helper traits for stores and add support for buffering 2014-02-28 14:52:25 +08:00
Rajesh Taneja b1e7be7318 MDL-37658 logging: convert all standard log fields to legacy log fields 2014-02-28 14:52:25 +08:00
Ankit Agarwal c154abd095 MDL-41266 logging: Legacy reader should convert passed courseid to course in sql queries 2014-02-28 14:52:25 +08:00
Petr Skoda ecf9a0c5a6 MDL-41266 move reader access control out from manager
We need to let reports decide if they want to use capability to access readers.
2014-02-28 14:52:25 +08:00
Marina Glancy 53dd210aff MDL-37658 logging: fixed bug in legacy logging 2014-02-28 14:52:24 +08:00
Petr Škoda 7eaca5a810 MDL-37658 add new logging API with basic implemenation 2014-02-28 14:52:24 +08:00
Petr Škoda 98245a84a2 MDL-44358 simplify CSS processing
The affected code areas are not supposed to be used in any add-ons,
the backwards compatibility should not be a concern for us.
2014-02-28 14:50:10 +08:00
Damyon Wiese 76e4de31cc MDL-25505 Tasks: Fix for scheduled task bug on the last day of the month.
On the last day of the month, the scheduled task next time calculation was wrapping
to the 0th day of the month (which is not a valid day).
2014-02-28 13:14:58 +08:00
Damyon Wiese d0b114f95e weekly release 2.7dev 2014-02-28 10:02:14 +08:00
Damyon Wiese 811ba97093 NOBUG: Fixed file access permissions 2014-02-28 10:02:13 +08:00
Damyon Wiese c79ee48b67 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-02-28 10:02:04 +08:00
David Monllao 8aff0eec9d MDL-43738 behat: Refactoring the field type guesser
The previous behaviour delegates the responsability
of overwriting the 3 public methods to the child
classes, now the field type or moodleform field is
guessed earlier in the execution flow.

Other changes introduced here:
- Fix wrong moodleform detection when there is a form
  in the page but the field we are dealing with is
  not inside it.
- Updating the last week feature files to these new
  step definitions.
- Some coding style changes.
2014-02-27 18:43:20 +08:00
David Monllao decf1e14c8 MDL-43738 behat: More info about how to get/set fields 2014-02-27 18:22:06 +08:00
David Monllao f083d6145e MDL-43738 behat: Updating features files
The following used steps were replaced by the ones
added in this issue:
- I fill the moodle form with
- I fill in with
- I select from
- I select radio button
- I check
- I uncheck
- the field should match

Also removing test for deprecated steps:
- the ASD checkbox should be checked
- the ASD checkbox should not be checked
2014-02-27 18:22:05 +08:00
David Monllao a525414125 MDL-43738 behat: Updating steps definitions and deprecating methods 2014-02-27 18:22:05 +08:00
David Monllao c3f1e9532d MDL-43738 behat: Normalization and major refactoring of getters and setters
Every single step that sets or gets a value from a field
has been updated to follow the same behaviour both when
using it through a single step or through generic steps
like "I fill the moodle form with:", to resume all the
changes:
- Created a behat_form_group to re-guess the field type
  and act appropriately setting and getting it's value
- Normalize all getters and setters to use behat_form_field
  children
- Complete behat_form_checkbox to trigger the appropiate JS
  event needed to perform some JS scripts that are listening
- Refactor MDL-43713 multi-select changes and remove
  the two new steps introduced there as that behaviour can
  be managed from the generic getter
- Added a new step definition to check a capability permission
  as we changed the way radio buttons gets it's value
2014-02-27 18:22:03 +08:00
David Monllao becb7e5118 MDL-43738 behat: Functional tests for fields management
We are cheating with this .feature file as this
is not a behaviour and we are just testing the
framework, but in this case I think that everybody
will agree on the need of doing it, as every browser
behaves differently and minor changes in the getters
and setters can easily end up breaking the behaviours.

All credit goes to Eloy Lafuente (stronk7).
2014-02-27 18:21:43 +08:00
Eloy Lafuente (stronk7) 5f66d46e22 MDL-43713 behat: improve multi-select support
This patch implements:

1) Normalization of options. Before the patch options
in a select were being returned as "op1 op2 op3" by selenium
and "op1 op2 op3" by goutte. With the patch, those lists
are always returned like "op1, op2, op3". If real commas are
needed when handling multiple selects they should
be escaped with backslash in feature files.

2) Support for selecting multiple options. Before the patch
only one option was selected and a new selection was cleaning the
previous one. With the patch it's possible to pass "op1, op2" in
these steps:
  - I fill the moodle form with (table)
  - I select "OPTION_STRING" from "SELECT_STRING"

3) Ability to match multiple options in this steps. Before the
patch matching of multiple was really random, now every every
passed option ("opt1, opt2") is individually verified. It applies
to these 2 steps:
  - the "ELEMENT" select box should contain "OPTIONS"
  - the "ELEMENT" select box should not contain "OPTIONS"

4) Two new steps able to verify if a form have some options selected or no:
  - the "ELEMENT" select box should contain "OPTIONS" selected
  - the "ELEMENT" select box should contain "OPTIONS" not selected

5) Change get_value from xpath search to Mink's getValue() that is immediate
(does not need form submission) and works for all browsers but Safari, that
fails because of the extra ->click() issued.

Note all the changes 1-4 only affect to multi-select fields. Single
selects should continue working 100% the same.

The change 5) causes Safari to fail. The problem has been traced down to
the extra ->click() present there. Anyway there are not test cases
requiring that "immediate" evaluation right now. Only the special feature
file attached verifies it.
2014-02-27 18:21:43 +08:00
David Monllao b71419ae04 MDL-25505 behat: Adding a time gap between two cron runs.
According to \core\task\scheduled_task::get_next_scheduled_time() we
wait 61 seconds, as the next scheduled time is in the next minute.
2014-02-27 14:29:20 +08:00
David Monllao 0d5b3cb59b MDL-44286 behat: Fixing JS code error
PhantomJS console shows a JS error regarding
an undefined Syn var; as explained by Andrew
Nicols this is caused by Syn supported features
checker, the change in moodle-behat-extension
solves this problem.
2014-02-27 13:27:18 +08:00
Damyon Wiese 00319097c5 Merge branch 'MDL-38903-master' of git://github.com/phalacee/moodle 2014-02-27 13:18:27 +08:00
Jason Fowler 00bc0844b0 MDL-38903 Filepicker: Improving Bootstrap button support 2014-02-27 10:51:03 +08:00
Andrew Nicols 051548b897 MDL-44361 Javascript: Fix js_pending injector Y.io
The previous (slightly whacky) way that we were doing this in previous
versions is no longer supported (and was arguably only supported by being
buggy).

The correct way of doing this is to use a trigger.
2014-02-27 01:16:09 +08:00
shashirepo cf9f5a1733 MDL-44095 frontend: fix typos in readme file 2014-02-26 15:54:06 +05:30
Damyon Wiese 642df831f9 MDL-44139 Remove adminwarning from base css.
Grr. Afterburner has nothing defined for adminwarning before, so this
makes it look all red and splotchy.
2014-02-26 15:30:44 +08:00
Andrew Nicols 4d24e65cb8 MDL-44361 Import YUI 3.15.0
Includes @VERSION@ fix
2014-02-26 14:39:03 +08:00
Damyon Wiese 2fda38c2ab MDL-44139 Themes: Add default definitions for .adminwarning and .adminerror to base
These were missing from base, but were defined in standard and canvas, which 99% of old themes
inherit from. But they are critical for the proper display of moodle and should at least have a
default definition in all themes (e.g. afterburner only inherits from base).

This background color has been tested for contrast accessibility.
2014-02-26 14:07:07 +08:00
Damyon Wiese 309ae8921f MDL-25499: Centralise management of all types of cron tasks
Centralise management of all types of cron tasks with registration, scheduling,
parallel task conflicts(blocking) and running once off tasks, all using an
administration screen.

This is a combination of several issues:

MDL-25502: Added "black magic" task allocator for cron
MDL-25503: Add step to cron to run all scheduled tasks
MDL-25504 cron: Refactor to use scheduler
MDL-25505: Add an admin interface to schedule tasks via cron.
MDL-25507: Add support for adhoc tasks.
2014-02-26 12:03:46 +08:00
Daniel Neis Araujo 644b0d8691 MDL-42842 Change availability fields to date_time_selector 2014-02-25 10:53:50 -03:00
Damyon Wiese 45fdcb7ce3 MDL-43723 Blocks drag and drop: Javascript cleanup
Declare the selector instead of repeating it several times.
2014-02-25 17:01:45 +08:00
Damyon Wiese 58ff6e51df Merge branch 'MDL-43723-master-nomerge2' of git://github.com/mouneyrac/moodle 2014-02-25 16:43:56 +08:00
Dan Poltawski d4c01301ec Merge branch 'MDL-43882_master' of git://github.com/dmonllao/moodle 2014-02-25 15:33:58 +08:00
Jerome Mouneyrac c78f19d153 MDL-43266 Testing sites are cleaning all test dataroot contents 2014-02-25 14:47:25 +08:00
Damyon Wiese 5c7a266e65 Merge branch '44255-27' of git://github.com/samhemelryk/moodle
Conflicts:
	user/profile.php
2014-02-25 14:14:31 +08:00
Damyon Wiese 03b8d9e3c3 Merge branch 'wip-mdl-40919' of https://github.com/rajeshtaneja/moodle 2014-02-25 12:44:35 +08:00
Rajesh Taneja e49b94c936 MDL-18633 admin: Added capability string for user:viewlastip 2014-02-25 12:30:45 +08:00
David Monllao 3b63551301 MDL-43882 lib: Adding info about the new performance metric
The performance metric was introduced in MDL-43758.
2014-02-25 11:30:38 +08:00
Dan Poltawski a5fc3f08ed Merge branch '44185-27' of git://github.com/samhemelryk/moodle 2014-02-25 11:22:24 +08:00
Damyon Wiese 494afb8180 Merge branch '44315-27' of git://github.com/samhemelryk/moodle 2014-02-25 11:09:53 +08:00
Damyon Wiese a18c3591c6 MDL-40619 mod_quiz: Remove commented non-js behat scenario 2014-02-25 11:02:03 +08:00
Damyon Wiese fce9daa806 Merge branch 'wip-MDL-40619-master' of git://github.com/marinaglancy/moodle 2014-02-25 10:53:09 +08:00
Dan Poltawski 3d4cec649a Merge branch 'MDL-40916_master' of https://github.com/markn86/moodle 2014-02-25 10:47:20 +08:00
Damyon Wiese 63e604f8b1 Merge branch 'w08_MDL-42889_m27_vir' of https://github.com/skodak/moodle 2014-02-25 10:32:44 +08:00
Dan Poltawski e78e671f29 Merge branch 'MDL-43405_master' of https://github.com/markn86/moodle 2014-02-25 10:30:35 +08:00
Damyon Wiese b33fbd428e Merge branch 'MDL-42923' of git://github.com/jleyva/moodle
Conflicts:
	version.php
2014-02-25 10:26:22 +08:00
Dan Poltawski 305b15f4ab Merge branch 'MDL-43478-master-v4' of git://github.com/jamiepratt/moodle 2014-02-25 09:27:35 +08:00
Damyon Wiese 8442725219 MDL-38903: Version bump for lang strings 2014-02-25 09:25:43 +08:00
Damyon Wiese ed24890b68 Merge branch 'MDL-38903-master' of git://github.com/phalacee/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-02-25 09:21:30 +08:00
Jason Fowler 88d366e595 MDL-38903 File picker: making upload form with more semantic HTML 2014-02-25 07:51:53 +08:00
Damyon Wiese 237243db02 Merge branch 'MDL-43837_master' of git://github.com/dmonllao/moodle 2014-02-24 16:56:05 +08:00
Andrew Nicols 29ee3cf789 MDL-44101 Javascript: Apply widget-focusonclose to some core dialogues
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2014-02-24 16:31:55 +08:00
Andrew Nicols 7ae6ce009e MDL-44101 Javascript: Introduce a module to focus after widget close
This module supports focusing on a specified Node, or attempting to
determine the Node which caused the displayed the Widget to return focus to
that location.
2014-02-24 16:31:09 +08:00
Damyon Wiese dea614e493 Merge branch 'MDL-44108_master' of git://github.com/dmonllao/moodle 2014-02-24 15:42:32 +08:00
Damyon Wiese 8c3966773b Merge branch 'MDL-44111_master' of git://github.com/dmonllao/moodle 2014-02-24 15:39:32 +08:00
Damyon Wiese ccc2966709 Merge branch 'wip-MDL-44139-master' of git://github.com/ds125v/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-02-24 15:28:51 +08:00
Damyon Wiese 6258e288ae Merge branch '44159-27' of git://github.com/samhemelryk/moodle 2014-02-24 15:26:05 +08:00
Damyon Wiese 28a03399b3 Merge branch 'wip-MDL-44168-master' of git://github.com/ds125v/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-02-24 15:20:49 +08:00
Damyon Wiese 956c7f2c39 Merge branch '41175-27' of git://github.com/samhemelryk/moodle 2014-02-24 15:15:00 +08:00
Damyon Wiese 5bc18d295a Merge branch '41176-27' of git://github.com/samhemelryk/moodle 2014-02-24 15:13:00 +08:00
Damyon Wiese 801e26ed64 Merge branch '41177-27' of git://github.com/samhemelryk/moodle 2014-02-24 15:10:53 +08:00
Damyon Wiese 9383bef658 Merge branch '41178-27' of git://github.com/samhemelryk/moodle 2014-02-24 15:08:33 +08:00
Ankit Agarwal df9a6c0114 MDL-44272 events: Fix incorrect urls in course module events 2014-02-24 15:08:22 +08:00
Damyon Wiese 221c125cb3 MDL-44319 phpdocs mod_page: Remove @subpackage tags and add @category 2014-02-24 15:04:33 +08:00
Rajesh Taneja 9e176aa2f5 MDL-40919 mod_survey: replaced add_to_log with events 2014-02-24 15:00:00 +08:00
Damyon Wiese 18bc3faef9 Merge branch '41179-27' of git://github.com/samhemelryk/moodle 2014-02-24 14:51:08 +08:00
Damyon Wiese 5c47971b4a Merge branch '44182-27' of git://github.com/samhemelryk/moodle 2014-02-24 14:49:10 +08:00
Damyon Wiese b68658325b Merge branch '44183-27' of git://github.com/samhemelryk/moodle 2014-02-24 14:46:16 +08:00
Damyon Wiese f08c69aba2 Merge branch 'MDL-44214-master' of git://github.com/andrewnicols/moodle 2014-02-24 14:41:29 +08:00
Damyon Wiese 2926b25492 Merge branch 'MDL-44247-master' of git://github.com/FMCorz/moodle 2014-02-24 14:32:49 +08:00
Damyon Wiese 8da433f045 MDL-44264 Badges: Cleanup imports in previous commit. 2014-02-24 13:48:18 +08:00
Damyon Wiese 9a85b4e053 Merge branch 'MDL-44264' of https://github.com/merrill-oakland/moodle 2014-02-24 13:40:47 +08:00
Damyon Wiese e848a930d2 Merge branch '44279-27' of git://github.com/samhemelryk/moodle 2014-02-24 13:37:52 +08:00
Damyon Wiese e3eaf61db1 Merge branch 'MDL-44286_master' of git://github.com/dmonllao/moodle 2014-02-24 13:29:58 +08:00
Damyon Wiese 13c12da2e5 Merge branch 'MDL-44288' of git://github.com/timhunt/moodle 2014-02-24 13:27:12 +08:00
Damyon Wiese b80210fcd2 MDL-18633 User: Fixed calls to html_writer on user/profile page. 2014-02-24 13:19:17 +08:00
Damyon Wiese 164ad1a30a Merge branch 'MDL-18633' of https://github.com/danielneis/moodle 2014-02-24 13:16:41 +08:00
Damyon Wiese 1ed6bd87a2 Merge branch 'MDL-44006-m' of https://github.com/micaherne/moodle 2014-02-24 12:30:55 +08:00
Damyon Wiese 25de7d88e7 Merge branch 'MDL-44269_master' of git://github.com/lazydaisy/moodle 2014-02-24 11:42:51 +08:00
Damyon Wiese aeacaa141e Merge branch '44217-27' of git://github.com/samhemelryk/moodle 2014-02-24 11:13:38 +08:00
Damyon Wiese 0721fb9113 Merge branch 'MDL-34319_master' of https://github.com/markn86/moodle 2014-02-24 11:08:03 +08:00
Sam Hemelryk 24c7fd007a MDL-44217 theme_bootstrapbase: darkend link colour by 5% for accessibility 2014-02-24 16:07:02 +13:00
Yuliya Bozhko 762b2a6b9e MDL-41585 badges: Add a note that badge recipient is a deleted user
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2014-02-24 14:57:40 +13:00
Damyon Wiese 89ede7e12d Merge branch 'MDL-41767-master' of git://github.com/FMCorz/moodle 2014-02-24 09:57:15 +08:00
David Monllao 74c78e7483 MDL-43837 behat: Adding reduced timeouts
There are steps where we want to check that
"something" does not appear in the page
or does not exist. We still have to spin
but we don't need to spin for 6 seconds.
2014-02-24 09:43:24 +08:00
Sam Hemelryk 9bcde27f66 MDL-44185 course: fixed @package typo in report/lib.php 2014-02-24 09:26:59 +13:00
Sam Hemelryk a2ed6e69f9 MDL-44255 user: tidied up phpdocs and coding style 2014-02-24 09:23:47 +13:00
Sam Hemelryk 2ef8ff9e05 MDL-44315 phpdoc: fixed up typos and made up tags 2014-02-24 09:13:31 +13:00
James Pratt 99caa248a8 MDL-43478 quiz responses report : display last / first / all tries
when using multiple try question behaviour
2014-02-23 13:39:08 +07:00
Daniel Neis Araujo 334e91e82c MDL-41173 Change enrolenddate from "date_selector" to "date_time_selector" 2014-02-21 17:15:27 -03:00
Juan Leyva cb9d825754 MDL-42923 Add renamed web services to the Mobile app service
Keep the deprecated ones for backwards compatibility
2014-02-21 15:26:45 +01:00
David Monllao 702851c071 MDL-44108 behat: Adding a roles data generator 2014-02-21 13:25:44 +08:00
David Monllao 167486b316 MDL-44111 behat: Limiting dump files filename size 2014-02-21 13:21:58 +08:00
David Monllao 3af7eea68d MDL-43882 dml: New test for perf_get_xxxx() methods 2014-02-21 13:21:13 +08:00
David Monllao 67ecac8933 MDL-44286 behat: Updating to our custom Syn library 2014-02-21 10:17:59 +08:00
AMOS bot 93d257d179 Automatically generated installer lang files 2014-02-21 00:45:29 +00:00
Sam Hemelryk 854859e1b0 MDL-42279 user: fixed typo in user_get_user_details_courses 2014-02-21 08:34:49 +13:00
Sam Hemelryk 1d2fa3af5a MDL-44279 user: added unit test to trigger known bug 2014-02-21 08:34:49 +13:00
Sam Hemelryk 5cdcfcb988 MDL-44183 mod_workshop: unified @package use 2014-02-21 08:33:40 +13:00
Sam Hemelryk da9bddbeeb MDL-44182 mod_survey: unified @package use 2014-02-21 08:33:36 +13:00
Sam Hemelryk 593b838546 MDL-44159 mod_wiki: unify @package use 2014-02-21 08:32:58 +13:00
Tim Hunt dfcaa2450c MDL-44288 qtype_calculatedsimple fix validation notice.
The notice happend if you clicked Save changes before Find the wild
cards {x..} present in the correct answer formulas.
2014-02-20 13:01:47 +00:00
Eloy Lafuente (stronk7) ec4c8161a4 weekly release 2.7dev 2014-02-20 12:43:03 +01:00
Eloy Lafuente (stronk7) 1a561214af Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-02-20 12:42:59 +01:00
Damyon Wiese 666abe6ecb MDL-43930 assign: Do not log when user is logged in as someone else.
I do not agree with this behaviour - but this makes it consistent with other modules.
2014-02-20 12:30:37 +08:00
Mary Evans e11558bca3 MDL-44269 theme_clean: Change location of navbar (breadcumb) to below logo. 2014-02-19 22:03:38 +00:00
Damyon Wiese d4e5757992 MDL-44118 question engine: Fix bad merge conflict resolution (again)
This time for sure (sorry).
2014-02-19 10:03:37 +08:00
Damyon Wiese 0d7e83c4e4 MDL-44118 question engine: Fix bad merge conflict resolution
Version numbers were out of order in upgrade file (my bad).
2014-02-19 09:35:57 +08:00
Damyon Wiese 6071a209fe Merge branch 'MDL-44118_2' of git://github.com/timhunt/moodle
Conflicts:
	version.php
2014-02-19 09:08:42 +08:00
Eloy Lafuente (stronk7) a7bf707974 Merge branch '44213-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:33:20 +01:00
Eloy Lafuente (stronk7) 88f1b3d6b7 Merge branch '44211-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:32:25 +01:00
Eloy Lafuente (stronk7) 86252eb6df Merge branch '44210-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:31:13 +01:00
Eloy Lafuente (stronk7) 8817802bfd Merge branch '44209-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:30:43 +01:00
Eloy Lafuente (stronk7) 6030ef565f Merge branch '44208-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:28:53 +01:00
Eloy Lafuente (stronk7) bf9c946eef MDL-44207 theme_nimble: fix incorrect tab. 2014-02-19 01:23:59 +01:00
Eloy Lafuente (stronk7) 22e4df8e63 Merge branch '44207-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:23:04 +01:00
Eloy Lafuente (stronk7) faefe571c5 Merge branch '44206-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:21:16 +01:00
Eloy Lafuente (stronk7) 6151f9de4c Merge branch '44205-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:20:10 +01:00
Eloy Lafuente (stronk7) bb0949467e Merge branch '44204-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:19:43 +01:00
Eloy Lafuente (stronk7) 5f88a2fc11 Merge branch '44203-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:19:04 +01:00
Eloy Lafuente (stronk7) 360a0b4480 Merge branch '44202-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:12:57 +01:00
Eloy Lafuente (stronk7) 361d13c04a Merge branch '44201-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:11:46 +01:00
Eloy Lafuente (stronk7) f02613d6d6 Merge branch '44200-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:11:06 +01:00
Eloy Lafuente (stronk7) c753d76879 Merge branch '44199-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:08:58 +01:00
Eloy Lafuente (stronk7) 0919e70204 Merge branch '44198-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:08:23 +01:00
Eloy Lafuente (stronk7) 0a3f8b26e4 Merge branch '44197-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:03:57 +01:00
Eloy Lafuente (stronk7) c14a54c230 Merge branch '44196-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:03:22 +01:00
Eloy Lafuente (stronk7) a9d44ff518 Merge branch '44195-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:02:00 +01:00
Eloy Lafuente (stronk7) bfe7c33c07 Merge branch '44194-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:01:27 +01:00
Eloy Lafuente (stronk7) 52c5fb1c0f Merge branch '44193-27' of git://github.com/samhemelryk/moodle 2014-02-19 01:00:32 +01:00
Eloy Lafuente (stronk7) b9b38ea791 MDL-43265 question: incorrect closing parenthesis 2014-02-19 00:10:47 +01:00
Eloy Lafuente (stronk7) 8167063ac1 Merge branch 'MDL-43265_new' of https://github.com/jacks92/moodle 2014-02-18 23:55:52 +01:00
Eloy Lafuente (stronk7) 33ce661816 Merge branch 'MDL-43337-master' of git://github.com/FMCorz/moodle 2014-02-18 23:24:45 +01:00
Eric Merrill 786163a7cb MDL-44264 badges Add badges to the user short profile page. 2014-02-18 15:05:47 -05:00
Daniel Neis Araujo 9d9361e82d MDL-18633 User profile: add last ip field to user view 2014-02-18 09:42:28 -03:00
Tim Hunt 30de48d285 MDL-44118 drop old quiz/question attempt data.
This data should all have been upgraded when moving to Moodle 2.1. It
was only kept as a back-up, and now, after 3 years have past, we can
clean it up.
2014-02-18 11:55:26 +00:00
Tim Hunt 4e8a07d28b MDL-44118 remove the qeupgradehelper tool
and associated code that was only used by it.
2014-02-18 11:55:21 +00:00
Tim Hunt e4c20157c0 MDL-44118 new environment check are all quiz attempts upgraded.
In Moodle 2.1, there was a major DB upgrade relating to questions, and
it was possible to delay some of that upgrade. Now, those DB tables are
changing again, and the time has come to insist that all the updata has
been upgraded (or deleted).
2014-02-18 11:55:17 +00:00
Damyon Wiese f68e555684 Merge branch 'MDL-39337' of git://github.com/apsdehal/moodle 2014-02-18 15:37:49 +08:00
Dan Poltawski 7f1a4f6e22 Merge branch '44212-27' of git://github.com/samhemelryk/moodle 2014-02-18 14:41:34 +08:00
Sam Hemelryk 6da956e607 MDL-44181 mod_scorm: unified @package use
Conflicts:
	mod/scorm/db/upgrade.php
2014-02-18 14:19:21 +08:00
Dan Poltawski 197e3ccb8f Merge branch 'master_MDL-43541' of git://github.com/danmarsden/moodle 2014-02-18 14:13:58 +08:00
Damyon Wiese 60c85b8596 Merge branch 'MDL-43802_master' of git://github.com/dmonllao/moodle 2014-02-18 14:01:33 +08:00
Damyon Wiese b41ea78c39 Merge branch 'MDL-44187-master' of git://github.com/andrewnicols/moodle 2014-02-18 13:56:11 +08:00
David Monllao fbd904ef41 MDL-43802 behat: Testing deleted activity with JS enabled 2014-02-18 13:55:08 +08:00
Damyon Wiese 603427a9e1 MDL-40921 mod_workshop: Add assertEventContextNotUsed to events tests. 2014-02-18 13:46:24 +08:00
Damyon Wiese 5c219bbc84 Merge branch 'w06_MDL-40921_m27_workshopevents' of https://github.com/skodak/moodle 2014-02-18 13:46:11 +08:00
Dan Poltawski d08598bc8b Merge branch 'MDL-35103' of git://github.com/jmvedrine/moodle 2014-02-18 13:39:08 +08:00
Damyon Wiese 62f641efd3 Merge branch 'MDL-41646' of git://github.com/apsdehal/moodle 2014-02-18 12:40:56 +08:00
Damyon Wiese 0e84ecefcc Merge branch 'w07_MDL-42541_m27_portevent' of git://github.com/skodak/moodle
Conflicts:
	version.php
2014-02-18 12:00:45 +08:00
Mark Nelson a2a7726f54 MDL-40916 mod_imscp: replaced 'view all' add_to_log call with an event 2014-02-17 19:07:48 -08:00
Mark Nelson 09e125f7d4 MDL-40916 mod_imscp: replaced 'view' add_to_log call with an event 2014-02-17 18:54:23 -08:00
Damyon Wiese d306807e02 Merge branch 'MDL-43479-master' of https://github.com/jamiepratt/moodle 2014-02-18 10:16:15 +08:00
Petr Škoda 114e3209b1 MDL-42889 cleanup obsolete clam relatd code
Since 2.0 all uploaded files need to go through the file picker which does the scanning,
the idea is that it is more important to warn users that their computer is crawling
with viruses. All teachers are supposed to have local up-to-date antivirus software!

Since 2.0 we are not scanning existing files on server, in future we might use the
status flag in files table to indicate the file is problematic, but still we should
never detele anthing from the filedir...
2014-02-18 09:22:30 +08:00
Eloy Lafuente (stronk7) 974cc3b0c2 Merge branch '43822-27' of git://github.com/samhemelryk/moodle 2014-02-18 01:55:23 +01:00
Eloy Lafuente (stronk7) f3da891068 Merge branch '44184-27' of git://github.com/samhemelryk/moodle 2014-02-18 01:50:24 +01:00
Eloy Lafuente (stronk7) 21f323781d Merge branch '44103-27' of git://github.com/samhemelryk/moodle 2014-02-18 01:47:31 +01:00
Eloy Lafuente (stronk7) a6d5288e41 Merge branch '44104-27' of git://github.com/samhemelryk/moodle 2014-02-18 01:46:47 +01:00
Eloy Lafuente (stronk7) af928012ef Merge branch '44105-27' of git://github.com/samhemelryk/moodle 2014-02-18 01:46:14 +01:00
Eloy Lafuente (stronk7) 993414fdf6 MDL-44151 Amend subplugin packages.
This commit fixed the @package for all assignment subplugins.
Also adds a tiny change in the community block (MDL-44120).
2014-02-18 01:33:05 +01:00
Eloy Lafuente (stronk7) 450ddd2e4d Merge branch '44151-27' of git://github.com/samhemelryk/moodle 2014-02-18 01:27:04 +01:00
Eloy Lafuente (stronk7) 6f9b4cccb4 Merge branch '44120-27' of git://github.com/samhemelryk/moodle 2014-02-18 01:02:22 +01:00
Eloy Lafuente (stronk7) 5234427f2d Merge branch '44152-27' of git://github.com/samhemelryk/moodle 2014-02-18 00:56:26 +01:00
Eloy Lafuente (stronk7) e6b9b5538d Merge branch '44153-27' of git://github.com/samhemelryk/moodle 2014-02-18 00:55:53 +01:00
Eloy Lafuente (stronk7) 7927245288 Merge branch '44154-27' of git://github.com/samhemelryk/moodle 2014-02-18 00:55:19 +01:00
Eloy Lafuente (stronk7) b629de817a Merge branch '44155-27' of git://github.com/samhemelryk/moodle 2014-02-18 00:54:28 +01:00
Eloy Lafuente (stronk7) 08e622b248 Merge branch '44156-27' of git://github.com/samhemelryk/moodle 2014-02-18 00:53:22 +01:00
Eloy Lafuente (stronk7) 6a586f0036 Merge branch '44157-27' of git://github.com/samhemelryk/moodle 2014-02-18 00:51:33 +01:00
Sam Hemelryk ca3aff3de2 MDL-44151 mod_assignment: unified @package use 2014-02-18 11:26:05 +13:00
Sam Hemelryk a6be3193d8 MDL-44152 mod_chat: unified @package use 2014-02-18 11:25:08 +13:00
Sam Hemelryk c7afe6b76f MDL-44153 mod_choice: unified @package use 2014-02-18 11:24:30 +13:00
Sam Hemelryk 002a2a44a7 MDL-44154 mod_data: unified @package use 2014-02-18 11:22:41 +13:00
Sam Hemelryk 11e41f1ae4 MDL-44156 mod_resource: unified @package use 2014-02-18 11:19:33 +13:00
Sam Hemelryk 01030f1be6 MDL-44157 mod_forum: unified @package use 2014-02-18 11:15:10 +13:00
Sam Hemelryk 9714baa1bb MDL-44155 mod_feedback: unified @package use 2014-02-18 10:50:13 +13:00
Sam Hemelryk 4048f825f3 MDL-44213 theme_standardold: unified @package use and improved coding style 2014-02-18 10:24:46 +13:00
David Monllao 0807908f17 MDL-44085 course: Replace JS confirm() by YUI confirm 2014-02-18 09:44:05 +13:00
Sam Hemelryk c10affa57b Merge branch 'MDL-43997-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2014-02-18 09:31:32 +13:00
Sam Hemelryk 38226a3f4a Merge branch 'MDL-44161-master' of git://github.com/andrewnicols/moodle 2014-02-18 09:30:50 +13:00
Eloy Lafuente (stronk7) 1f09c26298 Merge branch 'MDL-41759-master' of https://github.com/jamiepratt/moodle 2014-02-17 15:45:01 +01:00
James Pratt 9d3d859c7f MDL-41759 quiz statistics : install.xml & upgrade.php difference 2014-02-17 19:25:10 +07:00
David Scotson a0b767e741 MDL-44168 html: border=1 on regexdetect table 2014-02-17 11:45:51 +00:00
sam marshall 5c3a54c478 MDL-44065 Course: _add_instance exception leads to inconsistent db
If an exception occurs during a module's _add_instance function, this
results in a course_modules entry with instance=0. The system already
handled returning false to this function, but did not handle
exceptions.
2014-02-17 10:51:09 +00:00
Damyon Wiese a0cb27f72a Merge branch 'MDL-43539-master' of https://github.com/jamiepratt/moodle 2014-02-17 16:08:50 +08:00
Frederic Massart 159c6e2666 MDL-44247 mod_scorm: Reference to SYSTEM_CONTEXT instead of real context 2014-02-17 15:58:44 +08:00
Damyon Wiese 9e72fa97a9 Merge branch 'MDL-41759-master' of https://github.com/jamiepratt/moodle 2014-02-17 15:32:45 +08:00
Damyon Wiese 1265a7c4c5 Merge branch 'MDL-41758-master' of git://github.com/jamiepratt/moodle 2014-02-17 15:04:05 +08:00
Damyon Wiese 1d35590029 Merge branch 'MDL-41755-master-v2' of git://github.com/jamiepratt/moodle 2014-02-17 15:01:45 +08:00
Dan Marsden 02bff1ad82 MDL-43541 SCORM: set first launchable sco correctly. 2014-02-17 19:56:40 +13:00
Dan Poltawski a500fd06ce Merge branch '44158-27' of git://github.com/samhemelryk/moodle 2014-02-17 14:48:01 +08:00
Andrew Nicols 0f722cfbe5 MDL-44214 Javascript: Allow for patching of modules in the simpleyui rollup
The moodlesimple (former simpleyui) rollup is included by a slightly
different mechanism to the the other YUI modules and this was missed off
the original yuipatchlevel implementation.
2014-02-17 14:46:09 +08:00
Dan Poltawski 89542d2888 MDL-33099 deprecatedlib: clarify some comments 2014-02-17 14:45:12 +08:00
Dan Poltawski a24ef7d7cd Merge branch 'MDL-33099-master' of git://github.com/andrewnicols/moodle 2014-02-17 14:40:36 +08:00
Damyon Wiese 4339015aca Merge branch 'MDL-40062-master' of git://github.com/danpoltawski/moodle 2014-02-17 14:37:18 +08:00
Damyon Wiese 12aca2577a Merge branch 'MDL-43504-master' of git://github.com/andrewnicols/moodle 2014-02-17 14:19:36 +08:00
Marina Glancy 7f051de21d MDL-40619 behat: test for creating a one-question quiz 2014-02-17 14:19:32 +08:00
Damyon Wiese 8053854592 Merge branch 'MDL-23514-master' of https://github.com/danielneis/moodle
Conflicts:
	lang/en/admin.php
2014-02-17 14:12:16 +08:00
Andrew Nicols af64bc6179 MDL-33099 Javascript: Deprecate the ajaxenabled function 2014-02-17 14:11:21 +08:00
Dan Poltawski 97802bea3a MDL-40062 mod_forum: Add discussion_updated event 2014-02-17 14:07:14 +08:00
Dan Poltawski a52c04d549 MDL-40062 mod_forum: add event unit tests
And bump forum version for new events.
2014-02-17 14:05:54 +08:00
Dan Poltawski 2d3f692bfe MDL-40062 mod_forum: post events
* post_created
* post_updated
* post_deleted

Prune post (split discussion) has been converted to multiple events as
splitting a post actually means new discussion created.
2014-02-17 14:05:54 +08:00
Dan Poltawski e70ebc55f8 MDL-40062 mod_forum: read tracking events
* readtracking_enabled
* readtracking_disabled
2014-02-17 14:05:54 +08:00
Dan Poltawski de2770501e MDL-40062 mod_forum: subscription events
Events for forum mail subscriptions

* subscription_created
* subscription_deleted
* subscribers_viewed
2014-02-17 14:05:54 +08:00
Dan Poltawski 71595d0053 MDL-40062 mod_forum: discussion events
* discussion_created
* discussion_deleted
* discussion_moved
* discussion_viewed
2014-02-17 14:05:53 +08:00
Damyon Wiese 09c7f57fd2 Merge branch 'MDL-40061_master' of https://github.com/markn86/moodle 2014-02-17 13:14:45 +08:00
Dan Poltawski 3b854e8c2a Merge branch 'MDL-42618_master' of git://github.com/SWiT/moodle 2014-02-17 12:13:39 +08:00
Dan Poltawski 35a8d26926 Merge branch 'MDL-27414' of git://github.com/jmvedrine/moodle 2014-02-17 12:06:42 +08:00
Andrew Nicols 2ae7e4ddd6 MDL-43504 Course: Include the course/category collapse JS correctly
This was previously only included when there were hidden categories to show
which were not yet visible. As a result, if all categories were visible,
then the JS was not included.
2014-02-17 11:33:52 +08:00
Andrew Nicols b44b0fdab4 MDL-43504 Javascript: Frontpage collapsing should not depend on enableajax
This is an oversight, but we should not depend on the enableajax setting
which we're trying to deprecate.
2014-02-17 11:25:16 +08:00
Andrew Nicols cfa770b47b MDL-43997 Javascript: Make all informative dialogues display correctly
Most of the moodle core dialogue types should be shown modally, and
centred. They should also be shown on instantiation.

Rather than re-define all of these settings, this patch introduces a new
subclass of M.core.dialogue which sets them up with the same settings.
2014-02-17 10:49:45 +08:00
Dan Poltawski 0a9f5b66c5 Merge branch 'MDL-42033' of git://github.com/jmvedrine/moodle 2014-02-17 10:32:33 +08:00
Dan Poltawski 2288139207 MDL-40062 mod_forum: convert viewed events
* course_module_instance_list_viewed
* forum_viewed
* course_searched
* userreport_viewed
2014-02-17 10:03:23 +08:00
Dan Poltawski 33c40cc633 MDL-40062 mod_forum: remove invalid add_to_log() calls
* debugging add_to_log() calls - the Moodle log is not the
  place for these kind of messages

* subscribeall/unsusbcribeall - now individual subscriptions
  will fire events, there is no need for a catch all.

* remove read tracking log entries - read tracking individual
  log entries do not provide enough reliable information, as
  the posts can be marked as read automatically after emailing
  or an expiry period.
2014-02-17 10:03:23 +08:00
Jerome Mouneyrac d14f5265b2 MDL-43723 restrict the drag and drop to the move icon instead of dragging the entire block header 2014-02-17 09:16:53 +08:00
Damyon Wiese a47e7a1abb Merge branch 'MDL-44018' of git://github.com/timhunt/moodle 2014-02-17 09:14:46 +08:00
Sam Hemelryk 36520392d4 MDL-44196 theme_base: unified @package use and improved coding style 2014-02-17 11:28:49 +13:00
Sam Hemelryk 0ba796fdee MDL-44195 theme_arialist: unified @package use and improved coding style 2014-02-17 11:28:42 +13:00
Sam Hemelryk 83eb9e0e9d MDL-44194 theme_anomaly: unified @package use and improved coding style 2014-02-17 11:28:34 +13:00
Sam Hemelryk 9be1c873ff MDL-44212 theme_splash: unified @package use and improved coding style 2014-02-17 11:23:15 +13:00
fabmen fcf2176098 MDL-43405 auth_ldap: Fixed issue with undefined variable: ldap_cookie 2014-02-16 14:22:48 -08:00
Sam Hemelryk d8c1cddb95 MDL-44211 theme_sky_high: unified @package use and improved coding style 2014-02-17 11:22:44 +13:00
Sam Hemelryk 946e79de45 MDL-44210 theme_serenity: unified @package use and improved coding style 2014-02-17 11:22:10 +13:00
Sam Hemelryk 9ff4d3ef62 MDL-44209 theme_overlay: unified @package use and improved coding style 2014-02-17 11:21:42 +13:00
Sam Hemelryk cb5e8d0e57 MDL-44208 theme_nonzero: unified @package use and improved coding style 2014-02-17 11:21:11 +13:00
Sam Hemelryk 6a0bb481ac MDL-44207 theme_nimble: unified @package use and improved coding style 2014-02-17 11:20:46 +13:00
Sam Hemelryk 3057d35003 MDL-44206 theme_magazine: unified @package use and improved coding style 2014-02-17 11:20:15 +13:00
Sam Hemelryk 5b43c2afe0 MDL-44205 theme_leatherbound: unified @package use and improved coding style 2014-02-17 11:19:47 +13:00
fabmen c28694dc38 MDL-34319 auth_cas: Fixed issue with undefined variable: ldapconnection 2014-02-16 14:19:33 -08:00
Sam Hemelryk 3473a16d7a MDL-44204 theme_fusion: unified @package use and improved coding style 2014-02-17 11:19:18 +13:00
Sam Hemelryk 485f8eb3e0 MDL-44203 theme_formfactor: unified @package use and improved coding style 2014-02-17 11:18:50 +13:00
Sam Hemelryk 69f727f82b MDL-44202 theme_clean: unified @package use and improved coding style 2014-02-17 11:18:23 +13:00
Sam Hemelryk 3f4cec2195 MDL-44201 theme_canvas: unified @package use and improved coding style 2014-02-17 11:17:56 +13:00
Sam Hemelryk 35f3ab04ee MDL-44200 theme_brick: unified @package use and improved coding style 2014-02-17 11:17:31 +13:00
Sam Hemelryk 0338d88f63 MDL-44199 theme_boxxie: unified @package use and improved coding style 2014-02-17 11:16:59 +13:00
Sam Hemelryk c5d91a5db4 MDL-44198 theme_bootstrapbase: unified @package use and improved coding style 2014-02-17 11:16:23 +13:00
Sam Hemelryk 2c8d8a6d8f MDL-44197 theme_binarius: unified @package use and improved coding style 2014-02-17 11:15:40 +13:00
Sam Hemelryk b4f32f3d3b MDL-44193 theme_afterburner: unified @package use and improved coding style 2014-02-17 11:13:35 +13:00
Sam Hemelryk afbd791a05 Merge branch 'MDL-44037_master' of git://github.com/dmonllao/moodle 2014-02-17 10:16:33 +13:00
Sam Hemelryk 487f74813e Merge branch 'MDL-42404_master' of git://github.com/dmonllao/moodle 2014-02-17 10:15:36 +13:00
Sam Hemelryk 1fa13df59e Merge branch 'MDL-44142-master' of git://github.com/mrverrall/moodle 2014-02-17 09:16:32 +13:00
Sam Hemelryk fa52e6494d Merge branch 'MDL-44042-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-dragdrop/moodle-core-dragdrop-min.js
2014-02-17 09:06:58 +13:00
Sam Hemelryk 9e7fb3e848 Merge branch 'MDL-44055-master' of git://github.com/andrewnicols/moodle 2014-02-17 09:04:48 +13:00
Sam Hemelryk 87643ff599 Merge branch 'MDL-44079-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2014-02-17 08:48:39 +13:00
Sam Hemelryk 80ce7e1a8d Merge branch 'MDL-43979-master' of git://github.com/andrewnicols/moodle 2014-02-17 08:27:48 +13:00
Sam Hemelryk 37fdd9c051 MDL-44184 qtype_match: fixed @package typo 2014-02-17 08:06:15 +13:00
Jean-Michel Vedrine 624ff5ba57 MDL-42033 Files in subdirs not exported correctly by question XML format 2014-02-16 19:37:09 +01:00
Jean-Michel Vedrine 4c23a70b03 MDL-35103 Fix various phpdocs for question formats 2014-02-16 19:09:26 +01:00
Andrew Nicols 4e55f11de2 MDL-44187 JavaScript: Remove data from debug footer 2014-02-16 20:43:30 +08:00
Sam Hemelryk 496e46b1ee MDL-43822 theme_bootstrapbase: blocks less tidied and reorganised 2014-02-16 14:25:56 +13:00
Sam Hemelryk f25a6839fd MDL-44120 block: tidied up block @package uses 2014-02-16 12:17:14 +13:00
Sam Hemelryk d01fb561db MDL-44158 mod_glossary: unified @package use 2014-02-16 12:15:02 +13:00
Sam Hemelryk e5adc5a11c MDL-44105 calendar: fixed typo with @package 2014-02-16 12:14:33 +13:00
Sam Hemelryk 1f6ba1809d MDL-44104 admin, grade: fixed use of @params 2014-02-16 12:14:30 +13:00
Sam Hemelryk 7db38cd53f MDL-44103 mod_wiki: fixed copyright typo 2014-02-16 12:14:25 +13:00
Sam Hemelryk 96930d5b08 MDL-41179 mod_page: unified @package use 2014-02-16 11:53:09 +13:00
Sam Hemelryk 2b17ec3d62 MDL-41178 mod_lti: unified @package use 2014-02-16 11:52:18 +13:00
Sam Hemelryk 9b24f68bde MDL-41177 mod_lesson: unified @package use 2014-02-16 11:51:23 +13:00
Sam Hemelryk 53945f38d6 MDL-41176 mod_label: unified @package use 2014-02-16 11:48:00 +13:00
Sam Hemelryk 35501c3708 MDL-41175 mod_imscp: unified @package use 2014-02-16 11:47:07 +13:00
Mark Nelson 561672d3a6 MDL-40061 mod_data: replaced 'record delete' add_to_log call with an event 2014-02-14 18:40:19 -08:00
Mark Nelson 3909293faf MDL-40061 mod_data: replaced 'templates saved' add_to_log call with an event 2014-02-14 18:39:56 -08:00
Mark Nelson 3ac413b28e MDL-40061 mod_data: replaced 'templates view' add_to_log call with an event 2014-02-14 18:39:55 -08:00
Mark Nelson 76ca452c12 MDL-40061 mod_data: replaced 'add' add_to_log call with an event 2014-02-14 18:39:50 -08:00
Mark Nelson 45eae37967 MDL-40061 mod_data: replaced 'update' add_to_log call with an event 2014-02-14 18:13:05 -08:00
Mark Nelson d1ec55570d MDL-40061 mod_data: replaced 'fields update' add_to_log call with an event 2014-02-14 18:12:41 -08:00
Mark Nelson e0d7ed6dae MDL-40061 mod_data: replaced 'fields add' add_to_log call with an event 2014-02-14 18:12:13 -08:00
Mark Nelson e37c413e87 MDL-40061 mod_data: replaced 'fields delete' add_to_log call with an event 2014-02-14 18:11:47 -08:00
AMOS bot 6ad65a405b Automatically generated installer lang files 2014-02-15 00:43:50 +00:00
Jean-Michel Vedrine 93a543938c MDL-27414 Upgrade the randomsamatch qtype to the new question engine
Added XML import/export
Different randomsamatch qtypes in the same quiz can now pick the same
shortanswer question.
Images are not preserved if shortanswer question is deleted after being
used in a randomsamatch attempt.
2014-02-14 16:53:04 +01:00
Adrian Fish ea5d05151b [MDL-44170] Added form field for url matched type.
Added a new mod_form field called urlmatchedtypeid which is populated
by mod_form.js when a matched url is entered. On save, if typeid is 0
and urlmatchedtypeid is supplied, the type id is set to the url matched
id.
2014-02-14 15:52:09 +00:00
David Scotson 7f52dbd8d5 MDL-44139 admin: standardise warning renderer use
Take three handcoded warnings and convert them to calling
the 'warning' renderer like rest of the file.

Then remove redundant CSS and/or move specific CSS to generic
places so it's shared.
2014-02-14 11:39:04 +00:00
James Pratt 3d6f2466d9 MDL-43479 quiz response analysis : suppress break down by variants
where there are very many variants
2014-02-14 15:40:52 +07:00
James Pratt fc60441054 MDL-43539 quiz statistics : coding error from progress bar
when no sub-questions - "parent progress count must be at least 1"
2014-02-14 15:24:37 +07:00
James Pratt 4922e79f3e MDL-41759 quiz statistics : break down responses for each variant 2014-02-14 15:23:04 +07:00
James Pratt 51e3ded838 MDL-41758 quiz statistics : link to full break down of stats for slots
where a question in a slot has subquestions and/or variants.
2014-02-14 15:16:07 +07:00
James Pratt ac3e5ed7ba MDL-41755 tablelib : added a function to add multiple rows at once 2014-02-14 14:13:02 +07:00
Andrew Nicols 2173d5532b MDL-44161 Javascript: Include upstream patch for modal widget position jump
This is courtesty of the upstream pull request https://github.com/yui/yui3/pull/1636
2014-02-14 14:15:40 +08:00
Paul Verrall a266a1a07b MDL-44142 Cohorts: Use maxusersperpage for list of current users. 2014-02-13 15:48:40 +00:00
Eloy Lafuente (stronk7) 692d247a3a weekly release 2.7dev 2014-02-13 15:29:44 +01:00
Eloy Lafuente (stronk7) eee94e31fb Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-02-13 15:29:34 +01:00
Jayesh Anandani d7730f16f8 MDL-43265 Fix question name text to 255 chars 2014-02-13 16:34:23 +05:30
Petr Škoda fd0e019286 MDL-42541 stop using events for porfolion cron 2014-02-13 12:09:24 +08:00
Frederic Massart 457b82f238 MDL-43337 enrol: Missing break in get_enrolled_users WS 2014-02-13 12:06:04 +08:00
Frederic Massart e06d359917 MDL-43337 enrol: More tests for get_enrolled_users_with_capability 2014-02-13 12:06:04 +08:00
apsdehal 578a39b841 MDL-43337 WebService: Missing break statement added
In function get_enrolled_users_with_capability
2014-02-13 11:37:22 +08:00
Andrew Nicols 2ab0238ff6 MDL-44042 Javascript: Handle moving to the top of the current section with keyboard 2014-02-13 10:11:00 +08:00
David Monllao 38f0b67b71 MDL-44037 behat: New feature -> publishing rubric templates
This patch automates MDLQA-1186; rubrics can be
shared as templates.
2014-02-12 16:28:42 +08:00
David Monllao b408987d3e MDL-42404 behat: Covering MDL-39710 with behat features
I've contributed to a large an ugly scenario
in favour of performance as separating it in another
scenario or feature would add 3 or 4 minutes to the suite.
2014-02-12 16:07:46 +08:00
David Monllao 993f26bdd2 MDL-42404 behat: Adding feature to test reusing user's rubrics
Automates MDLQA-1187, teachers can reuse their
rubrics in other activity.
2014-02-12 16:07:46 +08:00
David Monllao 37fcfd9911 MDL-42404 behat: Adding rubrics step definitions 2014-02-12 16:07:46 +08:00
David Monllao d57eda7278 MDL-42404 behat: Adding edit rubrics feature
Automates the following MDLQA-1185, MDLQA-1188
and MDLQA-1427. All of them related with the
expected outcomes after editing rubrics definitions
that were already used to grade students.
2014-02-12 16:07:44 +08:00
Petr Škoda 900b1bf7d1 MDL-43200 fix enrol_manual externallib tests 2014-02-12 16:01:34 +08:00
David Monllao e39a7f886e MDL-42404 behat: Adding yui-dialog to dialogue selector 2014-02-12 15:42:05 +08:00
Sam Hemelryk e52bbf07a8 Merge branch 'MDL-41644' of git://github.com/apsdehal/moodle 2014-02-12 09:24:06 +13:00
Sam Hemelryk ae7befec1e Merge branch 'wip-mdl-43289' of git://github.com/rajeshtaneja/moodle 2014-02-12 09:21:54 +13:00
apsdehal 7b218e86ab MDL-39337 html_writer: Added img() function
img function has been added to the html_writer.
use it by calling the function as shown:
html_writer::img('foo.com','Foo',array('title'=>'Foo2'));
This will result in the following string:
<img src="foo.com" alt="Foo" title="Foo2"/>
2014-02-12 01:03:02 +05:30
Petr Škoda 0d0514cf3b MDL-40921 mod_workshop: fix unit tests 2014-02-11 15:44:04 +08:00
Marina Glancy c37c1c6c5d Merge branch '28567-27' of git://github.com/samhemelryk/moodle 2014-02-11 14:42:23 +08:00
Marina Glancy 3f1a513077 MDL-42505 whitespace correction 2014-02-11 14:36:41 +08:00
Marina Glancy 7480dbc5f2 Merge branch 'MDL-42505-Feedback-Inappropriate-use-of-fieldset-tags-around-cancel-button' of git://github.com/michael-milette/moodle 2014-02-11 14:13:39 +08:00
Andrew Nicols aebc768f94 MDL-44079 Javascript: EditPDF editor should be modal 2014-02-11 12:18:52 +08:00
Andrew Nicols bc0477392b MDL-44079 Javascript: Closing a tooltip should pass event details 2014-02-11 12:17:53 +08:00
Andrew Nicols bf24abd221 MDL-44079 Javascript: Check whether a dialogue is focused before closing 2014-02-11 12:17:52 +08:00
Andrew Nicols cb0f82ddf9 MDL-44055 mod_glossary: Add missing alternate name fields 2014-02-11 09:55:38 +08:00
Andrew Nicols 3047f140de MDL-44055 mod_quiz: Add missing alternate name fields 2014-02-11 09:55:38 +08:00
Sam Hemelryk b73fd8608a Merge branch 'MDL-43941-master' of git://github.com/andrewnicols/moodle
Conflicts:
	course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes-min.js
2014-02-11 14:10:52 +13:00
AMOS bot 8c36bd9245 Automatically generated installer lang files 2014-02-11 00:42:10 +00:00
Eloy Lafuente (stronk7) 16b2fc5913 Merge branch 'MDL-43338-master' of https://github.com/jamiepratt/moodle 2014-02-11 00:26:29 +01:00
Sam Hemelryk 696195afee Merge branch 'MDL-43994-im' of git://github.com/andrewnicols/moodle 2014-02-11 00:06:44 +01:00
Sam Hemelryk 39a0509b68 Merge branch 'MDL-43929' of git://github.com/timhunt/moodle 2014-02-11 08:27:35 +13:00
Eloy Lafuente (stronk7) 395988e433 Merge branch 'MDL-44053' of git://github.com/timhunt/moodle 2014-02-10 16:48:26 +01:00
Andrew Nicols 2f5c1441d7 MDL-43979 Javascript: Correct checking of attributes during dialogue init
Various dialogue attributes are optional and are provided by the parent and
not provided as attributes to the dialogue being initted.

As a result, if the setting is not provided during init, we were assuming
that the value would be false rather than checking the real attribute.
2014-02-10 22:00:43 +08:00
Marina Glancy 396548fad4 Merge branch '43977-27' of git://github.com/samhemelryk/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-02-10 18:15:57 +08:00
Adrian Greeve d7f05ad40c MDL-43289 mod_assign: Creation of new submission events.
New events have been created for submission plugins. This is
part of the consistancy move by adding the same type of event through
all of the modules.

AMOS BEGIN
 MOV [event_submission_updated,mod_assign],[eventsubmissionupdated,mod_assign]
AMOS END
2014-02-10 12:36:01 +08:00
Sam Hemelryk 72d953e19e Merge branch 'MDL-44059-master' of git://github.com/ankitagarwal/moodle 2014-02-10 15:58:36 +13:00
Ankit Agarwal 807241b991 MDL-44059 libraries: Add a method to return html for row instead of just printing it 2014-02-10 10:44:20 +08:00
Sam Hemelryk c9f5f0afd3 Merge branch 'wip_master_mdl-32724' of https://github.com/iarenaza/moodle 2014-02-10 15:26:05 +13:00
Sam Hemelryk 0527e02390 Merge branch 'MDL-43774_master' of https://github.com/totara/openbadges 2014-02-10 15:21:41 +13:00
Sam Hemelryk 52b7e8aa58 Merge branch 'MDL-43267-master-3' of git://github.com/andrewnicols/moodle 2014-02-10 14:53:51 +13:00
Andrew Nicols 26df91ca57 MDL-43941 Behat: Section visibility tests should not check if activities are visible
It should be possible for activities to be visible even when the section
they are in is hidden.

However, when a section is hidden, all activities in that section are also
then initially hidden. Therefore, this commit splits out the hidden test to
a new test so that the initial state of activities after hiding can still
be tested.
2014-02-10 09:36:05 +08:00
Andrew Nicols db6e9aa8d3 MDL-43941 Course: Allow AJAX show/hide of activities in hidden and orphaned sections 2014-02-10 09:21:31 +08:00
Sam Hemelryk 1c8c3a6db1 Merge branch 'MDL-40938-27' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-02-10 14:16:12 +13:00
Sam Hemelryk 1cb3c0facc Merge branch 'MDL-43200' of git://github.com/apsdehal/moodle 2014-02-10 14:11:25 +13:00
Andrew Nicols 8892ec2b2d MDL-43994 Blocks: Hide the move icon when blocks are docked on Afterburner too 2014-02-10 08:50:29 +08:00
Sam Hemelryk 5e45f31d83 Merge branch 'MDL-42882-master' of git://github.com/danpoltawski/moodle 2014-02-10 13:12:57 +13:00
Sam Hemelryk c6c9b1d799 MDL-44056 question: added new default property to unit tests 2014-02-10 12:56:36 +13:00
Mark Nelson 7ddb347cec MDL-40061 mod_data: replaced 'view all' add_to_log call with an event 2014-02-09 14:49:33 -08:00
Mark Nelson b071cfd229 MDL-40061 mod_data: replaced 'view' add_to_log call with an event 2014-02-09 14:49:17 -08:00
Sam Hemelryk e9eb744f6d Merge branch 'MDL-43684-master' of git://github.com/andrewnicols/moodle 2014-02-10 11:32:13 +13:00
Sam Hemelryk f0c4d4d22e Merge branch 'MDL-44056' of git://github.com/timhunt/moodle 2014-02-10 11:30:12 +13:00
Sam Hemelryk cda0ebf042 Merge branch 'MDL-43838_master' of git://github.com/dmonllao/moodle 2014-02-10 11:27:00 +13:00
Sam Hemelryk f10418699d Merge branch 'MDL-43969-master' of git://github.com/andrewnicols/moodle 2014-02-10 09:48:19 +13:00
Sam Hemelryk db00b9c882 Merge branch 'MDL-43992-master' of git://github.com/andrewnicols/moodle 2014-02-10 09:40:13 +13:00
Sam Hemelryk 872b051fa3 Merge branch 'MDL-44020-MASTER' of git://github.com/jleyva/moodle 2014-02-10 09:30:57 +13:00
Sam Hemelryk 52aa25fd41 Merge branch 'MDL-44046' of https://github.com/merrill-oakland/moodle 2014-02-10 09:28:08 +13:00
Sam Hemelryk fbf1f6fdea Merge branch 'MDL-43978_master' of https://github.com/totara/openbadges 2014-02-10 09:23:51 +13:00
Sam Hemelryk 002a736eee MDL-43994 theme_bootstrapbase: consistent commenting between themes 2014-02-10 09:10:20 +13:00
Sam Hemelryk 642ad27297 Merge branch 'MDL-43994-master' of git://github.com/andrewnicols/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-02-10 09:06:31 +13:00
Sam Hemelryk 98396c2327 MDL-43804 theme: amended upgrade.txt with more information 2014-02-10 09:04:54 +13:00
Sam Hemelryk 179ddd105b Merge branch 'MDL-43804-master' of git://github.com/ankitagarwal/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-02-10 08:50:23 +13:00
Sam Hemelryk 705c5e0aed Merge branch 'MDL-44029-quiz-group-delete-handler-bug' of https://github.com/mpetrowi/moodle 2014-02-10 08:44:39 +13:00
Sam Hemelryk 065bc30c8d Merge branch 'MDL-43946' of https://github.com/merrill-oakland/moodle 2014-02-10 08:42:55 +13:00
Sam Hemelryk 2ea3e43342 MDL-43977 theme_bootstrapbase: small fix to make custom menu work with JS disabled 2014-02-10 08:37:06 +13:00
Sam Hemelryk ba1ce6e9ad MLD-28567 calendar: improved course filter process 2014-02-10 08:31:47 +13:00
Tim Hunt 029870ee95 MDL-44053 question restore from 2.0: fix regression from MDL-43670 2014-02-09 17:49:03 +00:00
Tim Hunt 9a59691237 MDL-44056 questions: restore essay attempts from 2.0 notice. 2014-02-09 17:47:39 +00:00
Mary Evans 97080d53ee MDL-40938 theme_bootstrapbase: Fix for text fields in login block. 2014-02-09 00:45:46 +00:00
AMOS bot 4ba444e3ff Automatically generated installer lang files 2014-02-09 00:42:12 +00:00
Tim Hunt 3f87a74b60 MDL-44018 quesiton variant was not backed up or restored. 2014-02-07 21:55:10 +00:00
Tim Hunt 1eb470fc42 MDL-43929 question manual grading: keep comment when validation fails.
If the validation failed, so the manual grading page was re-displayed
with a validation error, then any comment that had just been typed in
was getting lost. This fixes that.
2014-02-07 21:55:05 +00:00
Eric Merrill 2f31de4515 MDL-44046 gradebook Reduce duplicates returned during sortorder fixing. 2014-02-07 09:29:12 -05:00
Juan Leyva 925f4d6b16 MDL-44020 Add core_calendar_get_calendar_events function to the moodle mobile core service 2014-02-07 12:23:33 +01:00
Andrew Nicols e14e17029c MDL-43994 Blocks: Hide the move icon when blocks are docked 2014-02-07 17:39:36 +08:00
Andrew Nicols 7e804d0cb4 MDL-43992 Javascript: Remove <return> key listener for confirmation
The listener was previously confirming, even when the cancel or 'No'
buttons were selected. However, having the default action as 'Confirm'
seems dangerous in this situation, so removing this option entirely.
2014-02-07 16:35:49 +08:00
Andrew Nicols d4e438718e MDL-43969 Forms: Adjust ARIA attributes for short forms
The aria-live="polite" attribute is incorrectly added to the fieldset,
causing the entire fieldset to be read out on change in some browsers. This
is unnecessary.
It also does not announce the current state of the fieldset (collaped or
open) and should.
2014-02-07 16:17:13 +08:00
Andrew Nicols 8659df93f9 MDL-43267 Javascript: Improve focus before and after drag/drop 2014-02-07 15:10:09 +08:00
James Pratt c3e2e754dd MDL-43338 quiz statistics : refactoring question statistics code
to improve readability and maintainability.
2014-02-07 13:35:20 +07:00
Andrew Nicols 02839a35f0 MDL-43267 Javascript: Remove aria drag/drop related attributes for drag/drop
Since we provide an alternative interface rather than describing the
locations for each drop, we should not add aria-grabbed, or
aria-dropeffect.
2014-02-07 13:36:41 +08:00
Andrew Nicols 34bcc6a95c MDL-43267 Javascript: Improve accessibility of keyboard move
Change the keyboard move descriptions to allow for more detailed
descriptions such as:
* "After 'X'"; or
* "To top of section 'Y'"
2014-02-07 13:36:41 +08:00
Petr Škoda 3e692810d7 MDL-40921 mod_workshop: Alter event levels as requested by David. 2014-02-07 13:21:23 +08:00
Adrian Greeve d85fb0c6e3 MDL-40921 mod_workshop: Unit tests for new events system. 2014-02-07 13:21:23 +08:00
Adrian Greeve 1f0132716e MDL-40921 mod_workshop: New events to replace add_to_log function calls. 2014-02-07 13:21:23 +08:00
Petr Skoda d65634044e MDL-43344 upgrade to latest Flowplayer 2014-02-07 13:12:43 +08:00
Sam Hemelryk 974c2cdc03 weekly release 2.7dev 2014-02-07 11:46:00 +13:00
Sam Hemelryk b1733dc795 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-02-07 11:45:55 +13:00
Yuliya Bozhko 3193b97e05 MDL-43978 badges: Fix lang string 2014-02-07 09:11:15 +13:00
Matt Petro 74b3c4e58c MDL-44029 mod_quiz: Fixing group deleted handler so it does not remove user overrides. 2014-02-06 13:32:04 -05:00
Andrew Nicols fd2e73abef MDL-43687 Javascript: Correct instantiation of the question-preview
This addresses issues discovered during testing, including:
* inclusion of the M.core_question_preview metadata;
* inclusion of required strings; and
* correcting a function signature.
2014-02-06 13:55:27 +08:00
Russell Smith 42e34c2882 MDL-43926 files: Unit tests cannot assume id values. 2014-02-06 09:34:56 +08:00
Sam Hemelryk 37a079acb5 Merge branch 'MDL-43936' of git://github.com/timhunt/moodle 2014-02-06 10:04:04 +13:00
Eric Merrill 51ec2e451f MDL-43946 gradebook upgrade Improve SQL to find duplicate sortorders. 2014-02-05 09:56:34 -05:00
Tim Hunt c2f35e0b22 MDL-43936 questions: fix my lame spelling in upgrade.txt.
Thanks to Mark Nelson for the suggested improvements.
2014-02-05 11:23:42 +00:00
Michael Aherne 90a3a62096 MDL-44066 caching Don't advertise session mode for MongoDB and memcached 2014-02-05 10:48:22 +00:00
Marina Glancy 7f34b8e135 Merge branch 'MDL-42339' of git://github.com/rwijaya/moodle 2014-02-05 15:56:30 +08:00
Rossiani Wijaya 8c6ca6961a MDL-42339 - removed double formatting for set_title() and set_heading() 2014-02-05 14:47:23 +08:00
Dan Poltawski 6c704b1534 MDL-42882 upgrade: Improvements to upgrade code
Suggested by Petr:
* Don't rely on single user for upgrade
* Make the pathnamehash generation a bit clearer (and add
  a test to verify its correctly formed).
2014-02-05 14:38:39 +08:00
Marina Glancy a76edd4961 MDL-42425 assign: bumping version for new web services to take effect 2014-02-05 14:32:27 +08:00
Marina Glancy c71b7b7c44 Merge branch '38923-27' of git://github.com/samhemelryk/moodle 2014-02-05 12:49:02 +08:00
Sam Hemelryk ee729af1e4 MDL-38923 theme_bootstrapbase: pre-integration fixups
* Fixed the way we added the block class to the dock panel in dock.js
* Added a class to the h2 that is used to test dock title width
* Fixed RTL alignment issues as best I could at present
* Fixed overlap of dock + navbar on small screens
* Fixed the docked block width to be constrained to the available space
* Fixed hidden actions on docked blocks
2014-02-05 15:07:44 +13:00
Sam Hemelryk d9fece93d0 Merge branch 'MDL-41757-master' of https://github.com/jamiepratt/moodle 2014-02-05 12:36:52 +13:00
Sam Hemelryk 8213574043 Merge branch 'MDL-41756-master' of https://github.com/jamiepratt/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2014-02-05 12:35:11 +13:00
Eloy Lafuente (stronk7) 9433b01c94 Merge branch 'MDL-42425' of https://github.com/Lightwork-Marking/moodle 2014-02-04 23:56:27 +01:00
Sam Hemelryk 3ec0946e10 Merge branch 'MDL-43027-master' of git://github.com/jamiepratt/moodle 2014-02-05 11:44:49 +13:00
Sam Hemelryk 13de6099c1 Merge branch 'MDL-43952-master' of git://github.com/andrewnicols/moodle 2014-02-05 11:29:32 +13:00
Sam Hemelryk abaae2a548 MDL-38923 dock: allowed for space before first time 2014-02-05 11:21:09 +13:00
Sam Hemelryk 2a203eee8d MDL-38923 theme_bootstrapbase: tidied up dock implementation
Also:
* Changed to a CSS based compacting solution
* Converted dock colours to variables
* RTL fixes for the dock
2014-02-05 11:21:09 +13:00
Bas Brands a799631bb1 MDL-38923 theme bootstrapbase: theme clean: enable docking 2014-02-05 11:20:32 +13:00
Yuliya Bozhko ab8aa5828f MDL-43774 badges: Stop overriding default course navigation 2014-02-05 10:46:34 +13:00
Yuliya Bozhko a2a114bd6a MDL-43978 badges: Display error message to guest users viewing "My Badges" page 2014-02-05 09:52:32 +13:00
Iñaki Arenaza a8451603cf MDL-32724: LDAP Auth function user_update() returns true even if update has failed 2014-02-04 19:28:59 +01:00
apsdehal f80add6990 MDL-43200 WebServices: Reset Instance variable 2014-02-04 19:38:34 +05:30
Eloy Lafuente (stronk7) 5ecfa56512 Merge branch 'MDL-43911-master' of git://github.com/andrewnicols/moodle 2014-02-04 10:53:17 +01:00
Eloy Lafuente (stronk7) 845e11407f Merge branch 'wip-MDL-41384-master' of git://github.com/marinaglancy/moodle 2014-02-04 10:11:42 +01:00
Marina Glancy e5fd05a368 Merge branch 'MDL-41754-master' of git://github.com/jamiepratt/moodle 2014-02-04 15:44:51 +08:00
Damyon Wiese 35361b94ec MDL-43805 assign: Prevent behat fail on ci - editpdf is not available there
Ghostscript is not setup on the ci servers, so the editpdf feature will be automatically
disabled. This means that I cannot click on "Hide Annotate PDF".
2014-02-04 13:37:06 +08:00
Sam Hemelryk aa01949f24 Merge branch 'MDL-43369-master' of git://github.com/jamiepratt/moodle 2014-02-04 15:50:48 +13:00
Andrew Nicols ab20c84aff MDL-42428 Javascript: Switch M.util.show_confirm_dialog to use moodle-core-notification 2014-02-04 09:33:45 +08:00
Sam Hemelryk 5c876ed21f Merge branch 'MDL-43538-master' of git://github.com/andrewnicols/moodle 2014-02-04 14:17:39 +13:00
Andrew Nicols aea2973734 MDL-43952 Javascript: Support invalidation of browser caches for YUI patching
This will also force files loaded from the CDN to instead come from the
local distribution since those patches will not be included in the CDN
release.

Please see the documentation at http://docs.moodle.org/dev/YUI/Patching for
important on using these changes.
2014-02-04 09:08:53 +08:00
Oleg Sychev 0b5157363f MDL-42456: add Mercurial vcs support to plugin_external_source 2014-02-04 13:42:33 +13:00
AMOS bot fa8e01e2b8 Automatically generated installer lang files 2014-02-04 00:42:01 +00:00
Eloy Lafuente (stronk7) d29b8f4342 Merge branch 'MDL-33064-master' of git://github.com/danpoltawski/moodle 2014-02-04 00:59:58 +01:00
Sam Hemelryk 2f166b3284 Merge branch 'MDL-43885-master' of git://github.com/andrewnicols/moodle 2014-02-04 12:41:00 +13:00
Eloy Lafuente (stronk7) 2c4e068639 Merge branch 'MDL-43687' of https://github.com/mkassaei/moodle 2014-02-04 00:16:48 +01:00
Eloy Lafuente (stronk7) 21fe8c3355 Merge branch 'wip-MDL-43821-master' of git://github.com/marinaglancy/moodle 2014-02-04 00:11:20 +01:00
Eloy Lafuente (stronk7) 263979ebee Merge branch 'wip-MDL-43828-master' of git://github.com/marinaglancy/moodle 2014-02-03 23:58:07 +01:00
Sam Hemelryk 68ad9d82bf Merge branch 'MDL-43886-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2014-02-04 11:14:11 +13:00
Sam Hemelryk 1331241bf4 Merge branch 'MDL-43892' of git://github.com/timhunt/moodle 2014-02-04 10:57:26 +13:00
Sam Hemelryk 527dd78d36 Merge branch 'wip-MDL-33920-master' of git://github.com/marinaglancy/moodle 2014-02-04 10:47:00 +13:00
Sam Hemelryk 5666a74c91 Merge branch 'MDL-43893-master' of git://github.com/andrewnicols/moodle 2014-02-04 10:23:24 +13:00
Sam Hemelryk 5eb041021e Merge branch 'w04_MDL-43903_m27_mssqltests' of https://github.com/skodak/moodle 2014-02-04 10:22:42 +13:00
Sam Hemelryk 4a30b40069 Merge branch 'MDL-43936' of git://github.com/timhunt/moodle 2014-02-04 10:11:44 +13:00
Gordon Bateson 1b17f2b0db MDL-40410 remove ampersands required for PHP strict standards lib/tablelib.php 2014-02-04 10:06:07 +13:00
Sam Hemelryk 7c8c6aa76b Merge branch 'wip-mdl-40911' of https://github.com/rajeshtaneja/moodle 2014-02-04 09:53:16 +13:00
Sam Hemelryk b2ca12e904 Merge branch 'MDL-43884-master' of git://github.com/ankitagarwal/moodle 2014-02-04 09:11:27 +13:00
Sam Hemelryk 3f5827459e MDL-39617 backup: language improvements to cli/backup.php 2014-02-04 09:04:01 +13:00
Sam Hemelryk 6bdf77c191 Merge branch 'MDL-39617-master' of https://github.com/lucisgit/moodle 2014-02-04 08:41:37 +13:00
Sam Hemelryk 6958c718cc Merge branch 'wip-MDL-39942-master' of https://github.com/kwiliarty/moodle 2014-02-04 08:28:56 +13:00
Eloy Lafuente (stronk7) 4f31798dfc Merge branch 'master_MDL-37714' of git://github.com/greg-or/moodle 2014-02-03 17:58:30 +01:00
Marina Glancy 8621a0ece5 Merge branch 'MDL-41647' of git://github.com/apsdehal/moodle 2014-02-03 17:34:20 +08:00
Dan Poltawski 40c761e01a MDL-42882 upgrade: improved SQL query
Kudos to Tim Hunt who came up with this, on mysql with 4 milion
records (and a fast SSD) the performance difference is:

Original: 36.83 sec
New query: 8.63 sec
2014-02-03 17:29:51 +08:00
Dan Poltawski 119cf17eec MDL-42882 upgrade: unit tests for root folders upgrade
Just verifying the original behaviour
2014-02-03 17:29:51 +08:00
David Monllao 3688bd470b MDL-43838 behat: Clean theme compatibility with small and medium screen sizes 2014-02-03 16:59:59 +08:00
Marina Glancy 3ef6324aaa Merge branch 'MDL-43805-master' of git://github.com/damyon/moodle 2014-02-03 16:09:09 +08:00
Marina Glancy c8e346f799 Merge branch 'w05_MDL-43905_m27_loginevents' of git://github.com/skodak/moodle 2014-02-03 15:17:18 +08:00
Marina Glancy dc4bed906f Merge branch 'MDL-43593-master' of git://github.com/damyon/moodle 2014-02-03 15:06:11 +08:00
Marina Glancy 367465085b Merge branch 'MDL-43951_master' of git://github.com/dmonllao/moodle 2014-02-03 14:53:45 +08:00
Ankit Agarwal 6b21643236 MDL-43804 themes: Update css not to use r0 and r1 identifiers for table rows 2014-02-03 14:29:39 +08:00
David Monllao 405cdd0441 MDL-43951 behat: Fixing random failure
NodeElement->hasAttribute() (JS enabled) queries selenium
about whether it has any attribute or not, if due to an
AJAX request the field node changed selenium can not access
that node and throws an exception.
2014-02-03 13:59:12 +08:00
Marina Glancy 1b066c06c6 Merge branch 'MDL-43440-master' of git://github.com/mr-russ/moodle 2014-02-03 13:42:23 +08:00
Paul Charsley 40c3dacf44 MDL-42425 modify mod_assign_save_grade to process advanced grading data 2014-02-03 09:06:28 +13:00
Andrew Nicols a964ead06d MDL-43911 Behat: Save dumps of the page content to disk on scenario failure 2014-02-02 20:34:10 +08:00
apsdehal f159bd75ad MDL-41646 Wiki: Removed unnecessary wiki_info class 2014-02-02 15:50:10 +05:30
apsdehal 23f9ff903f MDL-41647 WebServices: Changed notification CSS class 2014-02-02 15:20:21 +05:30
apsdehal 54ae34ced1 MDL-41644 Backup: Update CSS class .notifywarning with .notifyproblem 2014-02-02 03:26:28 +05:30
Tim Hunt 70f22d60fb MDL-43936 questions: document renderer API change. 2014-01-31 14:12:19 +00:00
Tim Hunt e06bb5f800 MDL-43926 Unit tests shouldn't assume only one category on install 2014-01-31 13:31:17 +00:00
Marina Glancy cdb69ddff0 MDL-43828 forum: allow to select single available group when posting 2014-01-31 16:56:48 +08:00
Marina Glancy 93c9a86dea MDL-43821 completion: fix bug in section completion progress
Thanks to Shane Dye for the provided patch
2014-01-31 16:56:43 +08:00
Marina Glancy 7456c96766 MDL-41384 course: do not show debugging message if $COURSE contains format options
before showing debugging message make sure that field exists in database and not only in the object
2014-01-31 16:56:30 +08:00
Marina Glancy e20497827d MDL-41384 upgrade: make sure to re-read $SITE from DB when course table is altered 2014-01-31 16:56:30 +08:00
Marina Glancy 4e3663365b MDL-33920 filepicker: hide 'save as' field when not applicable 2014-01-31 16:56:13 +08:00
Marina Glancy 183515da23 weekly release 2.7dev 2014-01-31 14:11:12 +08:00
Marina Glancy 56ae2ba99b Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-01-31 14:11:11 +08:00
Petr Škoda 54b1e0409c MDL-43905 fix update of user login times
There needs to be only one event during user login.
The timemodified field is not supposed to be updated during login.
2014-01-31 10:08:01 +08:00
Gregory Faller 20c9f4a133 MDL-37714: Correctly identify frequently used comments during restore 2014-01-31 10:26:11 +10:30
Andrew Nicols 8cf30a371a MDL-42928 Filepicker: Disable behat tests run by phantom
There seems to be a bug relating to overflow: hidden on the body tag in
some cases which is only showing for dialogues which belong to the
filepicker.

Disabling these for the moment as this issue may be related to MDL-43712
which is a work in progress.
2014-01-30 17:13:32 +08:00
Rajesh Taneja 140118e3e8 MDL-40911 events: replaced add_to_log with events for login failed 2014-01-30 12:12:02 +08:00
Andrew Nicols d125cf103c MDL-43684 Course: Correct showing and hiding of resources on drag/drop
This was caused by an issue with String casting in JavaScript.
In JavaScript, "0" evaluates as a truthy value.
2014-01-30 11:03:08 +08:00
Petr Škoda bfaf4f00cb MDL-43903 prevent adodb error logging output in phpunit execution with
native ms sql driver
2014-01-30 10:39:34 +08:00
Damyon Wiese 11ab6207e8 MDL-43805 assign: Behat test for quickgrading bug 2014-01-29 20:29:41 +08:00
Damyon Wiese a6fd2e2cf1 MDL-43805 Assign: Quickgrading wipes out grades for hidden columns.
Grr.. quickgrading will always be a hack.
2014-01-29 20:29:35 +08:00
M Kassaei 7258470276 MDL-43687, convert question/preview.js to the new yui format 2014-01-29 11:37:57 +00:00
David Monllao 7e3f5e79d0 MDL-43450 behat: Checking the ->behat_* vars contents before showing the steps list 2014-01-29 14:28:37 +08:00
Marina Glancy 7c4044a54f Merge branch 'MDL-25500-master-fix1' of git://github.com/damyon/moodle 2014-01-29 12:01:33 +08:00
Damyon Wiese 37b2c56569 MDL-25500 Lock: Unit tests have found that MySQL locks are broken
Removing the MySQL lock factory, the only safe way to use this MySQL API
would be to open a new DB connection for every lock. Record locking is a decent
fallback.
2014-01-29 11:52:51 +08:00
Rajesh Taneja 623a32e50d MDL-43736 Events: Updated unit test to test context not used in event 2014-01-29 11:39:50 +08:00
Rajesh Taneja fdc729ea57 MDL-43736 Events: event->contextinstanceid should be used where possible
While restoring event context might not be present (deleted)
So before using context api's check context or use event properties
2014-01-29 11:39:44 +08:00
Andrew Nicols 649c80e6a4 MDL-43885 Javascript: Make the [X] button work like 'No' in relevant dialogues
The [X] button on the dialogue is another form of the 'No' button and
should behave as such. In some dialogues this matters more than others
because the dialogue is destroyed.
2014-01-29 11:16:47 +08:00
Eloy Lafuente (stronk7) fefcd9abab Merge branch 'MDL-43040' 2014-01-29 01:52:49 +01:00
Eloy Lafuente (stronk7) 994e566256 MDL-43040 Note the deprecation and add some TODOs 2014-01-29 01:40:30 +01:00
Sam Hemelryk 34027f1563 MDL-25500 lock: post integration trivial cleanup
* A couple of misc comment typo's
* Added missing $CFG required global in file_lock_factory::is_available
* Removed unused $CFG global from file_lock_factory::get_lock
* A couple of trivial phpdoc tweaks
* Removed unused $DB global from postgres_lock_factory::get_index_from_key
* Added global namespace \ to exceptions in get_index_from_key (tested and found they didn't resolve)
2014-01-29 13:22:16 +13:00
Sam Hemelryk 453d66b782 Merge branch 'MDL-25500-master-squashed' of git://github.com/damyon/moodle 2014-01-29 13:21:00 +13:00
Tomasz Muras 672ce966c6 MDL-43040 Replace $module with $plugin in all mod/*/version.php
Conflicts:
	mod/quiz/version.php
2014-01-29 00:36:12 +01:00
Sam Hemelryk 07481c9277 Merge branch 'MDL-40909_master' of https://github.com/markn86/moodle 2014-01-29 08:23:51 +13:00
Andrew Nicols da942d13d2 MDL-43893 Javascript: Remove YUI2 uses in group members management JS 2014-01-29 00:25:38 +08:00
Andrew Nicols 0860dd78f7 MDL-43886 Javascript: Remove dialouges from the DOM upon destroy 2014-01-29 00:02:03 +08:00
Tim Hunt 3aaf535df1 MDL-43892 dbtransfer: Fix missing string. 2014-01-28 15:55:41 +00:00
Michael Milette ca5849e5dc MDL-42505 - Feedback plugin: Inappropriate use of fieldset tags around form and cancel button
Changes:
* Removed the fieldset HTML tags around the Cancel button at the bottom of the form.
* Removed the fieldset HTML tags around the whole form.
* Added missing fieldset tags around groups of radio buttons and checkboxes.
* Removed unordered list wrapping dropdown lists.
* Removed duplicate label for dropdown lists.

Modified Files:
* mod/feedback/complete.php
* mod/feedback/complete_guest.php
* mod/feedback/item/multichoice/lib.php
* mod/feedback/item/multichoicerated/lib.php

Signed-off-by: Michael Milette <michael.milette@instruxmedia.com>
2014-01-28 09:43:56 -05:00
Ruslan Kabalin d00951b585 MDL-39617 Add cli backup script for a single course backing up.
Useful for backing up a single course. Accepts parameters:

--courseid=INTEGER        Course ID for backup
--courseshortname=STRING  Course shortname for backup.
--destination=STRING      Path where to store backup file. If not set, the backup
                          will stored within the same course backup area.
2014-01-28 13:40:03 +00:00
Damyon Wiese d551112566 MDL-25500 Lock: Do not use file locking if $CFG->preventfilelocking is set
(And file_lock_dir is not prefixed with the dataroot).
2014-01-28 20:14:05 +08:00
Eloy Lafuente (stronk7) 51cba7809c Merge branch 'MDL-42928-master' of git://github.com/andrewnicols/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-28 12:22:23 +01:00
Eloy Lafuente (stronk7) 6dcea23522 Merge branch 'w04_MDL-34055_m27_insertrecords' of https://github.com/skodak/moodle 2014-01-28 10:43:51 +01:00
Ankit Agarwal aa611d661c MDL-43884 database: Fix get_tables() api for external stores 2014-01-28 16:28:57 +08:00
Andrew Nicols 1d98ca14eb MDL-43538 Javascript: Deprecate callback argument to confirm_action
As a precursor to deprecating M.util.show_confirm, this deprecates the
callback argment to the confirm_action class.

This is not currently used anywhere in core, and it's use leads to use of
eval in Javascript.
2014-01-28 13:18:43 +08:00
Mark Nelson 7cbb5070f5 MDL-40909 enrol_imsenterprise: removed 'new' add_to_log call
Here we are replacing the unnecessary code used to create a course with
a call to create_course(), which triggers the event 'course_created'.
Nothing more is needed.
2014-01-27 19:52:55 -08:00
Mark Nelson f1f4f4fd7b MDL-40909 core_enrol: removed 'enrol' add_to_log calls
Before each of these calls a call to enrol_user() is made, which
triggers the event 'user_enrolment_created'. Nothing more is needed.
2014-01-27 19:52:55 -08:00
Mark Nelson 6324517209 MDL-40909 core_enrol: removed 'unenrol' add_to_log calls
Before each of these calls a call to unenrol_user() is made, which
triggers the event 'user_enrolment_deleted'. Nothing more is needed.
2014-01-27 19:52:55 -08:00
Kevin Wiliarty 1ec8b1c7ea MDL-39942: invite only users who can post to discuss 2014-01-27 22:30:47 -05:00
Mark Nelson 50ac4392f3 MDL-40909 mod_forum: removed duplicated test (duplicated in enrol/meta/tests/plugin_test.php) 2014-01-27 19:11:38 -08:00
Petr Škoda cc5dba8e54 MDL-34055 add bulk DB->insert_records() method
This patch was inspired by patch by Simon Coggins from Totara.
2014-01-28 10:41:43 +08:00
Andrew Nicols 478d82db06 MDL-42928 JavaScript: Disable lockScroll for small chooserdialogues 2014-01-28 09:49:32 +08:00
Andrew Nicols 73747aea77 MDL-42928 JavaScript: Add LockScroll to all modal dialogues 2014-01-28 09:49:32 +08:00
Andrew Nicols 5ab39a0e97 MDL-42928 JavaScript: Create a module to handle page scroll locking 2014-01-28 09:49:32 +08:00
Eloy Lafuente (stronk7) 56f39760ac Merge branch 'master_MDL-43797' of https://github.com/totara/moodle 2014-01-28 00:43:16 +01:00
David Curry c8ade8cbdc MDL-43797 lib/db/upgrade.php: Optimise sql for my_pages deletion
Change-Id: Idf300ab07afda3bcefea80e617549f40c710e529
2014-01-28 12:36:04 +13:00
Sam Hemelryk 9123721e4f Merge branch 'MDL-43246' of git://github.com/timhunt/moodle 2014-01-28 12:16:20 +13:00
Eloy Lafuente (stronk7) 9fc25660c5 Merge branch 'MDL-43450_master' of git://github.com/dmonllao/moodle 2014-01-28 00:07:57 +01:00
Eloy Lafuente (stronk7) bc6a79aee6 Merge branch '43688-27' of git://github.com/samhemelryk/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-27 23:58:18 +01:00
David Curry a5ab83ac5e MDL-43797 lib/db/upgrade.php: Remove custom pages for deleted users
Change-Id: Ifef563431682a2a5524927f85ca9eba9cbe520ff
2014-01-28 11:55:17 +13:00
Eloy Lafuente (stronk7) 835ef9d84c Merge branch 'MDL-43874' of git://github.com/timhunt/moodle 2014-01-27 23:52:07 +01:00
David Curry 72d1ccffb3 MDL-43797 lib/moodlelib.php: Remove custom homepages on user deletion
Change-Id: Ibaf6f0a9dc29d00b97a32111d1cf5063ebed1888
2014-01-28 11:41:20 +13:00
Eloy Lafuente (stronk7) 2c8b15c50d Merge branch 'MDL-43757_master' of git://github.com/dmonllao/moodle 2014-01-27 21:20:39 +01:00
Sam Hemelryk c77d28e5b2 Merge branch 'wip-MDL-43643-master' of git://github.com/marinaglancy/moodle 2014-01-28 08:40:45 +13:00
Eloy Lafuente (stronk7) b598c48179 Merge branch 'wip-mdl-43765' of https://github.com/rajeshtaneja/moodle 2014-01-27 19:23:09 +01:00
Eloy Lafuente (stronk7) 705718fb7c Merge branch 'wip-mdl-43766' of https://github.com/rajeshtaneja/moodle 2014-01-27 19:19:31 +01:00
Eloy Lafuente (stronk7) c88dba093e Merge branch 'MDL-43773-master' of https://github.com/lucisgit/moodle 2014-01-27 17:18:56 +01:00
Eloy Lafuente (stronk7) 8fce57c001 Merge branch 'MDL-43581' of git://github.com/timhunt/moodle 2014-01-27 17:03:25 +01:00
Tim Hunt e101ec9fd7 MDL-43874 quiz, teacher comments should respect display options.
Whether the comments on manually graded questions were visible to
students should have been controlled by the 'Specific feedback' Review
option in the quiz settings. However, the quiz was not setting
$displayoptions->manualcomment, so it did not work.
2014-01-27 12:01:32 +00:00
James Pratt df9ddae686 MDL-41757 quiz statistics : limit subq and variant stat rows
and print min, median and max.
2014-01-27 18:04:08 +07:00
Eloy Lafuente (stronk7) 9be395ee99 Merge branch 'wip-MDL-43800-master' of git://github.com/marinaglancy/moodle 2014-01-27 12:02:28 +01:00
James Pratt 4f7516f6e8 MDL-41756 (3) quiz statistics : test variant stats 2014-01-27 18:00:04 +07:00
James Pratt 1239d28776 MDL-41756 (2) quiz statistics : break down question stats by variant 2014-01-27 18:00:04 +07:00
James Pratt aa05ae5da3 MDL-41756 (1) quiz statistics : use new method increment_progress
to cut down on clutter before adding new break down by variant stuff
2014-01-27 17:56:16 +07:00
James Pratt eb50c6e198 MDL-43027 core progress : new method keeps track of progress internally 2014-01-27 17:51:09 +07:00
James Pratt ef81a7c30e MDL-41754 (3) quiz statistics : need to escape core_php_time_limit
after MDL-42084 was merged into upstream, introducing
core_php_time_limit, this branch that moved a reference to
core_php_time_limit to a new namespace was broken.
2014-01-27 17:45:50 +07:00
James Pratt 8da6fc9d57 MDL-41754 (2) quiz statistics : using Sam's new progress classes 2014-01-27 17:45:50 +07:00
James Pratt 809fdb83b1 MDL-41754 (1) Progress tracking : moved from backup and restore to core 2014-01-27 17:45:50 +07:00
James Pratt 8e32861786 MDL-43369 : quiz statistics - average across attempts where item seen
and not across all attempts for subqs.
2014-01-27 17:30:56 +07:00
Tim Hunt 391edc51f9 MDL-43581 additionalhtmlfooter should be added to every page
Not just pages with a visible footer.
2014-01-27 10:24:43 +00:00
Eloy Lafuente (stronk7) 5e7f4b1c19 Merge branch 'MDL-43809' of git://github.com/timhunt/moodle 2014-01-27 10:59:37 +01:00
Sam Hemelryk 049422651c Merge branch 'MDL-33839c' of git://github.com/mkassaei/moodle 2014-01-27 15:28:47 +13:00
Damyon Wiese 9843e5ece5 MDL-25500 lock: New locking framework.
This locking system is designed to be used everywhere requiring
locking in Moodle. Each use of the locking system can be configured
to use a different type of locking (or the same type with a different
configuration).

The first supported lock types are memcache, memcached, file (flock),
db (specific handlers for pg, mysql and mariadb).
2014-01-27 10:04:18 +08:00
Sam Hemelryk 068ffec81b Merge branch 'w04_MDL-43761_m27_sqlinstall' of https://github.com/skodak/moodle 2014-01-27 14:30:57 +13:00
AMOS bot 7084af6d88 Automatically generated installer lang files 2014-01-27 00:42:35 +00:00
Eloy Lafuente (stronk7) f4068d757f Merge branch 'MDL-43758_master' of git://github.com/dmonllao/moodle 2014-01-27 01:18:05 +01:00
Eloy Lafuente (stronk7) 3b5e8aebbe Merge branch 'MDL-43734_purgeUserSession' of https://github.com/moodlerooms/moodle 2014-01-27 00:26:44 +01:00
Sam Hemelryk 9299144461 Merge branch 'w04_MDL-43746_m27_courselogin' of https://github.com/skodak/moodle 2014-01-27 11:32:08 +13:00
Sam Hemelryk 00dfc95708 Merge branch 'MDL-43794' of https://github.com/merrill-oakland/moodle 2014-01-27 11:16:11 +13:00
Russell Smith 74b63eae76 MDL-43440 unit testing: Use cmid in unit tests when it should be used.
instance is has been used instead of cmid.  This works as all id's are 1
in most cases, but not always.

accesslib_clear_all_caches_for_unit_testing was updated to clear the
$USER->access cache which would fail test when the wrong user's data was used.
2014-01-25 08:57:32 +11:00
Michael Aherne 780cf0a728 MDL-43440 unit tests Use correct cm identifier in unit tests 2014-01-25 08:56:43 +11:00
M Kassaei 435d32798b MDL-33839d, Remove the move icon from the question bank 2014-01-24 14:40:16 +00:00
Tony Butler 4d72dfa956 MDL-43773 mod_choice: Swap order of name column headings in text export 2014-01-24 11:17:48 +00:00
David Monllao b8c4d91ca0 MDL-43450 behat: Improving error messages 2014-01-24 16:45:27 +08:00
Damyon Wiese ac2b4ffc8c MDL-43593 Assign editpdf: More robust handling of errors from TCPDF.
This includes a check to see if there are 0 pages in the combined pdf,
catching exceptions and suppressing php warnings and errors from bad pdf files.

Also - Use TCPDF directly to check if pdfs are compatible. The previous check was
letting dodgy PDFs through which then failed at generation time. This way dodgy
pdfs will get run through ghostscript early and cleaned up.
2014-01-24 16:16:38 +08:00
David Monllao a922209e84 MDL-43758 performance: New metric, time spent by the database
This patch adds a new performance metric to the performance
info shown by MDL_PERF* vars, the time spent by the database,
it was one of the wonderful @poltawski ideas. To be more specific
the value displayed is the sum of the time elapsed between query_start()
and query_end().
2014-01-24 16:07:01 +08:00
David Monllao cca6f37389 MDL-43757 behat: Allowing the form field guesser to detect TinyMCE
It includes 2 more minor fixes:
- Escapes values sent to TinyMCE as it was breaking
  when values contained double quotes.
- Adding seconds to the screenshots directory to
  avoid using the same folder for multiple runs.
2014-01-24 15:06:12 +08:00
David Monllao 495db71fce MDL-43757 messaging: Behat feature to test participants messaging
The new test checks that messages can be sent from
the participants block and they can be read when
accesing user's recent conversations.
2014-01-24 15:06:12 +08:00
Petr Skoda 9d202aed27 MDL-43746 fix require_course_login regression caused by MDL-25981 2014-01-24 13:50:57 +08:00
Petr Škoda b4b03d38b7 MDL-43761 execute bulk sql when modifying db structure
In case of postgresql this uses transactions to allow easier recovery from broken installs.
2014-01-24 13:47:41 +08:00
Petr Škoda ab3fc898f4 MDL-43761 use single query in mysql when crating tables 2014-01-24 13:46:30 +08:00
Petr Skoda 3f17d7091b MDL-43761 refactor db manager code to send arrays of SQL to the dml driver 2014-01-24 13:45:07 +08:00
Jason Fowler 2eab90fa7f MDL-40786 User profile: Fixing narrow screen RTL collapse 2014-01-24 08:36:02 +08:00
Nadav Kavalerchik 293a18945c MDL-40786 User Profile: Right align profile fields in RTL mode (theme/bootstrapbase, theme/clean) 2014-01-24 08:35:46 +08:00
Sam Hemelryk 5a3e5fa078 MDL-43688 dndupload: fixed positioning across themes 2014-01-24 09:52:47 +13:00
Tim Hunt 5c0b5ba575 MDL-43809 qformat_xml messes up $s in multianswer questions. 2014-01-23 15:26:38 +00:00
Tim Hunt 84b3710842 MDL-43246 question engine: avoid order-by id.
This was breaking with oracle master/master replication. Fortunately all
the places that needed to be changed were private to datalib.php. There
is still some ordering by id there, but only places where we want a
consitent, rather than meaningful, order, so that is OK.

The queries changed by this patch all have subqueries in aggregate
queries that pull out the latest step for a question_attempt. Those
queries used to look for MAX(id) but now they look for
MAX(sequencenumber). This is equivalent (for databases where ids always
increase with time, except for auto-saved steps. In the past,  an
auto-saved step might have been considered latest. Now the latest step
will always be one that has been properly processed. You can aruge that
this change is an improvement. Anyway, it is a moot point. All these
queries are only used in reports which are run on completed attempts,
where there will not be any autosaved data.
2014-01-23 15:20:59 +00:00
Tim Hunt 5b0a31bf20 MDL-43246 some question data mapper unit tests
With fixes for the issues unearthed by these tests.
2014-01-23 15:20:58 +00:00
Tim Hunt 28273694e5 MDL-43246 give unit tests class a better name. 2014-01-23 15:20:57 +00:00
Eloy Lafuente (stronk7) 9788e26805 weekly release 2.7dev 2014-01-23 12:38:19 +01:00
Eloy Lafuente (stronk7) 93473e5dd2 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-01-23 12:38:06 +01:00
Damyon Wiese b158296ece Revert "MDL-43247 SCORM: improve pop-up handling and redirect to homepage on close."
This reverts commit ed3d1ee60d.
This reverts commit ed8eebeece.
This reverts commit f664a93878.
This reverts commit 9d22765723.
2014-01-23 17:14:56 +08:00
Dan Poltawski 88de0401ae MDL-33064 tests: remove code_test.php
This test was doing work which doesn't make sense as a unit test.
Perhaps the most sensible option would be to use a git hook. Here is
a replacement David Mudrák created:

$ cat .git/hooks/pre-commit
 #!/bin/bash

FOUND=$(git diff-index --cached -U0 HEAD -- | grep DONOTCOMMIT | wc -l)

if [[ $FOUND -gt 0 ]]; then
    echo "pre-commit hook: DONOTCOMMIT detected, commit not allowed"
    exit 1
fi
2014-01-23 16:03:59 +08:00
Dan Marsden ed3d1ee60d MDL-43247 SCORM: use window.closed property instead of window.opener for IE 2014-01-23 20:38:01 +13:00
Marina Glancy 0eadedea57 MDL-43643 chat: do not assign to nonexisting cm_info properties 2014-01-23 10:59:33 +08:00
Damyon Wiese ed8eebeece MDL-43247 Scorm: Fix for undefined js variable when popup is blocked. 2014-01-23 10:49:56 +08:00
Damyon Wiese 6baeabc140 Merge branch 'master_MDL-43247' of git://github.com/danmarsden/moodle 2014-01-23 10:27:18 +08:00
Dan Poltawski 6fe1f72ca0 Merge branch 'MDL-43670' of git://github.com/timhunt/moodle 2014-01-23 09:32:36 +08:00
Eric Merrill ec74b980c6 MDL-43794 Files API Set the mtime of files to extraction time.
The restore cleanup code expects the mtime to be the time of extraction
not the mtime before archiving. If set to the old mtime, the restore
files may be cleaned up before the restore is complete.

This behaviour also matches the behaviour of the zip unpacker.
2014-01-22 11:06:39 -05:00
Dan Marsden f664a93878 MDL-43247 SCORM: convert some js to YUI 2014-01-22 21:53:26 +13:00
Tim Hunt e5c86d0740 MDL-43670 fix quiz backup. 2014-01-22 08:32:10 +00:00
Marina Glancy 3ba635344f MDL-43800 course: groupings are sorted alphabetically 2014-01-22 12:16:26 +08:00
Damyon Wiese ff77d601d5 MDL-26680: Reset my moodle page - add sesskey check. 2014-01-22 10:00:43 +08:00
Damyon Wiese ce3b8b0e71 Merge branch 'MDL-26680-master' of git://github.com/micaherne/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-22 09:52:38 +08:00
Dan Poltawski 259d41fcb9 Merge branch 'w03_MDL-43661_m27_edulevel' of https://github.com/skodak/moodle 2014-01-22 09:15:52 +08:00
Michael Aherne 41dcfbf1af MDL-26680 my page My Moodle "reset to default" button 2014-01-21 22:36:24 +00:00
Dan Poltawski 73cb5874b6 Merge branch 'MDL-41506-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-21 23:29:20 +08:00
Petr Škoda 32f906b677 MDL-43661 use new edulevel in all existing events 2014-01-21 16:12:35 +08:00
Petr Škoda 3345e24f4b MDL-43661 change event property level to edulevel
Level is a reserved word in sql, sorry.
2014-01-21 15:54:56 +08:00
Dan Poltawski 0758665c0d Merge branch 'mdl34020-master' of https://github.com/tlock/moodle 2014-01-21 15:21:17 +08:00
Dan Poltawski 0eea6f5d99 Merge branch '43714-27' of git://github.com/samhemelryk/moodle 2014-01-21 14:49:26 +08:00
Dan Poltawski 8a04a045b3 Merge branch 'MDL-43760-master' of git://github.com/damyon/moodle 2014-01-21 14:28:50 +08:00
Damyon Wiese e677c1be7c Merge branch 'MDL-43725-master' of git://github.com/ankitagarwal/moodle 2014-01-21 13:47:39 +08:00
Damyon Wiese 29f7aef8e9 Merge branch 'wip-MDL-43294-master' of git://github.com/abgreeve/moodle 2014-01-21 13:17:05 +08:00
Damyon Wiese f329801959 Merge branch 'MDL-41810_master' of https://github.com/totara/openbadges
Conflicts:
	badges/upgrade.txt
2014-01-21 13:06:30 +08:00
Damyon Wiese c821f113cc Merge branch 'master_MDL-43247' of git://github.com/danmarsden/moodle 2014-01-21 12:57:05 +08:00
Dan Poltawski e8d79c2d4b Merge branch 'wip-MDL-43700-master' of git://github.com/abgreeve/moodle 2014-01-21 12:24:38 +08:00
Dan Poltawski d5b5f1a38b Merge branch 'MDL-43717_master' of git://github.com/dmonllao/moodle 2014-01-21 12:19:34 +08:00
Dan Poltawski e5c5f52e8b MDL-43670 quiz: improve code comments a little 2014-01-21 11:59:07 +08:00
Dan Poltawski 1f931e2928 Merge branch 'MDL-43670' of git://github.com/timhunt/moodle 2014-01-21 11:25:38 +08:00
Dan Poltawski d0a0768b7f Merge branch 'MDL-43693-master' of https://github.com/lucisgit/moodle 2014-01-21 11:21:52 +08:00
Rajesh Taneja ed44f0aa62 MDL-43765 reports: Fixed addtional name warning
Fix the alternate name warning which is generated when course participation report
is viewed
2014-01-21 10:59:26 +08:00
Damyon Wiese 5388c6665f Merge branch 'wip-mdl-40917' of https://github.com/rajeshtaneja/moodle 2014-01-21 10:41:40 +08:00
Dan Poltawski 0296662a22 Merge branch 'MDL-42955_b' of git://github.com/rwijaya/moodle 2014-01-21 10:37:01 +08:00
Damyon Wiese d3b5017940 Merge branch 'MDL-41688-master' of git://github.com/FMCorz/moodle 2014-01-21 09:35:21 +08:00
Damyon Wiese 7b6464bf9d Merge branch 'MDL-43732' of github.com:merrill-oakland/moodle 2014-01-21 09:28:54 +08:00
Eloy Lafuente (stronk7) bc6d39a561 Merge branch 'wip-MDL-43333-master' of git://github.com/marinaglancy/moodle 2014-01-21 01:59:50 +01:00
Eric Merrill bed27b3024 MDL-43732 quiz Fix styles so that question div doesn't overlap controls. 2014-01-20 19:56:17 -05:00
Eloy Lafuente (stronk7) ba766c4772 Merge branch 'wip-MDL-43211-master' of git://github.com/marinaglancy/moodle 2014-01-21 01:54:00 +01:00
Eloy Lafuente (stronk7) 2079744b84 Merge branch 'MDL-43401-master' of git://github.com/FMCorz/moodle 2014-01-21 01:46:16 +01:00
Eloy Lafuente (stronk7) b7623bcb5d Merge branch 'MDL-43480_master' of git://github.com/dmonllao/moodle 2014-01-21 01:43:13 +01:00
Eloy Lafuente (stronk7) ad1ad9f5b4 Merge branch 'MDL-41693-master' of git://github.com/FMCorz/moodle 2014-01-21 01:13:04 +01:00
Eloy Lafuente (stronk7) b0512f418b Merge branch 'MDL-39684-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-21 00:20:28 +01:00
Eloy Lafuente (stronk7) 1816a46d11 Merge branch 'MDL-40533-master' of git://github.com/FMCorz/moodle 2014-01-21 00:17:31 +01:00
Eloy Lafuente (stronk7) 9faed21cb9 Merge branch 'MDL-43743_master' of git://github.com/dmonllao/moodle 2014-01-21 00:05:03 +01:00
Eloy Lafuente (stronk7) 221e6adaa5 Merge branch 'MDL-41362-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-20 23:59:27 +01:00
Frederic Massart 22c5c6e627 MDL-41767 themes: Support for parent-specific sheets in plugins 2014-01-20 13:29:20 +01:00
Frederic Massart fb95da6f5b MDL-41688 gradebook: Improved grading layout on bootstrapbase themes 2014-01-20 10:34:03 +01:00
Damyon Wiese 9a170849d7 MDL-39756 qtype_essay : Make defaults match upgrade (and php) for responserequired field 2014-01-20 17:24:04 +08:00
Damyon Wiese 4177d6a097 Merge branch 'MDL-43632-master' of https://github.com/lucisgit/moodle 2014-01-20 17:10:38 +08:00
Rajesh Taneja f792225ced MDL-43766 reports: Fixed wrong string variable 2014-01-20 16:43:37 +08:00
Damyon Wiese ae69bab27f Merge branch 'MDL-39756-essay' of https://github.com/ktemkin/moodle 2014-01-20 16:20:15 +08:00
Damyon Wiese 3a96e8b4c3 Merge branch 'MDL-32523' of git://github.com/timhunt/moodle 2014-01-20 16:02:54 +08:00
Dan Poltawski 1db62f7ff4 Merge branch 'wip-MDL-41062-master' of git://github.com/marinaglancy/moodle 2014-01-20 15:29:15 +08:00
Dan Poltawski 8e57617654 Merge branch '42682-27' of git://github.com/samhemelryk/moodle 2014-01-20 15:25:46 +08:00
Dan Poltawski 395333abe9 Merge branch 'MDL-43690' of git://github.com/timhunt/moodle 2014-01-20 14:24:38 +08:00
Rossiani Wijaya e4a25e6ff1 MDL-42955: Removed scrollbar from block's action menu 2014-01-20 14:00:29 +08:00
Damyon Wiese e0ebe681e0 MDL-43760 Potential fix for fletcher scott issues with fullname. 2014-01-20 13:37:51 +08:00
Damyon Wiese ac97a7ed53 Merge branch 'MDL-42495-m' of git://github.com/micaherne/moodle 2014-01-20 13:21:58 +08:00
Dan Poltawski 3ab0a93347 Merge branch 'MDL-42980' of git://github.com/rwijaya/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-20 12:56:17 +08:00
Marina Glancy b35ef82f33 MDL-41062 gradebook: corrections to grade_item upgrade script, more tests 2014-01-20 12:26:14 +08:00
Damyon Wiese 6d7d401711 Merge branch 'MDL-39683-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-20 11:27:07 +08:00
Damyon Wiese b34f6f5f5c MDL-40051 Add mnet test folder to phpunit.xml.dist 2014-01-20 11:22:27 +08:00
Damyon Wiese c8bfabd267 Merge branch '43675-27' of git://github.com/samhemelryk/moodle 2014-01-20 10:57:30 +08:00
Dan Poltawski fa8861964a Merge branch 'MDL-43671_message' of https://github.com/andyjdavis/moodle 2014-01-20 10:53:50 +08:00
Damyon Wiese 12c0236385 Merge branch 'MDL-40051_master' of https://github.com/markn86/moodle 2014-01-20 10:41:36 +08:00
Dan Poltawski 67deeb244d Merge branch 'MDL-40139-master' of git://github.com/FMCorz/moodle 2014-01-20 10:33:36 +08:00
Mark Nelson 362b9a0465 MDL-40051 core_lib: replaced add_to_log call when failing to send email with an event 2014-01-19 18:30:40 -08:00
Mark Nelson 0b7422f366 MDL-40051 core_mnet: replaced add_to_log calls with events 2014-01-19 18:30:40 -08:00
Ankit Agarwal 32323a1e44 MDL-43725 report_loglive: Fixing undefined variable error
AMOS BEGIN
 CPY [page,report_log],[page,report_loglive]
AMOS END
2014-01-20 10:14:11 +08:00
Damyon Wiese b72aa1adcb Merge branch 'MDL-43733' of git://github.com/timhunt/moodle 2014-01-20 10:02:40 +08:00
Dan Poltawski e6fbca9f65 Merge branch 'wip-mdl-43306-m' of git://github.com/rajeshtaneja/moodle 2014-01-20 09:45:43 +08:00
David Monllao a77adc602a MDL-43743 mod_scorm: Adding package disclaimer
As the package is licensed under CC 3.0 we should
be compliant with attribution.
2014-01-20 09:30:44 +08:00
Dan Poltawski 34e91c304c Merge branch 'MDL-40752-master' of git://github.com/phalacee/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-20 09:24:53 +08:00
AMOS bot 72f30e581e Automatically generated installer lang files 2014-01-20 00:41:21 +00:00
AMOS bot 14fc79164a Automatically generated installer lang files 2014-01-19 00:41:55 +00:00
Tim Hunt 3d96b4945a MDL-43733 use any auto-saved responses when questions are finished.
Before this, autosave was only working to save data when a student went
back in to continue an attempt. If the student, having crashed out,
never went back in and continued the attempt, their auto-saved responses
were not used when the attempt was automatically finished. That was a
rather bad oversight, which should now be fixed.
2014-01-17 16:58:13 +00:00
Tim Hunt 7051f3a882 MDL-43690 quiz_question_tostring missing s().
This meant that the edit quiz page sometimes had invalid HTML.
2014-01-17 10:56:27 +00:00
Tim Hunt dc4a3ea1ee MDL-43670 quiz_question_instances to match coding guidelines.
Some columns needed to be renamed:
* quiz     -> quizid
* question -> questionid
* grade    -> maxmark

Then all the places that refer to those needed to be fixed.
2014-01-17 10:56:07 +00:00
Tim Hunt d7ddbc8297 MDL-32523 question behat tests: distinctive question names
This means that, if you are watching the tests run, it is easier to see
which test is currently being executed.
2014-01-17 10:54:13 +00:00
M Kassaei e0c41591e1 MDL-32523 Duplicate questions in question bank 2014-01-17 10:54:12 +00:00
David Monllao ef6ac9b0d5 MDL-43743 behat: Lightweight scorm package
The previous used package were adding a second iframe
inside the scorm iframe and was slow loading it;
this patch replaces it for a simple one without any
extra iframe.
2014-01-17 17:39:25 +08:00
Dan Poltawski 2a9d7a42aa MDL-41062 gradebook: remove sortorder duplicates
* Upgrade function to remove duplicates from the grade item duplicates
  column. Duplicates were causing sorting to fail in some cases.
* Add some unit tests which simulate sort order duplicate data and
  verify that they have been removed.
2014-01-17 17:31:21 +08:00
Marina Glancy 0c74b33fbf MDL-43333 blocks: move activity icon in social and main menu 2014-01-17 17:29:47 +08:00
Marina Glancy fc630b2b01 MDL-43211 blocks: style edit icons in main menu and social activities 2014-01-17 17:29:22 +08:00
Marina Glancy 639d990431 MDL-43211 course: do not return indent icon if not needed 2014-01-17 17:29:21 +08:00
rwijaya f3f180863f MDL-42980 clean theme: fixed add/cancel buttons position for safari on iPhone with ios7. 2014-01-17 16:12:26 +08:00
Adrian Greeve b481cc2e8f MDL-43294 mod_lesson: Unit test for essay_assessed event. 2014-01-17 15:38:03 +08:00
Adrian Greeve f577148266 MDL-43294 events: New Event for essay submission in lesson. 2014-01-17 15:38:02 +08:00
David Monllao 561e9bb92e MDL-43480 behat: Switching @_only_local and @_alerts to @_file_upload and @_alert 2014-01-17 10:41:37 +08:00
David Monllao 81ad5438c7 MDL-43480 behat: Removing @_only_local tags from steps where it is not necessary 2014-01-17 10:41:37 +08:00
David Monllao 8ef423433d MDL-43717 behat: Replacing 2050 for a date eariler than the max timestamp 32bit limit
All credit goes to Michael de Raadt.
2014-01-17 10:37:59 +08:00
AMOS bot ee14a652dd Automatically generated installer lang files 2014-01-17 00:48:05 +00:00
Andrew Davis 811c0c8523 MDL-43671 message: removed an overly cautious check 2014-01-17 07:32:12 +08:00
Sam Hemelryk 8496ddd7c6 MDL-43714 blocks: fixed coding style of ajax/blocks.php 2014-01-17 10:50:18 +13:00
Sam Hemelryk efd556f77b MDL-43714 blocks: fixed notice when moving to an empty region 2014-01-17 10:45:23 +13:00
Sam Hemelryk 956e2e8a8c MDL-43675 navigation: courses branch is now recognised as expandable 2014-01-17 10:27:10 +13:00
Sam Hemelryk 35620f63f0 MDL-42682 theme_bootstrapbase: fixed styling of discussion selector 2014-01-17 10:25:36 +13:00
Sam Hemelryk bfaee803af MDL-42682 theme_bootstrapbase: fixed forum search alignment 2014-01-17 10:25:33 +13:00
Dan Marsden 9d22765723 MDL-43247 SCORM: improve pop-up handling and redirect to homepage on close. 2014-01-17 10:09:26 +13:00
Mark Nielsen 6cc9ac6cdb MDL-43734: Prevent purging of all user session cache 2014-01-16 11:22:28 -08:00
Eloy Lafuente (stronk7) f05e25d208 weekly release 2.7dev 2014-01-16 18:50:54 +01:00
Eloy Lafuente (stronk7) 8273055fb1 NOBUG: Fixed file access permissions 2014-01-16 18:50:54 +01:00
Eloy Lafuente (stronk7) 54add634bb Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-01-16 18:50:44 +01:00
Damyon Wiese 8e3be93572 Merge branch 'MDL-40056-master' of git://github.com/ankitagarwal/moodle 2014-01-16 16:35:22 +08:00
Ankit Agarwal 5971f6266a MDL-40056 events: Use correct course module id while fetching context 2014-01-16 16:31:06 +08:00
Dan Poltawski c8c8e6c2de Merge branch 'MDL-33952-master-fix2' of git://github.com/damyon/moodle 2014-01-16 09:40:58 +08:00
AMOS bot e1c7c4a5cc Automatically generated installer lang files 2014-01-16 00:43:15 +00:00
Eloy Lafuente (stronk7) da272e6b6b Merge branch 'master_MDL-43222' of git://github.com/danmarsden/moodle 2014-01-15 22:02:12 +01:00
Dan Marsden eb07f2d8d0 MDL-43222 SCORM: Fix invalid sql 2014-01-16 09:48:04 +13:00
Kyle Temkin a4f765eb1d MDL-39756 add advanced attachment options to essay question type
Adds a set of options to the essay question type which implement
the following new features:

-Adds an input format which accepts only file uploads, and no
 inline text.
-Adds an option to make the inline text response optional when
 attachments are enabled, so students can choose to upload
 an essay file.
-Adds an option to make attachments required, so essays without
 attachments will be marked incomplete.
2014-01-15 12:43:04 -05:00
Damyon Wiese 15f9dfad09 MDL-33952: mod_assignment Don't hide the modules on upgrade. 2014-01-15 16:47:30 +08:00
Damyon Wiese efbed79063 Merge branch 'MDL-43621_master' of https://github.com/totara/openbadges 2014-01-15 13:17:31 +08:00
Damyon Wiese 57fbd5f91f MDL-28448 Assign: Add a new capability that lets teachers mess with student submissions. 2014-01-15 12:52:08 +08:00
Adrian Greeve 5e9c9e0e39 MDL-43700 reports: Update to the sql in the comment locallib to include additional name fields. 2014-01-15 12:03:19 +08:00
Dan Poltawski b19608d682 Merge branch 'MDL-40912_master' of https://github.com/markn86/moodle 2014-01-15 11:41:05 +08:00
Yuliya Bozhko e477ec0a39 MDL-43621 badges: Fix has_awards() result when deleted users are the only recipients of a badge 2014-01-15 16:24:37 +13:00
Mark Nelson 001f09548d MDL-40912 coursecat: replaced 'hide' and 'show' add_to_log calls with an event 2014-01-14 19:24:15 -08:00
Mark Nelson d86c7206aa MDL-40912 coursecat: replaced 'move' add_to_log calls with an event 2014-01-14 19:24:14 -08:00
Mark Nelson c4cea8cb5d MDL-40912 coursecat: replaced 'update' add_to_log call with an event 2014-01-14 19:24:14 -08:00
Mark Nelson 03ea10e6d3 MDL-40912 coursecat: replaced 'add' add_to_log call with an event 2014-01-14 19:24:08 -08:00
Eloy Lafuente (stronk7) 19c32aacea Merge branch 'MDL-43439_master-dateformat' of git://github.com/dmonllao/moodle 2014-01-15 03:59:51 +01:00
Rajesh Taneja 8acec2a693 MDL-43306 restore: Fix grade_item sortorder after restoring course
While restoring course/activity, restore will blindly insert grade_item
sortorder. Which cause dulicate sortorder and lead to unpredicatble sorting
results.

Now we will call grade_item::fix_duplicate_sortorder() after restore is finished
to fix duplicate sortorder and order grade items to the closest order possible
2014-01-15 10:28:00 +08:00
Damyon Wiese 7508094a87 Merge branch 'MDL-43461_master' of git://github.com/dmonllao/moodle 2014-01-15 09:39:03 +08:00
David Monllao 4234011a1a MDL-43439 behat: Dir date without - separators 2014-01-15 09:17:44 +08:00
Dan Poltawski 852c34e509 Merge branch 'MDL-43619-master' of git://github.com/sammarshallou/moodle 2014-01-15 08:19:49 +08:00
Eloy Lafuente (stronk7) 75bdb2bfc7 Merge branch 'MDL-43439_master' of git://github.com/dmonllao/moodle 2014-01-15 00:03:34 +01:00
Eloy Lafuente (stronk7) 7d4c752e31 Merge branch 'w02_MDL-43524_m27_textcaching' of https://github.com/skodak/moodle 2014-01-14 22:08:46 +01:00
Eloy Lafuente (stronk7) 988c6ba1b8 Merge branch 'wip-MDL-31597-master' of git://github.com/abgreeve/moodle
Conflicts:
	grade/tests/behat/behat_grade.php
	grade/tests/behat/grade_view.feature
2014-01-14 22:03:02 +01:00
Yuliya Bozhko 7f964cfdc7 MDL-43621 badges: Don't display deleted users in badge recipients list 2014-01-15 09:31:45 +13:00
Frederic Massart f15aff3802 MDL-40533 block_html: Remove styles specific to the block 2014-01-14 19:00:31 +01:00
Ruslan Kabalin 534fc27649 MDL-43693: assignment: Fix JS error on grading page. 2014-01-14 16:19:40 +00:00
Eloy Lafuente (stronk7) 372a612221 Merge branch 'MDL-43332_master' of https://github.com/markn86/moodle 2014-01-14 16:48:22 +01:00
Eloy Lafuente (stronk7) e5f7cce1c1 Merge branch 'master_MDL-43222' of git://github.com/danmarsden/moodle 2014-01-14 16:44:11 +01:00
Eloy Lafuente (stronk7) da47e297da Merge branch '35597-27' of git://github.com/samhemelryk/moodle 2014-01-14 16:39:00 +01:00
Eloy Lafuente (stronk7) 1b92203ef3 Merge branch 'w02_MDL-43537_m27_env' of https://github.com/skodak/moodle 2014-01-14 16:01:27 +01:00
sam marshall 0f1882ed1f MDL-43619 Roles: reset_role_capabilities unit test, cache fix 2014-01-14 13:46:25 +00:00
sam marshall 3978da9e2f MDL-43619 Roles: reset_role_capabilities function destroys overrides 2014-01-14 13:46:24 +00:00
Frederic Massart 810a3da133 MDL-41506 theme_bootstrapbase: Implement highlight class 2014-01-14 11:19:43 +01:00
Dan Poltawski 473924dfd5 Merge branch 'MDL-43664-master' of git://github.com/andrewnicols/moodle 2014-01-14 16:50:07 +08:00
Damyon Wiese 718f42ae68 Merge branch 'MDL-43584_master' of git://github.com/dmonllao/moodle 2014-01-14 16:21:21 +08:00
Dan Poltawski 824dccead3 Merge branch 'm27_MDL-43577_Incorrect_Variable_Expansion' of https://github.com/scara/moodle 2014-01-14 15:57:05 +08:00
Dan Poltawski 2c9c8c7f46 Merge branch 'MDL-43642_master' of git://github.com/dmonllao/moodle 2014-01-14 15:48:49 +08:00
Dan Poltawski 00ae4c4ead Merge branch 'm27_MDL-43575_Typo_In_The_Overridden_setOption' of https://github.com/scara/moodle 2014-01-14 15:36:58 +08:00
Dan Poltawski b901d0e9dd Merge branch 'MDL-43178_forum' of https://github.com/andyjdavis/moodle 2014-01-14 15:26:52 +08:00
Damyon Wiese a1ac22b815 Merge branch 'MDL-43531-master' of git://github.com/andrewnicols/moodle 2014-01-14 15:18:37 +08:00
David Monllao 5c0dfe32eb MDL-43439 behat: Save the screenshots to the specified location 2014-01-14 15:17:28 +08:00
Dan Poltawski 2be353c195 Merge branch 'master_MDL-41577' of git://github.com/danmarsden/moodle 2014-01-14 15:00:11 +08:00
Dan Poltawski 88457992ba Merge branch 'w02_MDL-43529_m27_globals' of https://github.com/skodak/moodle 2014-01-14 14:46:55 +08:00
Dan Poltawski 4198f7f903 Merge branch 'MDL-40918_master' of https://github.com/markn86/moodle 2014-01-14 14:43:45 +08:00
Damyon Wiese 761549816d Merge branch 'w02_MDL-43511_m27_bankcache' of https://github.com/skodak/moodle 2014-01-14 14:29:58 +08:00
Dan Poltawski 81f7090b0c MDL-40313 question: build shifter after js changes 2014-01-14 14:28:44 +08:00
Damyon Wiese f27e462b5f Merge branch 'MDL-43302-master' of git://github.com/andrewnicols/moodle 2014-01-14 14:23:06 +08:00
Dan Poltawski 198b1facc3 Merge branch 'MDL-40313' of git://github.com/timhunt/moodle 2014-01-14 14:21:06 +08:00
Damyon Wiese c98ee8cdc0 Merge branch 'MDL-43371-master' of git://github.com/FMCorz/moodle 2014-01-14 13:59:26 +08:00
Damyon Wiese b6dc2b72b2 Merge branch 'MDL-43460-master' of git://github.com/FMCorz/moodle 2014-01-14 13:25:44 +08:00
Damyon Wiese 9289d5fe72 Merge branch 'w02_MDL-43488_m27_signreq' of https://github.com/skodak/moodle 2014-01-14 13:18:16 +08:00
Damyon Wiese 961f70adcd Merge branch 'MDL-40056-master' of git://github.com/ankitagarwal/moodle 2014-01-14 13:14:09 +08:00
David Monllao ff7139d6cb MDL-43461 testing: Avoid switching to .bat files when running MinGW
MinGW can not execute .bat files (http://sourceforge.net/p/mingw/bugs/1902)
so we should not switch to .bat files when running MinGW.
2014-01-14 13:11:07 +08:00
David Monllao 19a40b1468 MDL-43461 behat: Using linux-style directory separators when using cygwin 2014-01-14 13:10:40 +08:00
Damyon Wiese f8a60dfe88 Merge branch 'MDL-35423-master' of git://github.com/andrewnicols/moodle
Conflicts:
	course/yui/build/moodle-course-modchooser/moodle-course-modchooser-min.js
	course/yui/dragdrop/dragdrop.js
2014-01-14 13:06:54 +08:00
Ankit Agarwal 0a61619043 MDL-40056 events: Replace old add_to_log calls with new events 2014-01-14 12:05:37 +08:00
Ankit Agarwal 25e8023d3d MDL-40056 events: Add unit tests for new events 2014-01-14 12:05:37 +08:00
Ankit Agarwal a501fe1385 MDL-40056 events: Created Event classes to replace add_to_log() - mod_scorm
Created attempt_deleted event
Created interactions_viewed event
Created report_viewed event
Created sco_launched event
Created tracks_viewed event
Created user_report_viewed event
Created course module related events
2014-01-14 12:05:10 +08:00
Adrian Greeve 4e2ba4bb31 MDL-31597 gradebook: Update to gradebook behat tests to include testing grade weightings. 2014-01-14 11:59:01 +08:00
Adrian Greeve 1301a07a3e MDL-31597 gradebook: Removed the percentage symbol from weights in the gradebook. 2014-01-14 11:59:01 +08:00
Mark Nelson 8ff753857c MDL-43332 core_grades: automated basic grade viewing functionality performed in MDLQA-317 2014-01-14 11:59:01 +08:00
Damyon Wiese 49ca1e77b0 Merge branch 'MDL-43610-m' of git://github.com/micaherne/moodle 2014-01-14 11:57:09 +08:00
Dan Poltawski 986c3f27ee Merge branch 'master_MDL-42792' of git://github.com/danmarsden/moodle 2014-01-14 11:28:39 +08:00
Petr Škoda 62c8032509 MDL-34347 remove all problematic global text caching
Instead we will create new MUC caches inside each filter plugin.
Please note that all cache filters should work with local caches
without the need of strict cache invalidation.
2014-01-14 10:49:23 +08:00
Dan Poltawski 4be67945aa Merge branch 'MDL-43412' of git://github.com/timhunt/moodle 2014-01-14 10:46:22 +08:00
Andrew Nicols 06acdf04f6 MDL-43664 Javascript: Use YUI indexOf for pending_js tracking
Some old browsers do not support indexOf and so cannot determine whether JS
script is in progress. The YUI Y.Array module polyfills the indexOf
functionality when it does not exist.
2014-01-14 10:39:06 +08:00
Damyon Wiese 1bedb6b92f MDL-33952 Assignment: Remove behat tests for mod_assignment - it is not a real activity anymore. 2014-01-14 09:57:05 +08:00
Nadav Kavalerchik 0954819fc7 MDL-40752 Login RTL: Swapping the panels on two-panel login pages for RTL
Additions to the patch by Jason Fowler <phalacee@gmail.com>
2014-01-14 09:19:42 +08:00
AMOS bot 7bccaffd78 Automatically generated installer lang files 2014-01-14 00:45:37 +00:00
Mark Nelson 4f5eaa55c5 MDL-43332 core_grades: automated basic grade viewing functionality performed in MDLQA-317 2014-01-13 15:47:51 -08:00
Eloy Lafuente (stronk7) 295f7a6137 Merge branch 'MDL-43109' of https://github.com/mdikih/moodle 2014-01-13 21:51:27 +01:00
Matteo Scaramuccia 753b71c775 MDL-43575 Libraries Google_CurlIO ext, typo in the overridden setOption(). 2014-01-13 21:29:23 +01:00
Matteo Scaramuccia f5482be6f8 MDL-43577 Messages Incorrect variable expansion in the message template. 2014-01-13 21:06:58 +01:00
Eloy Lafuente (stronk7) c33eb444fc Merge branch 'MDL-43395-master' of git://github.com/danpoltawski/moodle 2014-01-13 19:10:13 +01:00
Frederic Massart 70a0ae96aa MDL-41362 theme_bootstrapbase: Alignment of User Selector controls 2014-01-13 18:35:59 +01:00
Eloy Lafuente (stronk7) b9da30cfd2 Merge branch 'MDL-33600-master' of git://github.com/damyon/moodle 2014-01-13 16:31:00 +01:00
Frederic Massart fdbb039713 MDL-39684 theme: RTL align of restrictions label in file manager 2014-01-13 16:15:12 +01:00
Frederic Massart 2fca44ad65 MDL-39683 message: RTL alignment of messages in theme_base 2014-01-13 15:40:10 +01:00
Nadav Kavalerchik cb0f81c210 MDL-39683 Messages, Themes: Fix "my" and "other person" message alignment in RTL mode (theme/clean) 2014-01-13 15:22:57 +01:00
Dan Poltawski 06cdbf8382 Merge branch 'MDL-40849-master' of git://github.com/FMCorz/moodle 2014-01-13 15:38:22 +08:00
Frederic Massart bfa0c3ab4f MDL-40849 gradingform_guide: Fixed CSS issues with Bootstrapbase 2014-01-13 08:11:07 +01:00
Dan Poltawski d1426e2843 Merge branch 'MDL-33952-master' of git://github.com/damyon/moodle
Conflicts:
	mod/assignment/lang/en/assignment.php
2014-01-13 12:55:36 +08:00
Dan Poltawski 8c0ddd430a Merge branch '43598-43262-27' of git://github.com/samhemelryk/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js
	lib/yui/src/notification/js/dialogue.js
2014-01-13 12:42:13 +08:00
Dan Poltawski dbfdd1a4f9 Merge branch 'MDL-39603-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-13 12:34:53 +08:00
Dan Poltawski 3ef74a63a6 Merge branch 'MDL-43262-master' of git://github.com/andrewnicols/moodle 2014-01-13 12:11:17 +08:00
Dan Poltawski f9276172a2 Merge branch '41226-27' of git://github.com/samhemelryk/moodle 2014-01-13 11:11:10 +08:00
Dan Poltawski 58c8f0290f Merge branch '40821-27' of git://github.com/samhemelryk/moodle 2014-01-13 11:02:18 +08:00
Dan Poltawski e41761a5e9 Merge branch '40693-27' of git://github.com/samhemelryk/moodle 2014-01-13 10:07:53 +08:00
Dan Poltawski fb9360db3a Merge branch 'MDL-41152-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-13 10:03:51 +08:00
Sam Hemelryk ee749e50be MDL-40205 theme: fixed overflow of block headers 2014-01-13 09:40:38 +08:00
Dan Poltawski b5c8e7cbc3 Merge branch 'MDL-40705-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-13 09:35:50 +08:00
Dan Poltawski f6652bc750 Merge branch 'MDL-39661-master' of git://github.com/FMCorz/moodle 2014-01-13 08:54:22 +08:00
Dan Poltawski c582565a06 MDL-43395 dml: warn about invalid limit params
Help developers to find bugs by throwing a DEBUG_DEVELOPER message
rather than ignoring this case completely.
2014-01-13 08:42:07 +08:00
Sam Hemelryk d9bf4be487 MDL-43598 dialogue: fixed bug with render procedure 2014-01-13 08:27:46 +13:00
Andrew Nicols a67233e76f MDL-43262 JavaScript: Correct use of centered attribute override
This should be done using an attribute modification, rather than at the
constructor level.
2014-01-13 08:26:28 +13:00
Andrew Nicols c46cca4f94 MDL-43262 JavaScript: Correct visible attribute override
This should be done using an attribute modification, rather than at the
constructor level.
2014-01-13 08:26:28 +13:00
Andrew Nicols 16d024348a MDL-43262 JavaScript: Correct width attribute override
This should be done using an attribute modification, rather than at the
constructor level.
2014-01-13 08:26:28 +13:00
Sam Hemelryk 3fa787ae4e MDL-40821 theme_bootstrapbase: fixed positioning of profile controls
Conflicts:
	theme/bootstrapbase/style/moodle.css
2014-01-13 08:17:24 +13:00
Sam Hemelryk 73d7e6eba9 MDL-40821 theme_bootstrapbase: show the current lang in the menu 2014-01-13 08:16:11 +13:00
Sam Hemelryk 73fc183d3a MDL-40693 theme_bootstrapbase: changed navbar separator to official separator 2014-01-13 08:15:46 +13:00
Sam Hemelryk e5e0d397f4 MDL-35597 admin-plugins: are now sorted alphabetically 2014-01-13 08:12:42 +13:00
Sam Hemelryk cea3b7eb76 MDL-35597 admin: categories now support localised alphabetical sorting 2014-01-13 08:12:42 +13:00
Petr Škoda 7bd95129d3 MDL-43488 remoe city and country requirement from signup
This was supposed to be part of MDL-28558.
2014-01-12 18:23:20 +08:00
Petr Škoda c0fa7b0d93 MDL-43511 do not cache the MUC cache in question code 2014-01-12 18:20:52 +08:00
Petr Škoda 18a336c4e7 MDL-43537 drop some more unused ancient admin strings 2014-01-12 18:07:55 +08:00
Petr Škoda 460b5b791f MDL-43537 remove environemnt checks and strings that are not used any more 2014-01-12 18:02:46 +08:00
Petr Škoda 6a27439b8f MDL-43529 delete all unnecessary register_globals checks 2014-01-12 17:58:39 +08:00
Eloy Lafuente (stronk7) 12efa52762 MDL-43646 "disapprove" changed to "undo approval" 2014-01-10 19:54:10 +01:00
Eloy Lafuente (stronk7) 7123ae8f9a MDL-43590 move unapprove to undo approval 2014-01-10 18:56:10 +01:00
Michael Aherne f56ad6036f MDL-46310 assign Prevent blind marking submission notification email being sent to noreplyemail address 2014-01-10 15:19:04 +00:00
Frederic Massart 4e5f3996b2 MDL-40139 block_privatefiles: Remove unused edit form 2014-01-10 13:03:31 +01:00
Frederic Massart ad5ec8fc10 MDL-40139 block_privatefiles: Prevent usage of unmaintained edit page 2014-01-10 13:00:45 +01:00
Frederic Massart f196f42c84 MDL-41693 group: Use standard layout for group related pages 2014-01-10 12:26:50 +01:00
Tony Butler 802f85076a MDL-43632 mod_feedback: Use SSL for reCAPTCHA API request if Moodle is using it 2014-01-10 10:40:23 +00:00
David Monllao 50edfdca03 MDL-43584 behat: Updating features to use the new expected arguments 2014-01-10 18:25:44 +08:00
David Monllao 14ebd16390 MDL-43584 behat: Removing DB calls from step definitions as much as possible
Old methods deprecated as the expected arguments
have changed.
2014-01-10 18:25:44 +08:00
Damyon Wiese 3ec07614ba MDL-43439: Behat - new $CFG param - behat_screenshot_after_failure 2014-01-10 17:54:53 +08:00
David Monllao abe572e3f2 MDL-43642 behat: Setting the correct files @package 2014-01-10 17:50:50 +08:00
Eloy Lafuente (stronk7) 577432283c Merge branch 'MDL-43590-en_fix' of git://github.com/mudrd8mz/moodle 2014-01-10 10:08:34 +01:00
Dan Marsden aafb7a5b95 MDL-43222 SCORM: correct check for list of attempts and make correct check for current attempt in scorm_get_toc 2014-01-10 22:04:09 +13:00
Dan Marsden 2526d7e178 MDL-42792 SCORM: Prevent JS error when network connection fails. - return false to SCORM package so that issue can be detected and reported. 2014-01-10 21:04:54 +13:00
Dan Marsden 434cab3c79 MDL-41577 SCORM: remove old IE9 hack that didn't really work. 2014-01-10 20:46:05 +13:00
Damyon Wiese 8a0667a994 weekly release 2.7dev 2014-01-10 14:19:48 +08:00
Damyon Wiese fb4c6f454b Merge branch 'install_master' of git://git.moodle.org/moodle-install 2014-01-10 14:19:31 +08:00
Rajesh Taneja 4a536604b8 MDL-40917 mod_resource: replaced add_to_log with events 2014-01-10 14:12:07 +08:00
Eloy Lafuente (stronk7) b47b3c58e0 MDL-36721 make upgrade queries cross-db 2014-01-10 11:17:23 +08:00
Andrew Davis 2b860793a6 MDL-43178 mod_forum: fixed the digest setting confirmation message 2014-01-10 08:33:03 +08:00
Eloy Lafuente (stronk7) 24d74a6804 Merge branch 'wip-MDL-43283-master' of git://github.com/marinaglancy/moodle 2014-01-09 23:07:19 +01:00
Sam Hemelryk c2dc13a017 MDL-43349 cache: added back are_requirements_met calls 2014-01-09 23:02:14 +01:00
Tim Hunt d62382d1f9 MDL-40313 question bank search classes should be namespaced. 2014-01-09 18:26:21 +00:00
Tim Hunt e22e749002 MDL-40313 Fix code and doc checker warnings. 2014-01-09 18:26:18 +00:00
Ray Morris efa5155a2a MDL-40313 questionbank: Add question filtering API
Add new API for filtering questions, refactoring the options to display
old questions and include subcategories into new
question_bank_search_condition classes. Make the new API pluggable via
local_[pluginname]_get_question_bank_search_conditions.
2014-01-09 16:46:42 +00:00
Frederic Massart 63fe00c996 MDL-43401 mod_lesson: Fix serving of the pluginfile mediafile 2014-01-09 16:53:55 +01:00
Frederic Massart 582ba677fd MDL-43371 mod_lesson: Remove files upon page or module deletion 2014-01-09 16:20:20 +01:00
Frederic Massart 138eb08746 MDL-41152 theme_bootstrapbase: Optimise width for gradebook tree view 2014-01-09 10:25:53 +01:00
Eloy Lafuente (stronk7) 305e60a5e2 Merge branch 'MDL-43330_master-skippedexception-namespace' of https://github.com/dmonllao/moodle 2014-01-09 10:19:25 +01:00
Marina Glancy 1f47813b29 MDL-43283 mod_chat: corrected SQL query to follow strict groupping rules 2014-01-09 15:37:38 +08:00
David Monllao 9920d28b0a MDL-43330 behat: Using the tag that includes the exception namespace 2014-01-09 12:08:21 +08:00
AMOS bot b9fec1d364 Automatically generated installer lang files 2014-01-09 00:42:11 +00:00
Helen Foster 480fca77b3 MDL-43590 Merge English strings from the en_fix language pack 2014-01-09 01:06:01 +01:00
Tim Hunt 1f8ff396d2 MDL-43412 quiz with grade period and password did not work.
Once the attempt became overdue, it was impossible to get in to submit
it because of a redirect loop. This fix resovles that loop, so the
student can enter their password and get in.
2014-01-08 17:55:25 +00:00
Andrew Nicols b5154feacc MDL-40119 Forms: Remove cursor style override for calendar button 2014-01-08 11:13:37 +01:00
Frederic Massart 86048e8136 MDL-39603 theme_bootstrapbase: Alignment of filter form elements on enrol page 2014-01-08 10:37:41 +01:00
Eloy Lafuente (stronk7) d68829aac0 Merge branch 'MDL-43423_master-increase-timeout' of git://github.com/dmonllao/moodle 2014-01-08 09:55:08 +01:00
David Monllao 845ceaff9f MDL-43423 behat: Increasing the timeout to 6 seconds 2014-01-08 16:51:17 +08:00
Damyon Wiese 40cb48792a MDL-33952 Assignment - bon voyage!
mod_assignment has been replaced with a stub that only exists to support restoring and
auto upgrading to mod_assign. If you require mod_assignment for some old plugin, then
overwrite with the 2.6 version manually.
2014-01-08 14:51:06 +08:00
Dan Poltawski 7de1b42f55 Merge branch 'wip-MDL-43606-master' of git://github.com/marinaglancy/moodle 2014-01-08 14:32:57 +08:00
Marina Glancy c6cd067f14 MDL-43606 tinymce_managefiles: bump version
to allow smooth upgrade from contributed plugin in 2.5
2014-01-08 13:58:41 +08:00
Dan Poltawski 33c6c949e5 Merge branch 'MDL-43534-master' of git://github.com/andrewnicols/moodle 2014-01-08 11:56:53 +08:00
Dan Poltawski f446874d53 Merge branch 'MDL-43532-master' of git://github.com/andrewnicols/moodle 2014-01-08 11:43:39 +08:00
Dan Poltawski a6fa74bca3 Merge branch 'MDL-43595-master' of git://github.com/damyon/moodle 2014-01-08 11:34:46 +08:00
Damyon Wiese 8e1266bf77 MDL-33600 Assign: Add an admin setting to set the default for sendstudentnotifications 2014-01-08 11:03:59 +08:00
Damyon Wiese f7dc9871e7 MDL-33600 Assign: Allow teachers to skip notifying students about grade update. 2014-01-08 10:34:57 +08:00
Yuliya Bozhko 343534a855 MDL-41810 badges: Remove hardcoded references to backpack.openbadges.org 2014-01-08 14:55:30 +13:00
Damyon Wiese cf1110eb62 MDL-43595: The dropdowns for editpdf stopped working due to a recent change. 2014-01-08 09:15:58 +08:00
Eloy Lafuente (stronk7) ab7f498343 Merge branch 'MDL-40119-master' of git://github.com/andrewnicols/moodle 2014-01-08 02:15:03 +01:00
Eloy Lafuente (stronk7) e6a6eb7838 Merge branch 'w01_MDL-42797_m27_admin' of https://github.com/skodak/moodle 2014-01-08 02:09:55 +01:00
Eloy Lafuente (stronk7) 69ebcb4222 Merge branch 'MDL-43423_master' of git://github.com/dmonllao/moodle 2014-01-08 02:02:29 +01:00
Eloy Lafuente (stronk7) a1017ec837 Merge branch 'MDL-43330_master' of git://github.com/dmonllao/moodle 2014-01-08 01:59:21 +01:00
Eloy Lafuente (stronk7) 0601a82aff Merge branch 'wip-MDL-42310-master' of git://github.com/abgreeve/moodle 2014-01-08 01:32:28 +01:00
Dan Poltawski 267d4927b4 Merge branch 'MDL-43173_master' of git://github.com/dmonllao/moodle 2014-01-08 08:21:06 +08:00
Eloy Lafuente (stronk7) 45f6a8340b Merge branch 'm27_MDL-43508_Invalid_String_Identifier' of https://github.com/scara/moodle 2014-01-08 00:45:51 +01:00
Eloy Lafuente (stronk7) b8a8f3dd01 Merge branch 'MDL-42607_rss' of https://github.com/andyjdavis/moodle 2014-01-08 00:39:15 +01:00
Eloy Lafuente (stronk7) 430740f65a Merge branch 'MDL-42392-master' of git://github.com/andrewnicols/moodle 2014-01-08 00:23:40 +01:00
Eloy Lafuente (stronk7) 78b31176cb Merge branch 'w01_MDL-43515_m27_phpunitdocs' of https://github.com/skodak/moodle 2014-01-08 00:13:28 +01:00
Eloy Lafuente (stronk7) 382addccef Merge branch '23837-27' of git://github.com/samhemelryk/moodle 2014-01-07 23:42:55 +01:00
Eloy Lafuente (stronk7) 7ad46ac29d Merge branch 'w01_MDL-43503_m27_pagedldap' of https://github.com/skodak/moodle 2014-01-07 23:40:51 +01:00
Eloy Lafuente (stronk7) b3b1b18a4f Merge branch 'MDL-43451-master' of git://github.com/andrewnicols/moodle 2014-01-07 23:32:38 +01:00
Dan Poltawski 7d374cdf4a Merge branch 'w01_MDL-43510_m27_test404' of https://github.com/skodak/moodle 2014-01-07 17:28:15 +08:00
Dan Poltawski ac60c5b60e Merge branch 'MDL-43270-master' of git://github.com/andrewnicols/moodle 2014-01-07 17:23:07 +08:00
Dan Poltawski 571944c2a1 Merge branch 'm27_MDL-43482_Lot_Of_Passed_By_Reference_Messages' of https://github.com/scara/moodle 2014-01-07 17:20:44 +08:00
Damyon Wiese 8af52d3188 Merge branch 'MDL-34356-master' of git://github.com/andrewnicols/moodle 2014-01-07 16:57:49 +08:00
Damyon Wiese 715d0505c4 Merge branch 'MDL-43273-master' of git://github.com/andrewnicols/moodle 2014-01-07 16:16:48 +08:00
Damyon Wiese fcd640a51a Merge branch 'MDL-43271-master' of git://github.com/andrewnicols/moodle 2014-01-07 16:15:16 +08:00
Damyon Wiese 9673c119f2 MDL-36334 JS: Only print deprecation notices for developers 2014-01-07 16:11:27 +08:00
Damyon Wiese a66aea5c67 Merge branch 'MDL-36334-master' of https://github.com/andrewnicols/moodle 2014-01-07 16:10:05 +08:00
Dan Poltawski 25294dd466 MDL-43481 lib: minor cleanups to commands
And remove unused strings - thanks to Simon Coggins!
2014-01-07 15:48:06 +08:00
Dan Poltawski 6d0796942b Merge branch 'w01_MDL-43481_m27_passwords' of https://github.com/skodak/moodle 2014-01-07 15:46:59 +08:00
Damyon Wiese abc217b2bf Merge branch 'MDL-43307-master' of git://github.com/andrewnicols/moodle 2014-01-07 14:10:40 +08:00
Dan Poltawski 899ca7632f Merge branch 'MDL-43489-master' of git://github.com/andrewnicols/moodle 2014-01-07 13:48:49 +08:00
Damyon Wiese 454fab1ac7 Merge branch 'w01_MDL-43585_m27_userlib' of https://github.com/skodak/moodle 2014-01-07 13:30:24 +08:00
Andrew Nicols 6fc9488862 MDL-36334 JS: Deprecate YUI galleryversion in enrol 2014-01-07 16:12:55 +11:00
Damyon Wiese 778c03ccb1 Merge branch 'MDL-43411-master' of git://github.com/andrewnicols/moodle 2014-01-07 12:53:07 +08:00
Dan Poltawski 4e5fb5bec1 Merge branch 'm27_MDL-40379_Prevent_Some_Mobile_Network_Providers_From_Modifying_Content' of https://github.com/scara/moodle 2014-01-07 12:42:33 +08:00
Damyon Wiese e011f229a8 Merge branch 'w01_MDL-43402_m27_zlib' of https://github.com/skodak/moodle 2014-01-07 12:29:45 +08:00
Damyon Wiese 3a145daba4 Merge branch 'MDL-43490-master' of git://github.com/andrewnicols/moodle 2014-01-07 12:26:01 +08:00
Damyon Wiese de47c9c81b Merge branch 'wip-mdl-43293' of https://github.com/rajeshtaneja/moodle 2014-01-07 12:22:49 +08:00
Petr Škoda 64ad5208a9 MDL-43585 remove incorrect user/lib.php include 2014-01-07 12:16:02 +08:00
David Monllao 96ed7ca4dd MDL-43423 behat: Running hooks before and after each step of a chained step 2014-01-07 12:12:30 +08:00
Sam Hemelryk c68fbad68a MDL-43526 category: added restore course link to admin structure 2014-01-07 12:08:34 +08:00
Sam Hemelryk 39bd07f732 MDL-43526 course: links to restore from management and admin structure. 2014-01-07 12:08:34 +08:00
Dan Poltawski 812cc702ad Merge branch 'MDL-42995-master-3rd' of git://github.com/FMCorz/moodle 2014-01-07 11:51:15 +08:00
Sam Hemelryk ccc22a096a MDL-43349 cache: is_ready now checks are_requirements_met by default
(Fixes the fixed forwarded static call bug reverted in a5581c7)
2014-01-07 11:47:18 +08:00
Dan Poltawski 7afca0ff5a Merge branch 'wip-mdl-43521' of https://github.com/rajeshtaneja/moodle 2014-01-07 11:08:23 +08:00
Rajesh Taneja 3231c8cbf6 MDL-42643 course: Member in same group should only loginas
If course groupmode is set to SEPARATEGROUPS, and user doesn't have
site:accessallgroups capability than only allow user to loginas if
current user is in same group as loginas user
2014-01-07 11:05:20 +08:00
Dan Poltawski a6b4b3350f Merge branch 'MDL-43394a' of https://github.com/srynot4sale/moodle 2014-01-07 10:59:40 +08:00
Dan Poltawski 93759b73a5 Merge branch 'MDL-42585-master' of git://github.com/damyon/moodle
Conflicts:
	mod/assign/version.php
2014-01-07 10:55:20 +08:00
Dan Poltawski ce3dbebc91 Merge branch 'MDL-43373-master' of https://github.com/tonyjbutler/moodle 2014-01-07 10:43:39 +08:00
Dan Poltawski 62bfe6202e Merge branch 'MDL-43323-master' of git://github.com/andrewnicols/moodle 2014-01-07 10:34:40 +08:00
Damyon Wiese daaa692b05 Merge branch 'MDL-43448' of git://github.com/timhunt/moodle 2014-01-07 09:22:27 +08:00
Andrew Nicols 5b9e2cc78b MDL-35423 JavaScript: Reduce specifity of course AJAX
Some themes may choose not to use the same layout as core themes. Reduce
the specifity of these to allow other themes to use our JavaScript without
following the same markup.
2014-01-07 09:51:04 +11:00
Frederic Massart f802fe7d7f MDL-40705 theme_bootstrapbase: Handling of long words in block content 2014-01-06 15:43:26 +01:00
Frederic Massart 686e3b3ae0 MDL-39661 blocks: More verbose move-block-here descriptions 2014-01-06 12:51:44 +01:00
Frederic Massart bc213518dc MDL-43460 calendar: Decode event description links on restore 2014-01-06 11:26:48 +01:00
Frederic Massart f588ea5008 MDL-42995 mod_assign: Extended tests for update_calendar method 2014-01-06 10:20:23 +01:00
David Monllao 4b6b1e3a00 MDL-43330 behat: behat-extension version changed 2014-01-06 17:11:39 +08:00
Frederic Massart 0cfc7d13ef MDL-42995 mod_assign: Remove files from calendar event description 2014-01-06 09:29:26 +01:00
Frederic Massart 2a5794e099 MDL-42995 mod_assign: Use new global function to strip content 2014-01-06 09:29:25 +01:00
Frederic Massart 0a8b3583ca MDL-42995 libraries: Global function to strip pluginfile content 2014-01-06 09:29:25 +01:00
Damyon Wiese 21197e9d4a Merge branch 'MDL-43399-master' of git://github.com/mouneyrac/moodle 2014-01-06 16:13:44 +08:00
Damyon Wiese 717093583f Merge branch 'MDL-43454-master' of git://github.com/FMCorz/moodle 2014-01-06 15:51:25 +08:00
Damyon Wiese 5490662ade Merge branch 'MDL-41690-master' of git://github.com/danpoltawski/moodle
Conflicts:
	course/dnduploadlib.php
2014-01-06 15:48:31 +08:00
Dan Poltawski 00447fd617 Merge branch 'MDL-40922_master' of https://github.com/markn86/moodle 2014-01-06 15:11:23 +08:00
Damyon Wiese 9f83e42fe3 Merge branch 'w01_MDL-36721_m27_passlog' of https://github.com/skodak/moodle 2014-01-06 14:52:56 +08:00
Dan Poltawski a5581c7376 Revert "MDL-43349 cache: is_ready now checks are_requirements_met by default"
This reverts commit 2201c02d73.
2014-01-06 14:47:12 +08:00
Dan Poltawski da444e200c Merge branch '43349-27' of git://github.com/samhemelryk/moodle 2014-01-06 14:21:44 +08:00
Rajesh Taneja b8e6c15a99 MDL-42883 Administration: Check sessionkey before taking action on user profile fields 2014-01-06 13:58:18 +08:00
Dan Poltawski 73ee2fda6b MDL-41690 course: remove use of deprecated functions 2014-01-06 10:45:59 +08:00
Dan Poltawski 07e78d935f MDL-41690 cm_info: deprecate various properties 2014-01-06 10:45:59 +08:00
Dan Poltawski 0394a0eefe Merge branch 'MDL-43408-master' of https://github.com/tonyjbutler/moodle 2014-01-06 10:06:11 +08:00
Sam Hemelryk 7c445ab8c0 Merge branch 'w01_MDL-43527_m27_safemode' of https://github.com/skodak/moodle 2014-01-06 14:46:31 +13:00
Sam Hemelryk 8e06909afd Merge branch 'w01_MDL-43528_m27_magic' of https://github.com/skodak/moodle 2014-01-06 14:19:11 +13:00
Sam Hemelryk 98f0074fc5 Merge branch 'MDL-31050_rss' of https://github.com/andyjdavis/moodle 2014-01-06 14:16:26 +13:00
Sam Hemelryk e4ac256c35 Merge branch 'wip-mdl-18770' of https://github.com/rajeshtaneja/moodle 2014-01-06 13:09:42 +13:00
Sam Hemelryk e6d3f9438e Merge branch 'MDL-40054_master' of https://github.com/markn86/moodle 2014-01-06 12:01:54 +13:00
Sam Hemelryk 61a79e01fc Merge branch 'MDL-40551_master' of https://github.com/totara/openbadges
Conflicts:
	badges/upgrade.txt
2014-01-06 12:00:11 +13:00
Sam Hemelryk a9bd004c8c Merge branch 'MDL-35973_redirect' of https://github.com/andyjdavis/moodle 2014-01-06 11:28:34 +13:00
Sam Hemelryk 9b94e327d3 Merge branch 'MDL-43281-master' of git://github.com/andrewnicols/moodle 2014-01-06 11:22:29 +13:00
Sam Hemelryk f29dcf642b Merge branch 'MDL-42212-master' of git://github.com/FMCorz/moodle 2014-01-06 10:30:31 +13:00
Sam Hemelryk 62b4ddc294 Merge branch 'MDL-42801-master' of git://github.com/andrewnicols/moodle 2014-01-06 10:19:20 +13:00
Sam Hemelryk dfed81ae12 Merge branch 'MDL-36334-master' of git://github.com/andrewnicols/moodle 2014-01-06 09:53:15 +13:00
Sam Hemelryk 2dad31ecf9 MDL-43238 mod_assign: removed incorrect validation 2014-01-06 09:51:38 +13:00
Sam Hemelryk 7404bfd003 Merge branch 'w01_MDL-43196_m27_signupfiles' of https://github.com/skodak/moodle 2014-01-06 09:11:32 +13:00
Rajesh Taneja 456d7bc7f3 MDL-18770 mod_assign: Set gradetype to GRADE_TYPE_NONE if feedback not enabled 2014-01-03 16:30:37 +08:00
Rajesh Taneja 184afb6b73 MDL-43238 events: Added event other information in event php doc block 2014-01-03 15:03:48 +08:00
Mark Nelson 4cc4b85deb MDL-40054 mod_lesson: removed 'update email essay grade' add_to_log call
The add_to_log call was triggered whenever a grade was sent via the messaging
API. We should not be firing an event here, it should be fired via the
messaging API.
2014-01-02 19:52:49 -08:00
Mark Nelson 00c027c7e3 MDL-40054 mod_lesson: replaced 'end' add_to_log call with an event 2014-01-02 19:52:49 -08:00
Mark Nelson 9c192d812b MDL-40054 mod_lesson: replaced 'start' add_to_log call with an event 2014-01-02 19:52:48 -08:00
Mark Nelson 81d2421c55 MDL-40054 mod_lesson: replaced 'view highscores' add_to_log call with an event 2014-01-02 19:52:48 -08:00
Mark Nelson 8539411823 MDL-40054 mod_lesson: replaced 'update highscores' add_to_log call with an event 2014-01-02 19:52:44 -08:00
Mark Nelson b6374c24ee MDL-40054 mod_lesson: replaced 'grade view' add_to_log call with an event 2014-01-02 19:44:39 -08:00
Mark Nelson 3f08c95ade MDL-40054 mod_lesson: replaced 'view all' add_to_log call with an event 2014-01-02 19:44:39 -08:00
Mark Nelson 7edf27c48e MDL-40054 mod_lesson: replaced 'view' add_to_log call with an event 2014-01-02 19:44:32 -08:00
David Monllao afe9f42adb MDL-43173 behat: Thowing an exception if the JS is not ready 2014-01-03 11:27:54 +08:00
Rajesh Taneja 42ebe8f04f MDL-43521 block_admin_bookmarks: Site admin node is of type TYPE_SITE_ADMIN
Since 2.6 Site admin node is of type TYPE_SITE_ADMIN, previously it was TYPE_SETTING
2014-01-03 10:39:50 +08:00
Michael Milette a059b434f7 MDL-42310 feedback mod - Enable filtering of multichoice and multichoice rated controls
Conflicts:
	mod/feedback/item/multichoice/lib.php
	mod/feedback/item/multichoicerated/lib.php

Signed-off-by: Michael Milette <michael.milette@instruxmedia.com>
2014-01-03 10:24:49 +08:00
Tony Butler 2b6b37d4f9 MDL-43373 core_enrol: Display enrolments dimmed if outside of start or end times 2014-01-02 17:16:06 +00:00
Tony Butler 0aff7a5517 MDL-43408 gradereport_grader: Display users with expired enrolments as inactive in grader report 2014-01-02 16:39:13 +00:00
Andrew Nicols b4ab504574 MDL-43534 Course: Remove deprecated functions from course/renderer
This function was deprecated in 2.4 and was due for removal in 2.6.

Removing as per deprecation policy.
2014-01-02 11:35:33 +08:00
Andrew Nicols 2ad8f0f680 MDL-43532 Course: Remove deprecated functions from calendar
This function was deprecated in 2.4 and was due for removal in 2.6.

Removing as per deprecation policy.
2014-01-02 11:27:25 +08:00
Andrew Nicols e9a235e444 MDL-43531 Course: Remove deprecated functions from dnduploadlib
These functions were deprecated in 2.5 and are due for removal in 2.7.

Removing as per deprecation policy.
2014-01-02 11:20:01 +08:00
Andrew Davis 6c90c5cae2 MDL-31050 rss: removed some unused function parameters and removed some low value comments 2014-01-02 10:35:14 +08:00
Petr Škoda 3e5226ab6e MDL-43528 remove all traces of magic quotes hacking from moodle core 2014-01-02 10:15:06 +08:00
Petr Škoda 90627d9d59 MDL-43527 eliminate last references to safe_mode
Safe mode is not availabel in PHP 5.4 any more...
2014-01-02 09:23:15 +08:00
Petr Škoda 61d598f057 MDL-42797 require real user login on upgrade settings page 2014-01-02 09:17:16 +08:00
Sam Hemelryk 3d907759ad MDL-23837 enrol: restyled the role and group controls 2014-01-02 11:39:53 +13:00
Sam Hemelryk 2201c02d73 MDL-43349 cache: is_ready now checks are_requirements_met by default 2014-01-02 09:55:51 +13:00
Sam Hemelryk 07658be7b4 MDL-43349 cache: init now checks store requirements are met 2014-01-02 09:44:25 +13:00
Petr Škoda fc1d0e822d MDL-42797 require real user login on admin page 2014-01-01 15:19:02 +08:00
Mark Nelson e9787bda9a MDL-40918 mod_lti: removed the 'launch' add_to_log call
This add_to_log call is unnecessary and does not need to be replaced with an event.
It is called whenever we view the external tool, which will trigger the view event.
There is no need for two events when this occurs.
2013-12-31 16:06:37 -08:00
Mark Nelson 3fdd73e83d MDL-40918 mod_lti: replaced 'view' and 'view all' add_to_log calls with events 2013-12-31 15:47:49 -08:00
Mark Nelson 81ec45ea11 MDL-40922 mod_folder: replaced the 'edit' add_to_log call with an event 2013-12-31 15:14:57 -08:00
Mark Nelson 6f3e33c947 MDL-40922 mod_folder: replaced the 'view' and 'view all' add_to_log calls with events 2013-12-31 15:14:57 -08:00
Petr Škoda deae60239d MDL-43503 do not check presence of ldap paging functions, we require PHP 5.4 now 2013-12-31 14:34:20 +08:00
Andrew Nicols fd2dcaa603 MDL-43451 Cron: Retrieve additional name fields when creating passwords 2013-12-31 13:45:14 +08:00
Andrew Davis 8f6e47d9c7 MDL-42607 mod_forum:fixed some inefficiencies in forum RSS generation 2013-12-31 12:28:09 +08:00
Andrew Nicols 4e2c2c64bb MDL-36334 mod_scorm: Remove gallery-sm-treeview
This has now been incorporated into core.
2013-12-30 19:19:26 +08:00
Andrew Nicols 9edca1ae42 MDL-36334 Libraries: Add version gallery-2013.10.02-20-26 of specified gallery modules
We currently only include:
* gallery-sm-treeview*
2013-12-30 19:19:26 +08:00
Andrew Nicols 5b49f8b3a8 MDL-36334 JavaScript: Enable access to the gallery 2013-12-30 19:19:26 +08:00
Andrew Davis e3288953e7 MDL-35973 lib: added a page title to redirect() and added 2 seconds to the page redirection when posting in a forum 2013-12-30 18:26:24 +08:00
Andrew Nicols 83e9f0ad71 MDL-40119 Forms: Date selector should use images for the calendar popup toggle
The calendar popup toggle must use an image, rather than an input with type
of image as the latter is actually a form of submit button, and hence it
steals the focus away from the real submit button.
2013-12-30 15:53:42 +08:00
Petr Škoda 32a829e85c MDL-43515 update phpunit info page 2013-12-30 15:07:27 +08:00
Andrew Nicols 1cce5dfb9a MDL-43281 Blocks: Retrieve a newly created block after creating it
Although we were previously creating the DOM markup for a block region if
it did not exist, we were not making use of it.

This change ensures that we make use of that block region as part of the
blocks code.
2013-12-30 14:15:32 +08:00
AMOS bot 85214bb089 Automatically generated installer lang files 2013-12-30 00:43:22 +00:00
Andrew Nicols 676bad62f4 MDL-43262 JavaScript: Correct use of centered attribute override
This should be done using an attribute modification, rather than at the
constructor level.
2013-12-29 15:38:11 +08:00
Andrew Nicols 713577985c MDL-43262 JavaScript: Correct visible attribute override
This should be done using an attribute modification, rather than at the
constructor level.
2013-12-29 15:38:02 +08:00
Andrew Nicols d0cf26c328 MDL-43262 JavaScript: Correct width attribute override
This should be done using an attribute modification, rather than at the
constructor level.
2013-12-29 15:37:49 +08:00
Petr Škoda b1652d6b85 MDL-43510 fix 404 unit test server incompatibility 2013-12-29 15:28:14 +08:00
AMOS bot d1e198d9a5 Automatically generated installer lang files 2013-12-29 00:43:24 +00:00
Matteo Scaramuccia c3a3f54053 MDL-40379 Files Prevent mobile network providers from modifying content. 2013-12-28 13:56:19 +01:00
Matteo Scaramuccia 7a66ddb63b MDL-43508 Quiz Invalid get_string() identifier. 2013-12-28 11:12:29 +01:00
Andrew Nicols 80cd508669 MDL-34356 JavaScript: Allow chooser dialogues to submit values for hidden elements
When we submit the chooser dialogue, we disable the radio buttons used for
selection. Since browsers do not actually submit values for disabled
elements, we store the radio value in a hidden element which is not
disabled.

This commit abstracts this out of the activity chooser and into the generic
chooser dialogue such that other types of chooser dialogue may use it.
2013-12-28 11:35:52 +08:00
Andrew Nicols 9b2ad813b8 MDL-42801 JavaScript: Fix dndupload to match actual style 2013-12-28 09:13:40 +08:00
Andrew Nicols 2fad76eb9b MDL-42392 Blocks: Do not hide blocks if JS is disabled
With JS disabled, it is not possible to change the block visibility
user preference and therefore not possible to show content which was
hidden.

Since the block hiding functionality is a nicety, and we have no controls
to show and hide the blocks when JS is disabled, we should instead show the
block content regardless of the user preference.
2013-12-28 08:33:35 +08:00
Petr Škoda 914499a340 MDL-36721 do not store passwords in config logs 2013-12-27 11:17:45 +08:00
Petr Škoda f540cfe99e MDL-43196 do not load file management for guests and when not managing files 2013-12-27 11:11:55 +08:00
Petr Škoda b19d75a264 MDL-43402 let's try to remove @ silencing from gzip related code
If anything goes wrong on multiple production sites we can just
revert this commit, that is why it is separete from the rest
of zlib stuff.
2013-12-27 11:06:18 +08:00
Petr Škoda 2803f3c1b5 MDL-43402 remove all zlib detection code
Zlib extension is now required.
2013-12-27 11:06:18 +08:00
Petr Škoda 6780a1d3e5 MDL-43481 remove unnecessary legacy password hashing 2013-12-27 11:03:50 +08:00
AMOS bot 26e4156a0f Automatically generated installer lang files 2013-12-25 00:42:48 +00:00
Matteo Scaramuccia 323f4fff46 MDL-43482 Chat Lot of "Only variables should be passed by reference". 2013-12-24 11:02:29 +01:00
Sam Hemelryk bbb291b7b7 weekly release 2.7dev 2013-12-24 17:17:29 +13:00
Sam Hemelryk a89ce43091 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2013-12-24 17:17:26 +13:00
Sam Hemelryk 69f86e87a7 Merge branch 'wip-MDL-41788_master_3' of git://github.com/gjb2048/moodle 2013-12-24 12:52:22 +13:00
Eloy Lafuente (stronk7) c4edcce3ac Merge branch 'w52_MDL-43314_m27_floats' of https://github.com/skodak/moodle 2013-12-24 00:20:24 +01:00
Sam Hemelryk 946e770ede Merge branch 'MDL-43243-master' of git://github.com/andrewnicols/moodle 2013-12-24 11:56:01 +13:00
Sam Hemelryk 24bf5af4b7 Merge branch 'MDL-41246-master' of git://github.com/StudiUM/moodle 2013-12-24 11:41:48 +13:00
Sam Hemelryk c5213d7e6e Merge branch 'MDL-43438-master' of git://github.com/FMCorz/moodle 2013-12-24 11:23:15 +13:00
Sam Hemelryk ee70f10f99 Merge branch 'MDL-43250-master' of git://github.com/damyon/moodle 2013-12-24 10:36:22 +13:00
Sam Hemelryk a92617fa3f Merge branch 'MDL-43410-master' of git://github.com/andrewnicols/moodle 2013-12-24 09:13:05 +13:00
AMOS bot 0632fd6cf2 Automatically generated installer lang files 2013-12-23 12:40:09 +00:00
AMOS bot acd37edfbf Automatically generated installer lang files 2013-12-23 12:26:25 +00:00
Andrew Nicols fd03a33c35 MDL-43270 JavaScript: Migrate moodle-course-dragdrop to use Shifter 2013-12-23 17:09:39 +08:00
Andrew Nicols bd5b681a89 MDL-43302 JavaScript: Migrate moodle-form-passwordunmask to use Shifter 2013-12-23 16:40:28 +08:00
Andrew Nicols 80c2d36007 MDL-43273 JavaScript: Migrate moodle-course-coursebase to use Shifter 2013-12-23 16:34:54 +08:00
Andrew Nicols 672ce80ea6 MDL-43271 JavaScript: Migrate moodle-course-formatchooser to use Shifter 2013-12-23 16:23:54 +08:00
Andrew Nicols 54a3dca258 MDL-43307 JavaScript: Migrate moodle-mod_assign-history to use Shifter 2013-12-23 16:18:10 +08:00
Andrew Nicols 193136ccd5 MDL-43490 JavaScript: Remove deprecated yui2_lib from 2.7
This patch removes the deprecated yui2_lib from Moodle 2.7. It was
deprecated in Moodle 2.4.
2013-12-23 15:36:47 +08:00
Andrew Nicols 2901378c36 MDL-43489 JavaScript: Remove deprecated js_gallery_module from 2.7
This patch removes the deprecated js_gallery_module from Moodle 2.7. It was
deprecated well before Moodle 2.0.
2013-12-23 15:27:50 +08:00
Sam Hemelryk 6ac16bb981 Merge branch 'MDL-35032-master' of git://github.com/FMCorz/moodle 2013-12-23 15:58:04 +13:00
Aaron Barnes 832530e2eb MDL-43394 behat: Fix checkbox action 2013-12-23 15:40:06 +13:00
Andrew Nicols 47281f7ede MDL-43411 JavaScript: Correct checks for section support to use helper function 2013-12-23 09:35:34 +08:00
Sam Hemelryk 4a91dfdb08 Merge branch 'MDL-30195-master' of git://github.com/FMCorz/moodle 2013-12-23 14:34:35 +13:00
Sam Hemelryk 4cec4ee627 Merge branch 'w52_MDL-43367_m27_contextpath' of https://github.com/skodak/moodle 2013-12-23 14:31:58 +13:00
Rajesh Taneja cdfd607449 MDL-43293 Events: Added unit test for comment events 2013-12-23 09:22:15 +08:00
Rajesh Taneja a55eaf0351 MDL-43293 Events: Added comments event in modules supporting comments 2013-12-23 09:22:14 +08:00
Andrew Nicols ce4da4612e MDL-43323 JavaScript: Lazily load exception dependencies for tooltip
Only load the exception-related dependencies for tooltip when required. In
normal situations they should not be required at all.
2013-12-23 08:20:43 +08:00
Eloy Lafuente (stronk7) a6761e26e7 Merge branch 'MDL-43318-master' of git://github.com/damyon/moodle 2013-12-23 00:39:41 +01:00
Sam Hemelryk 0e7367a57e MDL-34182 js: fixed typo in ajaxException use 2013-12-23 09:54:57 +13:00
Sam Hemelryk 5c7e16db54 Merge branch 'MDL-34182-master' of git://github.com/andrewnicols/moodle 2013-12-23 09:54:44 +13:00
Sam Hemelryk 8ca4f69539 Merge branch 'MDL-43325-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2013-12-23 09:54:26 +13:00
Petr Škoda 404ecca376 MDL-43314 make float serialize consistent on all systems
This should resolve problems with plugin version change detection.
2013-12-22 16:06:29 +08:00
Petr Škoda 19dc3b0b0d MDL-43367 stop returning of bogus context children when path unknown
This also prevents deletion of system context.
2013-12-22 15:58:30 +08:00
Tim Hunt 3d1c4e189e MDL-43448 Links to the gradebook not fixed on restore.
Note we can only fix certain generic links, we can't handle ones like
/grade/report/{reportname}/index.php, but fortunately, we were only
using the generic ones.

I added a couple of other likely things too (badges and participants
list).
2013-12-20 11:55:01 +00:00
Damyon Wiese edd9bb451c weekly release 2.7dev 2013-12-20 11:56:58 +08:00
Damyon Wiese 4cdae94e08 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2013-12-20 11:56:54 +08:00
Damyon Wiese 997588195d MDL-43318 Assign: Fix bug when editing previous attempt feedback 2013-12-20 11:14:27 +08:00
Damyon Wiese 4a47008ca6 MDL-42585 Assign: Add capability to only view grades
AMOS BEGIN
    CPY [viewgrades,grades],[assign:viewgrades,mod_assign]
AMOS END
2013-12-20 11:01:44 +08:00
Eloy Lafuente (stronk7) 1f73779156 MDL-42425 assign: keep already bumped version. 2013-12-20 03:40:58 +01:00
Eloy Lafuente (stronk7) c7df8656be Revert "MDL-42425 modify mod_assign_save_grade to process advanced grading data"
This reverts commit 29932b2112.

Conflicts:
	mod/assign/upgrade.txt
2013-12-20 03:39:14 +01:00
Eloy Lafuente (stronk7) 9f9618fa69 Merge branch 'MDL-43404_master-move-fails-to-scenarios' of git://github.com/dmonllao/moodle 2013-12-20 02:58:12 +01:00
Gareth J Barnard ce65578510 MDL-41788 theme_bootstrapbase: Custom menus - sub-menus breaking. 2013-12-19 12:08:50 +00:00
David Monllao f49cede794 MDL-43404 behat: Avoid failures at framework level as much as possible
- Move them to i_look_for_exceptions() so they will be
  thrown at a step (scenario) level.
- Accept alerts only when they are detected to avoid
  all the following scenarios to be failing; they would
  continue executing, but they will all fail if the alert
  is still there
- Add a step to avoid add_scorm.feature to fail
- Refine the UnknownError catch
2013-12-19 15:48:03 +08:00
Frederic Massart 19c70231f9 MDL-43454 mod_assignment: Use of undefined constants FILE_* 2013-12-19 07:21:04 +01:00
David Monllao f46e869ddf MDL-43213 behat: Moving permissions setting before any use of them 2013-12-19 13:47:46 +08:00
Petr Skoda 9bb80d2005 MDL-43213 fix init regression and remove $checkphp parameter 2013-12-19 13:11:25 +08:00
Sam Hemelryk a0e1168751 Merge branch 'MDL-42965_master' of https://github.com/totara/openbadges 2013-12-19 16:12:46 +13:00
Dan Poltawski 70f1ddba87 Merge branch 'wip-mdl-43437' of https://github.com/rajeshtaneja/moodle 2013-12-19 10:56:41 +08:00
Damyon Wiese 76dc48cb6a MDL-34432 Assign: Set up the commentinline form element properly. 2013-12-19 09:40:14 +08:00
Eloy Lafuente (stronk7) f03671d87e Revert "MDL-43306 restore: fix grade item sortorder restoration"
This reverts commit e238b2cb92.
2013-12-19 02:13:05 +01:00
AMOS bot f70a614ef1 Automatically generated installer lang files 2013-12-19 00:44:14 +00:00
Eloy Lafuente (stronk7) c751d81bbc Merge branch 'MDL-42425' of https://github.com/Lightwork-Marking/moodle
Conflicts:
	mod/assign/upgrade.txt
2013-12-19 01:37:57 +01:00
Yuliya Bozhko acfe72293f MDL-42965 badges: Fix empty string comparison for Oracle 2013-12-19 10:26:44 +13:00
Paul Charsley 29932b2112 MDL-42425 modify mod_assign_save_grade to process advanced grading data 2013-12-19 09:39:22 +13:00
Jean-Philippe Gaudreau 353643d33f MDL-41246 cache: Fix PHP notice of non well formed numeric values for the memcache store 2013-12-18 08:52:08 -05:00
Frederic Massart 4550e762f4 MDL-43438 mod_assignment: Prevent double inclusion of plugin files 2013-12-18 09:13:47 +01:00
David Monllao 48ca887cc1 MDL-43235 behat: Remove notice about undeclared var 2013-12-18 16:02:02 +08:00
Dan Poltawski eab9fa0ef1 Merge branch 'MDL-41198-master' of https://github.com/mr-russ/moodle 2013-12-18 14:40:18 +08:00
Rajesh Taneja fc832a4882 MDL-43437 wiki: Fixed unit test for page_version_deleted event 2013-12-18 13:56:44 +08:00
Russell Smith 33766d3361 MDL-41198 lib: Add comment about the changes to srand on adodb 2013-12-18 16:48:41 +11:00
Russell Smith 038f546777 MDL-41198 lib: Allow PHP to generate random seed on script start
Most srand instances are removed to allow PHP to do the work.

srand was left for group randomization due to the method used.
2013-12-18 16:45:34 +11:00
Russell Smith ce2add5c90 MDL-41198 lib: Allow PHP to generate random seed on script start
All mt_srand instances are removed to allow PHP to do the work.
2013-12-18 16:45:33 +11:00
Andrew Nicols af4d19abfb MDL-43410 JavaScript: Stop event propagation when opening the action menu
In certain situations, the click event is propagated through to the
hideIfOutside and immediately closes the menu.

This happens when blocks are dock for example.
2013-12-18 11:44:43 +08:00
Sam Hemelryk 2415e85716 Merge branch 'MDL-43241-master' of git://github.com/andrewnicols/moodle 2013-12-18 16:26:35 +13:00
Andrew Nicols a4582a51a4 MDL-43241 JavaScript: Deprecate findChildNodes 2013-12-18 10:53:52 +08:00
Eloy Lafuente (stronk7) f77233dfaa Merge branch 'MDL-43404_master' of git://github.com/dmonllao/moodle 2013-12-18 02:24:08 +01:00
Eloy Lafuente (stronk7) bb0746c985 Merge branch 'MDL-41292-master' of git://github.com/mr-russ/moodle 2013-12-18 02:23:08 +01:00
Eloy Lafuente (stronk7) 5d2667fa07 Merge branch 'MDL-40920_master' of https://github.com/markn86/moodle 2013-12-18 00:13:15 +01:00
Sam Hemelryk 272e440090 Merge branch 'MDL-43235_master' of git://github.com/dmonllao/moodle 2013-12-18 11:19:34 +13:00
Eloy Lafuente (stronk7) 1f71f7685a Merge branch 'MDL-43025-master' of git://github.com/damyon/moodle 2013-12-17 22:58:51 +01:00
Sam Hemelryk 2df83c2ea8 Merge branch 'MDL-43355_master' of git://github.com/dmonllao/moodle 2013-12-18 10:52:41 +13:00
Eloy Lafuente (stronk7) 438e799f42 Merge branch 'wip-mdl-43311' of https://github.com/rajeshtaneja/moodle 2013-12-17 22:33:51 +01:00
Sam Hemelryk adfcdcb027 Merge branch 'w51_MDL-43213_m27_simplebehat' of https://github.com/skodak/moodle 2013-12-18 10:30:30 +13:00
Sam Hemelryk 37f59a68bd Merge branch 'MDL-41359-master' of https://github.com/mr-russ/moodle 2013-12-18 10:08:33 +13:00
Sam Hemelryk 9b4c44c8e6 Merge branch 'MDL-43074-master' of git://github.com/damyon/moodle 2013-12-18 09:59:05 +13:00
Sam Hemelryk 04102046ef Merge branch 'MDL-43272-master' of git://github.com/andrewnicols/moodle 2013-12-18 09:55:04 +13:00
Sam Hemelryk bf6529bbd4 Merge branch 'MDL-43234-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2013-12-18 09:53:02 +13:00
Sam Hemelryk 5be3d8d329 Merge branch 'MDL-38698-master' of git://github.com/FMCorz/moodle 2013-12-18 09:21:50 +13:00
David Monllao 4415b667a4 MDL-43404 behat: Form change checker disabled when running behat 2013-12-17 18:39:31 +08:00
Eloy Lafuente (stronk7) 0fb4218dad Merge branch 'MDL-43306-master' of git://github.com/danpoltawski/moodle 2013-12-17 10:29:25 +01:00
David Monllao db3ecbd02a MDL-43404 behat: Removing auto accept_alert 2013-12-17 16:29:56 +08:00
Frederic Massart 850db41832 MDL-38698 filter_urltolink: Remove performance test in Unit Test 2013-12-17 07:03:02 +01:00
Frederic Massart e15878798a MDL-38698 filter_urltolink: Do not link the URL property of CSS 2013-12-17 06:58:22 +01:00
Marina Glancy 2280ad064d Merge branch 'MDL-37679-master' of git://github.com/phalacee/moodle 2013-12-17 16:37:19 +11:00
Marina Glancy 9cba0f8981 Merge branch 'wip-MDL-43295-master' of git://github.com/abgreeve/moodle 2013-12-17 16:35:31 +11:00
Jason Fowler 761c5fc274 MDL-37679 Course: Adding section name to page title 2013-12-17 11:42:01 +08:00
Sam Hemelryk 233e6b985b Merge branch 'MDL-43259-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/upgrade.txt
2013-12-17 16:32:35 +13:00
Sam Hemelryk ca3b2c9bcc Merge branch 'MDL-38832-master' of git://github.com/danpoltawski/moodle 2013-12-17 16:20:34 +13:00
Adrian Greeve fb59d5352a MDL-43295 mod_assign: Removed wrongly used format_text call in online text submission. 2013-12-17 10:42:20 +08:00
Marina Glancy f3de94d340 Merge branch 'MDL-41075-master-3' of git://github.com/mouneyrac/moodle 2013-12-17 11:23:43 +11:00
Sam Hemelryk 9d771f9529 Merge branch 'MDL-39725_analyze' of https://github.com/mr-russ/moodle
Conflicts:
	lib/dml/moodle_database.php
2013-12-17 09:31:19 +13:00
Sam Hemelryk 2b88fa0c90 Merge branch 'MDL-25473-master' of git://github.com/phalacee/moodle 2013-12-17 08:54:33 +13:00
Sam Hemelryk bb4551334f Merge branch 'MDL-34321-master' of git://github.com/phalacee/moodle 2013-12-17 08:48:08 +13:00
Sam Hemelryk 2b08f90aca Merge branch 'MDL-36984-master' of git://github.com/phalacee/moodle 2013-12-17 08:45:05 +13:00
Sam Hemelryk 0359fe71e2 Merge branch 'w51_MDL-43268_m27_filternotice' of https://github.com/skodak/moodle 2013-12-17 08:25:08 +13:00
Frederic Massart 4c29120354 MDL-30195 portfolio_googledocs: Allow export of rich HTML 2013-12-16 11:02:10 +01:00
Andrew Nicols 052d64a478 MDL-43322 JavaScript: Correct cache-base entry in base rollup 2013-12-16 16:59:11 +08:00
Jerome Mouneyrac 8e4b9a45b1 MDL-43399 Badge: the Choose... option can still be selected once a role is choosen. 2013-12-16 14:33:02 +08:00
Frederic Massart 545b310c84 MDL-42212 mod_lesson: Use autoloading for mod_lesson_file_info 2013-12-16 07:03:46 +01:00
Frederic Massart 89133afae6 MDL-42212 mod_lesson: Localise area names 2013-12-16 06:49:05 +01:00
Frederic Massart b47dc5ffea MDL-42212 mod_lesson: Fix callbacks retrieving activity files 2013-12-16 06:49:05 +01:00
Jerome Mouneyrac 97b659a13f MDL-41075 Remove "Choose..." option from participants page. 2013-12-16 12:07:33 +08:00
Andrew Nicols 9a45ac14f0 MDL-43322 JavaScript: Include moodle-core-popuphelp in the mcore rollup
moodle-core-popuphelp is used on every page in Moodle, so it should be
included in the rollup by default to save a request each time.
2013-12-16 16:14:26 +13:00
Sam Hemelryk 21ad9a7921 Merge branch 'MDL-43240-master' of git://github.com/andrewnicols/moodle 2013-12-16 16:03:09 +13:00
Damyon Wiese f268fb5d20 MDL-43250 Assign: separate groups mode fix
When in separate groups mode, only get graders in a group that is in the course module grouping.
2013-12-16 10:54:38 +08:00
Sam Hemelryk 9f5b319345 Merge branch 'MDL-34432-master' of git://github.com/damyon/moodle 2013-12-16 15:46:56 +13:00
Sam Hemelryk d431ff1f51 Merge branch 'wip-mdl-21180' of https://github.com/rajeshtaneja/moodle 2013-12-16 15:44:15 +13:00
Sam Hemelryk d842685028 Merge branch 'MDL-43062-master-nomerge' of git://github.com/mouneyrac/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-12-16 15:40:40 +13:00
Damyon Wiese c7a7368958 MDL-34432: Allow comment inline (stripping embedded images version) 2013-12-16 10:38:23 +08:00
Rajesh Taneja 134c514be0 MDL-21180 Gradebook: Consistent handling of change in aggregation
Change from/to GRADE_AGGREGATE_WEIGHTED_MEAN and GRADE_AGGREGATE_EXTRACREDIT_MEAN was only
handled prior to this patch. GRADE_AGGREGATE_SUM and GRADE_AGGREGATE_WEIGHTED_MEAN2 also
behave similar and should be handled same way
2013-12-16 09:57:42 +08:00
Marina Glancy 2a73cfb011 Merge branch 'MDL-37972-master' of git://github.com/phalacee/moodle 2013-12-16 12:27:38 +11:00
Sam Hemelryk 3c3eed7e01 Merge branch 'wip-MDL-43348_master' of git://github.com/gjb2048/moodle 2013-12-16 14:10:15 +13:00
Sam Hemelryk 3b94d80c20 Merge branch 'MDL-40096-master' of git://github.com/damyon/moodle 2013-12-16 13:52:16 +13:00
Sam Hemelryk c57864b76f Merge branch 'MDL-42965_master' of https://github.com/totara/openbadges 2013-12-16 13:47:57 +13:00
Sam Hemelryk db23e92670 Merge branch 'MDL-40436-master' of git://github.com/FMCorz/moodle 2013-12-16 11:31:29 +13:00
Sam Hemelryk 2244289809 Merge branch 'w51_MDL-42931_m27_env27' of https://github.com/skodak/moodle 2013-12-16 11:18:02 +13:00
Sam Hemelryk 063baa62b5 Merge branch 'MDL-42085-master' of git://github.com/mouneyrac/moodle 2013-12-16 11:11:38 +13:00
Sam Hemelryk 6015500d5b Merge branch 'MDL-43326-master' of git://github.com/damyon/moodle 2013-12-16 09:46:47 +13:00
Yuliya Bozhko 455d13b7e4 MDL-40551 badges: Support fully deleting badges 2013-12-16 09:29:38 +13:00
Frederic Massart 0aa3b16c90 MDL-35032 mod_book: 1.9 backup restore convertis files to book area 2013-12-13 10:20:49 +01:00
David Monllao e227cfe0e3 MDL-43235 behat: Ensure that behat_config_manager::get_config_file_contents() has always a behat_wwwroot 2013-12-13 14:20:03 +08:00
Andrew Nicols 5329506f22 MDL-34182 Repositories: Check for and warn on invalid output in the file picker 2013-12-13 14:10:05 +08:00
Andrew Nicols f2c780d525 MDL-34182 AJAX: Change to use shared method when checking the siteadminbranch for invalid output 2013-12-13 14:10:04 +08:00
Andrew Nicols af736f903d MDL-34182: Add functions to warn of output in AJAX scripts
We need to be able to capture output when including contributed code as it
may add additional content which makes makes the json we output invalid.

We only warn of these errors if the site is in debugdeveloper, otherwise
we silently drop them.
2013-12-13 14:10:04 +08:00
Petr Škoda dbe0203ba8 MDL-42931 fix hardcoded PHP version tests for 2.7 2013-12-13 14:04:24 +08:00
Petr Škoda d1a628e5fd MDL-42931 set new requirements for 2.7 2013-12-13 14:04:24 +08:00
Petr Škoda 60129d5d1f MDL-43213 try to simplify behat config and init code
1/ always require 3 behat settings - $CFG->behat_wwwroot, $CFG->behat_dataroot and $CFG->behat_prefix
2/ cleanup init code
3/ do not require $CFG->wwwroot and $CFG->dataroot on test sites
4/ remove switch completely - the most confusing part for me
5/ print out behat_wwwwroot in init script so that you can test the test site manually
2013-12-13 14:03:04 +08:00
Petr Škoda ed67f462fe MDL-43268 fix filter notice when not in debug mode 2013-12-13 13:57:59 +08:00
Jerome Mouneyrac 41c2a197ba MDL-43062 course: Content of label is left-aligned, regardless of alignment chosen 2013-12-13 13:27:26 +08:00
Sam Hemelryk 2f4e0db7c3 weekly release 2.7dev 2013-12-13 16:59:10 +13:00
Sam Hemelryk 61b46e4c4d Merge branch 'install_master' of git://git.moodle.org/moodle-install 2013-12-13 16:59:08 +13:00
AMOS bot 184d614f26 Automatically generated installer lang files 2013-12-13 00:42:11 +00:00
Tim Lock 9f1d04920a MDL-33925: auth_imap: add self-signed cert support 2013-12-12 12:52:51 +01:00
David Monllao fff500c727 MDL-42625 behat: Wrapping select an option extra actions in a try & catch
To select an option is specially painful, every browser
behaves differently and phantomjs just joined the party
throwing "Element does not exist in cache" random
exceptions that we need to catch.
2013-12-12 12:16:45 +01:00
Gareth J Barnard fde0b8cd1b MDL-43348 theme: html <nav> element on the wrong content. 2013-12-12 11:07:03 +00:00
David Monllao 244da9d1f8 MDL-43355 testing: Return the hash when HEAD points to a hash 2013-12-12 17:26:22 +08:00
Dan Poltawski 1f1a8f03d8 MDL-38832 course: remove unused constants 2013-12-12 16:44:20 +08:00
Andrew Nicols 5c1d99b027 MDL-43325 JavaScript: Set a default visibility for most Moodle dialogues
We used to ignore the 'visible' field in the initializer, but now we hide
dialogues if visible is false. This was an unintentional change from the
stable API and means that confirmation boxes, alerts, and exceptions are no
longer shown by default.
2013-12-12 16:20:02 +08:00
Jerome Mouneyrac 571906e3f7 MDL-42085 Enrol: Always apply enrolment duration.
Before the fix, the startdates and duration fields were integrated to HTML code only
when the user clicked on the collapsible region to see them.
It was wrong because their values were not sent by the form
if ever the user didn't expand this Enrolment options region.
2013-12-12 16:04:52 +08:00
Frederic Massart 67850301d0 MDL-40436 block_course_list: Fix bad context resolution
We were trying to get the course context of a remote course
from a completely unrelated ID. It would sometimes work if the
ID was matching the one of a local course. In other places
we are not trying to find a context for the remote course, we
simply use the $PAGE context in format_string. So the usage
of the context has been removed here too.
2013-12-12 09:04:19 +01:00
Jason Fowler 082ad25776 MDL-36984 Assign: Add redirect after saving grades 2013-12-12 14:19:26 +08:00
Marina Glancy bdd5a6c5c2 Merge branch 'MDL-42625_master-failures-fix' of git://github.com/dmonllao/moodle 2013-12-12 16:49:56 +11:00
David Monllao fb99ef1ded MDL-42625 behat: Fixing failures
* Expanding fieldsets before setting the course format
* Ensure editors are loaded moved to expand_all_fieldsets
* Return true rather than false when JS is disabled and
  non-allowed steps should continue without throwing an
  exception.
* Submit create user form after editing it
2013-12-12 13:41:07 +08:00
Marina Glancy 10484ad5e4 Merge branch 'mucupdates27' of https://github.com/skodak/moodle 2013-12-12 15:39:14 +11:00
Petr Škoda cac367e4a4 MDL-42973 fix MUC caching issue when fetching available updates 2013-12-12 11:43:35 +08:00
Jason Fowler 871015414d MDL-34321 Assignment2.2 - Fixing submission count 2013-12-12 10:35:41 +08:00
Rajesh Taneja 2270661e51 MDL-40058 mod_wiki: trigger event on page map view 2013-12-12 13:08:18 +11:00
Eloy Lafuente (stronk7) 32a8bcc4a7 MDL-31410 paypal: fix problem on notifications
This commit fixes a PHP warning about using a
unititialised variable and also the problems when
notifications are enabled and there is not yet a
teacher in the course, defaulting to admin for student
notifications and preventing teacher notifications to happen.
2013-12-12 02:27:53 +01:00
Eloy Lafuente (stronk7) d47d52d531 Merge branch 'w50_MDL-31410_m27_paypalipn' of https://github.com/skodak/moodle 2013-12-12 01:09:02 +01:00
Sam Hemelryk 623d49dde4 Merge branch 'MDL-43232-master-1' of git://github.com/andrewnicols/moodle 2013-12-12 09:13:42 +13:00
David Monllao c5a1015338 MDL-42625 behat: Fixing ExpectationException::__construct() call
Also adding an extra checking to the selector to
ensure it is no updating the list of files.
2013-12-11 17:02:46 +08:00
Andrew Nicols 5947ab3333 MDL-43259 JavaScript: Stop using deprecated lightbox config setting when instantiating dialogues 2013-12-11 16:56:49 +08:00
Andrew Nicols 44b724c374 MDL-43232 JavaScript: Correct typo when cancelling the confirmcancel 2013-12-11 13:29:46 +08:00
Damyon Wiese e9fe65d575 MDL-43326 Assign: Start new attempt from previous missing sesskey 2013-12-11 13:07:52 +08:00
Rajesh Taneja 0e72987517 MDL-40058 mod_wiki: modified wiki_restore_page api to accept version and context 2013-12-11 13:53:04 +11:00
Rajesh Taneja e94f6c6572 MDL-40058 Events: added unit test 2013-12-11 13:53:04 +11:00
Rajesh Taneja 86b0e3b308 MDL-40058 Events: Replaced add_to_log for page comments to event 2013-12-11 13:53:00 +11:00
Rajesh Taneja 8b43cf225f MDL-40058 mod_wiki: Replaced add_to_log for page version viewed to event 2013-12-11 13:53:00 +11:00
Rajesh Taneja a8481a66fe MDL-40058 mod_wiki: Replaced add_to_log for page created to event 2013-12-11 13:53:00 +11:00
Rajesh Taneja ff79f49f44 MDL-40058 mod_wiki: Replaced add_to_log for page map viewed to event 2013-12-11 13:52:59 +11:00
Rajesh Taneja d6a54be3a6 MDL-40058 mod_wiki: Replaced add_to_log for admin to event 2013-12-11 13:52:59 +11:00
Rajesh Taneja b3dd79d101 MDL-40058 mod_wiki: Replaced add_to_log for override locks with event 2013-12-11 13:52:59 +11:00
Rajesh Taneja 3e5e78a2c9 MDL-40058 mod_wiki: Replaced add_to_log for page diff view with event 2013-12-11 13:52:59 +11:00
Rajesh Taneja fb92417b5e MDL-40058 mod_wiki: Replaced add_to_log for page edit with event 2013-12-11 13:52:59 +11:00
Rajesh Taneja 31383bcdad MDL-40058 mod_wiki: Replaced add_to_log for version restored with event 2013-12-11 13:52:58 +11:00
Rajesh Taneja d1d555c955 MDL-40058 mod_wiki: Replaced add_to_log for history viewed with event 2013-12-11 13:52:58 +11:00
Rajesh Taneja 9307bed8c5 MDL-40058 mod_wiki: Replaced add_to_log on index.php with event 2013-12-11 13:52:58 +11:00
Rajesh Taneja 48f871e09b MDL-40058 mod_wiki: Replaced add_to_log for course_module_viewed with event 2013-12-11 13:52:58 +11:00
Rajesh Taneja 8ac1d22436 MDL-40058 mod_wiki: Replaced add_to_log for page_viewed with event 2013-12-11 13:52:54 +11:00
Sam Hemelryk 445e63ecd8 Merge branch 'wip-MDL-43218-master' of git://github.com/marinaglancy/moodle 2013-12-11 15:32:29 +13:00
Marina Glancy 0967e635ac MDL-43218 blog: prepare the blog navigation only when needed 2013-12-11 13:27:38 +11:00
Simon Coggins 24f4bfcfcf MDL-43218 navigation: Remove link to blogs when they are disabled 2013-12-11 12:59:28 +11:00
Marina Glancy 939aedfe30 Merge branch 'MDL-43071-master' of https://github.com/lucisgit/moodle 2013-12-11 12:46:14 +11:00
Sam Hemelryk e453c70d14 Merge branch 'MDL-42932_master' of https://github.com/markn86/moodle 2013-12-11 12:30:26 +13:00
Sam Hemelryk 769ed2bd5d NOBUG: shifter rebuild 2013-12-11 12:26:47 +13:00
Sam Hemelryk 1092f63a80 Merge branch 'MDL-38775-master' of git://github.com/andrewnicols/moodle 2013-12-11 12:25:16 +13:00
Sam Hemelryk 5cc0c2c41d Merge branch 'MDL-38776-master' of git://github.com/andrewnicols/moodle 2013-12-11 12:25:14 +13:00
Sam Hemelryk 7458012637 Merge branch 'MDL-43202-master' of git://github.com/andrewnicols/moodle 2013-12-11 12:25:12 +13:00
Eloy Lafuente (stronk7) ebc77165a4 Merge branch 'MDL-42625_master' of git://github.com/dmonllao/moodle 2013-12-10 23:29:06 +01:00
Eloy Lafuente (stronk7) 438ee6ebdc Merge branch 'MDL-42815-master' of git://github.com/sammarshallou/moodle 2013-12-10 23:24:56 +01:00
Sam Hemelryk df1498f711 Merge branch 'MDL-42796-master' of git://github.com/andrewnicols/moodle 2013-12-11 11:13:32 +13:00
Sam Hemelryk 87176b481e Merge branch 'MDL-43252-master' of git://github.com/sammarshallou/moodle 2013-12-11 11:03:39 +13:00
Sam Hemelryk 78144bd2e7 Merge branch 'wip-MDL-43279-master' of git://github.com/marinaglancy/moodle 2013-12-11 10:59:21 +13:00
Sam Hemelryk 3f35f367cb Merge branch 'w50_MDL-31625_m27_replace' of https://github.com/skodak/moodle 2013-12-11 10:50:07 +13:00
Eloy Lafuente (stronk7) 7f34773665 Merge branch 'wip-MDL-43150-master' of git://github.com/marinaglancy/moodle 2013-12-10 22:47:15 +01:00
Sam Hemelryk ebb9daa5e1 Merge branch 'MDL-42959-master' of git://github.com/andrewnicols/moodle 2013-12-11 10:34:17 +13:00
Sam Hemelryk b6df1b3ab3 Merge branch 'MDL-40517-master' of git://github.com/danpoltawski/moodle 2013-12-11 10:32:06 +13:00
Eloy Lafuente (stronk7) 5cf182e39d Merge branch 'wip-MDL-42174-master' of git://github.com/marinaglancy/moodle 2013-12-10 22:06:39 +01:00
Eloy Lafuente (stronk7) 1c432ae6e1 Merge branch 'wip-MDL-43135' of https://github.com/jennymgray/moodle 2013-12-10 19:43:33 +01:00
Jenny Gray a080716fa6 MDL-43135 Lang: removed redundant opentoguests 2013-12-10 11:05:22 +00:00
Jenny Gray 0e61547ea9 MDL-43135 Guest Enrol: new language string for with key icon
AMOS BEGIN
CPY [pluginname,enrol_guest], [guestaccess_withpassword,enrol_guest]
CPY [pluginname,enrol_guest], [guestaccess_withoutpassword,enrol_guest]
AMOS END
2013-12-10 11:05:04 +00:00
Andrew Nicols 43736b7dd0 MDL-43272 JavaScript: Migrate moodle-course-modchooser to use Shifter 2013-12-10 18:41:46 +08:00
Russell Smith cc67c6db61 MDL-39725 database: Apply database statistics update to daily stats 2013-12-10 20:33:01 +11:00
Russell Smith 8343b340c4 MDL-39725 database: Include stats collections in unit tests 2013-12-10 20:32:56 +11:00
Russell Smith 814c9438a0 MDL-39725 database: Add statistics collection functions 2013-12-10 20:31:47 +11:00
Rajesh Taneja c3df05a9f9 MDL-43311 Repository: Added missing global CFG 2013-12-10 16:50:10 +08:00
Sam Chaffee 7bfa3d9b6e MDL-37972 Assignment: fixing settings link for upload single submissions 2013-12-10 13:41:57 +08:00
Dan Poltawski e238b2cb92 MDL-43306 restore: fix grade item sortorder restoration
Previously, restore was blindly inserting the old sort order into the
database, causing duplicate sortorders which lead to unpredicatble
sorting results.

Now we will use the api function to add it after the original sortorder,
this means if a duplicate exists in the original location, this item
will appear after it.
2013-12-10 12:32:36 +08:00
Marina Glancy 8f3e0bf7a5 Merge branch 'MDL-37380-master' of git://github.com/danpoltawski/moodle 2013-12-10 15:20:22 +11:00
Marina Glancy b3e0bd5225 Merge branch 'MDL-43199-master' of git://github.com/damyon/moodle 2013-12-10 15:15:27 +11:00
Marina Glancy e762d5a7f2 Merge branch 'm27_MDL-43082_IE9_Compat_View_SVG_Say_No' of https://github.com/scara/moodle 2013-12-10 14:47:08 +11:00
Michael Dikih 1d2c29ca0d MDL-43109: mod/wiki - When editing pages populate the default value for the tags input. 2013-12-10 14:15:35 +10:30
Marina Glancy a98bdfa668 Merge branch 'MDL-37517-master' of git://github.com/danpoltawski/moodle 2013-12-10 14:29:22 +11:00
Marina Glancy 3649bcfa21 Merge branch 'MDL-43215_master' of https://github.com/markn86/moodle 2013-12-10 14:25:24 +11:00
Marina Glancy 2cbcf496c2 Merge branch 'MDL-43131' of git://github.com/timhunt/moodle 2013-12-10 14:10:04 +11:00
Marina Glancy 11ca8227b1 Merge branch 'mdl42487-master' of https://github.com/tlock/moodle 2013-12-10 13:56:49 +11:00
Mark Nelson 841a369a87 MDL-40920 mod_url: replaced add_to_log calls with events 2013-12-09 18:49:55 -08:00
Jason Fowler c476e67839 MDL-25473 mediaplayer - prevent embedded videos from looping 2013-12-10 10:49:44 +08:00
Mark Nelson 8bf0f20795 MDL-42932 core_calendar: introduced calendar type system setting 2013-12-09 18:40:46 -08:00
Andrew Nicols aff365cc10 MDL-43243 JavaScript: Deprecate destroy_item 2013-12-10 09:55:34 +08:00
Andrew Nicols 0d8907e3d8 MDL-43243 JavaScript: Deprecate show_item 2013-12-10 09:55:34 +08:00
Andrew Nicols f260850efc MDL-43243 JavaScript: Deprecate addonload 2013-12-10 09:55:33 +08:00
Andrew Nicols bc549847d9 MDL-43243 JavaScript: Deprecate getElementsByClassName 2013-12-10 09:55:33 +08:00
Andrew Nicols e1b4553d8c MDL-43243 JavaScript: Deprecate hide_item 2013-12-10 09:55:33 +08:00
Marina Glancy 907b98204b MDL-43044 fix trailing whitespace 2013-12-10 11:52:42 +11:00
Marina Glancy 013620aad3 Merge branch 'MDL-43044-master' of git://github.com/ankitagarwal/moodle 2013-12-10 11:40:54 +11:00
Marina Glancy 332d9ec84b MDL-43279 block_blog_recent: fixed undefined property notice 2013-12-10 09:28:05 +11:00
Sam Hemelryk fd0281dfc3 Merge branch 'MDL-43104-master' of git://github.com/andrewnicols/moodle 2013-12-10 10:27:45 +13:00
Sam Hemelryk a88c1ca91a Merge branch 'MDL-43164-master' of git://github.com/andrewnicols/moodle 2013-12-10 09:52:08 +13:00
Sam Hemelryk 176521e560 Merge branch 'MDL-38774-master' of git://github.com/andrewnicols/moodle 2013-12-10 09:25:51 +13:00
Sam Hemelryk 830299fe4f Merge branch 'm27_MDL-43159_Wrong_Naming_Convention_For_Variable' of https://github.com/scara/moodle 2013-12-10 09:21:10 +13:00
Sam Hemelryk f9fb9826be NOBUG: rebuilt shifted files 2013-12-10 09:18:16 +13:00
Sam Hemelryk 8f2bd073aa Merge branch 'MDL-43253-master' of git://github.com/andrewnicols/moodle 2013-12-10 09:09:06 +13:00
Sam Hemelryk c8d6ee9870 Merge branch 'MDL-43212-master' of git://github.com/andrewnicols/moodle 2013-12-10 09:07:11 +13:00
Sam Hemelryk 437fd401f9 Merge branch 'MDL-43232-master' of git://github.com/andrewnicols/moodle 2013-12-10 09:06:54 +13:00
Sam Hemelryk b78f0294bb Merge branch 'MDL-43194-master' of git://github.com/andrewnicols/moodle 2013-12-10 08:48:33 +13:00
Sam Hemelryk 822f529014 Merge branch 'MDL-43152-master' of git://github.com/andrewnicols/moodle 2013-12-10 08:43:50 +13:00
Sam Hemelryk e3f7ac09e7 Merge branch 'MDL-43087a' of https://github.com/srynot4sale/moodle
Conflicts:
	config-dist.php
2013-12-10 08:36:39 +13:00
Eloy Lafuente (stronk7) d073a5f118 Merge branch 'MDL-40003-master' of git://github.com/FMCorz/moodle 2013-12-09 16:24:26 +01:00
sam marshall 4c31243fc7 MDL-43252 Group menu in wrong order when groupings used 2013-12-09 13:02:12 +00:00
Sam Chaffee 262075ce02 MDL-40003 mod_assign: Fixed submission comments not being restored 2013-12-09 11:01:34 +01:00
Marina Glancy 95971ae99e Merge branch 'wip-MDL-43175-master' of git://github.com/abgreeve/moodle 2013-12-09 18:54:53 +11:00
Marina Glancy 895d3050e0 Merge branch 'wip-mdl-43224' of https://github.com/rajeshtaneja/moodle 2013-12-09 18:45:27 +11:00
Marina Glancy 645cd2fe77 Merge branch 'w50_MDL-42973_m27_addonupd' of https://github.com/skodak/moodle 2013-12-09 18:26:39 +11:00
Marina Glancy 40d5757441 Merge branch 'MDL-43092_master' of git://github.com/lazydaisy/moodle 2013-12-09 17:50:27 +11:00
Marina Glancy 98a89047fb Merge branch 'w50_MDL-43137_m27_openbasedir' of https://github.com/skodak/moodle 2013-12-09 16:15:21 +11:00
Damyon Wiese 4fe9950ba6 MDL-43025 EditPDF: Increase memory limit when reading source pdfs. 2013-12-09 12:58:40 +08:00
Andrew Nicols 83cdecec1e MDL-38774 JavaScript: Migrate moodle-core-dragdrop to Shifter 2013-12-09 11:27:44 +08:00
David Monllao c1faf86bd1 MDL-42625 behat: Make behat pacient
* When looking for texts inside the page or inside
  other containers we should wait until the elements
  are visible.
* Same when expanding tree nodes.
* Normalizing loops to spin() function using
  behat_base::TIMEOUT and behat_base::EXTENDED_TIMEOUT,
  leaving TIMEOUT for DOM load processes and
  EXTENDED_TIMEOUT for long processes that involves JS
  too.
* Add page load waits between actions that involves
  reloading the page.
2013-12-09 11:08:42 +08:00
Damyon Wiese 1f738c8c0c MDL-43074 assignfeedback_editpdf: Use escapeshellarg for all args in exec command.
This is to fix a reported problem with windows compatibility (e.g. when ghostscript is installed in
a folder with spaces in the name).
2013-12-09 10:52:35 +08:00
Damyon Wiese 9a046c0683 MDL-40096 assign: Prevent js error because uniqid() is not unique.
Use html_writer::random_id instead because it incorporates a static counter.
2013-12-09 10:25:15 +08:00
Adrian Greeve 5bb7158d77 MDL-43175 events: Base event unit tests for JSON encoding / decoding comparison. 2013-12-09 09:21:37 +08:00
Adrian Greeve 49ff134227 MDL-43175 events: Changed JSON encoding decoding comparison to be less strict.
Debugging messages would be sent when other contained a float that is a whole number.
When encoding and decoding using JSON the number is changed to an integer and the
comparison fails.
2013-12-09 09:21:37 +08:00
Andrew Nicols 54d076a353 MDL-43104 JavaScript: Combine mcore JS into simplemoodle
I was wrong about why this didn't work before - this was caused by the
missing semi-colon.

Joining these scripts into a single combo-load has the benefit of further
reducing the number of HTTP transactions to load a page, and a minor
reduction on transferred size due to a reduced header count.
2013-12-09 09:05:16 +08:00
Marina Glancy 9f973b7bae Merge branch 'master_MDL-43192' of https://github.com/danmarsden/moodle 2013-12-09 11:28:03 +11:00
Marina Glancy 3f189b5d49 Merge branch 'wip-MDL-40213_master' of git://github.com/gjb2048/moodle 2013-12-09 11:13:16 +11:00
Andrew Nicols cff3b8feed MDL-43259 JavaScript: Deprecate M.core.dialogue's lightbox attribute
The lightbox attribute just sets the modal attribute of the upstream
dialogue and provides no real benefit. We should deprecate it in favour of
documented upstream attributes of Y.Panel.
2013-12-08 16:27:41 +08:00
Andrew Nicols 6531d5a8ec MDL-43253 JavaScript: Migrate moodle-backup-backupselectall to use Shifter 2013-12-07 23:44:12 +08:00
Andrew Nicols 4246e5c7cc MDL-43234 JavaScript: Clone dialogue configuration before initialising
Since we modify the config object when instantiating a new Dialogue, we
need to clone the configuration to prevent those changes from being
reflected back in the caller.
2013-12-07 09:04:45 +08:00
Russell Smith 0dd7c711c5 MDL-41292 cache: only update identifiers if they change 2013-12-07 11:34:40 +11:00
Russell Smith 9c7dfbe6ed MDL-41359 database: no table columns is a dml_excpeiton
When insert_record is called and it doesn't find any columns
to insert data into, that is a dml_exception as you need at least
one column in the database to insert into it.  This can happen
when you have created a zero column database table, or the table
does not exist.
2013-12-07 08:56:24 +11:00
Dan Poltawski 4ea3286758 MDL-37380 mod_data: remove unused JS functions 2013-12-06 16:27:41 +08:00
Andrew Nicols 0a59cd5917 MDL-43240 JavaScript: Remove deprecated functions for 2.7
This patch removes functions which were deprecated in Moodle 2.4:
* M.util.init_select_autosubmit
* M.util.init_url_select
* M.util.help_icon
2013-12-06 16:26:14 +08:00
Andrew Nicols 11dd4dadb4 MDL-42796 ActionMenu: Add additional keyboard event handling
Add additional handling for up/down/escape key presses and consolidate them
with the existing tab/shift+tab handling.
2013-12-06 16:20:10 +08:00
Andrew Nicols a4e1fefa39 MDL-42796 ActionMenu: Move event handlers to showMenu 2013-12-06 16:19:52 +08:00
Andrew Nicols 5f77a55984 MDL-42959 JavaScript: Backport fix from https://github.com/yui/yui3/pull/1465 2013-12-06 16:14:56 +08:00
Ankit Agarwal 1f2aeda91e MDL-43044 events: Add unit tests 2013-12-06 16:08:03 +08:00
Ankit Agarwal 45faf15dfd MDL-43044 events: Deprecate and remove code duplication from instances_list_viewed events 2013-12-06 15:59:49 +08:00
Ankit Agarwal c4b0d6dca5 MDL-43044 events: Deprecate course_module_instances_list_viewed abstract class 2013-12-06 15:59:49 +08:00
Ankit Agarwal bad8b60009 MDL-43044 events: Add a course_module_instance_list_viewed abstract class 2013-12-06 13:18:50 +08:00
Ankit Agarwal b6c7ab22db MDL-43044 events: Move component declartion to construct 2013-12-06 13:18:50 +08:00
Damyon Wiese 519449c528 MDL-42625 TinyMCE: Hook into API to track the progress of the init script 2013-12-06 13:10:24 +08:00
David Monllao d1e55a47be MDL-42625 behat: Step definitions + related changes in features
In general aiming for compatibility with multiple browsers,
firefox, chrome and phantomjs to be more specific.

* Removing hardcoded waits
* Adding @_alert, @_switch_window and @_switch_frame tags,
  to label actions that different drivers have problems with.
* Adding missing @_files_upload and @_only_local tags to features that
  uploads files.
* Fixing a few wait for page ready what specified miliseconds.
* New methods to ensure elements (usual selectors), sections and editors
  are ready to interact with
* Changing the select an option implementation to deal with the different
  drivers implementations when listening to JS events.
2013-12-06 13:10:24 +08:00
Pavel Sokolov a66555328b MDL-43199 assign: fix js error when expanding comments for non editing teachers in assign grading table 2013-12-06 12:57:20 +08:00
David Monllao 333db2e9b9 MDL-42625 behat: Editing .feature files 2013-12-06 12:13:39 +08:00
Andrew Nicols a42791cb90 MDL-41030 JavaScript: Convert remaining YUI2 IO calls to YUI3 2013-12-06 12:13:39 +08:00
Damyon Wiese 6e2c417c1f MDL-41030 Behat: Add support for waiting for javascript
This is so that phantomjs (which runs faster than selenium) can pass the tests.
2013-12-06 12:13:39 +08:00
David Monllao 5d2b67228c MDL-41030 behat: Dock blocks compatible with both selenium and phantomjs 2013-12-06 12:13:39 +08:00
Rajesh Taneja 53b93a6b30 MDL-43224 navigation: Load local plugin navigation in site admin via ajax
Local plugin can add navigation nodes to site admin and while loading
site admin via ajax this should be considered.
2013-12-06 10:17:19 +08:00
Petr Škoda af549df9df MDL-31410 always send 200 in PayPal IPN response and hide all errors 2013-12-06 10:01:49 +08:00
Petr Škoda 6c3ae510f1 MDL-31625 fix multiple global search-replace issues
Includes following fixes:
* support for MS SQL Server
* optional trimming of of oversized VARCHAR fields
* conversion to forms library
* full localisation
* other cleanup
2013-12-06 09:51:49 +08:00
Petr Škoda fc28111316 MDL-42973 fix multiple addon update issues 2013-12-06 09:36:38 +08:00
Petr Škoda 6ef8d163c1 MDL-43137 fix open_basedir regression in classloader 2013-12-06 09:29:28 +08:00
Andrew Nicols 7c64c102ad MDL-43152 JavaScript: Add update instructions for gallery-bootstrap 2013-12-06 09:19:45 +08:00
Andrew Nicols 3eb67d05b0 MDL-43152 JavaScript: Fix linting issues with moodle-theme_bootstrapbase 2013-12-06 09:19:42 +08:00
Andrew Nicols 2db015372a MDL-43152 JavaScript: Fix linting issues with moodle-core-blocks 2013-12-06 09:19:39 +08:00
Andrew Nicols 350ef81938 MDL-43152 JavaScript: Fix linting issue with navigation JS 2013-12-06 08:43:34 +08:00
Andrew Nicols 078d8c6e70 MDL-43232 JavaSript: Migrate moodle-backup-confirmcancel to use Shifter 2013-12-06 08:35:47 +08:00
Matteo Scaramuccia aea486c8d5 MDL-43159 Libraries Wrong naming convention in $compat_view. 2013-12-05 16:06:54 +01:00
Matteo Scaramuccia 657a94fcfd MDL-43082 Themes IE 9 Compatibility View doesn't support SVG. 2013-12-05 15:55:17 +01:00
Tim Hunt 165d6d7c56 MDL-43131 qbank: Fix show question text when first viewing.
When you followed the link to the question bank, the checkbox for the
"Show question text in the question list" option correctly reflected the
user's preference, but what was actually shown in the question bank did
not.
2013-12-05 11:22:18 +00:00
Marina Glancy cde67a8377 MDL-42174 behat: change word filepicker to filemanager in step definitions 2013-12-05 21:00:26 +11:00
Marina Glancy 07622451a3 MDL-42174 behat: deprecate upload file to filepicker step in favour of filemanager 2013-12-05 21:00:25 +11:00
Marina Glancy fcb6ed4776 MDL-42174 More behat tests for filepicker 2013-12-05 21:00:20 +11:00
Dan Poltawski c36a2401ab weekly release 2.7dev 2013-12-05 15:09:50 +08:00
Dan Poltawski c33ea63147 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2013-12-05 15:09:47 +08:00
Mark Nelson 626aec1e74 MDL-43215 core_webservice: retrieve all user name fields when adding a token 2013-12-04 20:56:25 -08:00
David Monllao a9c32ee29e MDL-41592 behat: Setting a default value for CFG->behat_wwwroot in case it is empty 2013-12-05 17:06:02 +13:00
Dan Poltawski dfe84ffb52 MDL-37517 testing: remove deprecated classes 2013-12-05 12:05:10 +08:00
Dan Poltawski b9aaae163e MDL-40517 deprecatedlib: remove functions
* Removed functions which were throwing fatal errors
* Fixup navmenu comment, as it hasn't been throwing a fatal error, it
  shouldn't be removed as part of this issue yet. (Although if you are
  still using this function, you are crazy and should thank me ;-)).
2013-12-05 11:55:33 +08:00
Ankit Agarwal b2ff512c59 MDL-42097 auth: Webservice auth uses tokens only not passwords 2013-12-05 10:58:41 +08:00
Petr Škoda 0b3bd8cb7f MDL-42097 fix handling of passwords when creating new users 2013-12-05 10:58:31 +08:00
Yuliya Bozhko c8d2f392c5 MDL-42965 badges: Improve badge criteria review performance 2013-12-05 14:47:55 +13:00
Andrew Nicols c0c1b7ac97 MDL-43212 JavaScript: Remove deprecated moodle-enrol-notification 2013-12-05 09:42:31 +08:00
Sam Hemelryk ec6219a2e7 Merge branch 'MDL-42084-master' of git://github.com/sammarshallou/moodle 2013-12-05 08:25:35 +13:00
Sam Hemelryk ba9935866a Merge branch 'MDL-43185-master' of git://github.com/FMCorz/moodle 2013-12-05 08:07:59 +13:00
sam marshall 8ff1fb6ffe MDL-42084 Fix breakage in grader preferences page 2013-12-04 17:00:08 +00:00
Andrew Nicols 81cb52bb9a MDL-38776 JavaScript: Migrate moodle-form-showadvanced to Shifter 2013-12-04 22:51:26 +08:00
Andrew Nicols 5e4ef61c00 MDL-38775 JavaScript: Migrate moodle-form-shortforms to Shifter 2013-12-04 22:24:32 +08:00
Andrew Nicols d692861010 MDL-43202 JavaScript: Migrate moodle-course-toolboxes to user Shifter 2013-12-04 22:05:16 +08:00
Gareth J Barnard 9124c1f2d3 MDL-40213 theme_clean: Layout "secure.php" missing settings. 2013-12-04 11:23:32 +00:00
Andrew Nicols ea90423cf9 MDL-43194 JavaScript: Correct maxlen jshint configuration 2013-12-04 16:39:48 +08:00
Dan Marsden 8164a2b549 MDL-43192 Repository: param doesn't exist - should use function 2013-12-04 20:54:57 +13:00
Dan Poltawski 0f18e134fb Merge branch 'wip-MDL-40191-2-master' of git://github.com/marinaglancy/moodle 2013-12-04 15:44:03 +08:00
Marina Glancy b9c3f07ad0 MDL-40191 folder: Do not check capability in renderer
Capability to access the module is already checked before calling the renderer. Extra check works bad together with switching roles
2013-12-04 18:27:55 +11:00
Dan Poltawski 50de5b4c06 Merge branch 'wip-mdl-43028' of https://github.com/rajeshtaneja/moodle 2013-12-04 14:57:24 +08:00
Rajesh Taneja e70bfef4ff MDL-43028 navigation: fixed section for profilepage
section for profile page is profilepage and not mypage
2013-12-04 14:48:30 +08:00
Tim Lock 8ed63d4710 MDL-34020: Further work on IMS package importing when using Blackboard packages 2013-12-04 15:16:59 +10:30
Dan Poltawski 03579d47ca Merge branch 'MDL-42563_filter_algebra_thirdpartylibs.xml' of https://github.com/tmuras/moodle 2013-12-04 11:30:09 +08:00
Frederic Massart 6046f1c8f1 MDL-43185 behat: Use realpath on existing paths 2013-12-04 10:59:49 +08:00
Sam Hemelryk 5ba212b444 Merge branch 'MDL-43084-master' of git://github.com/phalacee/moodle 2013-12-04 15:29:00 +13:00
Damyon Wiese 88e39201d7 Merge branch 'MDL-43083-master' of git://github.com/phalacee/moodle 2013-12-04 09:52:51 +08:00
Dan Poltawski fed9deadcd MDL-42597 yui: remove stale built files 2013-12-04 09:08:54 +08:00
Dan Poltawski d22147667d Merge branch 'wip-mdl-42597' of https://github.com/rajeshtaneja/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-12-04 08:53:25 +08:00
Jason Fowler c8b0cb2640 MDL-43084 Themes: fixing dialog header in standard theme 2013-12-04 08:43:42 +08:00
AMOS bot 97c645c016 Automatically generated installer lang files 2013-12-04 00:43:12 +00:00
Dan Poltawski 9fff253293 Merge branch 'master_MDL-43049' of git://github.com/totara/moodle 2013-12-04 08:36:05 +08:00
Rajesh Taneja f487a8f825 MDL-42597 Administration: Modified maintenance mode countdown to display nicely
Added Style and JS to display maintenance mode timer similar
to what is done on moodle demo site for rest.
2013-12-04 08:31:56 +08:00
Eloy Lafuente (stronk7) e16b1bb124 Merge branch 'MDL-41446-master' of git://github.com/sammarshallou/moodle 2013-12-03 23:55:42 +01:00
Sam Hemelryk 5d288a5dbb Merge branch 'MDL-41592_master' of https://github.com/dmonllao/moodle 2013-12-04 11:52:12 +13:00
Eloy Lafuente (stronk7) 2574b28b81 Merge branch 'w49_MDL-43117_m27_releaseinfo' of https://github.com/skodak/moodle 2013-12-03 23:45:54 +01:00
Eloy Lafuente (stronk7) 200fcba737 Merge branch 'MDL-43142_master' of https://github.com/markn86/moodle 2013-12-03 23:40:19 +01:00
Eloy Lafuente (stronk7) e3febb2315 Merge branch 'MDL-43140_master' of https://github.com/markn86/moodle 2013-12-03 23:24:22 +01:00
Sam Hemelryk 12f46583f0 Merge branch 'MDL-43093' of git://github.com/timhunt/moodle 2013-12-04 10:12:12 +13:00
Sam Hemelryk 4f13423663 Merge branch 'wip-mdl-40079' of git://github.com/rajeshtaneja/moodle 2013-12-04 09:49:29 +13:00
Sam Hemelryk 2a336e2a36 Merge branch 'MDL-43065-master' of git://github.com/damyon/moodle
Conflicts:
	backup/util/ui/base_moodleform.class.php
2013-12-04 09:44:25 +13:00
Sam Hemelryk db9c8f4c7d Merge branch 'MDL-42919-master' of git://github.com/damyon/moodle 2013-12-04 09:43:43 +13:00
Eloy Lafuente (stronk7) 7b583eea95 Merge branch 'wip-MDL-43058-master' of git://github.com/abgreeve/moodle 2013-12-03 19:33:15 +01:00
Eloy Lafuente (stronk7) 75b296abf6 Merge branch 'MDL-43105-master' of git://github.com/andrewnicols/moodle 2013-12-03 19:15:05 +01:00
Eloy Lafuente (stronk7) 3e1a05790d Merge branch 'master-mdl33971' of https://github.com/tlock/moodle 2013-12-03 17:17:06 +01:00
Mary Evans 126df92b94 MDL-43092 theme_afterburner: Activity or Resource dialog greyed-out for non-empty courses 2013-12-03 14:52:27 +00:00
Eloy Lafuente (stronk7) 6cc00494e2 Merge branch 'MDL-43079-master-v2' of https://github.com/jamiepratt/moodle 2013-12-03 15:36:25 +01:00
Damyon Wiese a977fa7b36 Merge branch 'wip-MDL-42731-master' of git://github.com/marinaglancy/moodle 2013-12-03 17:29:39 +08:00
Aaron Barnes ddb0a1b0e5 MDL-43087 testing: ability to load features from additional paths 2013-12-03 22:11:26 +13:00
Eloy Lafuente (stronk7) e7b3306a69 Merge branch 'MDL-42885_master' of https://github.com/markn86/moodle 2013-12-03 10:01:19 +01:00
Damyon Wiese 23a05a1b9a Merge branch 'MDL-42627_master' of git://github.com/dmonllao/moodle 2013-12-03 16:15:53 +08:00
Damyon Wiese a5ec4f7ae9 Merge branch 'wip-MDL-43026-master' of git://github.com/marinaglancy/moodle 2013-12-03 16:11:48 +08:00
Dan Poltawski 9c25a183fa Merge branch 'master-mdl43020' of https://github.com/tlock/moodle 2013-12-03 16:08:15 +08:00
Dan Poltawski a9d04b9b91 Merge branch 'MDL-42989-master' of git://github.com/andrewnicols/moodle 2013-12-03 16:01:22 +08:00
Dan Poltawski 8761a4f15d Merge branch 'MDL-42097-master' of git://github.com/ankitagarwal/moodle 2013-12-03 15:21:09 +08:00
Damyon Wiese 53741d32a6 Merge branch 'MDL-42962-master' of git://github.com/ankitagarwal/moodle 2013-12-03 15:15:25 +08:00
Damyon Wiese 4c9464ca0d Revert "MDL-39286 Remove link on My Courses settings heading"
This reverts commit 8b79059480.

Behat is failing with this change.
2013-12-03 14:59:16 +08:00
Dan Poltawski 6ca388028e Revert "MDL-42932 core_calendar: introduced calendar type system setting"
This reverts commit bb32a499e1.
2013-12-03 14:57:10 +08:00
Dan Poltawski aa8abbee14 Revert "MDL-42932 core_lib: added missing $CFG declaration"
This reverts commit 4c61097cc7.
2013-12-03 14:57:08 +08:00
Andrew Nicols d3f62f2aa3 MDL-42989 JavaScript: Check result of navigation IO requests before reporting errors
When making a request which fails, we need to ensure that the AJAX query
was not aborted before displaying the error.

This ensures that if the navigation tree is being requested at the same
time as a page load is being processed, the abortion of the AJAX request is
not displayed before the page reloads.
2013-12-03 14:36:42 +08:00
Ankit Agarwal e10ea84ed0 MDL-42962 events: Remove duplicate code from all course_module_viewed events 2013-12-03 14:24:32 +08:00
Ankit Agarwal 3c24828823 MDL-42962 events: Add unit tests for the abstract class course_module_viewed 2013-12-03 14:24:31 +08:00
Ankit Agarwal df2ac49f72 MDL-42962 events: Add a abstract class course_module_viewed
AMOS BEGIN
 CPY [eventcoursemoduleviewed,core],[eventcoursemoduleviewed,mod_feedback]
AMOS END
2013-12-03 14:24:31 +08:00
Andrew Nicols 2f13dd98b0 MDL-42989 JavaScript: Do not attempt to expand navigation when opening link
When clicking on a link which is also expandable, we should not attempt to
expand it.
2013-12-03 14:20:51 +08:00
Ankit Agarwal 963cdce4e2 MDL-42097 auth: Auth plugins must check passwordurl before returning it 2013-12-03 14:17:42 +08:00
Damyon Wiese 8f49492ac2 Merge branch 'time-limit-fix' of https://github.com/danpoltawski/moodle 2013-12-03 14:17:34 +08:00
Ankit Agarwal 6513cc0376 MDL-42097 formslib: updates to edit profile form
Add a new dependency 'in' in forms library
Use the 'in' dependency to disable the 'changepassword' field when a auth plugin doesn't support it
2013-12-03 14:15:16 +08:00
Dan Poltawski 0b2f11dbc3 MDL-42084 lib: fix undefined variable warnings 2013-12-03 14:00:21 +08:00
Dan Poltawski 753eb47edc Merge branch 'wip-mdl-43028' of https://github.com/rajeshtaneja/moodle 2013-12-03 13:45:59 +08:00
Rajesh Taneja e6e5f43efc MDL-40079 repositories: Added deprecated tags 2013-12-03 13:34:33 +08:00
Rajesh Taneja 7f9a4b35c3 MDL-40079 repositories: Replaced const with configs for boxnet 2013-12-03 13:24:10 +08:00
Damyon Wiese 6b8c6278bc Merge branch 'MDL-43076-master' of git://github.com/phalacee/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-12-03 13:18:47 +08:00
Damyon Wiese e7af63633e Merge branch 'MDL-43081-master' of git://github.com/danpoltawski/moodle
Conflicts:
	lib/upgrade.txt
2013-12-03 13:03:32 +08:00
Dan Poltawski 4ab19f9c71 Merge branch 'wip-mdl-43028' of https://github.com/rajeshtaneja/moodle 2013-12-03 12:52:10 +08:00
Dan Poltawski ebe051792d Merge branch 'MDL-42738_master' of git://github.com/dmonllao/moodle 2013-12-03 12:41:03 +08:00
Dan Poltawski 03742ae8f9 Merge branch 'MDL-43066_master' of git://github.com/dmonllao/moodle 2013-12-03 12:36:50 +08:00
Damyon Wiese b3d252a6b4 Merge branch 'wip-mdl-43048' of https://github.com/rajeshtaneja/moodle 2013-12-03 11:43:32 +08:00
Dan Poltawski cd515a9421 Merge branch 'MDL-42932_master' of https://github.com/markn86/moodle 2013-12-03 11:41:06 +08:00
Mark Nelson 4c61097cc7 MDL-42932 core_lib: added missing $CFG declaration 2013-12-02 19:25:32 -08:00
Damyon Wiese de3e0d20bd Merge branch 'wip-mdl-42904' of https://github.com/rajeshtaneja/moodle
Conflicts:
	enrol/self/db/upgrade.php
2013-12-03 11:10:18 +08:00
Andrew Nicols 69353dcecd MDL-43164 JavaScript: Use the up/down move icon for non-AJAX courses
When a course format does not support AJAX, or AJAX is disabled at the site
level, we should revert back to the old-style move icon.

This helps to clarify that you cannot drag/drop the icon, but must click
instead.
2013-12-03 10:49:29 +08:00
Dan Poltawski 8d8e6f9607 Merge branch 'MDL-42932_master' of https://github.com/markn86/moodle 2013-12-03 10:07:10 +08:00
Damyon Wiese 13410584be Merge branch 'MDL-40939-master' of https://github.com/timgus/moodle
Conflicts:
	filter/tex/version.php
	lang/en/admin.php
2013-12-03 09:26:58 +08:00
Sam Hemelryk a59a423926 Merge branch 'MDL-42084-master' of git://github.com/sammarshallou/moodle 2013-12-03 11:12:34 +13:00
Sam Hemelryk b5fd2497d6 Merge branch 'w48_MDL-41819_m27_maxinputvars' of https://github.com/skodak/moodle 2013-12-03 10:25:26 +13:00
Tim Hunt b2f1717143 MDL-43093 update repeat_elements PHPdoc. 2013-12-02 17:48:44 +00:00
Michael Aherne 157771a321 MDL-42495 lesson Prevent coding error for invalid user 2013-12-02 10:36:39 +00:00
Damyon Wiese 2a1e730eb3 Merge branch 'wip-MDL-39286-master' of git://github.com/ds125v/moodle 2013-12-02 15:16:12 +08:00
Damyon Wiese 2b267d31c8 MDL-32888: Whitespace fixes (grr) 2013-12-02 15:14:26 +08:00
Damyon Wiese 7363aacb65 Merge branch 'MDL-32888_master' of https://github.com/maitkin-ltu/moodle 2013-12-02 15:01:37 +08:00
Dan Poltawski 6bc8b35add Merge branch 'MDL-42989-master' of git://github.com/andrewnicols/moodle 2013-12-02 14:52:03 +08:00
Marina Glancy 9842e231e8 MDL-42731 block_activity_modules: added behat tests 2013-12-02 17:44:32 +11:00
Marina Glancy 6dfd8325f0 MDL-42731 behat: load 'Site administration' when expanding node in non-javascript mode 2013-12-02 17:44:32 +11:00
Damyon Wiese cc9651dcae Merge branch 'm27_MDL-43039_SessionDiskFull_False_Positive' of https://github.com/scara/moodle 2013-12-02 14:37:22 +08:00
Andrew Nicols 0bb56f2e31 MDL-42989 Admin: Clean output when building site administration tree for JS
Previously, any inappropriate whitespace found whilst building the admin
tree caused a JSON error and for the site administration tree retrieval to
fail.

This change ensures that access to the site administration tree is unbroken
for non-developers, whilst still alerting developers that there is an
issue.
2013-12-02 14:28:37 +08:00
Dan Poltawski 4b9e9fcb01 Merge branch 'MDL-42969-master' of git://github.com/mouneyrac/moodle 2013-12-02 14:23:48 +08:00
David Monllao 677b2e79f1 MDL-41592 general: Also checking the site path 2013-12-02 14:18:10 +08:00
David Monllao 7f7a91e4ce MDL-41592 behat: Config settings more flexible
Adding the option to just set ->behat_wwwroot to
allow switching to the behat test site.
2013-12-02 14:18:10 +08:00
Aaron Barnes cc2691a7bb MDL-41592 behat: Allow alt wwwroot to be set for acceptance testing
To set add $CFG->behat_wwwroot = 'http://alturl'; in your config.php
2013-12-02 14:18:10 +08:00
David Monllao e7c71c448b MDL-42627 behat: Moving the deprecated method to behat_deprecate and updating scenarios 2013-12-02 14:13:17 +08:00
David Monllao c3a40deab7 MDL-42627 behat: New steps definitions class for deprecated steps 2013-12-02 14:13:17 +08:00
David Monllao 0e825e5dd4 MDL-43066 behat: Checking that the site is not already installed 2013-12-02 14:10:57 +08:00
Damyon Wiese bd3811f1b4 MDL-43018 Fix unit tests for minify changes. 2013-12-02 12:52:01 +08:00
Damyon Wiese df68e73824 Merge branch 'MDL-40040-master' of git://github.com/ankitagarwal/moodle 2013-12-02 12:16:59 +08:00
Ankit Agarwal 6b36411587 MDL-40040 Cleanup some blog methods and replace add_to_log
Cleaned up add_association()
cleaned up add_associations()
Replaced remaining add_to_log() in blogs with events
2013-12-02 12:06:32 +08:00
Ankit Agarwal cf0116db07 MDL-40040 events: Add unit tests for blog events 2013-12-02 12:06:32 +08:00
Ankit Agarwal 164931570f MDL-40040 events: Add blog events
Added blog_entries_viewed
Added blog_association_created
2013-12-02 12:06:32 +08:00
Dan Poltawski 466aa44471 Merge branch 'w49_MDL-43106_m27_doublecookie' of https://github.com/skodak/moodle 2013-12-02 11:58:01 +08:00
Damyon Wiese 8d68ea7233 Merge branch 'MDL-43018-master' of git://github.com/andrewnicols/moodle 2013-12-02 11:23:46 +08:00
Dan Poltawski 10c12c94a8 Merge branch 'wip-MDL-40191-master' of git://github.com/marinaglancy/moodle 2013-12-02 11:19:41 +08:00
Dan Poltawski 9a7de39d7a Merge branch 'MDL-43068' of git://github.com/timhunt/moodle 2013-12-02 11:11:07 +08:00
Rajesh Taneja c1b3ac4358 MDL-40079 repositories: Replaced const with configs 2013-12-02 09:41:41 +08:00
Damyon Wiese ecfbb657f3 Merge branch '43033-27' of git://github.com/samhemelryk/moodle 2013-12-02 09:33:39 +08:00
Sam Hemelryk c619d3d48d Merge branch 'MDL-42876-master' of git://github.com/mouneyrac/moodle 2013-12-02 14:04:09 +13:00
Marina Glancy f1d7254954 MDL-43150 tinymce_managefiles: fixed unattractive background 2013-12-02 12:01:27 +11:00
Sam Hemelryk 12539749f4 Merge branch 'MDL-42918' of git://github.com/rwijaya/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-12-02 13:44:05 +13:00
AMOS bot 5ca122a2b0 Automatically generated installer lang files 2013-12-02 00:42:53 +00:00
Petr Škoda a377754770 MDL-41819 try to work around max_input_vars restriction 2013-12-02 08:29:08 +08:00
Sam Hemelryk f2d7e2dca9 Merge branch 'MDL-42951-master' of git://github.com/FMCorz/moodle 2013-12-02 10:52:11 +13:00
Sam Hemelryk 06ef842707 Merge branch 'wip-mdl-33618' of https://github.com/rajeshtaneja/moodle 2013-12-02 10:35:46 +13:00
Sam Hemelryk 1e9f4c98e3 MDL-43033 cache: added stats logging to set_many methods 2013-12-02 09:30:04 +13:00
Sam Hemelryk e28a953996 MDL-43033 cache: fixed display of definition stores in admin interface 2013-12-02 09:30:03 +13:00
Sam Hemelryk d31fd615eb MDL-43033 cache: added a warning icon for mappings
We now show a warning icon with an explanatory alt if the user
has mapped a store as a mode default that doesn't not fulfill the
requirements of every known definition.
2013-12-02 09:30:03 +13:00
Sam Hemelryk bf77c0b273 MDL-43033 cache: fixed mode map event invalidation scenario 2013-12-02 09:30:03 +13:00
Sam Hemelryk 6dbe2df208 MDL-43033 cache: added stats logging to get_many methods 2013-12-02 09:30:03 +13:00
Petr Škoda 2f98f5d541 MDL-43117 Add release column to Plugins Overview page
This patch is based on previous patch by Marko Vidberg, thanks a lot!
2013-12-01 18:57:49 +08:00
Matteo Scaramuccia 35897a5223 MDL-43039 Libraries "The session partition is full." false positive. 2013-11-30 14:36:58 +01:00
Mark Nelson 67bfaaf0dd MDL-43140 mnet: display header after redirects to avoid warning 2013-11-29 14:25:45 -08:00
Mark Nelson f9b4143a8e MDL-43142 mnet: fixed typo in variable passed to get_string 2013-11-29 14:15:07 -08:00
Petr Škoda 226991e9fe MDL-43106 fix double cookies on first access 2013-11-29 15:47:16 +08:00
Damyon Wiese df9b573d85 MDL-43065 Backup: Prevent any responsiveness in backup/restore forms
Adding 'unresponsive' class to any moodle form will prevent the default
collapsing on screens < 1200px.
2013-11-29 14:27:34 +08:00
Marina Glancy dd47f2107f MDL-43026 behat: add tests for all available module generators 2013-11-29 17:24:12 +11:00
Damyon Wiese 6d55d0f5f0 MDL-42919 Renest bootstrap folding forms CSS in less 2013-11-29 14:16:16 +08:00
Dan Poltawski 9b37cd72a2 weekly release 2.7dev 2013-11-29 12:52:39 +08:00
Dan Poltawski 4f42752d70 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2013-11-29 12:52:35 +08:00
Tim Lock f6c5ceca71 MDL-42487: Forced userprofile dl style to be displayed: inline-block. 2013-11-29 09:22:48 +10:30
Eloy Lafuente (stronk7) 4942801c39 Merge branch 'MDL-42957-master' of https://github.com/jamiepratt/moodle
Conflicts:
	question/classes/statistics/questions/calculator.php
	question/classes/statistics/responses/analyser.php
2013-11-28 12:44:04 +01:00
James Pratt 7d6b28d87a MDL-42957 (3) quiz statistics : removing assertEquals(time(), ..) tests 2013-11-28 17:57:02 +07:00
James Pratt 487e7e6602 MDL-42957 (2) quiz statistics : Hardcoded sql LIMIT clause
Fixing some typos and adding some tests.
2013-11-28 17:13:26 +07:00
AMOS bot 4be2c1b812 Automatically generated installer lang files 2013-11-28 09:12:39 +00:00
Andrew Nicols 104d698ffd MDL-43105 JavaScript: Use the correct versions of our rollups 2013-11-28 12:31:51 +08:00
Frederic Massart 74c4405b8a MDL-42951 curl: Re-organise Unit Tests in smaller chunks 2013-11-28 12:14:13 +08:00
Frederic Massart 102230b23c MDL-42951 curl: Always keep the last headers of a request 2013-11-28 12:00:42 +08:00
Tim Hunt 1c73df9eea MDL-43068 course&gradebook: show/hide cm & CONTROLS_GRADE_VISIBILITY
Making a quiz visible on the course page, of via the settings form,
could cause the grade item to become visible in the gradebook, even
though the quiz supports FEATURE_CONTROLS_GRADE_VISIBILITY to ensure
that when the grades are hidden in the quiz settings, they do not appear
in the gradebook.

Now, if a module supports FEATURE_CONTROLS_GRADE_VISIBILITY, then
set_coursemodule_visible calls the _grade_item_update callback to update
the grade item(s).

In addition, there was a bug when saving the quiz form, where it used
the value of $cm->visible from the database, which was wrong if the
value of cm->visible had just been changed on the setting form.
2013-11-27 17:40:40 +00:00
James Pratt 34292e218d MDL-43079 quiz statistics : fix stats graph when all grades zero 2013-11-27 17:50:05 +07:00
Jason Fowler d9308a07e8 MDL-43083 Course: Swapping the edit/cog for the right size icon 2013-11-27 15:06:25 +08:00
Adrian Greeve 8b1d424098 MDL-43058 reports: updated sql to return fullnames in security check reports. 2013-11-27 14:43:33 +08:00
Jason Fowler 7d4e3575bc MDL-43076 Activity Chooser: Fixing the white bar at the bottom of the dialogue 2013-11-27 14:39:42 +08:00
Rajesh Taneja c891a73d97 MDL-43048 block_tags: Initalised content->text for tags block 2013-11-27 14:32:35 +08:00
Dan Poltawski fb16acf24e MDL-43081 upgrade.txt: note generator change 2013-11-27 13:29:15 +08:00
Mark Nelson 275d958e62 MDL-42885 tool_uploaduser: removed misleading debugging message 2013-11-26 21:26:03 -08:00
Dan Poltawski ab47c758d1 MDL-42942 behat: increment version 2013-11-27 11:33:11 +08:00
Dan Poltawski eeb6b7847b Merge branch 'MDL-42942_master' of git://github.com/dmonllao/moodle 2013-11-27 11:32:23 +08:00
Andrew Nicols 19d97d6b15 MDL-43018 JavaScript: Correct joining of multiple minified JS
When minifiying JS, unnecessary semi-colons are removed - this includes the
trailing semi-colon.

Since we join multiple files together after minification, we need to add an
additional semi-colon in this situation to produce valid JavaScript.
2013-11-27 09:33:14 +08:00
AMOS bot 4729051593 Automatically generated installer lang files 2013-11-27 00:48:23 +00:00
Sam Hemelryk 8d5a9d6ec1 Merge branch 'wip-MDL-42508-master' of git://github.com/marinaglancy/moodle 2013-11-27 12:36:02 +13:00
Tim Lock 579f849928 MDL-33971: When viewing course log entries for Quiz View Summary a number is displayed not the quiz name 2013-11-27 08:14:40 +10:30
Eloy Lafuente (stronk7) 51e9d69af2 Merge branch 'master_MDL-43045' of git://github.com/totara/moodle 2013-11-26 21:27:35 +01:00
Ruslan Kabalin 749700e4a7 MDL-43071 assign: Fix offline grades import for scale grading. 2013-11-26 16:36:37 +00:00
Damyon Wiese e359857e41 Merge branch 'wip-MDL-43008-master' of git://github.com/abgreeve/moodle 2013-11-26 16:56:20 +08:00
Adrian Greeve b404b1f41c MDL-43008 calendar: Allow calendar plugins to display setting pages. 2013-11-26 15:44:57 +08:00
Mark Nelson bb32a499e1 MDL-42932 core_calendar: introduced calendar type system setting 2013-11-25 23:11:17 -08:00
Dan Poltawski bb29677965 Merge branch 'MDL-43000' of git://github.com/timhunt/moodle 2013-11-26 15:05:42 +08:00
Dan Poltawski 2bc34d6528 Merge branch 'MDL-40741_master' of git://github.com/dmonllao/moodle 2013-11-26 14:52:21 +08:00
Dan Poltawski fb9c770d8d Merge branch 'MDL-42851' of git://github.com/rwijaya/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-11-26 14:48:21 +08:00
Damyon Wiese 3a5c3b3cbf MDL-42919 Assign: Remove no-label form hacks 2013-11-26 13:30:36 +08:00
Damyon Wiese 4d4b345392 MDL-42919 Question: Remove &#160; from empty labels
This allows the form elements with empty labels to "fold" properly.
2013-11-26 13:30:36 +08:00
Damyon Wiese e6b1d132cb MDL-41919 Forms: Add a class to form elements with an empty label
This means they can be styled properly when the form is folded with
the labels above the form fields.
2013-11-26 13:28:51 +08:00
Dan Poltawski 6ac888c5f2 Merge branch 'wip-MDL-43006-master' of git://github.com/marinaglancy/moodle 2013-11-26 13:24:02 +08:00
David Monllao 39386f271f MDL-42738 behat: Updating composer.json to point to the new moodle-behat-extension master 2013-11-26 12:49:33 +08:00
rwijaya e94d023225 MDL-42918: fixed fullscreen width for multichoice answers editor 2013-11-26 12:21:51 +08:00
Dan Poltawski c9ed9e5662 Merge branch 'MDL-42733_master' of git://github.com/dmonllao/moodle 2013-11-26 12:09:45 +08:00
David Monllao 5df9e40cec MDL-40741 behat: Changing xpaths for clean theme
Keeps compatibility with standard theme.
2013-11-26 11:41:13 +08:00
Jerome Mouneyrac 2a974bb79c MDL-42969 Main Menu Block loses ability to move resource or activity up or down (add back exact same behavior than in 2.5) 2013-11-26 11:38:56 +08:00
Marina Glancy 4fd2a16e35 MDL-40191 navigation: do not throw an error if activity is not visible
navigationlib is not the place to check it, let the page itself decide what to do in this case
2013-11-26 13:54:19 +11:00
Damyon Wiese 46b9d1bec6 Merge branch 'master-mdl42998' of https://github.com/tlock/moodle 2013-11-26 10:49:32 +08:00
David Monllao e2d7379682 MDL-42842 behat: Adding a new formatter
Based on ProgressFormatter, the site info
will be displayed when the suite begins.
2013-11-26 10:48:58 +08:00
David Monllao 7514c2f282 MDL-42842 testing: Generalization of the site info 2013-11-26 10:48:29 +08:00
Dan Poltawski 01db5af468 Merge branch 'MDL-43050_master' of git://github.com/dmonllao/moodle 2013-11-26 10:42:04 +08:00
David Monllao d949882691 MDL-43050 behat: Fixing moodlehq/behat-extension version 2013-11-26 10:36:08 +08:00
Dan Poltawski 4bf3517bc7 Merge branch 'wip-mdl-41635' of git://github.com/rajeshtaneja/moodle 2013-11-26 10:24:59 +08:00
Damyon Wiese 18962add08 Merge branch 'wip-MDL-40850-master' of git://github.com/marinaglancy/moodle 2013-11-26 09:29:44 +08:00
Sam Hemelryk f9cb086dfc Merge branch 'MDL-43005-master' of git://github.com/ankitagarwal/moodle 2013-11-26 08:42:25 +13:00
Sam Hemelryk 657b29e7bc Merge branch 'MDL-43037_master' of https://github.com/markn86/moodle 2013-11-26 08:36:36 +13:00
Simon Coggins b92709db40 MDL-43045 report: Fix missing role name in security overview report 2013-11-26 08:14:10 +13:00
Simon Coggins 529b85b06f MDL-43049 accesslib: Fix typo in memory optimization code 2013-11-26 08:01:28 +13:00
Tomasz Muras 399889c11a MDL-42563 Correct version of GPL license to GPL 2+ for AlgParser.pm 2013-11-25 11:53:18 +01:00
Dan Poltawski 25da2fe065 Merge branch 'wip-MDL-42925-master' of git://github.com/marinaglancy/moodle 2013-11-25 15:43:44 +08:00
rwijaya a13b9929a2 MDL-42858 Course Management: Update phpunit test for core_course_management_helper_test 2013-11-25 15:39:22 +08:00
Damyon Wiese a184b3d712 Merge branch 'MDL-42985-master' of git://github.com/FMCorz/moodle 2013-11-25 14:52:26 +08:00
Damyon Wiese fdeb639eb8 Merge branch 'MDL-41257-Calendar-Day-and-Upcoming-Events-View-not-processed-through-text-filters' of git://github.com/michael-milette/moodle 2013-11-25 14:04:05 +08:00
Dan Poltawski b7e6b82155 Merge branch 'w48_MDL-37016_m27_sloppymysql' of https://github.com/skodak/moodle 2013-11-25 13:40:54 +08:00
Marina Glancy b884e46d5d MDL-43028 navigation: correct capability check 2013-11-25 13:27:01 +08:00
Damyon Wiese aacd01f28e Merge branch 'wip-mdl-42924' of https://github.com/rajeshtaneja/moodle 2013-11-25 13:16:04 +08:00
Damyon Wiese dc4c0310ee Merge branch 'MDL-42913a' of https://github.com/srynot4sale/moodle 2013-11-25 13:11:24 +08:00
Tim Lock 16c25753a8 MDL-43020: Fix lesson scale warnings when deleting user attempts 2013-11-25 15:08:19 +10:30
Dan Poltawski e7f52df8f6 Merge branch '43016-27' of git://github.com/samhemelryk/moodle 2013-11-25 12:21:20 +08:00
Rajesh Taneja 823c593fc5 MDL-43028 Navigation: Setting proper page properties on admin pages 2013-11-25 12:12:38 +08:00
Marina Glancy 8a3a584da5 MDL-43006 behat: adding javascript tag because of behat bug
behat without JS does not submit the empty textarea field causing notice in the form processing
2013-11-25 14:59:28 +11:00
Dan Poltawski 83a97ce6c7 Merge branch 'master_MDL-42992' of git://github.com/danmarsden/moodle 2013-11-25 11:17:47 +08:00
Dan Poltawski 43e72c1f6a Merge branch 'wip-MDL-43024-master' of git://github.com/marinaglancy/moodle 2013-11-25 11:06:39 +08:00
Dan Poltawski f5bc16cbd1 Merge branch 'MDL-42858' of git://github.com/rwijaya/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-11-25 10:48:33 +08:00
James Pratt a9e2f21125 MDL-42957 quiz statistics : Hardcoded sql LIMIT clause 2013-11-25 10:43:18 +08:00
Dan Poltawski a136e16c8e Merge branch 'MDL-42547_master' of https://github.com/markn86/moodle 2013-11-25 10:37:33 +08:00
Rajesh Taneja 95cf93b9f4 MDL-42904 self_enrol: Set customint1 if it's null 2013-11-25 10:01:00 +08:00
Tim Lock 74dd3bd6c7 MDL-43020: Fix calculation of lesson scale value warning 2013-11-25 09:31:56 +10:30
Petr Škoda e696fe6aa5 MDL-37016 fix sloppy mysql nulls in event.uuid 2013-11-24 15:10:58 +08:00
Mark Nelson 12bb281e5e MDL-43037 mod_quiz: retrieve all name fields for the user override pages 2013-11-23 16:17:54 -08:00
Tomasz Muras fa9879782e MDL-42563 Add thirdpartylibs.xml for AlgParser.pm. 2013-11-22 23:58:06 +01:00
Tim Hunt 5dbfbc82cf MDL-43000 shortanswer qtype: handle patterns with many *s
Teachers were typing patterns like
********************************<em>****************************</em>
which translates into a pattern like .*.*.*.*, which is very inefficient
to try to match, althought it is equivalent ot a single .*. At a certain
point preg was just giving up.

Since people actually do this, we should simplify the regex by treating
runs of * like a single *.
2013-11-22 11:32:09 +00:00
Marina Glancy 6f5db6a6a8 MDL-42508 folder: add module generator 2013-11-22 18:56:48 +11:00
rwijaya 1b136466bf MDL-42851 frontpage: fix rtl in clean theme for course listings 2013-11-22 15:47:22 +08:00
Marina Glancy 490dca1a6f MDL-42508 imspcp: add module generator 2013-11-22 15:25:38 +11:00
Marina Glancy 15cca13822 MDL-42508 scorm: add module generator 2013-11-22 15:25:37 +11:00
Marina Glancy 724b00b2b6 MDL-43024 course: fixed bug for accessing section options 2013-11-22 12:41:35 +11:00
Tim Lock da7e5daf1e MDL-43020: Fix calculation of lesson scale value using gradeitem grademax 2013-11-22 07:17:38 +10:30
Sam Hemelryk 9474b47781 MDL-43016 block_navigation: fixed category link display 2013-11-22 08:55:39 +13:00
Eloy Lafuente (stronk7) f7434db109 weekly on-sync release 2.7dev 2013-11-21 19:33:52 +01:00
Eloy Lafuente (stronk7) 9d1a546fa0 Merge branch 'install_master' of git://git.moodle.org/moodle-install 2013-11-21 19:33:47 +01:00
Jerome Mouneyrac ad417fdfe7 MDL-42876 Screen reader does not trigger the keyboard move 2013-11-21 17:42:18 +08:00
rwijaya 3e57883c5c MDL-42858 Course Management: fix regression for subcategories visibility 2013-11-21 15:32:50 +08:00
David Monllao 85ad19ec78 MDL-42733 behat: Removing the restriction of an started output to handle the PHP errors 2013-11-21 14:34:56 +08:00
Ankit Agarwal 1af9063e47 MDL-43005 blogs: Fix issues with blog tags 2013-11-21 13:37:20 +08:00
Marina Glancy 60261b8c59 MDL-42925 course: Changed help string for course format selection 2013-11-21 13:29:31 +11:00
Frederic Massart ba72e295c2 MDL-42985 curl: Correctly apply rule proxybypass 2013-11-21 09:56:54 +08:00
Rajesh Taneja fd0f7ac5c2 MDL-33618 Messages: Added support to disable message provider 2013-11-21 09:40:34 +08:00
Marina Glancy 1f897a72f3 MDL-40850 editor: Manage files popup correctly sets the course/cm context 2013-11-21 11:55:20 +11:00
Tim Lock 4c1bac5c75 MDL-42998: Fix user selection search options autoselectunique. 2013-11-21 09:17:04 +10:30
Dan Marsden 18a34b07e6 MDL-42992 SCORM: Always allow IE to resize window 2013-11-21 10:22:42 +13:00
James Pratt 6ebfe7e5f1 Merge branch 'MDL-42957-26' into MDL-42957-master 2013-11-20 11:33:49 +07:00
James Pratt e4b17111a4 MDL-42957 quiz statistics : Hardcoded sql LIMIT clause 2013-11-20 11:32:27 +07:00
Damyon Wiese b170380a8e MDL-42930 Release upgrade line: Fix ordering for tinymce 2013-11-20 11:47:35 +08:00
FilipBenco ee4e66bf53 MDL-41635 Reports: Added missing string in loglive reports
Under course administration navigation log live doesn't appear
or appear with empty string (in some themes), this is happening
because text passed is empty.
2013-11-20 10:56:21 +08:00
Marina Glancy a99e1ad9ec Merge branch 'MDL-42767-master' of git://github.com/ankitagarwal/moodle 2013-11-20 13:20:17 +11:00
Aaron Barnes 2eaa440c34 MDL-42913 lib/grouplib.php: Avoid cache sometimes for groups_get_all_groups
The new groups cache returns unexpected results when you pass
in a field parameter than would normally change the result array index
2013-11-20 11:56:42 +13:00
Michael Milette 9984132c23 MDL-41257 calendar: Day and Upcoming-Events view not processed through text_filters() function
This fix adds text filtering to the Calendar Day view and Upcoming Events view, specifically the event name and event description.

Signed-off-by: Michael Milette <michael.milette@instruxmedia.com>
2013-11-19 08:33:04 -05:00
Ankit Agarwal 542d3820d1 MDL-42767 events: Remove ob_clean from tests 2013-11-19 16:34:49 +08:00
Ankit Agarwal cc49a6f7eb MDL-42767 notes: Delete notes on a course delete 2013-11-19 16:32:19 +08:00
Mark Nelson 7ca44a4963 MDL-42547 tool_uploaduser: trim values before uploading users 2013-11-18 20:07:01 -08:00
Rajesh Taneja 8c59114f24 MDL-42924 Administration: use normalize_component to extract plugin name and type 2013-11-19 11:51:20 +08:00
Dan Poltawski f7b47f1c0c Merge branch 'wip-mdl-42403' of https://github.com/rajeshtaneja/moodle 2013-11-19 11:43:39 +08:00
Rajesh Taneja 3ea677e39a MDL-42403 course: Added behat to check visibility of bluk move action 2013-11-19 10:52:33 +08:00
Rajesh Taneja a5888fb591 MDL-42403 course: Show bluk move to category only when something selected 2013-11-19 10:52:32 +08:00
Dan Poltawski 84cd1a2a91 Merge branch '42060-27' of git://github.com/samhemelryk/moodle 2013-11-19 10:39:30 +08:00
Dan Poltawski 2a0a33a6ee Merge branch 'MDL-42504' of git://github.com/timhunt/moodle 2013-11-19 10:30:16 +08:00
Dan Poltawski 0cf4e15baf Merge branch 'MDL-42181' of git://github.com/mkassaei/moodle 2013-11-19 10:04:59 +08:00
Damyon Wiese 86249e9aeb Merge branch 'master_MDL-40223' of git://github.com/danmarsden/moodle 2013-11-19 09:49:57 +08:00
Sam Hemelryk 417d6f51cc Merge branch 'MDL-42905-master' of git://github.com/sammarshallou/moodle 2013-11-19 14:37:28 +13:00
Sam Hemelryk 8b5e008bc2 Merge branch 'MDL-42553_master' of https://github.com/markn86/moodle 2013-11-19 14:31:51 +13:00
Sam Hemelryk 496692fb9d Merge branch 'wip-MDL-42850-master' of git://github.com/abgreeve/moodle 2013-11-19 14:19:20 +13:00
AMOS bot 0455c4768f Automatically generated installer lang files 2013-11-19 00:40:26 +00:00
Dan Marsden eef4c4c175 MDL-40223 SCORM: pass limit into function instead of hardcoding to allow cross-db 2013-11-19 13:23:06 +13:00
Sam Hemelryk 40dca7e4d6 Merge branch 'MDL-41316-master' of git://github.com/ankitagarwal/moodle 2013-11-19 12:28:08 +13:00
Sam Hemelryk 35a1978985 Merge branch 'w47_MDL-42612_m27_paypalruble' of https://github.com/skodak/moodle 2013-11-19 12:24:56 +13:00
Sam Hemelryk 40ce744d08 Merge branch 'MDL-42774-master' of git://github.com/andrewnicols/moodle 2013-11-19 12:06:29 +13:00
Sam Hemelryk 074e5686db Merge branch 'MDL-42863' of git://github.com/timhunt/moodle 2013-11-19 12:03:41 +13:00
Sam Hemelryk 04fcb4a96c Merge branch 'MDL-42865' of git://github.com/timhunt/moodle 2013-11-19 11:50:44 +13:00
Sam Hemelryk 3d2dc94bf1 MDL-42852 theme_bootstrapbase: fixed whitespace 2013-11-19 11:45:17 +13:00
Sam Hemelryk d7a0da37d9 Merge branch 'wip-MDL-42852_master' of git://github.com/gjb2048/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-11-19 11:42:25 +13:00
Sam Hemelryk 1098226524 Merge branch 'MDL-42184-master-3' of git://github.com/mouneyrac/moodle 2013-11-19 10:15:33 +13:00
Sam Hemelryk 34592ffd98 Merge branch 'MDL-42853-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-11-19 10:08:45 +13:00
Damyon Wiese ef16df1449 Merge branch 'MDL-42100_master' of https://github.com/markn86/moodle 2013-11-18 16:08:57 +08:00
Dan Poltawski 66a02845e9 Merge branch 'MDL-42880b' of git://github.com/timhunt/moodle 2013-11-18 15:37:01 +08:00
Damyon Wiese 79149e85fb Merge branch 'MDL-42808-master' of git://github.com/FMCorz/moodle 2013-11-18 15:26:52 +08:00
Damyon Wiese 67016a4d39 Merge branch 'master_MDL-41695' of git://github.com/danmarsden/moodle 2013-11-18 15:12:56 +08:00
Damyon Wiese 7f2c374dcd Merge branch 'MDL-42582-master' of git://github.com/sammarshallou/moodle 2013-11-18 14:55:18 +08:00
Dan Poltawski b6813d8f6a Merge branch 'MDL-42884_master' of https://github.com/markn86/moodle 2013-11-18 14:41:06 +08:00
Dan Poltawski 728f924ec1 Merge branch 'MDL-42930-master' of git://github.com/damyon/moodle
Conflicts:
	mod/scorm/db/upgrade.php
2013-11-18 14:32:55 +08:00
Damyon Wiese 61cdb947e8 Merge branch 'master_MDL-40223' of git://github.com/danmarsden/moodle 2013-11-18 14:05:17 +08:00
Petr Škoda 93d31b5d77 MDL-42612 add support for Russian Ruble in PayPal 2013-11-18 11:49:10 +08:00
Damyon Wiese 47578dbff4 MDL-42930 Add 2.6.0 upgrade line 2013-11-18 11:47:17 +08:00
Adrian Greeve a2071fbf7c MDL-42850 administration: Updated bulk user upload errors to be more descriptive. 2013-11-18 11:36:16 +08:00
Sam Hemelryk 19b13d531a MDL-42060 block_course_list: fixed sorting of mycourses 2013-11-18 11:15:02 +13:00
Dan Marsden 0d7eb69164 MDL-41695 SCORM: allow unlimited decimal places in CMIDecimal 2013-11-18 10:27:10 +13:00
Dan Marsden 27c58e5583 MDL-40223 SCORM: update scorm->launch param after restore - also check that scorm->launch is valid. 2013-11-18 09:44:54 +13:00
Gareth J Barnard b3eadf7050 MDL-42852 lib: Blocks disappear in Clean in RTL. 2013-11-17 13:33:30 +00:00
Eloy Lafuente (stronk7) 953b6e2b34 MDL-42929 backup: keep own version & release updated. 2013-11-17 02:32:43 +01:00
Eloy Lafuente (stronk7) b58bc15af5 weekly back-to-dev release 2.7dev 2013-11-16 23:46:18 +01:00
M Kassaei 0328341f97 MDL-42181 quiz nav: highight all buttons when all Qs on one page 2013-11-15 15:30:31 +00:00
Tim Hunt c590848158 MDL-42880 quiz settings: remove unnecessary disabledif rules.
These rules were causing problems in the case where the form was
sumitted with validation errors. In that case, the During the attempt ->
The attempt checkbox was becoming unset, and hence the other During the
attmept checkboxes became disabled, and the values were not saved.

Thanks to Sam Marshall for suggesting this fix.
2013-11-15 15:09:25 +00:00
Tim Hunt be8c2ec31f MDL-42865 Make XMLDB foreign key check more robust.
Otherwise, installing one bad add-on can completely break this report.
2013-11-15 15:08:51 +00:00
Tim Hunt 02793f156c MDL-42863 make capabilities overview more fault-tolerant. 2013-11-15 15:08:32 +00:00
Tim Hunt 52b612f08b MDL-42504 quiz autosave: alert users if connection lost.
When the auto-save fails, we alert the user that they may have lost their
internet connection so that they don't do more work that they might just
lose.
2013-11-15 15:08:13 +00:00
sam marshall 597ac7e5d2 MDL-42582 Availability: Restriction display incorrect for multi-para Labels
When a label has multiple paragraphs, its name (converted to plain text)
contains a line feed. Due to an error in regular expressions that don't
accept the line feed, this caused incorrect display on the course page
when that label is shown as a requirement for accessing another activity.
2013-11-15 12:45:32 +00:00
sam marshall 8f46e2a808 MDL-42905 Backup progress: Pointless line of code should be deleted 2013-11-15 12:44:34 +00:00
Mark Nelson 88a31771a6 MDL-42553 core_calendar: third party calendar types can now be uninstalled 2013-11-14 17:20:01 -08:00
Matt Switlik 3f7bd81912 MDL-42618 fix grade importing of whitespace idnumbers 2013-11-14 09:46:54 -05:00
Frederic Massart 7d31a2999b MDL-42853 course: Fix edit title icon margin on RTL 2013-11-14 10:59:35 +08:00
Frederic Massart e161a5a319 MDL-42853 frontpage: RTL alignment to match LTR 2013-11-14 10:59:23 +08:00
Mark Nelson d498c973c4 MDL-42884 core_user: fixed issue when deleting users with invalid emails throws invalidusername exception 2013-11-13 16:11:27 -08:00
Ankit Agarwal 7e1da23dfc MDL-41316 tool_spamcleaner: Fix sql queries
AS keyword is not allowed in sql qeries for table alias as Oracle doesn't support it
Thanks to Sara Cenni for suggesting the patch
2013-11-13 16:32:24 +08:00
Mark Nelson 8eb2ea83d2 MDL-42100 tool_capability: fixed incorrect links 2013-11-13 00:20:28 -08:00
sam marshall 40e8f0260c MDL-42815 Backup/restore: Error saving files - log messages unhelpful
This commit contains three changes in the three files:
1. A bug in the backup process meant that anything logged after a
   certain point did not appear in the on-screen display of the
   backup log, because the logger was serialised and deserialised
   but display code referred to the old version. Changed so that
   code retrieves new object.
2. Add more information to backup log when there is a missing file.
3. Add more information to restore log when there is a missing file
   (and remove existing code duplication of the current message).

The 'missing file' situation is one that generally shouldn't occur in
normal usage, but when it does happen, it is useful to have full
information about the file.
2013-11-11 17:15:32 +00:00
Andrew Nicols 3c2d450259 MDL-42774 JavaScript: Ensure that shifter cleans build directories before running 2013-11-11 18:29:35 +08:00
Frederic Massart 7c9753a713 MDL-42808 library: Google API was resetting the timezone 2013-11-11 15:25:00 +08:00
Jerome Mouneyrac 1f802c17c0 MDL-42184 bootstrapbase: popup should have no header 2013-11-08 11:58:56 +08:00
sam marshall db0f0097e8 MDL-42084 Unit tests: Remove unnecessary 'clear time limit change' lines 2013-11-06 16:40:04 +00:00
sam marshall 3ef7279f26 MDL-42084 Core: Change set_time_limit to core_php_time_limit::raise everywhere
Exceptions (places where set_time_limit is still left) are:

Third-party libraries:
  ADODB
  PHPMailer

Moodle core:
  PHPUnit - not relevant (CLI mode)
2013-11-06 16:40:01 +00:00
sam marshall 6edd90ccab MDL-42084 Backup: Update time limit to avoid regression, use new class 2013-11-06 16:39:59 +00:00
sam marshall 366b19a954 MDL-42084 Core: Create new static class for use instead of set_time_limit 2013-11-06 16:39:57 +00:00
Melissa Aitkin 02d1a0a575 MDL-32888 Grader report: Refined SESSION and api function use 2013-10-17 12:58:49 +11:00
Melissa Aitkin d1a4346f86 MDL-32888 Grader report: use SESSION object and DB functions 2013-10-17 12:58:49 +11:00
Melissa Aitkin d5f6d9ebef MDL-32888 Grader report: cater for suspended students 2013-10-17 12:58:49 +11:00
Melissa Aitkin 4187784925 MDL-32888 Grader report: refined user search with no reset 2013-10-17 12:58:49 +11:00
Melissa Aitkin cbe8e5b325 MDL-32888 Grader report: refined user search 2013-10-17 12:58:49 +11:00
Melissa Aitkin 8e4bf6cca6 MDL-32888 Grader report: added user search 2013-10-17 12:58:48 +11:00
Tim Gus 7a3723219c MDL-40939 tex filter: Changes to the TeX notation plugin
- Added configurable setting for path to mimetex binary
- Moved language strings from lang/en/admin.php to lang/en/filter_tex.php
- Config settings now stored in table config_plugins and retrieved
through get_config
- Added upgrade step to move TeX settings to the config_plugins table
and delete settings from the config table

AMOS BEGIN
  MOV [configconvertformat,core_admin],[configconvertformat,filter_tex]
  MOV [convertformat,core_admin],[convertformat,filter_tex]
  MOV [latexpreamble,core_admin],[latexpreamble,filter_tex]
  MOV [latexsettings,core_admin],[latexsettings,filter_tex]
  MOV [pathconvert,core_admin],[pathconvert,filter_tex]
  MOV [pathdvips,core_admin],[pathdvips,filter_tex]
  MOV [pathlatex,core_admin],[pathlatex,filter_tex]
AMOS END
2013-10-08 16:09:30 -04:00
Nadav Kavalerchik 962f6afb12 MDL-41891 Theme: Bullets and Numbering are missing from lists, When in RTL mode (theme/clean) 2013-09-19 12:06:25 +03:00
sam marshall 1f8662f6fb MDL-41446 Completion: Incorrectly marks complete when grade data present with no actual grade 2013-09-06 13:01:50 +01:00
Nadav Kavalerchik c9a2991b90 MDL-40716 - Activity labels are not visible in course completion report, when in RTL mode (theme/clean , bootstrap) 2013-07-24 08:47:25 +03:00
Nadav Kavalerchik 5d752f4bbc MDL-40674 - Main menu's "sub menu" should open to the left in RTL mode (theme/clean , bootstrapbase) 2013-07-19 13:59:45 +03:00
Daniel Neis 9452cae8dd MDL-23514 lang : Adding an option to force language of documentation links 2013-06-16 14:51:59 -03:00
Dongsheng Cai 7d18e32afc MDL-39759 REST SERVER HTTP response code
Moodle should response 403 if web service or REST protocol not enabled
2013-05-20 22:45:13 +10:00
Ashley Holman 3903fa21f7 MDL-39740 grade: Fix grade_item::add_idnumber strict type checking 2013-05-20 12:15:29 +09:30
David Scotson 8b79059480 MDL-39286 Remove link on My Courses settings heading 2013-04-22 16:17:29 +01:00
8107 changed files with 329053 additions and 196488 deletions
+2
View File
@@ -33,3 +33,5 @@ composer.lock
/behat.yml
*/yui/build/*/*-coverage.js
/lib/yuilib/*/build/*/*-coverage.js
# lib/yuilib/version/module/module-coverage.js
/lib/yuilib/*/*/*-coverage.js
+1 -1
View File
@@ -42,7 +42,7 @@
"sub": false,
"supernew": false,
"maxerr": 500,
"maxlen": 150,
"maxlen": 180,
"passfail": false,
"latedef": true
}
+2 -1
View File
@@ -1,4 +1,5 @@
{
"coverage": false,
"lint": "config"
"lint": "config",
"clean": true
}
+119
View File
@@ -0,0 +1,119 @@
<?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 script allows to do backup.
*
* @package core
* @subpackage cli
* @copyright 2013 Lancaster University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', 1);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require_once($CFG->libdir.'/clilib.php');
require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
// Now get cli options.
list($options, $unrecognized) = cli_get_params(array(
'courseid' => false,
'courseshortname' => '',
'destination' => '',
'help' => false,
), array('h' => 'help'));
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
if ($options['help'] || !($options['courseid'] || $options['courseshortname'])) {
$help = <<<EOL
Perform backup of the given course.
Options:
--courseid=INTEGER Course ID for backup.
--courseshortname=STRING Course shortname for backup.
--destination=STRING Path where to store backup file. If not set the backup
will be stored within the course backup file area.
-h, --help Print out this help.
Example:
\$sudo -u www-data /usr/bin/php admin/cli/backup.php --courseid=2 --destination=/moodle/backup/\n
EOL;
echo $help;
die;
}
$admin = get_admin();
if (!$admin) {
mtrace("Error: No admin account was found");
die;
}
// Do we need to store backup somewhere else?
$dir = rtrim($options['destination'], '/');
if (!empty($dir)) {
if (!file_exists($dir) || !is_dir($dir) || !is_writable($dir)) {
mtrace("Destination directory does not exists or not writable.");
die;
}
}
// Check that the course exists.
if ($options['courseid']) {
$course = $DB->get_record('course', array('id' => $options['courseid']), '*', MUST_EXIST);
} else if ($options['courseshortname']) {
$course = $DB->get_record('course', array('shortname' => $options['courseshortname']), '*', MUST_EXIST);
}
cli_heading('Performing backup...');
$bc = new backup_controller(backup::TYPE_1COURSE, $course->id, backup::FORMAT_MOODLE,
backup::INTERACTIVE_YES, backup::MODE_GENERAL, $admin->id);
// Set the default filename.
$format = $bc->get_format();
$type = $bc->get_type();
$id = $bc->get_id();
$users = $bc->get_plan()->get_setting('users')->get_value();
$anonymised = $bc->get_plan()->get_setting('anonymize')->get_value();
$filename = backup_plan_dbops::get_default_backup_filename($format, $type, $id, $users, $anonymised);
$bc->get_plan()->get_setting('filename')->set_value($filename);
// Execution.
$bc->finish_ui();
$bc->execute_plan();
$results = $bc->get_results();
$file = $results['backup_destination']; // May be empty if file already moved to target location.
// Do we need to store backup somewhere else?
if (!empty($dir)) {
if ($file) {
mtrace("Writing " . $dir.'/'.$filename);
if ($file->copy_content_to($dir.'/'.$filename)) {
$file->delete();
mtrace("Backup completed.");
} else {
mtrace("Destination directory does not exist or is not writable. Leaving the backup in the course backup file area.");
}
}
} else {
mtrace("Backup completed, the new file is listed in the backup area of the given course");
}
$bc->destroy();
exit(0);
+2 -2
View File
@@ -142,10 +142,10 @@ define('PHPUNIT_TEST', false);
define('IGNORE_COMPONENT_CACHE', true);
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.3.3") < 0) {
if (version_compare(phpversion(), "5.4.4") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
fwrite(STDERR, "Moodle 2.5 or later requires at least PHP 5.3.3 (currently using version $phpversion).\n");
fwrite(STDERR, "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
+2 -2
View File
@@ -62,10 +62,10 @@ Example:
";
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.3.3") < 0) {
if (version_compare(phpversion(), "5.4.4") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
fwrite(STDERR, "Moodle 2.5 or later requires at least PHP 5.3.3 (currently using version $phpversion).\n");
fwrite(STDERR, "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
+1 -1
View File
@@ -108,7 +108,7 @@ switch ($action) {
echo $OUTPUT->header();
// This may take a long time.
set_time_limit(0);
core_php_time_limit::raise();
// Disable plugin to prevent concurrent cron execution.
unset($enabled[$enrol]);
+123
View File
@@ -1013,4 +1013,127 @@
</PHP_SETTING>
</PHP_SETTINGS>
</MOODLE>
<MOODLE version="2.7" requires="2.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mariadb" version="5.5.31" />
<VENDOR name="mysql" version="5.5.31" />
<VENDOR name="postgres" version="9.1" />
<VENDOR name="mssql" version="10.0" />
<VENDOR name="oracle" version="10.2" />
</DATABASE>
<PHP version="5.4.4" level="required">
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
<FEEDBACK>
<ON_CHECK message="mbstringrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="optional">
<FEEDBACK>
<ON_CHECK message="opensslrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zlib" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="required">
<FEEDBACK>
<ON_ERROR message="gdrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="optional">
<FEEDBACK>
<ON_CHECK message="intlrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="96M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="opcache.enable" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="opcacherecommended" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
<FEEDBACK>
<ON_ERROR message="quizattemptsupgradedmessage" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
</COMPATIBILITY_MATRIX>
-151
View File
@@ -1,151 +0,0 @@
<?php
/** This expects the output from a command like
* clamscan -r --infected --no-summary <files> 2>&1 | php -d error_log=/path/to/log thisfile.php
* also it's important that the output of clamscan prints the FULL PATH to each infected file, so use absolute paths for area to scan
* also it should be run as root, or whatever the webserver runs as so that it has the right permissions in the quarantine dir etc.
* php -d error_log=/path/to/log thisfile.php will override the default error log for php cli, which is stderr, so if you want this script to just print stuff out, use php thisfile.php instead.
*/
die('TODO: MDL-19380');
$fd = fopen('php://stdin','r');
if (!$fd) {
exit();
}
require_once(dirname(dirname(__FILE__)).'/config.php');
require_once($CFG->libdir.'/eventslib.php');
require_once($CFG->dirroot.'/lib/uploadlib.php'); // contains virus handling stuff.
$site = get_site();
while(!feof($fd)) {
$entry = fgets($fd);
if (strlen(trim($entry)) == 0) {
continue;
}
if (!$file = validate_line($entry)) {
continue;
}
$bits = explode('/',$file);
$a->filename = $bits[count($bits)-1];
if (!$log = $DB->get_record("log", array("module"=>"upload", "info"=>$file, "action"=>"upload"))) {
$a->action = clam_handle_infected_file($file,0,false);
clam_replace_infected_file($file);
notify_admins_unknown($file,$a);
continue;
}
$action = clam_handle_infected_file($file,$log->userid,true);
clam_replace_infected_file($file);
$ctxselect = ', ' . context_helper::get_preload_record_columns_sql('ctx');
$ctxjoin = "LEFT JOIN {context} ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = :contextlevel)";
$sql = "SELECT c.id, c.fullname $ctxselect FROM {course} c $ctxjoin WHERE c.id = :courseid";
$course = $DB->get_record_sql($sql, array('courseid' => $log->course, 'contextlevel' => CONTEXT_COURSE));
context_helper::preload_from_record($course);
$user = $DB->get_record("user", array("id"=>$log->userid));
$subject = get_string('virusfoundsubject','moodle',format_string($site->fullname));
$a->date = userdate($log->time);
$a->action = $action;
$a->course = format_string($course->fullname, true, array('context' => context_course::instance($course->id)));
$a->user = fullname($user);
notify_user($user,$subject,$a);
notify_admins($user,$subject,$a);
}
fclose($fd);
function notify_user($user,$subject,$a) {
if (!$user) {
return false;
}
$body = get_string('virusfoundlater','moodle',$a);
$eventdata = new stdClass();
$eventdata->modulename = 'moodle';
$eventdata->userfrom = get_admin();
$eventdata->userto = $user;
$eventdata->subject = $subject;
$eventdata->fullmessage = $body;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = '';
$eventdata->smallmessage = '';
message_send($eventdata);
}
function notify_admins($user,$subject,$a) {
$admins = get_admins();
$body = get_string('virusfoundlateradmin','moodle',$a);
foreach ($admins as $admin) {
$eventdata = new stdClass();
$eventdata->modulename = 'moodle';
$eventdata->userfrom = get_admin();
$eventdata->userto = $admin;
$eventdata->subject = $subject;
$eventdata->fullmessage = $body;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = '';
$eventdata->smallmessage = '';
message_send($eventdata);
}
}
function notify_admins_unknown($file,$a) {
global $site;
$admins = get_admins();
$subject = get_string('virusfoundsubject','moodle',format_string($site->fullname));
$body = get_string('virusfoundlateradminnolog','moodle',$a);
foreach ($admins as $admin) {
$eventdata = new stdClass();
$eventdata->modulename = 'moodle';
$eventdata->userfrom = get_admin();
$eventdata->userto = $admin;
$eventdata->subject = $subject;
$eventdata->fullmessage = $body;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = '';
$eventdata->smallmessage = '';
message_send($eventdata);
}
}
function validate_line($line) {
global $CFG;
if (strpos($line,"FOUND") === false) {
return false;
}
$index = strpos($line,":");
$file = substr($line,0,$index);
if (!(strpos($file,$CFG->dataroot) === false)) {
if (!file_exists($file)) {
return false;
}
}
else {
if ($file{0} == "/") {
$file = $CFG->dataroot.$file;
}
else {
$file = $CFG->dataroot."/".$file;
}
if (!file_exists($file)) {
return false;
}
}
// clean up
$file = preg_replace('/\.\//','/',$file);
$file = preg_replace('/\/\//','/',$file);
return $file;
}
+77 -57
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.3.3') < 0) {
if (version_compare(phpversion(), '5.4.4') < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it to later place
echo "Moodle 2.5 or later requires at least PHP 5.3.3 (currently using version $phpversion).<br />";
echo "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).<br />";
echo "Please upgrade your server software or install older Moodle version.";
die();
}
@@ -45,9 +45,18 @@ if (!function_exists('iconv')) {
die();
}
// Make sure php5-json is available.
if (!function_exists('json_encode') || !function_exists('json_decode')) {
// This also shouldn't happen.
echo 'Moodle requires the json PHP extension. Please install or enable the json extension.';
die();
}
define('NO_OUTPUT_BUFFERING', true);
if (empty($_GET['cache']) and empty($_POST['cache']) and empty($_GET['sesskey']) and empty($_POST['sesskey'])) {
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']))) {
// Prevent caching at all cost when visiting this page directly,
// we redirect to self once we known no upgrades are necessary.
// Note: $_GET and $_POST are used here intentionally because our param cleaning is not loaded yet.
@@ -90,9 +99,7 @@ $newaddonreq = optional_param('installaddonrequest', null, PARAM_RAW);
// Set up PAGE.
$url = new moodle_url('/admin/index.php');
if ($cache) {
$url->param('cache', 1);
}
$url->param('cache', $cache);
$PAGE->set_url($url);
unset($url);
@@ -119,10 +126,6 @@ if (ini_get_bool('session.auto_start')) {
print_error('phpvaroff', 'debug', '', (object)array('name'=>'session.auto_start', 'link'=>$documentationlink));
}
if (ini_get_bool('magic_quotes_runtime')) {
print_error('phpvaroff', 'debug', '', (object)array('name'=>'magic_quotes_runtime', 'link'=>$documentationlink));
}
if (!ini_get_bool('file_uploads')) {
print_error('phpvaron', 'debug', '', (object)array('name'=>'file_uploads', 'link'=>$documentationlink));
}
@@ -234,6 +237,13 @@ if (!core_tables_exist()) {
// Check version of Moodle code on disk compared with database
// and upgrade if possible.
if (!$cache) {
// Do not try to do anything fancy in non-cached mode,
// this prevents themes from fetching data from non-existent tables.
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
}
$stradministration = get_string('administration');
$PAGE->set_context(context_system::instance());
@@ -264,15 +274,13 @@ if (!$cache and $version > $CFG->version) { // upgrade
// We then purge the regular caches.
purge_all_caches();
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
if (upgrade_stale_php_files_present()) {
$PAGE->set_title($stradministration);
$PAGE->set_cacheable(false);
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_stale_php_files_page();
die();
}
@@ -287,8 +295,6 @@ if (!$cache and $version > $CFG->version) { // upgrade
$PAGE->set_heading($strdatabasechecking);
$PAGE->set_cacheable(false);
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_confirm_page($a->newversion, $maturity, $testsite);
die();
@@ -302,8 +308,6 @@ if (!$cache and $version > $CFG->version) { // upgrade
$PAGE->set_heading($strcurrentrelease);
$PAGE->set_cacheable(false);
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_environment_page($release, $envstatus, $environment_results);
die();
@@ -315,23 +319,13 @@ 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));
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
// check plugin dependencies first
$failed = array();
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
echo $output->unsatisfied_dependencies_page($version, $failed, $reloadurl);
die();
}
unset($failed);
$reloadurl = new moodle_url('/admin/index.php', array('confirmupgrade' => 1, 'confirmrelease' => 1, 'cache' => 0));
if ($fetchupdates) {
// no sesskey support guaranteed here
if (empty($CFG->disableupdatenotifications)) {
\core\update\checker::instance()->fetch();
// No sesskey support guaranteed here, because sessions might not work yet.
$updateschecker = \core\update\checker::instance();
if ($updateschecker->enabled()) {
$updateschecker->fetch();
}
redirect($reloadurl);
}
@@ -342,6 +336,7 @@ if (!$cache and $version > $CFG->version) { // upgrade
$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();
}
@@ -349,11 +344,20 @@ if (!$cache and $version > $CFG->version) { // upgrade
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)));
new moodle_url('/admin/index.php', array('confirmupgrade'=>1, 'confirmrelease'=>1, 'confirmplugincheck'=>1, 'cache'=>0)));
die();
} else {
// Launch main upgrade
// 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);
die();
}
unset($failed);
// Launch main upgrade.
upgrade_core($version, true);
}
} else if ($version < $CFG->version) {
@@ -373,51 +377,57 @@ if (!$cache and $branch <> $CFG->branch) { // Update the branch
if (!$cache and moodle_needs_upgrading()) {
if (!$PAGE->headerprinted) {
// means core upgrade or installation was not already done
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
if (!$confirmplugins) {
$strplugincheck = get_string('plugincheck');
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
$PAGE->navbar->add($strplugincheck);
$PAGE->set_title($strplugincheck);
$PAGE->set_heading($strplugincheck);
$PAGE->set_cacheable(false);
if ($fetchupdates) {
// no sesskey support guaranteed here
\core\update\checker::instance()->fetch();
require_sesskey();
$updateschecker = \core\update\checker::instance();
if ($updateschecker->enabled()) {
$updateschecker->fetch();
}
redirect($PAGE->url);
}
$output = $PAGE->get_renderer('core', 'admin');
$deployer = \core\update\deployer::instance();
if ($deployer->enabled()) {
$deployer->initialize($PAGE->url, $PAGE->url);
$deploydata = $deployer->submitted_data();
if (!empty($deploydata)) {
require_sesskey();
echo $output->upgrade_plugin_confirm_deploy_page($deployer, $deploydata);
die();
}
}
// check plugin dependencies first
$failed = array();
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
echo $output->unsatisfied_dependencies_page($version, $failed, $PAGE->url);
die();
}
unset($failed);
// dependencies check passed, let's rock!
// Show plugins info.
echo $output->upgrade_plugin_check_page(core_plugin_manager::instance(), \core\update\checker::instance(),
$version, $showallplugins,
new moodle_url($PAGE->url),
new moodle_url('/admin/index.php', array('confirmplugincheck'=>1)));
new moodle_url('/admin/index.php', 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)) {
$reloadurl = new moodle_url('/admin/index.php', array('cache' => 0));
echo $output->unsatisfied_dependencies_page($version, $failed, $reloadurl);
die();
}
unset($failed);
}
// install/upgrade all plugins and other parts
upgrade_noncore(true);
}
@@ -477,6 +487,17 @@ if (during_initial_install()) {
upgrade_finished('upgradesettings.php');
}
if (has_capability('moodle/site:config', context_system::instance())) {
if ($fetchupdates) {
require_sesskey();
$updateschecker = \core\update\checker::instance();
if ($updateschecker->enabled()) {
$updateschecker->fetch();
}
redirect(new moodle_url('/admin/index.php', array('cache' => 0)));
}
}
// Now we can be sure everything was upgraded and caches work fine,
// redirect if necessary to make sure caching is enabled.
if (!$cache) {
@@ -485,6 +506,11 @@ if (!$cache) {
// Check for valid admin user - no guest autologin
require_login(0, false);
if (isguestuser()) {
// Login as real user!
$SESSION->wantsurl = (string)new moodle_url('/admin/index.php');
redirect(get_login_url());
}
$context = context_system::instance();
require_capability('moodle/site:config', $context);
@@ -564,12 +590,6 @@ $registered = $DB->count_records('registration_hubs', array('huburl' => HUB_MOOD
admin_externalpage_setup('adminnotifications');
if ($fetchupdates) {
require_sesskey();
$updateschecker->fetch();
redirect(new moodle_url('/admin/index.php'));
}
$output = $PAGE->get_renderer('core', 'admin');
echo $output->admin_notifications_page($maturity, $insecuredataroot, $errorsdisplayed,
$cronoverdue, $dbproblems, $maintenancemode, $availableupdates, $availableupdatesfetch, $buggyiconvnomb,
+7 -5
View File
@@ -16,8 +16,6 @@ require_login();
admin_externalpage_setup('ssoaccesscontrol');
echo $OUTPUT->header();
if (!extension_loaded('openssl')) {
print_error('requiresopenssl', 'mnet');
}
@@ -65,9 +63,11 @@ if (!empty($action) and confirm_sesskey()) {
if (mnet_update_sso_access_control($idrec->username, $idrec->mnet_host_id, $accessctrl)) {
if ($accessctrl == 'allow') {
redirect('access_control.php', get_string('ssl_acl_allow','mnet', array('uset'=>$idrec->username, 'host'=>$mnethosts[$idrec->mnet_host_id])));
} elseif ($accessctrl == 'deny') {
redirect('access_control.php', get_string('ssl_acl_deny','mnet', array('user'=>$idrec->username, 'host'=>$mnethosts[$idrec->mnet_host_id])));
redirect('access_control.php', get_string('ssl_acl_allow','mnet', array('user' => $idrec->username,
'host' => $mnethosts[$idrec->mnet_host_id])));
} else if ($accessctrl == 'deny') {
redirect('access_control.php', get_string('ssl_acl_deny','mnet', array('user' => $idrec->username,
'host' => $mnethosts[$idrec->mnet_host_id])));
}
}
break;
@@ -118,6 +118,8 @@ if ($form = data_submitted() and confirm_sesskey()) {
exit;
}
echo $OUTPUT->header();
// Explain
echo $OUTPUT->box(get_string('ssoacldescr','mnet'));
// Are the needed bits enabled?
+40 -25
View File
@@ -140,7 +140,7 @@ class core_admin_renderer extends plugin_renderer_base {
public function upgrade_confirm_page($strnewversion, $maturity, $testsite) {
$output = '';
$continueurl = new moodle_url('/admin/index.php', array('confirmupgrade' => 1));
$continueurl = new moodle_url('/admin/index.php', array('confirmupgrade' => 1, 'cache' => 0));
$continue = new single_button($continueurl, get_string('continue'), 'get');
$cancelurl = new moodle_url('/admin/index.php');
@@ -170,7 +170,7 @@ class core_admin_renderer extends plugin_renderer_base {
$output .= $this->environment_check_table($envstatus, $environment_results);
if (!$envstatus) {
$output .= $this->upgrade_reload(new moodle_url('/admin/index.php'), array('confirmupgrade' => 1));
$output .= $this->upgrade_reload(new moodle_url('/admin/index.php'), array('confirmupgrade' => 1, 'cache' => 0));
} else {
$output .= $this->notification(get_string('environmentok', 'admin'), 'notifysuccess');
@@ -179,7 +179,7 @@ class core_admin_renderer extends plugin_renderer_base {
$output .= $this->box(get_string('langpackwillbeupdated', 'admin'), 'generalbox', 'notice');
}
$output .= $this->continue_button(new moodle_url('/admin/index.php', array('confirmupgrade' => 1, 'confirmrelease' => 1)));
$output .= $this->continue_button(new moodle_url('/admin/index.php', array('confirmupgrade' => 1, 'confirmrelease' => 1, 'cache' => 0)));
}
$output .= $this->footer();
@@ -562,11 +562,23 @@ class core_admin_renderer extends plugin_renderer_base {
* @return string HTML to output.
*/
public function cron_overdue_warning($cronoverdue) {
global $CFG;
if (!$cronoverdue) {
return '';
}
return $this->warning(get_string('cronwarning', 'admin') . '&nbsp;' .
if (empty($CFG->cronclionly)) {
$url = new moodle_url('/admin/cron.php');
if (!empty($CFG->cronremotepassword)) {
$url = new moodle_url('/admin/cron.php', array('password' => $CFG->cronremotepassword));
}
return $this->warning(get_string('cronwarning', 'admin', $url->out()) . '&nbsp;' .
$this->help_icon('cron', 'admin'));
}
// $CFG->cronclionly is not empty: cron can run only from CLI.
return $this->warning(get_string('cronwarningcli', 'admin') . '&nbsp;' .
$this->help_icon('cron', 'admin'));
}
@@ -610,10 +622,10 @@ class core_admin_renderer extends plugin_renderer_base {
}
$maturitylevel = get_string('maturity' . $maturity, 'admin');
return $this->box(
return $this->warning(
$this->container(get_string('maturitycorewarning', 'admin', $maturitylevel)) .
$this->container($this->doc_link('admin/versions', get_string('morehelp'))),
'generalbox maturitywarning');
'error');
}
/*
@@ -628,10 +640,8 @@ class core_admin_renderer extends plugin_renderer_base {
return '';
}
return $this->box(
$this->container(get_string('testsiteupgradewarning', 'admin', $testsite)),
'generalbox testsitewarning'
);
$warning = (get_string('testsiteupgradewarning', 'admin', $testsite));
return $this->warning($warning, 'error');
}
/**
@@ -663,11 +673,16 @@ class core_admin_renderer extends plugin_renderer_base {
return ''; // No worries.
}
$level = 'warning';
if ($maturity == MATURITY_ALPHA) {
$level = 'error';
}
$maturitylevel = get_string('maturity' . $maturity, 'admin');
return $this->box(
get_string('maturitycoreinfo', 'admin', $maturitylevel) . ' ' .
$this->doc_link('admin/versions', get_string('morehelp')),
'generalbox adminwarning maturityinfo maturity'.$maturity);
$warningtext = get_string('maturitycoreinfo', 'admin', $maturitylevel);
$warningtext .= ' ' . $this->doc_link('admin/versions', get_string('morehelp'));
return $this->warning($warningtext, $level);
}
/**
@@ -682,7 +697,7 @@ class core_admin_renderer extends plugin_renderer_base {
*/
protected function available_updates($updates, $fetch) {
$updateinfo = $this->box_start('generalbox adminwarning availableupdatesinfo');
$updateinfo = '';
$someupdateavailable = false;
if (is_array($updates)) {
if (is_array($updates['core'])) {
@@ -711,7 +726,7 @@ class core_admin_renderer extends plugin_renderer_base {
}
$updateinfo .= $this->container_start('checkforupdates');
$fetchurl = new moodle_url('/admin/index.php', array('fetchupdates' => 1, 'sesskey' => sesskey(), 'cache' => 1));
$fetchurl = new moodle_url('/admin/index.php', array('fetchupdates' => 1, 'sesskey' => sesskey(), 'cache' => 0));
$updateinfo .= $this->single_button($fetchurl, get_string('checkforupdates', 'core_plugin'));
if ($fetch) {
$updateinfo .= $this->container(get_string('checkforupdateslast', 'core_plugin',
@@ -719,9 +734,7 @@ class core_admin_renderer extends plugin_renderer_base {
}
$updateinfo .= $this->container_end();
$updateinfo .= $this->box_end();
return $updateinfo;
return $this->warning($updateinfo);
}
/**
@@ -962,7 +975,7 @@ class core_admin_renderer extends plugin_renderer_base {
$out .= $this->output->heading(get_string('nonehighlighted', 'core_plugin'));
if (empty($options['full'])) {
$out .= html_writer::link(new moodle_url('/admin/index.php',
array('confirmupgrade' => 1, 'confirmrelease' => 1, 'showallplugins' => 1)),
array('confirmupgrade' => 1, 'confirmrelease' => 1, 'showallplugins' => 1, 'cache' => 0)),
get_string('nonehighlightedinfo', 'core_plugin'));
}
$out .= $this->output->container_end();
@@ -972,11 +985,11 @@ class core_admin_renderer extends plugin_renderer_base {
$out .= $this->output->heading(get_string('somehighlighted', 'core_plugin', $sumofhighlighted));
if (empty($options['full'])) {
$out .= html_writer::link(new moodle_url('/admin/index.php',
array('confirmupgrade' => 1, 'confirmrelease' => 1, 'showallplugins' => 1)),
array('confirmupgrade' => 1, 'confirmrelease' => 1, 'showallplugins' => 1, 'cache' => 0)),
get_string('somehighlightedinfo', 'core_plugin'));
} else {
$out .= html_writer::link(new moodle_url('/admin/index.php',
array('confirmupgrade' => 1, 'confirmrelease' => 1, 'showallplugins' => 0)),
array('confirmupgrade' => 1, 'confirmrelease' => 1, 'showallplugins' => 0, 'cache' => 0)),
get_string('somehighlightedonly', 'core_plugin'));
}
$out .= $this->output->container_end();
@@ -1176,13 +1189,14 @@ class core_admin_renderer extends plugin_renderer_base {
get_string('displayname', 'core_plugin'),
get_string('source', 'core_plugin'),
get_string('version', 'core_plugin'),
get_string('release', 'core_plugin'),
get_string('availability', 'core_plugin'),
get_string('actions', 'core_plugin'),
get_string('notes','core_plugin'),
);
$table->headspan = array(1, 1, 1, 1, 2, 1);
$table->headspan = array(1, 1, 1, 1, 1, 2, 1);
$table->colclasses = array(
'pluginname', 'source', 'version', 'availability', 'settings', 'uninstall', 'notes'
'pluginname', 'source', 'version', 'release', 'availability', 'settings', 'uninstall', 'notes'
);
foreach ($plugininfo as $type => $plugins) {
@@ -1238,6 +1252,7 @@ class core_admin_renderer extends plugin_renderer_base {
}
$version = new html_table_cell($plugin->versiondb);
$release = new html_table_cell($plugin->release);
$isenabled = $plugin->is_enabled();
if (is_null($isenabled)) {
@@ -1283,7 +1298,7 @@ class core_admin_renderer extends plugin_renderer_base {
$notes = new html_table_cell($requiredby.$updateinfo);
$row->cells = array(
$pluginname, $source, $version, $availability, $settings, $uninstall, $notes
$pluginname, $source, $version, $release, $availability, $settings, $uninstall, $notes
);
$table->data[] = $row;
}
+15 -3
View File
@@ -41,8 +41,9 @@ echo $OUTPUT->heading(get_string('reports'));
$struninstall = get_string('uninstallplugin', 'core_admin');
$table = new flexible_table('reportplugins_administration_table');
$table->define_columns(array('name', 'version', 'uninstall'));
$table->define_headers(array(get_string('plugin'), get_string('version'), $struninstall));
$table->define_columns(array('name', 'logstoressupported', 'version', 'uninstall'));
$table->define_headers(array(get_string('plugin'), get_string('logstoressupported', 'admin'), get_string('version'),
$struninstall));
$table->define_baseurl($PAGE->url);
$table->set_attribute('id', 'reportplugins');
$table->set_attribute('class', 'admintable generaltable');
@@ -71,12 +72,23 @@ foreach ($installed as $config) {
}
}
$logmanager = get_log_manager();
foreach ($plugins as $plugin => $name) {
$uninstall = '';
if ($uninstallurl = core_plugin_manager::instance()->get_uninstall_url('report_'.$plugin, 'manage')) {
$uninstall = html_writer::link($uninstallurl, $struninstall);
}
$stores = $logmanager->get_supported_logstores('report_' . $plugin);
if ($stores === false) {
$supportedstores = get_string('logstorenotrequired', 'admin');
} else if (!empty($stores)) {
$supportedstores = implode(', ', $stores);
} else {
$supportedstores = get_string('nosupportedlogstore', 'admin');;
}
if (!isset($versions[$plugin])) {
if (file_exists("$CFG->dirroot/report/$plugin/version.php")) {
// not installed yet
@@ -96,7 +108,7 @@ foreach ($plugins as $plugin => $name) {
}
}
$table->add_data(array($name, $version, $uninstall));
$table->add_data(array($name, $supportedstores, $version, $uninstall));
}
$table->print_html();
+18 -6
View File
@@ -2,7 +2,12 @@
// This file defines settingpages and externalpages under the "appearance" category
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$capabilities = array(
'moodle/my:configsyspages',
'moodle/tag:manage'
);
if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('appearance', new admin_category('themes', new lang_string('themes')));
// "themesettings" settingpage
@@ -36,8 +41,11 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
}
// calendar
// Calendar settings.
$temp = new admin_settingpage('calendar', new lang_string('calendarsettings','admin'));
$temp->add(new admin_setting_configselect('calendartype', new lang_string('calendartype', 'admin'),
new lang_string('calendartype_desc', 'admin'), 'gregorian', \core_calendar\type_factory::get_list_of_calendar_types()));
$temp->add(new admin_setting_special_adminseesall());
//this is hacky because we do not want to include the stuff from calendar/lib.php
$temp->add(new admin_setting_configselect('calendar_site_timeformat', new lang_string('pref_timeformat', 'calendar'),
@@ -183,13 +191,18 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "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));
$ltemp = array('' => get_string('forceno'));
$ltemp += get_string_manager()->get_list_of_translations(true);
$temp->add(new admin_setting_configselect('doclang', get_string('doclang', 'admin'), get_string('configdoclang', 'admin'), '', $ltemp));
$temp->add(new admin_setting_configcheckbox('doctonewwindow', new lang_string('doctonewwindow', 'admin'), new lang_string('configdoctonewwindow', 'admin'), 0));
$ADMIN->add('appearance', $temp);
$temp = new admin_externalpage('mypage', new lang_string('mypage', 'admin'), $CFG->wwwroot . '/my/indexsys.php');
$temp = new admin_externalpage('mypage', new lang_string('mypage', 'admin'), $CFG->wwwroot . '/my/indexsys.php',
'moodle/my:configsyspages');
$ADMIN->add('appearance', $temp);
$temp = new admin_externalpage('profilepage', new lang_string('myprofile', 'admin'), $CFG->wwwroot . '/user/profilesys.php');
$temp = new admin_externalpage('profilepage', new lang_string('myprofile', 'admin'), $CFG->wwwroot . '/user/profilesys.php',
'moodle/my:configsyspages');
$ADMIN->add('appearance', $temp);
// coursecontact is the person responsible for course - usually manages enrolments, receives notification, etc.
@@ -207,7 +220,6 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('appearance', $temp);
$temp = new admin_settingpage('ajax', new lang_string('ajaxuse'));
$temp->add(new admin_setting_configcheckbox('enableajax', new lang_string('enableajax', 'admin'), new lang_string('configenableajax', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('useexternalyui', new lang_string('useexternalyui', 'admin'), new lang_string('configuseexternalyui', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('yuicomboloading', new lang_string('yuicomboloading', 'admin'), new lang_string('configyuicomboloading', 'admin'), 1));
$setting = new admin_setting_configcheckbox('cachejs', new lang_string('cachejs', 'admin'), new lang_string('cachejs_help', 'admin'), 1);
@@ -219,7 +231,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('appearance', $temp);
// link to tag management interface
$ADMIN->add('appearance', new admin_externalpage('managetags', new lang_string('managetags', 'tag'), "$CFG->wwwroot/tag/manage.php"));
$ADMIN->add('appearance', new admin_externalpage('managetags', new lang_string('managetags', 'tag'), $CFG->wwwroot.'/tag/manage.php', 'moodle/tag:manage'));
$temp = new admin_settingpage('additionalhtml', new lang_string('additionalhtml', 'admin'));
$temp->add(new admin_setting_heading('additionalhtml_heading', new lang_string('additionalhtml_heading', 'admin'), new lang_string('additionalhtml_desc', 'admin')));
+8 -1
View File
@@ -26,7 +26,8 @@ $capabilities = array(
'moodle/backup:backupcourse',
'moodle/category:manage',
'moodle/course:create',
'moodle/site:approvecourse'
'moodle/site:approvecourse',
'moodle/restore:restorecourse'
);
if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
// Speedup for non-admins, add all caps used on this page.
@@ -42,6 +43,12 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
array('moodle/category:manage')
)
);
$ADMIN->add('courses',
new admin_externalpage('restorecourse', new lang_string('restorecourse', 'admin'),
new moodle_url('/backup/restorefile.php', array('contextid' => context_system::instance()->id)),
array('moodle/course:create')
)
);
// Course Default Settings Page.
// NOTE: these settings must be applied after all other settings because they depend on them.
+39 -44
View File
@@ -27,9 +27,6 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('enabletgzbackups',
new lang_string('enabletgzbackups', 'admin'),
new lang_string('enabletgzbackups_desc', 'admin'), 0));
$temp->add(new admin_setting_php_extension_enabled('zlibenabled',
get_string('zlibenabled', 'admin'),
get_string('enabletgzbackups_nozlib', 'admin'), 'zlib'));
$ADMIN->add('experimental', $temp);
@@ -44,48 +41,46 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('debugpageinfo', new lang_string('debugpageinfo', 'admin'), new lang_string('configdebugpageinfo', 'admin'), 0));
$ADMIN->add('development', $temp);
// "profiling" settingpage (conditionally if the 'xhprof' extension is available only)
if (extension_loaded('xhprof') && function_exists('xhprof_enable')) {
$temp = new admin_settingpage('profiling', new lang_string('profiling', 'admin'));
// Main profiling switch
$temp->add(new admin_setting_configcheckbox('profilingenabled', new lang_string('profilingenabled', 'admin'), new lang_string('profilingenabled_help', 'admin'), false));
// List of URLs that will be automatically profiled
$temp->add(new admin_setting_configtextarea('profilingincluded', new lang_string('profilingincluded', 'admin'), new lang_string('profilingincluded_help', 'admin'), ''));
// List of URLs that won't be profiled ever
$temp->add(new admin_setting_configtextarea('profilingexcluded', new lang_string('profilingexcluded', 'admin'), new lang_string('profilingexcluded_help', 'admin'), ''));
// Allow random profiling each XX requests
$temp->add(new admin_setting_configtext('profilingautofrec', new lang_string('profilingautofrec', 'admin'), new lang_string('profilingautofrec_help', 'admin'), 0, PARAM_INT));
// Allow PROFILEME/DONTPROFILEME GPC
$temp->add(new admin_setting_configcheckbox('profilingallowme', new lang_string('profilingallowme', 'admin'), new lang_string('profilingallowme_help', 'admin'), false));
// Allow PROFILEALL/PROFILEALLSTOP GPC
$temp->add(new admin_setting_configcheckbox('profilingallowall', new lang_string('profilingallowall', 'admin'), new lang_string('profilingallowall_help', 'admin'), false));
// TODO: Allow to skip PHP functions (XHPROF_FLAGS_NO_BUILTINS)
// TODO: Allow to skip call_user functions (ignored_functions array)
// Specify the life time (in minutes) of profiling runs
$temp->add(new admin_setting_configselect('profilinglifetime', new lang_string('profilinglifetime', 'admin'), new lang_string('profilinglifetime_help', 'admin'), 24*60, array(
0 => new lang_string('neverdeleteruns', 'admin'),
30*24*60 => new lang_string('numdays', '', 30),
15*24*60 => new lang_string('numdays', '', 15),
7*24*60 => new lang_string('numdays', '', 7),
4*24*60 => new lang_string('numdays', '', 4),
2*24*60 => new lang_string('numdays', '', 2),
24*60 => new lang_string('numhours', '', 24),
16*80 => new lang_string('numhours', '', 16),
8*60 => new lang_string('numhours', '', 8),
4*60 => new lang_string('numhours', '', 4),
2*60 => new lang_string('numhours', '', 2),
60 => new lang_string('numminutes', '', 60),
30 => new lang_string('numminutes', '', 30),
15 => new lang_string('numminutes', '', 15))));
// Define the prefix to be added to imported profiling runs.
$temp->add(new admin_setting_configtext('profilingimportprefix',
new lang_string('profilingimportprefix', 'admin'),
new lang_string('profilingimportprefix_desc', 'admin'), '(I)', PARAM_TAG, 10));
// Add the 'profiling' page to admin block
$ADMIN->add('development', $temp);
}
// "Profiling" settingpage (conditionally if the 'xhprof' extension is available only).
$xhprofenabled = extension_loaded('xhprof') && function_exists('xhprof_enable');
$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));
// List of URLs that will be automatically profiled.
$temp->add(new admin_setting_configtextarea('profilingincluded', new lang_string('profilingincluded', 'admin'), new lang_string('profilingincluded_help', 'admin'), ''));
// List of URLs that won't be profiled ever.
$temp->add(new admin_setting_configtextarea('profilingexcluded', new lang_string('profilingexcluded', 'admin'), new lang_string('profilingexcluded_help', 'admin'), ''));
// Allow random profiling each XX requests.
$temp->add(new admin_setting_configtext('profilingautofrec', new lang_string('profilingautofrec', 'admin'), new lang_string('profilingautofrec_help', 'admin'), 0, PARAM_INT));
// Allow PROFILEME/DONTPROFILEME GPC.
$temp->add(new admin_setting_configcheckbox('profilingallowme', new lang_string('profilingallowme', 'admin'), new lang_string('profilingallowme_help', 'admin'), false));
// Allow PROFILEALL/PROFILEALLSTOP GPC.
$temp->add(new admin_setting_configcheckbox('profilingallowall', new lang_string('profilingallowall', 'admin'), new lang_string('profilingallowall_help', 'admin'), false));
// TODO: Allow to skip PHP functions (XHPROF_FLAGS_NO_BUILTINS)
// TODO: Allow to skip call_user functions (ignored_functions array)
// Specify the life time (in minutes) of profiling runs.
$temp->add(new admin_setting_configselect('profilinglifetime', new lang_string('profilinglifetime', 'admin'), new lang_string('profilinglifetime_help', 'admin'), 24*60, array(
0 => new lang_string('neverdeleteruns', 'admin'),
30*24*60 => new lang_string('numdays', '', 30),
15*24*60 => new lang_string('numdays', '', 15),
7*24*60 => new lang_string('numdays', '', 7),
4*24*60 => new lang_string('numdays', '', 4),
2*24*60 => new lang_string('numdays', '', 2),
24*60 => new lang_string('numhours', '', 24),
16*80 => new lang_string('numhours', '', 16),
8*60 => new lang_string('numhours', '', 8),
4*60 => new lang_string('numhours', '', 4),
2*60 => new lang_string('numhours', '', 2),
60 => new lang_string('numminutes', '', 60),
30 => new lang_string('numminutes', '', 30),
15 => new lang_string('numminutes', '', 15))));
// Define the prefix to be added to imported profiling runs.
$temp->add(new admin_setting_configtext('profilingimportprefix',
new lang_string('profilingimportprefix', 'admin'),
new lang_string('profilingimportprefix_desc', 'admin'), '(I)', PARAM_TAG, 10));
// Add the 'profiling' page to admin block.
$ADMIN->add('development', $temp);
// Web service test clients DO NOT COMMIT : THE EXTERNAL WEB PAGE IS NOT AN ADMIN PAGE !!!!!
$ADMIN->add('development', new admin_externalpage('testclient', new lang_string('testclient', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/testclient.php"));
+4
View File
@@ -67,6 +67,10 @@ if (has_capability('moodle/grade:manage', $systemcontext)
$temp->add(new admin_setting_special_gradeexport());
$temp->add(new admin_setting_special_gradelimiting());
$temp->add(new admin_setting_special_gradepointmax());
$temp->add(new admin_setting_special_gradepointdefault());
}
$ADMIN->add('grades', $temp);
+18 -25
View File
@@ -25,6 +25,9 @@
*/
if ($hassiteconfig) {
/* @var admin_root $ADMIN */
$ADMIN->locate('modules')->set_sorting(true);
$ADMIN->add('modules', new admin_page_pluginsoverview());
// activity modules
@@ -69,6 +72,7 @@ if ($hassiteconfig) {
$temp->add(new admin_setting_manageauths());
$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('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'),
@@ -142,31 +146,7 @@ if ($hassiteconfig) {
// "filtersettings" settingpage
$temp = new admin_settingpage('commonfiltersettings', new lang_string('commonfiltersettings', 'admin'));
if ($ADMIN->fulltree) {
$cachetimes = array(
604800 => new lang_string('numdays','',7),
86400 => new lang_string('numdays','',1),
43200 => new lang_string('numhours','',12),
10800 => new lang_string('numhours','',3),
7200 => new lang_string('numhours','',2),
3600 => new lang_string('numhours','',1),
2700 => new lang_string('numminutes','',45),
1800 => new lang_string('numminutes','',30),
900 => new lang_string('numminutes','',15),
600 => new lang_string('numminutes','',10),
540 => new lang_string('numminutes','',9),
480 => new lang_string('numminutes','',8),
420 => new lang_string('numminutes','',7),
360 => new lang_string('numminutes','',6),
300 => new lang_string('numminutes','',5),
240 => new lang_string('numminutes','',4),
180 => new lang_string('numminutes','',3),
120 => new lang_string('numminutes','',2),
60 => new lang_string('numminutes','',1),
30 => new lang_string('numseconds','',30),
0 => new lang_string('no')
);
$items = array();
$items[] = new admin_setting_configselect('cachetext', new lang_string('cachetext', 'admin'), new lang_string('configcachetext', 'admin'), 60, $cachetimes);
$items[] = new admin_setting_configselect('filteruploadedfiles', new lang_string('filteruploadedfiles', 'admin'), new lang_string('configfilteruploadedfiles', 'admin'), 0,
array('0' => new lang_string('none'), '1' => new lang_string('allfiles'), '2' => new lang_string('htmlfilesonly')));
$items[] = new admin_setting_configcheckbox('filtermatchoneperpage', new lang_string('filtermatchoneperpage', 'admin'), new lang_string('configfiltermatchoneperpage', 'admin'), 0);
@@ -256,7 +236,10 @@ if ($hassiteconfig) {
// Add common settings page
$temp = new admin_settingpage('managerepositoriescommon', new lang_string('commonrepositorysettings', 'repository'));
$temp->add(new admin_setting_configtext('repositorycacheexpire', new lang_string('cacheexpire', 'repository'), new lang_string('configcacheexpire', 'repository'), 120));
$temp->add(new admin_setting_configtext('repositorycacheexpire', new lang_string('cacheexpire', 'repository'), new lang_string('configcacheexpire', 'repository'), 120, PARAM_INT));
$temp->add(new admin_setting_configtext('repositorygetfiletimeout', new lang_string('getfiletimeout', 'repository'), new lang_string('configgetfiletimeout', 'repository'), 30, PARAM_INT));
$temp->add(new admin_setting_configtext('repositorysyncfiletimeout', new lang_string('syncfiletimeout', 'repository'), new lang_string('configsyncfiletimeout', 'repository'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('repositorysyncimagetimeout', new lang_string('syncimagetimeout', 'repository'), new lang_string('configsyncimagetimeout', 'repository'), 3, PARAM_INT));
$temp->add(new admin_setting_configcheckbox('repositoryallowexternallinks', new lang_string('allowexternallinks', 'repository'), new lang_string('configallowexternallinks', 'repository'), 1));
$temp->add(new admin_setting_configcheckbox('legacyfilesinnewcourses', new lang_string('legacyfilesinnewcourses', 'admin'), new lang_string('legacyfilesinnewcourses_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('legacyfilesaddallowed', new lang_string('legacyfilesaddallowed', 'admin'), new lang_string('legacyfilesaddallowed_help', 'admin'), 1));
@@ -485,6 +468,16 @@ 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);
}
}
/// Add all local plugins - must be always last!
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('localplugins', new lang_string('localplugins')));
+2 -4
View File
@@ -108,10 +108,8 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "notifications" settingpage
$temp = new admin_settingpage('notifications', new lang_string('notifications', 'admin'));
$temp->add(new admin_setting_configselect('displayloginfailures', new lang_string('displayloginfailures', 'admin'), new lang_string('configdisplayloginfailures', 'admin'), '', array('' => new lang_string('nobody'),
'admin' => new lang_string('administrators'),
'teacher' => new lang_string('administratorsandteachers'),
'everybody' => new lang_string('everybody'))));
$temp->add(new admin_setting_configcheckbox('displayloginfailures', new lang_string('displayloginfailures', 'admin'),
new lang_string('configdisplayloginfailures', 'admin'), 0));
$temp->add(new admin_setting_users_with_capability('notifyloginfailures', new lang_string('notifyloginfailures', 'admin'), new lang_string('confignotifyloginfailures', 'admin'), array(), 'moodle/site:config'));
$options = array();
for ($i = 1; $i <= 100; $i++) {
+3 -15
View File
@@ -93,6 +93,7 @@ $options = array(
GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR => 'HTTP_CLIENT, REMOTE_ADDR',
GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR|GETREMOTEADDR_SKIP_HTTP_CLIENT_IP => 'REMOTE_ADDR');
$temp->add(new admin_setting_configselect('getremoteaddrconf', new lang_string('getremoteaddrconf', 'admin'), new lang_string('configgetremoteaddrconf', 'admin'), 0, $options));
$temp->add(new admin_setting_heading('webproxy', new lang_string('webproxy', 'admin'), new lang_string('webproxyinfo', 'admin')));
$temp->add(new admin_setting_configtext('proxyhost', new lang_string('proxyhost', 'admin'), new lang_string('configproxyhost', 'admin'), '', PARAM_HOST));
$temp->add(new admin_setting_configtext('proxyport', new lang_string('proxyport', 'admin'), new lang_string('configproxyport', 'admin'), 0, PARAM_INT));
@@ -136,21 +137,6 @@ $temp->add(new admin_setting_configselect('deleteincompleteusers', new lang_stri
48 => new lang_string('numdays', '', 2),
24 => new lang_string('numdays', '', 1))));
$temp->add(new admin_setting_configcheckbox('logguests', new lang_string('logguests', 'admin'),
new lang_string('logguests_help', 'admin'), 1));
$temp->add(new admin_setting_configselect('loglifetime', new lang_string('loglifetime', 'admin'), new lang_string('configloglifetime', 'admin'), 0, array(0 => new lang_string('neverdeletelogs'),
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_configcheckbox('disablegradehistory', new lang_string('disablegradehistory', 'grades'),
new lang_string('disablegradehistory_help', 'grades'), 0));
@@ -195,6 +181,8 @@ if (PHP_INT_SIZE === 8) {
$temp->add(new admin_setting_configselect('extramemorylimit', new lang_string('extramemorylimit', 'admin'),
new lang_string('configextramemorylimit', 'admin'), '512M',
$memoryoptions));
$temp->add(new admin_setting_configtext('maxtimelimit', new lang_string('maxtimelimit', 'admin'),
new lang_string('maxtimelimit_desc', 'admin'), 0, PARAM_INT));
$temp->add(new admin_setting_configtext('curlcache', new lang_string('curlcache', 'admin'),
new lang_string('configcurlcache', 'admin'), 120, PARAM_INT));
+2 -2
View File
@@ -44,8 +44,8 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
new lang_string('configcompletiondefault', 'completion'), 1, $options));
$optionalsubsystems->add($checkbox = new admin_setting_configcheckbox('enableavailability',
new lang_string('enableavailability','condition'),
new lang_string('configenableavailability','condition'), 0));
new lang_string('enableavailability', 'availability'),
new lang_string('enableavailability_desc', 'availability'), 0));
$checkbox->set_affects_modinfo(true);
$optionalsubsystems->add(new admin_setting_configcheckbox('enableplagiarism', new lang_string('enableplagiarism','plagiarism'), new lang_string('configenableplagiarism','plagiarism'), 0));
+1
View File
@@ -127,6 +127,7 @@ if ($hassiteconfig
'msnid' => new lang_string('msnid'),
'firstaccess' => new lang_string('firstaccess'),
'lastaccess' => new lang_string('lastaccess'),
'lastip' => new lang_string('lastip'),
'mycourses' => new lang_string('mycourses'),
'groups' => new lang_string('groups'),
'suspended' => new lang_string('suspended', 'auth'),
+4 -23
View File
@@ -17,7 +17,7 @@
/**
* Steps definitions related with administration.
*
* @package core
* @package core_admin
* @category test
* @copyright 2013 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
@@ -35,7 +35,7 @@ use Behat\Behat\Context\Step\Given as Given,
/**
* Site administration level steps definitions.
*
* @package core
* @package core_admin
* @category test
* @copyright 2013 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
@@ -59,7 +59,7 @@ class behat_admin extends behat_base {
// We expect admin block to be visible, otherwise go to homepage.
if (!$this->getSession()->getPage()->find('css', '.block_settings')) {
$this->getSession()->visit($this->locate_path('/'));
$this->wait(self::TIMEOUT, '(document.readyState === "complete")');
$this->wait(self::TIMEOUT * 1000, self::PAGE_READY_JS);
}
// Search by label.
@@ -68,7 +68,7 @@ class behat_admin extends behat_base {
$submitsearch = $this->find('css', 'form.adminsearchform input[type=submit]');
$submitsearch->press();
$this->wait(self::TIMEOUT, '(document.readyState === "complete")');
$this->wait(self::TIMEOUT * 1000, self::PAGE_READY_JS);
// Admin settings does not use the same DOM structure than other moodle forms
// but we also need to use lib/behat/form_field/* to deal with the different moodle form elements.
@@ -125,23 +125,4 @@ class behat_admin extends behat_base {
$this->getSession()->wait($timeout, $javascript);
}
}
/**
* Goes to notification page ensuring site admin navigation is loaded.
*
* @Given /^I go to notifications page$/
* @return Given[]
*/
public function i_go_to_notifications_page() {
if ($this->running_javascript()) {
return array(
new Given('I expand "' . get_string('administrationsite') . '" node'),
new Given('I follow "' . get_string('notifications') . '"')
);
} else {
return array(
new Given('I follow "' . get_string('administrationsite') . '"')
);
}
}
}
@@ -5,7 +5,7 @@ Feature: Display extended course names
I need to display courses short names along with courses full names
Background:
Given the following "courses" exists:
Given the following "courses" exist:
| fullname | shortname | category |
| Course fullname | C_shortname | 0 |
And I log in as "admin"
@@ -15,9 +15,9 @@ Feature: Display extended course names
And I should not see "C_shortname Course fullname"
Scenario: Courses list with extended course names
Given I go to notifications page
Given I expand "Site administration" node
And I click on "Courses" "link" in the "//div[@id='settingsnav']/descendant::li[contains(concat(' ', normalize-space(@class), ' '), ' type_setting ')][contains(., 'Appearance')]" "xpath_element"
And I check "Display extended course names"
And I set the field "Display extended course names" to "1"
When I press "Save changes"
And I am on homepage
Then I should see "C_shortname Course fullname"
+13 -13
View File
@@ -5,31 +5,31 @@ Feature: An administrator can filter user accounts by role, cohort and other pro
I need to filter the users account list using different filter
Background:
Given the following "users" exists:
Given the following "users" exist:
| username | firstname | lastname | email | auth | confirmed |
| user1 | User | One | one@asd.com | manual | 0 |
| user2 | User | Two | one@asd.com | ldap | 1 |
| user3 | User | Three | one@asd.com | manual | 1 |
| user4 | User | Four | one@asd.com | ldap | 0 |
And the following "cohorts" exists:
| user2 | User | Two | two@asd.com | ldap | 1 |
| user3 | User | Three | three@asd.com | manual | 1 |
| user4 | User | Four | four@asd.com | ldap | 0 |
And the following "cohorts" exist:
| name | idnumber |
| Cohort 1 | CH1 |
And the following "courses" exists:
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exists:
And the following "course enrolments" exist:
| user | course | role |
| user1 | C1 | student |
| user2 | C1 | student |
| user3 | C1 | student |
And I log in as "admin"
And I add "user2" user to "CH1" cohort
And I add "user3" user to "CH1" cohort
And I add "User Two (two@asd.com)" user to "CH1" cohort members
And I add "User Three (three@asd.com)" user to "CH1" cohort members
And I follow "Browse list of users"
@javascript
Scenario: Filter user accounts by role and cohort
When I fill the moodle form with:
When I set the following fields to these values:
| courserole_rl | Student |
| courserole_ct | any category |
| courserole | C1 |
@@ -38,7 +38,7 @@ Feature: An administrator can filter user accounts by role, cohort and other pro
And I should see "User Two"
And I should see "User Three"
And I should not see "User Four"
And I fill the moodle form with:
And I set the following fields to these values:
| cohort | CH1 |
And I press "Add filter"
And I should not see "User One"
@@ -53,14 +53,14 @@ Feature: An administrator can filter user accounts by role, cohort and other pro
@javascript
Scenario: Filter user accounts by confirm and authentication method
When I fill the moodle form with:
When I set the following fields to these values:
| Confirmed | No |
And I press "Add filter"
Then I should see "User One"
And I should not see "User Two"
And I should not see "User Three"
And I should see "User Four"
And I fill the moodle form with:
And I set the following fields to these values:
| Authentication | manual |
And I press "Add filter"
And I should see "User One"
+6 -11
View File
@@ -1,4 +1,4 @@
@core @core_admin @_only_local
@core @core_admin @_file_upload
Feature: Upload users
In order to add users to the system
As an admin
@@ -6,20 +6,16 @@ Feature: Upload users
@javascript
Scenario: Upload users enrolling them on courses and groups
Given the following "courses" exists:
Given the following "courses" exist:
| fullname | shortname | category |
| Maths | math102 | 0 |
And the following "groups" exists:
And the following "groups" exist:
| name | course | idnumber |
| Section 1 | math102 | S1 |
| Section 3 | math102 | S3 |
And I log in as "admin"
And I collapse "Front page settings" node
And I expand "Site administration" node
And I expand "Users" node
And I expand "Accounts" node
And I follow "Upload users"
When I upload "lib/tests/fixtures/upload_users.csv" file to "File" filepicker
And I navigate to "Upload users" node in "Site administration > Users > Accounts"
When I upload "lib/tests/fixtures/upload_users.csv" file to "File" filemanager
And I press "Upload users"
Then I should see "Upload users preview"
And I should see "Tom"
@@ -41,6 +37,5 @@ Feature: Upload users
And I follow "Maths"
And I expand "Users" node
And I follow "Groups"
And I select "Section 1 (1)" from "groups"
And I wait "4" seconds
And I set the field "groups" to "Section 1 (1)"
And the "members" select box should contain "Tom Jones"
+3 -3
View File
@@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013110500;
$plugin->requires = 2013110500;
$plugin->version = 2014051200;
$plugin->requires = 2014050800;
$plugin->component = 'tool_assignmentupgrade';
$plugin->dependencies = array('mod_assign' => 2013110500);
$plugin->dependencies = array('mod_assign' => 2014050800);
+124
View File
@@ -0,0 +1,124 @@
<?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/>.
/**
* Provides an overview of installed availability conditions.
*
* You can also enable/disable them from this screen.
*
* @package tool_availabilityconditions
* @copyright 2014 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(__DIR__ . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/tablelib.php');
admin_externalpage_setup('manageavailability');
// Get sorted list of all availability condition plugins.
$plugins = array();
foreach (core_component::get_plugin_list('availability') as $plugin => $plugindir) {
if (get_string_manager()->string_exists('pluginname', 'availability_' . $plugin)) {
$strpluginname = get_string('pluginname', 'availability_' . $plugin);
} else {
$strpluginname = $plugin;
}
$plugins[$plugin] = $strpluginname;
}
core_collator::asort($plugins);
// Do plugin actions.
$pageurl = new moodle_url('/' . $CFG->admin . '/tool/availabilityconditions/');
if (($plugin = optional_param('plugin', '', PARAM_PLUGIN))) {
require_sesskey();
if (!array_key_exists($plugin, $plugins)) {
print_error('invalidcomponent', 'error', $pageurl);
}
$action = required_param('action', PARAM_ALPHA);
switch ($action) {
case 'hide' :
set_config('disabled', 1, 'availability_' . $plugin);
break;
case 'show' :
unset_config('disabled', 'availability_' . $plugin);
break;
}
core_plugin_manager::reset_caches();
// Always redirect back after an action.
redirect($pageurl);
}
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('manageplugins', 'availability'));
// Show a table of installed availability conditions.
$table = new flexible_table('availabilityconditions_administration_table');
$table->define_columns(array('name', 'version', 'enable'));
$table->define_headers(array(get_string('plugin'),
get_string('version'), get_string('hide') . '/' . get_string('show')));
$table->define_baseurl($PAGE->url);
$table->set_attribute('id', 'availabilityconditions');
$table->set_attribute('class', 'admintable generaltable');
$table->setup();
$enabledlist = core\plugininfo\availability::get_enabled_plugins();
foreach ($plugins as $plugin => $name) {
// Get version or ? if unknown.
$version = get_config('availability_' . $plugin);
if (!empty($version->version)) {
$version = $version->version;
} else {
$version = '?';
}
// Get enabled status and use to grey out name if necessary.
$enabled = in_array($plugin, $enabledlist);
if ($enabled) {
$enabledaction = 'hide';
$enabledstr = get_string('hide');
$class = '';
} else {
$enabledaction = 'show';
$enabledstr = get_string('show');
$class = 'dimmed_text';
}
$namespan = html_writer::span($name, $class);
// Make enable control. This is a POST request (using a form control rather
// than just a link) because it makes a database change.
$enablecontrol = html_writer::tag('form', html_writer::div(
html_writer::empty_tag('input', array('type' => 'hidden',
'name' => 'sesskey', 'value' => sesskey())) .
html_writer::empty_tag('input', array('type' => 'hidden',
'name' => 'plugin', 'value' => $plugin)) .
html_writer::empty_tag('input', array('type' => 'hidden',
'name' => 'action', 'value' => $enabledaction)) .
html_writer::empty_tag('input', array('type' => 'image',
'src' => $OUTPUT->pix_url('t/' . $enabledaction), 'alt' => $enabledstr,
'title' => $enabledstr))
), array(
'method' => 'post', 'action' => './'));
$table->add_data(array($namespan, $version, $enablecontrol));
}
$table->print_html();
echo $OUTPUT->footer();
@@ -0,0 +1,26 @@
<?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/>.
/**
* Strings for availability conditions options.
*
* @package core_availability
* @copyright 2014 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['manageplugins'] = 'Manage restrictions';
$string['pluginname'] = 'Availability condition management';
@@ -0,0 +1,37 @@
<?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/>.
/**
* Adds settings links to admin tree.
*
* @package tool_availabilityconditions
* @copyright 2014 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
if ($hassiteconfig && !empty($CFG->enableavailability)) {
$ADMIN->add('modules', new admin_category('availabilitysettings',
new lang_string('type_availability_plural', 'plugin')));
$ADMIN->add('availabilitysettings', new admin_externalpage('manageavailability',
new lang_string('manageplugins', 'tool_availabilityconditions'),
$CFG->wwwroot . '/' . $CFG->admin . '/tool/availabilityconditions/'));
foreach (core_plugin_manager::instance()->get_plugins_of_type('availability') as $plugin) {
/** @var \core\plugininfo\format $plugin */
$plugin->load_settings($ADMIN, 'availabilitysettings', $hassiteconfig);
}
}
@@ -0,0 +1,58 @@
@tool @tool_availabilityconditions
Feature: Manage availability conditions
In order to control availability restrictions
As an administrator
I need to see the list of restrictions and hide or show them
@javascript
Scenario: Display list of availability conditions
# Check the report doesn't show when not enabled.
Given I log in as "admin"
And I expand "Site administration" node
When I expand "Plugins" node
Then I should not see "Availability restrictions"
# Enable it and check I can now see and click on it.
And I set the following administration settings values:
| Enable conditional access | 1 |
And I am on homepage
And I navigate to "Manage restrictions" node in "Site administration > Plugins > Availability restrictions"
# Having clicked on it, I should also see the list of plugins.
And I should see "Restriction by date"
And I should see "Restriction by grades"
@javascript
Scenario: Hide and show conditions
# Get to the right page
Given the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
And I log in as "admin"
And I set the following administration settings values:
| Enable conditional access | 1 |
And I am on homepage
When I navigate to "Manage restrictions" node in "Site administration > Plugins > Availability restrictions"
# Check the icon is there (it should be a Hide icon, meaning is currently visible).
Then "input[title=Hide]" "css_element" should exist in the "Restriction by date" "table_row"
# Click the icon. It should toggle to hidden (title=Show).
And I click on "input[title=Hide]" "css_element" in the "Restriction by date" "table_row"
And "input[title=Show]" "css_element" should exist in the "Restriction by date" "table_row"
# Toggle it back to visible (title=Hide).
And I click on "input[title=Show]" "css_element" in the "Restriction by date" "table_row"
And "input[title=Hide]" "css_element" should exist in the "Restriction by date" "table_row"
# OK, toggling works. Set the grade one to Hide and we'll go see if it actually worked.
And I click on "input[title=Hide]" "css_element" in the "Restriction by grade" "table_row"
And I am on homepage
And I follow "Course 1"
And I turn editing mode on
And I add a "Page" to section "1"
And I expand all fieldsets
And I click on "Add restriction..." "button"
And "Add restriction..." "dialogue" should be visible
And "Date" "button" should exist in the "Add restriction..." "dialogue"
And "Grade" "button" should not exist in the "Add restriction..." "dialogue"
@@ -0,0 +1,29 @@
<?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/>.
/**
* Version
*
* @package tool_availabilityconditions
* @copyright 2014 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2014051200;
$plugin->requires = 2014050800;
$plugin->component = 'tool_availabilityconditions';
+15 -75
View File
@@ -78,89 +78,29 @@ if (!empty($options['help'])) {
exit(0);
}
// Checking $CFG->behat_* vars and values.
// Describe this script.
define('BEHAT_UTIL', true);
define('CLI_SCRIPT', true);
define('ABORT_AFTER_CONFIG', true);
define('NO_OUTPUT_BUFFERING', true);
define('IGNORE_COMPONENT_CACHE', true);
error_reporting(E_ALL | E_STRICT);
// Only load CFG from config.php, stop ASAP in lib/setup.php.
define('ABORT_AFTER_CONFIG', true);
require_once(__DIR__ . '/../../../../config.php');
// Remove error handling overrides done in config.php.
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;
error_reporting($CFG->debug);
ini_set('display_errors', '1');
ini_set('log_errors', '1');
// Getting $CFG data.
require_once(__DIR__ . '/../../../../config.php');
// CFG->behat_prefix must be set and with value different than CFG->prefix and phpunit_prefix.
if (empty($CFG->behat_prefix) ||
($CFG->behat_prefix == $CFG->prefix) ||
(!empty($CFG->phpunit_prefix) && $CFG->behat_prefix == $CFG->phpunit_prefix)) {
behat_error(BEHAT_EXITCODE_CONFIG,
'Define $CFG->behat_prefix in config.php with a value different than $CFG->prefix and $CFG->phpunit_prefix');
}
// CFG->behat_dataroot must be set and with value different than CFG->dataroot and phpunit_dataroot.
if (empty($CFG->behat_dataroot) ||
($CFG->behat_dataroot == $CFG->dataroot) ||
(!empty($CFG->phpunit_dataroot) && $CFG->behat_dataroot == $CFG->phpunit_dataroot)) {
behat_error(BEHAT_EXITCODE_CONFIG,
'Define $CFG->behat_dataroot in config.php with a value different than $CFG->dataroot and $CFG->phpunit_dataroot');
}
// Create behat_dataroot if it doesn't exists.
if (!file_exists($CFG->behat_dataroot)) {
if (!mkdir($CFG->behat_dataroot, $CFG->directorypermissions)) {
behat_error(BEHAT_EXITCODE_PERMISSIONS, '$CFG->behat_dataroot directory can not be created');
}
}
if (!is_dir($CFG->behat_dataroot) || !is_writable($CFG->behat_dataroot)) {
behat_error(BEHAT_EXITCODE_PERMISSIONS, '$CFG->behat_dataroot directory has no permissions or is not a directory');
}
// Check that the directory does not contains other things.
if (!file_exists("$CFG->behat_dataroot/behattestdir.txt")) {
if ($dh = opendir($CFG->behat_dataroot)) {
while (($file = readdir($dh)) !== false) {
if ($file === 'behat' or $file === '.' or $file === '..' or $file === '.DS_Store') {
continue;
}
behat_error(BEHAT_EXITCODE_CONFIG, '$CFG->behat_dataroot directory is not empty, ensure this is the directory where you want to install behat test dataroot');
}
closedir($dh);
unset($dh);
unset($file);
}
// Now we create dataroot directory structure for behat tests.
testing_initdataroot($CFG->behat_dataroot, 'behat');
}
// Overrides vars with behat-test ones.
$vars = array('wwwroot', 'prefix', 'dataroot');
foreach ($vars as $var) {
$CFG->{$var} = $CFG->{'behat_' . $var};
}
// Clean $CFG extra values before performing any action.
behat_clean_init_config();
$CFG->noemailever = true;
$CFG->passwordsaltmain = 'moodle';
$CFG->themerev = 1;
$CFG->jsrev = 1;
// Unset cache and temp directories to reset them again with the new $CFG->dataroot.
unset($CFG->cachedir);
unset($CFG->localcachedir);
unset($CFG->tempdir);
// Continues setup.
// Finish moodle init.
define('ABORT_AFTER_CONFIG_CANCEL', true);
require("$CFG->dirroot/lib/setup.php");
raise_memory_limit(MEMORY_HUGE);
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/upgradelib.php');
require_once($CFG->libdir.'/clilib.php');
@@ -187,9 +127,9 @@ if ($options['install']) {
mtrace("Acceptance tests site dropped");
} else if ($options['enable']) {
behat_util::start_test_mode();
$runtestscommand = behat_command::get_behat_command() . ' --config '
. $CFG->behat_dataroot . DIRECTORY_SEPARATOR . 'behat' . DIRECTORY_SEPARATOR . 'behat.yml';
mtrace("Acceptance tests environment enabled, to run the tests use:\n " . $runtestscommand);
$runtestscommand = behat_command::get_behat_command(true) .
' --config ' . behat_config_manager::get_behat_cli_config_filepath();
mtrace("Acceptance tests environment enabled on $CFG->behat_wwwroot, to run the tests use:\n " . $runtestscommand);
} else if ($options['disable']) {
behat_util::stop_test_mode();
mtrace("Acceptance tests environment disabled");
+12 -6
View File
@@ -22,17 +22,22 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['aim'] = 'This administration tool helps developers and test writers to create .feature files describing Moodle\'s functionalities and run them automatically.';
$string['aim'] = 'This administration tool helps developers and test writers to create .feature files describing Moodle\'s functionalities and run them automatically. Step definitions available for use in .feature files are listed below.';
$string['allavailablesteps'] = 'All the available steps definitions';
$string['errorbehatcommand'] = 'Error running behat CLI command. Try running "{$a} --help" manually from CLI to find out more about the problem.';
$string['errorcomposer'] = 'Composer dependencies are not installed.';
$string['errordataroot'] = '$CFG->behat_dataroot is not set or is invalid.';
$string['errorsetconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot need to be set in config.php.';
$string['erroruniqueconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot values need to be different than $CFG->dataroot, $CFG->prefix, $CFG->wwwroot, $CFG->phpunit_dataroot and $CFG->phpunit_prefix values.';
$string['fieldvalueargument'] = 'Field value arguments';
$string['fieldvalueargument_help'] = 'This argument should be completed by a field value, there are many field types, simple ones like checkboxes, selects or textareas or complex ones like date selectors. You can check <a href="http://docs.moodle.org/dev/Acceptance_testing#Providing_values_to_steps" target="_blank">Field values</a> to see the expected field value depending on the field type you provide.';
$string['giveninfo'] = 'Given. Processes to set up the environment';
$string['infoheading'] = 'Info';
$string['installinfo'] = 'Read {$a} for installation and tests execution info';
$string['moreinfoin'] = 'More info in {$a}';
$string['newstepsinfo'] = 'Read {$a} for info about how to add new steps definitions';
$string['newtestsinfo'] = 'Read {$a} for info about how to write new tests';
$string['nostepsdefinitions'] = 'There aren\'t steps definitions matching this filters';
$string['pluginname'] = 'Acceptance testing';
$string['runclitool'] = 'To list the steps definitions you need to run the Behat CLI tool to create the $CFG->behat_dataroot directory. Go to your moodle dirroot and run "{$a}"';
$string['stepsdefinitionscomponent'] = 'Area';
$string['stepsdefinitionscontains'] = 'Contains';
$string['stepsdefinitionsfilters'] = 'Steps definitions';
@@ -41,6 +46,7 @@ $string['theninfo'] = 'Then. Checkings to ensure the outcomes are the expected o
$string['unknownexceptioninfo'] = 'There was a problem with Selenium or your browser. Please ensure you are using the latest version of Selenium. Error:';
$string['viewsteps'] = 'Filter';
$string['wheninfo'] = 'When. Actions that provokes an event';
$string['wrongbehatsetup'] = 'Something is wrong with behat setup, ensure:<ul>
<li>You ran "php admin/tool/behat/cli/init.php" from your moodle root directory</li>
<li>vendor/bin/behat file has execution permissions</li></ul>';
$string['wrongbehatsetup'] = 'Something is wrong with the behat setup and so step definitions cannot be listed: <b>{$a->errormsg}</b><br/><br/>Please check:<ul>
<li>$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot are set in config.php with different values from $CFG->dataroot, $CFG->prefix and $CFG->wwwroot.</li>
<li>You ran "{$a->behatinit}" from your Moodle root directory.</li>
<li>Dependencies are installed in vendor/ and {$a->behatcommand} file has execution permissions.</li></ul>';
+99 -31
View File
@@ -45,37 +45,7 @@ class tool_behat_renderer extends plugin_renderer_base {
*/
public function render_stepsdefinitions($stepsdefinitions, $form) {
$title = get_string('pluginname', 'tool_behat');
// Header.
$html = $this->output->header();
$html .= $this->output->heading($title);
// Info.
$installurl = behat_command::DOCS_URL . '#Installation';
$installlink = html_writer::tag('a', $installurl, array('href' => $installurl, 'target' => '_blank'));
$writetestsurl = behat_command::DOCS_URL . '#Writting_features';
$writetestslink = html_writer::tag('a', $writetestsurl, array('href' => $writetestsurl, 'target' => '_blank'));
$writestepsurl = behat_command::DOCS_URL . '#Adding_steps_definitions';
$writestepslink = html_writer::tag('a', $writestepsurl, array('href' => $writestepsurl, 'target' => '_blank'));
$infos = array(
get_string('installinfo', 'tool_behat', $installlink),
get_string('newtestsinfo', 'tool_behat', $writetestslink),
get_string('newstepsinfo', 'tool_behat', $writestepslink)
);
// List of steps.
$html .= $this->output->box_start();
$html .= html_writer::tag('h1', get_string('infoheading', 'tool_behat'));
$html .= html_writer::tag('div', get_string('aim', 'tool_behat'));
$html .= html_writer::empty_tag('div');
$html .= html_writer::empty_tag('ul');
$html .= html_writer::empty_tag('li');
$html .= implode(html_writer::end_tag('li') . html_writer::empty_tag('li'), $infos);
$html .= html_writer::end_tag('li');
$html .= html_writer::end_tag('ul');
$html .= html_writer::end_tag('div');
$html .= $this->output->box_end();
$html = $this->generic_info();
// Form.
ob_start();
@@ -114,6 +84,33 @@ class tool_behat_renderer extends plugin_renderer_base {
$stepsdefinitions
);
$stepsdefinitions = preg_replace_callback('/(FIELD_VALUE_STRING)/',
function ($matches) {
global $CFG;
// Creating a link to a popup with the help.
$url = new moodle_url(
'/help.php',
array(
'component' => 'tool_behat',
'identifier' => 'fieldvalueargument',
'lang' => current_language()
)
);
// Note: this title is displayed only if JS is disabled,
// otherwise the link will have the new ajax tooltip.
$title = get_string('fieldvalueargument', 'tool_behat');
$title = get_string('helpprefix2', '', trim($title, ". \t"));
$attributes = array('href' => $url, 'title' => $title,
'aria-haspopup' => 'true', 'target' => '_blank');
$output = html_writer::tag('a', 'FIELD_VALUE_STRING', $attributes);
return html_writer::tag('span', $output, array('class' => 'helptooltip'));
},
$stepsdefinitions
);
}
// Steps definitions.
@@ -123,4 +120,75 @@ class tool_behat_renderer extends plugin_renderer_base {
return $html;
}
/**
* Renders an error message adding the generic info about the tool purpose and setup.
*
* @param string $msg The error message
* @return string HTML
*/
public function render_error($msg) {
$html = $this->generic_info();
$a = new stdClass();
$a->errormsg = $msg;
$a->behatcommand = behat_command::get_behat_command();
$a->behatinit = 'php admin' . DIRECTORY_SEPARATOR . 'tool' . DIRECTORY_SEPARATOR .
'behat' . DIRECTORY_SEPARATOR . 'cli' . DIRECTORY_SEPARATOR . 'init.php';
$msg = get_string('wrongbehatsetup', 'tool_behat', $a);
// Error box including generic error string + specific error msg.
$html .= $this->output->box_start('box errorbox');
$html .= html_writer::tag('div', $msg);
$html .= $this->output->box_end();
$html .= $this->output->footer();
return $html;
}
/**
* Generic info about the tool.
*
* @return string
*/
protected function generic_info() {
$title = get_string('pluginname', 'tool_behat');
// Header.
$html = $this->output->header();
$html .= $this->output->heading($title);
// Info.
$installurl = behat_command::DOCS_URL . '#Installation';
$installlink = html_writer::tag('a', $installurl, array('href' => $installurl, 'target' => '_blank'));
$writetestsurl = behat_command::DOCS_URL . '#Writting_features';
$writetestslink = html_writer::tag('a', $writetestsurl, array('href' => $writetestsurl, 'target' => '_blank'));
$writestepsurl = behat_command::DOCS_URL . '#Adding_steps_definitions';
$writestepslink = html_writer::tag('a', $writestepsurl, array('href' => $writestepsurl, 'target' => '_blank'));
$infos = array(
get_string('installinfo', 'tool_behat', $installlink),
get_string('newtestsinfo', 'tool_behat', $writetestslink),
get_string('newstepsinfo', 'tool_behat', $writestepslink)
);
// List of steps.
$html .= $this->output->box_start();
$html .= html_writer::tag('h3', get_string('infoheading', 'tool_behat'));
$html .= html_writer::tag('div', get_string('aim', 'tool_behat'));
$html .= html_writer::start_tag('div');
$html .= html_writer::start_tag('ul');
$html .= html_writer::start_tag('li');
$html .= implode(html_writer::end_tag('li') . html_writer::start_tag('li'), $infos);
$html .= html_writer::end_tag('li');
$html .= html_writer::end_tag('ul');
$html .= html_writer::end_tag('div');
$html .= $this->output->box_end();
return $html;
}
}
@@ -11,14 +11,14 @@ Feature: Page contents assertions
And I expand "Users" node
And I follow "Groups"
And I press "Create group"
And I fill the moodle form with:
And I set the following fields to these values:
| Group name | I'm the name |
| Group description | I'm the description |
And I press "Save changes"
When I follow "Overview"
And I wait until the page is ready
And I wait "2" seconds
And I hover ".region-content .generaltable td span" "css_element"
And I hover "#region-main .generaltable td span" "css_element"
Then I should see "I'm the description"
And "Grouping" "select" in the "region-main" "region" should be visible
And "Group" "select" should be visible
@@ -26,28 +26,28 @@ Feature: Page contents assertions
And "Change password" "link" should not be visible
And I should see "Filter groups by"
And I should not see "Filter groupssss by"
And I should see "Group members" in the ".region-content table th.c1" "css_element"
And I should not see "Group membersssss" in the ".region-content table th.c1" "css_element"
And I should see "Group members" in the "#region-main table th.c1" "css_element"
And I should not see "Group membersssss" in the "#region-main table th.c1" "css_element"
And I follow "Groups"
And the "#groupeditform #showcreateorphangroupform" "css_element" should be enabled
And the "#groupeditform #showeditgroupsettingsform" "css_element" should be disabled
@javascript
Scenario: Locators inside specific DOM nodes using CSS selectors
Given the following "courses" exists:
Given the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
And I follow "Course 1"
When I click on "Move this to the dock" "button" in the "Administration" "block"
Then I should not see "Question bank" in the "region-pre" "region"
When I dock "Administration" block
Then I should not see "Question bank" in the ".block-region" "css_element"
And I click on "//div[@id='dock']/descendant::h2[normalize-space(.)='Administration']" "xpath_element"
@javascript
Scenario: Locators inside specific DOM nodes using XPath
Given the following "courses" exists:
Given the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
When I click on "Move this to the dock" "button" in the "Administration" "block"
Then I should not see "Turn editing on" in the "region-pre" "region"
When I dock "Administration" block
Then I should not see "Turn editing on" in the ".block-region" "css_element"
@@ -5,7 +5,7 @@ Feature: Set up contextual data for tests
I need to fill the database with fixtures
Scenario: Add a bunch of users
Given the following "users" exists:
Given the following "users" exist:
| username | password | firstname | lastname |
| testuser | testuser | | |
| testuser2 | testuser2 | TestFirstname | TestLastname |
@@ -16,12 +16,12 @@ Feature: Set up contextual data for tests
@javascript
Scenario: Add a bunch of courses and categories
Given the following "categories" exists:
Given the following "categories" exist:
| name | category | idnumber |
| Cat 1 | 0 | CAT1 |
| Cat 2 | CAT1 | CAT2 |
| Cat 3 | CAT1 | CAT3 |
And the following "courses" exists:
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | COURSE1 | CAT3 |
| Course 2 | COURSE2 | CAT3 |
@@ -44,14 +44,14 @@ Feature: Set up contextual data for tests
@javascript
Scenario: Add a bunch of groups and groupings
Given the following "courses" exists:
Given the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
And the following "groups" exists:
And the following "groups" exist:
| name | course | idnumber |
| Group 1 | C1 | G1 |
| Group 2 | C1 | G2 |
And the following "groupings" exists:
And the following "groupings" exist:
| name | course | idnumber |
| Grouping 1 | C1 | GG1 |
| Grouping 2 | C1 | GG2 |
@@ -67,21 +67,21 @@ Feature: Set up contextual data for tests
@javascript
Scenario: Role overrides
Given the following "users" exists:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
| student1 | Student | 1 | student1@asd.com |
And the following "categories" exists:
And the following "categories" exist:
| name | category | idnumber |
| Cat 1 | 0 | CAT1 |
And the following "courses" exists:
And the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
And the following "course enrolments" exists:
And the following "course enrolments" exist:
| user | course | role |
| student1 | C1 | student |
| teacher1 | C1 | editingteacher |
And the following "permission overrides" exists:
And the following "permission overrides" exist:
| capability | permission | role | contextlevel | reference |
| mod/forum:editanypost | Allow | student | Course | C1 |
| mod/forum:replynews | Prevent | editingteacher | Course | C1 |
@@ -89,21 +89,21 @@ Feature: Set up contextual data for tests
And I follow "Course 1"
And I expand "Users" node
And I follow "Permissions"
And I select "Student (1)" from "Advanced role override"
Then the "mod/forum:editanypost" field should match "1" value
And I set the field "Advanced role override" to "Student (1)"
Then "mod/forum:editanypost" capability has "Allow" permission
And I press "Cancel"
And I select "Teacher (1)" from "Advanced role override"
And the "mod/forum:replynews" field should match "-1" value
And I set the field "Advanced role override" to "Teacher (1)"
And "mod/forum:replynews" capability has "Prevent" permission
And I press "Cancel"
Scenario: Add course enrolments
Given the following "users" exists:
Given the following "users" exist:
| username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com |
And the following "courses" exists:
And the following "courses" exist:
| fullname | shortname | format |
| Course 1 | C1 | topics |
And the following "course enrolments" exists:
And the following "course enrolments" exist:
| user | course | role |
| student1 | C1 | student |
When I log in as "student1"
@@ -111,22 +111,32 @@ Feature: Set up contextual data for tests
Then I should see "Topic 1"
Scenario: Add role assigns
Given the following "users" exists:
Given the following "roles" exist:
| name | shortname | description | archetype |
| Custom editing teacher | custom1 | My custom role 1 | editingteacher |
| Custom student | custom2 | | |
And the following "users" exist:
| username | firstname | lastname | email |
| user1 | User | 1 | user1@moodlemoodle.com |
| user2 | User | 2 | user2@moodlemoodle.com |
| user3 | User | 3 | user3@moodlemoodle.com |
And the following "categories" exists:
| user4 | User | 4 | user4@moodlemoodle.com |
| user5 | User | 5 | user5@moodlemoodle.com |
And the following "categories" exist:
| name | category | idnumber |
| Cat 1 | 0 | CAT1 |
And the following "courses" exists:
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | CAT1 |
And the following "role assigns" exists:
And the following "course enrolments" exist:
| user | course | role |
| user4 | C1 | custom1 |
And the following "role assigns" exist:
| user | role | contextlevel | reference |
| user1 | manager | System | |
| user2 | editingteacher | Category | CAT1 |
| user3 | editingteacher | Course | C1 |
| user5 | custom2 | System | |
When I log in as "user1"
Then I should see "Front page settings"
And I log out
@@ -137,47 +147,99 @@ Feature: Set up contextual data for tests
And I log in as "user3"
And I follow "Course 1"
And I should see "Turn editing on"
And I log out
And I log in as "user4"
And I follow "Course 1"
And I should see "Turn editing on"
And I log out
And I log in as "user5"
And I should see "You are logged in as"
And I follow "Course 1"
And I should see "You can not enrol yourself in this course."
Scenario: Add modules
Given the following "courses" exists:
Given the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
And the following "activities" exists:
| activity | name | intro | course | idnumber |
| assign | Test assignment name | Test assignment description | C1 | assign1 |
| data | Test database name | Test database description | C1 | data1 |
And the following "activities" exist:
| activity | name | intro | course | idnumber |
| assign | Test assignment name | Test assignment description | C1 | assign1 |
| assignment | Test assignment22 name | Test assignment22 description | C1 | assignment1 |
| book | Test book name | Test book description | C1 | book1 |
| chat | Test chat name | Test chat description | C1 | chat1 |
| choice | Test choice name | Test choice description | C1 | choice1 |
| data | Test database name | Test database description | C1 | data1 |
| feedback | Test feedback name | Test feedback description | C1 | feedback1 |
| folder | Test folder name | Test folder description | C1 | folder1 |
| forum | Test forum name | Test forum description | C1 | forum1 |
| glossary | Test glossary name | Test glossary description | C1 | glossary1 |
| imscp | Test imscp name | Test imscp description | C1 | imscp1 |
| label | Test label name | Test label description | C1 | label1 |
| lesson | Test lesson name | Test lesson description | C1 | lesson1 |
| lti | Test lti name | Test lti description | C1 | lti1 |
| page | Test page name | Test page description | C1 | page1 |
| quiz | Test quiz name | Test quiz description | C1 | quiz1 |
| resource | Test resource name | Test resource description | C1 | resource1 |
| scorm | Test scorm name | Test scorm description | C1 | scorm1 |
| survey | Test survey name | Test survey description | C1 | survey1 |
| url | Test url name | Test url description | C1 | url1 |
| wiki | Test wiki name | Test wiki description | C1 | wiki1 |
| workshop | Test workshop name | Test workshop description | C1 | workshop1 |
When I log in as "admin"
And I follow "Course 1"
Then I should see "Test assignment name"
# Assignment 2.2 module type is disabled by default
# And I should see "Test assignment22 name"
And I should see "Test book name"
And I should see "Test chat name"
And I should see "Test choice name"
And I should see "Test database name"
# Feedback module type is disabled by default
# And I should see "Test feedback name"
And I should see "Test folder name"
And I should see "Test forum name"
And I should see "Test glossary name"
And I should see "Test imscp name"
# We don't see label name, we see only description:
And I should see "Test label description"
And I should see "Test lesson name"
And I should see "Test lti name"
And I should see "Test page name"
And I should see "Test quiz name"
And I should see "Test resource name"
And I should see "Test scorm name"
And I should see "Test survey name"
And I should see "Test url name"
And I should see "Test wiki name"
And I should see "Test workshop name"
And I follow "Test assignment name"
And I should see "Test assignment description"
@javascript
Scenario: Add relations between users and groups
Given the following "users" exists:
Given the following "users" exist:
| username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com |
| student2 | Student | 2 | student2@asd.com |
And the following "courses" exists:
And the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
And the following "groups" exists:
And the following "groups" exist:
| name | course | idnumber |
| Group 1 | C1 | G1 |
| Group 2 | C1 | G2 |
And the following "groupings" exists:
And the following "groupings" exist:
| name | course | idnumber |
| Grouping 1 | C1 | GG1 |
And the following "course enrolments" exists:
And the following "course enrolments" exist:
| user | course | role |
| student1 | C1 | student |
| student2 | C1 | student |
And the following "group members" exists:
And the following "group members" exist:
| user | group |
| student1 | G1 |
| student2 | G2 |
And the following "grouping groups" exists:
And the following "grouping groups" exist:
| grouping | group |
| GG1 | G1 |
When I log in as "admin"
@@ -186,9 +248,7 @@ Feature: Set up contextual data for tests
And I follow "Groups"
Then the "groups" select box should contain "Group 1 (1)"
And the "groups" select box should contain "Group 2 (1)"
And I select "Group 1 (1)" from "groups"
And I wait "5" seconds
And I set the field "groups" to "Group 1 (1)"
And the "members" select box should contain "Student 1"
And I select "Group 2 (1)" from "groups"
And I wait "5" seconds
And I set the field "groups" to "Group 2 (1)"
And the "members" select box should contain "Student 2"
@@ -5,13 +5,13 @@ Feature: Edit capabilities
I need to allow/deny the existing capabilities at different levels
Background:
Given the following "users" exists:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com |
And the following "courses" exists:
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exists:
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
@@ -25,10 +25,10 @@ Feature: Edit capabilities
| moodle/grade:managesharedforms | Prevent |
| moodle/course:request | Prohibit |
When I follow "Edit Teacher role"
Then the "block/mnet_hosts:myaddinstance" field should match "1" value
And the "moodle/community:add" field should match "0" value
And the "moodle/grade:managesharedforms" field should match "-1" value
And the "moodle/course:request" field should match "-1000" value
Then "block/mnet_hosts:myaddinstance" capability has "Allow" permission
And "moodle/community:add" capability has "Not set" permission
And "moodle/grade:managesharedforms" capability has "Prevent" permission
And "moodle/course:request" capability has "Prohibit" permission
@javascript
Scenario: Course capabilities overrides
@@ -40,10 +40,10 @@ Feature: Edit capabilities
| mod/forum:deleteanypost | Prohibit |
| mod/forum:editanypost | Prevent |
| mod/forum:addquestion | Allow |
When I select "Student (3)" from "Advanced role override"
Then the "mod/forum:deleteanypost" field should match "-1000" value
And the "mod/forum:editanypost" field should match "-1" value
And the "mod/forum:addquestion" field should match "1" value
When I set the field "Advanced role override" to "Student (3)"
Then "mod/forum:deleteanypost" capability has "Prohibit" permission
And "mod/forum:editanypost" capability has "Prevent" permission
And "mod/forum:addquestion" capability has "Allow" permission
@javascript
Scenario: Module capabilities overrides
@@ -59,7 +59,7 @@ Feature: Edit capabilities
| mod/forum:deleteanypost | Prohibit |
| mod/forum:editanypost | Prevent |
| mod/forum:addquestion | Allow |
When I select "Student (3)" from "Advanced role override"
Then the "mod/forum:deleteanypost" field should match "-1000" value
And the "mod/forum:editanypost" field should match "-1" value
And the "mod/forum:addquestion" field should match "1" value
When I set the field "Advanced role override" to "Student (3)"
Then "mod/forum:deleteanypost" capability has "Prohibit" permission
And "mod/forum:editanypost" capability has "Prevent" permission
And "mod/forum:addquestion" capability has "Allow" permission
@@ -0,0 +1,173 @@
@tool_behat
Feature: Verify that all form fields values can be get and set
In order to use behat steps definitions
As a test writer
I need to verify it all works in real moodle forms
Background:
Given the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "users" exist:
| username | email | firstname | lastname |
| student1 | s1@asd.com | Student | 1 |
| student2 | s2@asd.com | Student | 2 |
| student3 | s3@asd.com | Student | 3 |
And the following "course enrolments" exist:
| user | course | role |
| student1 | C1 | student |
| student2 | C1 | student |
| student3 | C1 | student |
| admin | C1 | editingteacher |
And the following "groups" exist:
| name | description | course | idnumber |
| Group 1 | G1 description | C1 | G1 |
| Group 2 | G1 description | C1 | G2 |
And the following "group members" exist:
| user | group |
| student1 | G1 |
| student2 | G1 |
| student2 | G2 |
| student3 | G2 |
And the following "activities" exist:
| activity | course | idnumber | name | intro | firstpagetitle | wikimode | visible |
| wiki | C1 | wiki1 | Test this one | Test this one | Test this one | collaborative | 0 |
And I log in as "admin"
And I expand "Site administration" node
And I expand "Appearance" node
And I follow "Manage tags"
# Select (multi-select) - We will check "I set the field...".
And I set the field "otagsadd" to "OT1, OT2, OT3, OT4, OT5"
And I press "Add official tags"
And I am on homepage
And I follow "Course 1"
And I turn editing mode on
And I follow "Test this one"
And I press "Create page"
# Select (multi-select) - Checking "the select box should contain".
And the "tags[officialtags][]" select box should contain "OT1"
And the "tags[officialtags][]" select box should contain "OT2"
And the "tags[officialtags][]" select box should contain "OT3"
And the "tags[officialtags][]" select box should contain "OT4"
And the "tags[officialtags][]" select box should contain "OT5"
And the "tags[officialtags][]" select box should contain "OT1, OT2, OT3, OT4, OT5"
And the "tags[officialtags][]" select box should contain "OT5, OT4, OT3, OT2, OT1"
And the "tags[officialtags][]" select box should not contain "OT6"
And the "tags[officialtags][]" select box should not contain "OT7"
And the "tags[officialtags][]" select box should not contain "OT6, OT7"
# Text (textarea & editor) & Select (multi-select) - Checking "I set the following fields to these values".
When I set the following fields to these values:
| HTML format | Student page contents to be tagged |
| tags[officialtags][] | OT1, OT3, OT5 |
And I press "Save"
Then I should see "Student page contents to be tagged" in the "region-main" "region"
And I should see "OT1" in the ".wiki-tags" "css_element"
And I should see "OT3" in the ".wiki-tags" "css_element"
And I should see "OT5" in the ".wiki-tags" "css_element"
And I should not see "OT2" in the ".wiki-tags" "css_element"
And I should not see "OT4" in the ".wiki-tags" "css_element"
And I follow "Edit"
# Select (multi-select) - Checking "I set the field".
And I set the field "tags[officialtags][]" to "OT2, OT4"
And I press "Save"
And I should see "OT2" in the ".wiki-tags" "css_element"
And I should see "OT4" in the ".wiki-tags" "css_element"
And I should not see "OT1" in the ".wiki-tags" "css_element"
And I should not see "OT3" in the ".wiki-tags" "css_element"
And I should not see "OT5" in the ".wiki-tags" "css_element"
And I follow "Edit"
# Select (multi-select) - Checking "the field matches value" and "the field does not match value".
And the field "tags[officialtags][]" matches value "OT2, OT4"
And the field "tags[officialtags][]" does not match value "OT4"
And the field "tags[officialtags][]" does not match value "OT2"
And the field "tags[officialtags][]" does not match value "OT1, OT3, OT5"
And I press "Cancel"
And I follow "Edit settings"
And I expand all fieldsets
# Checkbox - Checking "I set the field".
And I set the field "Display description on course page" to "1"
# Checkbox - Checking "I set the following fields to these values:".
And I set the following fields to these values:
| Force format | 1 |
# Checkbox - Checking "the field matches value" and "the field does not match value".
And the field "Display description on course page" matches value "1"
And the field "Display description on course page" does not match value ""
And I press "Save and return to course"
And I should see "Test this one"
And I follow "Test this one"
And I follow "Edit settings"
# Checkbox - Checking "the field matches value" and "the following fields match these values".
And the following fields match these values:
| Display description on course page | 1 |
| Default format | HTML |
| Wiki name | Test this one |
And the field "Force format" matches value "1"
# Select (simple) - Checking "I set the following fields to these values:".
And I set the following fields to these values:
| Default format | NWiki |
| Display description on course page | |
# Checkbox - Checking "I set the field" to uncheck.
And I set the field "Force format" to ""
# Select (simple) - Checking "I set the field".
And I set the field "Group mode" to "Separate groups"
And I press "Save and display"
And I follow "Edit settings"
And the following fields match these values:
| Default format | NWiki |
| Group mode | Separate groups |
| Display description on course page | |
| Force format | |
# All fields - Checking "the following fields do not match these values".
And the following fields do not match these values:
| Wiki name | Test this one baby |
| Default format | HTML |
| Force format | 1 |
And I press "Cancel"
And I follow "Course 1"
# Radio - Checking "I set the field" and "the field matches value".
And I add a "Choice" to section "1" and I fill the form with:
| Choice name | Test choice name |
| Description | Test choice description |
| Allow choice to be updated | Yes |
| Option 1 | one |
| Option 2 | two |
| Option 3 | three |
And I follow "Test choice name"
And I set the field "one" to "1"
And I press "Save my choice"
And the field "one" matches value "1"
And the field "two" matches value ""
Scenario: with JS disabled all form fields getters and setters works as expected
@javascript
Scenario: with JS enabled all form fields getters and setters works as expected
Then I follow "Course 1"
And I expand "Users" node
And I follow "Groups"
# Select (multi-select & AJAX) - Checking "I set the field" and "select box should contain".
And I set the field "groups" to "Group 2"
And the "members" select box should contain "Student 2"
And the "members" select box should contain "Student 3"
And the "members" select box should not contain "Student 1"
And I set the field "groups" to "Group 1"
And the "members" select box should contain "Student 1"
And the "members" select box should contain "Student 2"
And the "members" select box should not contain "Student 3"
# Checkbox (AJAX) - Checking "I set the field" and "I set the following fields to these values".
And I follow "Course 1"
And I add a "Lesson" to section "1"
And I set the following fields to these values:
| Name | Test lesson |
| available[enabled] | 1 |
And I set the field "deadline[enabled]" to "1"
# Checkbox (AJAX) - Checking "the field matches value" before saving.
And the field "available[enabled]" matches value "1"
And the "available[day]" "field" should be enabled
And the field "deadline[enabled]" matches value "1"
And I press "Save and display"
And I follow "Edit settings"
And the field "available[enabled]" matches value "1"
And the "available[day]" "field" should be enabled
And the field "deadline[enabled]" matches value "1"
And I press "Cancel"
@@ -7,9 +7,7 @@ Feature: List the system steps definitions
Background:
Given I am on homepage
And I log in as "admin"
And I expand "Site administration" node
And I expand "Development" node
And I follow "Acceptance testing"
And I navigate to "Acceptance testing" node in "Site administration > Development"
@javascript
Scenario: Accessing the list
@@ -18,14 +16,14 @@ Feature: List the system steps definitions
@javascript
Scenario: Filtering by type
Given I select "Then. Checkings to ensure the outcomes are the expected ones" from "Type"
Given I set the field "Type" to "Then. Checkings to ensure the outcomes are the expected ones"
When I press "Filter"
Then I should see "Checks, that page contains specified text."
And I should not see "Opens Moodle homepage."
@javascript
Scenario: Filtering by keyword
Given I fill in "Contains" with "homepage"
Given I set the field "Contains" to "homepage"
When I press "Filter"
Then I should see "Opens Moodle homepage."
@@ -7,21 +7,20 @@ Feature: Forms manipulation
@javascript
Scenario: Basic forms manipulation
Given I log in as "admin"
And I follow "Admin User"
And I follow "Edit profile"
When I fill in "First name" with "Field value"
And I select "Plain text area" from "Text editor"
And I check "Unmask"
Then the "First name" field should match "Field value" value
And I navigate to "Edit profile" node in "My profile settings"
When I set the field "First name" to "Field value"
And I set the field "Text editor" to "Plain text area"
And I set the field "Unmask" to "1"
Then the field "First name" matches value "Field value"
And the "Text editor" select box should contain "Plain text area"
And the "Unmask" checkbox should be checked
And I uncheck "Unmask"
And the "Unmask" checkbox should not be checked
And the field "Unmask" matches value "1"
And I set the field "Unmask" to ""
And the field "Unmask" matches value ""
And I press "Update profile"
@javascript
Scenario: Expand all fieldsets and advanced elements
Given the following "courses" exists:
Given the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
@@ -32,5 +31,5 @@ Feature: Forms manipulation
Then I should see "Close the quiz"
And I should see "Group mode"
And I should see "Grouping"
And I should not see "Show more..." in the "region-main-box" "region"
And I should not see "Show more..." in the "region-main" "region"
And I should see "Show less..."
@@ -6,55 +6,54 @@ Feature: Transform steps arguments
Background:
Given I am on homepage
And the following "courses" exists:
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
And I follow "Admin User"
And I follow "Edit profile"
And I navigate to "Edit profile" node in "My profile settings"
Scenario: Use nasty strings on steps arguments
When I fill in "Surname" with "$NASTYSTRING1"
And I fill in "Description" with "$NASTYSTRING2"
And I fill in "City/town" with "$NASTYSTRING3"
When I set the field "Surname" to "$NASTYSTRING1"
And I set the field "Description" to "$NASTYSTRING2"
And I set the field "City/town" to "$NASTYSTRING3"
And I press "Update profile"
And I follow "Edit profile"
Then I should not see "NASTYSTRING"
And the "Surname" field should match "$NASTYSTRING1" value
And the "City/town" field should match "$NASTYSTRING3" value
And the field "Surname" matches value "$NASTYSTRING1"
And the field "City/town" matches value "$NASTYSTRING3"
Scenario: Use nasty strings on table nodes
When I fill the moodle form with:
When I set the following fields to these values:
| Surname | $NASTYSTRING1 |
| Description | $NASTYSTRING2 |
| City/town | $NASTYSTRING3 |
And I press "Update profile"
And I follow "Edit profile"
Then I should not see "NASTYSTRING"
And the "Surname" field should match "$NASTYSTRING1" value
And the "City/town" field should match "$NASTYSTRING3" value
And the field "Surname" matches value "$NASTYSTRING1"
And the field "City/town" matches value "$NASTYSTRING3"
Scenario: Use double quotes
When I fill the moodle form with:
When I set the following fields to these values:
| First name | va"lue1 |
| Description | va\"lue2 |
And I fill in "City/town" with "va\"lue3"
And I set the field "City/town" to "va\"lue3"
And I press "Update profile"
And I follow "Edit profile"
Then I should not see "NASTYSTRING"
And the "First name" field should match "va\"lue1" value
And the "Description" field should match "va\\"lue2" value
And the "City/town" field should match "va\"lue3" value
And the field "First name" matches value "va\"lue1"
And the field "Description" matches value "va\\"lue2"
And the field "City/town" matches value "va\"lue3"
@javascript
Scenario: Nasty strings with other contents
When I fill in "First name" with "My Firstname $NASTYSTRING1"
And I fill the moodle form with:
When I set the field "First name" to "My Firstname $NASTYSTRING1"
And I set the following fields to these values:
| Surname | My Surname $NASTYSTRING2 |
And I press "Update profile"
And I follow "Edit profile"
Then I should not see "NASTYSTRING"
And I should see "My Firstname"
And I should see "My Surname"
And the "First name" field should match "My Firstname $NASTYSTRING1" value
And the "Surname" field should match "My Surname $NASTYSTRING2" value
And the field "First name" matches value "My Firstname $NASTYSTRING1"
And the field "Surname" matches value "My Surname $NASTYSTRING2"
+193
View File
@@ -0,0 +1,193 @@
<?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/>.
/**
* Unit tests for behat manager.
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
global $CFG;
require_once($CFG->dirroot . '/' . $CFG->admin .'/tool/behat/locallib.php');
require_once($CFG->libdir . '/behat/classes/util.php');
require_once($CFG->libdir . '/behat/classes/behat_config_manager.php');
/**
* Behat manager tests.
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_behat_manager_testcase extends advanced_testcase {
/**
* behat_config_manager tests.
*/
public function test_merge_configs() {
// Simple default config.
$array1 = array(
'the' => 'same',
'simple' => 'value',
'array' => array(
'one' => 'arrayvalue1',
'two' => 'arrayvalue2'
)
);
// Simple override.
$array2 = array(
'simple' => 'OVERRIDDEN1',
'array' => array(
'one' => 'OVERRIDDEN2'
),
'newprofile' => array(
'anotherlevel' => array(
'andanotherone' => array(
'list1',
'list2'
)
)
)
);
$array = testable_behat_config_manager::merge_config($array1, $array2);
// Overrides are applied.
$this->assertEquals('OVERRIDDEN1', $array['simple']);
$this->assertEquals('OVERRIDDEN2', $array['array']['one']);
// Other values are respected.
$this->assertNotEmpty($array['array']['two']);
// Completely new nodes are added.
$this->assertNotEmpty($array['newprofile']);
$this->assertNotEmpty($array['newprofile']['anotherlevel']['andanotherone']);
$this->assertEquals('list1', $array['newprofile']['anotherlevel']['andanotherone'][0]);
$this->assertEquals('list2', $array['newprofile']['anotherlevel']['andanotherone'][1]);
// Complex override changing vectors to scalars and scalars to vectors.
$array2 = array(
'simple' => array(
'simple' => 'should',
'be' => 'overridden',
'by' => 'this-array'
),
'array' => 'one'
);
$array = testable_behat_config_manager::merge_config($array1, $array2);
// Overrides applied.
$this->assertNotEmpty($array['simple']);
$this->assertNotEmpty($array['array']);
$this->assertTrue(is_array($array['simple']));
$this->assertFalse(is_array($array['array']));
// Other values are maintained.
$this->assertEquals('same', $array['the']);
}
/**
* behat_config_manager tests.
*/
public function test_config_file_contents() {
global $CFG;
// Skip tests if behat is not installed.
$vendorpath = $CFG->dirroot . '/vendor';
if (!file_exists($vendorpath . '/autoload.php') || !is_dir($vendorpath . '/behat')) {
$this->markTestSkipped('Behat not installed.');
}
// Add some fake test url.
$CFG->behat_wwwroot = 'http://example.com/behat';
// To avoid user value at config.php level.
unset($CFG->behat_config);
// List.
$features = array(
'feature1',
'feature2',
'feature3'
);
// Associative array.
$stepsdefinitions = array(
'micarro' => '/me/lo/robaron',
'anoche' => '/cuando/yo/dormia'
);
$contents = testable_behat_config_manager::get_config_file_contents($features, $stepsdefinitions);
// YAML decides when is is necessary to wrap strings between single quotes, so not controlled
// values like paths should not be asserted including the key name as they would depend on the
// directories values.
$this->assertContains($CFG->dirroot . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'behat' . DIRECTORY_SEPARATOR . 'features', $contents);
// Not quoted strings.
$this->assertContains('micarro: /me/lo/robaron', $contents);
$this->assertContains('class: behat_init_context', $contents);
// YAML uses single quotes to wrap URL strings.
$this->assertContains("base_url: '" . $CFG->behat_wwwroot . "'", $contents);
// Lists.
$this->assertContains('- feature1', $contents);
$this->assertContains('- feature3', $contents);
unset($CFG->behat_wwwroot);
}
}
/**
* Allows access to internal methods without exposing them.
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class testable_behat_config_manager extends behat_config_manager {
/**
* Allow access to protected method
* @see parent::merge_config()
* @param mixed $config
* @param mixed $localconfig
* @return mixed
*/
public static function merge_config($config, $localconfig) {
return parent::merge_config($config, $localconfig);
}
/**
* Allow access to protected method
* @see parent::get_config_file_contents()
* @param array $features
* @param array $stepsdefinitions
* @return string
*/
public static function get_config_file_contents($features, $stepsdefinitions) {
return parent::get_config_file_contents($features, $stepsdefinitions);
}
}
-189
View File
@@ -1,189 +0,0 @@
<?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/>.
/**
* Unit tests for admin/tool/behat.
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
global $CFG;
require_once($CFG->dirroot . '/' . $CFG->admin .'/tool/behat/locallib.php');
require_once($CFG->libdir . '/behat/classes/util.php');
require_once($CFG->libdir . '/behat/classes/behat_config_manager.php');
/**
* Allows access to internal methods without exposing them.
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class testable_behat_config_manager extends behat_config_manager {
/**
* Allow access to protected method
* @see parent::merge_config()
* @param mixed $config
* @param mixed $localconfig
* @return mixed
*/
public static function merge_config($config, $localconfig) {
return parent::merge_config($config, $localconfig);
}
/**
* Allow access to protected method
* @see parent::get_config_file_contents()
* @param array $features
* @param array $stepsdefinitions
* @return string
*/
public static function get_config_file_contents($features, $stepsdefinitions) {
return parent::get_config_file_contents($features, $stepsdefinitions);
}
}
/**
* Tool behat tests.
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_behat_testcase extends advanced_testcase {
/**
* behat_config_manager tests.
*/
public function test_merge_configs() {
// Simple default config.
$array1 = array(
'the' => 'same',
'simple' => 'value',
'array' => array(
'one' => 'arrayvalue1',
'two' => 'arrayvalue2'
)
);
// Simple override.
$array2 = array(
'simple' => 'OVERRIDDEN1',
'array' => array(
'one' => 'OVERRIDDEN2'
),
'newprofile' => array(
'anotherlevel' => array(
'andanotherone' => array(
'list1',
'list2'
)
)
)
);
$array = testable_behat_config_manager::merge_config($array1, $array2);
// Overriddes are applied.
$this->assertEquals('OVERRIDDEN1', $array['simple']);
$this->assertEquals('OVERRIDDEN2', $array['array']['one']);
// Other values are respected.
$this->assertNotEmpty($array['array']['two']);
// Completely new nodes are added.
$this->assertNotEmpty($array['newprofile']);
$this->assertNotEmpty($array['newprofile']['anotherlevel']['andanotherone']);
$this->assertEquals('list1', $array['newprofile']['anotherlevel']['andanotherone'][0]);
$this->assertEquals('list2', $array['newprofile']['anotherlevel']['andanotherone'][1]);
// Complex override changing vectors to scalars and scalars to vectors.
$array2 = array(
'simple' => array(
'simple' => 'should',
'be' => 'overridden',
'by' => 'this-array'
),
'array' => 'one'
);
$array = testable_behat_config_manager::merge_config($array1, $array2);
// Overrides applied.
$this->assertNotEmpty($array['simple']);
$this->assertNotEmpty($array['array']);
$this->assertTrue(is_array($array['simple']));
$this->assertFalse(is_array($array['array']));
// Other values are maintained.
$this->assertEquals('same', $array['the']);
}
/**
* behat_config_manager tests.
*/
public function test_config_file_contents() {
global $CFG;
// Skip tests if behat is not installed.
$vendorpath = $CFG->dirroot . '/vendor';
if (!file_exists($vendorpath . '/autoload.php') || !is_dir($vendorpath . '/behat')) {
$this->markTestSkipped('Behat not installed.');
}
// To avoid user value at config.php level.
unset($CFG->behat_config);
// List.
$features = array(
'feature1',
'feature2',
'feature3'
);
// Associative array.
$stepsdefinitions = array(
'micarro' => '/me/lo/robaron',
'anoche' => '/cuando/yo/dormia'
);
$contents = testable_behat_config_manager::get_config_file_contents($features, $stepsdefinitions);
// YAML decides when is is necessary to wrap strings between single quotes, so not controlled
// values like paths should not be asserted including the key name as they would depend on the
// directories values.
$this->assertContains($CFG->dirroot . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'behat' . DIRECTORY_SEPARATOR . 'features', $contents);
// Not quoted strings.
$this->assertContains('micarro: /me/lo/robaron', $contents);
$this->assertContains('class: behat_init_context', $contents);
// YAML uses single quotes to wrap URL strings.
$this->assertContains("base_url: '" . $CFG->behat_wwwroot . "'", $contents);
// Lists.
$this->assertContains('- feature1', $contents);
$this->assertContains('- feature3', $contents);
}
}
+8
View File
@@ -0,0 +1,8 @@
This files describes API changes in the tool_behat code.
=== 2.7 ===
* Constants behat_base::cap_allow, behat_base::cap_prevent and
behat_base::cap_prohibit have been removed in favour of the
lang/en/role.php language strings 'allow', 'prevent' and 'prohibit'.
* @_only_local tag used in .feature files replaced by @_file_upload tag
* @_alerts tag used in .feature files replaced by @_alert tag
+3 -3
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013110500;
$plugin->requires = 2013110500; // Requires Moodle 2.5.
$plugin->component = 'tool_behat';
$plugin->version = 2014051200; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2014050800; // Requires this Moodle version
$plugin->component = 'tool_behat'; // Full name of the plugin (used for diagnostics)
@@ -0,0 +1,83 @@
<?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/>.
/**
* The tool_capability report viewed event.
*
* @package tool_capability
* @copyright 2014 Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_capability\event;
/**
* The tool_capability report viewed event class.
*
* @package tool_capability
* @since Moodle 2.7
* @copyright 2014 Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class report_viewed extends \core\event\base {
/**
* Init method.
*
* @return void
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['edulevel'] = self::LEVEL_OTHER;
$this->context = \context_system::instance();
}
/**
* Return localised event name.
*
* @return string
*/
public static function get_name() {
return get_string('eventreportviewed', 'tool_capability');
}
/**
* Returns description of what happened.
*
* @return string
*/
public function get_description() {
return "The user with id '$this->userid' viewed the capability overview report.";
}
/**
* Return the legacy event log data.
*
* @return array
*/
protected function get_legacy_logdata() {
return array(SITEID, 'admin', 'tool capability', 'tool/capability/index.php');
}
/**
* Returns relevant URL.
*
* @return \moodle_url
*/
public function get_url() {
return new \moodle_url('/admin/tool/capability/index.php');
}
}
+1 -1
View File
@@ -92,7 +92,7 @@ if ($data = $form->get_data()) {
}
}
add_to_log(SITEID, "admin", "tool capability", "tool/capability/index.php", count($capabilities));
\tool_capability\event\report_viewed::create()->trigger();
$renderer = $PAGE->get_renderer('tool_capability');
@@ -24,6 +24,7 @@
$string['capabilitylabel'] = 'Capability:';
$string['capabilityreport'] = 'Capability overview';
$string['eventreportviewed'] = 'Report viewed';
$string['forroles'] = 'For roles {$a}';
$string['getreport'] = 'Get the overview';
$string['changeoverrides'] = 'Change overrides in this context';
+9 -3
View File
@@ -74,9 +74,15 @@ function tool_capability_calculate_role_data($capability, array $roles) {
// Put the contexts into a tree structure.
foreach ($contexts as $conid => $con) {
$context = context::instance_by_id($conid);
$parentcontext = $context->get_parent_context();
if ($parentcontext) {
$contexts[$parentcontext->id]->children[] = $conid;
try {
$parentcontext = $context->get_parent_context();
if ($parentcontext) { // Will be false if $context is the system context.
$contexts[$parentcontext->id]->children[] = $conid;
}
} catch (dml_missing_record_exception $e) {
// Ignore corrupt context tree structure here. Don't let it break
// showing the rest of the report.
continue;
}
}
+1 -1
View File
@@ -87,7 +87,7 @@ class tool_capability_renderer extends plugin_renderer_base {
$table->attributes['class'] = 'comparisontable';
$table->head = array('&nbsp;');
foreach ($roles as $role) {
$url = new moodle_url('/admin/roles/override.php', array('contextid' => $contextid, 'roleid' => $role->id));
$url = new moodle_url('/admin/roles/define.php', array('action' => 'view', 'roleid' => $role->id));
$table->head[] = html_writer::div(html_writer::link($url, $role->localname));
}
$table->data = array();
@@ -0,0 +1,65 @@
<?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/>.
/**
* Tests for capability overview events.
*
* @package tool_capability
* @copyright 2014 Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
defined('MOODLE_INTERNAL') || die();
/**
* Class for capability overview events.
*
* @package tool_capability
* @copyright 2014 Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
class tool_capability_events_testcase extends advanced_testcase {
/**
* Setup testcase.
*/
public function setUp() {
$this->setAdminUser();
$this->resetAfterTest();
}
/**
* Test the report viewed event.
*/
public function test_report_viewed() {
$event = \tool_capability\event\report_viewed::create();
// Trigger and capture the event.
$sink = $this->redirectEvents();
$event->trigger();
$events = $sink->get_events();
$event = reset($events);
$this->assertInstanceOf('\tool_capability\event\report_viewed', $event);
$this->assertEquals(context_system::instance(), $event->get_context());
$expected = array(SITEID, "admin", "tool capability", "tool/capability/index.php");
$this->assertEventLegacyLogData($expected, $event);
$this->assertEventContextNotUsed($event);
$url = new moodle_url('/admin/tool/capability/index.php');
$this->assertEquals($url, $event->get_url());
$event->get_name();
}
}
+2 -2
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013110500; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2013110500; // Requires this Moodle version.
$plugin->version = 2014051200; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2014050800; // Requires this Moodle version.
$plugin->component = 'tool_capability'; // Full name of the plugin (used for diagnostics).
@@ -9,10 +9,10 @@ YUI.add('moodle-tool_capability-search', function (Y, NAME) {
/**
* Constructs a new capability search manager.
*
* @namespace M.tool_capability.search
* @namespace M.tool_capability
* @class Search
* @constructor
* @extends Y.Base
* @extends Base
*/
var SEARCH = function() {
SEARCH.superclass.constructor.apply(this, arguments);
@@ -144,17 +144,12 @@ Y.extend(SEARCH, Y.Base, SEARCH.prototype, {
}
});
/**
* Core namespace.
* @static
* @class tool_capability
*/
M.tool_capability = M.tool_capability || {};
/**
* Initialises capability search functionality.
* @static
* @method init_capability_search
* @method M.tool_capability.init_capability_search
* @param {Object} options
*/
M.tool_capability.init_capability_search = function(options) {
@@ -9,10 +9,10 @@ YUI.add('moodle-tool_capability-search', function (Y, NAME) {
/**
* Constructs a new capability search manager.
*
* @namespace M.tool_capability.search
* @namespace M.tool_capability
* @class Search
* @constructor
* @extends Y.Base
* @extends Base
*/
var SEARCH = function() {
SEARCH.superclass.constructor.apply(this, arguments);
@@ -144,17 +144,12 @@ Y.extend(SEARCH, Y.Base, SEARCH.prototype, {
}
});
/**
* Core namespace.
* @static
* @class tool_capability
*/
M.tool_capability = M.tool_capability || {};
/**
* Initialises capability search functionality.
* @static
* @method init_capability_search
* @method M.tool_capability.init_capability_search
* @param {Object} options
*/
M.tool_capability.init_capability_search = function(options) {
+3 -8
View File
@@ -7,10 +7,10 @@
/**
* Constructs a new capability search manager.
*
* @namespace M.tool_capability.search
* @namespace M.tool_capability
* @class Search
* @constructor
* @extends Y.Base
* @extends Base
*/
var SEARCH = function() {
SEARCH.superclass.constructor.apply(this, arguments);
@@ -142,17 +142,12 @@ Y.extend(SEARCH, Y.Base, SEARCH.prototype, {
}
});
/**
* Core namespace.
* @static
* @class tool_capability
*/
M.tool_capability = M.tool_capability || {};
/**
* Initialises capability search functionality.
* @static
* @method init_capability_search
* @method M.tool_capability.init_capability_search
* @param {Object} options
*/
M.tool_capability.init_capability_search = function(options) {
+3
View File
@@ -42,5 +42,8 @@ function xmldb_tool_customlang_upgrade($oldversion) {
// Put any upgrade step following this.
// Moodle v2.6.0 release upgrade line.
// Put any upgrade step following this.
return true;
}
+1 -1
View File
@@ -55,7 +55,7 @@ if ($action === 'checkout') {
$progressbar->create(); // prints the HTML code of the progress bar
// we may need a bit of extra execution time and memory here
@set_time_limit(HOURSECS);
core_php_time_limit::raise(HOURSECS);
raise_memory_limit(MEMORY_EXTRA);
tool_customlang_utils::checkout($lng, $progressbar);
+2 -2
View File
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013110500;
$plugin->requires = 2013110500;
$plugin->version = 2014051200;
$plugin->requires = 2014050800;
$plugin->component = 'tool_customlang'; // Full name of the plugin (used for diagnostics)
+2 -2
View File
@@ -50,7 +50,7 @@ require_once($CFG->libdir.'/dtllib.php');
* @return does not return, calls die()
*/
function tool_dbtransfer_export_xml_database($description, $mdb) {
@set_time_limit(0);
core_php_time_limit::raise();
\core\session\manager::write_close(); // Release session.
@@ -77,7 +77,7 @@ function tool_dbtransfer_export_xml_database($description, $mdb) {
* @return void
*/
function tool_dbtransfer_transfer_database(moodle_database $sourcedb, moodle_database $targetdb, progress_trace $feedback = null) {
@set_time_limit(0);
core_php_time_limit::raise();
\core\session\manager::write_close(); // Release session.
+2 -2
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013110500; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2013110500; // Requires this Moodle version.
$plugin->version = 2014051200; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2014050800; // Requires this Moodle version.
$plugin->component = 'tool_dbtransfer'; // Full name of the plugin (used for diagnostics).
+1 -1
View File
@@ -177,7 +177,7 @@ abstract class tool_generator_backend {
// Update time limit so PHP doesn't time out.
if (!CLI_SCRIPT) {
set_time_limit(120);
core_php_time_limit::raise(120);
}
}
+2 -2
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013110500;
$plugin->requires = 2013110500;
$plugin->version = 2014051200;
$plugin->requires = 2014050800;
$plugin->component = 'tool_generator';
-19
View File
@@ -240,25 +240,6 @@ class problem_000005 extends problem_base {
}
}
class problem_000006 extends problem_base {
function title() {
return 'PHP: magic_quotes_runtime is enabled';
}
function exists() {
return (ini_get_bool('magic_quotes_runtime'));
}
function severity() {
return SEVERITY_SIGNIFICANT;
}
function description() {
return 'Your PHP configuration includes an enabled setting, magic_quotes_runtime, that <strong>must be disabled</strong> in order for Moodle to work correctly. Notable symptoms arising from this misconfiguration include strange display errors whenever a text field that includes single or double quotes is processed.';
}
function solution() {
global $CFG;
return '<p>There are two ways you can solve this problem:</p><ol><li>If you have access to your main <strong>php.ini</strong> file, then find the line that looks like this: <pre>magic_quotes_runtime = On</pre> and change it to <pre>magic_quotes_runtime = Off</pre> and then restart your web server. Be warned that this, as any other PHP setting change, might affect other web applications running on the server.</li><li>Finally, you may be able to change this setting just for your site by creating or editing the file <strong>'.$CFG->dirroot.'/.htaccess</strong> to contain this line: <pre>php_value magic_quotes_runtime "Off"</pre></li></ol>';
}
}
class problem_000007 extends problem_base {
function title() {
return 'PHP: file_uploads is disabled';
+2 -2
View File
@@ -25,8 +25,8 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013110500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2013110500; // Requires this Moodle version
$plugin->version = 2014051200; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2014050800; // Requires this Moodle version
$plugin->component = 'tool_health'; // Full name of the plugin (used for diagnostics)
$plugin->maturity = MATURITY_ALPHA; // this version's maturity level
+1 -1
View File
@@ -57,7 +57,7 @@ if (data_submitted() and $confirm and confirm_sesskey()) {
echo $OUTPUT->notification('Please be patient and wait for this to complete...', 'notifysuccess');
set_time_limit(0);
core_php_time_limit::raise();
foreach ($rs as $table) {
$DB->set_debug(true);
+2 -2
View File
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013110500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2013110500; // Requires this Moodle version
$plugin->version = 2014051200; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2014050800; // Requires this Moodle version
$plugin->component = 'tool_innodb'; // Full name of the plugin (used for diagnostics)
+2 -2
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'tool_installaddon';
$plugin->version = 2013110500;
$plugin->requires = 2013110500;
$plugin->version = 2014051200;
$plugin->requires = 2014050800;
$plugin->maturity = MATURITY_STABLE;
+2 -2
View File
@@ -69,7 +69,7 @@ $notice_ok = array();
$notice_error = array();
if (($mode == INSTALLATION_OF_SELECTED_LANG) and confirm_sesskey() and !empty($pack)) {
set_time_limit(0);
core_php_time_limit::raise();
make_temp_directory('');
make_upload_directory('lang');
@@ -125,7 +125,7 @@ if ($mode == DELETION_OF_SELECTED_LANG and !empty($uninstalllang)) {
}
if ($mode == UPDATE_ALL_LANG) {
set_time_limit(0);
core_php_time_limit::raise();
$installer = new lang_installer();
+2 -2
View File
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013110500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2013110500; // Requires this Moodle version
$plugin->version = 2014051200; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2014050800; // Requires this Moodle version
$plugin->component = 'tool_langimport'; // Full name of the plugin (used for diagnostics)
@@ -0,0 +1,127 @@
<?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/>.
/**
* Helper trait buffered_writer
*
* @package tool_log
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_log\helper;
defined('MOODLE_INTERNAL') || die();
/**
* Helper trait buffered_writer. Adds buffer support for the store.
*
* @package tool_log
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
trait buffered_writer {
/** @var array $buffer buffer of events. */
protected $buffer = array();
/** @var array $buffer buffer size of events. */
protected $buffersize;
/** @var int $count Counter. */
protected $count = 0;
/**
* Should the event be ignored (== not logged)?
* @param \core\event\base $event
* @return bool
*/
abstract protected function is_event_ignored(\core\event\base $event);
/**
* Write event in the store with buffering. Method insert_event_entries() must be
* defined.
*
* @param \core\event\base $event
*
* @return void
*/
public function write(\core\event\base $event) {
global $PAGE;
if ($this->is_event_ignored($event)) {
return;
}
// We need to capture current info at this moment,
// at the same time this lowers memory use because
// snapshots and custom objects may be garbage collected.
$entry = $event->get_data();
$entry['other'] = serialize($entry['other']);
$entry['origin'] = $PAGE->requestorigin;
$entry['ip'] = $PAGE->requestip;
$entry['realuserid'] = \core\session\manager::is_loggedinas() ? $_SESSION['USER']->realuser : null;
$this->buffer[] = $entry;
$this->count++;
if (!isset($this->buffersize)) {
$this->buffersize = $this->get_config('buffersize', 50);
}
if ($this->count >= $this->buffersize) {
$this->flush();
}
}
/**
* Flush event buffer.
*/
public function flush() {
if ($this->count == 0) {
return;
}
$events = $this->buffer;
$this->count = 0;
$this->buffer = array();
$this->insert_event_entries($events);
}
/**
* Bulk write a given array of events to the backend. Stores must implement this.
*
* @param array $evententries raw event data
*/
abstract protected function insert_event_entries($evententries);
/**
* Get a config value for the store.
*
* @param string $name Config name
* @param mixed $default default value
*
* @return mixed config value if set, else the default value.
*/
abstract protected function get_config($name, $default = null);
/**
* Push any remaining events to the database. Insert_events() must be
* defined. override in stores if the store doesn't support buffering.
*
*/
public function dispose() {
$this->flush();
}
}
+86
View File
@@ -0,0 +1,86 @@
<?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/>.
/**
* Reader helper trait.
*
* @package tool_log
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_log\helper;
defined('MOODLE_INTERNAL') || die();
/**
* Reader helper trait.
* \tool_log\helper\store must be included before using this trait.
*
* @package tool_log
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*
* @property string $component Frankenstyle plugin name initialised in store trait.
* @property string $store short plugin name initialised in store trait.
*/
trait reader {
/**
* Default get name api.
*
* @return string name of the store.
*/
public function get_name() {
if (get_string_manager()->string_exists('pluginname', $this->component)) {
return get_string('pluginname', $this->component);
}
return $this->store;
}
/**
* Default get description method.
*
* @return string description of the store.
*/
public function get_description() {
if (get_string_manager()->string_exists('pluginname_desc', $this->component)) {
return get_string('pluginname_desc', $this->component);
}
return $this->store;
}
/**
* Adds ID column to $sort to make sure events from one request
* within 1 second are returned in the same order.
*
* @param string $sort
* @return string sort string
*/
protected static function tweak_sort_by_id($sort) {
if (empty($sort)) {
// Mysql does this - unlikely to be used in real life because $sort is always expected.
$sort = "id ASC";
} else if (stripos($sort, 'timecreated') === false) {
$sort .= ", id ASC";
} else if (stripos($sort, 'timecreated DESC') !== false) {
$sort .= ", id DESC";
} else {
$sort .= ", id ASC";
}
return $sort;
}
}
+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/>.
/**
* Helper trait store.
*
* @package tool_log
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_log\helper;
defined('MOODLE_INTERNAL') || die();
/**
* Helper trait store. Adds some helper methods for stores.
*
* @package tool_log
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
trait store {
/** @var \tool_log\log\manager $manager manager instance. */
protected $manager;
/** @var string $component Frankenstyle store name. */
protected $component;
/** @var string $store name of the store. */
protected $store;
/**
* Setup store specific variables.
*
* @param \tool_log\log\manager $manager manager instance.
*/
protected function helper_setup(\tool_log\log\manager $manager) {
$this->manager = $manager;
$called = get_called_class();
$parts = explode('\\', $called);
if (!isset($parts[0]) || strpos($parts[0], 'logstore_') !== 0) {
throw new \coding_exception("Store $called doesn't define classes in correct namespaces.");
}
$this->component = $parts[0];
$this->store = str_replace('logstore_', '', $this->store);
}
/**
* Api to get plugin config
*
* @param string $name name of the config.
* @param null|mixed $default default value to return.
*
* @return mixed|null return config value.
*/
protected function get_config($name, $default = null) {
$value = get_config($this->component, $name);
if ($value !== false) {
return $value;
}
return $default;
}
}
+223
View File
@@ -0,0 +1,223 @@
<?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/>.
/**
* Log store manager.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_log\log;
defined('MOODLE_INTERNAL') || die();
class manager implements \core\log\manager {
/** @var \core\log\reader[] $readers list of initialised log readers */
protected $readers;
/** @var \tool_log\log\writer[] $writers list of initialised log writers */
protected $writers;
/** @var \tool_log\log\store[] $stores list of all enabled stores */
protected $stores;
/**
* Delayed initialisation of singleton.
*/
protected function init() {
if (isset($this->stores)) {
// Do not bother checking readers and writers here
// because everything is init here.
return;
}
$this->stores = array();
$this->readers = array();
$this->writers = array();
// Register shutdown handler - this may be useful for buffering, file handle closing, etc.
\core_shutdown_manager::register_function(array($this, 'dispose'));
$plugins = get_config('tool_log', 'enabled_stores');
if (empty($plugins)) {
return;
}
$plugins = explode(',', $plugins);
foreach ($plugins as $plugin) {
$classname = "\\$plugin\\log\\store";
if (class_exists($classname)) {
$store = new $classname($this);
$this->stores[$plugin] = $store;
if ($store instanceof \tool_log\log\writer) {
$this->writers[$plugin] = $store;
}
if ($store instanceof \core\log\reader) {
$this->readers[$plugin] = $store;
}
}
}
}
/**
* Called from the observer only.
*
* @param \core\event\base $event
*/
public function process(\core\event\base $event) {
$this->init();
foreach ($this->writers as $plugin => $writer) {
try {
$writer->write($event, $this);
} catch (\Exception $e) {
debugging('Exception detected when logging event ' . $event->eventname . ' in ' . $plugin . ': ' .
$e->getMessage(), DEBUG_NORMAL, $e->getTrace());
}
}
}
/**
* Returns list of available log readers.
*
* This way the reports find out available sources of data.
*
* @param string $interface Returned stores must implement this interface.
*
* @return \core\log\reader[] list of available log data readers
*/
public function get_readers($interface = null) {
$this->init();
$return = array();
foreach ($this->readers as $plugin => $reader) {
if (empty($interface) || ($reader instanceof $interface)) {
$return[$plugin] = $reader;
}
}
return $return;
}
/**
* Get a list of reports that support the given store instance.
*
* @param string $logstore Name of the store.
*
* @return array List of supported reports
*/
public function get_supported_reports($logstore) {
$allstores = self::get_store_plugins();
if (empty($allstores[$logstore])) {
// Store doesn't exist.
return array();
}
$reports = get_plugin_list_with_function('report', 'supports_logstore', 'lib.php');
$enabled = $this->stores;
if (empty($enabled[$logstore])) {
// Store is not enabled, init an instance.
$classname = '\\' . $logstore . '\log\store';
$instance = new $classname($this);
} else {
$instance = $enabled[$logstore];
}
$return = array();
foreach ($reports as $report => $fulldir) {
if (component_callback($report, 'supports_logstore', array($instance), false)) {
$return[$report] = get_string('pluginname', $report);
}
}
return $return;
}
/**
* For a given report, returns a list of log stores that are supported.
*
* @param string $component component.
*
* @return false|array list of logstores that support the given report. It returns false if the given $component doesn't
* require logstores.
*/
public function get_supported_logstores($component) {
$allstores = self::get_store_plugins();
$enabled = $this->stores;
$function = component_callback_exists($component, 'supports_logstore');
if (!$function) {
// The report doesn't define the callback, most probably it doesn't need log stores.
return false;
}
$return = array();
foreach ($allstores as $store => $logclass) {
$instance = empty($enabled[$store]) ? new $logclass($this) : $enabled[$store];
if ($function($instance)) {
$return[$store] = get_string('pluginname', $store);
}
}
return $return;
}
/**
* Intended for store management, do not use from reports.
*
* @return store[] Returns list of available store plugins.
*/
public static function get_store_plugins() {
return \core_component::get_plugin_list_with_class('logstore', 'log\store');
}
/**
* Usually called automatically from shutdown manager,
* this allows us to implement buffering of write operations.
*/
public function dispose() {
if ($this->stores) {
foreach ($this->stores as $store) {
$store->dispose();
}
}
$this->stores = null;
$this->readers = null;
$this->writers = null;
}
/**
* Legacy add_to_log() redirection.
*
* To be used only from deprecated add_to_log() function and event trigger() method.
*
* NOTE: this is hardcoded to legacy log store plugin, hopefully we can get rid of it soon.
*
* @param int $courseid The course id
* @param string $module The module name e.g. forum, journal, resource, course, user etc
* @param string $action 'view', 'update', 'add' or 'delete', possibly followed by another word to clarify
* @param string $url The file and parameters used to see the results of the action
* @param string $info Additional description information
* @param int $cm The course_module->id if there is one
* @param int|\stdClass $user If log regards $user other than $USER
*/
public function legacy_add_to_log($courseid, $module, $action, $url = '', $info = '', $cm = 0, $user = 0) {
$this->init();
if (isset($this->stores['logstore_legacy'])) {
$this->stores['logstore_legacy']->legacy_add_to_log($courseid, $module, $action, $url, $info, $cm, $user);
}
}
}
+43
View File
@@ -0,0 +1,43 @@
<?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/>.
/**
* Event observer.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_log\log;
defined('MOODLE_INTERNAL') || die();
class observer {
/**
* Redirect all events to this log manager, but only if this
* log manager is actually used.
*
* @param \core\event\base $event
*/
public static function store(\core\event\base $event) {
$logmanager = get_log_manager();
if (get_class($logmanager) === 'tool_log\log\manager') {
/** @var \tool_log\log\manager $logmanager */
$logmanager->process($event);
}
}
}
+43
View File
@@ -0,0 +1,43 @@
<?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/>.
/**
* Log store interface.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_log\log;
defined('MOODLE_INTERNAL') || die();
interface store {
/**
* Create new instance of store,
* the calling code must make sure only one instance exists.
*
* @param manager $manager
*/
public function __construct(\tool_log\log\manager $manager);
/**
* Notify store no more events are going to be written/read from it.
* @return void
*/
public function dispose();
}
+37
View File
@@ -0,0 +1,37 @@
<?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/>.
/**
* Log store writer interface.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_log\log;
defined('MOODLE_INTERNAL') || die();
interface writer extends store {
/**
* Write one event to the store.
*
* @param \core\event\base $event
* @return void
*/
public function write(\core\event\base $event);
}
@@ -0,0 +1,89 @@
<?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/>.
/**
* Subplugin info class.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_log\plugininfo;
use core\plugininfo\base, moodle_url, part_of_admin_tree, admin_settingpage;
defined('MOODLE_INTERNAL') || die();
/**
* Plugin info class for logging store plugins.
*/
class logstore extends base {
public function is_enabled() {
$enabled = get_config('tool_log', 'enabled_stores');
if (!$enabled) {
return false;
}
$enabled = array_flip(explode(',', $enabled));
return isset($enabled['logstore_' . $this->name]);
}
public function get_settings_section_name() {
return 'logsetting' . $this->name;
}
public function load_settings(part_of_admin_tree $adminroot, $parentnodename, $hassiteconfig) {
global $CFG, $USER, $DB, $OUTPUT, $PAGE; // In case settings.php wants to refer to them.
$ADMIN = $adminroot; // May be used in settings.php.
$section = $this->get_settings_section_name();
if (!$this->is_installed_and_upgraded()) {
return;
}
if (!$hassiteconfig or !file_exists($this->full_path('settings.php'))) {
return;
}
$settings = new admin_settingpage($section, $this->displayname, 'moodle/site:config', $this->is_enabled() === false);
include($this->full_path('settings.php'));
if ($settings) {
$ADMIN->add($parentnodename, $settings);
}
}
public static function get_manage_url() {
return new moodle_url('/admin/settings.php', array('section' => 'managelogging'));
}
public function is_uninstall_allowed() {
return true;
}
public function uninstall_cleanup() {
$enabled = get_config('tool_log', 'enabled_stores');
if ($enabled) {
$enabled = array_flip(explode(',', $enabled));
unset($enabled['logstore_' . $this->name]);
$enabled = array_flip($enabled);
set_config('enabled_stores', implode(',', $enabled), 'tool_log');
}
parent::uninstall_cleanup();
}
}
@@ -0,0 +1,242 @@
<?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/>.
/**
* Store management setting.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once("$CFG->libdir/adminlib.php");
class tool_log_setting_managestores extends admin_setting {
/**
* Calls parent::__construct with specific arguments
*/
public function __construct() {
$this->nosave = true;
parent::__construct('tool_log_manageui', get_string('managelogging', 'tool_log'), '', '');
}
/**
* Always returns true, does nothing.
*
* @return true
*/
public function get_setting() {
return true;
}
/**
* Always returns true, does nothing.
*
* @return true
*/
public function get_defaultsetting() {
return true;
}
/**
* Always returns '', does not write anything.
*
* @param mixed $data ignored
* @return string Always returns ''
*/
public function write_setting($data) {
// Do not write any setting.
return '';
}
/**
* Checks if $query is one of the available log plugins.
*
* @param string $query The string to search for
* @return bool Returns true if found, false if not
*/
public function is_related($query) {
if (parent::is_related($query)) {
return true;
}
$query = core_text::strtolower($query);
$plugins = \tool_log\log\manager::get_store_plugins();
foreach ($plugins as $plugin => $fulldir) {
if (strpos(core_text::strtolower($plugin), $query) !== false) {
return true;
}
$localised = get_string('pluginname', $plugin);
if (strpos(core_text::strtolower($localised), $query) !== false) {
return true;
}
}
return false;
}
/**
* Builds the XHTML to display the control.
*
* @param string $data Unused
* @param string $query
* @return string
*/
public function output_html($data, $query = '') {
global $OUTPUT, $PAGE;
// Display strings.
$strup = get_string('up');
$strdown = get_string('down');
$strsettings = get_string('settings');
$strenable = get_string('enable');
$strdisable = get_string('disable');
$struninstall = get_string('uninstallplugin', 'core_admin');
$strversion = get_string('version');
$pluginmanager = core_plugin_manager::instance();
$logmanager = new \tool_log\log\manager();
$available = $logmanager->get_store_plugins();
$enabled = get_config('tool_log', 'enabled_stores');
if (!$enabled) {
$enabled = array();
} else {
$enabled = array_flip(explode(',', $enabled));
}
$allstores = array();
foreach ($enabled as $key => $store) {
$allstores[$key] = true;
$enabled[$key] = true;
}
foreach ($available as $key => $store) {
$allstores[$key] = true;
$available[$key] = true;
}
$return = $OUTPUT->heading(get_string('actlogshdr', 'tool_log'), 3, 'main', true);
$return .= $OUTPUT->box_start('generalbox loggingui');
$table = new html_table();
$table->head = array(get_string('name'), get_string('reportssupported', 'tool_log'), $strversion, $strenable,
$strup . '/' . $strdown, $strsettings, $struninstall);
$table->colclasses = array('leftalign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign',
'centeralign');
$table->id = 'logstoreplugins';
$table->attributes['class'] = 'admintable generaltable';
$table->data = array();
// Iterate through store plugins and add to the display table.
$updowncount = 1;
$storecount = count($enabled);
$url = new moodle_url('/admin/tool/log/stores.php', array('sesskey' => sesskey()));
$printed = array();
foreach ($allstores as $store => $unused) {
$plugininfo = $pluginmanager->get_plugin_info($store);
$version = get_config($store, 'version');
if ($version === false) {
$version = '';
}
if (get_string_manager()->string_exists('pluginname', $store)) {
$name = get_string('pluginname', $store);
} else {
$name = $store;
}
$reports = $logmanager->get_supported_reports($store);
if (!empty($reports)) {
$supportedreports = implode(', ', $reports);
} else {
$supportedreports = '-';
}
// Hide/show links.
if (isset($enabled[$store])) {
$aurl = new moodle_url($url, array('action' => 'disable', 'store' => $store));
$hideshow = "<a href=\"$aurl\">";
$hideshow .= "<img src=\"" . $OUTPUT->pix_url('t/hide') . "\" class=\"iconsmall\" alt=\"$strdisable\" /></a>";
$isenabled = true;
$displayname = "<span>$name</span>";
} else {
if (isset($available[$store])) {
$aurl = new moodle_url($url, array('action' => 'enable', 'store' => $store));
$hideshow = "<a href=\"$aurl\">";
$hideshow .= "<img src=\"" . $OUTPUT->pix_url('t/show') . "\" class=\"iconsmall\" alt=\"$strenable\" /></a>";
$isenabled = false;
$displayname = "<span class=\"dimmed_text\">$name</span>";
} else {
$hideshow = '';
$isenabled = false;
$displayname = '<span class="notifyproblem">' . $name . '</span>';
}
}
if ($PAGE->theme->resolve_image_location('icon', $store, false)) {
$icon = $OUTPUT->pix_icon('icon', '', $store, array('class' => 'icon pluginicon'));
} else {
$icon = $OUTPUT->pix_icon('spacer', '', 'moodle', array('class' => 'icon pluginicon noicon'));
}
// Up/down link (only if store is enabled).
$updown = '';
if ($isenabled) {
if ($updowncount > 1) {
$aurl = new moodle_url($url, array('action' => 'up', 'store' => $store));
$updown .= "<a href=\"$aurl\">";
$updown .= "<img src=\"" . $OUTPUT->pix_url('t/up') . "\" alt=\"$strup\" class=\"iconsmall\" /></a>&nbsp;";
} else {
$updown .= "<img src=\"" . $OUTPUT->pix_url('spacer') . "\" class=\"iconsmall\" alt=\"\" />&nbsp;";
}
if ($updowncount < $storecount) {
$aurl = new moodle_url($url, array('action' => 'down', 'store' => $store));
$updown .= "<a href=\"$aurl\">";
$updown .= "<img src=\"" . $OUTPUT->pix_url('t/down') . "\" alt=\"$strdown\" class=\"iconsmall\" /></a>";
} else {
$updown .= "<img src=\"" . $OUTPUT->pix_url('spacer') . "\" class=\"iconsmall\" alt=\"\" />";
}
++$updowncount;
}
// Add settings link.
if (!$version) {
$settings = '';
} else {
if ($surl = $plugininfo->get_settings_url()) {
$settings = html_writer::link($surl, $strsettings);
} else {
$settings = '';
}
}
// Add uninstall info.
$uninstall = '';
if ($uninstallurl = core_plugin_manager::instance()->get_uninstall_url($store, 'manage')) {
$uninstall = html_writer::link($uninstallurl, $struninstall);
}
// Add a row to the table.
$table->data[] = array($icon . $displayname, $supportedreports, $version, $hideshow, $updown, $settings, $uninstall);
$printed[$store] = true;
}
$return .= html_writer::table($table);
$return .= get_string('configlogplugins', 'tool_log') . '<br />' . get_string('tablenosave', 'admin');
$return .= $OUTPUT->box_end();
return highlight($query, $return);
}
}
+35
View File
@@ -0,0 +1,35 @@
<?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/>.
/**
* Event observer.
*
* @package tool_log
* @category event
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$observers = array(
array(
'eventname' => '*',
'callback' => '\tool_log\log\observer::store',
'internal' => false, // This means that we get events only after transaction commit.
'priority' => 1000,
),
);
+52
View File
@@ -0,0 +1,52 @@
<?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/>.
/**
* Logging support.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Install the plugin.
*/
function xmldb_tool_log_install() {
global $CFG, $DB;
$enabled = array();
// Add data to new log only from now on.
if (file_exists("$CFG->dirroot/$CFG->admin/tool/log/store/standard")) {
$enabled[] = 'logstore_standard';
}
// Enable legacy log reading, but only if there are existing data.
if (file_exists("$CFG->dirroot/$CFG->admin/tool/log/store/legacy")) {
unset_config('loglegacy', 'logstore_legacy');
// Do not enabled legacy logging if somebody installed a new
// site and in less than one day upgraded to 2.7.
$params = array('yesterday' => time() - 60*60*24);
if ($DB->record_exists_select('log', "time < :yesterday", $params)) {
$enabled[] = 'logstore_legacy';
}
}
set_config('enabled_stores', implode(',', $enabled), 'tool_log');
}
+25
View File
@@ -0,0 +1,25 @@
<?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/>.
/**
* Logging subplugins.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$subplugins = array('logstore' => 'admin/tool/log/store');
+47
View File
@@ -0,0 +1,47 @@
<?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/>.
/**
* Logging support.
*
* @package tool_log
* @copyright 2014 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Upgrade the plugin.
*
* @param int $oldversion
* @return bool always true
*/
function xmldb_tool_log_upgrade($oldversion) {
global $CFG, $DB, $OUTPUT;
$dbman = $DB->get_manager();
if ($oldversion < 2014040600) {
// Reset logging defaults in dev branches,
// in production upgrade the install.php is executed instead.
require_once(__DIR__ . '/install.php');
xmldb_tool_log_install();
upgrade_plugin_savepoint(true, 2014040600, 'tool', 'log');
}
return true;
}
+32
View File
@@ -0,0 +1,32 @@
<?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/>.
/**
* Store management UI lang strings.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['actlogshdr'] = 'Available log stores';
$string['configlogplugins'] = 'Please enable all required plugins and arrange then in appropriate order.';
$string['logging'] = 'Logging';
$string['managelogging'] = 'Manage log stores';
$string['reportssupported'] = 'Reports supported';
$string['pluginname'] = 'Log store manager';
$string['subplugintype_logstore'] = 'Log store';
$string['subplugintype_logstore_plural'] = 'Log stores';
+38
View File
@@ -0,0 +1,38 @@
<?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/>.
/**
* Logging settings.
*
* @package tool_log
* @copyright 2013 Petr Skoda {@link http://skodak.org/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('logging', new lang_string('logging', 'tool_log')));
$temp = new admin_settingpage('managelogging', new lang_string('managelogging', 'tool_log'));
$temp->add(new tool_log_setting_managestores());
$ADMIN->add('logging', $temp);
foreach (core_plugin_manager::instance()->get_plugins_of_type('logstore') as $plugin) {
/** @var \tool_log\plugininfo\logstore $plugin */
$plugin->load_settings($ADMIN, 'logging', $hassiteconfig);
}
}
@@ -0,0 +1,78 @@
<?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/>.
/**
* Helper class locally used.
*
* @package logstore_database
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace logstore_database;
defined('MOODLE_INTERNAL') || die();
/**
* Helper class locally used.
*
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class helper {
/**
* Returns list of fully working database drivers present in system.
* @return array
*/
public static function get_drivers() {
return array(
'' => get_string('choosedots'),
'native/mysqli' => \moodle_database::get_driver_instance('mysqli', 'native')->get_name(),
'native/mariadb' => \moodle_database::get_driver_instance('mariadb', 'native')->get_name(),
'native/pgsql' => \moodle_database::get_driver_instance('pgsql', 'native')->get_name(),
'native/oci' => \moodle_database::get_driver_instance('oci', 'native')->get_name(),
'native/sqlsrv' => \moodle_database::get_driver_instance('sqlsrv', 'native')->get_name(),
'native/mssql' => \moodle_database::get_driver_instance('mssql', 'native')->get_name()
);
}
/**
* Get a list of edu levels.
*
* @return array
*/
public static function get_level_options() {
return array(
\core\event\base::LEVEL_TEACHING => get_string('teaching', 'logstore_database'),
\core\event\base::LEVEL_PARTICIPATING => get_string('participating', 'logstore_database'),
\core\event\base::LEVEL_OTHER => get_string('other', 'logstore_database'),
);
}
/**
* Get a list of database actions.
*
* @return array
*/
public static function get_action_options() {
return array(
'c' => get_string('create', 'logstore_database'),
'r' => get_string('read', 'logstore_database'),
'u' => get_string('update', 'logstore_database'),
'd' => get_string('delete')
);
}
}
@@ -0,0 +1,240 @@
<?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/>.
/**
* External database store.
*
* @package logstore_database
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace logstore_database\log;
defined('MOODLE_INTERNAL') || die();
class store implements \tool_log\log\writer, \core\log\sql_select_reader {
use \tool_log\helper\store,
\tool_log\helper\reader,
\tool_log\helper\buffered_writer {
dispose as helper_dispose;
}
/** @var \moodle_database $extdb */
protected $extdb;
/** @var bool $logguests true if logging guest access */
protected $logguests;
/** @var array $includelevels An array of education levels to include */
protected $includelevels = array();
/** @var array $includeactions An array of actions types to include */
protected $includeactions = array();
/**
* Construct
*
* @param \tool_log\log\manager $manager
*/
public function __construct(\tool_log\log\manager $manager) {
$this->helper_setup($manager);
$this->buffersize = $this->get_config('buffersize', 50);
$this->logguests = $this->get_config('logguests', 1);
$actions = $this->get_config('includeactions', '');
$levels = $this->get_config('includelevels', '');
$this->includeactions = $actions === '' ? array() : explode(',', $actions);
$this->includelevels = $levels === '' ? array() : explode(',', $levels);
}
/**
* Setup the Database.
*
* @return bool
*/
protected function init() {
if (isset($this->extdb)) {
return !empty($this->extdb);
}
$dbdriver = $this->get_config('dbdriver');
if (empty($dbdriver)) {
$this->extdb = false;
return false;
}
list($dblibrary, $dbtype) = explode('/', $dbdriver);
if (!$db = \moodle_database::get_driver_instance($dbtype, $dblibrary, true)) {
debugging("Unknown driver $dblibrary/$dbtype", DEBUG_DEVELOPER);
$this->extdb = false;
return false;
}
$dboptions = array();
$dboptions['dbpersist'] = $this->get_config('dbpersist', '0');
$dboptions['dbsocket'] = $this->get_config('dbsocket', '');
$dboptions['dbport'] = $this->get_config('dbport', '');
$dboptions['dbschema'] = $this->get_config('dbschema', '');
$dboptions['dbcollation'] = $this->get_config('dbcollation', '');
try {
$db->connect($this->get_config('dbhost'), $this->get_config('dbuser'), $this->get_config('dbpass'),
$this->get_config('dbname'), false, $dboptions);
$tables = $db->get_tables();
if (!in_array($this->get_config('dbtable'), $tables)) {
debugging('Cannot find the specified table', DEBUG_DEVELOPER);
$this->extdb = false;
return false;
}
} catch (\moodle_exception $e) {
debugging('Cannot connect to external database: ' . $e->getMessage(), DEBUG_DEVELOPER);
$this->extdb = false;
return false;
}
$this->extdb = $db;
return true;
}
/**
* Should the event be ignored (== not logged)?
* @param \core\event\base $event
* @return bool
*/
protected function is_event_ignored(\core\event\base $event) {
if (!in_array($event->crud, $this->includeactions) &&
!in_array($event->edulevel, $this->includelevels)
) {
// Ignore event if the store settings do not want to store it.
return true;
}
if ((!CLI_SCRIPT or PHPUNIT_TEST) and !$this->logguests) {
// Always log inside CLI scripts because we do not login there.
if (!isloggedin() or isguestuser()) {
return true;
}
}
return false;
}
/**
* Insert events in bulk to the database.
*
* @param array $evententries raw event data
*/
protected function insert_event_entries($evententries) {
if (!$this->init()) {
return;
}
if (!$dbtable = $this->get_config('dbtable')) {
return;
}
try {
$this->extdb->insert_records($dbtable, $evententries);
} catch (\moodle_exception $e) {
debugging('Cannot write to external database: ' . $e->getMessage(), DEBUG_DEVELOPER);
}
}
/**
* Get an array of events based on the passed on params.
*
* @param string $selectwhere select conditions.
* @param array $params params.
* @param string $sort sortorder.
* @param int $limitfrom limit constraints.
* @param int $limitnum limit constraints.
*
* @return array|\core\event\base[] array of events.
*/
public function get_events_select($selectwhere, array $params, $sort, $limitfrom, $limitnum) {
if (!$this->init()) {
return array();
}
if (!$dbtable = $this->get_config('dbtable')) {
return array();
}
$sort = self::tweak_sort_by_id($sort);
$events = array();
$records = $this->extdb->get_records_select($dbtable, $selectwhere, $params, $sort, '*', $limitfrom, $limitnum);
foreach ($records as $data) {
$extra = array('origin' => $data->origin, 'realuserid' => $data->realuserid, 'ip' => $data->ip);
$data = (array)$data;
$id = $data['id'];
$data['other'] = unserialize($data['other']);
if ($data['other'] === false) {
$data['other'] = array();
}
unset($data['origin']);
unset($data['ip']);
unset($data['realuserid']);
unset($data['id']);
$event = \core\event\base::restore($data, $extra);
// Add event to list if it's valid.
if ($event) {
$events[$id] = $event;
}
}
return $events;
}
/**
* Get number of events present for the given select clause.
*
* @param string $selectwhere select conditions.
* @param array $params params.
*
* @return int Number of events available for the given conditions
*/
public function get_events_select_count($selectwhere, array $params) {
if (!$this->init()) {
return 0;
}
if (!$dbtable = $this->get_config('dbtable')) {
return 0;
}
return $this->extdb->count_records_select($dbtable, $selectwhere, $params);
}
/**
* Are the new events appearing in the reader?
*
* @return bool true means new log events are being added, false means no new data will be added
*/
public function is_logging() {
if (!$this->init()) {
return false;
}
return true;
}
/**
* Dispose off database connection after pushing any buffered events to the database.
*/
public function dispose() {
$this->helper_dispose();
if ($this->extdb) {
$this->extdb->dispose();
}
$this->extdb = null;
}
}
@@ -0,0 +1,37 @@
<?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/>.
/**
* Database log store upgrade.
*
* @package logstore_database
* @copyright 2014 onwards Ankit Agarwal <ankit.agrr@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
function xmldb_logstore_database_upgrade($oldversion) {
if ($oldversion < 2014041700) {
// Clean up old config.
unset_config('excludelevels', 'logstore_database');
unset_config('excludeactions', 'logstore_database');
// Savepoint reached.
upgrade_plugin_savepoint(true, 2014041700, 'logstore', 'database');
}
return true;
}
@@ -0,0 +1,51 @@
<?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/>.
/**
* Log store lang strings.
*
* @package logstore_database
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['buffersize'] = 'Buffer size';
$string['buffersize_help'] = 'Number of log entries inserted in one batch database operation, which improves performance.';
$string['conectexception'] = 'Cannot connect to the database.';
$string['create'] = 'Create';
$string['databasesettings'] = 'Database settings';
$string['databasesettings_help'] = 'Connection details for the external log database: {$a}';
$string['databasepersist'] = 'Persistent database connections';
$string['databaseschema'] = 'Database schema';
$string['databasecollation'] = 'Database collation';
$string['databasetable'] = 'Database table';
$string['databasetable_help'] = 'Name of the table where logs will be stored. This table should have a structure identical to the one used by logstore_standard (mdl_logstore_standard_log).';
$string['includeactions'] = 'Include actions of these types';
$string['includelevels'] = 'Include actions with these educational levels';
$string['filters'] = 'Filter logs';
$string['filters_help'] = 'Enable filters that exclude some actions from being logged.';
$string['logguests'] = 'Log guest actions';
$string['other'] = 'Other';
$string['participating'] = 'Participating';
$string['pluginname'] = 'External database log';
$string['pluginname_desc'] = 'A log plugin that stores log entries in an external database table.';
$string['read'] = 'Read';
$string['tablenotfound'] = 'Specified table was not found';
$string['teaching'] = 'Teaching';
$string['testsettings'] = 'Test connection';
$string['testingsettings'] = 'Testing database settings...';
$string['update'] = 'Update';
@@ -0,0 +1,71 @@
<?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/>.
/**
* External database log store settings.
*
* @package logstore_database
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
if ($hassiteconfig) {
$testurl = new moodle_url('/admin/tool/log/store/database/test_settings.php', array('sesskey' => sesskey()));
$test = new admin_externalpage('logstoredbtestsettings', get_string('testsettings', 'logstore_database'),
$testurl, 'moodle/site:config', true);
$ADMIN->add('logging', $test);
$drivers = \logstore_database\helper::get_drivers();
// Database settings.
$link = html_writer::link($testurl, get_string('testsettings', 'logstore_database'), array('target' => '_blank'));
$settings->add(new admin_setting_heading('dbsettings', get_string('databasesettings', 'logstore_database'),
get_string('databasesettings_help', 'logstore_database', $link)));
$settings->add(new admin_setting_configselect('logstore_database/dbdriver', get_string('databasetypehead', 'install'), '',
'', $drivers));
$settings->add(new admin_setting_configtext('logstore_database/dbhost', get_string('databasehost', 'install'), '', ''));
$settings->add(new admin_setting_configtext('logstore_database/dbuser', get_string('databaseuser', 'install'), '', ''));
$settings->add(new admin_setting_configpasswordunmask('logstore_database/dbpass', get_string('databasepass', 'install'), '', ''));
$settings->add(new admin_setting_configtext('logstore_database/dbname', get_string('databasename', 'install'), '', ''));
$settings->add(new admin_setting_configtext('logstore_database/dbtable', get_string('databasetable', 'logstore_database'),
get_string('databasetable_help', 'logstore_database'), ''));
$settings->add(new admin_setting_configcheckbox('logstore_database/dbpersist', get_string('databasepersist',
'logstore_database'), '', '0'));
$settings->add(new admin_setting_configtext('logstore_database/dbsocket', get_string('databasesocket', 'install'), '',
''));
$settings->add(new admin_setting_configtext('logstore_database/dbport', get_string('databaseport', 'install'), '', ''));
$settings->add(new admin_setting_configtext('logstore_database/dbschema', get_string('databaseschema',
'logstore_database'), '', ''));
$settings->add(new admin_setting_configtext('logstore_database/dbcollation', get_string('databasecollation',
'logstore_database'), '', ''));
$settings->add(new admin_setting_configtext('logstore_database/buffersize', get_string('buffersize',
'logstore_database'), get_string('buffersize_help', 'logstore_database'), 50));
// Filters.
$settings->add(new admin_setting_heading('filters', get_string('filters', 'logstore_database'), get_string('filters_help',
'logstore_database')));
$settings->add(new admin_setting_configcheckbox('logstore_database/logguests', get_string('logguests',
'logstore_database'), '', '0'));
$levels = \logstore_database\helper::get_level_options();
$settings->add(new admin_setting_configmulticheckbox('logstore_database/includelevels', get_string('includelevels',
'logstore_database'), '', $levels, $levels));
$actions = \logstore_database\helper::get_action_options();
$settings->add(new admin_setting_configmulticheckbox('logstore_database/includeactions', get_string('includeactions',
'logstore_database'), '', $actions, $actions));
}
@@ -0,0 +1,107 @@
<?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/>.
/**
* Filter form.
*
* @package logstore_database
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once('../../../../../config.php');
require_once($CFG->dirroot . '/lib/adminlib.php');
require_login();
$context = context_system::instance();
require_capability('moodle/site:config', $context);
require_sesskey();
navigation_node::override_active_url(new moodle_url('/admin/settings.php', array('section' => 'logsettingdatabase')));
admin_externalpage_setup('logstoredbtestsettings');
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('testingsettings', 'logstore_database'));
// NOTE: this is not localised intentionally, admins are supposed to understand English at least a bit...
raise_memory_limit(MEMORY_HUGE);
$dbtable = get_config('logstore_database', 'dbtable');
if (empty($dbtable)) {
echo $OUTPUT->notification('External table not specified.', 'notifyproblem');
die();
}
$dbdriver = get_config('logstore_database', 'dbdriver');
list($dblibrary, $dbtype) = explode('/', $dbdriver);
if (!$db = \moodle_database::get_driver_instance($dbtype, $dblibrary, true)) {
echo $OUTPUT->notification("Unknown driver $dblibrary/$dbtype", "notifyproblem");
die();
}
$olddebug = $CFG->debug;
$olddisplay = ini_get('display_errors');
ini_set('display_errors', '1');
$CFG->debug = DEBUG_DEVELOPER;
error_reporting($CFG->debug);
$dboptions = array();
$dboptions['dbpersist'] = get_config('logstore_database', 'dbpersist');
$dboptions['dbsocket'] = get_config('logstore_database', 'dbsocket');
$dboptions['dbport'] = get_config('logstore_database', 'dbport');
$dboptions['dbschema'] = get_config('logstore_database', 'dbschema');
$dboptions['dbcollation'] = get_config('logstore_database', 'dbcollation');
try {
$db->connect(get_config('logstore_database', 'dbhost'), get_config('logstore_database', 'dbuser'),
get_config('logstore_database', 'dbpass'), get_config('logstore_database', 'dbname'), false, $dboptions);
} catch (\moodle_exception $e) {
echo $OUTPUT->notification('Cannot connect to the database.', 'notifyproblem');
$CFG->debug = $olddebug;
ini_set('display_errors', $olddisplay);
error_reporting($CFG->debug);
ob_end_flush();
echo $OUTPUT->footer();
die();
}
echo $OUTPUT->notification('Connection made.', 'notifysuccess');
$tables = $db->get_tables();
if (!in_array($dbtable, $tables)) {
echo $OUTPUT->notification('Cannot find the specified table ' . $dbtable, 'notifyproblem');
$CFG->debug = $olddebug;
ini_set('display_errors', $olddisplay);
error_reporting($CFG->debug);
ob_end_flush();
echo $OUTPUT->footer();
die();
}
echo $OUTPUT->notification('Table ' . $dbtable . ' found.', 'notifysuccess');
$cols = $db->get_columns($dbtable);
if (empty($cols)) {
echo $OUTPUT->notification('Can not read external table.', 'notifyproblem');
} else {
$columns = array_keys((array)$cols);
echo $OUTPUT->notification('External table contains following columns:<br />' . implode(', ', $columns), 'notifysuccess');
}
$db->dispose();
$CFG->debug = $olddebug;
ini_set('display_errors', $olddisplay);
error_reporting($CFG->debug);
ob_end_flush();
echo $OUTPUT->footer();
+47
View File
@@ -0,0 +1,47 @@
<?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/>.
/**
* Fixtures for database log storage testing.
*
* @package logstore_database
* @copyright 2014 Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace logstore_database\event;
defined('MOODLE_INTERNAL') || die();
class unittest_executed extends \core\event\base {
public static function get_name() {
return 'xxx';
}
public function get_description() {
return 'yyy';
}
protected function init() {
$this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
public function get_url() {
return new \moodle_url('/somepath/somefile.php', array('id' => $this->data['other']['sample']));
}
}
+40
View File
@@ -0,0 +1,40 @@
<?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/>.
/**
* Fixtures for database log storage testing.
*
* @package logstore_database
* @copyright 2014 onwards Ankit Agarwal
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace logstore_database\test;
defined('MOODLE_INTERNAL') || die();
class store extends \logstore_database\log\store {
/**
* Public wrapper for testing.
*
* @param \core\event\base $event
*
* @return bool
*/
public function is_event_ignored(\core\event\base $event) {
return parent::is_event_ignored($event);
}
}
@@ -0,0 +1,292 @@
<?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/>.
/**
* External database log store tests.
*
* @package logstore_database
* @copyright 2014 Petr Skoda {@link http://skodak.org/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once(__DIR__ . '/fixtures/event.php');
require_once(__DIR__ . '/fixtures/store.php');
class logstore_database_store_testcase extends advanced_testcase {
public function test_log_writing() {
global $DB, $CFG;
$this->resetAfterTest();
$this->preventResetByRollback(); // Logging waits till the transaction gets committed.
$dbman = $DB->get_manager();
$this->assertTrue($dbman->table_exists('logstore_standard_log'));
$DB->delete_records('logstore_standard_log');
$this->setAdminUser();
$user1 = $this->getDataGenerator()->create_user();
$user2 = $this->getDataGenerator()->create_user();
$course1 = $this->getDataGenerator()->create_course();
$module1 = $this->getDataGenerator()->create_module('resource', array('course' => $course1));
$course2 = $this->getDataGenerator()->create_course();
$module2 = $this->getDataGenerator()->create_module('resource', array('course' => $course2));
// Test all plugins are disabled by this command.
set_config('enabled_stores', '', 'tool_log');
$manager = get_log_manager(true);
$stores = $manager->get_readers();
$this->assertCount(0, $stores);
// Fake the settings, we will abuse the standard plugin table here...
$parts = explode('_', get_class($DB));
set_config('dbdriver', $parts[1] . '/' . $parts[0], 'logstore_database');
set_config('dbhost', $CFG->dbhost, 'logstore_database');
set_config('dbuser', $CFG->dbuser, 'logstore_database');
set_config('dbpass', $CFG->dbpass, 'logstore_database');
set_config('dbname', $CFG->dbname, 'logstore_database');
set_config('dbtable', $CFG->prefix . 'logstore_standard_log', 'logstore_database');
if (!empty($CFG->dboptions['dbpersist'])) {
set_config('dbpersist', 1, 'logstore_database');
} else {
set_config('dbpersist', 0, 'logstore_database');
}
if (!empty($CFG->dboptions['dbsocket'])) {
set_config('dbsocket', $CFG->dboptions['dbsocket'], 'logstore_database');
} else {
set_config('dbsocket', '', 'logstore_database');
}
if (!empty($CFG->dboptions['dbport'])) {
set_config('dbport', $CFG->dboptions['dbport'], 'logstore_database');
} else {
set_config('dbport', '', 'logstore_database');
}
if (!empty($CFG->dboptions['dbschema'])) {
set_config('dbschema', $CFG->dboptions['dbschema'], 'logstore_database');
} else {
set_config('dbschema', '', 'logstore_database');
}
if (!empty($CFG->dboptions['dbcollation'])) {
set_config('dbcollation', $CFG->dboptions['dbcollation'], 'logstore_database');
} else {
set_config('dbcollation', '', 'logstore_database');
}
// Enable logging plugin.
set_config('enabled_stores', 'logstore_database', 'tool_log');
set_config('buffersize', 0, 'logstore_database');
set_config('logguests', 1, 'logstore_database');
$manager = get_log_manager(true);
$stores = $manager->get_readers();
$this->assertCount(1, $stores);
$this->assertEquals(array('logstore_database'), array_keys($stores));
$store = $stores['logstore_database'];
$this->assertInstanceOf('logstore_database\log\store', $store);
$this->assertInstanceOf('tool_log\log\writer', $store);
$this->assertTrue($store->is_logging());
$logs = $DB->get_records('logstore_standard_log', array(), 'id ASC');
$this->assertCount(0, $logs);
$this->setCurrentTimeStart();
$this->setUser(0);
$event1 = \logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)));
$event1->trigger();
$logs = $DB->get_records('logstore_standard_log', array(), 'id ASC');
$this->assertCount(1, $logs);
$log1 = reset($logs);
unset($log1->id);
$log1->other = unserialize($log1->other);
$log1 = (array)$log1;
$data = $event1->get_data();
$data['origin'] = 'cli';
$data['ip'] = null;
$data['realuserid'] = null;
$this->assertEquals($data, $log1);
$this->setAdminUser();
\core\session\manager::loginas($user1->id, context_system::instance());
$this->assertEquals(2, $DB->count_records('logstore_standard_log'));
$event2 = \logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module2->cmid), 'other' => array('sample' => 6, 'xx' => 9)));
$event2->trigger();
$_SESSION['SESSION'] = new \stdClass();
$this->setUser(0);
$this->assertFalse(\core\session\manager::is_loggedinas());
$logs = $DB->get_records('logstore_standard_log', array(), 'id ASC');
$this->assertCount(3, $logs);
array_shift($logs);
$log2 = array_shift($logs);
$this->assertSame('\core\event\user_loggedinas', $log2->eventname);
$log3 = array_shift($logs);
unset($log3->id);
$log3->other = unserialize($log3->other);
$log3 = (array)$log3;
$data = $event2->get_data();
$data['origin'] = 'cli';
$data['ip'] = null;
$data['realuserid'] = 2;
$this->assertEquals($data, $log3);
// Test reading.
$this->assertSame(3, $store->get_events_select_count('', array()));
$events = $store->get_events_select('', array(), 'timecreated ASC', 0, 0); // Is actually sorted by "timecreated ASC, id ASC".
$this->assertCount(3, $events);
$resev1 = array_shift($events);
array_shift($events);
$resev2 = array_shift($events);
$this->assertEquals($event1->get_data(), $resev1->get_data());
$this->assertEquals($event2->get_data(), $resev2->get_data());
// Test buffering.
set_config('buffersize', 3, 'logstore_database');
$manager = get_log_manager(true);
$stores = $manager->get_readers();
/** @var \logstore_database\log\store $store */
$store = $stores['logstore_database'];
$DB->delete_records('logstore_standard_log');
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(0, $DB->count_records('logstore_standard_log'));
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(0, $DB->count_records('logstore_standard_log'));
$store->flush();
$this->assertEquals(2, $DB->count_records('logstore_standard_log'));
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(2, $DB->count_records('logstore_standard_log'));
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(2, $DB->count_records('logstore_standard_log'));
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(5, $DB->count_records('logstore_standard_log'));
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(5, $DB->count_records('logstore_standard_log'));
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(5, $DB->count_records('logstore_standard_log'));
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(8, $DB->count_records('logstore_standard_log'));
// Test guest logging setting.
set_config('logguests', 0, 'logstore_database');
set_config('buffersize', 0, 'logstore_database');
get_log_manager(true);
$DB->delete_records('logstore_standard_log');
get_log_manager(true);
$this->setUser(null);
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(0, $DB->count_records('logstore_standard_log'));
$this->setGuestUser();
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(0, $DB->count_records('logstore_standard_log'));
$this->setUser($user1);
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(1, $DB->count_records('logstore_standard_log'));
$this->setUser($user2);
\logstore_database\event\unittest_executed::create(
array('context' => context_module::instance($module1->cmid), 'other' => array('sample' => 5, 'xx' => 10)))->trigger();
$this->assertEquals(2, $DB->count_records('logstore_standard_log'));
set_config('enabled_stores', '', 'tool_log');
get_log_manager(true);
}
/**
* Test method is_event_ignored.
*/
public function test_is_event_ignored() {
$this->resetAfterTest();
// Test guest filtering.
set_config('logguests', 0, 'logstore_database');
$this->setGuestUser();
$event = \logstore_database\event\unittest_executed::create(
array('context' => context_system::instance(), 'other' => array('sample' => 5, 'xx' => 10)));
$logmanager = get_log_manager();
$store = new \logstore_database\test\store($logmanager);
$this->assertTrue($store->is_event_ignored($event));
set_config('logguests', 1, 'logstore_database');
$store = new \logstore_database\test\store($logmanager); // Reload.
$this->assertFalse($store->is_event_ignored($event));
// Test action/level filtering.
set_config('includelevels', '', 'logstore_database');
set_config('includeactions', '', 'logstore_database');
$store = new \logstore_database\test\store($logmanager); // Reload.
$this->assertTrue($store->is_event_ignored($event));
set_config('includelevels', '0,1', 'logstore_database');
$store = new \logstore_database\test\store($logmanager); // Reload.
$this->assertTrue($store->is_event_ignored($event));
set_config('includelevels', '0,1,2', 'logstore_database');
$store = new \logstore_database\test\store($logmanager); // Reload.
$this->assertFalse($store->is_event_ignored($event));
set_config('includelevels', '', 'logstore_database');
set_config('includeactions', 'c,r,d', 'logstore_database');
$store = new \logstore_database\test\store($logmanager); // Reload.
$this->assertTrue($store->is_event_ignored($event));
set_config('includeactions', 'c,r,u,d', 'logstore_database');
$store = new \logstore_database\test\store($logmanager); // Reload.
$this->assertFalse($store->is_event_ignored($event));
}
/**
* Test logmanager::get_supported_reports returns all reports that require this store.
*/
public function test_get_supported_reports() {
$logmanager = get_log_manager();
$allreports = \core_component::get_plugin_list('report');
$supportedreports = array(
'report_log' => '/report/log',
'report_loglive' => '/report/loglive'
);
// Make sure all supported reports are installed.
$expectedreports = array_keys(array_intersect_key($allreports, $supportedreports));
$reports = $logmanager->get_supported_reports('logstore_database');
$reports = array_keys($reports);
foreach ($expectedreports as $expectedreport) {
$this->assertContains($expectedreport, $reports);
}
}
}
+29
View File
@@ -0,0 +1,29 @@
<?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/>.
/**
* External database log store.
*
* @package logstore_standard
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2014051200; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2014050800; // Requires this Moodle version.
$plugin->component = 'logstore_database'; // Full name of the plugin (used for diagnostics).
@@ -0,0 +1,53 @@
<?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/>.
namespace logstore_legacy\event;
defined('MOODLE_INTERNAL') || die();
/**
* Legacy log emulation event class.
*
* @package core
* @since Moodle 2.7
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class legacy_logged extends \core\event\base {
public function init() {
throw new \coding_exception('legacy events cannot be triggered');
}
public static function get_name() {
return get_string('eventlegacylogged', 'logstore_legacy');
}
public function get_description() {
return $this->other['module'] . ' ' . $this->other['action'] . ' ' . $this->other['info'];
}
public function get_url() {
global $CFG;
require_once("$CFG->dirroot/course/lib.php");
$url = \make_log_url($this->other['module'], $this->other['url']);
if (!$url) {
return null;
}
return new \moodle_url($url);
}
}
@@ -0,0 +1,308 @@
<?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/>.
/**
* Legacy log reader.
*
* @package logstore_legacy
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace logstore_legacy\log;
defined('MOODLE_INTERNAL') || die();
class store implements \tool_log\log\store, \core\log\sql_select_reader {
use \tool_log\helper\store,
\tool_log\helper\reader;
public function __construct(\tool_log\log\manager $manager) {
$this->helper_setup($manager);
}
/** @var array list of db fields which needs to be replaced for legacy log query */
protected static $standardtolegacyfields = array(
'timecreated' => 'time',
'courseid' => 'course',
'contextinstanceid' => 'cmid',
'origin' => 'ip',
'anonymous' => 0,
);
/** @var string Regex to replace the crud params */
const CRUD_REGEX = "/(crud).*?(<>|=|!=).*?'(.*?)'/s";
/**
* This method contains mapping required for Moodle core to make legacy store compatible with other sql_select_reader based
* queries.
*
* @param string $selectwhere Select statment
* @param array $params params for the sql
* @param string $sort sort fields
*
* @return array returns an array containing the sql predicate, an array of params and sorting parameter.
*/
protected static function replace_sql_legacy($selectwhere, array $params, $sort = '') {
// Following mapping is done to make can_delete_course() compatible with legacy store.
if ($selectwhere == "userid = :userid AND courseid = :courseid AND eventname = :eventname AND timecreated > :since" and
empty($sort)) {
$replace = "module = 'course' AND action = 'new' AND userid = :userid AND url = :url AND time > :since";
$params += array('url' => "view.php?id={$params['courseid']}");
return array($replace, $params, $sort);
}
// Replace db field names to make it compatible with legacy log.
foreach (self::$standardtolegacyfields as $from => $to) {
$selectwhere = str_replace($from, $to, $selectwhere);
if (!empty($sort)) {
$sort = str_replace($from, $to, $sort);
}
if (isset($params[$from])) {
$params[$to] = $params[$from];
unset($params[$from]);
}
}
// Replace crud fields.
$selectwhere = preg_replace_callback("/(crud).*?(<>|=|!=).*?'(.*?)'/s", 'self::replace_crud', $selectwhere);
return array($selectwhere, $params, $sort);
}
public function get_events_select($selectwhere, array $params, $sort, $limitfrom, $limitnum) {
global $DB;
$sort = self::tweak_sort_by_id($sort);
// Replace the query with hardcoded mappings required for core.
list($selectwhere, $params, $sort) = self::replace_sql_legacy($selectwhere, $params, $sort);
$events = array();
$records = array();
try {
$records = $DB->get_records_select('log', $selectwhere, $params, $sort, '*', $limitfrom, $limitnum);
} catch (\moodle_exception $ex) {
debugging("error converting legacy event data " . $ex->getMessage() . $ex->debuginfo, DEBUG_DEVELOPER);
}
foreach ($records as $data) {
$events[$data->id] = \logstore_legacy\event\legacy_logged::restore_legacy($data);
}
return $events;
}
public function get_events_select_count($selectwhere, array $params) {
global $DB;
// Replace the query with hardcoded mappings required for core.
list($selectwhere, $params) = self::replace_sql_legacy($selectwhere, $params);
try {
return $DB->count_records_select('log', $selectwhere, $params);
} catch (\moodle_exception $ex) {
debugging("error converting legacy event data " . $ex->getMessage() . $ex->debuginfo, DEBUG_DEVELOPER);
return 0;
}
}
/**
* Are the new events appearing in the reader?
*
* @return bool true means new log events are being added, false means no new data will be added
*/
public function is_logging() {
return (bool)$this->get_config('loglegacy', true);
}
public function dispose() {
}
/**
* Legacy add_to_log() code.
*
* @param int $courseid The course id
* @param string $module The module name e.g. forum, journal, resource, course, user etc
* @param string $action 'view', 'update', 'add' or 'delete', possibly followed by another word to clarify.
* @param string $url The file and parameters used to see the results of the action
* @param string $info Additional description information
* @param int $cm The course_module->id if there is one
* @param int|\stdClass $user If log regards $user other than $USER
*/
public function legacy_add_to_log($courseid, $module, $action, $url, $info, $cm, $user) {
// Note that this function intentionally does not follow the normal Moodle DB access idioms.
// This is for a good reason: it is the most frequently used DB update function,
// so it has been optimised for speed.
global $DB, $CFG, $USER;
if (!$this->is_logging()) {
return;
}
if ($cm === '' || is_null($cm)) { // Postgres won't translate empty string to its default.
$cm = 0;
}
if ($user) {
$userid = $user;
} else {
if (\core\session\manager::is_loggedinas()) { // Don't log.
return;
}
$userid = empty($USER->id) ? '0' : $USER->id;
}
if (isset($CFG->logguests) and !$CFG->logguests) {
if (!$userid or isguestuser($userid)) {
return;
}
}
$remoteaddr = getremoteaddr();
$timenow = time();
if (!empty($url)) { // Could break doing html_entity_decode on an empty var.
$url = html_entity_decode($url, ENT_QUOTES, 'UTF-8');
} else {
$url = '';
}
// Restrict length of log lines to the space actually available in the
// database so that it doesn't cause a DB error. Log a warning so that
// developers can avoid doing things which are likely to cause this on a
// routine basis.
if (!empty($info) && \core_text::strlen($info) > 255) {
$info = \core_text::substr($info, 0, 252) . '...';
debugging('Warning: logged very long info', DEBUG_DEVELOPER);
}
// If the 100 field size is changed, also need to alter print_log in course/lib.php.
if (!empty($url) && \core_text::strlen($url) > 100) {
$url = \core_text::substr($url, 0, 97) . '...';
debugging('Warning: logged very long URL', DEBUG_DEVELOPER);
}
if (defined('MDL_PERFDB')) {
global $PERF;
$PERF->logwrites++;
};
$log = array('time' => $timenow, 'userid' => $userid, 'course' => $courseid, 'ip' => $remoteaddr,
'module' => $module, 'cmid' => $cm, 'action' => $action, 'url' => $url, 'info' => $info);
try {
$DB->insert_record_raw('log', $log, false);
} catch (\dml_exception $e) {
debugging('Error: Could not insert a new entry to the Moodle log. ' . $e->errorcode, DEBUG_ALL);
// MDL-11893, alert $CFG->supportemail if insert into log failed.
if ($CFG->supportemail and empty($CFG->noemailever)) {
// Function email_to_user is not usable because email_to_user tries to write to the logs table,
// and this will get caught in an infinite loop, if disk is full.
$site = get_site();
$subject = 'Insert into log failed at your moodle site ' . $site->fullname;
$message = "Insert into log table failed at " . date('l dS \of F Y h:i:s A') .
".\n It is possible that your disk is full.\n\n";
$message .= "The failed query parameters are:\n\n" . var_export($log, true);
$lasttime = get_config('admin', 'lastloginserterrormail');
if (empty($lasttime) || time() - $lasttime > 60 * 60 * 24) { // Limit to 1 email per day.
// Using email directly rather than messaging as they may not be able to log in to access a message.
mail($CFG->supportemail, $subject, $message);
set_config('lastloginserterrormail', time(), 'admin');
}
}
}
}
/**
* Generate a replace string for crud related sql conditions. This function is called as callback to preg_replace_callback()
* on the actual sql.
*
* @param array $match matched string for the passed pattern
*
* @return string The sql string to use instead of original
*/
protected static function replace_crud($match) {
$return = '';
unset($match[0]); // The first entry is the whole string.
foreach ($match as $m) {
// We hard code LIKE here because we are not worried about case sensitivity and want this to be fast.
switch ($m) {
case 'crud' :
$replace = 'action';
break;
case 'c' :
switch ($match[2]) {
case '=' :
$replace = " LIKE '%add%'";
break;
case '!=' :
case '<>' :
$replace = " NOT LIKE '%add%'";
break;
default:
$replace = '';
}
break;
case 'r' :
switch ($match[2]) {
case '=' :
$replace = " LIKE '%view%' OR action LIKE '%report%'";
break;
case '!=' :
case '<>' :
$replace = " NOT LIKE '%view%' AND action NOT LIKE '%report%'";
break;
default:
$replace = '';
}
break;
case 'u' :
switch ($match[2]) {
case '=' :
$replace = " LIKE '%update%'";
break;
case '!=' :
case '<>' :
$replace = " NOT LIKE '%update%'";
break;
default:
$replace = '';
}
break;
case 'd' :
switch ($match[2]) {
case '=' :
$replace = " LIKE '%delete%'";
break;
case '!=' :
case '<>' :
$replace = " NOT LIKE '%delete%'";
break;
default:
$replace = '';
}
break;
default :
$replace = '';
}
$return .= $replace;
}
return $return;
}
}
@@ -0,0 +1,54 @@
<?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/>.
/**
* Legacy log reader.
*
* @package logstore_legacy
* @copyright 2014 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace logstore_legacy\task;
defined('MOODLE_INTERNAL') || die();
class cleanup_task extends \core\task\scheduled_task {
/**
* Get a descriptive name for this task (shown to admins).
*
* @return string
*/
public function get_name() {
return get_string('taskcleanup', 'logstore_legacy');
}
/**
* Do the job.
* Throw exceptions on errors (the job will be retried).
*/
public function execute() {
global $CFG, $DB;
// Delete old logs to save space (this might need a timer to slow it down...).
if (!empty($CFG->loglifetime)) { // Value in days.
$loglifetime = time(0) - ($CFG->loglifetime * 3600 * 24);
$DB->delete_records_select("log", "time < ?", array($loglifetime));
mtrace(" Deleted old legacy log records");
}
}
}
+37
View File
@@ -0,0 +1,37 @@
<?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/>.
/**
* Legacy log reader cron task.
*
* @package logstore_legacy
* @copyright 2014 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$tasks = array(
array(
'classname' => '\logstore_legacy\task\cleanup_task',
'blocking' => 0,
'minute' => '*',
'hour' => '5',
'day' => '*',
'dayofweek' => '*',
'month' => '*'
),
);
@@ -0,0 +1,30 @@
<?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/>.
/**
* Legacy log reader lang strings.
*
* @package logstore_legacy
* @copyright 2013 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['eventlegacylogged'] = 'Legacy event logged';
$string['loglegacy'] = 'Log legacy data';
$string['loglegacy_help'] = 'This plugin records log data to the legacy log table (mdl_log). This functionality has been replaced by newer, richer and more efficient logging plugins, so you should only run this plugin if you have old custom reports that directly query the old log table. Writing to the legacy logs will increase load, so it is recommended that you disable this plugin for performance reasons when it is not needed.';
$string['pluginname'] = 'Legacy log';
$string['pluginname_desc'] = 'A log plugin that stores log entries in the legacy log table.';
$string['taskcleanup'] = 'Legacy log table cleanup';

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