Compare commits

...

7648 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) 6acbecf531 Moodle release 2.5.2 2013-09-07 14:27:18 +02:00
Eloy Lafuente (stronk7) 93e4ea20f2 Merge branch 'install_25_STABLE' of git://git.moodle.org/moodle-install into MOODLE_25_STABLE 2013-09-07 14:11:59 +02:00
Dan Poltawski 1aecfc42b6 MDL-41623 rss: clean output rss content 2013-09-07 10:41:37 +08:00
Eloy Lafuente (stronk7) 0694d65e7e MDL-41623 ensure all rss links are valid urls. 2013-09-07 04:05:38 +02:00
AMOS bot 60d9fe07a6 Automatically generated installer lang files 2013-09-07 00:43:08 +00:00
AMOS bot 4589706812 Automatically generated installer lang files 2013-09-06 00:47:47 +00:00
AMOS bot ce31fccf0e Merge branch 'MOODLE_25_STABLE' into install_25_STABLE 2013-09-06 00:47:47 +00:00
Dan Poltawski 2d269d8a4f Merge branch 'install_25_STABLE' of git://git.moodle.org/moodle-install into MOODLE_25_STABLE 2013-09-05 14:43:20 +08:00
Dan Poltawski d8835503a8 weekly release 2.5.1+ 2013-09-05 13:36:12 +08:00
Mark Nelson 60abf0f6bd MDL-40924 badges: added a print_error call to prevent PHP notices when no badges are found 2013-09-05 10:05:52 +08:00
David Monllao 0c26302299 MDL-41568 lang: Fix behat features after changes 2013-09-04 15:18:43 +08:00
Damyon Wiese 59abd58e9f Merge branch 'MDL-41485-m25' of git://github.com/ankitagarwal/moodle into MOODLE_25_STABLE 2013-09-04 12:26:15 +08:00
Jason Fowler e8924ea727 MDL-35925 Behat - Fixing behat test for Create Folder 2013-09-04 11:55:52 +08:00
Damyon Wiese 32c5dad8f0 MDL-41179 assign: Ensure a submission record exists for lock/unlock
Can't change the function params because it is changed in master already.
This will create a draft submission when a student is prevented from submitting
but that is a minor sideeffect and doesn't happen in master.
2013-09-04 11:02:30 +08:00
Dan Poltawski f5fc022310 Merge branch 'wip-mdl-41418-m25' of git://github.com/rajeshtaneja/moodle into MOODLE_25_STABLE 2013-09-04 10:38:19 +08:00
Eloy Lafuente (stronk7) f2900567a8 Merge branch 'MDL-40566_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-09-03 22:07:04 +02:00
Eloy Lafuente (stronk7) 247f3e95e7 Merge branch 'MDL-41568-en_fix-25' of git://github.com/mudrd8mz/moodle into MOODLE_25_STABLE 2013-09-03 15:11:41 +02:00
Helen Foster 09fd8327e2 MDL-41568 Merge English strings from the en_fix language pack 2013-09-03 12:50:11 +02:00
Damyon Wiese cdecb726ec Merge branch 'MDL-41348_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-09-03 16:09:46 +08:00
Tim Lock a5db1b5432 MDL-41304: Hide and handle LDAP error when user not in context being checked 2013-09-03 16:05:49 +08:00
Jason Fowler 3a9a74b259 MDL-35925 filepicker - Fixing behat tests 2013-09-03 15:48:08 +08:00
Aparup Banerjee 75b0c09bd1 MDL-37564 linked dependant plugin component text to plugins DB 2013-09-03 14:56:49 +08:00
Damyon Wiese a36b1f9c65 Merge branch 'MDL-33472-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-09-03 14:38:28 +08:00
Damyon Wiese efb7f5173a Merge branch 'm25_MDL-29218_plugin_init_not_blocking_when_false' of https://github.com/scara/moodle into MOODLE_25_STABLE 2013-09-03 14:28:58 +08:00
Damyon Wiese 6093c3ddf8 Merge branch 'MDL-32690_restoreMissingAssignment_25' of https://github.com/moodlerooms/moodle into MOODLE_25_STABLE 2013-09-03 14:16:10 +08:00
Dan Poltawski a60215797d Merge branch 'w36_MDL-41255_m25_changepw' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-09-03 12:58:52 +08:00
Dan Poltawski 5202933cdd Merge branch 'MDL-41428-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-09-03 12:28:20 +08:00
Dan Poltawski 3e07519d3f Merge branch 'wip-MDL-41179-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-09-03 11:48:58 +08:00
David Monllao fe0f9adbe3 MDL-40566 behat: Update features using the new options 2013-09-03 11:15:12 +08:00
David Monllao 9e14d32b12 MDL-40566 behat: Adding info about the deprecated attr. 2013-09-03 11:10:30 +08:00
David Monllao 9ae0496854 MDL-40566 behat: Moving from behat_command to behat_selectors 2013-09-03 11:10:30 +08:00
David Monllao 79b2f3a6f9 MDL-40566 behat: Adding behat_selectors
Class that manages moodle selectors transition
to behat default selectors.
2013-09-03 11:10:30 +08:00
Dan Poltawski fb7bb9af16 Merge branch 'wip-MDL-41317-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-09-03 10:40:34 +08:00
Dan Poltawski 0522e090fb Merge branch 'MDL-40214_m25' of https://github.com/markn86/moodle into MOODLE_25_STABLE 2013-09-03 10:06:48 +08:00
Matteo Scaramuccia 2fa86e7b56 MDL-29218 Repository: fixed a typo in the PHPDoc 2013-09-02 23:14:37 +02:00
Matteo Scaramuccia 259415dc8d MDL-29218 Repository: $pname, get rid of all the useless code
More details in the Tracker.
2013-09-02 23:14:35 +02:00
Matteo Scaramuccia fd0608a226 MDL-29218 Repository: Hide the repo if repository::plugin_init returns false 2013-09-02 23:14:34 +02:00
Dan Poltawski 5e86f2ea86 Merge branch 'MDL-41149-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-09-02 17:25:38 +08:00
Dan Poltawski 37d1f21b36 Merge branch 'MDL-35925-25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-09-02 15:24:23 +08:00
Nitzan Bar 9dccff7793 MDL-41259 when duplicate course shortname exists an exception is thrown and sync is aborted 2013-09-02 15:08:28 +08:00
Damyon Wiese 18839cbbdc Merge branch 'MDL-41516-m25' of git://github.com/andrewnicols/moodle into MOODLE_25_STABLE 2013-09-02 14:58:21 +08:00
Dan Poltawski 0ab8ba8bf9 Merge branch 'MDL-36093-moodle25' of github.com:StudiUM/moodle into MOODLE_25_STABLE 2013-09-02 14:10:39 +08:00
Dan Poltawski d6edbd9945 MDL-40676 tests: fix null byte test. 2013-09-02 13:59:12 +08:00
Yuliya Bozhko b51c44ac3d MDL-40712 badges: Display recipient information 2013-09-02 13:45:57 +08:00
Yuliya Bozhko 129e7dffeb MDL-40924 badges: Add caching to external badges 2013-09-02 13:45:13 +08:00
Petr Škoda 71b06edf6b MDL-40676 ignore null bytes 2013-09-02 12:27:58 +08:00
Dan Poltawski 5218a6e8fb Merge branch 'MDL-41175_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-09-02 11:52:21 +08:00
Dan Poltawski 581a1695ac Merge branch 'MDL-41328-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-09-02 11:44:58 +08:00
Andrew Nicols dacc2f8847 MDL-41328 Editor: Work around another iOS issue with TinyMCE
We apply this only on touchend and not touchstart or touchmove. The
location is not guaranteed until the end of the gesture, and there's no
need to keep applying focus on every move.
2013-09-02 09:41:48 +08:00
AMOS bot ce1a153335 Automatically generated installer lang files 2013-09-02 00:47:08 +00:00
Andrew Nicols 7402dcd5fd MDL-41516 Themes: Ensure that blocks are set up early
Blocks can require JavaScript which must be set up early in the page
lifecycle.
In order to do so, we should ensure that content is created in the standard
head setup before any other output is created so that any subsequent use of
block instances are no longer the first such use when they may already be
too late in the lifecycle.
2013-09-02 00:02:07 +01:00
Petr Škoda 24b58fa892 MDL-41255 fix incorrect redirection logic when changing password
Credit goes to Michael Milette.
2013-08-31 11:42:54 +02:00
AMOS bot 2fc1329f44 Merge branch 'MOODLE_25_STABLE' into install_25_STABLE 2013-08-31 00:43:54 +00:00
Ankit Agarwal 756a0bc3a1 MDL-41485 calendar: Replace value of action buttons on managesubscription page with int 2013-08-30 17:20:30 +08:00
Damyon Wiese 0bd9f000b7 weekly release 2.5.1+ 2013-08-30 09:42:53 +08:00
AMOS bot 976d7e3442 Automatically generated installer lang files 2013-08-30 00:41:47 +00:00
Mark Nielsen 65d14146af MDL-32690: Restore 1.9 backup into 2.X fails on missing assignment type
Solution is as follows:
* Allow unsupported subplugins to convert from Moodle1 to Moodle2
* On Moodle2 restore hide unsupported subplugins
* Graceful error message in assignment of unsupported subplugins
2013-08-29 08:50:31 -07:00
Nadav Kavalerchik 3703b1d5de MDL-39682 Forms, File Picker, Themes: Fix alignment of Form's Labels and Input elements in RTL mode (theme/clean)
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-08-29 10:16:51 +08:00
Sam Hemelryk eb0aa3f039 MDL-41213 theme_bootstrapbase: fixed license filemanager overflow
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-08-29 09:12:16 +12:00
Jean-Philippe Gaudreau 13142cece4 MDL-36093 grade export: Fix HTML special characters printed litteraly. 2013-08-28 09:16:00 -04:00
Tim Hunt 69492f8654 MDL-41348 question code depends on filelib.
I think this used to work because mod/forum/lib.php used to be included
everywhere, and in turn included lib/formslib.php. We should declare the
dependencey explicitly.
2013-08-28 11:18:23 +01:00
Damyon Wiese ef8a68a73f MDL-41249 assign: Fix incorrect gradingform restore step
The mapping in the previous patch was wrong - mod assign uses
the area "submissions" but the itemid is the grade->id not the submission->id.
2013-08-28 16:31:32 +08:00
Colin Campbell f931b66a26 MDL-40214 mod_assign: Fixed issue with custom scale being lost during restore. 2013-08-28 10:52:10 +08:00
Marina Glancy 827c357830 MDL-41317 Set correct context to send bulk message page 2013-08-28 11:06:57 +10:00
AMOS bot 90f6e5af5d Automatically generated installer lang files 2013-08-28 00:53:50 +00:00
Eloy Lafuente (stronk7) 14616c145f Merge branch 'MDL-41387_m25' of https://github.com/markn86/moodle into MOODLE_25_STABLE 2013-08-27 21:00:28 +02:00
Eloy Lafuente (stronk7) 19ed5ae02f Merge branch 'm25_MDL-41410_Move_Comment_To_Appropriate_Place' of https://github.com/scara/moodle into MOODLE_25_STABLE 2013-08-27 19:46:00 +02:00
Dan Poltawski cb096cef51 Merge branch 'MDL-41366_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-27 18:09:41 +08:00
Damyon Wiese 01209ab96b Merge branch 'wip-MDL-41127-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-08-27 15:57:28 +08:00
Nadav Kavalerchik 0d376b00be MDL-39682 Forms, File Picker, Themes: Fix alignment of Form's Labels and Input elements in RTL mode (theme/clean)
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-08-27 15:50:10 +08:00
Damyon Wiese fe3ccd7e4d Merge branch 'MDL-41401-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-08-27 15:08:13 +08:00
Dan Poltawski 44e1bb52ec Merge branch 'MDL-41321_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-08-27 14:08:14 +08:00
Dan Poltawski 7f0cbbfea6 MDL-38765 quiz: fix incorrect comment 2013-08-27 14:00:18 +08:00
Dan Poltawski 60426b9a2d Merge branch 'MDL-38765_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-27 13:52:22 +08:00
Damyon Wiese 5212cb7d8f Merge branch 'MDL-40877-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-08-27 12:49:36 +08:00
Damyon Wiese 082b0866bc Merge branch 'MDL-40447_M25' of https://github.com/nadavkav/moodle into MOODLE_25_STABLE 2013-08-27 12:29:21 +08:00
Nadav Kavalerchik 1715d58161 MDL-37211 Backup: Migrate hard-coded strings to language string for the table header labels on the restore page 2013-08-27 11:57:53 +08:00
Dan Poltawski abfbffa640 Merge branch 'wip-MDL-41222-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-08-27 11:03:48 +08:00
Damyon Wiese 5b04c580a1 MDL-40321 theme_bootstrapbase: Combine reset into existing overrides file 2013-08-27 10:46:31 +08:00
Frederic Massart 7788b69996 MDL-41428 repository_coursefiles: Missing white space in name 2013-08-27 10:30:20 +08:00
Damyon Wiese ab2a4e3562 Merge branch 'wip-MDL-40321_M25' of git://github.com/gjb2048/moodle into MOODLE_25_STABLE 2013-08-27 10:08:19 +08:00
Marina Glancy 3ab2f6c00a MDL-41179 is_user_access_restricted_by_capability() must look at specified user and not current 2013-08-27 09:49:58 +10:00
Dan Poltawski 0846c3a54a Merge branch 'MDL-41291-25' of git://github.com/mr-russ/moodle into MOODLE_25_STABLE 2013-08-26 18:07:00 +08:00
Damyon Wiese 739ed4ce38 MDL-41213 filepicker: Version bump for css changes 2013-08-26 16:17:17 +08:00
Damyon Wiese 6472bbfbc7 Merge branch '41213-25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-08-26 16:10:02 +08:00
Rajesh Taneja 897995391b MDL-41418 Administration: Page context should be set before setting page title 2013-08-26 15:25:42 +08:00
Dan Poltawski 9a29baa05e Merge branch 'MDL-35930_m25' of git://github.com/rwijaya/moodle into MOODLE_25_STABLE 2013-08-26 14:56:34 +08:00
Dan Poltawski 7f3b8fa7b7 Merge branch 'MDL-36126_m25' of https://github.com/markn86/moodle into MOODLE_25_STABLE 2013-08-26 14:25:29 +08:00
Mark Nelson 58e8778421 MDL-36126 backup: ensure the backup_logs message does not exceed the maximum allowed length in the DB 2013-08-26 20:41:22 +08:00
Damyon Wiese 879330c428 Merge branch 'mdl25_MDL-29004_wiki-fix-images-in-printer-friendly-view' of https://github.com/brki/moodle into MOODLE_25_STABLE 2013-08-26 13:50:54 +08:00
Marina Glancy b47150934d MDL-41127 Remove the quick category move dropdowns if page is too big 2013-08-26 15:42:27 +10:00
Dan Poltawski c9b822387b Merge branch 'MDL-41249-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-08-26 13:11:10 +08:00
Damyon Wiese 29b8db0e0b Merge branch 'wip-MDL-41106-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-08-26 09:43:58 +08:00
Damyon Wiese fcc147dd2d MDL-36803 tinymce: Version bump for js changes 2013-08-26 09:30:42 +08:00
Damyon Wiese c12ec889fa Merge branch 'MDL-36803-m25' of https://github.com/andrewnicols/moodle into MOODLE_25_STABLE 2013-08-26 09:29:53 +08:00
Russell Smith 1627ea320a MDL-41291 cache: Use fread to avoid race conditions 2013-08-26 10:50:57 +10:00
Sam Hemelryk 63ce1b82c6 MDL-41106 cache: several fixes for the session cache.
This issue makes several fixes for the session loader and the session store.
 * maxsize argument now works for session caches.
 * fixed performance hole when interation occurs frequently.
 * fixed cache purge bug occuring when multiple caches are defined before being used.
 * improved lastaccess handling.

Big thanks to Marina who contributed the following commits:
 * Always make sure the elements in cache are sorted so we need to remove only elements in the beginning of array
 * Remove expired elements from session store to free memory
 * Minor bug fixes
2013-08-26 09:50:16 +12:00
Sam Hemelryk 6cc1668dcd MDL-41213 bootstrap: fixed sizing of filepicker selected file licence selector 2013-08-26 08:39:01 +12:00
Sam Hemelryk 6568daf0db MDL-41213 filepicker: corrected outline of selected file dialogue 2013-08-26 08:38:34 +12:00
Mary Evans 1148cdfd6c MDL-41175 themes: Add/remove group members page broken on small screens. 2013-08-25 17:08:28 +01:00
Damyon Wiese 2f2cae97ad MDL-41149 assign: Group submission updates emailed to wrong person
grade_item_update was altering the userid in the submission record
instead of cloning it. This meant only the last member of a group
recieved all notifications meant for other students in the group.
2013-08-25 22:18:29 +08:00
Damyon Wiese a7effadb53 MDL-41249 assign: Restore step missing gradingform mapping
Thanks to Matthieu Raggett for the report and the solution.
2013-08-25 21:24:09 +08:00
Matteo Scaramuccia 44ac793fcb MDL-41410 Caching: move comment to the appropriate place.
MDL-38162 fixes the issue about testing the connection to the memcached
daemon, which means testing once the connection to the pool of servers
and not to each of the servers while being added to the pool.
It misses to move the comment to that code too.
2013-08-25 14:15:23 +02:00
Gareth J Barnard 70ff400c16 MDL-40321 theme_bootstrapbase: Remove URL's from printed pages. 2013-08-24 13:04:25 +01:00
AMOS bot 441678ecb4 Merge branch 'MOODLE_25_STABLE' into install_25_STABLE 2013-08-24 00:59:02 +00:00
Dan Poltawski eb0f2163dd MDL-41401 backup: fix misnamed test method 2013-08-23 15:10:24 +08:00
Dan Poltawski bda1180dc2 MDL-33472 google plugins: move helper functions to upgradelib.php
upgrade.php is reserved for the upgrade steps only. See also
MDL-34103
2013-08-23 11:34:03 +08:00
Damyon Wiese dd99fdd232 weekly release 2.5.1+ 2013-08-23 10:34:49 +08:00
Mark Nelson 848c33eb87 MDL-41387 tags: changed character case in string used when deleting a course 2013-08-22 17:41:15 +08:00
Dan Poltawski c177228500 Revert "MDL-36044 - Delete Icon ("X") blocks Score numbers, when in RTL mode (mod/assign , Rubrics editor)"
This reverts commit 42fabe1e87.
2013-08-22 17:36:28 +08:00
Damyon Wiese 6bd0ce14ed Merge branch 'wip-MDL-41196-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-08-22 11:21:46 +08:00
Dan Poltawski 6c98669c9b Merge branch 'MDL-30839-25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-08-22 11:18:01 +08:00
Jason Fowler 1dc17ccea2 MDL-30839 Accessibility - Focusing on error on submit 2013-08-22 10:53:56 +08:00
Sam Hemelryk b59bdff58d MDL-41196 phpmailer: fixed unit test detection 2013-08-22 14:46:35 +12:00
Dan Poltawski c36c24ec26 Merge branch 'MDL-30839-25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-08-22 10:14:40 +08:00
Dan Poltawski 2799d45f08 Merge branch 'MDL-39980_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-22 10:05:11 +08:00
Jason Fowler 93e775ab57 MDL-30839 Fixing extra line breaks in error msg 2013-08-22 09:06:01 +08:00
Mary Evans 7d7d4a7c30 MDL-41321 theme_bootstrapbase: Adds styling to groupinfobox. 2013-08-21 17:46:15 +01:00
Tim Hunt 3272a3f771 MDL-41366 qbehaviour_informationitem fix name capitalisation. 2013-08-21 12:29:55 +01:00
Tim Hunt f02a10f38c MDL-39980 essay attempt-on-last. Handle the no-files case.
This slighly changes the format for the way answers are stroed in the DB
in the case where there is some HTML content, but no files. This should
not cause any problems.
2013-08-21 11:57:46 +01:00
Tim Hunt 12ea5b4b00 MDL-38765 quiz view: fix duplicate message.
The "No more attempts are allowed" message was being shown twice. I
checked back, and it has been like that since before the quiz was
converted to use a renderer. Still, it looks horrible, so changing it.
2013-08-21 10:24:28 +01:00
Dan Poltawski 0901b32113 MDL-41191 add more test data to trigger duplicate course records 2013-08-21 15:45:48 +08:00
Dan Poltawski 5db91ce2a4 MDL-41191 mod_forum: avoid DISTINCT on TEXT columns
It is not supported by all db engines
2013-08-21 15:45:42 +08:00
Dan Poltawski 94bcd74360 Merge branch 'MDL-30839-25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-08-21 15:17:52 +08:00
Jason Fowler 75d2b7da91 MDL-30839 Fixing extra line breaks in error msg 2013-08-21 15:01:07 +08:00
Frederic Massart 1ae04d082d MDL-40877 repository_url: Use textlib functions instead of mb_strlen() 2013-08-21 14:02:13 +08:00
Dan Poltawski e1435f9e6e Merge branch 'wip-MDL-36690-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-08-21 11:35:58 +08:00
Marina Glancy c6af0e03cb MDL-36690 Do not cache objects inside course.modinfo as they may fail to serialize
convert moodle_url (all other fields are numbers or strings) to string before caching and then back to moodle_url when restoring.
Otherwise serialized modinfo can contain \0 byte which cause problems in Postgres DB
2013-08-21 13:09:36 +10:00
Dan Poltawski 69504a7154 Merge branch 'wip-MDL-32191-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-08-21 10:44:39 +08:00
Sam Hemelryk 5cdbdc4a71 Merge branch 'wip-MDL-40830-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-08-21 13:13:18 +12:00
AMOS bot d43d1610c6 Automatically generated installer lang files 2013-08-21 00:43:39 +00:00
Sam Hemelryk 34884b3ec8 Merge branch 'MDL-41162_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-21 12:13:06 +12:00
Sam Hemelryk aee98acb92 Merge branch 'm25_MDL-41144' of git://github.com/danmarsden/moodle into MOODLE_25_STABLE 2013-08-21 10:59:54 +12:00
Andrew Nicols 37ca398629 MDL-36803 TinyMCE: Fix TinyMCE following touch events on iOS browsers 2013-08-20 23:58:23 +01:00
Sam Hemelryk 8afa842c60 Merge branch 'MDL-41157-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-08-21 10:34:21 +12:00
Sam Hemelryk 6ef239f1c8 Merge branch 'MDL-41196-m25' of git://github.com/andrewnicols/moodle into MOODLE_25_STABLE 2013-08-21 09:30:14 +12:00
Frederic Massart d4f16db9aa MDL-41136 badges: Prevent extra loading due to unnecessary includes 2013-08-20 17:51:32 +08:00
Damyon Wiese fa2a822a17 Merge branch 'MDL-41191-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-08-20 16:15:14 +08:00
Damyon Wiese f669d36b69 Merge branch 'MDL-41071-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-08-20 15:57:59 +08:00
Damyon Wiese 19ad0a3658 Merge branch 'w33_MDL-41112_m25_cachedist' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-08-20 15:15:40 +08:00
Damyon Wiese 1e28defac5 Merge branch 'MDL-40162_25' of https://github.com/totara/openbadges into MOODLE_25_STABLE 2013-08-20 14:49:08 +08:00
Jason Fowler 59d18ddfa7 MDL-35925 - File picker - Adding aria attributes to assist in accessibility 2013-08-20 14:19:06 +08:00
Damyon Wiese fe8c182f0a Merge branch 'MDL-27595-2_25' of https://github.com/bostelm/moodle into MOODLE_25_STABLE 2013-08-20 13:49:04 +08:00
Damyon Wiese 32fc11d77a Merge branch 'MDL-41036_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-20 13:00:54 +08:00
Damyon Wiese bf3ed270ec Merge branch 'MDL-41122_2.5' of git://github.com/kastashov/moodle into MOODLE_25_STABLE 2013-08-20 12:30:10 +08:00
Dan Poltawski ba54a0b296 Merge branch 'MDL-38203_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-20 11:34:20 +08:00
Nadav Kavalerchik 5d2f59236a MDL-36044 - Delete Icon ("X") blocks Score numbers, when in RTL mode (mod/assign , Rubrics editor) 2013-08-20 11:08:14 +08:00
Nadav Kavalerchik 14d6091f20 MDL-39236 - Right align table cells during install process, when in RTL mode (theme/standard, actually theme/base) 2013-08-20 11:03:15 +08:00
Dan Poltawski 23756ddfea Merge branch 'MDL-39980_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-20 10:48:09 +08:00
Marina Glancy 1afdd452aa MDL-41222 Remove unnecessary course cache rebuild 2013-08-20 10:26:34 +10:00
Dan Poltawski 31235acf2b Merge branch 'MDL-30839-25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-08-19 17:51:11 +08:00
Damyon Wiese c67f7093a4 Merge branch 'm25_MDL-39572' of https://github.com/totara/moodle into MOODLE_25_STABLE 2013-08-19 15:43:59 +08:00
Damyon Wiese 97557f92f3 Merge branch 'MDL-40896_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-08-19 15:38:10 +08:00
Damyon Wiese 01f44f262a Revert "MDL-41106 cache: several fixes for the session cache."
This reverts commit 17aed88ed4.
This reverts commit 4e9ccabd81.
This reverts commit a0933c542e.
2013-08-19 15:32:56 +08:00
Dan Poltawski 2febf20223 Merge branch 'MDL-40893-25' of https://github.com/mr-russ/moodle into MOODLE_25_STABLE 2013-08-19 14:50:10 +08:00
Damyon Wiese 4fea0a3490 Merge branch 'wip-MDL-41106-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-08-19 13:51:25 +08:00
Damyon Wiese 07cafa966a Merge branch 'wip-MDL-36789-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-08-19 13:17:03 +08:00
Nadav Kavalerchik c299975400 MDL-39703 Roles, Themes: Fix "Add role" dialog width and position, in RTL mode (theme/clean)
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-08-19 13:13:04 +08:00
Dan Poltawski b31d9b8cbd Merge branch 'm25_MDL-37393' of github.com:danmarsden/moodle into MOODLE_25_STABLE 2013-08-19 12:57:50 +08:00
Jason Fowler 78dd49f5d0 MDL-30839 Accessibility, Forms - Improve accessibility or error messages 2013-08-19 09:55:43 +08:00
AMOS bot 1df739021c Automatically generated installer lang files 2013-08-19 00:42:36 +00:00
Sam Hemelryk 17aed88ed4 MDL-41106 cache: tidied up several elements
Conflicts:
	cache/stores/session/lib.php
2013-08-19 11:30:50 +12:00
Marina Glancy 4e9ccabd81 MDL-41106 Cleaning up expired elements in session cache store
- Always make sure the elements in cache are sorted so we need to remove only elements in the beginning of array
- Remove expired elements from session store to free memory
- Minor bug fixes

Conflicts:
	cache/stores/session/lib.php
	cache/stores/session/tests/session_test.php
2013-08-19 11:01:04 +12:00
Andrew Nicols 6e8edc5af0 MDL-41196 Unit Tests: Add a phpmailer message sink 2013-08-18 16:15:58 +01:00
Nadav Kavalerchik da552f01bb MDL-40447 Administration: Fix translation: "Profile" should be "Profile Fields" on advanced (more...) user filter form 2013-08-17 23:37:12 +03:00
Frederic Massart a0b3ed79e3 MDL-40877 core_text: Added UTF-8 safe strrchr method 2013-08-16 14:17:04 +08:00
Rossiani Wijaya 405ebd52d2 MDL-35930 filepicker filemanaer: make announcement on page change when selecting view files options 2013-08-16 12:09:54 +08:00
AMOS bot e432d94b3b Automatically generated installer lang files 2013-08-16 00:42:55 +00:00
Russell Smith a49e900fda MDL-40893 backup: cache question answers for performance
To constrain memory we only cache a single question's answers.
A quiz must display this many answers, so it will not result
in undue memory pressure.

We now match on the full answer text rather than the first 255
characters.  This removes the risk of matching questions with the
same start.
2013-08-16 10:06:34 +10:00
Sam Hemelryk a0933c542e MDL-41106 cache: several fixes for the session cache.
This issue makes several fixes for the session loader and the session store.
* maxsize argument now works for session caches.
* fixed performance hole when interation occurs frequently.
* fixed cache purge bug occuring when multiple caches are defined before being used.
* improved lastaccess handling.
2013-08-16 11:59:02 +12:00
Simon Coggins d16c91e919 MDL-39572: Fix sql_order_by_text() to use length argument correctly 2013-08-16 11:29:05 +12:00
Simon Coggins b9d40871f0 MDL-39572: Fix existing tests and add more to demonstrate issue with sql_order_by_text() 2013-08-16 11:29:05 +12:00
Yuliya Bozhko 2857077011 MDL-40162 badges: Image url breaks when slashargumets is not supported 2013-08-16 11:13:37 +12:00
Dan Marsden 5883b36a76 MDL-41144 enrol_flatfile: ignore deleted users. 2013-08-16 09:32:52 +12:00
Dan Marsden df47d2c38c MDL-37393 SCORM: Fix existing AICC scoes to use correct parent/child relationships 2013-08-16 09:29:31 +12:00
Matteo Scaramuccia 1ceee0d0d6 MDL-37393 SCORM: Fixed PHP Strict Standards errors with AICC packages 2013-08-16 09:29:31 +12:00
Jonathon Fowler 2cd5d3c03c MDL-32191 navigation: Add keys to module and block settings nav nodes 2013-08-16 09:18:46 +12:00
Tim Hunt 97d8cfa90a MDL-38203 multianswer qtype: feedback pop-up should be constrained.
So that, when there is a lot of feedback, it is all visible.
2013-08-15 14:16:24 +01:00
Tim Hunt a292ada723 MDL-39980 question engine: Attempt on last loses response files
When doing Each attempt builds on last, we need to copy any response
files into a draft file area, and then re-save them.

While writing the unit test for this, I had to deal with a todo in the
question engine so that questions with files in the response could be
unit-tested.

I also found an fixed a bug with qtype_essay_question::is_same_response
and fixed some notices in the existing essay/manual graded unit tests.
2013-08-15 12:56:22 +01:00
Marina Glancy 173839c0a6 MDL-36789 Quick course cache integrity check for deleted modules 2013-08-15 21:46:58 +10:00
Marina Glancy d69129045f MDL-40830 Clear course cache in mod_assign generator 2013-08-15 21:45:03 +10:00
Tim Hunt 3a5f219636 MDL-41162 quiz view page: invalid HTML.
We were sometimes outputting nested p tags. Change the outer one to a
div.
2013-08-15 12:41:27 +01:00
Tim Hunt a369215799 MDL-41093 qtype match: unique index upgrade problem.
Eliminate duplicate rows before we try to add a unique index. We
arbitrarily keep the duplicate row with the lowest id.
2013-08-15 11:58:57 +01:00
Tim Hunt 42f6e9def5 MDL-41036 Question category info should use HTML editor
This is a minimal fix. All this code could do with a clean-up, but at
the moment, it works, so I am not going to touch it.
2013-08-15 11:58:35 +01:00
Tim Hunt e614f12797 MDL-40896 Add missing question edit CSS to bootstrapbase. 2013-08-15 11:58:12 +01:00
Henning Bostelmann a15ad2be17 MDL-27595 backup: allow course import with warnings
Proceed with import if warnings are found, but display the warnings afterwards
2013-08-15 11:20:38 +01:00
Dan Poltawski 661777c503 weekly release 2.5.1+ 2013-08-15 16:42:18 +08:00
Dan Poltawski 2571672496 Merge branch 'install_25_STABLE' of git://git.moodle.org/moodle-install into MOODLE_25_STABLE 2013-08-15 16:41:41 +08:00
Rossiani Wijaya 3d29241619 MDL-41200 filepicker: change header string to select.
limit the length for header, so it fits nicely in mobile devices
2013-08-15 10:58:56 +08:00
AMOS bot f2c29f9b97 Automatically generated installer lang files 2013-08-15 00:54:43 +00:00
Dan Poltawski 0d8d0a34e7 Merge branch 'MDL-39507_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-14 21:57:43 +08:00
Dan Poltawski 760cb9ee99 MDL-41191 enrol: unit tests for enrol_get_shared_courses 2013-08-14 21:41:38 +08:00
Dan Poltawski 0f96a45b28 MDL-41191 forum: unit tests for forum_get_courses_user_posted_in 2013-08-14 21:39:13 +08:00
Tim Hunt 766a9a9d8f MDL-39507 Question HTML export: fix image handling.
Some code got committed to stable branches that relied on a new API that
was in master only. This fixes it to use the old API.
2013-08-14 11:02:35 +01:00
Dan Poltawski ad2fc9d060 MDL-41157 calendar: improve calendar_get_course_cached
The function get_course() introduced in 2.5.1 will use $COURSE and
$SITE to avoid an uncessary DB query, simplifying the logic of this
function and improving perf.
2013-08-14 11:06:17 +08:00
Dan Poltawski d0cd4de2dd MDL-41157 calendar: add unit tests for calendar_get_course_cached 2013-08-14 11:06:16 +08:00
Brian King ee5a68022f MDL-29004 Wiki: display images in printer-friendly view 2013-08-13 10:03:02 +02:00
Dan Poltawski a5a39298fa MDL-39507 qtype_essay: hacky fix for unit tests
This is just to get the tests passing for integration purposes. Tim
may want to do a robust fix and revert this.
2013-08-13 10:47:36 +08:00
Dan Poltawski 2d0f489759 Merge branch 'MDL-39507_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-13 09:53:09 +08:00
Sam Hemelryk 3f1c01de8d Merge branch 'MDL-41045-m25' of git://github.com/sammarshallou/moodle into MOODLE_25_STABLE 2013-08-13 10:19:16 +12:00
Sam Hemelryk 7ccc8e8b1c Merge branch 'MDL-39691_25' of git://github.com/jmvedrine/moodle into MOODLE_25_STABLE 2013-08-13 09:41:10 +12:00
Sam Hemelryk acea87e9b2 Merge branch 'MDL-41091_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-13 09:38:29 +12:00
Sam Hemelryk 05c04ad471 Merge branch 'wip-MDL-41114-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-08-13 09:31:43 +12:00
sam marshall f1cb34a17a MDL-41050 Progress bar: Width parameter does not work 2013-08-13 09:29:22 +12:00
Sam Hemelryk 6ae19630c5 Merge branch 'MDL-41033_m25' of git://github.com/rwijaya/moodle into MOODLE_25_STABLE 2013-08-13 09:22:44 +12:00
Sam Hemelryk 19f92cfd80 Merge branch 'MDL-40852_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-08-13 09:09:59 +12:00
Sam Hemelryk 8e086c697e Merge branch 'MDL-40996_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-13 09:08:04 +12:00
Sam Hemelryk 2f1dbeb9ba Merge branch 'MDL-30895-25' of https://github.com/mouneyrac/moodle into MOODLE_25_STABLE 2013-08-13 08:45:25 +12:00
Sam Hemelryk 499637cbc4 NOBUG: fixed whitespace 2013-08-13 08:41:37 +12:00
Sam Hemelryk 5c46191bd0 Merge branch 'MDL-35931-25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-08-13 08:38:20 +12:00
Sam Hemelryk 55ad6e5841 Merge branch 'MDL-35919-25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-08-13 08:35:34 +12:00
Sam Hemelryk 2f4aa72775 Merge branch 'MDL-35934_m25' of git://github.com/rwijaya/moodle into MOODLE_25_STABLE 2013-08-13 08:32:43 +12:00
Tim Hunt 1d428a476a MDL-39507 questions: fix pluginfile URLs before format_text.
This commit build's on Jean-Michel's work, tidying up a few lose ends.
2013-08-12 13:13:59 +01:00
Jean-Michel Vedrine 4cb50d230b MDL-39507 questions: fix pluginfile URLs before format_text. 2013-08-12 10:37:11 +01:00
Dan Poltawski c6a8d2c08c Merge branch 'MDL-27655_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-08-12 16:41:59 +08:00
Dan Poltawski 666d9bea6b Merge branch 'MDL-30001_25' of git://github.com/jmvedrine/moodle into MOODLE_25_STABLE 2013-08-12 16:13:20 +08:00
Jason Fowler 6cc0caebb5 MDL-35919 - Activity Chooser - Adding Aria attributes to improve accessibility 2013-08-12 13:23:32 +08:00
Marina Glancy 7e7e871915 MDL-41114 Avoid unnecessary retrieving of coursecat from DB
- course category depth can be estimated in make_categories_options() by the number of separators
2013-08-12 15:11:16 +10:00
Rossiani Wijaya b303f6663a MDL-35934 Filemanager: change the set attribute to use setAttribute() instead of YUI set(). 2013-08-12 12:46:38 +08:00
Kirill Astashov 5ec001f19f MDL-41122: Trim on RSS body to prevent Remote RSS block from failing on valid feeds 2013-08-12 12:41:02 +09:30
Marina Glancy fdec161716 MDL-41114 Speeding up course listings on large sites
- function coursecat::make_categories_list() does not use retrieved contexts and has to query them again.
- /course/manage.php uses field coursecat:: that was not fetched when retrieving the course category children.
2013-08-11 21:48:30 +10:00
Jean-Michel Vedrine 17c77ac500 MDL-39691 Lesson - Email graded essays not working 2013-08-11 08:12:22 +02:00
Jean-Michel Vedrine e87a512c55 MDL-30001 WEBCT Import does not work for 2.0 2013-08-11 07:59:56 +02:00
Petr Škoda 287f2af5a0 MDL-41112 fix theme and js caching info in config-dist.php 2013-08-10 23:46:47 +02:00
Rossiani Wijaya c50d563b63 MDL-41033 Filepicker: add ARIA attributes for selecting file in a modal 2013-08-09 10:55:41 +08:00
Rossiani Wijaya cf4a857e45 MDL-35934 Filemanager: update set focus attribute.
Also limit the display string for the dialog header to fit nicely on mobile devices
2013-08-09 10:53:08 +08:00
Rossiani Wijaya 80f8d50daa MDL-35934 Filemanager: add aria attributes for editing file/folder.
Add unique reference ids
2013-08-09 10:52:54 +08:00
Tim Hunt fa92bc270f MDL-41091 questions: fix get_all_submitted_qt_vars for unit testing. 2013-08-08 14:43:35 +01:00
Jerome Mouneyrac 0b121f1518 MDL-30895 switch from dl tag to table in the accessible chat 2013-08-08 17:48:24 +08:00
Tim Hunt 0d3a5c085f MDL-40996 quiz show user pic should also show name.
This was a regression introduced by MDL-20636 two years ago!
2013-08-08 09:57:58 +01:00
Tim Hunt 60238d1c24 MDL-31487 fix FEATURE_CONTROLS_GRADE_VISIBILITY for quiz.
This is a followup to MDL-18301. That fix missed the following points:

1. On the edit categories and items screens, all items had an eye-con to
control the visibility, even if the visibility was controlled by the
module.

2. Changing the visibility of a grade category change the visibility of
all items within it, even if the visibility was controlled by the
module.

3. The quiz ingored $cm->visible when controlling whether its grade item
was visible.
2013-08-08 09:56:55 +01:00
Tim Hunt e0323c2a2b MDL-27655 improve purge all caches.
If you click the link in the page footer, then it will reliably
redirect you back to the page you were on after purging the caches.

If you go to the purge all caches page in the admin menu, it shows you a
purge button, with no cancel button. Clicking the button purges the
caches and takes you back to the page with the button.
2013-08-08 09:56:33 +01:00
Sam Hemelryk cda44a165a weekly release 2.5.1+ 2013-08-08 16:24:57 +12:00
Sam Hemelryk 7ff9696fcb Merge branch 'install_25_STABLE' of git://git.moodle.org/moodle-install into MOODLE_25_STABLE 2013-08-08 16:19:30 +12:00
Jason Fowler f8243dc071 MDL-35931 Accessibility - adding focus change when repository is selected 2013-08-08 11:30:55 +08:00
sam marshall 99aa447550 MDL-41045 course_add_cm_to_section should not test for sections unless necessary 2013-08-07 17:18:41 +01:00
Frederic Massart e106ecb639 MDL-41071 core: plugininfo_mod caches in plugininfo_mod definition 2013-08-07 20:58:10 +08:00
Mark Nelson 23ad39f773 MDL-40662 block_course_overview: added addinstance capability string 2013-08-07 15:20:02 +12:00
AMOS bot e29655450d Automatically generated installer lang files 2013-08-07 00:43:00 +00:00
Sam Hemelryk 7478d2534b Merge branch 'MDL-40086-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-08-07 10:37:34 +12:00
Frederic Massart 03589368a3 MDL-40086 file: Correct ordering of subdirectories
Thanks to Mohamed Alsharaf for the proposed solution.
2013-08-06 13:55:25 +08:00
Sam Hemelryk 3267d96132 Merge branch 'MDL-34989-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-08-06 17:51:17 +12:00
David Monllao 87b252defd MDL-40852 behat: Wrong URLs detection 2013-08-06 13:43:37 +08:00
Ruslan Kabalin f327285ab3 MDL-40947: Fix segmentation fault issue in get_fast_modinfo. 2013-08-06 17:42:08 +12:00
Sam Hemelryk aca4d181b9 Merge branch 'wip-mdl-40469-m25' of git://github.com/rajeshtaneja/moodle into MOODLE_25_STABLE 2013-08-06 17:36:08 +12:00
Sam Hemelryk 0b1ee3b871 Merge branch 'MDL-40420_25' of https://github.com/prateeksachan/moodle into MOODLE_25_STABLE 2013-08-06 17:01:55 +12:00
Sam Hemelryk ce3fe87f91 Merge branch 'w32_MDL-41002_m25_enroltypo' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-08-06 16:55:31 +12:00
Marina Glancy 71699c5a81 Merge branch 'MDL-31226-MOODLE_25_STABLE' of https://github.com/lucisgit/moodle into MOODLE_25_STABLE 2013-08-06 14:39:26 +10:00
Mark Nelson ea6b3ac108 MDL-27953 auth: documented the newly introduced function can_be_manually_set() in upgrade.txt 2013-08-06 15:47:36 +12:00
Mark Nielsen 01af794851 MDL-40870: Icon alt text in External Tool admin settings all read Accept 2013-08-06 14:48:58 +12:00
Sam Hemelryk d3751ed482 Merge branch 'MDL-40662_m25' of https://github.com/markn86/moodle into MOODLE_25_STABLE 2013-08-06 14:39:29 +12:00
AMOS bot 866fa55703 Automatically generated installer lang files 2013-08-06 00:42:17 +00:00
Mark Nielsen e1ff960c94 MDL-39090: Duplicate parameters in LTI launches
Removed endpoint query string params from body
to prevent param duplication.
2013-08-06 10:24:44 +12:00
Sam Hemelryk a2f561b6a7 Merge branch 'MDL-27953_m25' of https://github.com/markn86/moodle into MOODLE_25_STABLE 2013-08-06 10:10:46 +12:00
Sam Hemelryk eeb784d41d Merge branch 'w32_MDL-40889_m25_jsminify' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-08-06 09:55:10 +12:00
Marina Glancy 0b1723fd57 Merge branch 'MDL-36011-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-08-05 17:16:47 +10:00
Marina Glancy 25dcfa6f54 Merge branch 'MDL-30852-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-08-05 13:52:38 +10:00
Shane Elliott c794ad68c8 MDL-40684 Fix conditional field name for custom user fields 2013-08-05 15:51:34 +12:00
Sam Hemelryk 85180a0fa9 Merge branch 'MDL-40937_assignment_history_25' of git://github.com/davosmith/moodle into MOODLE_25_STABLE 2013-08-05 15:46:44 +12:00
Sam Hemelryk 737542c674 Merge branch 'MDL-38758_m25' of https://github.com/markn86/moodle into MOODLE_25_STABLE 2013-08-05 15:37:14 +12:00
Sam Hemelryk f16972e717 Merge branch 'MDL-35922-25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-08-05 15:32:12 +12:00
Damyon Wiese 93d1a6147b MDL-30852 grade report: More coding guideline cleanups. 2013-08-05 11:24:00 +08:00
Damyon Wiese ff8e3b0739 MDL-30852 grade: Coding style fix for user report. 2013-08-05 11:24:00 +08:00
Steve Bader 95ad1cee12 MDL-30852 grade report: Add aria attributes
Converted to git branch by Damyon
2013-08-05 11:24:00 +08:00
Marina Glancy a4bd80565f Merge branch 'MDL-40825_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-08-05 13:16:34 +10:00
Sam Hemelryk 9f15b383d1 Merge branch 'MDL-35927_m25' of git://github.com/rwijaya/moodle into MOODLE_25_STABLE 2013-08-05 14:38:38 +12:00
Marina Glancy 153cb0b4c3 Merge branch 'MDL-40320-m25' of git://github.com/sammarshallou/moodle into MOODLE_25_STABLE 2013-08-05 12:31:53 +10:00
Marina Glancy 2adfb6528e Merge branch 'MDL-35981-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-08-05 12:20:40 +10:00
Damyon Wiese 36b58250b7 MDL-35981 comments: Fix for keyboard control of "add a comment" 2013-08-05 09:50:44 +08:00
Damyon Wiese 25379e44ad MDL-35981 comments: Remove confirm step from behat delete comments. 2013-08-05 09:50:44 +08:00
Damyon Wiese 38866c905a MDL-35981 comments: Add comment about keycodes for space and enter. 2013-08-05 09:50:44 +08:00
Damyon Wiese 32c72ccb37 MDL-35981 comments: Make delete comment keyboard accessible. 2013-08-05 09:50:43 +08:00
Sam Hemelryk 03c3e7c4e8 Merge branch 'wip-MDL-34785-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-08-05 13:36:43 +12:00
Marina Glancy e8a943e361 Merge branch 'wip-mdl-40933-m25' of git://github.com/rajeshtaneja/moodle into MOODLE_25_STABLE 2013-08-05 10:49:32 +10:00
Marina Glancy b4750e06c9 MDL-34785 performance improvement with big list of courses 2013-08-05 10:14:34 +10:00
Petr Škoda 70e746f43e MDL-41002 fix typo causing fatal error on other users page
Credit goes to Bernhard Brandstetter, thanks!
2013-08-04 15:01:43 +02:00
Ruslan Kabalin 6c16201632 MDL-31226: quiz: Fix message for attempts built on previous.
At the moment, when attempt is built on the last one, "not yet answered"
message is shown, which confuses many people. This patch modifies the state to
"complete" for attempt based on previous and modifies the output string.

Many thanks to Tim Hunt for guiding me through quiz infrastructure and some code
suggestions.
2013-08-02 16:55:59 +01:00
Petr Škoda 3dd51921de MDL-40889 prevent 304 when minimising JS 2013-08-02 16:29:12 +02:00
Damyon Wiese b0998d5099 MDL-36011 tablelib: Make column headers expand/collapse links accessible.
Conflicts:

	theme/base/style/core.css
	theme/bootstrapbase/style/moodle.css
2013-08-02 11:29:45 +08:00
AMOS bot df84da67ec Automatically generated installer lang files 2013-08-02 00:38:31 +00:00
Sam Hemelryk a9657adb0f weekly release 2.5.1+ 2013-08-02 08:24:49 +12:00
Sam Hemelryk 1496e4990f Merge branch 'install_25_STABLE' of git://git.moodle.org/moodle-install into MOODLE_25_STABLE 2013-08-02 08:12:26 +12:00
sam marshall c358c8a2c0 MDL-40320 Course page: Text greyed when conditional activity available 2013-08-01 14:13:43 +01:00
Rossiani Wijaya 239fd1544f MDL-35927 filepicker: add aria attribute to display modal error 2013-08-01 15:40:49 +08:00
Mark Nelson 4a546bf04c MDL-40662 block_course_overview: added addinstance capability to remove debugging message due to system context being used on the 'Default My home page' 2013-08-01 12:53:15 +08:00
Rajesh Taneja bbf727c3a8 MDL-40469 Gradebook: Fixed setType warning while exporting gradebook with publishing set 2013-08-01 10:33:51 +08:00
Jason Fowler 219d7ec5c0 MDL-35922 - Adding aria attributes to create-folder modal 2013-07-31 16:42:01 +08:00
Davo Smith 42e54cffad MDL-40937 mod_assign - remove debugging code from 'previous submissions' javascript, that was breaking in IE8/IE9 2013-07-30 11:37:34 +01:00
Rajesh Taneja dcb5678e99 MDL-40933 Administration: Added 'is after' and 'is before' to date filter 2013-07-30 16:15:06 +08:00
Nadav Kavalerchik a36788687a MDL-40902 - Align breadcrumbs to the right in RTL mode (theme/clean, bootstrapbase)
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-07-30 10:36:25 +12:00
Sam Hemelryk cecc076eb7 Merge branch 'MDL-40746_25' of git://github.com/grabs/moodle into MOODLE_25_STABLE 2013-07-30 09:40:28 +12:00
Frederic Massart 2d325dfcf8 MDL-40615 Repository: Updated Amazon S3 library
Fixed insecure use of CURLOPT_SSL_VERIFYHOST
2013-07-30 09:04:58 +12:00
Sam Hemelryk a38830a07b Merge branch 'MDL-39461_25' of https://github.com/totara/openbadges into MOODLE_25_STABLE 2013-07-30 08:59:26 +12:00
Mark Nelson db69373d40 MDL-38758 mod_forum: fixed issue where pass by reference removal caused an undefined variable error 2013-07-29 19:12:38 +08:00
Mark Nelson 8a868abe22 MDL-27953 auth: allowed the LDAP plugin to be manually assigned to uploaded users 2013-07-29 17:11:13 +08:00
Dan Poltawski ff8d9b59ef Merge branch 'MDL-40867_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-29 15:24:54 +08:00
Charles Fulton 9fc858e93e MDL-40323 report_log: fix strict standards error 2013-07-29 14:00:34 +08:00
Dan Poltawski ae19a843bc Merge branch 'MDL-40857_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-29 13:56:46 +08:00
Dan Poltawski 5279ff0725 MDL-40775 feeback: remove uncessary header 2013-07-29 13:31:17 +08:00
Dan Poltawski c79efe260b Merge branch 'MDL-40775_25' of git://github.com/grabs/moodle into MOODLE_25_STABLE 2013-07-29 13:30:35 +08:00
Dan Poltawski 673a456343 Merge branch 'wip-MDL-29731-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-07-29 13:21:12 +08:00
Dan Poltawski 2018e8f12a Merge branch 'MDL-36399_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-29 12:40:12 +08:00
Dan Poltawski 3d4cb04ded Merge branch 'MDL-40863_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-29 10:09:53 +08:00
Damyon Wiese aea34768be MDL-34989 assign: Do not add a param to grading_disabled - cannot be backported.
Conflicts:

	mod/assign/locallib.php
2013-07-29 09:57:18 +08:00
Ashley Holman fae11d2ef1 MDL-34989 assign: Allow students to submit when grade is overriden
Also inform teachers when grading is disabled due to gradebook lock/override.
2013-07-29 09:56:47 +08:00
Sam Hemelryk 5fb1fad943 Merge branch 'MDL-40878_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-29 12:54:16 +12:00
Sam Hemelryk 7b3a806741 Merge branch 'w31_MDL-40891_m25_mkdirrace' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-29 11:52:35 +12:00
Sam Hemelryk 8ba4fd3b9a Merge branch 'MDL-40727-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-07-29 11:49:41 +12:00
Sam Hemelryk fa386d3e36 Merge branch 'MDL-40854_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-29 11:01:45 +12:00
Mark Nielsen 9fe0281217 MDL-40005: LTI module uses Apache specific function for retrieving request headers 2013-07-29 10:54:10 +12:00
AMOS bot f0592ad3a3 Automatically generated installer lang files 2013-07-28 00:42:29 +00:00
AMOS bot 0147686fc7 Merge branch 'MOODLE_25_STABLE' into install_25_STABLE 2013-07-27 00:43:10 +00:00
Petr Škoda f4a4e5e8e6 MDL-40891 prevent exceptions when creating directories in file store
Even if cache creation fails moodle should continue working.
2013-07-26 20:30:41 +02:00
Petr Škoda 7a8ef1453e MDL-40891 work around make_writable_directory() race condition
You will still get a "PHP Warning:  mkdir(): File exists" but that should not cause any problems on production sites.
2013-07-26 20:29:55 +02:00
Andreas Grabs d460eb563e MDL-40775 mod_feedback - Undefined variable in feedback activity 2013-07-26 19:42:28 +02:00
Andreas Grabs 61925ed61c MDL-40746 mod_feedback - Feedback forms display oddly in Clean theme 2013-07-26 19:42:24 +02:00
Tim Hunt 6eb9e11615 MDL-40854 fix mod/...:view capabilities
Prior to the fix, if you did not have a capability like mod/page:view,
then you woulds still see the link to the Page activity in the course
section, but when you clicked on it, you would run into a
require_capability error.

It is a principle that we never show users a link to a page they are not
allowed to access, therefore, when users do not have mod/...:view, they
should not see the link on the course page.

This patch implements this in the cm_info class, in a similar way to how
access restrictions by groups works.

It does not assume that the mod/...:view capability exists. If the
capability does not exist, then users are not prevented from seeing the
link.
2013-07-26 11:51:25 +01:00
Tim Hunt b5d9f07ab5 MDL-40857 External tool: fix incorrect moodle_url usage. 2013-07-26 11:41:36 +01:00
Tim Hunt 5ed6c6a5a1 MDL-40857 External tool (LTI) capabilitiy names confusing.
I have improved the names in the language file so that they actually say
what they do (based on my reading of the code). I have also added
comments to access.php explaining each capability.

I have corrected a few of the RISK in access.php which were wrong.

I have changed a couple of the archetypes so that guests cannot launch
LTI activities, and editing teachers cannot do editing things.
2013-07-26 11:41:34 +01:00
David Monllao f1c1230a77 MDL-40825 behat: Giving time to display the ajax response 2013-07-26 12:38:56 +02:00
Tim Hunt 521932c6d8 MDL-40867 fix misleading PHPdocs for _get_coursemodule_info 2013-07-26 10:17:33 +01:00
Tim Hunt 364b991369 MDL-40867 External tools should launch pop-ups from the course page
Without this fix, if an LTI tool is set to open in a pop-up, then
clicking the link on the course page opens another almost blank page,
which then tries to open the pop-up, which is almost invariably caught
by your pop-up blocker.

With this fix, clicking the link on the course page opens the pop-up
directly, like for pop-up resources.
2013-07-26 10:17:13 +01:00
Tim Hunt 944e90bd6d MDL-40863 feedback and LTI mods need get_extra_capabilities fn
Since moodle/site:accessallgroups is relevant to how them.
2013-07-26 10:16:54 +01:00
Tim Hunt 18dde90e33 MDL-36399 LTI editing tool config breaks on Oracle.
Note that this fix will fail if the tool URL is longer than 1333
characters.
2013-07-26 10:16:11 +01:00
Damyon Wiese f171a8c06e weekly release 2.5.1+ 2013-07-26 11:29:27 +08:00
AMOS bot c0aa2a2c57 Automatically generated installer lang files 2013-07-25 00:40:39 +00:00
Marina Glancy 8127fbe1e1 MDL-29731 Bugs in recent activity when using separate groups 2013-07-24 21:50:02 +10:00
Damyon Wiese 025b889981 MDL-40727 Cache: Fix file cache store on windows. 2013-07-24 17:08:36 +08:00
Jason Fowler 304e27ed5f MDL-39748 - Grading - Fixing the increasing height regression
Conflicts:

	theme/bootstrapbase/style/moodle.css
2013-07-24 15:25:32 +08:00
Sam Hemelryk 7de495d5c6 Merge branch 'wip-MDL-37869-stable25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-07-24 11:27:58 +12:00
Sam Hemelryk 5590ac2aff Merge branch 'MDL-40315_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-07-24 11:14:01 +12:00
Nadav Kavalerchik cf1e9e9ae3 MDL-39704 - Properly align and widen the chat bubbles in mod/chat, when in RTL mode 2013-07-23 23:23:31 +02:00
Nadav Kavalerchik 614a5201ad MDL-40544 - Right align all tables (system wide) in RTL mode (theme/clean , bootstrapbase)
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-07-23 22:40:26 +02:00
Nadav Kavalerchik e992ee44d4 MDL-40589 - Theme/CLEAN - Flip YUI3 tree item icon in RTL mode in folder resource
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-07-23 22:34:55 +02:00
Nadav Kavalerchik 4e0a41305d MDL-40189 - Theme/Clean - Right align form labels and left align form input elements on admin pages, system wide (when in RTL mode)
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-07-23 22:30:10 +02:00
Nadav Kavalerchik 018904a185 MDL-40071 - Right align category titles and usernames in gradebook (theme/clean, bootstrapbase)
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-07-23 22:15:18 +02:00
Eloy Lafuente (stronk7) 1bb7b65496 Merge branch 'w30_MDL-40679_m25_zlib' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-23 18:21:09 +02:00
Eloy Lafuente (stronk7) d03c0ef72d Merge branch 'MDL-40816_m25' of git://github.com/markn86/moodle into MOODLE_25_STABLE 2013-07-23 18:19:32 +02:00
Eloy Lafuente (stronk7) c8dd490281 Merge branch 'MDL-40785_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-23 18:01:19 +02:00
David Monllao 374d9f98d6 MDL-40595 tool_behat: Referencing init.php script
Almost everybody will use init.php instead of
running manually the composer commands and util.php
to install and enable the test environment.
2013-07-23 17:17:36 +02:00
Eloy Lafuente (stronk7) e681d0ed58 MDL-40700 tests: skip if there is not instance
Various reasons can lead to the cache stores not being available
(missing extension, configuration...). Under those situations
the test must be skipped because for sure it will break if
we continue.
2013-07-23 17:02:36 +02:00
Eloy Lafuente (stronk7) 52affa8a9a Merge branch 'wip-MDL-40700-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-07-23 13:58:30 +02:00
Eloy Lafuente (stronk7) e988493e68 Merge branch 'wip-MDL-40763-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-07-23 13:19:54 +02:00
Nadav Kavalerchik e88a456eb3 MDL-40082 - Several UI fixes for question chooser dialog, when in RTL/LTR modes (theme/clean, bootstrapbase)
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-07-23 12:18:03 +02:00
Dan Poltawski c38a4b6f04 Merge branch 'MDL-20609_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-23 16:45:22 +08:00
Dan Poltawski 4353b3d830 Merge branch 'MDL-40480_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-23 16:38:17 +08:00
Damyon Wiese e2bb8c1bbd Merge branch 'MDL-40295_m25' of git://github.com/rwijaya/moodle into MOODLE_25_STABLE 2013-07-23 15:54:10 +08:00
Jason Fowler bf3371458d MDL-39748 - Grading Methods - Fixing input field widths for Rubrics
Conflicts:

	theme/bootstrapbase/style/moodle.css
2013-07-23 14:32:58 +08:00
Dan Poltawski 36c3919916 MDL-40585 fix trailing whitespace 2013-07-23 13:34:33 +08:00
Dan Poltawski a8369f6a96 Merge branch 'MDL-40585_25' of git://github.com/mr-russ/moodle into MOODLE_25_STABLE 2013-07-23 13:34:29 +08:00
Dan Poltawski fdcad4d5f3 Merge branch 'MDL-40584_25' of https://github.com/mr-russ/moodle into MOODLE_25_STABLE 2013-07-23 12:38:27 +08:00
Dan Poltawski 1f506acf58 Merge branch 'MDL-40793_25' of https://github.com/mr-russ/moodle into MOODLE_25_STABLE 2013-07-23 10:42:07 +08:00
Sam Hemelryk 63ddd040c0 Merge branch 'MDL-40680-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-07-23 14:13:59 +12:00
Eloy Lafuente (stronk7) 932ad50a6e Merge branch 'wip-MDL-38707-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-07-23 03:52:23 +02:00
Jason Fowler f55ac904fa MDL-37869 - Course - Removing the ALT text from activity and resource icons as it duplicated the accesshide text 2013-07-23 08:57:44 +08:00
AMOS bot be2a25c80f Automatically generated installer lang files 2013-07-23 00:39:23 +00:00
Eloy Lafuente (stronk7) 2f956f40b6 Merge branch 'MDL-40123_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-07-23 01:09:20 +02:00
Eloy Lafuente (stronk7) e024b7130a Merge branch 'MDL-39635_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-07-23 00:45:20 +02:00
Eloy Lafuente (stronk7) ed3a28dcec Merge branch 'wip-MDL-33563-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-07-22 22:36:33 +02:00
Yuliya Bozhko aee7b7544c MDL-39461 badges: Fix cURL expectation failed error when trying to connect to backpack 2013-07-23 08:19:17 +12:00
Eloy Lafuente (stronk7) 55be97fba4 Merge branch 'MDL-40626-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-07-22 17:41:01 +02:00
Mark Nelson e94b6c678d MDL-40816 backup: code cleanup on the manage backups form 2013-07-22 18:18:12 +08:00
Mark Nelson ed31b623bc MDL-40816 backup: added missing setType calls to the manage backups form 2013-07-22 18:18:03 +08:00
Dan Poltawski 6ca8973eca Merge branch 'w30_MDL-38867_m25_gspell' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-22 17:00:56 +08:00
Damyon Wiese 690b65ca56 MDL-40260 Course overview: code tidy for previous commit
Moving this check inside the following if makes it clear which code
branch it applies to.
2013-07-22 16:15:32 +08:00
Damyon Wiese 1ab82c6775 Merge branch 'm25_MDL-40260' of git://github.com/danmarsden/moodle into MOODLE_25_STABLE 2013-07-22 16:15:05 +08:00
Damyon Wiese d99508f25b Merge branch 'wip-MDL-40174-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-07-22 16:02:47 +08:00
Dan Poltawski 114b8bed28 Merge branch 'MDL-38837_25' of https://github.com/totara/openbadges into MOODLE_25_STABLE 2013-07-22 15:02:21 +08:00
Dan Poltawski 4896a0ba25 Merge branch 'MDL-39441_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-07-22 10:46:47 +08:00
Dan Poltawski d46d40d407 Merge branch 'wip-MDL-37333_M25' of git://github.com/gjb2048/moodle into MOODLE_25_STABLE 2013-07-22 10:31:47 +08:00
Russell Smith 874d5a4f85 MDL-40793 profiling: Allow multiple reference runs in display 2013-07-22 12:15:02 +10:00
Sam Hemelryk 5b88c03311 MDL-40174 navigation: don't remove active root nodes without children 2013-07-22 10:49:05 +12:00
Sam Hemelryk 07e26360b8 MDL-40700 cache: memcache and memcached stores now allow alphanumext prefixes 2013-07-22 10:41:42 +12:00
Chris Wharton fe6eeced0b MDL-40700 cache: Validate memcache key prefix field 2013-07-22 10:41:42 +12:00
Sam Hemelryk 497d70c3ec MDL-40700 cache: fixed cache store unit tests 2013-07-22 10:40:56 +12:00
Petr Škoda 5d7faafa0f MDL-40679 mark zlib extension as recommended 2013-07-20 21:20:06 +02:00
AMOS bot dcccd8e2bb Automatically generated installer lang files 2013-07-20 00:44:26 +00:00
Tim Hunt d882d06cea MDL-40785 question instances report: ignore subquestions
We should not count subquestions of cloze questions (parent != 0) but we
do want to count random questions (parent = id).
2013-07-19 15:16:53 +01:00
Tim Hunt 9a62c01edc MDL-40480 tablelib: specify charset in XHMTL downloads.
Thanks to Jürgen Zimmer for the suggestion.
2013-07-19 11:46:35 +01:00
Tim Hunt 58c44e5c20 MDL-20609 quiz tables: improve layout for long cell contents.
By allowing more wrapping.
2013-07-19 11:46:18 +01:00
David Monllao 2ab6b4d43d MDL-40123 behat: Show all of form's elements changes.
* Avoid waiting until Show more... links appears if we
  already waited.
* Use collapse/expand button rather than clicking on
  each of the form's fieldsets.
2013-07-19 10:36:29 +02:00
David Monllao 55e9a99c18 MDL-39635 behat: XPath cleanups
- Escaping steps arguments redirected to other steps
- Adding normalized-space() in all contains() assertions
- General xpaths review
- Convering provided xpath text strings to xpath literals
  to avoid problems with arguments containing both single
  quotes and double quotes
2013-07-19 10:35:54 +02:00
David Monllao 15c461d34d MDL-39635 behat: Replacing hardcoded language strings
Using get_string() instead.
2013-07-19 10:07:31 +02:00
David Monllao a4fad25c53 MDL-39635 behat: Fixing line breaks
Not supported by Windows OSs.
2013-07-19 10:07:31 +02:00
Petr Škoda 6139b462d7 MDL-38867 remove Google spell checking option 2013-07-19 09:32:11 +02:00
Marina Glancy 63e1765c91 MDL-38707 Display module name when the folder is displayed inline 2013-07-19 15:53:13 +10:00
Marina Glancy 16307c1428 MDL-33563 Version bump for grading methods API change 2013-07-19 15:15:21 +10:00
Marina Glancy f2fe655aeb MDL-33563 Grading methods allow decimal grades 2013-07-19 15:13:58 +10:00
Tim Lock 448fc8ab1a MDL-40626 gradebook: Prevent incorrect override with multiline feedback
The quick grading option doesn't allow mutliline editing.
2013-07-19 12:01:37 +08:00
Damyon Wiese 7aed82f15d weekly release 2.5.1+ 2013-07-19 09:51:35 +08:00
Damyon Wiese 4217cea494 Merge branch 'install_25_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_25_STABLE 2013-07-19 09:25:04 +08:00
David Monllao c5a0598bf9 MDL-40315 behat: Performance improvement
We look for exceptions after each step, this patch
includes a pre-checking query to avoid multiple queries
for each step when most of the time they are not necessary.
2013-07-18 11:22:57 +02:00
Damyon Wiese 19f2b2a41f MDL-35851 lesson: Handle importing questions into an empty lesson.
Also - make sure the page we are updating belongs to the lesson.
2013-07-18 16:48:09 +08:00
Rossiani Wijaya 00c9d81bb7 MDL-40295 wiki mod: fix set_url() error for printer friendly page.
Additionally, fix wiki pagelayout for printing
2013-07-18 10:57:11 +08:00
Yuliya Bozhko 2e64d85668 MDL-38837 badges: Check for http or https in badges backpack support 2013-07-18 13:41:33 +12:00
Gareth J Barnard ffadd1242a MDL-37333 theme: Fix 'Clear theme caches' redirect. 2013-07-17 17:39:33 +01:00
Damyon Wiese 2bdf958208 MDL-35851 Lesson: Check/fix the page order every time the pages are loaded 2013-07-17 13:04:32 +08:00
Marina Glancy d11977ebc9 Merge branch 'MDL-40701-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-07-17 12:46:26 +10:00
Dan Poltawski 947933e62b MDL-40701 mod_assignment: fix refresh events
It was getting the cm event with the wrong id and calling
deprecated functions
2013-07-17 10:31:22 +08:00
prateeksachan 7c7563c46a MDL-40420: timemodified field update when lesson_page is updated 2013-07-17 07:24:06 +05:30
AMOS bot d87db3bc5e Automatically generated installer lang files 2013-07-17 00:42:26 +00:00
Eloy Lafuente (stronk7) b5d967cb1d Merge branch 'MDL-40652_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE 2013-07-17 00:41:19 +02:00
Eloy Lafuente (stronk7) c59f83cec2 Merge branch 'w29_MDL-40611_m25_accesslibtest' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-17 00:32:37 +02:00
Eloy Lafuente (stronk7) cbd227ffae Merge branch 'MDL-40536-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-07-17 00:26:43 +02:00
Eloy Lafuente (stronk7) bc27ec579e Merge branch 'MDL-40690_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-07-17 00:17:43 +02:00
Eloy Lafuente (stronk7) 980746ce63 Merge branch 'MDL-38857_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-07-16 22:02:23 +02:00
Eloy Lafuente (stronk7) 2ff8b13dee Merge branch 'w29_MDL-40423_m25_localsubdir' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-16 21:55:55 +02:00
David Monllao 623544086d MDL-40690 behat: Ignore StaleElementReference exception
Is another of the exceptions thrown by
Selenium when it tries to interact with
an element that disappeared from the DOM,
in happens randomly when redirecting the
user to another page with a wait period to
show him/her a message.
2013-07-16 16:45:59 +02:00
Damyon Wiese 9dafb1ba89 Merge branch 'wip-MDL-40621-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-07-16 21:30:29 +08:00
Damyon Wiese e1982a25cd Merge branch 'wip-MDL-39299-stable25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-07-16 21:14:45 +08:00
Jason Fowler 845198b7d7 MDL-39299 - Course - Correcting some rendering problems in bootstrapbase
Conflicts:

	theme/bootstrapbase/style/moodle.css
2013-07-16 15:48:10 +08:00
Eloy Lafuente (stronk7) aeee792c86 Merge branch 'MDL-40555-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE
Conflicts:
	cache/stores/static/lib.php
2013-07-16 09:46:27 +02:00
Marina Glancy 996d775457 Merge branch 'MDL-35851-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-07-16 16:11:29 +10:00
Damyon Wiese 8fedf20b63 MDL-35851 lesson: removed expensive upgrade step.
Just deal with the bad data when displaying the lesson instead.

Conflicts:

	mod/lesson/db/upgrade.php
2013-07-16 14:07:01 +08:00
Damyon Wiese e811b5fbe1 Merge branch 'MDL-40195_25' of git://github.com/aolley/moodle into MOODLE_25_STABLE 2013-07-16 13:29:38 +08:00
Marina Glancy 3e704e0d7f MDL-39812 recompile less for bootstrapbase 2013-07-16 15:24:55 +10:00
Marina Glancy da4a51d096 Merge branch 'MDL-39812_bootstrapbase_m25' of git://github.com/rwijaya/moodle into MOODLE_25_STABLE 2013-07-16 14:33:24 +10:00
Damyon Wiese f352c87f67 Merge branch 'w29_MDL-40558_m25_guestdelete' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-16 11:29:14 +08:00
Matt Debus b66e88a4d1 MDL-40524: mod_wiki: Display comments in order 2013-07-16 11:25:41 +08:00
Damyon Wiese edb2b3c8a0 Merge branch 'MDL-40538_25' of https://github.com/mr-russ/moodle into MOODLE_25_STABLE 2013-07-16 10:25:14 +08:00
Rossiani Wijaya 5247f16b14 MDL-35851 Lesson module: fix page order id for import questions. Add upgrade script to fix lesson pages corrupted links 2013-07-16 10:02:19 +08:00
Dan Poltawski 82b32059b5 MDL-40680 store_memcached: fix serialiser options
* Use correct lang string for SERIALIZER_IGBINARY
* Use PARAM_INT for the parameter
2013-07-16 09:38:59 +08:00
Sam Hemelryk b9082c4b0a MDL-40555 cache: implemented unit tests for default search functionality 2013-07-16 08:33:30 +08:00
Frederic Massart 59ba272aa2 MDL-40555 cache: Static store is searchable 2013-07-16 08:33:30 +08:00
Eloy Lafuente (stronk7) ed405efb4c Merge branch 'w29_MDL-40571_m25_adminblocks' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-16 00:26:51 +02:00
Russell Smith d51121efbe MDL-40584 backup: Query db once per category in precheck
The cache is function local and testing against a large database
indicates 10k questions is a large category.  Restore already
uses MEMORY_EXTRA and that will have enough space for the couple
of megabtyes a local sql hash will introduce.
2013-07-16 08:03:59 +10:00
Eloy Lafuente (stronk7) 40aa1f4d88 Merge branch 'MDL-40412_m25' of git://github.com/merrill-oakland/moodle into MOODLE_25_STABLE 2013-07-15 22:08:09 +02:00
Eloy Lafuente (stronk7) ad92b2f1ae Merge branch 'wip-MDL-38747-MOODLE_25_STABLE' of https://github.com/satrun77/moodle into MOODLE_25_STABLE 2013-07-15 17:06:31 +02:00
David Monllao fb50800b16 MDL-39441 behat: Restrict config.php allowed settings 2013-07-15 11:26:12 +02:00
Russell Smith 619fc0cd3c MDL-40585 backup: cache XML parent paths
For $this->groupedpaths, using a key is faster as there is
no need to do in_array searches.

Parent cache allows dirname calls to be substantially reduced.
2048 was chosen as a cache size as this class operates on chunks
of the restore at a time, 8k questions produces a parent cache of
about 500 paths and uses 300K of memory.  Scaling up to 2048 will
use about 1.2M of RAM for really large restores.  This is acceptable
for the 48% function call reduction and the 10% runtime improvement
seen.
2013-07-15 19:23:00 +10:00
Damyon Wiese 4e0dd403e7 MDL-39563: Change to use $CFG consistently 2013-07-15 15:04:58 +08:00
Juan Leyva 2500cd01b1 MDL-39563 Fixing mobilecssurl is not being returned in WebService, phpunit tests
Conflicts:

	webservice/externallib.php
2013-07-15 15:04:24 +08:00
Marina Glancy 2500fc57d0 Merge branch 'MDL-40633_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-15 14:44:22 +10:00
Marina Glancy eccf42d9d9 Merge branch 'wip-MDL-39062-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-07-15 12:42:57 +10:00
Daniel Myers c43b7393f8 MDL-40260 block_course_overview: prevent MNET courses from being dimmed 2013-07-15 13:55:28 +12:00
AMOS bot eda6f4d463 Automatically generated installer lang files 2013-07-15 00:44:25 +00:00
Sam Hemelryk 13a363e534 MDL-39062 cache: version bump to update definitions 2013-07-15 12:01:38 +12:00
Sam Hemelryk 72433ecb43 MDL-39062 cache: persist keys now set properly 2013-07-15 12:01:08 +12:00
Mary Evans 7836d4c93e MDL-40652 Calendar: Changed pagelayout from 'standard' to 'base' in calendar/export.php. 2013-07-14 15:15:35 +01:00
Marina Glancy 046804ce55 MDL-40621 fixed small bug in function editor_tinymce_plugin::fix_row() 2013-07-14 15:04:40 +10:00
Petr Škoda 5d43f79358 MDL-40611 fix context cache size expectation 2013-07-13 15:39:49 +02:00
Petr Škoda fe2577d197 MDL-40571 work around block editing hacks on admin page 2013-07-12 14:59:30 +02:00
Petr Škoda 22010649e1 MDL-40423 fix creation of new install.xml in subplugins 2013-07-12 14:56:44 +02:00
Tim Hunt 3a14deef9e MDL-40633 filter_urltolink breaking some image links.
This was a regression caused by MDL-22390. HTML like
<img src="http://www.example.com/logo.gif" />
was being broken.
2013-07-12 11:43:28 +01:00
Petr Škoda bf39b9a42d MDL-40558 skip admins and guest when deleting incomplete users 2013-07-12 12:37:23 +02:00
Petr Škoda 2d35bf9e04 MDL-40569 fix empty CSS files after cache purging 2013-07-12 12:34:40 +02:00
Dan Poltawski ac470250f7 MDL-40536 course/externallib fix incorrect variable
Fixes test_import_course_invalid_deletecontent_option() from the
previous commit.
2013-07-12 16:43:58 +08:00
Dan Poltawski 77e41db50e MDL-40536 course: unit tests for course_external::import_course
Basic import operations and a specific test case which identifies
a bug.
2013-07-12 16:43:57 +08:00
Mohamed Alsharaf 47ef2a432a MDL-38747 blocks: course format options 'numsections' is required to display the block 2013-07-12 20:23:09 +12:00
Damyon Wiese c2ad901002 weekly release 2.5.1+ 2013-07-12 09:52:21 +08:00
Damyon Wiese 3afab77ad6 Merge branch 'install_25_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_25_STABLE 2013-07-12 09:43:13 +08:00
AMOS bot acf6bc9cdc Automatically generated installer lang files 2013-07-12 00:45:57 +00:00
David Monllao 210290a905 MDL-38857 tool_behat: Adding info about the tool purpose 2013-07-10 12:08:54 +02:00
Marina Glancy 63c8f25b1b Merge branch 'MDL-38366-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-07-10 16:25:38 +10:00
Frederic Massart 21e0b2a025 MDL-38366 repository_filesystem: Prevent use of empty subdir 2013-07-10 13:48:28 +08:00
Marina Glancy 0f2a0a3fb0 Merge branch 'm25_MDL-39832_Fix_Chrome_Issues_ETag_XSendfile_2ndRound' of https://github.com/scara/moodle into MOODLE_25_STABLE 2013-07-10 12:01:29 +10:00
Raymond Wijaya 41e7411b9d MDL-40093_M25: mod/assign: Remove count of drafts in offline assignment's grading summary screen 2013-07-10 11:22:18 +10:00
Marina Glancy 4d8ff7c8e2 Merge branch 'w28_MDL-40488_m25_admin' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-10 11:09:44 +10:00
Russell Smith 30967ff481 MDL-40538 caching: Use isset for performance
isset is much faster than array_key_exists. For caches we need to
ensure as much performance as possible. To all null to continue to
be stored and provide correct results, non ttl also now saves in
$this->store[$key][0].  As isset($this->store[$key]) will return
true in all cases.

time() as found in cache::now() can be slow on some platforms and
we shouldn't bother checking it unless needed. It also stops non-ttl
caches paying the ttl price.

Unit tests were adjusted to ensure null is still handled correctly
when we are only using isset.
2013-07-10 10:41:22 +10:00
Sam Hemelryk 70e9700195 Merge branch 'wip-MDL-40593-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-07-10 12:18:36 +12:00
Marina Glancy 512ab8e262 Merge branch 'MDL-40441_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-10 10:02:53 +10:00
Sam Hemelryk c001e046e0 Merge branch 'w28_MDL-40450_m25_tinymcebuttons' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-10 11:02:01 +12:00
Sam Hemelryk 7c6e64c36c Merge branch 'MDL-40527_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-10 10:31:25 +12:00
Sam Hemelryk c6b546a1ee Merge branch 'm25_MDL-40512' of git://github.com/danmarsden/moodle into MOODLE_25_STABLE 2013-07-10 10:09:59 +12:00
Damyon Wiese 94fbefa96b Merge branch 'MDL-39420_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-09 22:43:43 +08:00
Damyon Wiese 218f778417 Merge branch 'MDL-36479_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-09 22:30:12 +08:00
Damyon Wiese 641595c1fa Merge branch 'MDL-40392_25' of git://github.com/stronk7/moodle into MOODLE_25_STABLE 2013-07-09 21:52:07 +08:00
Marina Glancy edd3c6961e MDL-40593 fixed SQL query to be postgres-compartible 2013-07-09 22:28:41 +10:00
Marina Glancy 1b0951a26a Merge branch 'MDL-40472-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-07-09 21:36:12 +10:00
Tim Hunt 5f45c039fd MDL-39420 multichoice: fix layout of multi-line choices. 2013-07-09 11:57:06 +01:00
Tim Hunt b9f1aaa8de MDL-40441 fix obscure notice in the quiz.
This can only happen if you have both a user with both a real attempt
and a preview, and then edit the quiz settings.

Also clean up this code a bit.
2013-07-09 10:44:57 +01:00
Damyon Wiese 234d90b209 Merge branch 'MDL-40443_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-09 15:16:16 +08:00
Jamie Pratt 81e01645d8 MDL-40176 mock_submit method for testing 2013-07-09 15:09:10 +08:00
Marina Glancy 82043201ea Merge branch 'MDL-39020-m25' of git://github.com/ankitagarwal/moodle into MOODLE_25_STABLE 2013-07-09 16:34:28 +10:00
Damyon Wiese 10061c1de7 Merge branch 'MDL-40499_25' of git://github.com/jmvedrine/moodle into MOODLE_25_STABLE 2013-07-09 13:27:28 +08:00
Damyon Wiese a16698d10b Merge branch 'MDL-40386_25' of https://github.com/prateeksachan/moodle into MOODLE_25_STABLE 2013-07-09 12:34:52 +08:00
Jamie Pratt 161d67d8df MDL-40388 Reset globals after each unit test 2013-07-09 11:56:04 +08:00
Tony Levi d4bbe8997f MDL-40035: Avoid rebuild_course_cache always for empty course 2013-07-09 13:54:24 +10:00
Damyon Wiese d5e3d9a06d Merge branch 'MDL-40318_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-09 11:12:19 +08:00
Damyon Wiese 79fd52c6c3 Merge branch 'MDL-40562_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-07-09 11:05:39 +08:00
Marina Glancy 33025649f3 Merge branch 'MDL-40434_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-09 11:31:52 +10:00
Tim Lock 6fe662302c MDL-40436: auth_ldap: Fixed warning when adding new LDAP users 2013-07-08 22:59:11 +08:00
Adam Olley 66a38f083a MDL-40195: mod_assign: Display grades when quickgrading to 2 decimal places 2013-07-08 20:08:01 +09:30
David Monllao c81f3193ce MDL-40562 behat: Catch NoSuchElement exception 2013-07-08 12:08:15 +02:00
Damyon Wiese ca4077c79d Merge branch 'MDL-38314-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE
Conflicts:
	version.php
2013-07-08 15:14:55 +08:00
Petr Škoda 3e17040a6e MDL-40450 update links to TinyMCE 3.x docs 2013-07-07 16:12:04 +02:00
Matteo Scaramuccia a05efa34e2 MDL-39832 Files: Fixed ETag format according with RFC2616.
ETag must be double quoted,
http://tools.ietf.org/html/rfc2616#section-3.11:

      entity-tag = [ weak ] opaque-tag
      weak       = "W/"
      opaque-tag = quoted-string
2013-07-07 09:06:48 +02:00
Matteo Scaramuccia 31afec2312 MDL-39832 Files: Revert MDL-39688 commit, 161be92065
MDL-39688 has been successful in providing a solution for the issue but further
investigations done in MDL-39832 have got the evidence that the given solution
is more likely a workaround.
2013-07-07 09:06:47 +02:00
Eloy Lafuente (stronk7) fb41a38153 Moodle release 2.5.1 2013-07-06 17:59:23 +02:00
Petr Škoda c0c0353438 MDL-40488 improve $CFG->admin docs 2013-07-06 11:47:50 +02:00
Tim Hunt 47c9a54e63 MDL-40527 enrol meta: respect $CFG->courselistshortnames
Thanks to James Henestofel for working this out in MDL-37558. That issue
got complex, so I am just submitting this simple part of it for
integration.
2013-07-05 15:32:26 +01:00
Rossiani Wijaya 54f0dd9492 MDL-39812 clean theme: fixed breadcrumbs layout for narrow screens 2013-07-05 11:09:21 +08:00
Rossiani Wijaya 0a4c3a88db MDL-39812: bootstrapbase theme: Fix breadcrumbs layout for narrow screen 2013-07-05 10:58:15 +08:00
Dan Marsden 353d91fa1d MDL-40512 SCORM: prevent undefined warning 2013-07-05 12:09:21 +12:00
Jean-Michel Vedrine 0c2a1dec76 MDL-40499 Edit question from 1.9 backup breaks if images in subdirs 2013-07-04 15:01:18 +02:00
Eloy Lafuente (stronk7) dc50d26267 MDL-40392 Navigation -> my courses listing tests
This introduces some behat tests to verify that
the display of enrolled courses in the navigation
block works as expected, both when a plain list
or a nested list is configured.

Personally I'm not happy with the way to select
expected text via css element. I'd love to see
something in an higher level like

I should see the text|link "xxxxx" in the "yyyy" "element"

with element being "block, header, footer, main...."

But that's another issue.
2013-07-04 13:51:48 +02:00
Tim Hunt 1cdc4d2556 MDL-40443 setType notice in quiz reports. 2013-07-04 12:37:59 +01:00
Tim Hunt 3feb538a46 MDL-40318 quiz intro comprising just an impage was not shown
Also, ensure that we don't output an empty box if there are no access
messages.
2013-07-04 12:37:19 +01:00
Tim Hunt 48eec6a5bf MDL-36479 quiz regrade: use progress bar to prevent time-outs 2013-07-04 12:36:36 +01:00
Damyon Wiese 4c6f1ec52e weekly release 2.5+ 2013-07-04 15:34:24 +08:00
Damyon Wiese ef572665e9 MDL-40308: Fix javascript for lti mod_form
It was toggling the state of the hidden input - not the checkbox.
2013-07-04 13:47:23 +08:00
Eloy Lafuente (stronk7) 0383404678 MDL-40376 Fix copy/paste typo 2013-07-03 17:54:14 +02:00
Frederic Massart 03ab0ed880 MDL-38314 repository: Improving performance of upgrade script 2013-07-03 16:29:51 +08:00
Frederic Massart f0c176fccc MDL-38314 repository: Remove orphan repository instances 2013-07-03 16:29:48 +08:00
Frederic Massart 6b7b7455d1 MDL-38314 repository: Delete repository instances on context deletion 2013-07-03 16:27:13 +08:00
Frederic Massart 2bc5ceb31c MDL-38314 repository: Unit Tests for delete_all_for_context() 2013-07-03 16:27:13 +08:00
Damyon Wiese 895f8d2b5f MDL-40472: Clean all codechecker warnings on mod_assign 2013-07-03 16:01:52 +08:00
Yuliya Bozhko a7c2742900 MDL-39986 badges: Show badge navigation to users with awardbadge capability
Also fixes an arror when a user with this capability tries to award a badge,
but their role is not among the criteria set up for a badge
2013-07-03 13:05:50 +08:00
Damyon Wiese fc83888891 MDL-39558 badges: Prevent backup of badges without user information 2013-07-03 10:54:31 +08:00
Yuliya Bozhko 18811be378 MDL-39558 badges: Add backup/restore of manually awarded badges 2013-07-03 10:13:05 +08:00
Yuliya Bozhko 56d54e1eed MDL-39558 badges: Add backup/restore to course badges 2013-07-03 10:12:46 +08:00
Michael Aherne 3a4a5356eb MDL-40275 core Improve documentation for block_base::has_config() 2013-07-02 21:52:59 +02:00
Eloy Lafuente (stronk7) 1a5986dab9 Merge branch 'MDL-40376-m25' of git://github.com/andrewnicols/moodle into MOODLE_25_STABLE 2013-07-02 21:12:10 +02:00
Eloy Lafuente (stronk7) c10fc915ad MDL-37516 Translate fieldnames on output only.
This reverts a change performed by the previous commit where user
fieldnames were being translated (and cached) when fetched,
causing the information to remain static later, not responding
to language switches (and perhaps leading to other problems if those
structures are used lated for DB / $USER comparisons.

With the commit, the translation happens on output, so no
potential interferences will happen and, also, the information
changes dynamically on lang switching.
2013-07-02 21:01:56 +02:00
sam marshall a6683d327f MDL-37516 Conditional activities: user field condition display fixes 2013-07-02 20:59:07 +02:00
Eloy Lafuente (stronk7) a9155c2875 Merge branch 'MDL-40246_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-07-02 14:27:24 +02:00
Eloy Lafuente (stronk7) 4d52fbbc14 Merge branch 'MDL-40439-en_fix_25' of git://github.com/mudrd8mz/moodle into MOODLE_25_STABLE 2013-07-02 13:47:37 +02:00
Helen Foster bb07f7ecce MDL-40439 Merge English strings from the en_fix language pack 2013-07-02 11:47:49 +02:00
Dan Poltawski dee6316364 Merge branch 'MDL-40389_25' of git://github.com/stronk7/moodle into MOODLE_25_STABLE 2013-07-02 15:53:06 +08:00
Tim Hunt b465164c24 MDL-40434 calculatedmulti multiple-response questions not randomised 2013-07-02 08:23:56 +01:00
Dan Poltawski f6b1260812 Merge branch 'MDL-40282.25' of github.com:colchambers/moodle into MOODLE_25_STABLE 2013-07-02 15:15:32 +08:00
Damyon Wiese 1e6919f6c8 Merge branch 'wip-MDL-40353-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-07-02 14:29:08 +08:00
Dan Poltawski a852df6f11 Merge branch 'MDL-40297_25' of git://github.com/stronk7/moodle into MOODLE_25_STABLE 2013-07-02 13:43:45 +08:00
Andreas Grabs e235c97f09 MDL-39570 mod_feedback - Missing privilege check 2013-07-02 13:36:51 +08:00
Dan Poltawski d7e626156e Merge branch 'w27_MDL-40399_m25_msarrayshift' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-02 13:33:59 +08:00
Dan Marsden 0bde9de161 MDL-39628 Chat: check mod/chat:chat capability when using daemon.
Thanks to Francois Gauthier for report/fix.
2013-07-02 12:18:24 +08:00
Jason Fowler dafe65e438 MDL-37818 - RSS - Prevent access to blocks while RSS context errors are displayed 2013-07-02 10:03:57 +08:00
Dan Poltawski 204383e50d Merge branch 'w27_MDL-40266_m25_arrayshift' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-02 09:55:24 +08:00
Eloy Lafuente (stronk7) f1293083a2 Merge branch 'get_users_by_capability_fix_m25' of http://github.com/timgus/moodle into MOODLE_25_STABLE 2013-07-02 00:46:38 +02:00
Sam Hemelryk f0d974fb28 Merge branch 'MDL-39733_25' of git://github.com/stronk7/moodle into MOODLE_25_STABLE 2013-07-02 10:31:28 +12:00
Eloy Lafuente (stronk7) 16a2860ad2 MDL-39733 xhprof: implement import of runs 2013-07-02 00:27:30 +02:00
Rossiani Wijaya bb9024d9d4 MDL-39546 Lesson module: removed duplicate to decode special characters 2013-07-02 09:36:46 +12:00
Rossiani Wijaya a77f19bc47 MDL-39546 Lesson module: fixed matching question issues. 2013-07-02 09:36:32 +12:00
Eloy Lafuente (stronk7) 2bc8f21600 Merge branch 'w27_MDL-39754_m25_evn26' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-07-01 23:14:05 +02:00
Eloy Lafuente (stronk7) 75b8d4a146 Merge branch 'MDL-40370_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-01 18:02:51 +02:00
Eric Merrill 74d5fbac04 MDL-40412 course Expanding the height of module description fields.
Expanding the default height of mod descriptions to 10, which gives
you 3 real lines once TinyMCE Loads.
2013-07-01 10:26:52 -04:00
Tim Hunt 33b4331eaf MDL-40370 qtype_shortanswer: unique index upgrade problem.
Eliminate duplicate rows before we try to add a unique index. We
arbitrarily keep the duplicate row with the lowest id.
2013-07-01 11:23:55 +01:00
prateeksachan ef57de83db MDL-40386: Fix for updating timemodified field in book_chapters 2013-07-01 14:32:34 +05:30
Petr Škoda 00a2921469 MDL-39754 copy 2.5 requirements to Moodle 2.6
Optional features and warnings may be added later,
but we need at least required environment for 2.5.1

This includes database family cleanup and more realistic memory requirement.
2013-07-01 10:03:14 +02:00
Petr Škoda fc4523f8f3 MDL-40266 improve emulate_bound_params() for mssql driver
Looping over large numbers of items with array_shift() is expensive.
Reverse the array and fetch items from the top of the pile.

Credit goes to Martin Langhoff for original mysqli fix.
2013-07-01 08:52:51 +02:00
Petr Škoda 39714cb255 MDL-40266 improve emulate_bound_params() for sqlsrv driver
Looping over large numbers of items with array_shift() is expensive.
Reverse the array and fetch items from the top of the pile.

Credit goes to Martin Langhoff for original mysqli fix.
2013-07-01 08:52:51 +02:00
Mark Nielsen c11621b415 MDL-40308: Privacy settings do not change
Update LTI mod form so checkboxes always submit their value.
2013-07-01 11:27:43 +08:00
Dan Poltawski 7698803c95 Merge branch 'wip-MDL-40344-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-07-01 11:22:05 +08:00
Ankit Agarwal 770710e1cd MDL-39020 phpunit: Rename incorrect filename
Rename externallib_tests.php to externallib_test.php
Fix failing unit tests
2013-07-01 10:52:42 +08:00
Sam Hemelryk ebc9b6d158 Merge branch 'MDL-40069_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-07-01 13:47:50 +12:00
Sam Hemelryk ae754bba07 NOBUG: fixed whitespace 2013-07-01 13:24:04 +12:00
Sam Hemelryk d20391916c Merge branch 'wip-MDL-39741-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-07-01 13:17:48 +12:00
Sam Hemelryk 9a561bc5a1 Merge branch 'MDL-35206-email-links_25' of git://github.com/mudrd8mz/moodle into MOODLE_25_STABLE 2013-07-01 13:08:15 +12:00
Eloy Lafuente (stronk7) 7af092c2d6 MDL-39733 profiling: UI for importing runs 2013-07-01 01:39:55 +02:00
Eloy Lafuente (stronk7) 706db16531 MDL-39733 profiling: UI for exporting runs 2013-07-01 01:39:50 +02:00
Eloy Lafuente (stronk7) e3c2cb4656 MDL-39733 xhprof: implement export of runs 2013-07-01 01:39:45 +02:00
Andrew Nicols 2738bb2c2f MDL-40376 Themes: Remove padding from course/manage page 2013-06-30 19:28:41 +01:00
Martin Langhoff c17768973e MDL-40266 improve emulate_bound_params() for mysqli
Looping over large numbers of items with array_shift() is expensive.
Reverse the array and fetch items from the top of the pile.
2013-06-30 18:39:53 +02:00
Eloy Lafuente (stronk7) 11ffc395f4 MDL-40389 Test "parent" course/category generators
Verify that the category->parent switchers for
course & category behat generators are happening
as expected. Use the manage courses page for that.
2013-06-30 18:10:25 +02:00
Eloy Lafuente (stronk7) 1608fbe7c0 MDL-40297 whitespace, comments & var names cleanup 2013-06-30 16:48:44 +02:00
Dmytro Vorona 0927af1e8d MDL-40297 Hide empty categories in my courses
This is a followup of MDL-38631 were was detected that
whith categories being displayed in my courses, some of
them, not having courses for the user, were still shown.

With this patch, any category in the tree, not having courses
is automatically hidden, any depth.
2013-06-30 16:48:39 +02:00
Tim Hunt 77504426de MDL-40069 question/type/upgrade.txt editing changes
Try to more clearly document what question type authors need to do to
upgrade their question types.
2013-06-28 18:21:04 +01:00
Colin Chambers 2fe9be7a9e MDL-40069 Document editing form changes 2013-06-28 18:21:02 +01:00
David Mudrák 52d485c435 MDL-35206 Fix the links list enumeration in the html2text library 2013-06-28 13:13:29 +02:00
Colin Chambers 93a2a0e3d7 MDL-40282 Collapsible editor loses border in IE8-9 2013-06-28 11:23:47 +01:00
Mary Evans dc59a1b1f9 MDL-40131 theme_bootstrapbase: added missing grader table css to less/moodle/grade.less 2013-06-28 02:45:29 +01:00
Sam Hemelryk 21d9cb723b MDL-40344 navigation: expandable branch id is now properly unique 2013-06-28 09:59:09 +12:00
Eloy Lafuente (stronk7) 32e550a6eb weekly release 2.5+ 2013-06-27 20:12:40 +02:00
Eloy Lafuente (stronk7) 97a7b6a7aa Merge branch 'install_25_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_25_STABLE 2013-06-27 20:05:10 +02:00
Marina Glancy 3c4c23876c MDL-39741 removed unused css classes 2013-06-27 22:18:59 +10:00
David Monllao ff46f98998 MDL-40246 mod_forum: Changing scenario to non-JS
Also replacing hardcoded waits for a
wait to be redirected.
2013-06-27 15:13:12 +08:00
Marina Glancy 00b4836197 MDL-40353 fixed wrong redirection on course group page 2013-06-27 13:45:16 +10:00
Marina Glancy 4af378d743 MDL-39741 Use CSS class dimmed_text instead of hidden in grader report 2013-06-27 12:36:11 +10:00
AMOS bot fab0986a5b Automatically generated installer lang files 2013-06-27 00:40:24 +00:00
Eloy Lafuente (stronk7) 866ab6e1ce Merge branch 'w26_MDL-39701_m25_filterupgrade' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-26 12:30:51 +02:00
Petr Škoda 0b675e0ca2 MDL-39701 prevent string filtering before finishing 2.5 upgrade 2013-06-26 09:51:03 +02:00
Eloy Lafuente (stronk7) 3166c21471 Merge branch 'MDL-40033_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-06-25 12:08:25 +02:00
Gareth J Barnard 2ab1b3de30 MDL-40204 theme_bootstrapbase & theme_clean: Fix RTL 3 column lyt with 1 blk. 2013-06-25 11:38:27 +12:00
Sam Hemelryk 6e07abb32d Merge branch 'wip-MDL-40065-m25_4' of git://github.com/gjb2048/moodle into MOODLE_25_STABLE 2013-06-25 09:58:44 +12:00
Sam Hemelryk bc0227d3e5 Merge branch 'w26_MDL-40289_m25_badgescaps' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-25 09:13:05 +12:00
Eloy Lafuente (stronk7) e9d80e664b Merge branch 'w26_MDL-40233_m25_frontset' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-24 21:29:13 +02:00
Eloy Lafuente (stronk7) ffc480afbd Merge branch 'MDL-40264-m25-essay-zero' of git://github.com/ktemkin/moodle into MOODLE_25_STABLE 2013-06-24 21:23:43 +02:00
Eloy Lafuente (stronk7) 3d4a0f2887 Merge branch 'w26_MDL-40254_m25_flatfile' of https://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-24 21:13:06 +02:00
Eloy Lafuente (stronk7) 9067595bf3 Merge branch 'MDL-34610_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-06-24 20:21:30 +02:00
Eloy Lafuente (stronk7) 94a541f7ff Merge branch 'MDL-40255_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE 2013-06-24 19:26:22 +02:00
Eloy Lafuente (stronk7) 3e6f11b240 Merge branch 'm25_MDL-40200_Notices_When_Viewing_Profile_Invalid_UserId' of https://github.com/scara/moodle into MOODLE_25_STABLE 2013-06-24 19:00:43 +02:00
Sam Chaffee 7991637057 MDL-40258: Fixed invalid json string error in file-picker 2013-06-24 18:56:54 +02:00
Ankit Agarwal 4f61afa0b7 MDL-40250 phpunit: Add unit tests for core_files_external::upload() 2013-06-24 18:06:26 +02:00
Gareth J Barnard fb42a8c761 MDL-40065 theme_bootstrapbase theme_clean: Simplify column lyts / fix blocks. 2013-06-24 16:59:11 +01:00
Sam Hemelryk 4418496864 Merge branch 'wip-MDL-39044-stable25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE 2013-06-24 15:41:24 +12:00
Sam Hemelryk 82125f7a78 Merge branch 'w26_MDL-39701_m25_filterupgrade' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-24 15:07:14 +12:00
Sam Hemelryk 9e5adb9305 Merge branch 'MDL-39779_m25' of git://github.com/rwijaya/moodle into MOODLE_25_STABLE 2013-06-24 14:33:04 +12:00
Sam Hemelryk 23dd6b7ebf Merge branch 'MDL-39760-MOODLE_25_STABLE' of https://github.com/lucisgit/moodle into MOODLE_25_STABLE 2013-06-24 14:29:56 +12:00
Frederic Massart af4bdb8c8d MDL-39280 form: Multiple select support disabledIf with multiple values 2013-06-24 14:20:33 +12:00
Sam Hemelryk 12a9b4ec3a Merge branch 'mdl25-MDL-40130-let-course-category-caching-be-used' of git://github.com/brki/moodle into MOODLE_25_STABLE 2013-06-24 11:43:54 +12:00
Sam Hemelryk 084b971bc8 MDL-38347 fixed whitespace 2013-06-24 11:29:26 +12:00
Jason Fowler df7662560b MDL-38347 - Calendar - Fixing arrow output on Android devices 2013-06-24 11:22:51 +12:00
Sam Hemelryk 405a60712b Merge branch 'MDL-28124_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE 2013-06-24 10:30:08 +12:00
Amanda Doughty bce7b6d40e MDL-38376 mod_assign: Feedback displayed when Grade set to hidden 2013-06-24 10:22:34 +12:00
Petr Škoda 55384d2016 MDL-40254 ignore flatfile records with no user idnumber 2013-06-23 21:38:39 +02:00
Petr Škoda f8bb8999e8 MDL-40289 fix block_badges capability defaults 2013-06-23 12:34:02 +02:00
Petr Škoda 2fbf721f27 MDL-40289 fix all badges capabilities
1/ contextlevel must be the lowest level where capability can be overriden
2/ coursecreator is for course creation only!!!
3/ do not mix user with other archetypes
4/ config risk is for admin actions only in standard install

No upgrade cleanup, sorry, blame integrators...
2013-06-23 12:23:50 +02:00
Mary Evans 233edd4dde MDL-40255 theme_boxxie/theme_formfactor: Added block-region class to layout files to enable dnd file uploader to work. 2013-06-22 21:24:23 +01:00
Petr Škoda 75f1afeda0 MDL-39701 prevent filters before finishing 2.5 upgrade
This prevents problems with unsigned integers in MySQL 5.5
2013-06-22 22:23:25 +02:00
Petr Škoda 808043d356 MDL-40233 add proper cache invalidation on frontpage setting save 2013-06-22 22:19:27 +02:00
Matteo Scaramuccia da0c3ea381 MDL-40200 Administration: Return the invalid user message and stop there
To avoid adding duplicate code, 'invalid user' and 'user deleted' checks
have been merged together.
2013-06-22 10:00:59 +02:00
Marina Glancy a028ac4aaf MDL-38631 link categories in My courses only when needed 2013-06-22 16:25:43 +10:00
Dmytro Vorona 02e1c8ad20 MDL-38631 Fixed faulty add_category call, introduced in 758103 2013-06-22 16:25:42 +10:00
Tim Hunt 3174f09839 MDL-34610 remove legacy IE CSS. It breaks form layout 2013-06-21 21:57:37 +01:00
Brian King 1a703d311e MDL-40130 Caching: let make_categories_list use the cache it makes 2013-06-21 11:14:08 +02:00
David Monllao 922a5cf370 MDL-40033 behat: Waiting until file manager is available 2013-06-21 15:36:41 +08:00
Dan Poltawski e978b66009 weekly release 2.5+ 2013-06-21 13:30:52 +08:00
Dan Poltawski 8e29fe2d72 Merge branch 'install_25_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_25_STABLE 2013-06-21 13:29:46 +08:00
Kyle Temkin 11f6680dee MDL-40264 fix essay handling of zero-string response
Fixes an inappropriate behavior of the is_complete_response() function
for the Essay question type, which caused the string "0" to be
inappropriately marked as an incomplete response.

Also adds a set of unit tests for the Essay question type's
is_complete_response.
2013-06-20 19:12:21 -04:00
Tim Gus 0bad576425 MDL-40259 - For SCORM reports limit fields returned from
get_users_by_capability to user ID to decrease memory utilization
2013-06-20 15:56:07 -04:00
Jason Fowler 1620d20165 MDL-39044 - Course Completion - Replaceing strtolower with multibyte safe textlib::strtolower 2013-06-20 08:49:38 +08:00
Ruslan Kabalin e2d5b6cbc8 MDL-39760: mod_assign: Add few more callback methods.
Adds lock, unlock and release_to_draft. All of them accept single parameter -
an assign_submission record.
2013-06-19 15:34:02 +01:00
Yuliya Bozhko e787333622 MDL-40022 badges: Fix missing calls to setType in course criteria settings 2013-06-19 13:41:49 +08:00
David Monllao 4ab623b9b6 MDL-40109 behat: Fixing backup feature 2013-06-19 09:14:05 +08:00
Marina Glancy 8526be5612 Merge branch 'MDL-40207-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-06-18 15:38:20 +10:00
Ruslan Kabalin eede0dbd7b MDL-33546: course: Fix current week hightlighting after dragging the section 2013-06-18 13:02:27 +10:00
Marina Glancy 4d7c173514 Merge branch 'MDL-40165-m25' of git://github.com/andrewnicols/moodle into MOODLE_25_STABLE 2013-06-18 12:57:06 +10:00
Sam Hemelryk 70d4b3182d Merge branch 'MDL-39634_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-06-18 14:50:47 +12:00
Nadav Kavalerchik 32a3dc0ec0 MDL-40180 - RTL/Clean theme: Misalignment of student name and profile image in grader (fixed by Mary Evans)
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-18 10:43:48 +08:00
Sam Hemelryk 663c69e974 Merge branch 'MDL-40036-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-06-18 13:59:30 +12:00
Sam Hemelryk eaf4854359 Merge branch 'MDL-39865-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-06-18 13:54:56 +12:00
Marina Glancy 04597742cf Merge branch 'MDL-38079_25' of git://github.com/mr-russ/moodle into MOODLE_25_STABLE 2013-06-18 11:13:26 +10:00
Eloy Lafuente (stronk7) f68a2c50e6 MDL-40137 Whitespace fix 2013-06-18 01:47:44 +02:00
Eloy Lafuente (stronk7) 5e069cbd96 Merge branch 'wip-MDL-40137-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-06-18 01:45:27 +02:00
Sam Hemelryk 3d19b183c6 Merge branch 'wip-mdl-39863-m25' of git://github.com/rajeshtaneja/moodle into MOODLE_25_STABLE 2013-06-18 11:19:30 +12:00
Sam Hemelryk d81ebc8f0d Merge branch 'MDL-40109_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-06-18 11:07:57 +12:00
Eloy Lafuente (stronk7) 5cc26839e7 Merge branch 'w25_MDL-40210_m25_badgescaps' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-18 00:56:11 +02:00
Eloy Lafuente (stronk7) a831f154ae Merge branch 'MDL-33562-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE
Conflicts:
	lib/db/upgrade.php
	version.php
2013-06-18 00:44:17 +02:00
Sam Hemelryk 54c7d518f3 Merge branch 'MDL-30132_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE 2013-06-18 10:26:53 +12:00
Petr Škoda ec18ffb86c MDL-40210 do not use CAP_PREVENT for role defaults! 2013-06-17 12:13:20 +02:00
Russell Smith 842aac5ecb MDL-38079 mod_feedback - Hide "add question to activity" button 2013-06-17 19:59:37 +10:00
David Monllao dc24efe971 MDL-40110 behat: AM/PM strings are OS-dependant, removing this part from tests 2013-06-17 17:06:38 +08:00
Dan Poltawski 160e432aee Merge branch 'MDL-39825_master' of https://github.com/totara/openbadges into MOODLE_25_STABLE 2013-06-17 16:41:15 +08:00
Dan Poltawski e38c37939a Merge branch 'wip-MDL-40136-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-06-17 13:37:23 +08:00
Sam Hemelryk e15bf9b1e5 Merge branch 'm25_MDL-40095_Completion_locked_Error_on_save' of https://github.com/scara/moodle into MOODLE_25_STABLE 2013-06-17 16:10:38 +12:00
Sam Hemelryk 1d1b52eb0c Merge branch 'MDL-21933_25' of https://github.com/mr-russ/moodle into MOODLE_25_STABLE 2013-06-17 15:45:33 +12:00
Sam Hemelryk 209658eab2 Merge branch 'wip-MDL-40091-MOODLE_25_STABLE' of git://github.com/satrun77/moodle into MOODLE_25_STABLE 2013-06-17 15:43:18 +12:00
Rossiani Wijaya 49a60b6c65 MDL-39779 wiki module: fix the alignment for required label to display inline on mobile devices 2013-06-17 11:42:47 +08:00
Sam Hemelryk 8c155823cc Merge branch 'MDL-39369_m25' of git://github.com/rwijaya/moodle into MOODLE_25_STABLE 2013-06-17 15:10:21 +12:00
Dan Poltawski 3c4fcce769 MDL-40207 simplepie: reduce false failures in unit tests
The simplepie tests time out too quickly due to a low connect timeout,
to fix this, I converted the unit tests to use a high timeout value.
2013-06-17 10:46:53 +08:00
Sam Hemelryk 443563a82e Merge branch 'MDL-39761-MOODLE_25_STABLE' of https://github.com/lucisgit/moodle into MOODLE_25_STABLE 2013-06-17 14:26:37 +12:00
David Monllao 346765035a MDL-39634 behat: Adding debugging() messages to deprecated methods 2013-06-17 09:02:39 +08:00
David Monllao 944fd1ca83 MDL-39634 behat: Adding deprecated methods
To keep compatibility if someone is
already using these methods.
2013-06-17 09:01:38 +08:00
David Monllao ded65ca8e0 MDL-39634 behat: Removing unused arguments 2013-06-17 08:59:59 +08:00
AMOS bot 2bf9edf84f Automatically generated installer lang files 2013-06-17 00:43:36 +00:00
Marina Glancy 29a4508930 Merge branch 'wip-MDL-40142-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-06-17 10:40:39 +10:00
Sam Hemelryk bda2a7bdf5 MDL-39949 dock: fixed whitespace 2013-06-17 10:24:53 +12:00
Jason Fowler 64ddb28dfd MDL-39949 - Blocks - preventing blocks with empty titles from blocking the execution of javascript 2013-06-17 10:01:44 +12:00
Sam Hemelryk 6fa5e8658a MDL-40137 theme_clean: corrected lib.php function names 2013-06-17 09:39:20 +12:00
Sam Hemelryk 43dc7aa976 MDL-40136 cache: fixed dirroot change bugs with plugin caches 2013-06-17 09:23:47 +12:00
Sam Hemelryk 5d9349b61a MDL-40142 navigation: fixed chainable issue with navigation JS 2013-06-17 09:12:43 +12:00
Mary Evans ff24397ff3 MDL-28124 admin/tool/customlang: Changed page layout from 'standard' to 'report'. 2013-06-14 23:27:34 +01:00
Mohamed Alsharaf de5568b18e MDL-40091 book: revision must be incremented after editing a chapter 2013-06-14 21:28:31 +12:00
Marina Glancy d3cf194050 weekly release 2.5+ 2013-06-14 13:53:28 +10:00
Marina Glancy 37d38a3125 Merge branch 'install_25_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_25_STABLE 2013-06-14 13:50:50 +10:00
Andrew Nicols 2804eb29c6 MDL-40165 Backup: Split out test classes into multiple files 2013-06-13 08:57:24 +01:00
Rossiani Wijaya e85e3bff3e MDL-39369: Lesson module: change settype PARAM_TEXT to PARAM_NOTAGS 2013-06-13 15:37:45 +08:00
Rossiani Wijaya 51c72ecaa5 MDL-39369: Lesson module: fix setType() properly 2013-06-13 15:36:16 +08:00
Dan Poltawski 30703dc8f2 MDL-39824: theme_bootstrap: initalise array before use
This causes warnings when no navigation items are returned.

Also fixed some bad whitespace.
2013-06-13 14:23:55 +08:00
Dan Poltawski 33beb96847 Revert "MDL-39832 Files: Revert MDL-39688 commit, 161be9206571787557eb5c11ee440c9e6ae93ca8"
This reverts commit d618e3c07d.
2013-06-13 13:57:02 +08:00
Dan Poltawski 7f742cece1 Revert "MDL-39832 Files: Fixed ETag format according with RFC2616."
This reverts commit 52286ac358.
2013-06-13 13:57:00 +08:00
Russell Smith ab0e64524d MDL-21933 course: Allow users to search participants course permission
Capability checks are performed at the top of the page and do not need
to be completed again.

Search is an expected feature for users and it was confusion to only
appear after 3 pages.  This has been changed to enable search when
there are more records than are visible on the screen.  If users
are unable to use browser search, they will be able to use Moodle's
search.
2013-06-13 12:43:29 +10:00
AMOS bot 2a93e8d72c Automatically generated installer lang files 2013-06-13 00:41:25 +00:00
Mary Evans 6780a2301e MDL-30312 User: Changed page layout from mydashboard to mypublic in user/profile.php 2013-06-12 21:33:28 +01:00
sam marshall 3a2e904098 MDL-39472 MUC: Optimise cache::get_from_persist_cache 2013-06-12 14:29:48 +08:00
Dan Poltawski 6117c578e4 Merge branch 'MDL-39773_b_m25' of git://github.com/rwijaya/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-12 09:34:04 +08:00
Sam Hemelryk 69303857c7 Merge branch 'MDL-39940-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-06-12 09:06:33 +12:00
Sam Hemelryk a4848b4044 Merge branch 'MDL-39964-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-06-12 09:02:40 +12:00
Sam Hemelryk a6b980d13b Merge branch 'MDL-25901-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-06-12 09:00:11 +12:00
Sam Hemelryk 9e53bbd007 Merge branch 'w24_MDL-38109_m25_pluginlist' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-12 08:53:49 +12:00
Sam Hemelryk e0699a7154 Merge branch 'wip-MDL-39798_M25' of git://github.com/gjb2048/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-12 08:51:21 +12:00
Sam Hemelryk aa41f96d1a Merge branch 'wip-MDL-39820_M25_2' of git://github.com/gjb2048/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-12 08:46:45 +12:00
Petr Škoda e4fcb52f44 MDL-38109 use always get_plugin_list() to get list of plugins
get_list_of_plugins() is NOT intended for real plugins, only plugin like directories.
2013-06-11 10:23:14 +02:00
Dan Poltawski bacf4c5c71 Merge branch 'wip-MDL-40087_M25' of git://github.com/gjb2048/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-11 16:00:51 +08:00
Dan Poltawski 43c5a7d5ad Merge branch 'wip-MDL-40100-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-06-11 15:35:31 +08:00
Sam Hemelryk 624f270a26 Merge branch 'MDL-26925-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-06-11 17:31:36 +12:00
Sam Hemelryk 313bcd5268 Merge branch 'MDL-22390_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-06-11 17:07:24 +12:00
Mark Nelson 5a21d336f3 MDL-40010 notes: passing an object rather than an id to avoid debugging message 2013-06-11 13:05:40 +08:00
Dan Poltawski f60ad3fdff Merge branch 'm25_MDL-40002_ETag_value_must_be_a_quoted-string' of https://github.com/scara/moodle into MOODLE_25_STABLE 2013-06-11 12:54:38 +08:00
Jason Fowler 2daa9998ae MDL-39746 - Themes - Hiding the user picture on the forum page when the screensize is too small to allow for it
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-11 11:25:04 +08:00
Rajesh Taneja 6079448098 MDL-39863 Administration: Show confirmation/notice and don't redirect automatically 2013-06-11 10:24:51 +08:00
Tim Lock 992c0ec50d MDL-40120: Fix get_course_records() which breaks in PSQL 2013-06-11 13:47:05 +12:00
sam marshall aca67ae8b0 MDL-39454 Accesslib: is_siteadmin is a bit slow 2013-06-11 12:27:09 +12:00
Matteo Scaramuccia 474c13f27f MDL-40095 SCORM: Trivial comments tidy up 2013-06-10 20:52:24 +02:00
Matteo Scaramuccia 7480e99306 MDL-40095 SCORM: Fixed DML error when saving with completion options locked
Regression caused by MDL-38315.
2013-06-10 20:52:14 +02:00
Dan Poltawski 96241e57e9 Merge branch 'MDL-39947_25' of https://github.com/aolley/moodle into MOODLE_25_STABLE 2013-06-10 16:20:30 +08:00
Dan Poltawski ade2afc29f Merge branch 'MDL-39338_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-10 16:07:28 +08:00
Dan Poltawski 534f1476f4 Merge branch 'm25_MDL-39832_Fix_Chrome_Issues_ETag_XSendfile' of https://github.com/scara/moodle into MOODLE_25_STABLE 2013-06-10 15:42:53 +08:00
Rajesh Taneja b625e48b87 MDL-39639 Formslib: Hide calendar for datetime element on disable event 2013-06-10 15:29:16 +08:00
Dan Poltawski a327e87866 Merge branch 'MDL-40018_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE 2013-06-10 15:00:20 +08:00
Dan Poltawski 0f74c82897 Merge branch 'MDL-40013_25stable' of git://github.com/oasychev/moodle into MOODLE_25_STABLE 2013-06-10 14:58:12 +08:00
David Mudrák 3ee63c14e0 MDL-40080 Remove unused strings from the core_hub subsystem 2013-06-10 14:41:53 +08:00
Mark Nelson f31670ef40 MDL-40008 forms: fixed ordering of the calendar icon and enable checkbox for the date selector element 2013-06-10 14:25:14 +08:00
David Monllao b1f151c933 MDL-40109 format_weeks: Removing extra space 2013-06-10 13:31:22 +08:00
Dan Poltawski 7f9f03442a Merge branch 'w24_MDL-39096_m25_obfuscate' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-10 13:12:16 +08:00
Dan Poltawski 9d1a909f0e Merge branch 'w24_MDL-28394_m25_enrolrestore' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-10 12:17:04 +08:00
Yuliya Bozhko 8b7c33ae77 MDL-39825 badges: Remove badges from course navigation when course badges are disabled 2013-06-10 16:16:59 +12:00
Dan Poltawski c9d1c4993d Merge branch 'm25_MDL-37968' of git://github.com/danmarsden/moodle into MOODLE_25_STABLE 2013-06-10 12:09:59 +08:00
Mary Evans 7b9caeb92b MDL-39016 theme_bootstrapbase: Added login info and home link to footer in both boostrapbase & clean layout/general.php 2013-06-10 16:04:22 +12:00
Mark Nelson 49acbbad2f MDL-40009 notes: corrected the form element names passed to setType 2013-06-10 15:55:53 +12:00
Sam Hemelryk afe247a0ca Merge branch 'w24_MDL-39549_m25_cohortsearch' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-10 15:48:11 +12:00
Sam Hemelryk f7c2942961 Merge branch 'MDL-39971_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-06-10 15:09:34 +12:00
Dan Poltawski 6f4232974e Merge branch 'wip-MDL-39824-m25' of http://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-06-10 10:54:27 +08:00
Sam Hemelryk f981643f58 Merge branch 'MDL-39978_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-06-10 14:44:40 +12:00
Sam Hemelryk 2f8602990f Merge branch 'w24_MDL-32480_m25_imscp' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-10 14:41:07 +12:00
Sam Hemelryk 7174920aaa MDL-39824 theme: tweaking upgrade note version 2013-06-10 14:34:25 +12:00
Jason Fowler 57ecff6356 MDL-39608 - Bootstrap - Chaning the thresholds and width values for the Form labels
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-10 14:28:54 +12:00
AMOS bot 2d69af043d Automatically generated installer lang files 2013-06-10 00:39:09 +00:00
Andrew Davis a1d43d9e4f MDL-36090 core_grade: added logging of overriding of student grades 2013-06-10 12:35:03 +12:00
Sam Hemelryk 08c2a3ca1f Merge branch 'wip-MDL-40088-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-06-10 12:14:04 +12:00
Jason Fowler fbc635e400 MDL-39227 - SCORM - repositioning the navigation panel to be visible in all themes at all resolutions 2013-06-10 11:59:36 +12:00
Sam Hemelryk 00afef17bb Merge branch 'MDL-39979-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-06-10 11:33:59 +12:00
Sam Hemelryk c174a19207 MDL-40100 cache: removed unneeded includes from add instance forms 2013-06-10 10:26:27 +12:00
Sam Hemelryk d89fbe0285 MDL-39871 themes: can now specify regions to swap when using rtl langs
Conflicts:
	lib/pagelib.php
2013-06-10 09:31:05 +12:00
Sam Hemelryk ddf1b0741d MDL-39824 theme: changes recorded in theme/upgrade.txt 2013-06-10 09:29:58 +12:00
Sam Hemelryk dac7c261ca MDL-39824 output: fixed bug when moving blocks with rtl lang 2013-06-10 09:29:58 +12:00
Sam Hemelryk 8504444307 MDL-40089 theme_clean: simplified layouts and converted to new OUTPUT API 2013-06-10 09:29:58 +12:00
Sam Hemelryk 602255df1a MDL-40089 theme_clean: moved general to columns3.php as prep 2013-06-10 09:29:58 +12:00
Sam Hemelryk ee7a52ae91 MDL-39842 js: fixed block drag and drop 2013-06-10 09:29:58 +12:00
Sam Hemelryk 6964e6a580 MDL-39824 theme_bootstrapbase: converted $PAGE use to new $OUTPUT methods. 2013-06-10 09:29:58 +12:00
Sam Hemelryk 5c8c94eabe MDL-40089 theme_bootstrapbase: moved general to columns3.php as prep 2013-06-10 09:29:57 +12:00
Sam Hemelryk 00f906b114 MDL-39824 output: tidied up output before bootstrap cleaning
Conflicts:
	lib/pagelib.php
2013-06-10 09:29:03 +12:00
Sam Hemelryk 2d28b03d90 MDL-39839 renderer: new methods for calls appearing in theme layouts 2013-06-10 09:28:24 +12:00
Sam Hemelryk 03fa7a2ba3 MDL-39838 renderer: new methods for body classes and id 2013-06-10 09:28:24 +12:00
Sam Hemelryk cd79352fbd MDL-39841 renderer: new method to renderer blocks with predictable structure 2013-06-10 09:28:24 +12:00
Matteo Scaramuccia f082c5e390 MDL-40002 Files: ETag value must be a quoted-string.
ETag value must be double quoted, http://tools.ietf.org/html/rfc2616#section-3.11.
More details about potential impacts in MDL-39832: shortly, at least when using
HTTP Partial GET Requests (HTTP Status: 206) plus X-Sendfile HTTP Header.
In this commit, the impact is to be RFC2616 compliant when using the ETag Header.
2013-06-09 10:14:02 +02:00
Tim Hunt 266ceb16a6 MDL-22390 autolink filter: handle URLs in brackets better.
This breaks some legitimate URLs like
http://en.wikipedia.org/wiki/Slash_(punctuation).
This is a necessary trade-off. Many other web systems do not handle that
case correctly either. The work-around it so escape the ) as %29.

This commit also improves the way the unit tests for this work.

It also fixes a couple of other tricky cases that were spotted in
the forums while this was being discussed. See the new test cases.
2013-06-08 17:28:53 +01:00
Gareth J Barnard 35b76a3507 MDL-39798 theme_bootstrapbase: Improve layout for course participation reports. 2013-06-08 13:55:22 +01:00
Petr Škoda 06de509918 MDL-39096 fix obfuscate_text() utf-8 compatibility 2013-06-07 22:43:26 +02:00
Petr Škoda 788e1924a2 MDL-39549 fix cohort search in course categories 2013-06-07 22:07:53 +02:00
Gareth J Barnard 9bc4a4cc79 MDL-40087 theme_bootstrapbase: Turn editing on button misaligned on nav bar. 2013-06-07 18:15:34 +01:00
Petr Škoda d98b9a945e MDL-28394 fix enrolment method restore logic
This patch fixes:
* missing enrolment methods after 1.9 backup restore - defaults are added
* enrolment methods are restored only when users option is enabled
* manual enrolment override option is disabled if users not available
2013-06-07 10:03:25 +02:00
Petr Škoda 4ab6c6fbc0 MDL-32480 allow external https links in IMSCP too 2013-06-07 09:58:54 +02:00
Nicolas Dunand a2ec961309 MDL-32480 fix display of IMS content packages with external links 2013-06-07 09:58:53 +02:00
Marina Glancy 86882b6dfe MDL-40088 fixed bug with not visible course section 2013-06-07 13:58:57 +10:00
Dan Marsden ff3a54a5f7 MDL-37968 course_overview: add dim class to hidden courses for teachers. 2013-06-07 14:39:29 +12:00
Mary Evans 82887b29e8 MDL-39338 core_question: Make history box a .well 2013-06-06 22:57:09 +01:00
Matteo Scaramuccia 52286ac358 MDL-39832 Files: Fixed ETag format according with RFC2616.
ETag must be double quoted,
http://tools.ietf.org/html/rfc2616#section-3.11:

      entity-tag = [ weak ] opaque-tag
      weak       = "W/"
      opaque-tag = quoted-string
2013-06-06 23:11:15 +02:00
Matteo Scaramuccia d618e3c07d MDL-39832 Files: Revert MDL-39688 commit, 161be92065
MDL-39688 has been successful in providing a solution for the issue but further
investigations done in MDL-39832 have got the evidence that the given solution
is more likely a workaround.
2013-06-06 23:11:14 +02:00
Oleg Sychev 14e5c99960 MDL-40013 Easier to override saving question hints
This adds 3 new methods, called from question_type::save_hints,
to make it easier for different question types to overload this
functionality without duplicating code.

Question types that will benefit from this change include
oumultiresponse, ddmarker, preg and correctwriting.
2013-06-06 19:59:33 +03:00
Frederic Massart 333df7d951 MDL-39979 navigation: Remove the use of an undefined variable 2013-06-06 14:53:27 +08:00
Dan Poltawski 6cf8499253 MDL-26925 User selector: Set label when no results
Thanks to Jonathon Fowler for the fix!
2013-06-06 14:09:39 +08:00
Frederic Massart a3fa82636d MDL-40036 user: Respect capability to ignore user quota 2013-06-06 12:43:34 +08:00
Dan Poltawski 1430866232 weekly release 2.5+ 2013-06-06 12:01:38 +08:00
Dan Poltawski 1c437c97f7 Merge branch 'install_25_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_25_STABLE 2013-06-06 11:55:07 +08:00
Dan Poltawski 0fbfae718d MDL-25901 rss: do not copyright html tag
They copyright field does not permit html, it should be plain text
2013-06-06 11:30:27 +08:00
Eloy Lafuente (stronk7) 61899ac202 Merge branch 'wip-MDL-38773-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-06-05 19:32:14 +02:00
Eloy Lafuente (stronk7) 92c46e00eb Merge branch 'w23_MDL-39588_m25_ociinstall' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-05 16:24:22 +02:00
Eloy Lafuente (stronk7) 1127607bce Merge branch 'w23_MDL-39503_m25_signup' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-05 16:18:01 +02:00
Eloy Lafuente (stronk7) ef580461f6 Merge branch 'wip-MDL-21097-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-06-05 10:36:22 +02:00
Dan Poltawski 2d0faffb7f MDL-39940 tags: missing setType call 2013-06-05 16:17:26 +08:00
Marina Glancy f9d68a11da MDL-21097 Correctly check capabilities for frontpage editing mode 2013-06-05 18:09:34 +10:00
Dan Poltawski 0a8985843e MDL-39964 report_progress: don't browser sniff for SVG support
Use feature detection, its more robust and better practice.
2013-06-05 15:42:26 +08:00
Dan Poltawski e0e6015416 Merge branch 'wip-MDL-21097-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-06-05 13:10:18 +08:00
Rossiani Wijaya 9db4dcb68b MDL-39773 bootstrapbase: add style for .centerpadded.
Relocate .centerpadded styling from standard to base themes
2013-06-05 12:50:15 +08:00
Marina Glancy 6b52abc0af MDL-21097 corrected course editing roles 2013-06-05 14:27:50 +10:00
Mary Evans 179fbc7f11 MDL-39977 theme_bootstrapbase: Changes the way Clean theme's login takes its navbar styles from Bootstrapbase.
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-05 10:13:39 +08:00
Marina Glancy 28ce5653c0 MDL-38773 Purge coursecat cache on course restore 2013-06-05 12:05:05 +10:00
Brian King c017ccff4c MDL-39409 auth/cas pass web proxy settings along to phpCAS 2013-06-05 02:46:25 +02:00
Eloy Lafuente (stronk7) ea85ee6f63 Merge branch 'w23_MDL-39416_m25_pagelog' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-05 02:43:48 +02:00
AMOS bot 2fb98d4bc0 Automatically generated installer lang files 2013-06-05 00:39:45 +00:00
Dan Poltawski 9a0e9776c0 MDL-39968 bootstrapbase: uses non-standard browser sniffing
Also theme_clean does the same sniffing, but is not necessary as its
included by bootstrapbase
2013-06-05 02:34:13 +02:00
Eloy Lafuente (stronk7) 832aa7eb71 Merge branch 'MDL-38731-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-06-05 02:30:56 +02:00
Eloy Lafuente (stronk7) 0e73df9df6 Merge branch 'MDL-37332-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-06-05 02:27:35 +02:00
Matteo Scaramuccia ab8e75ef40 MDL-38545 Reports: PHP Strict Standards error in graph.php 2013-06-05 02:23:05 +02:00
Eloy Lafuente (stronk7) ef8a1c4908 Merge branch 'MDL-39790_master' of git://github.com/totara/openbadges into MOODLE_25_STABLE 2013-06-05 01:45:28 +02:00
Eloy Lafuente (stronk7) 0f51a82bae Merge branch 'wip-MDL-21097-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-06-05 01:43:11 +02:00
Mary Evans 358544f9b7 MDL-40018 theme_sky_high: Fixed footer in admin pages. 2013-06-05 00:18:33 +01:00
Eloy Lafuente (stronk7) 36e5df06b3 MDL-39723 prevent update_courses() bad habits.
All the external functions end calling require_login() that is
always in charge of setting the $COURSE global. This is not a
problem, but in the case of core_course_external::update_courses()
testing, where we are, in the same "request", both setting and getting
the $COURSE information and it's clearly outdated, so the test fails.

Alternative solution would be to modify the external function to ensure
that, after updating a course, $COURSE is also updated with the changes
but it does not seem to be necessary for "normal" usage (both UI/WS POVs).
2013-06-04 21:49:35 +02:00
Eloy Lafuente (stronk7) 8c8b3eba24 Merge branch 'MDL-39723-m25' of git://github.com/sammarshallou/moodle into MOODLE_25_STABLE 2013-06-04 17:48:57 +02:00
Gareth J Barnard faccb2ba9f MDL-39820 theme_bootstrapbase: Fix form button alignment for badges. 2013-06-04 11:17:23 +01:00
Dan Poltawski bf2360c597 Merge branch 'MDL-39945_25' of git://github.com/timhunt/moodle into MOODLE_25_STABLE 2013-06-04 15:54:01 +08:00
Dan Poltawski e7bb4b1ee7 Merge branch 'MDL-39835_M25' of github.com:lazydaisy/moodle into MOODLE_25_STABLE 2013-06-04 14:43:13 +08:00
Dan Poltawski 2b7e18fded Merge branch 'wip-MDL-39819_M25' of git://github.com/gjb2048/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-06-04 14:38:36 +08:00
Marina Glancy f85cb076aa MDL-39870 correctly determine whether activity is resource or module 2013-06-04 14:14:39 +08:00
Dan Poltawski 836dab79c0 MDL-39931 less: recompile with whitespace removed 2013-06-04 14:09:28 +08:00
Dan Poltawski 2fdfdd49d4 Merge branch 'MDL-39931-M25' of github.com:lazydaisy/moodle into MOODLE_25_STABLE 2013-06-04 13:32:33 +08:00
Dan Poltawski cb1318754e Merge branch 'MDL-39536-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-06-04 13:19:16 +08:00
Frederic Massart 491e196107 MDL-39536 completion: Unit tests for get_activities and has_activities 2013-06-04 12:58:03 +08:00
Frederic Massart 13f73be25b MDL-39536 completion: Prevent DB call when fetching activities 2013-06-04 12:58:02 +08:00
David Mudrák 21c4402280 MDL-39939 Fix the basic SCORM report plugin name 2013-06-04 12:27:42 +08:00
Dan Poltawski 2140e5afa4 Merge branch 'wip-mdl-39827-m25' of git://github.com/rajeshtaneja/moodle into MOODLE_25_STABLE 2013-06-04 11:29:57 +08:00
Dan Poltawski acae4313c8 Merge branch 'MDL-39317-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-06-04 11:26:33 +08:00
Frederic Massart 16725a78d0 MDL-39865 navigation: Removed unaccessible repositories node
A user is not allowed to edit another user's repositories, in any
circumstances. The repositories node under 'Profile setting for X'
does not make sense under those conditions.
2013-06-04 11:14:02 +08:00
Frederic Massart 3e17b1c4a7 MDL-39865 navigation: 'Profile settings for ...' always displayed
Before this patch, 'Profile settings for X' would only be displayed
if X can access the course, which means that if the course is hidden
the node would be hidden as well. We changed this so that the user
needs to be enrolled in the course.
2013-06-04 11:14:02 +08:00
Dan Poltawski e19a07bfcb Merge branch 'MDL-39743-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE 2013-06-04 11:03:45 +08:00
Dan Poltawski c687e8d741 Merge branch 'wip_25_mdl-34085' of https://github.com/iarenaza/moodle into MOODLE_25_STABLE 2013-06-04 10:42:55 +08:00
AMOS bot 09c0ea1f39 Automatically generated installer lang files 2013-06-04 00:46:34 +00:00
Eloy Lafuente (stronk7) 1fe7be205c Merge branch 'wip-MDL-39801-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-06-04 01:58:27 +02:00
Eloy Lafuente (stronk7) 6399a82028 MDL-39764 style: phpdoc changed to inline comments 2013-06-04 01:43:35 +02:00
Eloy Lafuente (stronk7) 8a2cee5091 Merge branch 'wip-MDL-39764_M25_3' of git://github.com/gjb2048/moodle into MOODLE_25_STABLE 2013-06-04 01:43:28 +02:00
Eloy Lafuente (stronk7) ca7f399be7 Merge branch 'w23_MDL-39882_m25_behatconfig' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-04 01:32:12 +02:00
Damyon Wiese 6c37003d05 MDL-39821 assign: missing setType with advanced grading 2013-06-04 01:30:20 +02:00
Eloy Lafuente (stronk7) d1963974a9 MDL-39465 Show env. info instead of part twice. 2013-06-04 00:50:55 +02:00
Gareth J Barnard 3b4752e1f2 MDL-39764 course_format: Allow courses to have numsections > maxsections. 2013-06-03 23:43:24 +01:00
Eloy Lafuente (stronk7) 618737d7e9 Merge branch 'MDL-39936-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-06-04 00:05:04 +02:00
Eloy Lafuente (stronk7) 06ab9b8888 Merge branch 'w23_MDL-39465_m25_environment' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-06-04 00:00:44 +02:00
Justin Filip c7abb11786 MDL-39166 auth_ldap Add triggers for user created/updated events. 2013-06-03 23:55:30 +02:00
Eloy Lafuente (stronk7) 73f8ab649f Merge branch 'wip-MDL-39710-m25' of git://github.com/marinaglancy/moodle into MOODLE_25_STABLE 2013-06-03 23:22:17 +02:00
Eloy Lafuente (stronk7) 189590bb37 Merge branch 'MDL-39932_25' of git://github.com/grabs/moodle into MOODLE_25_STABLE 2013-06-03 19:10:39 +02:00
Albert Gasset 827e54dde5 MDL-39487 mod/assign: fixed ID number of grade item changing 2013-06-03 19:05:55 +02:00
Eloy Lafuente (stronk7) 42a9e3efc2 Merge branch 'MDL-39987_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE 2013-06-03 16:07:47 +02:00
Mary Evans f58fadfeba MDL-39987 theme_bootstrapbase: Fixed menunode text in renderers/core_renderer.php. 2013-06-02 23:17:14 +01:00
Petr Škoda f498ae7652 MDL-39416 do not try to get detailed perflog info before PAGE int 2013-06-02 13:35:40 +02:00
Petr Škoda dd85f5aed0 MDL-39588 require MOODLELIB Oracle package
Previously it was kind of optional, but it is now required. We also attempt to install it automatically now.
2013-06-02 11:14:10 +02:00
Mary Evans b91fcb9094 MDL-39835 theme_sky_high: Fix for footer to display correctly in higher resolutions. 2013-06-01 21:53:19 +01:00
Gareth J Barnard dfb83eb132 MDL-39819 theme_bootstrapbase: Fix icon alignment in filepicker. 2013-05-31 22:32:03 +01:00
Petr Škoda 1e558fdf66 MDL-39465 detect environment problems in tests
This should help explain why something else fails.
2013-05-31 22:03:15 +02:00
Tim Hunt 7dad4a5e59 MDL-39978 Essays with files break each attempt builds on last 2013-05-31 20:48:03 +01:00
Tim Hunt 8b2e668a19 MDL-39971 each attempt builds on last broken for previews. 2013-05-31 20:32:52 +01:00
Petr Škoda 65380ecd0a MDL-39503 tell robots to not index login and signup page
This should partially prevent people from googling moodle sites that allow signup. Please note you can not use login block if because it would still disclose the signup link.
2013-05-31 21:26:23 +02:00
Petr Škoda b5ce3bc8f4 MDL-39882 add required behat settings to config-dist 2013-05-31 21:09:05 +02:00
Marina Glancy 51173470b6 MDL-39710 Don't display rubric and guide preview unless option checked 2013-05-31 16:13:18 +10:00
Russell Boyatt 8df87c160f Fixing MDL-39710: setting to limit student access to rubric now checked. 2013-05-31 16:13:13 +10:00
Dan Poltawski e5326193bf MDL-38731 course: split course group settings header
Allow translators to translate the heading differently.

AMOS BEGIN
  CPY [groups,group],[groupsettingsheader,group]
AMOS END
2013-05-31 12:04:51 +08:00
Dan Poltawski e9fd6e5dd6 MDL-37332 portfolio: don't add double slashes
get_filepath() always returns trailing slash.

This breaks windows export - thanks to Jason Platts
2013-05-31 11:52:34 +08:00
Marina Glancy a74edf03ad MDL-39801 navigation_node::remove does not allow to insert nodes afterwards 2013-05-31 13:51:13 +10:00
Marina Glancy bd205fa484 MDL-39801 navigation_node::remove fails if first child does not have a key 2013-05-31 13:51:13 +10:00
Marina Glancy 93ac52a9f3 MDL-21097 Allow user to change current section if he does not have any other manageing capability 2013-05-31 13:20:16 +10:00
Marina Glancy db8d852af9 MDL-21097 Correctly check capabilities for course settings items
- Make sure that items in course settings (and frontpage settings) are shown depending on user capabilities
- Make sure user is able to turn editing on on the page even if he has only limited number of seciton/modules managing capabilities
2013-05-31 13:20:10 +10:00
Dan Poltawski 068373c86a MDL-33562 lib: remove deleted user tokens 2013-05-31 10:23:51 +08:00
Dan Poltawski 4c4c90f4b0 MDL-33562 lib: remove private keys when user deleted 2013-05-31 10:22:02 +08:00
AMOS bot a270a2c129 Automatically generated installer lang files 2013-05-31 00:43:06 +00:00
Adam Olley 096707c01d MDL-39947 mod_forum: Add safety check to variable assignment when counting unread posts 2013-05-31 09:50:05 +09:30
Andreas Grabs b4de832553 MDL-39932 mod_feedback - Mapping Feedback when Course is Deleted - thx to David N. Johnson 2013-05-30 23:11:37 +02:00
Tim Hunt f0dc1a71c1 MDL-39945 qtype multichoice was not comparing blank responses correctly. 2013-05-30 19:22:21 +01:00
Iñaki Arenaza 2f467a82a1 MDL-34085 Fix the backup options names in core_course_duplicate_course
Fix the option names to match those used by the backup subsystem.
2013-05-30 17:45:30 +02:00
Mary Evans 91cf8cc82c MDL-39931 theme_bootstrapbase: ported invisiblefieldset css rules from theme/base/core.css to less/moodle/core.css 2013-05-30 15:51:16 +01:00
Dan Poltawski 2e80405940 MDL-39936 upgrade: 2.5.0 line incorrectly positioned 2013-05-30 13:40:28 +08:00
Damyon Wiese f36066fa9e weekly release 2.5+ 2013-05-30 12:09:08 +08:00
Damyon Wiese a4e0171b2c Merge branch 'install_25_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_25_STABLE 2013-05-30 11:27:46 +08:00
AMOS bot 8352a1b138 Automatically generated installer lang files 2013-05-30 00:38:21 +00:00
Damyon Wiese 028b56f875 MDL-39317 assign: Fix for submitted filter on grading table.
Some old upgraded assignments have no timecreated column so use
a different one to check for a valid submission.
2013-05-29 14:50:42 +08:00
Ashley Holman e9efc2baa2 MDL-39743 assign: Fix missing capability check for "grant extension" 2013-05-29 12:04:22 +08:00
AMOS bot 7e720621ec Automatically generated installer lang files 2013-05-29 00:39:21 +00:00
Yuliya Bozhko 626c84bca9 MDL-39790 Add badges block to the course page 2013-05-29 09:42:11 +12:00
Eloy Lafuente (stronk7) 4bc4844d5b Merge branch 'w22_MDL-39676_m25_whereparam' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-05-28 15:33:33 +02:00
sam marshall 695f6f3c23 MDL-39723 Remove unnecessary queries for COURSE, SITE 2013-05-28 13:16:03 +01:00
Damyon Wiese f4075573b9 MDL-39477: Remove some unused instances of $CFG
Also change @since tags to 2.5.1 because this will be backported.
2013-05-28 11:11:42 +08:00
David Monllao a13cbfb3e7 MDL-39702 generators: Adding MOODLE_INTERNAL
As discussed generators should include MOODLE_INTERNAL
as they make use of CFG and they don't make sense without
requiring config.php.
2013-05-28 11:10:35 +08:00
Frederic Massart 799dbbfbaa MDL-39477 repository: Tests use data generator 2013-05-28 11:08:58 +08:00
Frederic Massart e5c6694de8 MDL-39477 repository: Introducing data generators for repositories 2013-05-28 11:08:54 +08:00
Damyon Wiese d3aeeb93c2 Merge branch 'w22_MDL-39802_m25_deletedusers' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-05-28 09:56:08 +08:00
AMOS bot f5940428a9 Automatically generated installer lang files 2013-05-28 00:38:15 +00:00
Eloy Lafuente (stronk7) e58af1dfcd Merge branch 'wip-MDL-39836_M25' of git://github.com/gjb2048/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-28 01:24:58 +02:00
Eloy Lafuente (stronk7) 4f0d6118ff Merge branch 'wip-MDL-39456-m25' of git://github.com/samhemelryk/moodle into MOODLE_25_STABLE 2013-05-28 01:02:34 +02:00
Eloy Lafuente (stronk7) 8b77e81201 Merge branch 'MDL-39853_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-05-28 00:57:06 +02:00
Eloy Lafuente (stronk7) d6e2b0a03e Merge branch 'MDL-39795_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-05-28 00:45:02 +02:00
Damyon Wiese a665577b37 Merge branch 'MDL-39686_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-05-27 16:28:48 +08:00
Damyon Wiese f32e55c8d7 Merge branch 'MDL-39680-M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-27 16:21:44 +08:00
Damyon Wiese 6a3a3bd868 Merge branch 'MDL-39640-master-int' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-05-27 16:14:59 +08:00
Kordan f70d382498 MDL-39194 theme_formal_white: cleaned the category page showing course listing 2013-05-27 15:23:08 +08:00
David Monllao e132b54a6a MDL-39853 behat: Useful info for $CFG->behat_config setting 2013-05-27 15:14:06 +08:00
David Monllao c0b59154ba MDL-39686 behat: Add option to restart the browser 2013-05-27 15:06:15 +08:00
David Monllao 268cb03e2d MDL-39686 behat: Adding into to config-dist.php 2013-05-27 15:06:09 +08:00
Dan Poltawski ad97a56875 MDL-39806 theme_bootstrapbase: run less with --compress 2013-05-27 14:42:44 +08:00
Dan Poltawski 8d94299b02 Merge branch 'MDL-39806_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE 2013-05-27 14:36:55 +08:00
David Monllao 0653761da2 MDL-39795 behat: Adapting features to consider spaces 2013-05-27 14:25:40 +08:00
David Monllao e489df87bf MDL-39795 behat: Improving find-texts-in-page-contents performance 2013-05-27 14:25:34 +08:00
Marina Glancy 87a445ec70 MDL-39785 bug fix: filter_activitynames was not applied correctly 2013-05-27 14:17:15 +08:00
Dan Poltawski 121e2492e8 Merge branch 'MDL-38239-moodle25' of git://github.com/StudiUM/moodle into MOODLE_25_STABLE 2013-05-27 14:13:36 +08:00
Dan Poltawski 6c16494f03 Merge branch 'w22_MDL-39688_m25_etag' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-05-27 13:43:37 +08:00
Dan Poltawski 191e70c2e2 Merge branch 'w22_MDL-38408_m25_paypalcost' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-05-27 13:05:14 +08:00
Yuliya Bozhko 7291b026a0 MDL-39778 badges: Fix missing library error in delete_course() 2013-05-27 12:00:38 +08:00
Rajesh Taneja df4da0fe79 MDL-39827 course: Trigger invalidate cache event while changing sort-order of category 2013-05-27 10:55:48 +08:00
Dan Poltawski ceb4030763 Merge branch 'MDL-39768_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-05-27 10:18:32 +08:00
Gareth J Barnard 69ecf8c0a9 MDL-38856 theme_bootstrapbase: Inverse user name text unreadable on nav bar 2013-05-27 02:09:01 +01:00
Mary Evans 039c78702d MDL-39680 theme_bootstrapbase: Fixed footer alignment in less/moodle/debug.less
Squashed commit of the following:

commit 58f5e063a8b333c184ca83ece7f61ec40d2a5080
Author: Mary Evans <lazydaisy@visible-expression.co.uk>
Date:   Sun May 26 13:45:11 2013 +0100

    MDL-39680 theme_bootstrapbase: Fixed footer alignment in less/moodle/debug.less

commit 575594257a9f4fab75977d2334d07659abea0b65
Author: Mary Evans <lazydaisy@visible-expression.co.uk>
Date:   Sun May 26 02:07:00 2013 +0100

    MDL-39680 theme_bootstrapbase: Centralised text in footer.
2013-05-26 13:55:45 +01:00
Petr Škoda 7fa470de03 MDL-38408 always validate PayPal dates and cost, improve float formatting 2013-05-25 22:48:44 +02:00
Mary Evans 6ceb6eb672 MDL-39806 theme_bootstrapbase: Fix for coursesearchbox label alignment. 2013-05-25 17:16:39 +01:00
Petr Škoda 644b1df502 MDL-39676 improve get_role_users() unit tests 2013-05-25 10:10:17 +02:00
Petr Škoda 161be92065 MDL-39688 do not set Etag when sending http ranges 2013-05-25 09:12:03 +02:00
Petr Škoda 5878ac3957 MDL-39802 ignore deleted users in meta enrolments 2013-05-24 21:28:38 +02:00
Petr Škoda 761227cfc6 MDL-39802 ignore deleted users in cohort enrolments 2013-05-24 21:28:38 +02:00
Petr Škoda 97d68b5652 MDL-39802 ignore deleted users in category enrolments 2013-05-24 21:28:37 +02:00
Petr Škoda 3ecf7ddd15 MDL-39802 fix sloppy user deleting and creating in imsenterprise plugin 2013-05-24 21:28:37 +02:00
Petr Škoda b6ef79950e MDL-39802 add cli script for fixing of all deleted users
Use this script if something just set the user.deleted flag instead of calling the delete_user() method.
2013-05-24 21:28:37 +02:00
Damyon Wiese f65261d096 weekly release 2.5+ 2013-05-24 13:26:46 +08:00
Damyon Wiese 93f645f0ae Merge branch 'install_25_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_25_STABLE 2013-05-24 13:12:11 +08:00
Sam Hemelryk e5184cac0e MDL-39456 cachestore_file: added reference to global $CFG
By holding onto a reference of the global $CFG object we
can be sure that it isn't destroyed before we are done
with it.
This allows for caches to be used within destructors for
purposes such as delayed writes.
2013-05-24 09:54:18 +12:00
Marina Glancy caaad8b08d MDL-39177 make sure we don't remove existing directories when cleaning up unzip 2013-05-23 15:59:53 +02:00
AMOS bot cb033b9fab Automatically generated installer lang files 2013-05-22 08:26:02 +00:00
David Monllao 4f629bc677 MDL-39768 behat: Adding focused panels CSS selector 2013-05-22 15:11:55 +08:00
Eloy Lafuente (stronk7) d917dc9e40 MDL-36482 Fix slipped error, thanks Petr! 2013-05-22 04:14:01 +02:00
Damyon Wiese d74f740722 Merge branch 'MDL-39697-M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE 2013-05-22 09:03:31 +08:00
Marina Glancy 6168502474 MDL-39177 Updating userid when file is overwritten 2013-05-22 02:25:18 +02:00
Marina Glancy 751cebfc3d MDL-39177 More comments about confusing files.source field 2013-05-22 02:25:12 +02:00
Marina Glancy acfd39cbf8 MDL-39177 New function file_storage::get_unused_dirname() 2013-05-22 02:25:07 +02:00
Marina Glancy 2efc8ff39f MDL-39177 Ensure files are overwritten correctly on unzip 2013-05-22 02:25:02 +02:00
Marina Glancy 2a0b243137 MDL-39177 Perform all checks on draftfile area before saving the files 2013-05-22 02:24:56 +02:00
Marina Glancy b8aca19538 MDL-39177 Remove code duplication 2013-05-22 02:24:50 +02:00
Marina Glancy 2fbfedb310 MDL-39177 Update file in filearea only if original is present
Now when file was deleted in filemanager and new file with the same file was uploaded the references will be converted to copies exactly like UI warns in filemanager.
Also do not delete original information from draftfiles.
2013-05-22 02:24:40 +02:00
Marina Glancy 6c43ee510f MDL-39177 Discard file origin when moving/renaming a file in filemanager
Created one function that handles file update to be used from both JS and nonJS filepicker
2013-05-22 02:24:32 +02:00
Marina Glancy d262212a1f MDL-39177 Original info is not preserved when overwriting a file in filemanager
original file location is used by filemanager to indicate that file is a source of reference and file the list of referencing files
2013-05-22 02:24:24 +02:00
Marina Glancy d50f747fd8 MDL-39177 File reference is not updated when overwriting the file 2013-05-22 02:24:13 +02:00
Marina Glancy d95506e05a MDL-33719 When overwriting a file the filemanager is not refreshed 2013-05-22 02:24:08 +02:00
Gilles-Philippe Leblanc f7d180a7fb MDL-38239 gradebook: Importing grades from a .txt file with commas for decimals causes an error 2013-05-21 14:43:07 -04:00
Marina Glancy 91af4fa5bf MDL-39720 added missing setType() in moodleform 2013-05-21 12:30:21 +08:00
Dan Poltawski b051261ecc Merge branch 'MDL-39753_25' of git://github.com/stronk7/moodle into MOODLE_25_STABLE 2013-05-21 11:00:32 +08:00
Dan Poltawski aeaf5c1337 MDL-39323 auth_ldap: fix savepoint version 2013-05-21 10:52:44 +08:00
Iñaki Arenaza 9f13f53393 MDL-39323 Make sure start_tls config value is defined
This has been introduced in 2.5, so when upgrading from previous versions
make sure we set a default value. Otherwise, we get a notice about it
being undefined when we try to use it (and we always try to use it!).
2013-05-21 10:44:11 +08:00
Russell Smith 0bc310eb5a MDL-36482 activities block: Allow mod display without intro's 2013-05-21 02:27:58 +02:00
Eloy Lafuente (stronk7) ab6a0ac4f7 Merge branch 'MDL-39758_M25' of git://github.com/lazydaisy/moodle into MOODLE_25_STABLE 2013-05-21 01:48:38 +02:00
David Monllao 18003f2adb MDL-39638 behat: New step to collapse nodes based on the expand nodes
Also updating steps with a collapse behaviour.
2013-05-21 01:00:36 +02:00
Jayesh Anandani 2ab5928066 MDL-26120 mod_forum: use correct object 2013-05-21 00:55:17 +02:00
Eloy Lafuente (stronk7) e3c1bd2593 Merge branch 'MDL-39717_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-05-21 00:44:22 +02:00
Jerome Mouneyrac 99f5bad554 MDL-31209 web service error message: Indication about the service not containg the web service function is confusing 2013-05-20 19:06:59 +02:00
Ruslan Kabalin 666117e830 MDL-39761: mod_assign: Always check submission plugin status and visibility. 2013-05-20 16:32:04 +01:00
Eloy Lafuente (stronk7) 9b19f3f4fb MDL-39753 Add 2.5.0 upgrade line 2013-05-20 15:34:44 +02:00
Mary Evans b6d07f25a1 MDL-39758 theme_bootatrapbase: Added missing layout/embedded.php. 2013-05-20 13:04:44 +01:00
Dan Poltawski e90eb091c5 Merge branch 'w18_MDL-39374_m25_folderlog' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-05-20 17:58:29 +08:00
Damyon Wiese 5cc84acabe Merge branch 'MDL-38498-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE 2013-05-20 16:12:34 +08:00
Frederic Massart 543b5feae0 MDL-39719 course: Pointing to wrong category string in requests 2013-05-20 16:10:07 +08:00
Frederic Massart cdd041e631 MDL-38498 repository: Unit tests for repository::check_capability() 2013-05-20 16:00:11 +08:00
Tim Hunt 6d393bd97c MDL-27748 question: grade options should be localised.
question_bank::fraction_options should use format_float to display
decimal pionts correctly.
2013-05-20 15:47:22 +08:00
Tim Hunt f8aec131e9 MDL-39728 List all the classes in question/type/questionbase.php
This should make it easier for people to understand the type hierarchy.
2013-05-20 15:28:59 +08:00
Troy Lee 62cf9a1d2a MDL-36020 overview/report: fix quiz regrade session lock 2013-05-20 12:42:38 +08:00
Damyon Wiese 76f881c83a Merge branch 'MDL-39363-master' of git://github.com/ankitagarwal/moodle into MOODLE_25_STABLE 2013-05-20 12:13:09 +08:00
Damyon Wiese c4500213d6 Merge branch 'MDL-39528_25' of git://github.com/dmonllao/moodle into MOODLE_25_STABLE 2013-05-20 12:06:51 +08:00
Mary Evans 1cdcb6599a MDL-39630 theme_afterburner: Improving the way course/category listings display. 2013-05-20 12:03:00 +08:00
Kordan ff3f1f3ef3 MDL-39198 theme_formal_white: resized and relocated the "Add..." drop down menu of the "Add a block" pseudo block 2013-05-20 11:48:23 +08:00
Frederic Massart b42e6e1c2e MDL-38369 repository: Remove output before redirect 2013-05-20 10:25:34 +08:00
Damyon Wiese d8581a2367 Merge branch 'MDL-28250-25' of git://github.com/danpoltawski/moodle into MOODLE_25_STABLE 2013-05-17 12:11:31 +08:00
David Monllao 236ebcfe78 MDL-39528 behat: Avoid modal window suite failure
Catching JS alerts/confirms exceptions and
auto-accepting them before each test run to
avoid chained scenarios failures.
2013-05-17 12:09:04 +08:00
David Monllao c340dca9b0 MDL-39717 behat: Removing unstable steps and scenarios 2013-05-17 11:48:29 +08:00
David Monllao a3c292ee64 MDL-39717 behat: Add info to experimental steps definitions
JS modal dialogs and drag & drop should be
considered experimental as the steps are not
working as expected in all OS/browser combinations.
2013-05-17 11:48:20 +08:00
Damyon Wiese b7bbb615d7 Merge branch 'w18_MDL-39678_m25_yui' of git://github.com/skodak/moodle into MOODLE_25_STABLE 2013-05-16 15:55:45 +08:00
Mary Evans 9141e05262 MDL-39697 theme_bootstrapbase: Updated $THEME->layouts in config.php to match those in Base theme. 2013-05-16 00:57:40 +01:00
Petr Škoda e9cfbe4290 MDL-39678 fix YUI 20130515 vulnerability 2013-05-15 22:12:12 +02:00
Petr Škoda 2e297423cd MDL-39374 log only real folder edits
Credit goes to Florian Zillner, thanks.
2013-05-15 21:32:27 +02:00
Dan Poltawski 82198dec8b MDL-28250 license: upgrade old versions of cc-nc
The url was incorectly defined in previous versions
2013-05-15 11:22:13 +01:00
Wojciech Galiszek 8243f3ebb5 MDL-28250 license: Correct cc-nc url 2013-05-15 10:45:36 +01:00
Eloy Lafuente (stronk7) 8daf98a10f NOBUG: Keep backup YYYYMMDD on sync with 2.5 2013-05-14 12:42:15 +02:00
Eloy Lafuente (stronk7) b222cfb79b Moodle release 2.5 2013-05-14 11:27:22 +02:00
Eloy Lafuente (stronk7) ff291e488d Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-05-14 11:18:14 +02:00
Damyon Wiese 5a378479a0 Merge branch 'MDL-39664' of git://github.com/nebgor/moodle 2013-05-14 15:25:46 +08:00
Damyon Wiese a9dcf2db60 Merge branch 'MDL-39641-master-int' of git://github.com/FMCorz/moodle 2013-05-14 15:08:25 +08:00
Aparup Banerjee 4cf0c17d18 MDL-39664 fixed up is_array test (reverting the whole line basically prior to MDL-39664 changes) 2013-05-14 15:02:24 +08:00
Damyon Wiese d458718f59 Merge branch 'MDL-39191_master' of git://github.com/kordan/moodle 2013-05-14 14:16:05 +08:00
Damyon Wiese c938b909ba Merge branch 'MDL-39664' of git://github.com/nebgor/moodle 2013-05-14 13:33:25 +08:00
Aparup Banerjee c713414319 MDL-39664 added http redirect limitation to 5. rephrased certificate use in message log. 2013-05-14 13:23:14 +08:00
Aparup Banerjee 6053036976 MDL-39664 mdeploy follows redirects now. 2013-05-14 13:14:28 +08:00
Aparup Banerjee cb97a97794 MDL-39664 allowed mdeploy to follow redirection (http 302) and added some extra logging info 2013-05-14 11:56:05 +08:00
Frederic Massart a8655ae728 MDL-39601 user: Missing setType in user filters 2013-05-14 09:16:46 +08:00
AMOS bot 2c2532533b Automatically generated installer lang files 2013-05-14 00:37:43 +00:00
AMOS bot a1327196ee Merge branch 'master' into install_master 2013-05-14 00:37:41 +00:00
Sam Hemelryk f000edba16 Merge branch 'MDL-39573-master' of git://github.com/damyon/moodle 2013-05-14 09:15:54 +12:00
Dan Poltawski 2a7a5cfa4c Merge branch 'MDL-39599-master-int' of git://github.com/FMCorz/moodle 2013-05-13 13:51:12 +01:00
Dan Poltawski 3f461e9322 Merge branch 'MDL-39579-master-int' of git://github.com/FMCorz/moodle 2013-05-13 13:09:14 +01:00
Eloy Lafuente (stronk7) 1e374df88d on demand release 2.5rc1+ 2013-05-13 12:40:21 +02:00
Eloy Lafuente (stronk7) 522b5faf60 Merge branch 'MDL-39642-en_fix' of git://github.com/mudrd8mz/moodle
Conflicts:
	lang/en/badges.php
2013-05-13 12:07:55 +02:00
Frederic Massart 0f387618cd MDL-39640 repository: Prevent notice when editing an instance 2013-05-13 17:27:42 +08:00
Frederic Massart 157fd8aaef MDL-39641 repository: Correct check for uniqueness of the name 2013-05-13 17:12:37 +08:00
Damyon Wiese e1559b58e8 Merge branch 'MDL-39604-master-int' of git://github.com/FMCorz/moodle 2013-05-13 16:43:49 +08:00
Helen Foster 9f3e096899 MDL-39642 Merge English strings from the en_fix language pack 2013-05-13 09:58:43 +02:00
Damyon Wiese 826cf99fb8 Merge branch 'MDL-39189_master' of git://github.com/totara/openbadges 2013-05-13 15:10:49 +08:00
Damyon Wiese a02e36d682 Merge branch 'MDL-39209_master' of git://github.com/totara/openbadges 2013-05-13 14:59:37 +08:00
Damyon Wiese 6693089b90 MDL-39573 theme: bootstrap - always show pre and post regions when editing 2013-05-13 14:55:29 +08:00
Sam Hemelryk 84bf8a3971 MDL-39526 cache: purged when upgrade finished 2013-05-13 14:51:26 +08:00
Mary Evans 0d57b4cbf2 MDL-39595 theme_bootstrapbase: Renamed renderers/core.php to renderers/core_renderer.php 2013-05-13 14:51:26 +08:00
Damyon Wiese 2c59e0ffaa Merge branch 'MDL-39581_master' of https://github.com/markn86/moodle 2013-05-13 14:05:30 +08:00
Damyon Wiese 509c81cf07 Merge branch 'MDL-39606-master-int' of git://github.com/FMCorz/moodle 2013-05-13 13:43:07 +08:00
Damyon Wiese 03d839c270 Merge branch 'MDL-39609-master-int' of git://github.com/FMCorz/moodle 2013-05-13 13:28:27 +08:00
Damyon Wiese d9ffe3f945 Merge branch 'MDL-39611-master-int' of git://github.com/FMCorz/moodle 2013-05-13 13:22:32 +08:00
Damyon Wiese 8b4c865543 Merge branch 'wip-MDL-39526-m25-p2' of git://github.com/samhemelryk/moodle 2013-05-13 11:59:29 +08:00
Sam Hemelryk 55848bc3f6 Merge branch 'MDL-39595_master' of git://github.com/lazydaisy/moodle 2013-05-13 15:40:17 +12:00
Frederic Massart 7d1904de1d MDL-39606 question: Fix missing setType warnings 2013-05-13 09:08:05 +08:00
Sam Hemelryk 24dedb9680 MDL-39526 cache: purged when upgrade finished 2013-05-13 10:20:40 +12:00
AMOS bot 4b5cc94427 Automatically generated installer lang files 2013-05-12 00:36:56 +00:00
AMOS bot beccabce25 Automatically generated installer lang files 2013-05-11 00:38:22 +00:00
Eloy Lafuente (stronk7) 2d5303cbe7 Moodle release 2.5rc1 2013-05-10 17:29:20 +02:00
Eloy Lafuente (stronk7) e477f1e45f fix permissions 2013-05-10 17:23:55 +02:00
Eloy Lafuente (stronk7) 3e81c83e68 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-05-10 17:17:43 +02:00
Eloy Lafuente (stronk7) 6382f49fb1 Merge branch 'MDL-39518-master' of git://github.com/damyon/moodle 2013-05-10 13:17:16 +02:00
Eloy Lafuente (stronk7) 9d5ec39453 Merge branch 'wip-MDL-39575-m25' of git://github.com/samhemelryk/moodle 2013-05-10 12:06:38 +02:00
Frederic Massart 914077b4a8 MDL-39611 url: Fix setType warnings in module settings 2013-05-10 15:49:39 +08:00
Frederic Massart ff273b68ff MDL-39609 grade: Notice during import and calculation 2013-05-10 15:28:58 +08:00
Damyon Wiese 727b8d54e4 MDL-39518: Change hardcoded string MOOCH to Moodle.net 2013-05-10 14:38:46 +08:00
Frederic Massart 3514319719 MDL-39604 course: Reformat section edit form 2013-05-10 13:52:50 +08:00
Sam Hemelryk 1168a5f2e3 MDL-39575 install: better handling of database creation error.
Implemented better handling of DML exceptions.
Added translation for cannotcreatedb exception.
2013-05-10 17:28:39 +12:00
Sam Hemelryk 8b5647b8d7 Merge branch 'MDL-39602-master' of git://github.com/damyon/moodle 2013-05-10 16:41:15 +12:00
Sam Hemelryk 635d8bc84b Merge branch 'MDL-39488' of git://github.com/rwijaya/moodle 2013-05-10 16:23:26 +12:00
Frederic Massart 381ab8e1a3 MDL-39599 course: Fix setType warning in conditional access 2013-05-10 12:17:01 +08:00
Frederic Massart 188c04b0a8 MDL-39579 form: Type can be set on repeated elements in a group 2013-05-10 12:05:43 +08:00
Damyon Wiese 969eaa3eca MDL-39602 cache: Move the includes for default stores
Putting them inside the function get_default_stores ensures
that they will be included from anywhere that calls get_default_stores.
2013-05-10 11:53:45 +08:00
Mark Nelson edc4670b4c MDL-39581 forms: prevent calendar popup from changing multiple date elements 2013-05-10 11:22:07 +08:00
Rossiani Wijaya 89aa433fbd MDL-39488: Lesson Module: Fixed the potential variable overwritting for answers 2013-05-10 11:14:52 +08:00
Damyon Wiese 1248133f7c Merge branch 'MDL-39535_master' of https://github.com/markn86/moodle 2013-05-10 10:30:51 +08:00
Damyon Wiese dec909fcdd Merge branch 'MDL-38757-master-int' of git://github.com/FMCorz/moodle 2013-05-10 09:35:44 +08:00
Eloy Lafuente (stronk7) da2cff35c5 Merge branch 'MDL-38885-master-int' of git://github.com/FMCorz/moodle 2013-05-10 03:16:09 +02:00
Eloy Lafuente (stronk7) 05bf4b17e8 Merge branch 'MDL-29758' of git://github.com/jmvedrine/moodle 2013-05-10 02:53:49 +02:00
Eloy Lafuente (stronk7) 7942df199b Merge branch 'MDL-38559-completion-ui' of git://github.com/mudrd8mz/moodle 2013-05-10 02:37:54 +02:00
Eloy Lafuente (stronk7) ab0cb7cde6 Merge branch 'MDL-39003-master' of git://github.com/damyon/moodle 2013-05-10 02:36:30 +02:00
Frederic Massart d5909fd144 MDL-38885 form: Fix comments and stricter unit test 2013-05-10 08:34:59 +08:00
Eloy Lafuente (stronk7) 1065589db1 Merge branch 'MDL-39586_master' of git://github.com/dmonllao/moodle 2013-05-10 02:31:50 +02:00
Frederic Massart a85f745d50 MDL-38885 form: Unit tests for data cleaning 2013-05-10 08:17:40 +08:00
Frederic Massart 9654f68ae9 MDL-38885 form: More unit testing for missing type detection 2013-05-10 08:17:40 +08:00
Frederic Massart 8a9c3f4951 MDL-38885 form: Advanced type checking on special elements 2013-05-10 08:17:40 +08:00
Frederic Massart 3c0ba94e87 MDL-38885 form: Recursively clean parameters based on right type 2013-05-10 08:17:40 +08:00
Eloy Lafuente (stronk7) dd334c7a8b Merge branch 'MDL-39051_master' of git://github.com/dmonllao/moodle 2013-05-10 01:42:19 +02:00
Mary Evans 960cff839b MDL-39595 theme_bootstrapbase: Renamed renderers/core.php to renderers/core_renderer.php 2013-05-10 00:00:37 +01:00
David Mudrák 870a4f8119 MDL-38559 Fix the ability to disable the grade condition in the course completion settings form 2013-05-09 23:24:49 +02:00
David Mudrák 6e5a473c47 MDL-38559 Reorganise course completion settings form
This is a result of a pretty intensive effort to make the form less
sucky, given the completion strings mess around. It partially solves
MDL-39419 too as it clarifies the course completion link in the course
administration block.

I must admit and record here that I'm pretty desperate by the current
state of the core_completion and how strings from it are inconsistently
used at various places with different meanings. For example the 'Completion
tracking' may mean the mode of how activities are tracked within the
course as well as the overall feature of course and activities tracking.
While a same phrase can be used in English for both this meanings, not
all languages have such luck and translating it is a pain in the ass.

Finally, let me give the credit for wording and UI design suggestions to
Helen Foster and all others who helped with this. This has been one of
the most ugliest forms in Moodle and we believe we made it better
(although we know it's far from perfect).
2013-05-09 23:14:57 +02:00
Yuliya Bozhko 85d7399e20 MDL-39209 badges: Fix course badges page access and navigation when course badges are disabled 2013-05-10 08:41:22 +12:00
Yuliya Bozhko 71fd443b34 MDL-39189 badges: Allow users with multiple roles choose their role when awarding a badge 2013-05-10 08:33:45 +12:00
Eloy Lafuente (stronk7) b87572e860 Merge branch 'wip-MDL-39424-master' of git://github.com/ds125v/moodle 2013-05-09 22:18:58 +02:00
Eloy Lafuente (stronk7) d560159df6 Merge branch 'MDL-39488' of git://github.com/rwijaya/moodle 2013-05-09 15:47:38 +02:00
Eloy Lafuente (stronk7) 6d0e18efe8 Merge branch 'MDL-39585-filters-upgrade' of git://github.com/mudrd8mz/moodle 2013-05-09 13:39:54 +02:00
Kordan 988cd80065 MDL-39191 theme_formal_white: aligned label and radio button such as label and checkboxes in mform 2013-05-09 12:41:04 +02:00
David Monllao 5d7b6307b1 MDL-39586 behat: Closed list of stackeholders 2013-05-09 18:38:13 +08:00
David Mudrák 21df0539bc MDL-39585 Fix the upgrade step version number 2013-05-09 11:57:56 +02:00
David Monllao 1fb9715721 MDL-39051 behat: Fixing extra interactions
When the elements to interact with are not
available anymore.
2013-05-09 17:21:19 +08:00
David Monllao 217e8e59e5 MDL-39051 behat: Fix issue after closing popup windows
When a step closes a popup window the page DOM is not available
until we switch again to the main window; we should avoid exceptions
at framework level when hooking the after step process, this
includes the new exceptions catcher modification.
2013-05-09 17:21:06 +08:00
David Monllao b576bdc75d MDL-39051 behat: New tests
To cover all course controls functionalities with
and without Javascript and with and without paged
course mode.
2013-05-09 17:20:58 +08:00
Frederic Massart 9fba869836 MDL-38757 scorm: Remove advanced settings (except for Appearance) 2013-05-09 17:20:11 +08:00
Frederic Massart 20b51a1134 MDL-38757 scorm: Reformat SCORM package module settings 2013-05-09 17:20:07 +08:00
David Monllao 0e575f010e MDL-39051 behat: New steps for activity related actions 2013-05-09 17:15:25 +08:00
David Mudrák b3b13e9941 MDL-38559 Clean-up the course completion settings code
This patch does not alter the code, only some syntax fixes and
coding guidelines rules are applied. Strings are re-ordered
alphabetically with no change of their wording. PHP doc blocks
reconstructed using the Git log records.
2013-05-09 08:47:34 +02:00
David Monllao 563514b10c MDL-39051 behat: New general steps definitions
- To accept JS alerts
- To drag & drop elements
2013-05-09 14:27:41 +08:00
David Monllao a07ad80ae6 MDL-39051 behat: Using new steps definitions 2013-05-09 14:27:41 +08:00
Damyon Wiese b55248d5ad MDL-39462 course: Fix typo in $changesinccoursecat 2013-05-09 14:22:26 +08:00
Jean-Michel Vedrine d56ab3b992 MDL-29758 make Cloze question feedback display more informative
as it was in Moodle 1.9
2013-05-09 07:55:43 +02:00
Damyon Wiese 1922147ebf MDL-39290 Version bump for CSS changes 2013-05-09 13:49:22 +08:00
Damyon Wiese 9446028890 Merge branch 'MDL-39290' of git://github.com/colchambers/moodle 2013-05-09 13:48:41 +08:00
Damyon Wiese a5a6e93f01 MDL-39526 cache: add extra cache purge after upgrade_core
This prevents the upgraderunning lock from not being cleared when there are
no plugins to upgrade (reproducable bug with memcache as the application cache store)
2013-05-09 13:43:07 +08:00
Damyon Wiese 887e724796 Merge branch 'wip-MDL-39526-m25' of git://github.com/samhemelryk/moodle 2013-05-09 12:33:32 +08:00
Sam Hemelryk 3993a37c20 MDL-39526 cache: cleaned up disable_stores calls 2013-05-09 15:32:36 +12:00
Damyon Wiese c8f7f2b5f3 Merge branch 'wip-MDL-39436-master' of git://github.com/marinaglancy/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-09 11:29:33 +08:00
Damyon Wiese a04e97ef0c MDL-39412 Prevent developer warnings on upgrade from 24 to master 2013-05-09 11:26:25 +08:00
Tim Hunt cbdb09a9ef MDL-39412 disabling manual graded behaviour refinements
1. Change behaviour admin settings so you can only select enabled
behaviours.
2. During the upgrade, change admin settings that might be currently set
to manual graded, so that instead they are set to deferredfeedback (if
that is available. If not, we just take the first alphabetically.)
2013-05-09 11:24:43 +08:00
Marina Glancy d58f998eb4 MDL-39436 fixing RTL in filemanager - contextmenu icon 2013-05-09 12:40:51 +10:00
Damyon Wiese e9df9e8f7a MDL-38289: Custom profile fields - added unit test
Added a unit test to cover the case when you are fetching a custom
profile field but you are not logged in.
2013-05-09 10:29:51 +08:00
Damyon Wiese 8cfc9d75ed Merge branch 'MDL-38289-master-int' of git://github.com/FMCorz/moodle 2013-05-09 10:22:16 +08:00
Damyon Wiese 38398bebc3 MDL-39003 README for bootstrap less - more clarification and details 2013-05-09 09:15:07 +08:00
Jason Fowler e473358ef1 MDL-39003 - Bootstrap Theme - Changing less README to point to the dev docs for LESS 2013-05-09 09:13:06 +08:00
Sam Hemelryk fa167c4ac3 MDL-39526 cache: purge all stores after each plugin upgrade 2013-05-09 12:48:48 +12:00
AMOS bot ea475a11b2 Automatically generated installer lang files 2013-05-09 00:37:28 +00:00
Jerome Mouneyrac 669dee5804 MDL-37822 Moodle send site information to a hub even though it's unchecked 2013-05-09 01:51:56 +02:00
Sam Hemelryk b0dd08dd63 MDL-39430 cache: gets purged by force during upgrade and install 2013-05-09 10:42:21 +12:00
Sam Hemelryk c6ec9309fa MDL-39526 cache: now re-parses definitions during upgrade.
The solution to this issue was to make the disabled cache factory
return a proper cache writer object when requested rather than a
disabled cache object.

This only changes things when CACHE_DISABLE_ALL has been defined.
2013-05-09 10:42:21 +12:00
Eloy Lafuente (stronk7) 919a8db0a2 Merge branch 'MDL-39463_master' of https://github.com/markn86/moodle 2013-05-09 00:35:28 +02:00
Eloy Lafuente (stronk7) 474e0d3cd2 Merge branch 'MDL-39397_master' of git://github.com/totara/openbadges 2013-05-09 00:20:06 +02:00
Dan Poltawski 036aab5daa MDL-38979 bootstrap: fix previous TODO bugnumber..
grrr! Sorry for that.
2013-05-08 13:34:49 +01:00
Dan Poltawski 69b9a894a1 MDL-38979 bootstrap: add note about duplicated logic 2013-05-08 13:32:48 +01:00
Dan Poltawski 0249631131 Merge branch 'MDL-38979-master' of git://github.com/ds125v/moodle 2013-05-08 13:27:42 +01:00
Dan Poltawski ae3507af09 Merge branch 'MDL-39552' of git://github.com/stronk7/moodle 2013-05-08 13:03:58 +01:00
Dan Poltawski 2022330dd7 Merge branch 'MDL-39545_master' of https://github.com/markn86/moodle 2013-05-08 12:37:18 +01:00
Dan Poltawski ca463dcf1c Merge branch 'wip-MDL-39520-master' of git://github.com/marinaglancy/moodle 2013-05-08 12:33:19 +01:00
David Scotson 906b5731aa MDL-39424 bootstrapbase: add basic text styles to editor.css 2013-05-08 11:54:39 +01:00
Eloy Lafuente (stronk7) 7e2dd8dd47 MDL-38532 version mini-bump 2013-05-08 10:50:01 +02:00
Mark Nelson e019dcccdf MDL-39463 forms: use the date selectors 'optional' parameter rather than creating additional logic 2013-05-08 16:36:54 +08:00
Eloy Lafuente (stronk7) fc99ef7ebb Merge branch 'MDL-38532_master' of git://github.com/dmonllao/moodle 2013-05-08 10:30:25 +02:00
Dan Poltawski 1d8288f242 Merge branch 'wip-MDL-39462-master' of git://github.com/marinaglancy/moodle 2013-05-08 09:21:42 +01:00
Dan Poltawski 5179b61259 Merge branch 'MDL-39542-master-int' of git://github.com/FMCorz/moodle 2013-05-08 09:10:55 +01:00
David Monllao 8c700da3d8 MDL-38532 behat: Hardcode latest 2.5 moodlehq/behat-extension version 2013-05-08 16:07:02 +08:00
Damyon Wiese 35aba51758 Merge branch 'MDL-31193-master' of git://github.com/mouneyrac/moodle 2013-05-08 15:21:47 +08:00
Marina Glancy 8c288b261a MDL-38594 change course listing heading font size back to default 2013-05-08 15:14:56 +08:00
Marina Glancy bb7368a29b MDL-39388 corrected tabs renderer to deal with old code 2013-05-08 14:58:17 +08:00
Damyon Wiese 9a2cc7b6c8 Merge branch 'MDL-39388-master' of git://github.com/ds125v/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-08 14:57:49 +08:00
Rossiani Wijaya 3b3e7fd11c MDL-39488 Lesson Module: Improve code performance 2013-05-08 13:53:38 +08:00
Rossiani Wijaya 51fce0f6e0 MDL-39488 Lesson Module: Fixed PHP error matching question,
if one or more options have not been selected.
2013-05-08 13:53:38 +08:00
Joseph Rézeau b0e9cdd45b MDL-39488 Lesson Module: Fix for "Match question throws PHP error if one or more options have not been selected "
Signed-off-by: Joseph Rézeau <moodle@rezeau.org>
2013-05-08 13:53:31 +08:00
Damyon Wiese 66d6221f9a MDL-29472: Cohorts webservice - fix numerous access problems and add to the unit tests.
Also allow 'system' as a category type to allow you to create/update system wide cohorts.
2013-05-08 12:56:14 +08:00
Damyon Wiese 59add07d01 Merge branch 'MDL-29472_m' of git://github.com/andreabix/moodle 2013-05-08 12:51:00 +08:00
Damyon Wiese 8ed91fdabb Merge branch 'MDL-37552-master' of git://github.com/mouneyrac/moodle 2013-05-08 12:47:44 +08:00
Yuliya Bozhko 7deff81f80 MDL-39397 badges: Handle course badges when course is deleted 2013-05-08 16:12:44 +12:00
Frederic Massart 31f4725932 MDL-39542 course: Return to right section when JS is off 2013-05-08 11:32:25 +08:00
Marina Glancy b80a50f7c9 MDL-39462 added missing clearing of coursecat cache 2013-05-08 11:02:45 +10:00
Eloy Lafuente (stronk7) 2fd46e12b8 Merge branch 'wip-MDL-39554-m25' of git://github.com/samhemelryk/moodle 2013-05-08 02:14:20 +02:00
Sam Hemelryk 5451933012 MDL-39554 cache: sharing link only shown in multiple options are available 2013-05-08 11:02:14 +12:00
Sam Hemelryk bd12f745b7 MDL-39554 cache: forced sharing options for static + request 2013-05-08 10:56:55 +12:00
Andrew Davis 5df9bc3998 MDL-37475 core_grade:fixed the handling of show totals 2013-05-08 10:38:20 +12:00
Eloy Lafuente (stronk7) 4ce97aed0d Merge branch 'wip-mdl-39332' of git://github.com/rajeshtaneja/moodle 2013-05-08 00:28:15 +02:00
Sam Hemelryk b3a9bf23f5 Merge branch 'MDL-39481_master' of git://github.com/dmonllao/moodle 2013-05-08 09:54:13 +12:00
Eloy Lafuente (stronk7) d40a24384e Merge branch 'MDL-39452-master' of git://github.com/sammarshallou/moodle 2013-05-07 22:06:04 +02:00
Eloy Lafuente (stronk7) fbd84c8eb5 Merge branch 'MDL-32301_lti_instructor_params' of https://github.com/moodlerooms/moodle 2013-05-07 21:57:40 +02:00
Eloy Lafuente (stronk7) ddb8041433 MDL-39538 take rid of unused global 2013-05-07 21:43:06 +02:00
Eloy Lafuente (stronk7) 5304ded836 Merge branch 'wip-MDL-39538-master' of git://github.com/marinaglancy/moodle 2013-05-07 21:38:24 +02:00
Eloy Lafuente (stronk7) 52933ab087 Merge branch 'wip-MDL-39525-m25' of git://github.com/samhemelryk/moodle 2013-05-07 21:28:09 +02:00
Mark Nielsen e91be4ffa8 MDL-32301: Allow instructor custom parameters for LTI tools 2013-05-07 10:24:32 -07:00
Eloy Lafuente (stronk7) 3705a6dcbe Merge branch 'MDL-34275-master' of git://github.com/danpoltawski/moodle 2013-05-07 19:15:21 +02:00
Eloy Lafuente (stronk7) de10fcac5f MDL-39552 Make behat code re-entrant safe
With yui combo in action, some times setup.php is
included more than once. So it's mandatory to
guarantee that code until ABORT_AFTER_CONFIG_CANCEL
can be executed safely multiple times in the same
request.

This change just prevents the behat section to be executed
more than once. All the values that are set within it
should be already defined for the re-entrant call.
2013-05-07 19:00:41 +02:00
Eloy Lafuente (stronk7) 5b003e9cdd Merge branch 'MDL-39478_master' of git://github.com/dmonllao/moodle 2013-05-07 17:52:00 +02:00
Dan Poltawski 49bd43c140 Merge branch 'MDL-39497-workshop-allocator-stable' of git://github.com/mudrd8mz/moodle 2013-05-07 16:42:19 +01:00
Dan Poltawski 07d0648baf MDL-39515, MDL-39514 - ie9 fix for svg icons 2013-05-07 16:33:47 +01:00
Dan Poltawski d047828835 Merge branch 'MDL-39515-master' of git://github.com/barbararamiro/moodle 2013-05-07 16:33:06 +01:00
Dan Poltawski 339386d96c Merge branch 'MDL-39514-master' of git://github.com/barbararamiro/moodle 2013-05-07 16:32:29 +01:00
Damyon Wiese 5946813506 Merge branch 'master_MDL-38102' of github.com:totara/moodle 2013-05-07 23:06:09 +08:00
Dan Poltawski b6009c5ca5 Merge branch 'MDL-36223-master' of git://github.com/damyon/moodle 2013-05-07 15:28:05 +01:00
Dan Poltawski 38a6ec6a3a Merge branch 'wip-MDL-39436-master' of git://github.com/marinaglancy/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-07 15:12:58 +01:00
Rajesh Taneja 89f5e43064 MDL-37245 Blog: Fixed comments. 2013-05-07 15:02:23 +01:00
Rajesh Taneja 9a909b1a35 MDL-37245 Blog: Added permission check for blog comments 2013-05-07 15:02:22 +01:00
Eloy Lafuente (stronk7) fc076898c7 Merge branch 'MDL-39437' of git://github.com/rwijaya/moodle 2013-05-07 15:50:29 +02:00
Dan Poltawski 5bb85e4bf6 Merge branch 'MDL-39508_master' of git://github.com/lazydaisy/moodle 2013-05-07 14:42:44 +01:00
Dan Poltawski 577f21ec24 Merge branch 'MDL-39496-m' of git://github.com/andrewnicols/moodle 2013-05-07 12:15:38 +01:00
Dan Poltawski 1795fc7ead Merge branch 'MDL-38500-master' of git://github.com/FMCorz/moodle 2013-05-07 11:54:15 +01:00
Dan Poltawski ac15fc95fa Merge branch 'MDL-39448-master' of git://github.com/sammarshallou/moodle
Conflicts:
	cache/stores/memcache/version.php
2013-05-07 11:43:23 +01:00
Dan Poltawski bdc8928339 Merge branch 'master_MDL-35852' of git://github.com/danmarsden/moodle 2013-05-07 11:41:30 +01:00
Barbara Ramiro dfdfe9cac0 MDL-39515 usability: New paypal icon in svg and png formats 2013-05-07 18:13:30 +08:00
Mark Nelson 34e338a458 MDL-39545 mod_assign: prevent notice from displaying when course module id does not exist 2013-05-07 17:31:14 +08:00
Rex Lorenzo b4d33e02c0 MDL-34275 - Use default copyright license when restoring files 2013-05-07 09:09:38 +01:00
Damyon Wiese 670fd5aad4 Merge branch 'MDL-39187_master' of https://github.com/markn86/moodle 2013-05-07 16:09:10 +08:00
Damyon Wiese d285e5e628 Merge branch 'MDL-31713_override' of git://github.com/andyjdavis/moodle 2013-05-07 15:28:17 +08:00
Mark Nelson 63d2081ee7 MDL-39535 grade: only display grade errors once 2013-05-07 15:15:37 +08:00
Jerome Mouneyrac ea29059efa MDL-37552 external_format_text: missing require_once filelib.php (shared credits to Adam Fredericks for report and patch proposal) 2013-05-07 14:55:55 +08:00
Marina Glancy 4c3f33dc0c MDL-39538 use of deprecated function make_categories_list() 2013-05-07 16:15:25 +10:00
Damyon Wiese ef4d3233b6 MDL-38596 coursecatlib performance
Version bump for cache definitions and added user delete check to sql
2013-05-07 14:10:23 +08:00
Damyon Wiese fc075899e0 Merge branch 'wip-MDL-38596-master' of git://github.com/marinaglancy/moodle 2013-05-07 14:09:56 +08:00
Sam Hemelryk e4e8d577cd Merge branch 'wip-MDL-39499-master' of git://github.com/ds125v/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-07 17:11:28 +12:00
Damyon Wiese 98b2443961 Merge branch 'wip-MDL-39482-master' of git://github.com/marinaglancy/moodle 2013-05-07 12:43:50 +08:00
Andrew Davis ea11496d0b MDL-31713 core_grade: added updating of grade min and max to update_final_grade() 2013-05-07 12:21:07 +08:00
Sam Hemelryk d5cdfbc288 Merge branch 'MDL-39364_clean' of git://github.com/lazydaisy/moodle 2013-05-07 16:13:06 +12:00
Damyon Wiese a135128390 Merge branch 'wip-MDL-39130-master' of git://github.com/ds125v/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-07 11:25:35 +08:00
Andrew Davis 59772c066a MDL-31713 core_grade:added a unit test to replicate a raw grade max bug 2013-05-07 11:14:08 +08:00
David Monllao cfcbc34a61 MDL-39478 behat: New constant to detect when the test site is running
Also removing an unused var and method.
2013-05-07 11:12:01 +08:00
Sam Hemelryk 045fe95c63 MDL-39525 cache: fixed purging definitions requiring identifiers 2013-05-07 15:11:33 +12:00
David Monllao fd70acae15 MDL-39437 mod_lesson: Expanding form fieldsets before clicking elements 2013-05-07 11:11:17 +08:00
Rossiani Wijaya 7f8ce0257b MDL-39437 lesson mod: rename add a question page section name to avoid conflict in behat 2013-05-07 11:05:58 +08:00
Damyon Wiese e0fc61f993 Merge branch 'MDL-39162' of git://github.com/totara/openbadges
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-07 10:41:44 +08:00
Frederic Massart b31bd82d60 MDL-38289 condition: Do not fetch profile fields when not logged in 2013-05-07 10:18:53 +08:00
Eloy Lafuente (stronk7) 4d71661e2b Merge branch 'wip-MDL-37500-m25' of git://github.com/samhemelryk/moodle 2013-05-07 03:00:02 +02:00
Mary Evans b4d70ce2e1 MDL-39508 theme_canvas: Fixed dropdown navigation menu in SCORM player view. 2013-05-07 01:58:11 +01:00
Sam Hemelryk 5f5776c1e6 MDL-37500 cache: integration review touchups.
Issues:
1. Fix setType calls
2. Changing from default to all and editing again, default is still selected.
3. Uncheck all options causes error.
4. Doesn't seem to be restricting based upon option.
5. Picked all and got coding error with the database thing.
6. Bad title: https://github.com/samhemelryk/moodle/commit/wip-MDL-37500-m25#L1R157
7. Amend comments - should only be removed once 2.5 is the minimum version for an upgrade.
8. Document the defaultsharing option.

Outcomes:
1. Fixed - copy paste error.
2. Fixed - mforms was applying the default value despite a value being provided. A quirk of elements with array names.
3. Fixed - validation now requires at least one option to be selected.
4. Fixed - issue rose from definitions not being re-parsed. cache/admin.php now reparses the first time a user visits the page.
5. Fixed - better purging of definitions when working with them anonymously. Unit test added.
6. Fixed - new string added and used.
7. Fixed - comments amended.

New issue to address parsing of definitions during upgrade.
New issue to add debugging notice if definition sets only one possible sharing option and that option is user input.
2013-05-07 12:49:12 +12:00
Sam Hemelryk 46e17f04c7 MDL-37500 cache: implemented sharing options and gui 2013-05-07 11:57:37 +12:00
Hugh Davenport 9a2b5e0b4f MDL-35852 Add config option to prevent changes to configexecutable settings 2013-05-07 11:17:05 +12:00
Damyon Wiese 69a0e65c56 MDL-38315 Fix unit tests for module completion 2013-05-06 23:27:40 +08:00
Dan Poltawski 8a414a7950 Merge branch 'MDL-39435-master-int' of git://github.com/FMCorz/moodle 2013-05-06 16:12:28 +01:00
Dan Poltawski e8dfed6b81 MDL-38238 icons: convert to make ie9 compatible 2013-05-06 16:07:51 +01:00
Dan Poltawski 90f44f5cd3 Merge branch 'MDL-38238-master' of git://github.com/barbararamiro/moodle 2013-05-06 16:04:45 +01:00
Eloy Lafuente (stronk7) fc17f75684 Merge branch 'MDL-38041_master-fix' of git://github.com/dmonllao/moodle 2013-05-06 16:50:30 +02:00
Maria Torres f2dc4d24f9 MDL-39169: Now the question's tags are added in backup/restore options 2013-05-06 15:41:56 +01:00
Damyon Wiese 14cd6479de Merge branch 'MDL-38315-master' of git://github.com/sammarshallou/moodle 2013-05-06 22:27:41 +08:00
Damyon Wiese da97cfe35e Merge branch 'MDL-38480_m' of git://github.com/andreabix/moodle 2013-05-06 21:57:19 +08:00
Dan Poltawski c892205617 Merge branch 'MDL-39446' of git://github.com/timhunt/moodle 2013-05-06 14:47:58 +01:00
Dan Poltawski 2da94da7b5 Merge branch 'MDL-39473-master' of git://github.com/sammarshallou/moodle 2013-05-06 14:32:33 +01:00
Dan Poltawski cbd77ed9bb Merge branch 'wip-MDL-39065-master' of git://github.com/marinaglancy/moodle 2013-05-06 13:25:51 +01:00
Dan Poltawski b92830664d Merge branch 'MDL-39491-workshop-media' of git://github.com/mudrd8mz/moodle 2013-05-06 13:11:46 +01:00
Dan Poltawski 845fccfcb6 Merge branch 'MDL-39470_master' of https://github.com/markn86/moodle 2013-05-06 12:39:53 +01:00
Marina Glancy 8a3d804a32 MDL-39520 always include lib file when accessing coursecat class 2013-05-06 21:06:55 +10:00
Damyon Wiese 76640b273d MDL-38443 Assignment: Missing permissions check on downloadall submissions 2013-05-06 10:19:23 +01:00
Dan Poltawski 4736236959 Merge branch 'MDL-39442-copy-addon' of git://github.com/mudrd8mz/moodle
Conflicts:
	admin/tool/installaddon/version.php
2013-05-06 10:00:23 +01:00
Barbara Ramiro 311e117d75 MDL-39514 usability: New award icon - clearer 2013-05-06 15:52:57 +08:00
Damyon Wiese 373a40c5db Merge branch 'MDL-39484-master-int' of git://github.com/FMCorz/moodle 2013-05-06 15:38:24 +08:00
Damyon Wiese 881a90c0bb MDL-39143: Version bump and svgfix for ie9 2013-05-06 15:32:48 +08:00
Damyon Wiese 3b8841dda2 Merge branch 'MDL-39143-master' of git://github.com/barbararamiro/moodle 2013-05-06 15:31:05 +08:00
Damyon Wiese 4017ea2fce Merge branch 'MDL-39445' of git://github.com/timhunt/moodle 2013-05-06 15:15:02 +08:00
Marina Glancy 36ba8fded0 MDL-38596 Added caching to the list of course contacts 2013-05-06 16:57:56 +10:00
Barbara Ramiro a129cc06e8 MDL-39143 usability: New badge icon - monochrome, bigger, clearer 2013-05-06 14:37:04 +08:00
David Monllao 1d9ec4cbc2 MDL-38041 behat: Respect error_reporting() values overwritten by moodle code 2013-05-06 14:12:41 +08:00
Mark Nelson 33bea465bd MDL-39470 cache: added missing component to get_string call 2013-05-06 13:51:00 +08:00
Damyon Wiese 9fbf1dfb6e Merge branch 'MDL-39412' of git://github.com/timhunt/moodle 2013-05-06 12:27:19 +08:00
Yuliya Bozhko f8ba185ac5 MDL-39162: Add badges CSS to bootstrap theme 2013-05-06 16:20:02 +12:00
Damyon Wiese b67eb16a16 MDL-39399: Version bump for css 2013-05-06 12:17:44 +08:00
Marina Glancy 31b0530aa6 MDL-38596 Optimise SQL in preloading course contacts for number of courses 2013-05-06 14:15:22 +10:00
Damyon Wiese 4c2a46e507 Merge branch 'MDL-39399-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-06 12:13:27 +08:00
Marina Glancy 5db8f5a8f4 MDL-39482 avoid using get_category_or_system_context() because file might not be included 2013-05-06 14:06:54 +10:00
Damyon Wiese 80b9793b87 Merge branch 'MDL-39480_badge' of git://github.com/andyjdavis/moodle 2013-05-06 12:00:34 +08:00
Damyon Wiese 516b8c9029 Merge branch 'wip-MDL-38594-master' of git://github.com/marinaglancy/moodle 2013-05-06 11:43:37 +08:00
Frederic Massart cf4cef7d76 MDL-39484 core: Undefined ostype during installation process 2013-05-06 10:06:09 +08:00
AMOS bot c198a6dda9 Automatically generated installer lang files 2013-05-06 00:40:34 +00:00
Eloy Lafuente (stronk7) 081bfdc5ff Merge branch 'MDL-39348_master' of git://github.com/dmonllao/moodle 2013-05-06 01:49:51 +02:00
Eloy Lafuente (stronk7) 07c9a6db96 Merge branch 'MDL-38041_master' of git://github.com/dmonllao/moodle 2013-05-06 01:23:49 +02:00
Dan Poltawski 8f9ae1d5e8 Merge branch 'brokencalc' of git://github.com/andyjdavis/moodle 2013-05-05 11:29:11 +01:00
Andrew Davis 36388ba832 MDL-39480 core_badge: prevented a php notice 2013-05-04 11:58:01 +08:00
Mary Evans 3a61956f66 MDL-39364 theme_clean: remove all references to the Simple theme from Clean theme. 2013-05-04 02:34:44 +01:00
AMOS bot 9ed7ed3d80 Automatically generated installer lang files 2013-05-04 00:40:08 +00:00
David Scotson c57a883080 MDL-39499 bootstrapbase: Make two .singlebuttons line up 2013-05-03 16:28:07 +01:00
Dan Poltawski 1fc7079857 Merge branch 'MDL-39476-master' of git://github.com/damyon/moodle 2013-05-03 16:05:41 +01:00
David Scotson ed88a6f32a MDL-30130 bootstrapbase: Bring back Quiz answer feedback 2013-05-03 15:47:15 +01:00
David Mudrák 6133e6ee76 MDL-39497 Consider workshop scheduled allocator stable 2013-05-03 15:47:03 +02:00
Andrew Nicols 42b53d4650 MDL-39496 Admin: Reduce excessive is_array tests in admin_category
admin_category::category_cache is a protected value which is only ever
treated as an array. We shouldn't need to test that it's an array each time
we use it.
2013-05-03 14:31:28 +01:00
Andrea Bicciolo 088645e22c MDL-29472_m WebServices Cohorts 2013-05-03 12:24:40 +02:00
David Mudrák 55c6c6f153 MDL-39491 Fix order of Workshop submission text processing
The order of format_text() and file_rewrite_pluginfile_urls() is
important to make filters work correctly.
2013-05-03 11:56:44 +02:00
Barbara Ramiro 9c554f7797 MDL-38238 usability: Revised t/lock and t/unlocked icons 2013-05-03 17:11:36 +08:00
Damyon Wiese e1cd72ec72 Merge branch 'MDL-38714_tmp' of git://github.com/rwijaya/moodle 2013-05-03 15:37:57 +08:00
Jerome Mouneyrac 2af34ab005 MDL-31193 display the correct and translated token valid until date 2013-05-03 14:09:34 +08:00
Damyon Wiese 4a4f590eab MDL-39476 Assign: Cleanup old bad data before adding new index 2013-05-03 14:03:29 +08:00
Mark Nelson 34f9862edf MDL-39187 forms: fixed issue where calendar pop-up did not display when a date selector form element was added to a group 2013-05-03 13:01:58 +08:00
Marina Glancy cf230d98a8 MDL-39482 avoid using get_category_or_system_context() because file might not be included 2013-05-03 14:45:23 +10:00
David Monllao b32ca4caf9 MDL-39481 behat: Provide info about init.php 2013-05-03 12:04:42 +08:00
Rajesh Taneja 5e0ab6704a MDL-39332 Formslib: remove z-index from calendar panel
calendar panel.render() sets zIndex to 0, when calendar is used next to filepicker, it overlaps
zIndex should be set by css and not JS, and previously used removeAttr on panel breaks JS on ie8.
So solution is to render panel and then remove z-index from dom
2013-05-03 10:59:46 +08:00
David Monllao 28abad1ab2 MDL-39348 behat: Compatibility with Safari and IE
Also changing from SeleniumDriver checking
to GoutteDriver as is less probably to change
goutte than to change selenium.
2013-05-03 10:43:06 +08:00
David Monllao c59e52f561 MDL-39348 behat: Switching to wait which does not conflict with IE
Also solving bug with DOM ready, timeout
was set to self::TIMEOUT miliseconds not
seconds.
2013-05-03 10:16:44 +08:00
David Monllao 00ea74cb54 MDL-39348 behat: Chaining strings instead of splitting strings in lines 2013-05-03 10:16:44 +08:00
David Monllao 4d40089d88 MDL-39348 behat: Changing to correct activity names 2013-05-03 10:16:44 +08:00
David Monllao e73062c135 MDL-39348 behat: Removing redundant step
This is causing some browsers to fail tests
as they uses the DOM of the current page to
search "You are logged in as".
2013-05-03 10:16:44 +08:00
David Monllao bbd802f7b7 MDL-38041 behat: Also fail tests if there is any other backtrace 2013-05-03 10:05:08 +08:00
David Monllao 90ed22ab70 MDL-38041 behat: Capturing also PHP debug messages 2013-05-03 10:05:08 +08:00
David Monllao 5f4b4e918d MDL-38041 behat: Adding hook
Stops execution when the output contains
an exception, a debugging message or a PHP
debug message.
2013-05-03 10:05:08 +08:00
David Monllao b060de934b MDL-38041 behat: Adding styles to debugging messages
Only when a simulated user session
is running.
2013-05-03 10:05:08 +08:00
Marina Glancy dde6bdf973 MDL-39436 fixing RTL in filemanager 2013-05-03 11:30:33 +10:00
Marina Glancy 89a24463ad MDL-39065 fixed bug with quick jump to category 2013-05-03 11:28:41 +10:00
Marina Glancy 69bbd2a7cd MDL-38594 Core themes changed for the new course listings styles 2013-05-03 11:16:16 +10:00
Marina Glancy d891aaba73 MDL-39318 CSS bug on mouse hover of paging bar in some themes 2013-05-03 11:14:49 +10:00
Tim Hunt 103928da0b MDL-39412 question behaviours: hide manual graded option
The ability to set all your quiz questions to require manual grading is
an interesting possibility, but practically almost useless.

If you set that accidentally, then you are badly stuck. There is no way
to fix it after the students have answered the quiz.

Therefore, we should set the config option to hide that option from the
UI. We do this for all Moodle sites as part of the upgrade, not just for
new installs.

If any admin wants to re-enable this, they can later.
2013-05-02 17:02:46 +01:00
Tim Hunt 6382060daf MDL-39450 course formats: add static cache to get_format_or_default
This function gets called hundreds of times on every page, often with
exactly the same input, so I added a static cache.
2013-05-02 16:38:52 +01:00
Tim Hunt f16d5f979b MDL-39446 calculated qtype: make answer formula input bigger
This makes it easier for teachers editing questions.
2013-05-02 16:37:52 +01:00
Tim Hunt 5f85073525 MDL-39445 get_plugin_list clean_param use is slow
get_plugin_list was calling clean_param($pluginname, PARAM_PLUGIN) a
lot (600+ times per page), and that is much slower than you would guess.
A specific function for this case, (which we then also use from
clean_param) is a performance win.
2013-05-02 16:20:24 +01:00
sam marshall cb86f1ebb3 MDL-39472 MUC: Improve parse_key performance 2013-05-02 16:04:29 +01:00
Colin Chambers 9ff122679a MDL-39290 Collapsible editor tab needs some mouse-over CSS 2013-05-02 16:03:24 +01:00
David Scotson 9c2ec10b27 MDL-39388 bootstrapbase: Add bootstrap tab renderer
This adds a renderer that outputs standard bootstrap HTML for tabs,
deletes styles that were previously required to make Moodle tab HTML
superficially resemble Bootstrap, and tweak the responsive code that
makes tabs stack on phones to account for the change too.
2013-05-02 15:59:53 +01:00
David Scotson ea951c5924 MDL-38979 Add lang menu to empty custommenu
Show custom menu even when no custom menu items if lang menu needs
to be shown.
2013-05-02 15:01:08 +01:00
Dan Poltawski 95190fda69 on demand release 2.5beta+ 2013-05-02 14:34:48 +01:00
Dan Poltawski b741e1c186 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-05-02 14:32:03 +01:00
David Mudrák ed70c74be5 MDL-39442 Do not use native rename() when moving folders
The native rename() function does not support moving folders
cross-device. See https://bugs.php.net/bug.php?id=54097 for details. So
instead of trying to move the whole tree, the new installer's method
moves files recursively one by one.

This is consistent with what mdeploy.php already does.
2013-05-02 13:58:43 +02:00
Damyon Wiese e7c5ee5102 Merge branch 'MDL-30775-master' of git://github.com/mouneyrac/moodle
Conflicts:
	course/externallib.php
2013-05-02 16:20:30 +08:00
Damyon Wiese f6aa750eee MDL-36223 Assign: User outline report grade display
Use str_long_grade for user outline report because it handles scales and
no grade.

Thanks to Jean-Daniel Descoteaux for suggesting this fix.
2013-05-02 15:42:58 +08:00
Rossiani Wijaya 343a48256a MDL-38717: Lesson mod: fixed behat script to accomodate the fix of settype() 2013-05-02 15:26:35 +08:00
Damyon Wiese b99122155c Merge branch 'MDL-39401' of git://github.com/rwijaya/moodle 2013-05-02 14:50:49 +08:00
Damyon Wiese 9c898f682a Merge branch 'MDL-39207_master' of git://github.com/totara/openbadges 2013-05-02 14:44:20 +08:00
Rossiani Wijaya 2213893766 MDL-39401 portfolio: fixed setType() warnings in box.net and flickr portfolios 2013-05-02 14:20:03 +08:00
Damyon Wiese f85fba3eeb Merge branch 'MDL-39355-m-2' of git://github.com/andrewnicols/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-02 13:54:59 +08:00
Damyon Wiese c9c01f75b1 MDL-39077 maxbytes - fix warnings for cli install 2013-05-02 12:11:08 +08:00
Yuliya Bozhko 265b866fe5 MDL-39207 badges: Generate badge assertions using user's backpack email if it is set 2013-05-02 16:05:11 +12:00
Eloy Lafuente (stronk7) e7ff753cab Merge branch 'wip-MDL-39432-m25-i' of git://github.com/samhemelryk/moodle 2013-05-02 03:33:35 +02:00
Andrew Davis 459843d495 MDL-32913 core_grade:made it more obvious when the gradebook is broken due to a broken calculation 2013-05-02 09:03:02 +08:00
AMOS bot fdb2851204 Automatically generated installer lang files 2013-05-02 00:38:12 +00:00
Andrew Nicols 323aa3248c MDL-39355: Correct the z-index for moodle-dialogue 2013-05-01 18:34:04 +01:00
Dan Poltawski d773056669 Merge branch 'MDL-39367-master-int' of git://github.com/FMCorz/moodle 2013-05-01 17:32:09 +01:00
Eloy Lafuente (stronk7) ea7f9109d5 MDL-39434 Bump main version to observe all deps 2013-05-01 18:04:58 +02:00
Eloy Lafuente (stronk7) cedb0aab5a MDL-39434 Bump all versions near 2.5 release 2013-05-01 18:03:29 +02:00
sam marshall 7593df0a55 MDL-39452 Library: html_writer::attribute unnecessary is_array check 2013-05-01 17:00:52 +01:00
Eloy Lafuente (stronk7) 2f679b426a Merge branch 'MDL-39444' of git://github.com/timhunt/moodle 2013-05-01 16:55:36 +02:00
sam marshall c797c995a0 MDL-39448 MUC: Memcache configurable key names 2013-05-01 14:29:11 +01:00
Damyon Wiese 367b977d4d MDL-39077 max_files does not include current option when it is non-standard
Non-standard means php.ini was set to something not in the default list (like 7MB),
then the config was saved to that specific value, and now the value in php.ini has been changed
again so 7MB does not appear in the list.
2013-05-01 12:40:57 +01:00
sam marshall a9f5fc158c MDL-38315 Completion: Bugs with 'locked' status in activity form 2013-05-01 11:57:29 +01:00
Tim Hunt 296daf41c7 MDL-39444 get_string: remove unnecessary clean_param
This clean_param was added as part of MDL-22015. It is a good idea when
developer debug is turned on, but it showed up as a surprisingly
expensive cost in our profiling.

This change:

1. Removes the check during string_extist. This will not change
behaviour, the method returns false if the string does not exist.

2. In get_string, it only does the check if debugging is set to
DEVELOPER level.
2013-05-01 10:16:37 +01:00
Dan Poltawski 5f5843f84b Merge branch 'w17_MDL-39402_m25_themedep' of git://github.com/skodak/moodle 2013-05-01 09:53:18 +01:00
Petr Škoda a824d7d4ac MDL-39402 fix wrong binarius dependency
Credit goes to Frédéric Massart, thanks.
2013-05-01 10:36:30 +02:00
Frederic Massart f23d95ef84 MDL-38500 repository: Instance names must be unique 2013-05-01 16:11:44 +08:00
Dan Poltawski 142fa8c75d Merge branch 'MDL-39438_master' of git://github.com/dmonllao/moodle 2013-05-01 08:32:30 +01:00
Sam Hemelryk 15f89e2872 MDL-39422 course: converted closures to fix eAccelerator issues 2013-05-01 18:43:27 +12:00
Dan Poltawski dd4a197e0f MDL-39207 badges: don't use curl version depedent constant
It seems that CURLOPT_CONNECTTIMEOUT_MS is depdendent on the version
of curl compiled against. We don't need milliseconds here anyway, so
switch to the seconds value.
2013-05-01 07:21:58 +01:00
David Monllao 5bc7cd922b MDL-39438 behat: Updating tests
According to MDL-38415 changes.
2013-05-01 13:39:06 +08:00
Rossiani Wijaya 747d5b1cf6 MDL-38714 Lesson module: add setType for hidden and text inputs 2013-05-01 11:39:31 +08:00
Damyon Wiese 25927c42ce MDL-39312 Cache lock plugins - fix undefined var and language typo 2013-05-01 10:51:32 +08:00
Frederic Massart 4a02b4312a MDL-39435 feedback: Fix missing calls to setType 2013-05-01 10:36:23 +08:00
Damyon Wiese a6b274b232 Merge branch 'wip-MDL-39312-m25' of git://github.com/samhemelryk/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-05-01 10:04:50 +08:00
AMOS bot f4711cd2f5 Automatically generated installer lang files 2013-05-01 00:39:23 +00:00
Eloy Lafuente (stronk7) bee592add8 Merge branch 'wip-MDL-39216-m25' of git://github.com/samhemelryk/moodle 2013-05-01 02:29:36 +02:00
Sam Hemelryk a697000b53 MDL-39216 url: included test for empty string param 2013-05-01 12:27:36 +12:00
Eloy Lafuente (stronk7) 6fc4895276 Merge branch 'wip-MDL-39432-m25' of git://github.com/samhemelryk/moodle 2013-05-01 01:33:18 +02:00
Sam Hemelryk d25103c4ef Merge branch 'MDL-39422-master' of git://github.com/danpoltawski/moodle
Conflicts:
	mod/wiki/mod_form.php
2013-05-01 11:15:24 +12:00
Sam Hemelryk eb426f2480 Merge branch 'wip-MDL-39099_master' of git://github.com/gjb2048/moodle 2013-05-01 11:05:05 +12:00
Sam Hemelryk bcd4bf0343 Merge branch 'MDL-39414-master' of git://github.com/danpoltawski/moodle 2013-05-01 11:02:25 +12:00
Eloy Lafuente (stronk7) 6a222aa127 Merge branch 'MDL-39232_master' of git://github.com/dmonllao/moodle 2013-05-01 00:47:32 +02:00
Sam Hemelryk 91a8b40427 MDL-39432 course: converted closures to lambda functions 2013-05-01 10:41:00 +12:00
Sam Hemelryk fdba83df89 Merge branch 'MDL-39355-m-2' of git://github.com/andrewnicols/moodle 2013-05-01 10:24:13 +12:00
Sam Hemelryk 48fce3678d Merge branch 'MDL-36060-master' of git://github.com/danpoltawski/moodle 2013-05-01 10:14:28 +12:00
Mark Nielsen d81a603ee2 MDL-36060: Remove anonymous functions in mod/lti
This was breaking eaccelerator because it doesn't
support anonymous functions.
2013-04-30 17:50:07 +01:00
Dan Poltawski a74cd33160 MDL-39422 mod_forms: prevent long coruse module names
To prevent ugly DB errors.
2013-04-30 17:41:36 +01:00
Dan Poltawski 4fb3df32ac MDL-39422 course: prevent module names longer 255 chars
To prevent ugly DB errors.
2013-04-30 17:21:15 +01:00
Gareth J Barnard 3f435f899d MDL-39099 course_format: Allow section_summary() to be overridden. 2013-04-30 16:56:55 +01:00
Dan Poltawski fb92d5ef57 Merge branch 'MDL-39270-master-int' of git://github.com/FMCorz/moodle 2013-04-30 16:13:48 +01:00
Dan Poltawski 21a6714fc9 Merge branch 'MDL-39265-master-int' of git://github.com/FMCorz/moodle 2013-04-30 15:49:41 +01:00
Dan Poltawski 1af49024a5 Merge branch 'MDL-39207_master' of git://github.com/totara/openbadges 2013-04-30 14:42:44 +01:00
Dan Poltawski 2e521b3d56 Merge branch 'MDL-39368-master-int' of git://github.com/FMCorz/moodle 2013-04-30 14:35:28 +01:00
Dan Poltawski 24fa63f415 Merge branch 'w17_MDL-39343_m25_installupgrade' of git://github.com/skodak/moodle 2013-04-30 14:11:34 +01:00
Dan Poltawski 4410509d0b Merge branch 'MDL-35385_chat' of git://github.com/andyjdavis/moodle 2013-04-30 14:07:55 +01:00
Petr Škoda 2cc9fa88f6 MDL-39343 disables MUC caches in phpunit and behat install/drop 2013-04-30 15:05:53 +02:00
Dan Poltawski 0542fdc6b4 Merge branch 'w17_MDL-39343_m25_installupgrade' of git://github.com/skodak/moodle 2013-04-30 13:37:52 +01:00
Dan Poltawski bcf615af6c MDL-39414 portfolio: don't queue google portfolio exports
This is a bit of an ugly way of saying 'I dont support queued exports'.

The google plugins need a valid user session in order to export to the
google services, thereforce we are forcing the export to be interactive
and not queued through cron, as this wont work in the current
implmenetation.

It's possible we could add offline access to the plugins, but I don't
believe it is worth the benefit for the additional complexity.
2013-04-30 10:16:01 +01:00
Dan Poltawski 8926c9fbcd Merge branch 'w17_MDL-39402_m25_themedep' of git://github.com/skodak/moodle 2013-04-30 09:57:29 +01:00
Petr Škoda e2e35e71f9 MDL-39343 disable all caching in install and upgrades
This should resolve all problem on developer machines when switching branches or when restoring previous Moodle databases. It also prevents any potential problems during upgrades such as concurrent DB modification and resolves chicken egg problems in future caching upgrades.
2013-04-30 10:27:34 +02:00
Damyon Wiese b587727065 MDL-39354 Theme - Keep base and bootstrapbase in-sync
Add 7px margin-right to checkboxes and radio buttons
2013-04-30 16:24:14 +08:00
Damyon Wiese 89dc06570d Merge branch 'MDL-39354' of git://github.com/timhunt/moodle 2013-04-30 16:24:07 +08:00
Dan Poltawski f8a14f7bcc Merge branch 'MDL-39405-master-int' of git://github.com/FMCorz/moodle 2013-04-30 09:16:31 +01:00
Frederic Massart 9b108a8606 MDL-39265 feedback: Language string improvements
AMOS BEGIN
 MOV [multiple_submit,mod_feedback],[multiplesubmit,mod_feedback]
 MOV [emailnotification_help,mod_feedback],[email_notification_help,mod_feedback]
AMOS END
2013-04-30 15:58:44 +08:00
Dan Poltawski 0174ada56c Merge branch 'w17_MDL-39292_m25_enrolicons' of git://github.com/skodak/moodle 2013-04-30 08:52:49 +01:00
Damyon Wiese 34e46d7556 Merge branch 'mdl-39335' of git://github.com/vostreltsov/moodle 2013-04-30 15:51:12 +08:00
Andrew Nicols b72d78d847 MDL-39355: Set tooltip zindex for bootstrap theme 2013-04-30 08:45:53 +01:00
Dan Poltawski 7a286a0d6d Merge branch 'MDL-39415-master' of git://github.com/damyon/moodle 2013-04-30 08:34:16 +01:00
Dan Poltawski e0b3f5f235 Merge branch 'w17_MDL-39077_m25_sizes' of git://github.com/skodak/moodle 2013-04-30 08:24:31 +01:00
Damyon Wiese 59d003497c Merge branch 'MDL-39351' of git://github.com/timhunt/moodle 2013-04-30 14:13:25 +08:00
Jerome Mouneyrac 9f3cc17d8f MDL-30775 get_course_contents: remove warnings when the section is empty 2013-04-30 14:06:44 +08:00
Damyon Wiese a10c057b8e Merge branch 'MDL-39322-master' of https://github.com/mackensen/moodle 2013-04-30 14:06:42 +08:00
Frederic Massart 7ce746f7cf MDL-39405 wiki: Reformat forms for better usability 2013-04-30 14:05:54 +08:00
Damyon Wiese 767421c36c Merge branch 'MDL-37966' of git://github.com/jonof/moodle 2013-04-30 12:26:47 +08:00
Sam Hemelryk acf49f4b9a MDL-39312 cache: interfaces for managing lock instances.
Bug: There was no way to create an instance of a lock plugin for use
within Moodle.
Solution: Implemented management interfaces as part of cache/admin.php
to allow for instances to be added and deleted.
This was done in along the same lines of adding store instances.
2013-04-30 16:26:34 +12:00
Damyon Wiese 4969053f25 Merge branch 'MDL-39246' of git://github.com/timhunt/moodle 2013-04-30 12:02:36 +08:00
David Monllao 550d842e3c MDL-39232 behat Normalize feature tags according to component names 2013-04-30 11:54:47 +08:00
David Monllao 9b1dbe16db MDL-39232 behat: Adding @_only_local tag
Tests which requires files to be uploaded should
be tagged as @_only_local.
2013-04-30 11:54:47 +08:00
Damyon Wiese 18de52db64 MDL-39415 Assign: Fix error on saving settings
When alwaysshowdescription checkbox is unchecked the form cant be saved.

This is a regression from when the element was changed from a
selectyesno to a checkbox.
2013-04-30 11:44:22 +08:00
Damyon Wiese de079cffbf Merge branch 'wip_MDL_39230_2_5' of http://github.com/jamiepratt/moodle.git 2013-04-30 11:39:56 +08:00
Jamie Pratt 397acdfda2 MDL-39230 Question bank - refactor xml import
Allow for reuse of code to read xml questions.
2013-04-30 11:38:26 +08:00
Andrew Davis dc514c1a0b MDL-35385 mod_chat: made sure no message popups display within the chat window 2013-04-30 09:01:00 +08:00
Frederic Massart 09faedd129 MDL-39265 feedback: Reformat module settings form 2013-04-30 08:33:20 +08:00
Sam Hemelryk 5c8f681713 MDL-39216 url: moodle_url now handles empty param values properly 2013-04-30 11:09:47 +12:00
Sam Hemelryk 45d9752205 MDL-39216 url: updated tests to show desired outcome 2013-04-30 11:09:47 +12:00
Sam Hemelryk 616396a6cf MDL-39216 url: new moodle_url tests for valueless params 2013-04-30 11:09:47 +12:00
Sam Hemelryk d36cc73edb Merge branch 'w17_MDL-39386_m25_enroldocs' of git://github.com/skodak/moodle 2013-04-30 11:00:06 +12:00
Sam Hemelryk 2a03b6dafe Merge branch 'MDL-39366-master-int' of git://github.com/FMCorz/moodle 2013-04-30 10:38:38 +12:00
Sam Hemelryk 0f540591df Merge branch 'MDL-39303_master' of https://github.com/markn86/moodle 2013-04-30 10:08:20 +12:00
Sam Hemelryk 3e9406bc17 Merge branch 'MDL-38896_master' of git://github.com/lazydaisy/moodle 2013-04-30 09:57:00 +12:00
Sam Hemelryk e76a515f31 Merge branch 'MDL-39377' of git://github.com/colchambers/moodle 2013-04-30 09:48:18 +12:00
Sam Hemelryk a91f5ccb86 Merge branch 'MDL-39365-master' of git://github.com/ankitagarwal/moodle 2013-04-30 09:36:50 +12:00
Sam Hemelryk 8e8a39aea0 Merge branch 'MDL-39398-master' of git://github.com/FMCorz/moodle 2013-04-30 09:31:54 +12:00
Tim Hunt 42d8287083 MDL-39354 put back a bit of margin on checkboxes. 2013-04-29 19:13:13 +01:00
Dan Poltawski a10393e19f Merge branch 'MDL-39378' of git://github.com/timhunt/moodle 2013-04-29 17:00:53 +01:00
Dan Poltawski d727e9d66a Revert "MDL-39278 - test change to less which is ungenerated"
This reverts commit 0da03bf4e2.
2013-04-29 14:33:07 +01:00
Dan Poltawski 0da03bf4e2 MDL-39278 - test change to less which is ungenerated
My sincere apologies for polluting the history this way, but this
is the best way we can be sure.

TO BE CLEAR: this commit will shorlty be reverted.
2013-04-29 14:23:51 +01:00
Dan Poltawski 4eaa353245 Merge branch 'MDL-39158-master' of git://github.com/damyon/moodle 2013-04-29 14:20:39 +01:00
Dan Poltawski e947caf4a1 Merge branch 'MDL-39389' of git://github.com/stronk7/moodle 2013-04-29 14:15:23 +01:00
Dan Poltawski 1f65889ab3 Merge branch 'MDL-39390' of git://github.com/stronk7/moodle 2013-04-29 14:12:37 +01:00
Frederic Massart b0b79f8ab2 MDL-39368 url: Remove advanced parameters from settings form 2013-04-29 19:27:53 +08:00
Frederic Massart 9cf26d0890 MDL-39368 url: Renaming sections of the settings form 2013-04-29 19:27:47 +08:00
Frederic Massart 99433e4d6d MDL-39398 message: Prevent notice when sending Jabber messages
Not tracking the presence prevents a notice to be displayed during disconnect(),
where the the jabber server attempts to subscribe to $CFG->jabberusername presence.
As the server name does not include a resource identifier (stillwit@jabber.org/resource),
an explode('/') fails.
2013-04-29 19:14:12 +08:00
Dan Poltawski fcb6d4aac8 Merge branch 'MDL-27071' of git://github.com/stronk7/moodle 2013-04-29 10:27:29 +01:00
Ankit Agarwal d8d0b8b390 MDL-39363 scorm: Accept 0 as a valid score 2013-04-29 16:53:15 +08:00
Damyon Wiese 883e6a77ce Merge branch 'w17_MDL-39356_m25_cacert' of git://github.com/skodak/moodle 2013-04-29 16:05:08 +08:00
Damyon Wiese 9b77b2011d Merge branch 'MDL-39342' of git://github.com/timhunt/moodle 2013-04-29 15:35:40 +08:00
Petr Škoda 51a230af6a MDL-39402 add missing theme dependencies 2013-04-29 09:20:57 +02:00
Damyon Wiese b38218cfb0 Merge branch 'w17_MDL-39371_m25_cleandep' of git://github.com/skodak/moodle 2013-04-29 14:52:40 +08:00
Mark Nelson 34e2987118 MDL-39303 mod_forum: prevent user from submitting when post threshold reached 2013-04-29 14:44:04 +08:00
Damyon Wiese b7098909c1 Merge branch 'MDL-38807-master' of git://github.com/danpoltawski/moodle 2013-04-29 14:17:53 +08:00
Damyon Wiese ea03f1149e Merge branch 'MDL-30940-master' of git://github.com/FMCorz/moodle 2013-04-29 14:03:34 +08:00
Ankit Agarwal 325c730ba1 MDL-39365 scorm reports: Return correct track count 2013-04-29 13:26:09 +08:00
Damyon Wiese bc5775b0ea Merge branch 'MDL-39362' of git://github.com/rwijaya/moodle 2013-04-29 13:00:19 +08:00
Frederic Massart a0d8b5114e MDL-39399 theme: RTL styles for collapse/expand in forms 2013-04-29 12:40:42 +08:00
Damyon Wiese c59a99df30 Merge branch 'w17_MDL-39174_m25_themedocs' of git://github.com/skodak/moodle 2013-04-29 12:22:23 +08:00
Frederic Massart 97d2a5dd66 MDL-39399 theme: Missing expand/collapse icon in clean 2013-04-29 12:02:09 +08:00
Rossiani Wijaya c71d9297a6 MDL-39362 Admin: fixed setType() error for networking 2013-04-29 11:59:48 +08:00
Damyon Wiese dd1ab4ae9a Merge branch 'MDL-37845' of git://github.com/timhunt/moodle 2013-04-29 11:45:05 +08:00
Frederic Massart b5472cb856 MDL-39367 resource: An admin cannot decide which settings are advanced 2013-04-29 11:10:38 +08:00
Damyon Wiese 50cc49ba04 Merge branch 'MDL-38440-master' of git://github.com/mouneyrac/moodle 2013-04-29 11:01:57 +08:00
Sam Hemelryk e6cf0a866b Merge branch 'w17_MDL-39387_m25_authdocs' of git://github.com/skodak/moodle 2013-04-29 15:00:59 +12:00
Frederic Massart f7224e6027 MDL-39367 resource: Reformat resource settings page 2013-04-29 10:58:29 +08:00
Damyon Wiese bd45c1aa47 Merge branch 'MDL-36024-master' of https://github.com/mackensen/moodle 2013-04-29 10:45:55 +08:00
Eloy Lafuente (stronk7) 20c9916396 MDL-27071 Allow Oracle IN() to use > 1000 items
By using a pivoting strategy, we modify the list
of params (QM and NAMED supported) into a
subquery, so the 1000 limit in Oracle (ORA-01795)
is not thrown anymore.
2013-04-29 01:22:38 +02:00
Sam Hemelryk 0c5d8ccb9a Merge branch 'w17_MDL-39336_m25_install' of git://github.com/skodak/moodle 2013-04-29 11:15:05 +12:00
Eloy Lafuente (stronk7) 9b2ebc4587 MDL-27071 Add big IN() unit tests
Let's verify how all databases perform with a big
number of parameters (10000) using IN() SQL clauses.
Both using QM and NAMED parameters.

Ideally only Oracle fails, and only it will need fixing.
2013-04-29 01:11:10 +02:00
Sam Hemelryk 036b18a297 Merge branch 'MDL-39355-m' of git://github.com/andrewnicols/moodle 2013-04-29 11:07:26 +12:00
Sam Hemelryk 5745360915 Merge branch 'MDL-39192_master' of https://github.com/markn86/moodle 2013-04-29 10:54:07 +12:00
Sam Hemelryk 1517981b38 Merge branch 'wip-MDL-39298-master' of git://github.com/abgreeve/moodle 2013-04-29 10:45:33 +12:00
Yuliya Bozhko 7e06ea6ab4 MDL-39207 badges: Generate badge assertions using user's backpack email if it is set 2013-04-29 10:15:30 +12:00
Petr Škoda c2140b5d95 MDL-39356 add ca certificate bundles for cURL
This is necessary because PHP in Windows does not have any certificates and some *nix systems have outdated or missing ca bundles too.

The order is:
1/ dataroot/moodleorgca.crt always wins - needs to be added manually by admin
2/ php.ini setting "curl.cainfo" is next
3/ on Windows libdir/cacert.pem is used because it does not have any default cert bundles
4/ system default is the last - the previous value, ok for properly configured *nix systems
2013-04-28 20:58:58 +02:00
Eloy Lafuente (stronk7) bae2846c2c MDL-39390 delete old moodle_database column cache
With MDL-39389 all the remaining drivers have been moved
from the in-memory, per-request ::columns cache to
the MUC (databasemeta) alternative.

That makes the old cache unused, so this is, simply about to
delete it, and warn in upgrade notes for potential sites
using custom moodle_database drivers.
2013-04-28 18:33:33 +02:00
Eloy Lafuente (stronk7) f33d4784fe MDL-39389 add databasemeta cache to pdo_sqlite
Done in a separate commit, coz this driver is not
truly supported, but considering it as a reference
for people developing drivers... it's better to
have it supporting the databasemeta cache.
2013-04-28 18:14:17 +02:00
Eloy Lafuente (stronk7) 9043466103 MDL-39389 add databasemeta cache to ms/oci drivers 2013-04-28 18:12:38 +02:00
Petr Škoda f869cb2326 MDL-39077 add more unit tests for get_max_upload_sizes() 2013-04-27 16:08:15 +02:00
Petr Škoda 5520fc9526 MDL-39077 fix regression in previous commit, the limit should be always included in maxbytes 2013-04-27 16:00:59 +02:00
Damyon Wiese 7adfadc6b8 MDL-39077 get_max_upload_sizes always include option for 0
Always include an option for 0 in the list of bytes even if sitebytes is not set.
2013-04-27 15:54:41 +02:00
Petr Škoda aa95e38a0d MDL-39371 add dependency of clean theme on bootstrapbase 2013-04-27 15:27:29 +02:00
Petr Škoda 60d7078adf MDL-39387 normalise MOODLE_INTERNAL 2013-04-27 15:09:05 +02:00
Petr Škoda a2f10958ff MDL-39387 fix /auth phpdocs 2013-04-27 15:06:40 +02:00
Petr Škoda 31ac2aef26 MDL-39386 fix phpdocs packages in enrol 2013-04-27 13:41:32 +02:00
Petr Škoda 574909efce MDL-39174 fix phpdocs packages in themes 2013-04-27 13:22:59 +02:00
Petr Škoda 8ef3d51470 MDL-39292 use consistent iconsmall in enrol instances UI 2013-04-27 12:28:54 +02:00
Mary Evans 07403fdaf4 MDL-39364 theme_clean: Changed 'simple' to 'clean'. 2013-04-26 22:18:26 +01:00
Petr Škoda 45951bbe7c MDL-39336 fix incorrect use on join() in simple theme 2013-04-26 21:33:15 +02:00
Petr Škoda ca5d6066a7 MDL-39336 some themes may use $SITE->shortname in page layout before installation finishes 2013-04-26 21:33:15 +02:00
Petr Škoda ec3ce3a97d MDL-39336 do not print debug output before finishing installation 2013-04-26 21:33:15 +02:00
Tim Hunt 328ac3069b MDL-39378 Improve s() performance.
These changes give about a 10% speed-up in this function. The significant changes are:
1. Simplify the if logic to remove unnecssary cases.
2. Dont pass default argument values to htmlspecialchars, just using the
   defaults is faster.
3. I can confirm that /i regex is faster than the equivalent regex without the i.

I also added more unit tests to test the edge cases.
2013-04-26 18:49:25 +01:00
Tim Hunt 0c6f9e759b MDL-39378 s(): fix bad hex regex 2013-04-26 18:38:29 +01:00
Colin Chambers 6cd22f42ca MDL-39377 Increase padding for grouped field labels in question types 2013-04-26 14:55:11 +01:00
Mary Evans 310845b92d MDL-38896 theme_bootstrapbase: Abbreviated weekdays in calendar/renderer.php + added @media css rule for calendar view. 2013-04-26 14:01:52 +01:00
Valeriy Streltsov 1977123ea5 MDL-39335: add an ord() unicode analog to textlib. 2013-04-26 12:12:03 +00:00
Charles Fulton 628e9b2011 MDL-39322 users: report correct auth method for site administrators 2013-04-26 05:11:28 -07:00
Charles Fulton ef8a733aa6 MDL-36024 enrol: enable grade recovery for all enrol plugins 2013-04-26 05:08:23 -07:00
Tim Hunt a72e05ce9c MDL-39351 collapsed editor had grey bars above and below. 2013-04-26 11:55:56 +01:00
Tim Hunt cbe0a1f60a MDL-39342 stop users entering too long matching answers.
Since they lead to an ugly DB error.
2013-04-26 11:55:38 +01:00
Tim Hunt a35ce08493 MDL-39246 quiz timer: compute a more accurate stop time. 2013-04-26 11:55:18 +01:00
Tim Hunt 15dedb1168 MDL-39246 JavaScript: store the time the page starts loading.
This helps synchronise time on the client side with time on the server.
If you wait until a js_init_call runs, you might have had to wait an
unknown number of seconds while all the JS loads. Therefore, we capture
the current time as soon as possible in <head>.

This is a bit like adding .jsenabled to <body> as soon as possible, to
reduce visual flicker.
2013-04-26 11:55:17 +01:00
Tim Hunt 9994233477 MDL-37845 multichoice qtype: Fix some display issues.
1. Better handling of multi-line choices in the correct answer display.
2. Remove dangerous CSS that is no longer needed.
2013-04-26 11:53:20 +01:00
Dan Poltawski cf5a3296c4 on demand release 2.5beta+ 2013-04-26 10:38:16 +01:00
Dan Poltawski bd7ed905d5 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-04-26 10:37:15 +01:00
Eloy Lafuente (stronk7) 88bcc5fabe MDL-39278 rebuild moodle.css with everything in place 2013-04-26 11:13:09 +02:00
Eloy Lafuente (stronk7) a86103e09b Merge branch 'MDL-39278-master' of git://github.com/damyon/moodle
Conflicts:
	theme/bootstrap/style/generated.css
	theme/bootstrap/style/moodle.css
	theme/bootstrapbase/less/moodle/recess.txt
	theme/bootstrapbase/style/generated.css
2013-04-26 11:10:09 +02:00
Dan Poltawski 1c97061a35 MDL-39341 boostrapbase: fix some missing renames 2013-04-26 09:54:21 +01:00
Dan Poltawski 5df8fc6744 Merge branch 'MDL-39341-master' of git://github.com/damyon/moodle 2013-04-26 09:52:44 +01:00
Eloy Lafuente (stronk7) e4a7816155 Merge branch 'MDL-38888-master' of git://github.com/mouneyrac/moodle 2013-04-26 10:48:38 +02:00
Jerome Mouneyrac 3fb83b41a5 MDL-38888 Publish forms display setType warning 2013-04-26 16:45:00 +08:00
Jerome Mouneyrac 487bc1b627 MDL-38440 WebService get_contents doesn't return the full text of labels 2013-04-26 15:13:03 +08:00
David Scotson 3161400447 MDL-39158 Increase form label width on wider screens 2013-04-26 13:50:04 +08:00
Frederic Massart b9e6341579 MDL-39366 book: Section appearance in book module settings 2013-04-26 13:42:19 +08:00
Damyon Wiese 4f1008202d MDL-39341 Themes Rename bootstrap to bootstrapbase 2013-04-26 13:01:06 +08:00
Damyon Wiese 64bfea3b0e Merge branch 'MDL-38833_settype' of git://github.com/andyjdavis/moodle 2013-04-26 11:55:30 +08:00
Damyon Wiese 36f33e3c2c MDL-39278 Bootstrap - Change generated.css to moodle.css
The filename generated.css comes from moodle.less - so this is more obvious.
2013-04-26 11:38:43 +08:00
Frederic Massart d756d3fbcd MDL-39270 lesson: Reformat module settings form 2013-04-26 10:28:52 +08:00
Andrew Davis 15b0930288 MDL-38833 core_grade: added a set_type for finalgrade 2013-04-26 09:58:40 +08:00
Damyon Wiese 44ed2fe740 Merge branch 'MDL-39250_clean_master' of git://github.com/lazydaisy/moodle 2013-04-26 09:15:14 +08:00
Eloy Lafuente (stronk7) 29b8b7e11a Merge branch 'MDL-39358-standard-clean' of git://github.com/mudrd8mz/moodle 2013-04-25 23:50:08 +02:00
David Mudrák e18597fa15 MDL-39358 Mark the new theme_clean as a standard plugin 2013-04-25 22:23:58 +02:00
Andrew Nicols c966422e82 MDL-39355 JavaScript: Correct zIndex for tooltip 2013-04-25 17:05:07 +01:00
Dan Poltawski 75358cf3c5 Merge branch 'wip-MDL-39305-master' of git://github.com/marinaglancy/moodle 2013-04-25 14:53:18 +01:00
Dan Poltawski 6cb94fd13b Merge branch 'MDL-38889-master' of git://github.com/mouneyrac/moodle 2013-04-25 13:06:52 +01:00
Dan Poltawski 68265ee2d6 Merge branch 'MDL-34403' of https://github.com/mpetrowi/moodle 2013-04-25 12:49:38 +01:00
Jerome Mouneyrac fea8be4203 MDL-37988 Completion reports: Table header row not in thead section 2013-04-25 12:37:53 +01:00
Dan Poltawski 78129ff0be Merge branch 'MDL-29258_master' of git://github.com/dmonllao/moodle 2013-04-25 10:19:45 +01:00
Dan Poltawski 0722742b63 Merge branch 'MDL-39329-master' of git://github.com/FMCorz/moodle 2013-04-25 10:09:52 +01:00
Mary Evans b0ba8d9843 MDL-39250 theme_clean: Removed 2 instances of id="region-pre" from aside tags in layout/general.php. 2013-04-25 03:13:53 +01:00
AMOS bot 606e312ce4 Automatically generated installer lang files 2013-04-25 00:38:05 +00:00
Eloy Lafuente (stronk7) 5f8a42728f on demand release 2.5beta+ 2013-04-25 01:07:27 +02:00
Eloy Lafuente (stronk7) 344c04e0ff Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-04-25 01:02:41 +02:00
Eloy Lafuente (stronk7) e9f9bb7532 MDL-39276 theme_clean: Move favicon from old simple 2013-04-25 00:28:30 +02:00
Eloy Lafuente (stronk7) ac8b3d845e Merge branch 'MDL-39276_clean' of git://github.com/lazydaisy/moodle 2013-04-25 00:27:03 +02:00
Eloy Lafuente (stronk7) e4083853c4 MDL-39138 theme_bootstrap: whitespace line 2013-04-25 00:01:32 +02:00
Eloy Lafuente (stronk7) 4017b1f76a Merge branch 'wip-MDL-39138-master' of git://github.com/ds125v/moodle
Conflicts:
	theme/bootstrap/style/generated.css
2013-04-25 00:00:23 +02:00
Eloy Lafuente (stronk7) 274511f0cb Merge branch 'MDL-35364' of git://github.com/timhunt/moodle 2013-04-24 23:35:46 +02:00
Mary Evans 109cdf6bd8 MDL-39276 theme_clean: Renamed Simple theme to Clean theme. 2013-04-24 21:35:15 +01:00
Matt Petro f5f3658480 MDL-34403 mod quiz: fix error during enrolment 2013-04-24 15:00:06 -04:00
Dan Poltawski ba26ed9cac Merge branch 'MDL-39283' of git://github.com/jmvedrine/moodle 2013-04-24 14:33:00 +01:00
David Scotson 68ce389682 MDL-39138 theme_bootstrap: Revert Settings/Nav styles 2013-04-24 14:01:34 +01:00
Dan Poltawski 088c2616ec Merge branch 'wip-MDL-39297-master' of git://github.com/marinaglancy/moodle 2013-04-24 11:47:08 +01:00
Dan Poltawski a461c6d444 Merge branch 'MDL-38415-master' of git://github.com/FMCorz/moodle 2013-04-24 11:39:08 +01:00
Dan Poltawski f1b0908b8a MDL-38597 forum: fix incompetent programmer error ;-)
Shameful, Fred!
2013-04-24 10:02:41 +01:00
Dan Poltawski 6f0fdc9bb2 Merge branch 'MDL-38597-master-int' of git://github.com/FMCorz/moodle 2013-04-24 09:57:22 +01:00
Dan Poltawski c1ae8606bd Merge branch 'MDL-38572-master' of git://github.com/FMCorz/moodle 2013-04-24 09:53:25 +01:00
Damyon Wiese de17527022 MDL-32946: Be consistent with use of alt/title.
Re: Block dock/undock links.
2013-04-24 16:10:43 +08:00
Damyon Wiese 11b6045b09 Merge branch 'wip-MDL-32946-master' of git://github.com/phalacee/moodle 2013-04-24 16:10:30 +08:00
Dan Poltawski 9da8c53295 Merge branch 'MDL-39219_scorm_ie7' of git://github.com/davosmith/moodle 2013-04-24 09:08:23 +01:00
Dan Poltawski e6c91f99ec Merge branch 'MDL-38892' of git://github.com/rwijaya/moodle 2013-04-24 08:16:37 +01:00
Damyon Wiese 7d45396306 Merge branch 'MDL-34939-master' of https://github.com/lucisgit/moodle 2013-04-24 15:01:35 +08:00
Mark Nelson eaa8f5ad53 MDL-39192 mod_forum: do not need to check the posting threshold when editing a post 2013-04-24 14:00:34 +08:00
Rossiani Wijaya 819b1de681 MDL-38892 data module: Fixed action setType to use PARAM_ALPHANUM 2013-04-24 13:49:09 +08:00
Jason Fowler 473327030e MDL-32946 - Blocks - Improving image alts for accessibility. 2013-04-24 13:06:22 +08:00
Damyon Wiese a6e22a88c7 Merge branch 'wip-MDL-39326-m25' of git://github.com/samhemelryk/moodle 2013-04-24 12:53:16 +08:00
Frederic Massart a96889ab51 MDL-39329 course: Strict standard warning during unpublishing 2013-04-24 11:47:08 +08:00
Damyon Wiese c65bf47276 Merge branch 'wip-mdl-38851' of git://github.com/rajeshtaneja/moodle 2013-04-24 11:39:13 +08:00
Rajesh Taneja 81dd294f06 MDL-38851 Admin: Fixed setType notice for cache 2013-04-24 11:18:30 +08:00
Rajesh Taneja ac31413e95 MDL-38851 Admin: Fixed setType notice for webservice 2013-04-24 11:18:30 +08:00
Sam Hemelryk c31978b8ff MDL-39326 css: removed unused chunk array search 2013-04-24 14:02:57 +12:00
Sam Hemelryk 13b0140a87 MDL-39326 css: no passed the no svg key to chunking when required 2013-04-24 14:02:52 +12:00
Eloy Lafuente (stronk7) 14559e1849 MDL-38972 xmldb: amend comments. 2013-04-24 02:09:34 +02:00
Eloy Lafuente (stronk7) 01159be8de Merge branch 'w16_MDL-38972_m25_oraindex' of git://github.com/skodak/moodle 2013-04-24 02:02:20 +02:00
Eloy Lafuente (stronk7) bdeda339b4 Merge branch 'wip-MDL-38441-m25' of git://github.com/samhemelryk/moodle 2013-04-23 23:41:47 +02:00
Davo Smith c23ff8e3a5 MDL-39219 mod_scorm - make sure YUI JSON module is loaded 2013-04-23 18:58:09 +01:00
Dan Poltawski 89275dcf80 Merge branch 'MDL-37784' of git://github.com/jmvedrine/moodle 2013-04-23 13:00:30 +01:00
Dan Poltawski 88dbfc453e Merge branch 'MDL-39296-master' of git://github.com/ankitagarwal/moodle 2013-04-23 12:50:44 +01:00
Petr Škoda cc1e433286 MDL-39306 fix course search regression
Oracle handling of NULLs is totally wrong and crazy!
2013-04-23 12:36:50 +02:00
Marina Glancy 545b3930f8 MDL-39305 fixed display bugs in course listings
- When category has a lot of subcategories and courses and user clicks 'view more' for categories, the courses are still displayed
- Course summary non-image files may appear above course summary image files, and they don't have an icon with the filetype
2013-04-23 18:57:21 +10:00
Jean-Michel Vedrine b31d6664e6 MDL-39283 GIFT and XML question export broken for unsupported qtypes
Do no write any data to the export for unsupported qtypes
2013-04-23 09:42:53 +02:00
Frederic Massart fbe9f668b2 MDL-38597 forum: Reformat the module settings form 2013-04-23 14:52:09 +08:00
Jean-Michel Vedrine dc5133edca MDL-37784 Adaptive no penalty display wrong penalty info
Adaptive Mode tells students they have been penalized even when set to no penalties
2013-04-23 08:30:42 +02:00
Rajesh Taneja 962b1bafc4 MDL-38851 Admin: Fixed setType notice for portfolio 2013-04-23 14:17:39 +08:00
Damyon Wiese a4fea69fde MDL-34933 Fix bad merge (grr) 2013-04-23 12:15:17 +08:00
Ankit Agarwal 647a3fc81c MDL-39296 scorm reports: Fix undefined variables in graphs report 2013-04-23 12:03:00 +08:00
Adrian Greeve bb2306eb7e MDL-39298 - gradebook: Added more delimiters for uploading and downloading the gradebook as a csv file.
New delimiters added: colon, semicolon
2013-04-23 11:57:15 +08:00
David Monllao f14d4122df MDL-29258 core_portfolio: Fixing broken default breadcrumb 2013-04-23 11:12:51 +08:00
Marina Glancy 28b93e2d5a MDL-39297 fixed mistype in tag name label 2013-04-23 12:45:22 +10:00
Frederic Massart dfb38e43f7 MDL-38415 course: Renaming course overview files to course summary files 2013-04-23 10:12:23 +08:00
Frederic Massart e158614134 MDL-38415 admin: Reorder default course settings 2013-04-23 10:12:23 +08:00
Frederic Massart 169a974df7 MDL-38415 course: Heavy redesign of the course settings form 2013-04-23 10:12:23 +08:00
Frederic Massart aec15827b5 MDL-38415 course: Reformat edit form
AMOS BEGIN
 MOV [availability_help,core],[visible_help,core]
 MOV [category_help,core],[coursecategory_help,core]
AMOS END
2013-04-23 10:12:23 +08:00
Rossiani Wijaya 2e0ba150b3 MDL-38892 data module: Fixed setType warning 2013-04-23 09:57:58 +08:00
Damyon Wiese b0c4e47499 Merge branch 'MDL-34933_master' of https://github.com/mchurchward/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-04-23 09:20:05 +08:00
Damyon Wiese 3e8e66f454 Merge branch 'wip-MDL-39294-m25' of git://github.com/samhemelryk/moodle 2013-04-23 08:59:10 +08:00
Sam Hemelryk 7376692527 Merge branch 'MDL-39281-master' of git://github.com/danpoltawski/moodle 2013-04-23 10:17:03 +12:00
Sam Hemelryk 0153e4e686 MDL-39294 cache: added missing setType calls to admin forms 2013-04-23 09:41:40 +12:00
Tim Hunt 4a7cc24808 MDL-35364 shorten text: don't return invalid HTML.
I also broke the unit tests into more, smaller, named tests, so that
when things start failing, more tests are run, and it is clearer what
the problem is.

In a couple of cases, I adjusted the $ideal lenght in the test. A
careful counting of the characters in the test input (added as comments)
suggests that the new values make for better tests.
2013-04-22 19:21:40 +01:00
Dan Poltawski fe5bb43ae5 Merge branch 'MDL-39264-master-int' of git://github.com/FMCorz/moodle 2013-04-22 17:23:43 +01:00
Dan Poltawski 596791eb69 MDL-39281 portfolio: missing setType call 2013-04-22 17:01:37 +01:00
Dan Poltawski 1aadfbcd88 MDL-38807 missing setType warnings on grade screens 2013-04-22 16:31:55 +01:00
Dan Poltawski 45a9f90a74 MDL-38807 grades: missing setType() calls
In grade category, item and grade forms. Most of these
values are floats handled by format_/unformat_float functions, the
text fields are handled using format_text().
2013-04-22 16:31:33 +01:00
Dan Poltawski c1e1c22fb5 Merge branch 'w16_MDL-39213_m25_userupload' of git://github.com/skodak/moodle 2013-04-22 14:41:34 +01:00
Dan Poltawski 26d3459747 MDL-39003 - version bump 2013-04-22 14:35:03 +01:00
Dan Poltawski 789ce8202b Merge branch 'MDL-39148-uninstall' of git://github.com/mudrd8mz/moodle
Conflicts:
	theme/bootstrap/style/generated.css
2013-04-22 14:33:28 +01:00
Dan Poltawski 83a9917314 MDL-37514 mod_quiz: fix trailing whitespace 2013-04-22 14:20:58 +01:00
Alex Leontiev bd166e618f MDL-37514 module.js: fix .js for auto quiz submission in preview mode
The issue: when we attempt the quiz as teacher/admin and timer is up,
quiz is not submitted, even though "Open attempts are submitted
automatically" is set. I've changed the javascript for a timer,
responsible for submission, removing the special behaviour in case of
preview mode. Note, that when the admin/teacher is taking a quiz, the
"preview" mode is automatically switched on.

It is a bit strange, since in the javascript there was clearly no
expressed intention to really submit quiz in preview, even when timer
hits. It does not really seem like a accidental bug, rather it looks
like some misunderstanding. Worse still, it may happen that I did not
understand the intentions of previous editor and ruined some
functionality. Because of this, and the fact that this is my first bug,
I would like to ask about the peer review! Please, see my comments in
bug discussion for the testing steps.

Conflicts:
	mod/quiz/module.js
2013-04-22 14:13:53 +01:00
Dan Poltawski a745806063 MDL-39178 theme_nimble: fix whitespace 2013-04-22 14:00:53 +01:00
Dan Poltawski 90a470abbc MDL-39178 theme_magazine: fix whitespace 2013-04-22 13:59:28 +01:00
Dan Poltawski 9bc5a6b9d8 Merge branch 'w16_MDL-39178_m25_themesettings' of git://github.com/skodak/moodle 2013-04-22 13:57:57 +01:00
Mike Churchward d750d41e66 MDL-34933 core_message: Adding index to improve database access on message_working table. 2013-04-22 08:39:25 -04:00
Dan Poltawski 816659ed9e Merge branch 'MDL-39249-upgrade-wizard' of git://github.com/mudrd8mz/moodle 2013-04-22 13:12:48 +01:00
Dan Poltawski 997f3022ad Merge branch 'MDL-39248-plugins-check' of git://github.com/mudrd8mz/moodle 2013-04-22 13:07:45 +01:00
Dan Poltawski e65dfc0275 Merge branch 'MDL-39186' of git://github.com/timhunt/moodle 2013-04-22 13:05:53 +01:00
Dan Poltawski 8c82b67ef0 Merge branch 'MDL-38603-workshop-form' of git://github.com/mudrd8mz/moodle 2013-04-22 12:47:10 +01:00
Dan Poltawski e39ef3d124 Merge branch 'wip-MDL-37942-master' of git://github.com/jason-platts/moodle 2013-04-22 12:42:10 +01:00
Dan Poltawski 4bb3f29e02 Merge branch 'w16_MDL-39141_m25_toolbar' of git://github.com/skodak/moodle 2013-04-22 12:38:47 +01:00
Dan Poltawski 3a3621821a Merge branch 'MDL-39173-master' of git://github.com/damyon/moodle 2013-04-22 11:41:41 +01:00
Damyon Wiese f5e9aa843c Merge branch 'wip-mdl-38851' of git://github.com/rajeshtaneja/moodle 2013-04-22 15:11:59 +08:00
Frederic Massart 1dcbdba62f MDL-38614 form: Reduce size of description field 2013-04-22 14:18:04 +08:00
Damyon Wiese 00ec4acc8f Merge branch 'MDL-39182_master' of https://github.com/markn86/moodle 2013-04-22 14:00:11 +08:00
Mark Nelson f5ad424b11 MDL-39182 mod_forum: display the post threshold warning message in a more noticeable area 2013-04-22 13:33:36 +08:00
Frederic Massart 613abe1b02 MDL-38572 assign: Improving usability of the module form 2013-04-22 13:28:38 +08:00
Damyon Wiese 946f2b0826 MDL-36959 file_storage: Preserve each file in a hash collision 2013-04-22 12:07:43 +08:00
Damyon Wiese e9cd87eef2 Merge branch 'w16_MDL-36959_m25_poolhashes' of git://github.com/skodak/moodle 2013-04-22 11:38:07 +08:00
Sam Hemelryk 6b39eee9fd Merge branch 'wip-MDL-38893-master' of git://github.com/phalacee/moodle
Conflicts:
	theme/bootstrap/style/generated.css
2013-04-22 15:34:17 +12:00
Sam Hemelryk 851ef997df Merge branch 'MDL-38918-master' of git://github.com/lazydaisy/moodle 2013-04-22 15:25:46 +12:00
Sam Hemelryk 92809986aa Merge branch 'MDL-39231_master' of git://github.com/bmbrands/moodle 2013-04-22 15:24:58 +12:00
Frederic Massart 47f0ae5908 MDL-39264 chat: Reformat module settings form 2013-04-22 11:03:28 +08:00
Damyon Wiese b363d54ccd Merge branch 'MDL-39050' of git://github.com/timhunt/moodle 2013-04-22 10:25:46 +08:00
Damyon Wiese 924225f38b MDL-38898 theme_simple: Copy fixes for block dnd from bootstrap 2013-04-22 10:07:53 +08:00
Jason Fowler c01404f99a MDL-38893 - Fixing layout of the debug boxes for cache information under bootstrap - patch provided by David Scotson <david.scotson@glasgow.ac.uk> 2013-04-22 10:04:43 +08:00
Damyon Wiese 80333fd96f Merge branch 'MDL-38898_master' of git://github.com/lazydaisy/moodle 2013-04-22 09:52:09 +08:00
Sam Hemelryk 54ed002fdc Merge branch 'wip-MDL-39118-master' of git://github.com/abgreeve/moodle 2013-04-22 13:41:45 +12:00
Adrian Greeve e06d54289d MDL-39118 - mod_data: removed areamaxbytes option for uploading files and images.
Setting the maximum size for a file or picture field to the course upload limit
would send a value of 0 to the file picker. This patch checks for this 0 value
and handles it appropriately.
2013-04-22 09:28:51 +08:00
AMOS bot f02d3cff01 Automatically generated installer lang files 2013-04-22 00:38:26 +00:00
Sam Hemelryk b88338f647 Merge branch 'MDL-38854_master' of git://github.com/bmbrands/moodle
Conflicts:
	theme/bootstrap/style/generated.css
2013-04-22 12:12:58 +12:00
Sam Hemelryk 9c2cbcdc04 Merge branch 'MDL-39220' of git://github.com/colchambers/moodle 2013-04-22 11:37:34 +12:00
Sam Hemelryk 6801246c50 Merge branch 'wip-MDL-38900-master' of git://github.com/ds125v/moodle
Conflicts:
	theme/bootstrap/style/generated.css
2013-04-22 11:10:51 +12:00
Sam Hemelryk c26f34baf1 Merge branch 'MDL-39172' of git://github.com/jmvedrine/moodle 2013-04-22 11:02:39 +12:00
Sam Hemelryk 311c034744 MDL-38874 theme_bootstrap: tidy up whitespace 2013-04-22 10:43:38 +12:00
Sam Hemelryk 9fdb1c1a63 Merge branch 'MDL-38874_master' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/bootstrap/style/generated.css
2013-04-22 10:35:52 +12:00
David Scotson 16d795a4d3 MDL-39196 theme_bootstrap: improved display of login errors 2013-04-22 10:27:11 +12:00
Sam Hemelryk 48d253c100 Merge branch 'MDL-39241-master' of git://github.com/danpoltawski/moodle 2013-04-22 09:23:54 +12:00
Mary Evans 232affc96a MDL-38874 theme_bootstrap: added back CSS rules to fix advanced elements show/hide toggle in admin forms.
While doing this I got a compile error so not sure but I am guessing the changes to fix that error will show up in the commit diff.
2013-04-21 18:02:08 +01:00
Petr Škoda 968083cd02 MDL-39213 allow role assignments in frontpage in user upload 2013-04-21 17:24:51 +02:00
Petr Škoda abea8b437c MDL-39178 add missing update callback for all theme settings 2013-04-20 22:06:55 +02:00
Petr Škoda fd4592bbbc MDL-36959 test reworked adding of files to sha1 content pool 2013-04-20 21:59:08 +02:00
Petr Škoda d91e2c15db MDL-36959 rework adding of content files to the file pool
This patch includes refreshing of borked files in file pool and basic prevention of race conditions. It also helps with diagnosing of file pool permission problems, detects coding errors and some other type of problems including sha1 collision jackpot.
2013-04-20 21:41:41 +02:00
Mary Evans c9ff4d0e0f MDL-38898 theme_bootstrap: Made changes to layout/general.php to enable drag-n-drop support in Bootstrap theme. 2013-04-20 02:10:11 +01:00
David Mudrák 7b1e0645c1 MDL-39249 Fix typo in available_update_deployer class
I have accidentally spotted this typo while working on this branch. It
has never caused any harm as both parameters callerurl and returnurl are
always passed. Blame copy/pasting of code blocks.
2013-04-20 03:01:36 +02:00
David Mudrák 5d7a4bab3f MDL-39249 Return to the correct page after successful update deployment
The method available_update_deployer::make_execution_widget() used to
have hard-coded return URL. Now it accepts the return URL as the second
parameter and passes it to the mdeploy.php utility.

The callerurl parameter is now correctly passed and used.
2013-04-20 03:00:19 +02:00
David Mudrák b27c50e234 MDL-39248 Fix the plugins check screen strings
Not all add-ons require administrator's attention during the upgrade
now. They are now listed only if there is an update available for them.

Also, it's not true any more that add-ons must be updated manually. They
can be updated using the automatic deployment feature, too.
2013-04-20 00:52:47 +02:00
David Mudrák 2f838a4e93 MDL-39248 Display only plugins with available updates at plugins check 2013-04-20 00:42:02 +02:00
Tim Hunt ba86e1d1ee MDL-39186 quiz password form: set param types. 2013-04-19 18:28:59 +01:00
David Scotson 13cb4ee0b4 MDL-38900 Change highlighted course section color 2013-04-19 16:39:29 +01:00
Dan Poltawski b93945e9b9 Merge branch 'MDL-39219_scorm_ie7' of git://github.com/davosmith/moodle
Conflicts:
	mod/scorm/module.js
2013-04-19 15:20:02 +01:00
Dan Poltawski aa15c5f3ff Merge branch 'MDL-38361' of https://github.com/prateeksachan/moodle 2013-04-19 15:11:33 +01:00
Dan Poltawski 35626ff4dd MDL-39241 groups import: missing type 2013-04-19 14:51:27 +01:00
Dan Poltawski 00a850b33e Merge branch 'wip-MDL-38565-m25' of git://github.com/samhemelryk/moodle 2013-04-19 13:29:07 +01:00
David Mudrák 9074e47871 MDL-39148 Highlight plugin status at the overview screen
Plugins that are to be installed and plugins that are missing from disk
are now highlighted at the Plugins overview screen. Other statuses (such as
of plugin to be upgraded) should not be needed at this page as those
are primarily intended for the Plugins checks screen during the upgrade.
2013-04-19 13:21:39 +02:00
Tim Hunt 53f8948899 MDL-39050 quiz access rules: settings.php files should work. 2013-04-19 11:50:25 +01:00
Mary Evans 082ebd6e51 MDL-38918 theme_simple: Added favicon.ico to theme/simple/pix directory. 2013-04-19 10:46:33 +01:00
David Mudrák badf464792 MDL-39148 Non-installed plugins cannot be uninstalled
If the plugin has been only deployed to the disk without installing into
the database, do not allow going through the uninstallation procedure.
Not only it does not have much sense. But it can also lead to some
tricky situation due to dependencies. Better to block it and wait till
the plugin is either fully installed or removed from the disk.
2013-04-19 11:24:43 +02:00
BA CodeMonkey f0e683ecb3 MDL-38854: Bootstrap theme - text input in a block is wider than the block 2013-04-19 11:07:04 +02:00
BA CodeMonkey 2135cec6e8 MDL-39231: Rename region-bs-main to region-main in layout files for theme bootstrap and theme simple 2013-04-19 10:52:03 +02:00
Damyon Wiese 42d2b9fbcc MDL-39163 Version bump for css changes 2013-04-19 15:51:31 +08:00
Damyon Wiese 35490f6357 Merge branch 'MDL-39163-master' of git://github.com/FMCorz/moodle 2013-04-19 15:49:16 +08:00
Rajesh Taneja 1fe56a2a00 MDL-38851 Administration: Fixed setType in admin section 2013-04-19 15:18:33 +08:00
Damyon Wiese 43d3124816 Merge branch 'MDL-31194-master' of git://github.com/mouneyrac/moodle 2013-04-19 15:15:10 +08:00
Damyon Wiese d9c22e944d Merge branch 'MDL-39084-master' of github.com:StudiUM/moodle 2013-04-19 13:58:15 +08:00
Damyon Wiese 747230d564 Merge branch 'wip-MDL-39211-m25' of git://github.com/marinaglancy/moodle 2013-04-19 13:53:14 +08:00
Damyon Wiese dd3b3a81d1 Merge branch 'MDL-39167' of git://github.com/timhunt/moodle 2013-04-19 13:13:28 +08:00
Damyon Wiese 29e2fecb44 MDL-39173 Assign - Remove permissions check and OUTPUT from previous patch
The permissions check is not correct (even users with grade capability should not
see user identities) and $assignment->get_renderer() is preferred over $OUTPUT.
2013-04-19 13:05:12 +08:00
Sam Chaffee 0399580003 MDL-39173 Assign - Enable comments for blind marking assignments (anonymous ones) 2013-04-19 13:03:05 +08:00
Sam Hemelryk 459699105c Merge branch 'MDL-39206_master' of git://github.com/lazydaisy/moodle 2013-04-19 16:37:31 +12:00
Sam Hemelryk 2b2b967ecb MDL-38646 mod_folder: improved upgrade of showexpanded 2013-04-19 16:28:29 +12:00
Sam Hemelryk a03fdbb099 Merge branch 'MDL-38646' of git://github.com/rlorenzo/moodle 2013-04-19 16:23:21 +12:00
Sam Hemelryk 476554bbca Merge branch 'MDL-38777-m' of git://github.com/andrewnicols/moodle 2013-04-19 15:20:44 +12:00
Frederic Massart e62e473d44 MDL-30940 form: Mutiple select work correctly without any selection 2013-04-19 11:04:34 +08:00
Sam Hemelryk 91d72d3105 Merge branch 'MDL-39164' of git://github.com/jmvedrine/moodle 2013-04-19 14:54:41 +12:00
Sam Hemelryk 52b4bd37e7 Merge branch 'MDL-38710-master' of git://github.com/damyon/moodle 2013-04-19 14:41:25 +12:00
Sam Hemelryk 5ab262321c Merge branch 'MDL-39033-master' of git://github.com/sammarshallou/moodle 2013-04-19 14:02:35 +12:00
Sam Hemelryk 4d35c88e10 Merge branch 'MDL-39185_master' of https://github.com/markn86/moodle 2013-04-19 13:53:55 +12:00
Sam Hemelryk ff76b6044b Merge branch 'MDL-39135-master' of git://github.com/damyon/moodle 2013-04-19 13:48:32 +12:00
Rex Lorenzo 57e228045b MDL-38646 folder: change column from show_expanded to showexpanded 2013-04-18 17:28:35 -07:00
Sam Hemelryk 5cba0c4ba3 MDL-38565 cache: tidy up pre-integration 2013-04-19 10:13:36 +12:00
Sam Hemelryk 4da28110c0 MDL-38565 cache: improve stats gathering 2013-04-19 10:12:59 +12:00
Sam Hemelryk fbf76dcd17 MDL-38565 cache: upgrade code to amend default stores 2013-04-19 10:12:59 +12:00
Sam Hemelryk 059102e728 MDL-38565 cache: cron routine to clean up old session data 2013-04-19 10:11:48 +12:00
Sam Hemelryk dbd2ea4e1f MDL-38565 cache: session caches now function as expected
This change is a large change to the way sessions are handled
within MUC after it was discovered that session did not function
as expected when any store other than the default session store
was being used.
As part of this change the session loader has been largely
customised in order to consolidate session data for the loader.
The unit tests have also being greatly increased to provide
better coverage for sessions.
2013-04-19 10:11:48 +12:00
Sam Hemelryk 0678958015 MDL-38411 css: new unit tests to cover chunking 2013-04-19 10:09:45 +12:00
Sam Hemelryk e10750279d MDL-38441 css: implemented chunking of large sheets 2013-04-19 10:09:45 +12:00
David Mudrák 9e31e23d60 MDL-38603 Reorganise Workshop settings form
Example submissions settings moved into a dedicated section.
Self-assessment setting moved to the assessment section. There is no
need for the dedicated Workshop features section any more. All Workshop
feedback settings moved into a dedicated section.

Reorganised grading settings - the grading strategy put into the top
place as it is the essential setting. All other three settings are
related to calculating actual grades.

No advanced setting fields in the Workshop form. Mixing collapsible
sections with advanced fields (that are not even marked as "advanced"
any more) does not work well.

AMOS BEGIN
 CPY [feedback,mod_assign],[feedbacksettings,mod_workshop]
AMOS END
2013-04-18 23:31:35 +02:00
David Mudrák d34ea7dc33 MDL-38603 Deprecate usepeerassessment setting in Workshop
There was a plan to make use of it initially when Workshop was rewritten
for Moodle 2.0. The idea was that the Workshop could be switched into a
simplified mode where teachers only make assessments (with all the
grading strategies available). But things evolved since then and now we
have Advanced grading methods available in the new Assignment module
that solves the use case well. So, having this option available is not
only confusing but - looking at the code - pretty useless.

For now, I am just hiding the setting from the settings form and the
code always considers it as if it was enabled. In the future, the field
can disappear from the database, too.
2013-04-18 23:10:10 +02:00
Petr Škoda 9a1c818d28 MDL-39141 fix customtoolbar notices during upgrade 2013-04-18 20:22:01 +02:00
Petr Škoda 2d97513d12 MDL-38972 add upgrade info for duplicate index-key problems 2013-04-18 20:21:03 +02:00
Petr Škoda 02e5f81c94 MDL-38972 detect key-index duplicates 2013-04-18 20:21:02 +02:00
Jean-Michel Vedrine b48193383f MDL-39172 Import of .dat files is broken in blackboard_six import format 2013-04-18 17:39:13 +02:00
Jean-Michel Vedrine cdcda6a0b4 MDL-39164 GIFT, Blackboard and Examview import of essay questions broken 2013-04-18 17:36:18 +02:00
Colin Chambers 919834f2eb MDL-39220 Javascript: Editor shrinks using collapse button 2013-04-18 15:46:07 +01:00
Jean-Philippe Gaudreau 25e500f621 MDL-39084 grade: Capability checks are incoherent for the Course grade settings section 2013-04-18 09:05:01 -04:00
Dan Poltawski 3a8c4380c0 on demand release 2.5beta+
Special 'Spoons curry' UK Edition ;-)
2013-04-18 12:52:52 +01:00
Davo Smith c4dccb99fb MDL-39219 mod_scorm - replace JSON with Y.JSON for IE7 compatibility 2013-04-18 12:44:24 +01:00
Dan Poltawski 8a4f888220 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-04-18 12:41:24 +01:00
Damyon Wiese 1d0c0c4a23 MDL-38592: Add major version redirect for settings used frontpage. 2013-04-18 16:42:33 +08:00
Dan Poltawski 5ca1899e6e Merge branch 'MDL-39203-master' of git://github.com/FMCorz/moodle 2013-04-18 08:50:29 +01:00
Frederic Massart 926a3512a5 MDL-39203 repository: Fixed authentication errors with Dropbox 2013-04-18 14:47:22 +08:00
Marina Glancy 473d5f74c7 MDL-39211 forgotten include of /course/lib.php 2013-04-18 13:47:04 +10:00
Mary Evans 10962df0e4 MDL-39206 theme_bootstrap: Added resized/opaque screenshot.jpg 2013-04-18 01:45:11 +01:00
Andrew Nicols c0123ff2c3 MDL-38777 JavaScript: Remove YUI cache persistence
The cache does not need to be persistent within the same request and this
just holds memory open for no good reason.
2013-04-17 22:45:23 +01:00
Tim Hunt d823a63db0 MDL-39167 quiz access rules: need to validate their settings.
We were missing the hook in the form validation method. We had them
everywhere else they were needed.
2013-04-17 14:24:38 +01:00
Dan Poltawski 500f9a4c9d Merge branch 'wip-mdl-39110' of git://github.com/rajeshtaneja/moodle 2013-04-17 12:48:17 +01:00
Dan Poltawski 51850ccaf8 Merge branch 'MDL-38573-master-int' of git://github.com/FMCorz/moodle 2013-04-17 12:37:23 +01:00
Dan Poltawski 0107a90fe8 Merge branch 'MDL-39081' of git://github.com/rwijaya/moodle 2013-04-17 12:32:39 +01:00
Dan Poltawski 73f5a0d864 MDL-39021 pluginlib: theme_simple is a core plugin
Don't list as an add-on.
2013-04-17 12:27:24 +01:00
Dan Poltawski c6101ef441 Merge branch 'MDL-39087-plugins-uninstall' of git://github.com/mudrd8mz/moodle 2013-04-17 12:09:20 +01:00
Eloy Lafuente (stronk7) b279f33410 Merge branch 'MDL-38956_master' of git://github.com/dmonllao/moodle 2013-04-17 12:50:50 +02:00
Yuliya Bozhko 9b0f001445 MDL-39049 Badges: Fix error when awarding a badge from recipients page 2013-04-17 17:03:19 +08:00
Frederic Massart ad4bbda9eb MDL-38573 choice: Reformat settings form 2013-04-17 15:54:59 +08:00
Mark Nelson 4a8a72656d MDL-39185 mod_forum: declare new object before creating member variables to prevent Strict Standards warning 2013-04-17 15:20:41 +08:00
Jerome Mouneyrac 843fac4557 MDL-38889 Community finder search display setType() form warnings 2013-04-17 14:31:23 +08:00
Damyon Wiese 78d9d52a0a MDL-38710 assign: Fix one typo and change one param to PARAM_BOOL 2013-04-17 13:50:33 +08:00
Dan Poltawski 9231cd8826 MDL-38710 assign: convert selectedusers to PARAM_SEQUENCE
This param type is more appropiate.
2013-04-17 13:50:23 +08:00
Dan Poltawski 68d646f3eb MDL-38710 assign: fix missing setType calls 2013-04-17 13:50:23 +08:00
Jerome Mouneyrac 63c7be350b MDL-34434 Change the texts saying that we'll be removing web service deprecated functions from 2.5 2013-04-17 12:13:04 +08:00
Eloy Lafuente (stronk7) 9b81eef05d Merge branch 'w15_MDL-39052_m25_csvtemp' of git://github.com/skodak/moodle 2013-04-17 02:43:49 +02:00
Eloy Lafuente (stronk7) d10d607e8c Merge branch 'MDL-39151-master' of git://github.com/FMCorz/moodle 2013-04-17 02:01:16 +02:00
Eloy Lafuente (stronk7) a821c10b86 Merge branch 'w15_MDL-39069_m25_helpwindow' of git://github.com/skodak/moodle 2013-04-17 01:55:45 +02:00
Eloy Lafuente (stronk7) 4ec465b155 Merge branch 'MDL-38100-master' of git://github.com/FMCorz/moodle 2013-04-17 01:40:51 +02:00
Eloy Lafuente (stronk7) e377d86765 Merge branch 'MDL-39066-master' of git://github.com/ankitagarwal/moodle 2013-04-17 01:36:43 +02:00
Eloy Lafuente (stronk7) 9004d7a51c Merge branch 'wip-MDL-39145-m25' of git://github.com/marinaglancy/moodle 2013-04-17 01:27:39 +02:00
Eloy Lafuente (stronk7) 91560510dc Merge branch 'w15_MDL-39129_m25_afterburner' of git://github.com/skodak/moodle 2013-04-17 01:06:17 +02:00
Eloy Lafuente (stronk7) 359c1d4756 Merge branch 'w15_MDL-39075_m25_userdesc' of git://github.com/skodak/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-04-17 01:04:09 +02:00
Eloy Lafuente (stronk7) 3536896e25 Merge branch 'wip-MDL-39111-m25' of git://github.com/marinaglancy/moodle 2013-04-16 23:50:19 +02:00
Dan Poltawski b90bd21c5f Merge branch 'MDL-27814-master' of git://github.com/ankitagarwal/moodle
Conflicts:
	lib/deprecatedlib.php
2013-04-16 14:47:14 +01:00
Frederic Massart df654d1a1b MDL-39163 repository: Make use of the new Moodle icon 2013-04-16 21:25:38 +08:00
Barbara Ramiro 0e496c838e MDL-39163 usability: New Moodle icon 2013-04-16 21:25:23 +08:00
Frederic Massart fb5544d2cd MDL-38100 repository_googledocs: Proper Google Drive icon 2013-04-16 20:49:42 +08:00
Dan Poltawski dfd24d622f Merge branch 'MDL-39140_m25' of git://github.com/sbourget/moodle 2013-04-16 13:46:51 +01:00
Dan Poltawski bc02f33809 Merge branch 'wip-mdl-39116' of git://github.com/rajeshtaneja/moodle 2013-04-16 13:42:01 +01:00
Dan Poltawski 342b1901ac Merge branch 'MDL-39029' of git://github.com/jacks92/moodle 2013-04-16 13:30:10 +01:00
Dan Poltawski f7f1465f91 Merge branch 'm25_MDL-38678_SCORM_RTE_not_required_for_SCO_Assets' of https://github.com/scara/moodle 2013-04-16 13:26:34 +01:00
Petr Škoda e88419a2fd MDL-39069 open new window for help when JS disabled 2013-04-16 14:12:31 +02:00
Dan Poltawski 05e1747dfe Merge branch 'MDL-39080_master' of git://github.com/kordan/moodle 2013-04-16 12:44:42 +01:00
Dan Poltawski 7e43a15ffe MDL-39063 badges: fix whitespace errors 2013-04-16 12:11:30 +01:00
Dan Poltawski 19226a309f Merge branch 'MDL-39063' of github.com:totara/openbadges
Conflicts:
	admin/settings/badges.php
	lib/db/upgrade.php
	version.php
2013-04-16 12:00:46 +01:00
Damyon Wiese d523d161fe Merge branch 'wip-MDL-39064-master' of git://github.com/marinaglancy/moodle
Conflicts:
	theme/bootstrap/style/generated.css
2013-04-16 16:56:09 +08:00
Damyon Wiese 5073388e74 Merge branch 'wip-MDL-38592-master' of git://github.com/marinaglancy/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-04-16 16:03:33 +08:00
Damyon Wiese 6a508eaccf Merge branch 'w15_MDL-34674_m25_spell' of git://github.com/skodak/moodle 2013-04-16 15:56:10 +08:00
Daniel Neis Araujo 58f739c5fd MDL-38136: fix user_get_user_details doesn't return idnumber (thanks to Antonio Carlos Mariani) 2013-04-16 15:50:13 +08:00
Petr Škoda 667447d129 MDL-39052 create temp files only in Moodle temp folder 2013-04-16 09:38:28 +02:00
Ankit Agarwal a915104b4d MDL-39066 blogs: Add missing setType calls in blogs 2013-04-16 15:11:51 +08:00
Frederic Massart 5ab1b98274 MDL-39151 repository: Do not filter repository listing on manage pages 2013-04-16 14:43:51 +08:00
Petr Škoda ca117d1e5b MDL-34674 add CTRL+right click hint to tinymce context menus 2013-04-16 08:37:21 +02:00
Damyon Wiese e0cded5d44 Merge branch 'wip-MDL-38055-m25' of git://github.com/samhemelryk/moodle 2013-04-16 14:32:53 +08:00
Marina Glancy 0fd2635038 MDL-38592 Settings for courses lists on front page are made more user friendly
- 'List of courses' is split into 'List of courses' (available) and 'Enrolled courses', CFG->disablemycourses is deprecated;
- CFG->frontpageloggedin by default shows list of available courses;
- There is separate item to display course search box
- CFG->maxcoursesincombo is deprecated
- CFG->maxcategorydepth changed default value to 2 since we have AJAX loading now
- FRONTPAGECOURSELIMIT is transformed to CFG->frontpagecourselimit

c
2013-04-16 15:00:55 +10:00
Marina Glancy f6812f575f MDL-39111 check repository instance context instead of repository usage context (following MDL-34346) 2013-04-16 13:28:42 +10:00
Marina Glancy b1c2fc65e4 MDL-39145 add text in upgrade.txt about functions deprecated in MDL-37085 2013-04-16 11:50:19 +10:00
Eloy Lafuente (stronk7) e32a8ae832 Merge branch 'w15_MDL-39132_m25_badgesettings' of git://github.com/skodak/moodle 2013-04-16 02:07:15 +02:00
Eloy Lafuente (stronk7) 718995ee30 Merge branch 'wip-MDL-39127-m25-integration' of git://github.com/samhemelryk/moodle 2013-04-16 01:24:33 +02:00
Eloy Lafuente (stronk7) 4af6e51309 Merge branch 'master_MDL-37844' of git://github.com/danmarsden/moodle 2013-04-16 01:14:06 +02:00
Sam Hemelryk 2fb77a96b3 MDL-39127 navigation: fixed loading of categories for navbar 2013-04-16 11:02:06 +12:00
Yuliya Bozhko e280531436 MDL-39063 badges: Improve external backpack usability and workflow 2013-04-16 10:47:40 +12:00
Stephen Bourget 01b3704f1b MDL-39140 mod_folder: Fix missing call to setType() 2013-04-15 17:59:25 -04:00
Dan Poltawski 9aae7551ec Merge branch 'MDL-38880' of git://github.com/jmvedrine/moodle 2013-04-15 16:25:06 +01:00
Dan Poltawski 1184c3da23 MDL-39135 assign_feedback: fix missing renderer argument
assign_user_summary expects extra profile fields
2013-04-15 14:57:00 +01:00
Dan Poltawski e5e5097081 NOBUG - reduce whitespace errors a little 2013-04-15 13:29:14 +01:00
Dan Poltawski e34b27bae7 MDL-39047 - theme: fix various whitespace problems 2013-04-15 13:19:56 +01:00
Petr Škoda f2770bfe1a MDL-39132 always include badge settings, hide the pages when disabled 2013-04-15 13:21:39 +02:00
Dan Poltawski 34ddaf7146 Merge branch 'MDL-39047_master' of https://github.com/markn86/moodle 2013-04-15 12:15:24 +01:00
Rajesh Taneja 0434840004 MDL-39116 Course: Pluginname strings will be set in M.str for all modules supporting Dnd
Currently, if new activity/resource is created by DnD and M.str doesn't have pluginname string
it show wrong string, so loading pluginnames for all modules which support DnD
2013-04-15 17:42:24 +08:00
Mark Nelson 12cb45f199 MDL-39047 forms: set the z-index of the calendar pop-up so that it renders above the filemanager 2013-04-15 17:37:41 +08:00
Ruslan Kabalin ef7dd02cc7 MDL-34939: Fix clamdscan permissions-related issues
Use --fdpass parameter that passes the file descriptor permissions to clamd,
which allows to scan given file irrespective of directory and file
permissions. Changing file permissions is not required.
2013-04-15 10:30:36 +01:00
Dan Poltawski 3d7414b399 MDL-38309 fix whitespace issues 2013-04-15 10:26:53 +01:00
Dan Poltawski 7e155b96fb Merge branch 'wip-MDL-38309-m25' of git://github.com/marinaglancy/moodle 2013-04-15 10:24:20 +01:00
Petr Škoda 1fbdfa49fc MDL-39129 convert afterburner to new theme setting file
This patch is based on work by Gareth J Barnard, Pau Ferrer Ocaña (crazyserver) and others.
2013-04-15 11:16:26 +02:00
Dan Poltawski 6c9e174cc8 MDL-37762 course: fix category url 2013-04-15 09:29:06 +01:00
Dan Poltawski ed9a90c018 Merge branch 'MDL-38980_master' of git://github.com/lazydaisy/moodle 2013-04-15 09:05:25 +01:00
Dan Poltawski 118f39de13 Merge branch 'MDL-39010_master' of git://github.com/lazydaisy/moodle 2013-04-15 08:58:30 +01:00
Rossiani Wijaya 167b2c3d1e MDL-39081 workshop mod: fixed missing setType error 2013-04-15 15:42:22 +08:00
Dan Poltawski a7eac88f94 Merge branch 'MDL-39000-master' of git://github.com/sammarshallou/moodle 2013-04-15 08:29:56 +01:00
Dan Poltawski 3cdea44a87 Merge branch 'MDL-38011' of git://github.com/srynot4sale/moodle 2013-04-15 07:58:53 +01:00
Dan Poltawski 5795bc60c9 Merge branch 'MDL-38716-master-int' of git://github.com/FMCorz/moodle 2013-04-15 07:35:14 +01:00
Rajesh Taneja ff10ac5258 MDL-39110 Administration: Get role from get_roles function to display as filter label 2013-04-15 14:25:38 +08:00
Damyon Wiese 5f022c5799 Merge branch 'MDL-39068' of git://github.com/stronk7/moodle 2013-04-15 14:24:52 +08:00
David Monllao 242a27b180 MDL-38956 behat: New test
According to MDLQA-92, a teacher can preview
questions in the question bank.
2013-04-15 14:14:31 +08:00
Damyon Wiese 823efcedcc MDL-37762 navbar - fold some long lines in previous patch 2013-04-15 13:32:07 +08:00
Damyon Wiese 23718dade9 Merge branch 'wip-MDL-37762-m25' of https://github.com/samhemelryk/moodle 2013-04-15 13:30:28 +08:00
Damyon Wiese 8b5f2be25d MDL-38904 Theme - JS improvements for bootstrap.
Fix minor whitespace issue in thirdparty lib (will remove exclusion for it from ci).
Update yui-gallery modules location in readme.
Remove code-coverage files.
2013-04-15 12:17:00 +08:00
Damyon Wiese 171c3d6c3c Merge branch 'MDL-38904-m' of git://github.com/andrewnicols/moodle 2013-04-15 11:57:38 +08:00
Frederic Massart 87c1c82286 MDL-38716 accessibility: ARIA attributes and roles defined on form actions 2013-04-15 11:46:05 +08:00
Damyon Wiese ab707e3df8 MDL-39021 Theme - Fix phpdoc @package tags for simple theme 2013-04-15 11:23:17 +08:00
Mary Evans 59e31add66 MDL-39021 Themes - Add a new simple theme based on bootstrap.
Credits to:
Mary Evans <lazydaisy@visible-expression.co.uk> and
David Scotson <david.scotson@glasgow.ac.uk>
2013-04-15 11:15:59 +08:00
Damyon Wiese ca17a1242a Merge branch 'w15_MDL-35434_m25_storedfilesetting' of git://github.com/skodak/moodle.git 2013-04-15 11:01:52 +08:00
Petr Škoda fe7b75f85c MDL-35434 add support for theme setting files
This patch is based on work by Gareth J Barnard, Pau Ferrer Ocaña (crazyserver) and others.
2013-04-15 10:58:00 +08:00
Petr Škoda 6ddc9278ff MDL-35434 new stored file config setting 2013-04-15 10:57:47 +08:00
Marina Glancy 2fada29001 MDL-38309 Added comments on overwriting functions in themes
Defined function tabree() as final so themes do not override it by mistake.
Added comments to other similar shortcut functions that themes should not override them (can not declare them final
for backward compartibility)
2013-04-15 12:13:14 +10:00
Marina Glancy a5f82c5b21 MDL-38309 Substitute usage of print_tabs() with renderable tabtree 2013-04-15 12:13:13 +10:00
Marina Glancy c269b9d16f MDL-38309 move HTML generation from print_tabs() to renderer
- created renderable object tabtree that represents the tree of tabs, extends tabobject
- created core_renderer::tabtree(), and supporting core_renderer::render_tabtree(), core_renderer::render_tabobject()
- change print_tabs() to use renderer function, deprecate supporting not needed functions
2013-04-15 12:13:03 +10:00
Damyon Wiese 986adc066c MDL-39092 Yuilib - remove more -coverage.js files
Also slight tweak to the readme for someone who does not know shifter.
2013-04-15 09:02:11 +08:00
Damyon Wiese 6cf7afff3c Merge branch 'MDL-39092-m' of git://github.com/andrewnicols/moodle 2013-04-15 08:56:27 +08:00
Eloy Lafuente (stronk7) b4f93903a7 Merge branch 'MDL-38617_master' of git://github.com/dmonllao/moodle 2013-04-15 02:33:17 +02:00
Eloy Lafuente (stronk7) 35bff0716d Merge branch 'MDL-38947_master' of git://github.com/dmonllao/moodle 2013-04-15 02:22:23 +02:00
Eloy Lafuente (stronk7) ef6fbe9eef Merge branch 'MDL-38948_master' of git://github.com/dmonllao/moodle 2013-04-15 02:22:06 +02:00
Eloy Lafuente (stronk7) e9324d0863 Merge branch 'MDL-38949_master' of git://github.com/dmonllao/moodle 2013-04-15 02:19:58 +02:00
Eloy Lafuente (stronk7) 252612a670 Merge branch 'MDL-38962_master' of git://github.com/dmonllao/moodle 2013-04-15 02:08:35 +02:00
Eloy Lafuente (stronk7) 068fc30fa5 Merge branch 'MDL-38960_master' of git://github.com/dmonllao/moodle 2013-04-15 01:59:21 +02:00
Eloy Lafuente (stronk7) 7fc82aec49 Merge branch 'MDL-39089_master' of git://github.com/dmonllao/moodle 2013-04-15 01:57:01 +02:00
Sam Hemelryk abb29010f3 MDL-37762 navbar: shows categories for current course again 2013-04-15 11:27:26 +12:00
Andrew Nicols 24af2fbaf3 MDL-39092 JavaScript: Add default Shifter configuration
The settings here ensure that -coverage.js files are not built, and that
the Shifter defaults to using the jshint configuration in the moodle root
directory.
2013-04-14 21:08:34 +01:00
Andrew Nicols 8600a05228 MDL-39092 JavaScript: Ignore all upstream YUI coverage JS 2013-04-14 21:08:34 +01:00
Andrew Nicols 731f29702c MDL-39092 JavaScript: Remove all upstream YUI coverage JS files 2013-04-14 17:34:34 +01:00
Andrew Nicols b047220d30 MDL-39092 JavaScript: Ignore all Moodle YUI coverage JS 2013-04-14 17:34:03 +01:00
Andrew Nicols 569c9a3b90 MDL-39092 JavaScript: Remove Moodle YUI coverage JS files 2013-04-14 17:30:08 +01:00
Eloy Lafuente (stronk7) d7ce8b1434 MDL-39068 use cross-db text column ORDER BY
Credit goes to Valerii Kuznetsov, thanks!
2013-04-14 16:07:43 +02:00
David Monllao 9fb5894e79 MDL-38947 behat: New test
According to MDLQA-73, in a lesson
activity, students can navigate through
a series of pages in various ways
depending upon their answers to questions.
2013-04-14 15:02:39 +08:00
David Monllao 51434146e4 MDL-38948 behat: New test
According to MDLQA-76, a teacher can
set a time limit for a lesson activity.
2013-04-14 13:03:27 +08:00
David Monllao d2ae1f07de MDL-38617 behat: New test
According to MDLQA-1178, an administrator
can filter user accounts by role, cohort
and other variables.
2013-04-14 12:39:50 +08:00
David Monllao e2e4813b0d MDL-38949 behat: New test
According to MDLQA-81, a teacher can
password protect a lesson and/or set
available from and deadline dates.
2013-04-14 11:09:03 +08:00
David Monllao e541bc2182 MDL-38949 behat: Fix editor presence detection issue
Checking not only the presence of an editor
in the page, also an editor for the target
field.
2013-04-14 11:07:33 +08:00
David Monllao ed6ca2d2f1 MDL-38949 behat: Form field for selectyesno
Silly extension of behat_form_select.
2013-04-14 10:58:20 +08:00
Mary Evans bd0f9262d2 MDL-38980 theme_bootstrap: Increased sort order value for language menu item. 2013-04-13 11:37:34 +01:00
AMOS bot ebcec78441 Automatically generated installer lang files 2013-04-13 00:37:23 +00:00
Petr Škoda 0c4c981f03 MDL-39075 use html as default user description text format 2013-04-12 22:20:42 +02:00
sam marshall 4bab91bc53 MDL-39033 Conditional availability: Available items dimmed to students 2013-04-12 13:33:23 +01:00
Petr Škoda 0ac97084fa MDL-34674 use browser built-in spell checking in all browsers except < IE10 2013-04-12 11:33:23 +02:00
Ankit Agarwal f42d2a22bc MDL-27814 blogs: Refactoring code to use proper context and such
Based on the decisions made in the issue, most places in blog should use site context.
There are also minor other refactoring to support all changes made in the issue.
2013-04-12 16:05:05 +08:00
Ankit Agarwal 4ef082980d MDL-27814 blogs: Deprecate associate blog caps
moodle/blog:associatemodule and moodle/blog:associatecourse should not be used
anymore as per the discussion in the issue. Everyone is free to blog about anything
they want to blog about.
2013-04-12 16:05:01 +08:00
Ankit Agarwal 7ac18cf9c2 MDL-27814 blogs: Deprecate blog_get_context_url() 2013-04-12 16:04:44 +08:00
Ankit Agarwal a11caae7d4 MDL-27814 blogs: Remove redundant code
Since all blog pages are in system context always, it is useless to try to get course/mod params from page context
2013-04-12 16:03:05 +08:00
Ankit Agarwal 68fc1cc279 MDL-27814 blogs: Cleaning up contexts in blogs
All blogs pages should be in system context. Blogs are in system context just about various things (course, activity etc)
2013-04-12 16:03:02 +08:00
David Monllao 1e31fc1724 MDL-38962 behat: New test
According to MDLQA-112, there is a choice
of formats for editing a wiki page.
2013-04-12 14:26:28 +08:00
David Monllao 3de2643218 MDL-38960 behat: New test
According to MDLQA-111, a history of each
wiki page is available.
2013-04-12 13:22:59 +08:00
Paul Nicholls 75bdae9f6e MDL-37762: Breadcrumb not showing categories on course page 2013-04-12 16:40:12 +12:00
David Monllao 83cfd14444 MDL-38089 mod_wiki: Fix incorrect links 2013-04-12 12:14:13 +08:00
Damyon Wiese c7ee04bd64 MDL-29877 Grades - Remove hardcoded prefix from upgrade steps 2013-04-12 11:53:48 +08:00
Damyon Wiese 42f563f65e MDL-29877 Grades - version bump for upgrade step. 2013-04-12 11:16:23 +08:00
Damyon Wiese 77dd442ab9 Merge branch 'MDL-29877_bad_grade_item' of git://github.com/andyjdavis/moodle
Conflicts:
	version.php
2013-04-12 11:14:10 +08:00
Dan Poltawski 47df95c362 Merge branch 'MDL-39054' of git://github.com/jacks92/moodle 2013-04-12 11:08:28 +08:00
Dan Poltawski f4f0a085d8 Merge branch 'MDL-39011_master' of github.com:totara/openbadges 2013-04-12 10:45:00 +08:00
Dan Poltawski f4686f5df9 Merge branch 'MDL-39049_master' of github.com:totara/openbadges 2013-04-12 10:30:10 +08:00
Dan Poltawski e8c7506a45 Merge branch 'MDL-37537' of git://github.com/srynot4sale/moodle 2013-04-12 10:26:05 +08:00
Dan Poltawski 481c1c363a Merge branch 'MDL-38637-master' of github.com:StudiUM/moodle 2013-04-12 10:08:45 +08:00
David Mudrák 3ca1b54642 MDL-39087 Use progress_trace class to display uninstallation progress
This is much better API than using the array passed by reference. At the
moment, it is pretty hacky as it abuses text_progress_trace to output
raw HTML echoed by uninstall_plugin() but that will be improved later
while moving the logic out of that function into the plugin_manager.
2013-04-12 04:02:28 +02:00
Dan Poltawski 315e2ad133 Merge branch 'integration_MDL-38997' of github.com:totara/moodle 2013-04-12 09:59:49 +08:00
David Mudrák c2d2001a14 MDL-39087 Improve the Plugins overview renderer
As suggested by Tim Hunt during the peer-review, rendering methods
should not set properties of the page they are producing HTML code for.
Additionally, the page now uses correct check that the uninstalling can
happen.
2013-04-12 03:32:35 +02:00
David Mudrák ccc6c15fd2 MDL-39087 Fix plugin_manager::can_uninstall_plugin() implementation
There was a false positive result for subplugin required by other
subplugin. See the unit test.
2013-04-12 03:23:47 +02:00
David Mudrák 54d7589397 MDL-39087 Improve the Plugins overview table layout
This patch returns the layout of the Uninstall | Settings links to two
columns. There is no space saved on the screen by using the single
column and two columns align better. The reasoning for using single
column was that there would be multiple links in the 'Actions' column
but that does not seem to happen anytime soon.
2013-04-12 01:44:35 +02:00
David Mudrák 73658371eb MDL-39087 Simplify get_uninstall_url() interpretation
The get_uninstall_url() method of all subclasses of plugininfo_base
class is now expected to always return moodle_url. Subclasses can use
the new method is_uninstall_allowed() to control the availability of the
'Uninstall' link at the Plugins overview page (previously they would do
it by get_uninstall_url() returning null). By default, URL to a new
general plugin uninstall tool is returned. Unless the plugin type needs
extra steps that can't be handled by plugininfo_xxx::uninstall() method
or xmldb_xxx_uninstall() function, this default URL should satisfy all
plugin types.

The overall logic is implemented in plugin_manager::can_install_plugin()
that respects the plugininfo class decision and vetoes it in certain
cases (typically when plugin or its subplugin is required by some other
plugin).
2013-04-12 01:44:35 +02:00
David Mudrák d7d48b4091 MDL-39087 Add new helper methods to the plugin_manager API
These are mainly intended for callers that had to iterate over
get_plugins() result manually.
2013-04-12 01:44:34 +02:00
David Mudrák c6f4c88ffb MDL-39087 Offer deleting for standard plugins if possible, too
The plugin_manager::is_plugin_folder_removable() method should do just
one thing and do it well. Also, as was raised during the peer-review,
there should not be technical differences between standard plugins and
add-ons.
2013-04-12 01:42:58 +02:00
David Mudrák 86a862cdc2 MDL-39087 Add missing unit tests for the plugin_manager
This patch improves and adds unit tests for the plugin_manager class.
These unit tests cover the existing functionalities. Tests for the
new features related directly with MDL-38259 will be added in a separate
commit (to make it clear what's related to it).
2013-04-12 01:42:58 +02:00
David Mudrák 7a46a55d00 MDL-39087 Fix plugin_manager::plugin_name() implementation
This is not directly related to the issue. However, it turned out that
if this method was called on plugin_manager without loaded plugins, it
would throw an error. This new implementation uses cleaner access to the
plugininfo subclass.
2013-04-12 01:42:58 +02:00
David Mudrák bfaed43214 MDL-39087 Fix missing cronlib inclusion in file_storage::cron()
This is not actually related to MDL-38259 but it was discovered while
running unit tests for file_storage. When running the tests for this
class separately, the cronlib.php was not included (it is included
when this method is normally called during cron execution).
2013-04-12 01:42:58 +02:00
David Mudrák 546b886416 MDL-39087 Delete all component files in uninstall_plugin() 2013-04-12 01:42:58 +02:00
David Mudrák 5718a12313 MDL-39087 Purge all caches at the end of uninstall_plugin()
This is necessary now as many plugins management related features
started to use MUC intensively recently. During the development of this
issue, we realized that the plugin was still considered as installed if
caches were not purged.
2013-04-12 01:42:58 +02:00
David Mudrák 436d94478d MDL-39087 Implement a common interface for uninstalling general plugin
Plugins may use this general tool for uninstallation and eventually
removal of the deployed source code. At the moment, this is implemented
as a wrapper for the core function uninstall_plugin() with an extra hook
in the relevant plugin info subclass.

For non-standard add-ons, the tool can remove the deployed plugin source
code as well, if the web server has required write permissions. Ideally,
all add-ons installed via the new tool_installaddon should be removable
via the web interface as well.
2013-04-12 01:42:58 +02:00
David Mudrák 0b733dd9e2 MDL-39087 Clarify plugininfo_base::get_uninstall_url() return value
The method now returns null if there should be no 'Uninstall' link at
the Plugins management screen. For non-standard add-ons the method now
returns URL to a general uninstall tool.

Plugin info subclasses can still override the method to provide URL to
their own UI for uninstalling. If the plugin type wants to use the
general uninstall tool also for standard plugins, it should override
this method and explicitly return $this->get_default_uninstall_url().
Otherwise, the 'Uninstall' link will be provided for add-ons only.
2013-04-12 01:42:58 +02:00
Matteo Scaramuccia 5ecd13bc66 MDL-38678 SCORM: Runtime Environment (RTE) checks not required in case of SCO Assets 2013-04-11 22:44:29 +02:00
Jean-Philippe Gaudreau d1f167aa56 MDL-38637 CAS Authentication: Undefined index: QUERY_STRING when executing cron 2013-04-11 10:56:21 -04:00
Eloy Lafuente (stronk7) 2f587fb334 Merge branch 'MDL-38828_master' of git://github.com/dmonllao/moodle 2013-04-11 16:44:47 +02:00
Eloy Lafuente (stronk7) 2087fa6223 Merge branch 'MDL-38961_master' of git://github.com/dmonllao/moodle 2013-04-11 16:32:32 +02:00
Eloy Lafuente (stronk7) bd3d4c9e8d Merge branch 'MDL-38963_master' of git://github.com/dmonllao/moodle 2013-04-11 16:30:08 +02:00
Jean-Michel Vedrine c80fb6d95e MDL-38880 Imported Cloze questions lose embedded images or other media 2013-04-11 16:22:20 +02:00
Eloy Lafuente (stronk7) 33fcbe89d4 Merge branch 'MDL-38940_master' of git://github.com/dmonllao/moodle 2013-04-11 16:11:40 +02:00
Eloy Lafuente (stronk7) c51e1fa37e Merge branch 'MDL-38957_master' of git://github.com/dmonllao/moodle 2013-04-11 15:56:45 +02:00
Eloy Lafuente (stronk7) e9bcf8019b Merge branch 'MDL-38958_master' of git://github.com/dmonllao/moodle 2013-04-11 15:52:53 +02:00
Marina Glancy a610d873c6 MDL-39064 Course listings CSS ported from base to bootstrap theme 2013-04-11 23:18:10 +10:00
Marina Glancy 73fe7470d1 MDL-39064 changed sequence of directives to separate course content and course listings 2013-04-11 23:18:10 +10:00
Jayesh Anandani 6b7a020b23 MDL-39029 quiz password: autofocus feature added 2013-04-11 17:26:58 +05:30
Jayesh Anandani 620233b8fb MDL-39054 quiz statistics: move hard-coded text to lang file 2013-04-11 16:41:43 +05:30
Eloy Lafuente (stronk7) b3661ab272 on demand release 2.5beta+ 2013-04-11 12:38:46 +02:00
Eloy Lafuente (stronk7) f6cec2fd62 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-04-11 12:32:32 +02:00
David Monllao 9c5cf72c46 MDL-38961 behat: New test
According to MDLQA-110, edited wiki
pages may be previewed before saving.
2013-04-11 17:29:18 +08:00
David Monllao 07fd6882b8 MDL-38963 behat: New test
According to MDLQA-113, a teacher can
set a wiki to be collaborative or
individual.
2013-04-11 17:28:24 +08:00
David Monllao 58c2fae525 MDL-38940 behat: New test
According to MDLQA-32, glossary entries
can be searched or browsed by alphabet,
category, date or author.
2013-04-11 17:26:53 +08:00
David Monllao d72a183645 MDL-38957 behat: New test
According to MDLQA-94, a teacher can
sort questions in the question bank.
2013-04-11 17:24:12 +08:00
David Monllao a97d274c92 MDL-38958 behat: New test
According to MDLQA-91, a teacher can
edit questions in the question bank.
2013-04-11 17:23:08 +08:00
Dan Poltawski a96eb3a55f Revert "MDL-38254 Assignment Module: add avaialble message to all assignment types"
This reverts commit 2612e21bd4.
2013-04-11 16:52:25 +08:00
Kordan dfa98f1a22 MDL-39080 theme_formal_white: modified "Main menu" block look to resemble the "Navigation" one 2013-04-11 10:52:13 +02:00
David Monllao 1303eb290f MDL-38958 behat: Step definitions to interact with popup windows 2013-04-11 13:58:11 +08:00
David Monllao 336b5b5914 MDL-38958 behat: Step definition to add questions 2013-04-11 11:47:03 +08:00
David Monllao f7040fef91 MDL-38940 behat: Step definition to create glossary categories 2013-04-11 10:46:11 +08:00
Dan Poltawski 3ee53622bf Merge branch 'm25_MDL-39061_Trivial_incorrect_MD' of https://github.com/scara/moodle 2013-04-11 10:19:10 +08:00
Eloy Lafuente (stronk7) e592ccd860 Merge branch 'MDL-38525-master' of https://github.com/damyon/moodle 2013-04-11 00:56:45 +02:00
Eloy Lafuente (stronk7) 2e140437b1 Merge branch 'MDL-38937_master' of git://github.com/dmonllao/moodle 2013-04-11 00:43:59 +02:00
Eloy Lafuente (stronk7) 2cef0f7c33 Merge branch 'MDL-38939_master' of git://github.com/dmonllao/moodle 2013-04-11 00:32:40 +02:00
Eloy Lafuente (stronk7) a7ed1eca08 Merge branch 'MDL-38970_master' of git://github.com/dmonllao/moodle 2013-04-11 00:22:42 +02:00
Eloy Lafuente (stronk7) b812305ef6 Merge branch 'w15_MDL-38989_m25_ttfinal' of git://github.com/skodak/moodle 2013-04-10 15:45:16 +02:00
David Monllao fac8515d63 MDL-38970 behat: New test
According to MDLQA-65, a teacher can
prevent or allow assignment submission
changes.
2013-04-10 17:35:01 +08:00
David Monllao 9afb97a701 MDL-38939 behat: New test
According to MDLQA-33, a teacher can set
whether glossary entries are always editable.
2013-04-10 16:51:53 +08:00
David Monllao 6b9c866757 MDL-38939 behat: Allow admin setting to be set in non-JS sessions 2013-04-10 16:51:48 +08:00
David Monllao 8580cf8637 MDL-38937 behat: New test
According to MDLQA-39, a teacher can
choose whether to provide a printer-friendly
glossary entries list
2013-04-10 16:44:35 +08:00
Damyon Wiese 5e92828603 MDL-38525: Assignment upgrade - Error with comments for unenrolled students.
Students with comments on 'upload' assignments cause errors for the upgrade
tool if they are no longer enrolled. The solution is to allow siteadmin to
see student submissions even if the student is not currently enrolled (you
must be siteadmin to run the upgrade tool).
2013-04-10 16:09:56 +08:00
Petr Škoda 0ddd65d9e0 MDL-38989 add missing test timeout reset 2013-04-10 09:49:19 +02:00
Petr Škoda 71fc50031d MDL-38989 detect changed timeout in tests
The trouble is that PHPUnit should ideally test mostly low level libraries that should not change the timeouts.
2013-04-10 09:48:57 +02:00
Dan Poltawski a4b524e931 Merge branch 'MDL-38973-master' of https://github.com/damyon/moodle 2013-04-10 14:48:49 +08:00
Ryan Panning c6d7956e55 MDL-38525: Assignment - print exception message when assignment upgrade fails.
Change to use getMessage() from the Exception class will prevent "{$a}" when
$e->error is null.
2013-04-10 14:38:05 +08:00
Dan Poltawski 95cd4369bb Merge branch 'MDL-19072' of git://github.com/jmvedrine/moodle 2013-04-10 14:10:37 +08:00
Damyon Wiese 5ef72f85cf MDL-38973 Assignment - Attempt history not displaying for blind marking
This change makes the attempt history display for teachers and students
even when there is no grade (e.g. blind marking). It also will show the previous
attempt in the grading table when a submission has been newly reopened (instead
of a blank submission).
2013-04-10 13:44:42 +08:00
Mark Nelson 1711361042 MDL-26649 forms: ensure that both necessary variables are set before altering calendar image 2013-04-10 12:48:13 +08:00
Dan Poltawski d2b11df8bd Merge branch 'wip-mdl-35883' of git://github.com/rajeshtaneja/moodle 2013-04-10 12:16:23 +08:00
Dan Poltawski e870c16077 Merge branch 'MDL-38254' of git://github.com/rwijaya/moodle 2013-04-10 12:08:46 +08:00
Dan Poltawski aefd2e5d35 Merge branch 'MDL-39041-master' of git://github.com/damyon/moodle 2013-04-10 11:57:49 +08:00
Damyon Wiese 5091b20052 MDL-39041 Assignment - Fix regression in "allow submission changes".
A typo was introduced in the assignment attempt history feature that broke
unlock submissions. This was detected by the new behat test in MDL-38970 (yay).
2013-04-10 11:30:41 +08:00
Damyon Wiese f8ddbd24d7 Merge branch 'MDL-38935' of git://github.com/timhunt/moodle 2013-04-10 11:17:31 +08:00
Dan Poltawski ac208538b7 Merge branch 'MDL-38030-master' of git://github.com/mouneyrac/moodle 2013-04-10 11:11:47 +08:00
Dan Poltawski 7f2ac368e8 Merge branch 'MDL-38933-master' of git://github.com/damyon/moodle 2013-04-10 11:09:05 +08:00
Dan Poltawski bf11c1d128 Merge branch 'MDL-22153' of git://github.com/stronk7/moodle 2013-04-10 10:58:32 +08:00
Dan Poltawski cfaacebb01 Merge branch 'MDL-39059-workshop-settype' of git://github.com/mudrd8mz/moodle 2013-04-10 10:55:45 +08:00
Dan Poltawski fbd90ba191 Merge branch 'MDL-37410-master' of git://github.com/mouneyrac/moodle 2013-04-10 10:37:29 +08:00
Dan Poltawski 0bedc806f9 Merge branch 'MDL-38999' of git://github.com/stronk7/moodle 2013-04-10 10:35:40 +08:00
Andrew Davis 63354ab50d MDL-29877 core_grade:add some upgrade code to fix broken grade items introduced by bad restores 2013-04-10 08:05:50 +08:00
Yuliya Bozhko 04da1a5ac2 Fix error when awarding a badge from recipients page 2013-04-10 11:00:08 +12:00
Andrew Nicols 2637886eda MDL-38904 Theme: Correct data-target for navbar 2013-04-09 23:50:52 +01:00
Andrew Nicols 7e98ebd5ca MDL-38904 Theme/JavaScript: Tidy up bootstrap JS 2013-04-09 23:50:51 +01:00
Petr Škoda 70faad655a MDL-38912 fix incorrect timeout reset 2013-04-10 00:06:34 +02:00
Eloy Lafuente (stronk7) e6c7a5887b Merge branch 'MDL-38938_master' of git://github.com/dmonllao/moodle 2013-04-09 23:43:46 +02:00
Eloy Lafuente (stronk7) 3621633194 Merge branch 'MDL-38950_master' of git://github.com/dmonllao/moodle 2013-04-09 23:42:59 +02:00
Matteo Scaramuccia 67dfcb3df6 MDL-39061 Cache: (trivial) incorrect MD sublisting 2013-04-09 23:40:18 +02:00
Eloy Lafuente (stronk7) 8516f270c6 Merge branch 'MDL-38954_master' of git://github.com/dmonllao/moodle 2013-04-09 23:30:43 +02:00
Eloy Lafuente (stronk7) 696facb159 Merge branch 'MDL-38952_master' of git://github.com/dmonllao/moodle 2013-04-09 23:30:30 +02:00
Eloy Lafuente (stronk7) b896844942 Merge branch 'MDL-38953_master' of git://github.com/dmonllao/moodle 2013-04-09 23:29:59 +02:00
Eloy Lafuente (stronk7) 5bd80500f2 Merge branch 'MDL-38942_master' of git://github.com/dmonllao/moodle 2013-04-09 23:13:44 +02:00
Eloy Lafuente (stronk7) d2f77303b0 Merge branch 'MDL-38969_master' of git://github.com/dmonllao/moodle 2013-04-09 23:13:32 +02:00
Eloy Lafuente (stronk7) a9aa326ea9 Merge branch 'MDL-38967_master' of git://github.com/dmonllao/moodle 2013-04-09 23:13:21 +02:00
David Mudrák 5be1be85f4 MDL-39059 Set explicit boolean type of a hidden field in workshop random allocator form 2013-04-09 21:46:18 +02:00
Eloy Lafuente (stronk7) 6bb78aedee Merge branch 'MDL-38945_master' of git://github.com/dmonllao/moodle 2013-04-09 20:24:17 +02:00
Eloy Lafuente (stronk7) d06700cbd6 Merge branch 'MDL-38944_master' of git://github.com/dmonllao/moodle 2013-04-09 20:23:38 +02:00
Eloy Lafuente (stronk7) f7f8ca2420 Merge branch 'MDL-38943_master' of git://github.com/dmonllao/moodle 2013-04-09 20:22:59 +02:00
Eloy Lafuente (stronk7) a2027b873b Merge branch 'MDL-38822_master' of git://github.com/dmonllao/moodle 2013-04-09 20:00:34 +02:00
Eloy Lafuente (stronk7) c1fc4ba397 Merge branch 'MDL-38820_master' of git://github.com/dmonllao/moodle 2013-04-09 19:59:45 +02:00
Eloy Lafuente (stronk7) 26b7bea2c0 Merge branch 'MDL-39012_master' of git://github.com/dmonllao/moodle 2013-04-09 19:55:29 +02:00
Eloy Lafuente (stronk7) 275c2c9f8a Merge branch 'MDL-38965_master' of git://github.com/dmonllao/moodle 2013-04-09 19:40:39 +02:00
Eloy Lafuente (stronk7) 668aaeb8f3 MDL-26649 forms: temp disable problematic call
The new version of the dateselector is causing JS to stop
working completely in a lot of forms, so I've disabled
temporarily the ofending call to allow other stuff to be
integrated and tested.
2013-04-09 19:37:08 +02:00
sam marshall fba5cbd356 MDL-39000 Conditional activities: Section condition restore errors 2013-04-09 17:42:32 +01:00
Eloy Lafuente (stronk7) 441b165c12 Merge branch 'MDL-39056-download-api-version' of git://github.com/mudrd8mz/moodle 2013-04-09 17:36:57 +02:00
David Mudrák 803738ea41 MDL-39056 Use new version of API when fetching available updates info 2013-04-09 17:07:30 +02:00
Eloy Lafuente (stronk7) f57832826b Merge branch 'MDL-38792' of https://github.com/ppichet/moodle 2013-04-09 14:33:31 +02:00
Eloy Lafuente (stronk7) 77b0357faf MDL-38887 block nav: reshifter module 2013-04-09 10:28:24 +02:00
David Monllao 9bfdaaa541 MDL-38938 behat: New test
According to MDLQA-38, a teacher can
choose whether to allow duplicate
entries in a glossary.
2013-04-09 16:02:16 +08:00
David Monllao 00d373efc5 MDL-38938 behat: Step definition to add glossary entries 2013-04-09 16:01:43 +08:00
Dan Poltawski ca0b1f57fc Merge branch 'wip-MDL-38442-m25' of git://github.com/samhemelryk/moodle 2013-04-09 15:39:57 +08:00
Damyon Wiese 92674e324e Merge branch 'MDL-26649_master' of https://github.com/markn86/moodle 2013-04-09 15:13:21 +08:00
David Monllao 3d7848c584 MDL-38950 behat: New tests
According to MDLQA-1765, a selected
file can be cancelled. Also adding
a test for repository_recent.
2013-04-09 15:02:11 +08:00
David Monllao a2fd9c6fe4 MDL-38950 behat: Step definition to add files from recent files repo 2013-04-09 15:01:16 +08:00
David Monllao 0b297fdc37 MDL-38950 behat: File manager elements contextual menu
Modified to work with both file manager elements
and file/folder elements inside modal windows.
2013-04-09 14:59:31 +08:00
Dan Poltawski ad84f8f9ac Merge branch 'w14_MDL-38927_m25_rolelocalisation' of git://github.com/skodak/moodle 2013-04-09 14:58:47 +08:00
Dan Poltawski 0ae1b8a294 Merge branch 'w14_MDL-39004_m25_roledocs' of git://github.com/skodak/moodle 2013-04-09 14:57:08 +08:00
Mark Nelson f40df210ab MDL-26649 forms: added a calendar icon that will display the calendar pop-up when clicked rather than the select boxes triggering the event 2013-04-09 14:52:57 +08:00
Dan Poltawski 33815b4b7e Merge branch 'wip-MDL-38682-master' of git://github.com/marinaglancy/moodle 2013-04-09 14:49:07 +08:00
Petr Škoda 6f55ce1893 MDL-38927 use role->localname to get real role name 2013-04-09 08:31:25 +02:00
Aparup Banerjee 45edc14126 Merge branch 'w14_MDL-38798_m25_php55' of git://github.com/skodak/moodle 2013-04-09 14:30:52 +08:00
Aparup Banerjee eeb47dbd30 Merge branch 'wip-MDL-38887-m25' of git://github.com/marinaglancy/moodle 2013-04-09 14:21:22 +08:00
Marina Glancy 5f79b34b5e MDL-38682 removed auto page type, created issue MDL-39045 to address this 2013-04-09 16:16:21 +10:00
Damyon Wiese bb18ec5e5b MDL-31969 Grader report - bump version for capabilities and settings. 2013-04-09 14:09:27 +08:00
Damyon Wiese e497e90c76 Merge branch 'wip-mdl-31969' of git://github.com/rajeshtaneja/moodle
Conflicts:
	version.php
2013-04-09 14:09:14 +08:00
Rajesh Taneja 38c1dd194d MDL-31969 grades: Added user preference to show/hide/export suspended users.
User with course:viewsuspendedusers capability can now show/hide/export
enrolled users whose enrolment is suspended or enrolment time is expired.
2013-04-09 14:01:58 +08:00
Damyon Wiese 10c56dc137 MDL-35608 Completion status block - use html_writer::link
Just changing 2 calls from html_writer::tag to html_writer::link.
2013-04-09 13:59:48 +08:00
Damyon Wiese 9adb30759f Merge branch 'wip-MDL-35608-master' of git://github.com/phalacee/moodle 2013-04-09 13:59:45 +08:00
Dan Poltawski 5331215459 Merge branch 'MDL-39005' of git://github.com/stronk7/moodle 2013-04-09 13:49:09 +08:00
Aparup Banerjee 163e0d3e70 Merge branch 'MDL-38508-m' of git://github.com/andrewnicols/moodle 2013-04-09 13:27:56 +08:00
Damyon Wiese 0180dfdede MDL-38865 Completion report: Version bump for css changes. 2013-04-09 13:21:04 +08:00
Damyon Wiese 67879710ee Merge branch 'MDL-38865-master' of https://github.com/mackensen/moodle 2013-04-09 13:20:52 +08:00
Dan Poltawski 224db0e83b Merge branch 'MDL-38981' of git://github.com/jmvedrine/moodle 2013-04-09 13:19:10 +08:00
Dan Poltawski c64d2c0acd Merge branch 'wip-MDL-34346-master' of git://github.com/marinaglancy/moodle 2013-04-09 13:09:57 +08:00
Marina Glancy 0f232ed6e8 MDL-34346 fixed missing string and correct instantiating of repositories in tests 2013-04-09 14:40:15 +10:00
Dan Poltawski 69203ea923 Merge branch 'wip-MDL-38682-master' of git://github.com/marinaglancy/moodle 2013-04-09 11:49:55 +08:00
Dan Poltawski e26b02ddad Merge branch 'wip-MDL-38593-master' of git://github.com/marinaglancy/moodle 2013-04-09 11:46:27 +08:00
Marina Glancy 9dd85edf02 MDL-38682 Allow configuring blocks for courses lists pages
Also fixed block configuration form error when pagetype string does not exist (for course- pages)
2013-04-09 13:24:31 +10:00
Dan Poltawski 91af884c4a MDL-34346 - bump version 2013-04-09 11:17:58 +08:00
Dan Poltawski a676e858f9 Merge branch 'wip-MDL-34346-master' of git://github.com/marinaglancy/moodle 2013-04-09 10:57:50 +08:00
Marina Glancy cb52eeab28 MDL-38593 Argument 'id' renamed to 'categoryid' in course/manage.php 2013-04-09 12:55:50 +10:00
David Monllao eb18e0232f MDL-38967 behat: New test
According to MDLQA-58, in an assignment
students can upload files for assessment.
2013-04-09 10:50:29 +08:00
Dan Poltawski fadec475d4 Merge branch 'MDL-38766/master' of github.com:kemitix/moodle 2013-04-09 10:37:23 +08:00
David Monllao 912a46dbce MDL-38969 behat: New test
According to MDLQA-59, in an assignment
students can add and edit text online.
2013-04-09 10:32:05 +08:00
Marina Glancy 30142c1905 MDL-38593 Merge code from /course/category.php into /course/index.php 2013-04-09 12:21:05 +10:00
Jason Fowler f982303d62 MDL-35608 - Blocks - Updating the Completion Status block to use HTML Writer 2013-04-09 09:50:08 +08:00
Dan Poltawski b11c74f492 Merge branch 'wip-MDL-38541-m25' of git://github.com/marinaglancy/moodle 2013-04-09 09:47:47 +08:00
Marina Glancy 4202471a36 MDL-38541 Make sure course cache is cleared properly during upgrade
- Core upgrade MUST NOT call rebuild_course_cache() at all - update DB directly instead
- Plugins MUST call rebuild_course_cache(.., TRUE) for clearing the course cache and can not update DB directly
- Plugins MUST NOT call rebuild_course_cache() unless for clearing the cache
- Created function upgrade_ensure_not_running() to be included in other functions that can not be used during upgrade
2013-04-09 11:31:18 +10:00
Eloy Lafuente (stronk7) dba85495c1 Merge branch 'MDL-38934-master' of git://github.com/danpoltawski/moodle 2013-04-09 02:47:51 +02:00
AMOS bot 1e4a484378 Automatically generated installer lang files 2013-04-09 00:37:48 +00:00
Eloy Lafuente (stronk7) 552f00fb86 Merge branch 'w14_MDL-38750_m25_ocierrors' of git://github.com/skodak/moodle 2013-04-09 02:26:49 +02:00
Eloy Lafuente (stronk7) e934648d07 Merge branch 'w14_MDL-38753_m25_ocicount' of git://github.com/skodak/moodle 2013-04-09 02:25:12 +02:00
Eloy Lafuente (stronk7) 13af1f0497 Merge branch 'w14_MDL-39038_m25_oracleconcat' of git://github.com/skodak/moodle 2013-04-09 02:23:36 +02:00
Eloy Lafuente (stronk7) cf42eece55 Merge branch 'w14_MDL-39027_m25_sqlsrvdatatype' of git://github.com/skodak/moodle 2013-04-09 02:19:41 +02:00
Eloy Lafuente (stronk7) 6afbf283de Merge branch 'w14_MDL-39028_m25_sqlsrconcat' of git://github.com/skodak/moodle 2013-04-09 02:17:56 +02:00
Sam Hemelryk 8718ffbac5 MDL-38442 navigation: set_expansion_limit now only hides structural nodes 2013-04-09 12:07:10 +12:00
Eloy Lafuente (stronk7) 187afd0f52 Merge branch 'w14_MDL-39019_m25_mssqldatatype' of git://github.com/skodak/moodle 2013-04-09 02:01:04 +02:00
ppichet 3d9645ae6e MDL-38792 Update question/type in-line comments to codechecker standards
Correct bad formated infiles in question/type directories
2013-04-08 19:59:51 -04:00
Eloy Lafuente (stronk7) a035bc9b6d Merge branch 'w14_MDL-39024_m25_mssqlseek' of git://github.com/skodak/moodle 2013-04-09 01:58:20 +02:00
Eloy Lafuente (stronk7) ce2cd44908 Merge branch 'w14_MDL-39022_m25_mssqlconcat' of git://github.com/skodak/moodle 2013-04-09 01:53:57 +02:00
Eloy Lafuente (stronk7) 60f9cae763 Merge branch 'MDL-38618_master' of git://github.com/dmonllao/moodle 2013-04-09 01:44:58 +02:00
Eloy Lafuente (stronk7) 70273fb6ae Merge branch 'MDL-38912' of git://github.com/timhunt/moodle 2013-04-09 01:36:20 +02:00
Eloy Lafuente (stronk7) 196bd8c885 Merge branch 'w14_MDL-38786_m25_yui391' of git://github.com/skodak/moodle 2013-04-09 01:32:35 +02:00
Eloy Lafuente (stronk7) 0460dc74db MDL-34222 simplepie: fix permissions. 2013-04-09 01:28:06 +02:00
Eloy Lafuente (stronk7) de0fc867ad Merge branch 'w14_MDL-34222_m25_simplepie131' of git://github.com/skodak/moodle 2013-04-09 01:24:08 +02:00
Eloy Lafuente (stronk7) b19e8a1fb9 Merge branch 'MDL-38744-master' of git://github.com/danpoltawski/moodle 2013-04-09 01:13:57 +02:00
Eloy Lafuente (stronk7) d29afc4577 Merge branch 'MDL-38907-master' of git://github.com/damyon/moodle 2013-04-09 00:58:02 +02:00
Eloy Lafuente (stronk7) 5df002ad68 Merge branch 'MDL-38849' of git://github.com/timhunt/moodle 2013-04-09 00:52:27 +02:00
Petr Škoda 60e9a2fe5d MDL-39027 make sure sqlsrv does not return non-string data types 2013-04-08 23:29:52 +02:00
Petr Škoda 031a6de97a MDL-39038 nasty workaround for Oracle NULL concats 2013-04-08 23:23:08 +02:00
Andrew Robert Nicols 56d465b2d3 MDL 38508 JavaScript: Split out AJAX and non-AJAX help
We need to keep these two separate as scripts which define AJAX_SCRIPT
before loading config.php will use a different default renderer and will
return appropriate exceptions which can be parsed by M.core.exception and
M.core.ajaxException correctly.

This also addresses an issue whereby a missing heading could break the
tooltip.
2013-04-08 21:01:20 +01:00
Eloy Lafuente (stronk7) 5a0443cc14 Merge branch 'MDL-39023-parentlang' of git://github.com/mudrd8mz/moodle 2013-04-08 16:57:38 +02:00
Eloy Lafuente (stronk7) d506f422c9 MDL-38999 timezones: add some TZ/stamps know to be problematic to tests. 2013-04-08 16:09:41 +02:00
David Mudrák b7acd9be50 MDL-39023 Make get_language_dependencies() aware of circular dependency risk
The patch reimplements the core_string_manager::get_language_dependencies()
so that potentially mis-configured language packs with circular
dependencies or self dependency do not make the site unavailable.
Unit tests for the expected behaviour are added.
2013-04-08 14:31:27 +02:00
Petr Škoda 50f743021e MDL-39028 fix sqlsrv concat type conversion 2013-04-08 13:17:56 +02:00
Petr Škoda 03216719c3 MDL-38753 tweak count SQL to make stupid Oracle happy 2013-04-08 12:33:49 +02:00
Tim Hunt c4dbaf74e8 MDL-38849 editor collapsing: cope with verbose languages
We can't fix the width of the tab, because the length of the string
'Show editing tools' varies a LOT between langauges.
2013-04-08 10:44:51 +01:00
Tim Hunt e7373221cf MDL-38849 editor CSS: re-format to match coding style. 2013-04-08 10:37:22 +01:00
David Monllao ad2f644087 MDL-38942 behat: New test
According to MDLQA-4582, a teacher can
set a group assignment.
2013-04-08 17:33:37 +08:00
Tim Hunt a6f849cbe6 MDL-38935 quiz autosave: save HTML editor contents.
Also, ignore changes in scrollpos.
2013-04-08 10:29:58 +01:00
David Monllao e613fd905b MDL-38945 behat: New test
According to MDLQA-142, a teacher can
organise students into groups within
a course.
2013-04-08 17:29:20 +08:00
David Monllao ecd580f310 MDL-38945 behat: Step definition to add users to groups 2013-04-08 17:28:53 +08:00
Damyon Wiese c2bb7f6007 MDL-38907 Course: Remove unused CSS causing jump menu to be center aligned. 2013-04-08 16:45:44 +08:00
David Monllao 862fcc8b70 MDL-38943 behat: New test
According to MDLQA-2417, teachers can
specify unique group and grouping ID numbers.
2013-04-08 16:41:40 +08:00
Petr Škoda 4c97487728 MDL-39024 fix MSSQL seek past the end of recordset 2013-04-08 10:36:37 +02:00
Petr Škoda 7a755250df MDL-39022 fix MSSQL concat type conversion 2013-04-08 10:19:51 +02:00
Petr Škoda 1b64533069 MDL-39019 make sure MSSQL does not return non-string data types 2013-04-08 10:06:55 +02:00
Damyon Wiese 4fd1861c8f Merge branch 'MDL-37562-master' of git://github.com/ankitagarwal/moodle 2013-04-08 15:42:36 +08:00
Dan Poltawski 91a3c9ba9f Merge branch 'MDL-38179_master' of git://github.com/dmonllao/moodle 2013-04-08 15:36:07 +08:00
Dan Poltawski 7925d3ff10 MDL-38934 - fix missing setType() calls in advanced grading forms 2013-04-08 15:24:20 +08:00
Ankit Agarwal 8aba76fddf MDL-37562 calendar: Updating upgrade.txt to mention calendar_update_subscription() 2013-04-08 15:03:31 +08:00
Ankit Agarwal ab37339d09 MDL-37562 calendar: Remove all hardcoded updating of calendar subscriptions, use calendar_update_subscription() instead 2013-04-08 15:03:31 +08:00
Ankit Agarwal 5ae4e15344 MDL-37562 calendar: Adding unit tests for calendar_update_subscription() 2013-04-08 15:03:31 +08:00
David Monllao bd1aca8834 MDL-38965 behat: New test
According to MDLQA-5229, an admin
can add or remove items from the
TinyMCE editor toolbar.
2013-04-08 14:42:47 +08:00
David Monllao bd197963ef MDL-38944 behat: New test
According to MDLQA-2422; automatic
creation of groups.
2013-04-08 14:40:52 +08:00
Dan Poltawski 0fc2ab8047 Merge branch 'MDL-37676' of git://github.com/appalachianstate/moodle 2013-04-08 14:05:21 +08:00
Ankit Agarwal 1f7981e079 MDL-37562 calendar: Adding a api calendar_update_subscription() to update calendar events 2013-04-08 13:45:24 +08:00
Damyon Wiese 278c280e8f Merge branch 'MDL-38878_master' of git://github.com/dmonllao/moodle 2013-04-08 13:02:38 +08:00
Damyon Wiese 5fbfc955d8 Merge branch 'MDL-39015-master' of git://github.com/danpoltawski/moodle 2013-04-08 12:32:56 +08:00
David Monllao 1c1c28660a MDL-38952 behat: New test
According to MDLQA-134, a users
can manage their contacts.
2013-04-08 12:25:25 +08:00
Dan Poltawski fd0768c0e7 MDL-39015 navigation: remove course reports from navigation
Regression from the commit in
278065528a
2013-04-08 12:25:14 +08:00
David Monllao e6d18d9d00 MDL-38952 behat: Adding no-JS compatibility
This step is widely used by JS scenarios,
with Javascript disabled this step fails tests
as tree nodes al already expanded; we can
reuse JS scenarios for no-JS tests skiping
this step in no-JS mode.
2013-04-08 12:24:23 +08:00
Damyon Wiese a6c215ab1f Merge branch 'MDL-38741-master' of git://github.com/danpoltawski/moodle 2013-04-08 12:00:52 +08:00
Dan Poltawski bf48be3c7c Merge branch 'MDL-38634' of git://github.com/rlorenzo/moodle 2013-04-08 11:55:55 +08:00
David Monllao 1091aca74f MDL-38953 behat: New test
According to MDLQA-136, users
can search their message history.
2013-04-08 11:51:08 +08:00
David Monllao 21c6f11c1a MDL-38953 behat: Step definition to send a message 2013-04-08 11:50:37 +08:00
David Monllao a34c0b1366 MDL-38953 behat: Disable email message processor
Disabled before storing database into
serialized files.
2013-04-08 11:46:13 +08:00
Dan Poltawski b23fcda2b9 Merge branch 'MDL-39006' of git://github.com/stronk7/moodle 2013-04-08 11:14:03 +08:00
Tim Lock be47011d3c MDL-35868: quiz: Use correct attemptnumber when a last attempt exists. 2013-04-08 11:09:04 +08:00
Dan Poltawski efc9febcd8 Merge branch 'wip-MDL-38701-m25' of git://github.com/marinaglancy/moodle 2013-04-08 10:22:59 +08:00
David Monllao c246015a58 MDL-38954 behat: New test
According to MDLQA-133, a user can not
send messages to someone who has blocked
him.
2013-04-08 10:09:06 +08:00
David Monllao f9d3667e7b MDL-38179 behat: Step definition to click on a table row element 2013-04-08 10:07:21 +08:00
Marina Glancy 498e9a9a38 MDL-38701 Added missing require_once() before calling course_get_format 2013-04-08 11:34:05 +10:00
David Monllao 0875eeef4f MDL-39012 behat: Fix missing setType calls 2013-04-08 09:21:10 +08:00
David Monllao 594b5a7f5f MDL-38820 behat: New test
According to MDLQA-140, a teacher can enable
guest access to a course.
2013-04-08 09:05:59 +08:00
Marina Glancy 938c7dd3bc MDL-38887 dim hidden branches in navigation expanded via AJAX requests 2013-04-08 11:05:37 +10:00
David Monllao f61abd1f68 MDL-38822 behat: New test
According to MDLQA-139, a teacher can
enable self-enrolment in a course.
2013-04-08 09:04:08 +08:00
David Monllao 7b33327126 MDL-38878 behat: Also update composer dependencies after site install/reinstall 2013-04-08 09:03:04 +08:00
Marina Glancy 118ca9e96d MDL-34346 Cache retrieved repositories 2013-04-08 11:00:22 +10:00
Marina Glancy cfb713519d MDL-34346 Correctly set repository current context 2013-04-08 11:00:22 +10:00
AMOS bot 19e8e15f6c Automatically generated installer lang files 2013-04-08 00:36:04 +00:00
Yuliya Bozhko 8d107e982d Fix missing form element setType() issue in /badges/mybackpack.php 2013-04-08 12:31:36 +12:00
Rex Lorenzo 1207ae1a34 MDL-38634 folder: Problems displaying multiple folder resources inline in the course page 2013-04-07 17:28:24 -07:00
Mary Evans 15153cf229 MDL-39010 theme_bootstrap: ADDED $THEME->hidefromselector = true; to theme/bootstrap/config.php. 2013-04-08 01:23:58 +01:00
Eloy Lafuente (stronk7) f1d628c7b4 MDL-38999 timezones: fixed timezone information. 2013-04-08 01:04:42 +02:00
Eloy Lafuente (stronk7) 7b14865d87 MDL-38999 timezones: fix maxyear handling on rule calculation. 2013-04-08 00:44:50 +02:00
Matteo Scaramuccia aefeca7793 MDL-35840 SCORM TOC: fixed a typo, improvements on getting the focus 2013-04-08 09:43:20 +12:00
Dan Marsden c848280ad8 MDL-37844 SCORM: fix js error and highlight selected node in TOC. 2013-04-08 09:39:05 +12:00
Petr Škoda b1c5c4a887 MDL-38750 show errors at the end of OCI setup script
Credit goes to Damyon Wiese.
2013-04-07 19:44:46 +02:00
Eloy Lafuente (stronk7) 0fd23b76de MDL-39006 environment: raise all uses of 5.3.2 to 5.3.3 2013-04-07 18:32:15 +02:00
Eloy Lafuente (stronk7) 6b7df0b5d1 MDL-39005 unittest: add the upgradelib test template. 2013-04-07 17:47:16 +02:00
Petr Škoda fa0ad435f5 MDL-39004 improve role docs 2013-04-07 17:39:29 +02:00
Eloy Lafuente (stronk7) c1782ec626 MDL-22153 backup: delete old, unused, 1.9 files 2013-04-07 17:20:41 +02:00
Petr Škoda d958e6bd70 MDL-34222 import simplepie 1.3.1 2013-04-07 15:35:27 +02:00
Petr Škoda ecff46cddc MDL-38798 remove unused property which was giving notices in PHP 5.5beta 2013-04-07 11:41:19 +02:00
AMOS bot 0c1e7f5504 Automatically generated installer lang files 2013-04-07 00:37:23 +00:00
Petr Škoda b207e601f5 MDL-38786 import YUI 3.9.1 2013-04-06 19:08:09 +02:00
Aaron Barnes ece1f162c3 MDL-38011 completion: Use new localised role names 2013-04-07 00:00:05 +13:00
Aaron Barnes 15b97a9f21 MDL-37537 completion: Fix incorrect lang string reference in block 2013-04-06 23:33:19 +13:00
Jean-Michel Vedrine 552e36a6a3 MDL-38981 Wrong responsetemplateformat restoring 1.9 essay questions
During restore of 1.9 backups, missing responsetemplateformat and
graderinfoformat values should be set to FORMAT_HTML.
2013-04-06 11:19:34 +02:00
Simon Coggins 60d72efb4e MDL-38997 badges: Add checks to fix notices if badge settings not yet configured 2013-04-06 14:24:48 +13:00
Tim Hunt 82081c1f7d MDL-38912 prevent time-outs during unit tests. 2013-04-05 18:37:25 +01:00
Eloy Lafuente (stronk7) 69ea3d7dd3 NOBUG: Bump to 2.5beta+
we don't package tagged commits in master, so let's
bump to beta+ and get the packaging done.
2013-04-05 14:29:54 +02:00
Andrea Bicciolo 0e633595d8 MDL-38480_m Fix for messy usage of language strings in block course overview 2013-04-05 12:30:22 +02:00
Dan Poltawski 422f68fb86 Moodle release 2.5beta 2013-04-05 18:03:30 +08:00
Dan Poltawski 1a90b9b6dc fix permissions 2013-04-05 17:56:05 +08:00
Dan Poltawski 0676f20581 ie9 svg compatibility fixes 2013-04-05 17:55:06 +08:00
Dan Poltawski 203a2538d6 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-04-05 17:52:13 +08:00
Damyon Wiese eafa0ba46a Merge branch 'MDL-35073_master' of https://github.com/markn86/moodle 2013-04-05 17:39:13 +08:00
Mark Nelson c517765430 MDL-35073 badges: passed the session key in the enable access URL 2013-04-05 17:10:43 +08:00
Damyon Wiese 8806e79a14 Merge branch 'openbadges-fixes' of https://github.com/danpoltawski/moodle 2013-04-05 17:10:14 +08:00
Dan Poltawski 8b8641876b Merge branch 'MDL-36804-fix3' of git://github.com/damyon/moodle 2013-04-05 16:43:43 +08:00
Damyon Wiese 9f014461db MDL-36804 Assign attempt history: Submit button missing 2013-04-05 16:40:16 +08:00
Paul Campbell 4f6c447be1 MDL-38766 wiki2.0: fix redirects
Signed-off-by: Paul Campbell <pcampbell@carnegiecollege.ac.uk>
2013-04-05 09:36:46 +01:00
Dan Poltawski 31f2822a5e Merge branch 'MDL-36804-master-fix2' of git://github.com/damyon/moodle 2013-04-05 16:00:35 +08:00
Damyon Wiese e7af192606 MDL-36804 Assign history: Fix automatic coding error when using auto-reopen method
This fix should call the gradebook function is_passed - but the gradebook is returning a record with
not enough information to create an instance of grade_grade.
2013-04-05 15:53:38 +08:00
Dan Poltawski 2916ca61be MDL-35073 badges: fix incorrect fk name
Good spotting Damyon!
2013-04-05 15:47:15 +08:00
Dan Poltawski bdc518b507 MDL-35073 badges: fix duplicate indexes 2013-04-05 15:27:32 +08:00
Dan Poltawski c39896e85d Revert "MDL-38678 SCORM: Runtime Environment (RTE) checks not required in case of SCO Assets"
This reverts commit fe104762c9.
2013-04-05 14:34:07 +08:00
Damyon Wiese f39aaadb35 MDL-38933 Assign - improved wording for help string. 2013-04-05 14:20:45 +08:00
Dan Poltawski ebe558acb3 MDL-38744 completion: add missing setType and properly allow float
Now can use correct decimal seperator
2013-04-05 14:13:46 +08:00
Jerome Mouneyrac 41f5285f16 MDL-38030 new core_user_get_users_by_field function deprecates core_user_get_users_by_id 2013-04-05 13:14:49 +08:00
Damyon Wiese a8fdb36cf2 MDL-36804 Assignment attempt history: Fix warning on saving a new grade.
This is a fix for the case when there is a submission but no grade.
2013-04-05 10:03:00 +08:00
Eloy Lafuente (stronk7) 577173a51f Merge branch 'MDL-38897-master' of git://github.com/danpoltawski/moodle 2013-04-05 03:21:52 +02:00
Damyon Wiese 6aa38ef89a Merge branch 'wip-MDL-38708-master' of git://github.com/marinaglancy/moodle 2013-04-05 09:19:09 +08:00
Eloy Lafuente (stronk7) 6481aafbb8 MDL-38852 repository_recent: add missing type. 2013-04-05 03:06:15 +02:00
Eloy Lafuente (stronk7) c5f4080a10 Merge branch 'MDL-38852-master' of git://github.com/danpoltawski/moodle 2013-04-05 02:51:48 +02:00
Eloy Lafuente (stronk7) dbc5692fc5 Merge branch 'MDL-38883-master' of git://github.com/danpoltawski/moodle 2013-04-05 02:48:37 +02:00
Eloy Lafuente (stronk7) 8f3885f23d Merge branch 'MDL-38886-master' of git://github.com/danpoltawski/moodle 2013-04-05 02:46:15 +02:00
Marina Glancy 97d5e39c49 MDL-38708 Changed test to be more accurate 2013-04-05 10:52:09 +11:00
Andrew Robert Nicols b0fb4c12d7 MDL-38667 JavaScript: Don't use -min files for YUI CSS 2013-04-04 17:18:56 +02:00
Eloy Lafuente (stronk7) c001c51a26 Merge branch 'MDL-36570' of git://github.com/colchambers/moodle 2013-04-04 16:59:34 +02:00
Tim Hunt c7fbfe46f9 MDL-38538 question autosave: fix sequencecheck handling. 2013-04-04 15:32:32 +01:00
Colin Chambers 11a66e2c5a MDL-36570 Grouped question type answer fields now display errors 2013-04-04 15:29:39 +01:00
Tim Hunt e3485c5f75 MDL-38538 quiz autosave: fix JavaScript errors.
1. Make cancelling the delay more robust.
2. Ignore changes in flag state. They are already saved using AJAX.
3. Typo that caused an error when there was no TinyMCE on the page.
2013-04-04 12:32:54 +01:00
Tim Hunt aa81e35847 MDL-38209 quiz css: fix minor regression. 2013-04-04 11:17:39 +01:00
Colin Chambers c3f21ec516 MDL-36570 Added missing calculatedmulti fields 2013-04-04 11:17:33 +01:00
Dan Poltawski 83e353fae9 MDL-38886 course: missing setType calls when adding a new category 2013-04-04 17:22:28 +08:00
Dan Poltawski d60ee78a5f MDL-38883 calendar: fix missing setType
Also remove duplicate sesskey definition (this is done by formslib
internally)
2013-04-04 17:17:37 +08:00
Dan Poltawski 8971ddd5a9 MDL-38741 qtype_truefalse: fix missing setType call 2013-04-04 16:32:46 +08:00
Aparup Banerjee 37240ce5c6 Merge branch 'wip-MDL-38708-master' of git://github.com/marinaglancy/moodle
Conflicts:
	version.php
2013-04-04 15:07:01 +08:00
Dan Poltawski b7d20148a1 MDL-38897 formslib: add unit tests for setType debugging 2013-04-04 14:59:21 +08:00
Dan Poltawski 48056d5459 MDL-38885 - don't test for setType in display() itself
Doing it in _process_submission is enough.
2013-04-04 14:58:14 +08:00
Damyon Wiese 6ed18a6828 Merge branch 'MDL-38633' of git://github.com/stronk7/moodle 2013-04-04 14:26:15 +08:00
Dan Poltawski 589fe9c85d Merge branch 'MDL-38590_master-fix-behat' of git://github.com/dmonllao/moodle 2013-04-04 14:05:17 +08:00
David Monllao b0f0995b09 MDL-38590 behat: Fixing broken behat test 2013-04-04 13:54:40 +08:00
David Monllao b82e0c17fb MDL-38691 behat: Fixing behat tests 2013-04-04 13:52:24 +08:00
Dan Poltawski ce5bb3a912 MDL-38741 qtype_calculatesimple: missing setType call 2013-04-04 11:57:46 +08:00
Dan Poltawski dfd89b0bb9 MDL-38741 qtype_calculatedmulti: fix missing setType 2013-04-04 11:49:19 +08:00
Dan Poltawski 1e988d262b MDL-38741 qtype_calculate: fix missing setType 2013-04-04 11:45:11 +08:00
Damyon Wiese 57bc1beb1b MDL-37009 Course - Fix typo in new lang string. 2013-04-04 11:24:13 +08:00
Damyon Wiese 200571507f Merge branch 'wip-MDL-37009-master' of git://github.com/marinaglancy/moodle 2013-04-04 11:22:20 +08:00
Rossiani Wijaya 2612e21bd4 MDL-38254 Assignment Module: add avaialble message to all assignment types 2013-04-04 11:04:22 +08:00
Dan Poltawski f88ff0e7cf Merge branch 'MDL-38861' of git://github.com/stronk7/moodle 2013-04-04 11:00:01 +08:00
Damyon Wiese 1b774df9a7 MDL-35073 Open badges - close session before making curl request to check backpack server. 2013-04-04 10:39:51 +08:00
Damyon Wiese b38f932abf Merge branch 'MDL-38823_master-fix' of git://github.com/dmonllao/moodle 2013-04-04 10:34:50 +08:00
AMOS bot a2c27c823a Automatically generated installer lang files 2013-04-04 00:36:08 +00:00
Eloy Lafuente (stronk7) 0c7ad0ab13 Merge branch 'MDL-38612-master-int' of git://github.com/FMCorz/moodle 2013-04-04 01:15:34 +02:00
Eloy Lafuente (stronk7) 1b882ab87b Merge branch 'MDL-38590-master-int' of git://github.com/FMCorz/moodle 2013-04-04 01:14:36 +02:00
Eloy Lafuente (stronk7) 33871fbf3e Merge branch 'MDL-38751-master' of git://github.com/FMCorz/moodle 2013-04-04 01:07:23 +02:00
Eloy Lafuente (stronk7) 5c98b64b00 Merge branch 'MDL-38666-m' of git://github.com/andrewnicols/moodle 2013-04-04 01:04:00 +02:00
Eloy Lafuente (stronk7) 235fc2562c Merge branch 'MDL-38667-m' of git://github.com/andrewnicols/moodle 2013-04-04 01:02:20 +02:00
Eloy Lafuente (stronk7) a37a698417 Merge branch 'MDL-38611-master-int' of git://github.com/FMCorz/moodle 2013-04-04 00:53:05 +02:00
Eloy Lafuente (stronk7) 75fb383260 Merge branch 'MDL-38599-master-int' of git://github.com/FMCorz/moodle
Conflicts:
	mod/glossary/mod_form.php
2013-04-04 00:51:47 +02:00
Eloy Lafuente (stronk7) 68a6d3cd9f Merge branch 'MDL-38645-master' of git://github.com/FMCorz/moodle 2013-04-04 00:34:24 +02:00
Eloy Lafuente (stronk7) 76d86181a3 Merge branch 'wip-mdl-38494' of git://github.com/rajeshtaneja/moodle 2013-04-03 23:45:40 +02:00
Eloy Lafuente (stronk7) 1ca5ce1b33 Merge branch 'MDL-36570' of git://github.com/timhunt/moodle 2013-04-03 23:09:19 +02:00
Eloy Lafuente (stronk7) 896efbeadb Merge branch 'MDL-38756-m' of git://github.com/andrewnicols/moodle 2013-04-03 21:59:18 +02:00
Eloy Lafuente (stronk7) 0e864c3f21 Merge branch 'MDL-38733-workshop-rubric-css' of git://github.com/mudrd8mz/moodle 2013-04-03 20:06:49 +02:00
Eloy Lafuente (stronk7) 2a5e0d6321 Merge branch 'MDL-38815_master' of git://github.com/dmonllao/moodle 2013-04-03 19:48:02 +02:00
Charles Fulton ad23973cdc MDL-38865 report_progress: narrow CSS selectors 2013-04-03 08:46:39 -07:00
Eloy Lafuente (stronk7) 7191a59fc9 Merge branch 'MDL-38615_master' of git://github.com/dmonllao/moodle 2013-04-03 17:12:04 +02:00
Eloy Lafuente (stronk7) 6b117438b9 Merge branch 'MDL-38482_master' of git://github.com/dmonllao/moodle 2013-04-03 16:48:42 +02:00
Eloy Lafuente (stronk7) ad46ea0b2f MDL-38861 upload users: add missing setType() calls. 2013-04-03 16:18:38 +02:00
Dan Poltawski 626403eb73 Merge branch 'MDL-38538_clean' of git://github.com/timhunt/moodle 2013-04-03 20:22:03 +08:00
Eloy Lafuente (stronk7) 57902e2738 Merge branch 'MDL-38619_master' of git://github.com/dmonllao/moodle 2013-04-03 13:33:16 +02:00
Eloy Lafuente (stronk7) c9f8620492 Merge branch 'MDL-26956' of git://github.com/timhunt/moodle 2013-04-03 13:20:23 +02:00
Tim Hunt d2e32121b0 MDL-26956 user selector: fix regressions sam caused. 2013-04-03 11:44:23 +01:00
Tim Hunt 000fbcf2bd MDL-38538 quiz autosave: fix language string.
This feature does not actually provide spiritual salvation.
2013-04-03 11:23:41 +01:00
Dan Poltawski aed60c64af Merge branch 'MDL-36804-master' of git://github.com/damyon/moodle 2013-04-03 17:32:15 +08:00
Damyon Wiese e84900648b MDL-36804 Assign attempt history: Fix course unit tests
Handle missing attemptreopenmethod in add/update instance.
2013-04-03 17:31:12 +08:00
Dan Poltawski 369496c31e Merge branch 'm25_MDL-38678_SCORM_RTE_not_required_for_SCO_Assets' of https://github.com/scara/moodle 2013-04-03 17:22:38 +08:00
Dan Poltawski 41b9392daa Merge branch 'MDL-38657_master' of git://github.com/lazydaisy/moodle 2013-04-03 16:50:43 +08:00
Aparup Banerjee b8eb2f3dc6 Merge branch 'm25_MDL-38745_SCORM_API_Debugging_trivial_issue' of git://github.com/scara/moodle 2013-04-03 16:48:53 +08:00
Dan Poltawski 71573249ae Merge branch 'MDL-36804-master' of git://github.com/damyon/moodle 2013-04-03 16:47:15 +08:00
Damyon Wiese c9c34c7a65 MDL-36804 Assign attempt history - Add missing index to upgrade step. 2013-04-03 16:44:31 +08:00
Aparup Banerjee 7a2a430aa5 Merge branch 'MDL-38809' of git://github.com/timhunt/moodle 2013-04-03 16:32:42 +08:00
Dan Poltawski 5cc929bc12 Merge branch 'MDL-38691-master-int' of git://github.com/FMCorz/moodle 2013-04-03 16:27:16 +08:00
Dan Poltawski 5e45f6a569 Merge branch 'MDL-36804-master' of git://github.com/damyon/moodle 2013-04-03 16:18:50 +08:00
Damyon Wiese 74c9283854 MDL-36804: Assign attempt history - add upgrade.txt 2013-04-03 16:16:21 +08:00
Damyon Wiese 82b175e868 Merge branch 'w13_MDL-38627_m25_byteservingstop' of git://github.com/skodak/moodle 2013-04-03 15:48:35 +08:00
Dan Poltawski 89ea5ecd45 Merge branch 'MDL-37602-workshop-overall-feedback' of git://github.com/mudrd8mz/moodle 2013-04-03 15:39:48 +08:00
Damyon Wiese b64a05b996 MDL-26644 Course - Remove completion tracking begins on enrolment setting from behat. 2013-04-03 15:30:49 +08:00
David Mudrák 5582ea0a9b MDL-37602 Fix broken workshop unit tests 2013-04-03 09:28:11 +02:00
Damyon Wiese 9855770d6c Merge branch 'MDL-38610-master-int' of git://github.com/FMCorz/moodle 2013-04-03 14:48:06 +08:00
Dan Poltawski 998c5996e0 Merge branch 'MDL-38808' of git://github.com/jmvedrine/moodle 2013-04-03 14:46:58 +08:00
Damyon Wiese 6fb437b2bb Merge branch 'MDL-38705' of git://github.com/jonof/moodle 2013-04-03 14:35:12 +08:00
Damyon Wiese dcf6318515 MDL-26644 Course - Version bump for upgrade script. 2013-04-03 14:32:19 +08:00
Damyon Wiese 7bf602d9d3 Merge branch 'MDL-26644-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/db/install.xml
	lib/db/upgrade.php
2013-04-03 14:32:11 +08:00
Dan Poltawski dc4260d918 Merge branch 'MDL-38681-master-int' of git://github.com/FMCorz/moodle 2013-04-03 14:27:08 +08:00
Damyon Wiese fab5cb3604 MDL-36804: Assign resubmission history - remove locked/mailed
Remove locked/mailed flags from the grade record in the unit tests.
It just would not have done anything because the columns dont exist.
2013-04-03 14:17:00 +08:00
Dan Poltawski ac8bc0f947 Merge branch 'MDL-34640' of git://github.com/timhunt/moodle 2013-04-03 13:57:02 +08:00
David Monllao 7a6204ce1d MDL-38823 behat: Fixing related scenarios 2013-04-03 13:56:31 +08:00
David Monllao 060bafefe3 MDL-38823 behat: New behat_form_radio
To deal with radio inputs after allowing
behat_form_field to delegate in specific
fields managers. It also fixes a BIG issue
when calling a no required class.
2013-04-03 13:55:42 +08:00
Dan Poltawski ba98c8ab54 Merge branch 'MDL-38855_master' of git://github.com/dmonllao/moodle 2013-04-03 12:44:05 +08:00
Dan Poltawski f27be4c1aa Merge branch 'MDL-37602-workshop-overall-feedback' of git://github.com/mudrd8mz/moodle 2013-04-03 12:30:12 +08:00
Damyon Wiese 178652e9eb MDL-10516 Question Type - Fix upgrade code so new install matches upgrade. 2013-04-03 12:21:04 +08:00
Damyon Wiese 25f6019128 MDL-10516 Question Type - Essay - Whitespace fix 2013-04-03 11:30:42 +08:00
Jean-Michel Vedrine 60527d0c34 MDL-10516 Pre-populated answer (template) in essay questions 2013-04-03 11:30:42 +08:00
Dan Poltawski eed5bb7468 MDL-38509 Version bump for plugins installation 2013-04-03 11:29:56 +08:00
Dan Poltawski 6833c6d901 Merge branch 'MDL-38509-tool-installaddon' of git://github.com/mudrd8mz/moodle 2013-04-03 11:28:49 +08:00
Dan Poltawski b53ae61482 MDL-38852 repository_webdav: missing setType calls 2013-04-03 11:14:02 +08:00
Dan Poltawski 8077527c5d MDL-38852 repository_s3: fix missing setType calls 2013-04-03 11:14:02 +08:00
Dan Poltawski 98328cf646 MDL-38852 repository_merloy: fix missing setType calls 2013-04-03 11:14:01 +08:00
Dan Poltawski 13eeb23cc2 MDL-38852 flickr_public: fix missing setType calls 2013-04-03 11:14:01 +08:00
Dan Poltawski 5077e85817 MDL-38852 repository_flickr: fix missing setType calls 2013-04-03 11:14:00 +08:00
Dan Poltawski 19b733d12b MDL-38852 repository_boxnet: fix missing setType calls 2013-04-03 11:13:59 +08:00
Dan Poltawski 88ded989f9 MDL-38852 repository_alfresco: fix missing setType calls 2013-04-03 11:13:58 +08:00
Dan Poltawski 8fb59b10fc MDL-38852 repository_filesystem: missing setType calls 2013-04-03 11:13:58 +08:00
Dan Poltawski 63745aef3c MDL-38852 repository_dropbox: fix missing setType calls 2013-04-03 11:13:57 +08:00
David Monllao 238a6572c9 MDL-38855 blocks: Fix missing setType calls 2013-04-03 11:11:01 +08:00
Damyon Wiese 686730243e MDL-38016 Theme Bootstrap: Fix for unit tests undefined variable 2013-04-03 10:58:23 +08:00
David Monllao 7fcf94cb1a MDL-38615 behat: New test
According to MDLQA-1160, a manager
can configure a block to display
throughout the site.
2013-04-03 10:33:24 +08:00
Damyon Wiese 29c1fb339d MDL-38016 Theme Bootstrap - Add bootstrap to standard themes list. 2013-04-03 10:26:12 +08:00
David Monllao d2eca4cd0f MDL-38482 behat: Data generator for system assigns
Chaning also the adapt_ prefix for non-direct
data generator uses to process_ because not all
of behat's data generators would have a lib/testing
data generator to share with phpunit tests.
2013-04-03 10:09:18 +08:00
David Monllao 1045bfecd1 MDL-38482 behat: New test
According to MDLQA-1756 the maximum
number of weeks/topics for course can be
configured and not restricted to 52.
2013-04-03 10:08:03 +08:00
Damyon Wiese d9df063e3a MDL-38016 Theme Bootstrap - Whitespace in Moodle .less files 2013-04-03 10:02:55 +08:00
Dan Poltawski 0bcdbb7ff1 Merge branch 'MDL-38735' of git://github.com/stronk7/moodle 2013-04-03 09:59:01 +08:00
Dan Poltawski 89cc9816dc Merge branch 'MDL-38538_clean' of git://github.com/timhunt/moodle 2013-04-03 09:55:21 +08:00
David Monllao df1ff55d7a MDL-38482 behat: Steps definitions for course management
- To access the course management page
- To create a course based in a table
2013-04-03 09:44:31 +08:00
Damyon Wiese c985d1217c MDL-38016 Theme Bootstrap - Add license information to lib/thirdpartylibs.xml
Also minor formatting cleanup.
2013-04-03 09:43:18 +08:00
Bas Brands 8903b17b01 MDL-38016 Themes - Add a bootstrap theme to core
This theme has been contributed by:
Bas Brands <bmbrands@gmail.com>
David Scotson <david.scotson@glasgow.ac.uk>
Michael Aherne <michael.aherne@strath.ac.uk>
Stuart Lamour <thisismyrice@gmail.com>

Thanks for your hard work.
2013-04-03 09:43:18 +08:00
David Monllao a8a4849518 MDL-38482 behat: Allow frontpage course role assigns
There are no enrolment plugins at frontpage
course level.
2013-04-03 09:43:10 +08:00
Eloy Lafuente (stronk7) 636376947c Merge branch 'MDL-38738-master' of git://github.com/danpoltawski/moodle 2013-04-03 03:17:08 +02:00
AMOS bot 683c65b74f Automatically generated installer lang files 2013-04-03 00:35:43 +00:00
Eloy Lafuente (stronk7) 5ae69b2aed MDL-38735 backup: add missing setType() to forms 2013-04-03 02:17:40 +02:00
David Mudrák 3e6a8aeb7c MDL-38509 Unify curl class usage in the add-on installer tool
Both classes using cURL features now access it via the core curl wrapper
class. Credit goes to Dan Poltawski for spotting the previous discrepancy
during the integration review.
2013-04-02 23:11:01 +02:00
Eloy Lafuente (stronk7) a2f667472e Merge branch 'm25_MDL-38790_Missing_setType_in_My_private_files_form' of https://github.com/scara/moodle 2013-04-02 21:06:21 +02:00
Eloy Lafuente (stronk7) 991dcb1b82 Merge branch 'MDL-38690_master' of git://github.com/dmonllao/moodle 2013-04-02 21:01:52 +02:00
Eloy Lafuente (stronk7) d3f422bdc1 Merge branch 'MDL-38687_master' of git://github.com/dmonllao/moodle 2013-04-02 20:46:05 +02:00
Eloy Lafuente (stronk7) 80430739d9 Merge branch 'MDL-38785_master' of git://github.com/dmonllao/moodle 2013-04-02 20:41:00 +02:00
Eloy Lafuente (stronk7) a534e06e47 Merge branch 'MDL-38616_master' of git://github.com/dmonllao/moodle 2013-04-02 18:35:41 +02:00
Tim Hunt d122fe3245 MDL-38538 question autosave: fix missing method.
Also change the unit tests to detect this problem.
2013-04-02 16:53:25 +01:00
David Mudrák c9c4d0b24e MDL-38509 Fix false unit test failures in the add-on installer
Previously, the testable validator's get_plugintype_location() used to
return path to a directory that itself did not need to be writable. This
was causing false failures. This patch reimplements the testable
validator's get_plugintype_location() method so that it returns a path
inside $CFG->tempdir which is always writable.

Also, to make all test methods consistent, all of them now use the
testable_tool_installaddon_validator class. Before this patch, some test
methods used the testable class and some used the parent class.
2013-04-02 16:58:12 +02:00
Damyon Wiese 594d66c27e MDL-38840 Statslib - Fix failing unit tests on ci server (DST change) 2013-04-02 16:47:04 +02:00
Eloy Lafuente (stronk7) 871da25a40 Merge branch 'MDL-38622_master' of git://github.com/dmonllao/moodle 2013-04-02 15:51:17 +02:00
David Monllao 08aa2c3b81 MDL-38549 behat: New tests
Group mode activity icons toggle group
mode correctly. According to MDLQA-1603,
MDLQA-1604, MDLQA-1605, MDLQA-1606
and MDLQA-1607
2013-04-02 15:46:38 +02:00
Eloy Lafuente (stronk7) c9a66fc2b5 MDL-38811 behat: whitespace fixes 2013-04-02 15:45:19 +02:00
David Monllao 46ef87c535 MDL-38811 behat: New test
According to MDLQA-1564, a teacher can
indent items on the course page
2013-04-02 15:44:05 +02:00
Eloy Lafuente (stronk7) 7fb5b7fae1 Merge branch 'MDL-38548_master' of git://github.com/dmonllao/moodle 2013-04-02 15:25:19 +02:00
Dan Poltawski 881afa48bf MDL-38821 enrol_paypal: fix cost param type 2013-04-02 20:05:39 +08:00
Dan Poltawski 6842ab4455 Merge branch 'MDL-38821_master' of git://github.com/dmonllao/moodle 2013-04-02 19:54:46 +08:00
Dan Poltawski 15c2b2c43a Merge branch 'MDL-26956' of git://github.com/timhunt/moodle 2013-04-02 19:49:02 +08:00
Tim Hunt 0e0a980631 MDL-26956 enrol form: add missing setType calls. 2013-04-02 11:57:12 +01:00
Dan Poltawski 73b8f191cc MDL-35073 badges: fix xmldb editor diff
Tut tut tut!
2013-04-02 16:30:42 +08:00
Dan Poltawski eee20b123b Merge branch 'wip-mdl-38344' of git://github.com/rajeshtaneja/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-04-02 16:23:44 +08:00
Damyon Wiese cc067484a8 Merge branch 'MDL-38711-master' of git://github.com/danpoltawski/moodle 2013-04-02 16:17:25 +08:00
Damyon Wiese 5423f9a0af Merge branch 'MDL-38712-master' of git://github.com/danpoltawski/moodle 2013-04-02 16:14:44 +08:00
Dan Poltawski 899fd9372f Merge branch 'master_MDL-38715' of git://github.com/danmarsden/moodle 2013-04-02 16:11:01 +08:00
Damyon Wiese 2188a69799 MDL-35073 Badges - Set of minor fixes for issues found during integration 2013-04-02 15:55:21 +08:00
Rajesh Taneja fa84b9014b MDL-35883 Accessibility: Added title for login as user link in header and footer for accessibility 2013-04-02 15:51:41 +08:00
Yuliya Bozhko 278065528a MDL-35073 badges: Open badges integration
The badges feature allows to integrate Mozilla "Open Badges" to issue, assign,
manage and display digital badges in Moodle. This feature supports:
-- badge creation and issuing based on criteria
-- badge baking and verification service
-- direct pushing of internal badges to external backpack
-- interanl and external badge display in Moodle
-- Moodle block to display latest badges
2013-04-02 15:49:02 +08:00
David Monllao 1ad8902820 MDL-38821 enrol_self: Fixing setType missing calls 2013-04-02 15:39:44 +08:00
David Monllao eeb6c4ace8 MDL-38821 enrol_paypal: Fixing setType missing calls 2013-04-02 15:37:21 +08:00
David Monllao 361c4da2fb MDL-38821 enrol_manual: Fixing setType missing calls 2013-04-02 15:37:11 +08:00
David Monllao 3de603a175 MDL-38821 enrol_cohort: Fixing setType missing calls 2013-04-02 15:37:00 +08:00
Rajesh Taneja c7fe9f81d7 MDL-35883 Accessibility: Added title for user link in header and footer for accessibility 2013-04-02 15:32:38 +08:00
Dan Poltawski ec6089f07b Merge branch 'MDL-38455-master-int' of git://github.com/FMCorz/moodle 2013-04-02 14:53:28 +08:00
Dan Poltawski 534ee16ec0 MDL-35603 backup: fix coding style issues 2013-04-02 14:30:50 +08:00
Dan Poltawski 92d1453bcb Merge branch 'MDL-35603-import-limit' of git://github.com/rlorenzo/moodle 2013-04-02 14:25:35 +08:00
David Monllao bdf808de30 MDL-38687 behat: New test
According to MDLQA-4590, an admin
can restore a course back up with
it's settings retained.
2013-04-02 14:14:01 +08:00
David Monllao 44d5af386c MDL-38687 behat: Add activity step modification
We are only supposed to look for
the activity name in @class=typename
2013-04-02 14:13:57 +08:00
Damyon Wiese 95bef9d170 MDL-36804 Assign: Fix undeclared global $USER and undefined variable $userid 2013-04-02 13:44:25 +08:00
Damyon Wiese 3a9dc7f22f MDL-36804 Assign submission history - One language string change. 2013-04-02 13:37:51 +08:00
Damyon Wiese 7b647abcb8 MDL-36804 Assignment submisison history - fix width column
Fix the width of the left column in the history and submission tables so
they all line up on the page.
2013-04-02 13:37:51 +08:00
Damyon Wiese a13fbf5fe8 MDL-36804 Assignment - Make sure webservice only returns the last submission/grade. 2013-04-02 13:37:51 +08:00
Damyon Wiese df211804f1 MDL-36804 mod_assign - allow students to resubmit work and display a submission + grading history
This is based on work by Davo Smith with input from Fernando Oliveira (Thanks guys!).
2013-04-02 13:37:51 +08:00
Damyon Wiese bf6c1d0997 Merge branch 'MDL-38713-master' of git://github.com/danpoltawski/moodle 2013-04-02 13:23:00 +08:00
David Monllao 6cf9a42f6f MDL-38690 behat: New test
According to MDLQA-327, a teacher can
import data from another course.
2013-04-02 13:00:30 +08:00
Damyon Wiese 9ab0aece49 Merge branch 'MDL-38700-master' of git://github.com/danpoltawski/moodle
Conflicts:
	course/tests/courselib_test.php
2013-04-02 12:48:08 +08:00
David Monllao 2cca40c82b MDL-38785 behat: Steps definitions to add and delete comments 2013-04-02 12:07:19 +08:00
David Monllao 1fb1ccd545 MDL-38785 behat: New tests
According to MDLQA-943, users can
add comments via a comments block
2013-04-02 12:07:19 +08:00
Dan Poltawski 08e5aed273 Merge branch 'MDL-38825' of git://github.com/stronk7/moodle 2013-04-02 11:49:24 +08:00
David Monllao 739ac54ab0 MDL-38622 behat: New tests
Navigation works correctly in paged
mode, according to MDLQA-1633, MDLQA-1639,
MDLQA-1645, MDLQA-1646, MDLQA-1647,
MDLQA-1648, MDLQA-1649, MDLQA-1651,
MDLQA-1652, MDLQA-1653, MDLQA-1654
and MDLQA-1655.
2013-04-02 11:47:26 +08:00
Dan Poltawski bf9613dd41 Merge branch 'MDL-38538_clean' of git://github.com/timhunt/moodle 2013-04-02 11:27:32 +08:00
David Monllao c8619f33e1 MDL-38828 behat: Moving init before purge_cache 2013-04-02 11:24:00 +08:00
Dan Poltawski cbaeabbe47 Merge branch 'MDL-38702_master' of git://github.com/lazydaisy/moodle 2013-04-02 10:04:26 +08:00
Eloy Lafuente (stronk7) a5efbe6161 Merge branch 'MDL-38814_master' of git://github.com/dmonllao/moodle 2013-04-02 03:30:30 +02:00
Eloy Lafuente (stronk7) 51cae58998 Merge branch 'MDL-38689_master' of git://github.com/dmonllao/moodle 2013-04-02 02:41:44 +02:00
Eloy Lafuente (stronk7) d6dc3019b6 Merge branch 'MDL-38686_master' of git://github.com/dmonllao/moodle 2013-04-02 02:41:33 +02:00
Eloy Lafuente (stronk7) 1c49f7ad19 Merge branch 'MDL-38688_master' of git://github.com/dmonllao/moodle 2013-04-02 02:41:25 +02:00
Eloy Lafuente (stronk7) 49b902f858 MDL-38621 behat: whitespace fix 2013-04-02 02:28:40 +02:00
Eloy Lafuente (stronk7) 342c3f3e6c Merge branch 'MDL-38621_master' of git://github.com/dmonllao/moodle 2013-04-02 02:27:10 +02:00
Eloy Lafuente (stronk7) 3e27548431 Merge branch 'MDL-38620_master' of git://github.com/dmonllao/moodle 2013-04-02 02:26:54 +02:00
Marina Glancy d1f8c1bd62 MDL-38708 Added course overview files (most often images) to courses 2013-04-02 11:08:21 +11:00
Marina Glancy ddbf9b6bd2 MDL-37009 Display course info as a page instead of popup 2013-04-02 10:58:24 +11:00
Marina Glancy 09ae7ee031 MDL-37009 Deprecated all courses display functions that are not used any more
print_my_moodle(), print_remote_course(),
  print_remote_host(), print_whole_category_list(), print_category_info(), get_course_category_tree(),
  print_courses(), print_course(), get_category_courses_array(), get_category_courses_array_recursively()
2013-04-02 10:58:24 +11:00
Marina Glancy 99a364564f MDL-37009 Use new renderers for frontpage course and category listings 2013-04-02 10:58:23 +11:00
Marina Glancy f53703b7be MDL-37009 new course listings: changes to canvas and other themes:
canvas-based themes: formal_white, magazine, splash
2013-04-02 10:58:18 +11:00
Marina Glancy 202f73f3b4 MDL-37009 new course listings: changes to base, standard and afterburner themes 2013-04-02 10:54:50 +11:00
Marina Glancy 9e76429dad MDL-37009 Display list of tagged courses using new renderer 2013-04-02 10:54:50 +11:00
Marina Glancy 6004700329 MDL-37009 Display course search results using new renderer methods 2013-04-02 10:54:49 +11:00
Marina Glancy 837d548eb2 MDL-37009 moved editing functionality from course/search.php to course/manage.php 2013-04-02 10:54:49 +11:00
Marina Glancy 8e57a6df6d MDL-37009 Display courses and categories tree on /course/index.php using new renderer
Also /course/category.php
2013-04-02 10:54:49 +11:00
Marina Glancy 9176cdb632 MDL-37009 Added function core_course_renderer::courses_list() similar to print_courses() 2013-04-02 10:54:49 +11:00
Marina Glancy e2d70cca57 MDL-37009 Display single course info box using new course listings renderer
Header is removed from /course/info.php because it is now part of renderer function
2013-04-02 10:54:49 +11:00
Marina Glancy 43e389eabf MDL-37009 Created functions in core_course_renderer to display courses and categories listings 2013-04-02 10:54:48 +11:00
Marina Glancy a8d683ca8e MDL-37009 function print_course_search() is moved to deprecatedlib.php 2013-04-02 10:54:48 +11:00
Marina Glancy f4b571ab2b MDL-37009 function print_course_search() is moved to course renderer 2013-04-02 10:54:48 +11:00
Eloy Lafuente (stronk7) 12879418e9 Merge branch 'MDL-38823_master' of git://github.com/dmonllao/moodle
Conflicts:
	mod/forum/tests/behat/behat_mod_forum.php
2013-04-02 01:47:40 +02:00
Eloy Lafuente (stronk7) 23726a43d4 Merge branch 'MDL-38805_master' of git://github.com/dmonllao/moodle 2013-04-02 01:45:43 +02:00
Eloy Lafuente (stronk7) cd4c7e9af4 Merge branch 'MDL-38804_master' of git://github.com/dmonllao/moodle 2013-04-02 01:44:59 +02:00
Eloy Lafuente (stronk7) 0f8fd3a7eb Merge branch 'MDL-38477_master' of git://github.com/dmonllao/moodle 2013-04-02 01:06:18 +02:00
Eloy Lafuente (stronk7) 2bb24f16e0 Merge branch 'MDL-38476_master' of git://github.com/dmonllao/moodle 2013-04-02 01:06:05 +02:00
Eloy Lafuente (stronk7) 55a2081d28 Merge branch 'MDL-38475_master' of git://github.com/dmonllao/moodle 2013-04-02 01:04:44 +02:00
Eloy Lafuente (stronk7) c1bccc8ef5 Merge branch 'MDL-38439_master' of git://github.com/dmonllao/moodle 2013-04-02 01:04:31 +02:00
Eloy Lafuente (stronk7) 9f0700fb6c Merge branch 'MDL-38437_master' of git://github.com/dmonllao/moodle 2013-04-02 01:03:26 +02:00
Eloy Lafuente (stronk7) 62eb5c466e MDL-38547 behat: coding style fixes. 2013-04-01 22:40:50 +02:00
Eloy Lafuente (stronk7) 54e48dc32d Merge branch 'MDL-38547_master' of git://github.com/dmonllao/moodle 2013-04-01 22:32:06 +02:00
Eloy Lafuente (stronk7) c57c57c575 Merge branch 'MDL-38499_master' of git://github.com/dmonllao/moodle 2013-04-01 22:23:58 +02:00
Eloy Lafuente (stronk7) 0251a62500 Merge branch 'MDL-38486_master' of git://github.com/dmonllao/moodle 2013-04-01 22:17:12 +02:00
Eloy Lafuente (stronk7) c5f6371f04 MDL-38825 behat: fix composer install url 2013-04-01 18:55:34 +02:00
Eloy Lafuente (stronk7) d4a5896f8a Merge branch 'MDL-38817_master' of git://github.com/dmonllao/moodle 2013-04-01 13:25:31 +02:00
Eloy Lafuente (stronk7) 68adfee6d4 Merge branch 'MDL-38788_master' of git://github.com/dmonllao/moodle 2013-04-01 13:17:20 +02:00
Eloy Lafuente (stronk7) b216376811 Merge branch 'MDL-38787_master' of git://github.com/dmonllao/moodle 2013-04-01 13:12:08 +02:00
David Monllao be0e1825d3 MDL-38823 behat: New test
According to MDLQA-521, a teacher can set a certain
number of discussions as a completion condition for
a forum.
2013-04-01 17:52:46 +08:00
David Monllao 7bc7625e04 MDL-38823 behat: Make default form field manage different HTML elements 2013-04-01 17:51:54 +08:00
David Monllao 125765ed18 MDL-38437 behat: Behat feature for mod_forum
Basic add an activity, MDLQA-2 (students
can edit or delete their forum posts within
a set time limit).
2013-04-01 16:27:16 +08:00
David Monllao 74508a5ddb MDL-38437 behat: Step definition to add a discussion 2013-04-01 16:27:09 +08:00
Jean-Michel Vedrine 9219089a72 MDL-38808 Remove deprecated unzip_file from qformat blackboard_six 2013-04-01 09:34:07 +02:00
David Monllao 424f56fc90 MDL-38817 behat: New test
According to MDLQA-50, in a survey activity
a teacher can set three types of survey
2013-04-01 13:57:01 +08:00
David Monllao f076b0d43f MDL-38805 behat: Steps definitions to check students completed activities 2013-04-01 12:32:25 +08:00
David Monllao abc38a9738 MDL-38805 behat: New test
According to MDLQA-511, a teacher can
enable students to manually mark an activity
as complete.
2013-04-01 12:32:25 +08:00
David Monllao 3a4d76ac3d MDL-38805 behat: Externalized behat_form_field loader 2013-04-01 12:32:25 +08:00
David Monllao e7a0600b88 MDL-38804 behat: Step definition to set site administration settings 2013-04-01 12:31:48 +08:00
David Monllao 4569bc7ce8 MDL-38804 behat: New test
According to MDLQA-1780, a teacher can
set completion conditions to restrict
the availability of a section
2013-04-01 12:31:47 +08:00
David Monllao 693969b5c1 MDL-38815 behat: New test
According to MDLQA-1768, a file can be
deleted from the file manager.
2013-04-01 12:28:27 +08:00
David Monllao 5bc64b0fab MDL-38814 behat: Deleting old files 2013-04-01 12:22:43 +08:00
David Monllao 95932c376b DML-38814 behat: Split steps definitions tests into features 2013-04-01 12:22:40 +08:00
David Monllao d87bbb3d3d MDL-38814 behat: Move filepicker steps definitions to repository/ 2013-04-01 12:16:57 +08:00
David Monllao 1c00d6f636 MDL-38788 behat: Add a block and add an activity steps definitions compatible with JS disabled 2013-04-01 11:18:33 +08:00
David Monllao cd7ea8f0cc MDL-38788 behat: Generic form elements interaction compatibile with JS disabled 2013-04-01 11:18:33 +08:00
David Monllao c94a0d1890 MDL-38788 behat: New tests with Javascript disabled
Add a block and add an activity/resource
tests. The add an activity with JS disabled
test includes MDLQA-2446 automation.
2013-04-01 11:17:45 +08:00
Jean-Michel Vedrine 1e8f4e54c7 MDL-19072 XHTML export for match questions fix for distractors 2013-03-31 15:13:44 +02:00
Jonathon Fowler c8845ca917 MDL-38705 qformat_blackboard_six: use qti title as category name
Specifically, the title on the 'assessment' element is used.
2013-03-31 14:00:01 +10:00
Mary Evans 46b086f145 MDL-38657 theme_base: fixes misalignment issue in User Report page. 2013-03-31 02:13:51 +01:00
Tim Hunt dc1ee5cb29 MDL-34640 question repsponse files: remaining tidy up of this code. 2013-03-30 21:16:18 +00:00
Mathieu Petit-Clair d0782585c8 MDL-34640: adding code to pass contextid and question type to question_file_loader. 2013-03-30 19:57:03 +00:00
Tim Hunt 8a1e7b7756 MDL-34640 quesion reponse files: PARTIAL SOLUTION to allowing resonse files to be graded automatically. 2013-03-30 19:53:15 +00:00
prateeksachan f7884095de MDL-38361: Fixed typos in mod/assign/locallib.php 2013-03-30 23:39:56 +05:30
Tim Hunt 0561fdf167 MDL-38809 quiz manual grading: delete expensive unnecssary code. 2013-03-30 17:25:52 +00:00
David Mudrák b2a138a20f MDL-38509 Escalate the maturity level of the plugin
The API is considered stable now and there should not be a need to
change it.
2013-03-29 01:30:00 +01:00
David Mudrák 0a6a344d29 MDL-38509 Add hook for the installaddonrequest into admin/index.php
If the user selects a plugin in Moodle plugins directory to be installed
into their site, Moodle plugins directory will redirect them into their
site's admin/index.php script, providing the installaddonrequest
parameter.

This patch makes sure that only if the user is logged-in as the admin
and the site is fully installed and up-to-date, the add-on installation
request will be dispatched to the tool_installaddon for actual
processing.

We need to store the installaddonrequest value in the $PAGE's URL so
that is is stored in $SESSION->wantsurl in case the user needs to log in
at their site. Thanks to this, the request is dispatched after the user
logs in.
2013-03-29 01:00:16 +01:00
David Mudrák af96f120e9 MDL-38509 Add ability to install add-ons from the remote repository
There is a new hook in the index.php file. If valid HTTP parameter
installaddonrequest is detected, the installer asks the administrator to
confirm the request.

If confirmed, the installer calls download.moodle.org/api/1.2/pluginfo.php
service to get information about the given plugin version. The essential
data are the URL of the ZIP to download and the MD5 hash of the ZIP.
These data must be fetched via HTTPS to protect against MiM attack.

If the ZIP is downloaded and the MD5 content hash is correct, the user
is redirected to the previously implemented ZIP validation page, as if
the ZIP was uploaded manually.

The valid format of the installaddonrequest is documented via the
test_decode_remote_request() unit test method.
2013-03-29 00:16:06 +01:00
Rex Lorenzo c4dbfb2c91 MDL-35603 - Backup - Course import selector notice
* added new config option to determine length of courses returned by import
* added text indicator if there are more than X number of courses, similar to how the restore course list currently works
2013-03-28 15:24:51 -07:00
Matteo Scaramuccia fd10686843 MDL-38745 SCORM: fixed appending 'API logging is on|off', once per launch 2013-03-28 22:28:06 +01:00
Matteo Scaramuccia cc351edaf0 MDL-38745 SCORM: fixed doubling double quotes for 'even' and 'odd' 2013-03-28 22:28:03 +01:00
Matteo Scaramuccia fe104762c9 MDL-38678 SCORM: Runtime Environment (RTE) checks not required in case of SCO Assets 2013-03-28 22:22:19 +01:00
Matteo Scaramuccia 0f7d527816 MDL-38790 Repositories: missing call to setType in 'My private files' form 2013-03-28 22:12:53 +01:00
Colin Chambers c7218aef8d MDL-36570 question editing: group answer/choice fields better. 2013-03-28 17:25:45 +00:00
Tim Hunt 595708884a MDL-38538 quiz auto-save front end.
1. There is a new admin setting to control whether this feature is
enabled. The admin can set the auto-save frequency to 1, 2 or 5 minutes,
or disable it.

2. When autosave is enabled, there is code in the quiz that monitors the
main quiz form, and does an ajax save call at the given frequency when
changes are being made by the student.

3. The ajax saves go to a new script that calls the question engine to
do the work.

4. To avoid simultaneous autosave + submit and finish, the auto-save
system shuts down shortly before time expires in a timed quiz.
2013-03-28 16:57:24 +00:00
Tim Hunt 0a606a2be2 MDL-38538 question auto-save back end.
1. Autosave works in some ways just like a normal save. We ultimately
call $behaviour->process_save() to do the work, and create a new step to
hold the data.

2. However, we come in through a completely different route through the
API, starting with separate auto-save methods. This keeps the auto-save
changes mostly separate, and so reduced the chance of breaking existing
working code.

3. When the time comes to store the auto-save step in the database, we
save it using a negative sequence number.

This is a clever trick that not only distinguises these steps, but also
avoids unique key errors when an auto-save and a real action happen
simultaneously. (There are unit tests for these tricky edge cases.)

4. When we load the data back from the database, most of the time the
auto-save steps are loaded back as if they were a real save, and so the
auto-saved data is used when the question is then rendered.

5. However, before we process another action, we remove the auto-saved
step, so it does not appear in the final history.
2013-03-28 16:51:59 +00:00
Tim Hunt eca230b521 MDL-38538 question unit tests: improve things a bit.
1. Split the question_attempt tests into one class per file.
2. Imporve the API to give tests more control, and to test more of the
   important code. Some of this is not used here, but it is about to be.
2013-03-28 16:05:34 +00:00
Eloy Lafuente (stronk7) 35601d77f9 MDL-38633 folder: support show_expanded in backup. 2013-03-28 17:00:46 +01:00
David Mudrák 399ddcc73e MDL-38509 Move the tool node in the navigation
The "Install add-ons" should appear just below Site administration >
Plugins, before the "Activity modules".
2013-03-28 11:54:07 +01:00
David Mudrák b7f6442670 MDL-38509 Fix the communication protocol with Moodle plugins directory
Implements the behaviour currently specified at
http://docs.moodle.org/dev/On-click_add-on_installation
2013-03-28 11:54:06 +01:00
David Mudrák 59a2cc8d38 MDL-38509 Add the script that finally deploys the validated ZIP contents 2013-03-28 11:54:06 +01:00
David Mudrák a143984a36 MDL-38509 Add strings for the new admin tool 2013-03-28 11:54:06 +01:00
David Mudrák cbd125e85d MDL-38509 Implement the ZIP package validation page
The script validate.php expects a ZIP file stored in a temporary
location. It extracts the ZIP (optionally renaming the root directory)
and executes the validator. Then it renders the validator log messages
and continue buttons.
2013-03-28 11:54:06 +01:00
David Mudrák 07083b230b MDL-38509 Add new tool_installaddon_installer::extract_installfromzip_file() method 2013-03-28 11:54:06 +01:00
David Mudrák 585b64a607 MDL-38509 Save uploaded ZIP into a temporary location and redirect to validator 2013-03-28 11:54:06 +01:00
David Mudrák 30bec5ba8d MDL-38509 Add new tool_installaddon_installer::get_plugintype_root() method 2013-03-28 11:54:06 +01:00
David Mudrák a4fcf56f0a MDL-38509 Implement the plugin ZIP package validator
The validator code contains (modified) fragments of the
local_plugins_archive_validator class copyrighted by Marina Glancy that
is part of the local_plugins plugin. It operates over an extracted
copy of the ZIP file.
2013-03-28 11:54:06 +01:00
David Mudrák ddab904ba8 MDL-38509 Check for writable plugin type location in install from ZIP form
Standard mform validation is implemented as well as progressively
enhanced AJAX version.
2013-03-28 11:54:05 +01:00
David Mudrák 2459758b30 MDL-38509 Mark the new installaddon admin tool as the standard plugin 2013-03-28 11:54:05 +01:00
David Mudrák 0056f2a37b MDL-38509 Initial version of the new admin tool to install add-ons 2013-03-28 11:54:05 +01:00
David Mudrák b8efcb9233 MDL-38509 Implement new plugin_manager::plugintype_name()
This has exactly the same behaviour as the existing
plugintype_name_plural() method, but returns the singular form of the
plugin type (such as 'Activity module').
2013-03-28 11:54:05 +01:00
David Mudrák ce1a0d3cd8 MDL-38509 Implement new plugin_manager::get_plugin_types()
This new method just takes the result of the core get_plugin_types() and
re-orders the plugin types in the same way as they are displayed at the
Plugins overview screen.
2013-03-28 11:54:05 +01:00
David Mudrák c2c4f722b5 MDL-38509 Document the plugin deployment lockers in config-dist.php 2013-03-28 11:54:05 +01:00
David Mudrák e91670edc0 MDL-38493 Improve documentation of mdeploy.php 2013-03-28 11:54:05 +01:00
David Mudrák 203b432159 MDL-38493 Make mdeploy.php able to install new plugin
The patch implements the second mode of the mdeploy.php script. If
--install option is passed, the given package is downloaded, verified
and deployed to the requested location.
2013-03-28 11:54:05 +01:00
sam marshall 71638033eb MDL-26956 (3) Enrol: Add filter options to enrolments screen 2013-03-28 10:46:36 +00:00
sam marshall d953b18495 MDL-26956 (2) Forms: Function to render form to string
Previously it was only possible to display the form immediately as
HTML output. You had to wrap in an output buffer in order to put
it in a renderer. This new function does the output buffer for you.
2013-03-28 10:46:33 +00:00
sam marshall b2ec866fc7 MDL-26956 (1) Library: Move search SQL function to datalib
This function used to be in the user selector, but it is useful in
other areas where we want to search for users as it handles a number
of search options (including extra fields, etc.) and returns SQL
which can be included in a joined query.

A unit test has been added to check the results of these searches.
2013-03-28 10:45:12 +00:00
David Monllao eff79d5378 MDL-38787 behat: Move to the new Javascript-based test class manager 2013-03-28 16:59:18 +08:00
Damyon Wiese d8201d49d8 weekly release 2.5dev 2013-03-28 14:44:31 +08:00
David Monllao a3dd930ec0 MDL-38686 behat: New restore course test
According to MDLQA-4596, a teacher can change
the format of a restored course
2013-03-28 14:43:38 +08:00
David Monllao 60054942ec MDL-38689 behat: Steps definitions to compare DOM nodes position inside the DOM 2013-03-28 14:41:41 +08:00
David Monllao 28435f1a64 MDL-38689 behat: Allowing more than one selector type argument
Regex's placeholders can not be repeated, if
there are definitions that have more than one
selector type of the same kind it would not
be displayed like that in the steps definitions
list UI
2013-03-28 14:41:41 +08:00
David Monllao 135c685381 MDL-38689 behat: New test
According to MDLQA-931, a teacher can
copy an activity.
2013-03-28 14:41:41 +08:00
Damyon Wiese 9ee29404be Fix permissions 2013-03-28 14:36:33 +08:00
David Monllao 4bd605da79 MDL-38690 behat: Step definition to import a course 2013-03-28 14:35:22 +08:00
David Monllao 00f074620e MDL-38688 behat: Restore Moodle 2 courses tests 2013-03-28 14:27:14 +08:00
David Monllao 52e8f537b9 MDL-38688 behat: Backup tests
Complemented by restore_moodle2_courses.feature
tests.
2013-03-28 14:27:14 +08:00
David Monllao 030a606e49 MDL-38688 behat: Steps definitions for backup/restore 2013-03-28 14:27:12 +08:00
David Monllao 4b528daed5 MDL-38616 behat: New test
According to MDLQA-4600, an admin
can control which activities can
be added to courses.
2013-03-28 14:16:21 +08:00
David Monllao bf648567e0 MDL-38548 behat: Step definitions to check activities visibility 2013-03-28 12:07:44 +08:00
David Monllao 3442b9e54f MDL-38548 behat: New tests
The show/hide activity/resource icon
functions correctly. According to
MDLQA-1573, MDLQA-1574, MDLQA-1575,
MDLQA-1576 and MDLQA-1577.
2013-03-28 12:06:24 +08:00
David Monllao e62f1b3b63 MDL-38620 behat: Modified upload_users.csv fixture
Including course and group enrolments
2013-03-28 11:19:09 +08:00
David Monllao 2904bf9ddf MDL-38620 behat: New test
According to MDLQA-1175; test
removed from repository_upload as
is included in MDLQA-1175 test
2013-03-28 11:19:07 +08:00
David Monllao ba097b8253 MDL-38619 behat: New test
According to MDLQA-1445, an administrator
can upload users to a cohort.
2013-03-28 11:17:33 +08:00
David Monllao f0e4cf5e31 MDL-38619 behat: Step definition to add enrolment methods to courses 2013-03-28 11:17:14 +08:00
David Monllao 23349a73ae MDL-38619 testing: Adapter to cohorts data generator 2013-03-28 11:17:14 +08:00
David Monllao e800f0d6ae MDL-38619 behat: New test
According to MDLQA-1177, an administrator
can create a cohort and add users to it.
2013-03-28 11:17:11 +08:00
Frederic Massart 5581c618fc MDL-38751 usability: Different style for cancel button 2013-03-28 11:14:24 +08:00
David Monllao 3ea8721a0c MDL-38621 behat: New test
According to MDLQA-1172, course short
names may be displayed on the list of
courses page.
2013-03-28 10:58:57 +08:00
Frederic Massart 8783e17b0f MDL-38590 data: Reformat settings form
AMOS BEGIN
 CPY [allowcomments,mod_glossary],[allowcomments,mod_data]
AMOS END
2013-03-28 10:53:58 +08:00
Frederic Massart a4b076d51b MDL-38681 form: Changed collapse/expand button to a link 2013-03-28 10:18:58 +08:00
Frederic Massart 90a7e556af MDL-38455 form: More consistency in section states
- A short form of 2 sections has collapsible sections;
- The second section is expanded by default if the form has 2 sections;
- The collapsed state by setExpanded can override the state in which
  the section was when it was submitted by the user;
- A header containing a required field or one that has an error
  will never be collapsed.
2013-03-28 10:03:33 +08:00
Damyon Wiese 86d66b5a1a Merge branch 'MDL-25631' of git://github.com/merrill-oakland/moodle 2013-03-28 09:39:05 +08:00
Dan Marsden 1de23b7fdc MDL-38715 SCORM fix missing calls to setType and remove old call to setMaxFileSize 2013-03-28 12:38:27 +13:00
Eloy Lafuente (stronk7) 50206449b6 Merge branch 'MDL-38516-m' of https://github.com/andrewnicols/moodle 2013-03-27 23:56:57 +01:00
Eloy Lafuente (stronk7) 113f9a68bd Merge branch 'MDL-38520-m' of https://github.com/andrewnicols/moodle 2013-03-27 23:38:33 +01:00
Andrew Robert Nicols 81c8a42040 MDL-38516 JavaScript: Migrate moodle-block_navigation-navigation to use Shifter 2013-03-27 22:27:48 +00:00
Eloy Lafuente (stronk7) 9b79c017f9 Merge branch 'MDL-38473-m' of https://github.com/andrewnicols/moodle 2013-03-27 23:20:18 +01:00
Eloy Lafuente (stronk7) 59549129b1 Merge branch 'MDL-38404-m' of https://github.com/andrewnicols/moodle 2013-03-27 23:06:46 +01:00
Eloy Lafuente (stronk7) f3804a0c00 Merge branch 'MDL-38472-m' of https://github.com/andrewnicols/moodle 2013-03-27 22:42:33 +01:00
Eloy Lafuente (stronk7) cb39c6136b Merge branch 'MDL-38519-m' of https://github.com/andrewnicols/moodle 2013-03-27 22:29:21 +01:00
Eloy Lafuente (stronk7) c4b39661b9 Merge branch 'MDL-38517-m' of https://github.com/andrewnicols/moodle 2013-03-27 21:43:30 +01:00
Eloy Lafuente (stronk7) a8cdbbe053 Merge branch 'MDL-38471-m' of https://github.com/andrewnicols/moodle 2013-03-27 18:50:34 +01:00
Andrew Robert Nicols 2c0b7d164c MDL-38756 JavaScript: Handle missing jsrev during installation
During installation, jsrev is unset so unavailable for the cache checks.
The installation sets the initial jsrev value and this is updated
periodically, unless it is set to -1 for JS developer.

During installation, we shouldn't really use any caches so if jsrev is
unset, then we should act as though it is set to developer.
2013-03-27 13:13:01 +00:00
David Monllao 2d9cbe8807 MDL-38477 behat: New test
According to MDLQA-16, teachers can edit
or delete any forum post.
2013-03-27 16:51:01 +08:00
David Monllao 22d56e46f1 MDL-38476 behat: New test
According to MDLQA-9, in a single
simple discussion forum only teachers
can start discussions.
2013-03-27 16:49:59 +08:00
David Monllao a394e57849 MDL-38475 behat: New test
According to MDLQA-5, students can choose
from 4 discussion display options and their
choice is remembered.
2013-03-27 16:47:56 +08:00
David Monllao 68834d4a0d MDL-38475 behat: Step definition to reply a discussion 2013-03-27 16:47:55 +08:00
David Monllao 9449cf8e11 MDL-38439 behat: New test
According to MDLQA-3, a teacher can
set one of 3 possible options for
tracking read forum posts.
2013-03-27 16:46:41 +08:00
David Monllao e6cb6aed64 MDL-38437 behat: Behat feature for mod_forum
Basic add an activity, MDLQA-2 (students
can edit or delete their forum posts within
a set time limit).
2013-03-27 16:45:01 +08:00
David Monllao 279d86943b MDL-38437 behat: Step definition to add a discussion 2013-03-27 16:45:01 +08:00
David Monllao b918f9f7bf MDL-38499 behat: Steps definitions for section visibility management 2013-03-27 16:00:54 +08:00
Dan Poltawski 37836c19fb MDL-38738 portfolio: missing PARAM_TEXT 2013-03-27 15:57:35 +08:00
David Monllao 8ec8a05851 MDL-38499 behat: New test
The show/hide section icon functions
correctly. According to MDLQA-1579,
MDLQA-1580, MDLQA-1581, MDLQA-1582
and MDLQA-1583.
2013-03-27 15:57:19 +08:00
David Monllao 4069c4e73f MDL-38486 behat: New test
Section highlighting can be turned off
correctly using the toggle highlighting
icon. According to MDLQA-1591, MDLQA-1592,
MDLQA-1593, MDLQA-1594 and MDLQA-1595
2013-03-27 15:46:03 +08:00
David Monllao 18c84063e3 MDL-38486 behat: Course's topics highlighting steps definitions 2013-03-27 15:46:03 +08:00
Damyon Wiese 604a8ed4e5 Merge branch 'wip-MDL-38147-master' of git://github.com/marinaglancy/moodle 2013-03-27 14:11:27 +08:00
Marina Glancy 0a02b80cda MDL-38147 fixed bug with windows PHP different function behaviour 2013-03-27 17:06:27 +11:00
Marina Glancy 5e71c37ea9 MDL-38147 added comments for SQL-based course search that might not work on some DB 2013-03-27 17:05:51 +11:00
Marina Glancy a32f163dfd MDL-38147 do not use DB->sql_length because it does not work on MSSQL 2013-03-27 16:07:29 +11:00
Aparup Banerjee 8963212472 Merge branch 'MDL-38632' of git://github.com/stronk7/moodle 2013-03-27 13:07:10 +08:00
Damyon Wiese ddeea94a35 Merge branch 'MDL-38736-master' of git://github.com/danpoltawski/moodle 2013-03-27 12:17:47 +08:00
Damyon Wiese 5df15f2524 MDL-38717 Admin: Change setType for email to PARAM_EMAIL 2013-03-27 12:11:06 +08:00
Damyon Wiese 1b393ce91d Merge branch 'MDL-38717-master' of git://github.com/danpoltawski/moodle 2013-03-27 11:57:14 +08:00
Jonathon Fowler bdc4cb9ef0 MDL-37966 Assignment: put upgraded modules where the originals were 2013-03-27 12:40:28 +10:00
Aparup Banerjee cf457c2169 Merge branch 'MDL-38659' of git://github.com/stronk7/moodle 2013-03-27 10:38:31 +08:00
Dan Poltawski 8bd1829310 MDL-38736 mod_choice: fix missing param type 2013-03-27 10:19:57 +08:00
Damyon Wiese 0e2ca62e86 MDL-35876: Whitespace, indenting and more verbose upgrade.txt 2013-03-27 10:16:09 +08:00
Dan Poltawski f6343982e1 MDL-38717 admin: missing setType on email 2013-03-27 10:14:35 +08:00
Damyon Wiese df9bdfb000 Merge branch 'wip-MDL-35876-master' of git://github.com/phalacee/moodle
Conflicts:
	lib/upgrade.txt
2013-03-27 10:06:30 +08:00
Eloy Lafuente (stronk7) 3b597dd4ee Merge branch 'wip-mdl-38543' of git://github.com/deraadt/moodle 2013-03-27 02:00:02 +01:00
Eloy Lafuente (stronk7) 49ef0c56ef Merge branch 'MDL-38552-master' of git://github.com/FMCorz/moodle 2013-03-27 01:51:35 +01:00
Eloy Lafuente (stronk7) 381ffd46fc Merge branch 'MDL-38566-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/base/style/core.css
2013-03-27 01:49:10 +01:00
Eloy Lafuente (stronk7) 18ceea60af Merge branch 'MDL-38484_master' of git://github.com/dmonllao/moodle 2013-03-27 00:47:32 +01:00
Eloy Lafuente (stronk7) 2477bb29cc Merge branch 'MDL-38531_master' of git://github.com/dmonllao/moodle 2013-03-27 00:46:05 +01:00
Eloy Lafuente (stronk7) 64a807ae44 Merge branch 'MDL-38483_master' of git://github.com/dmonllao/moodle 2013-03-27 00:43:19 +01:00
Eloy Lafuente (stronk7) cf140de945 Merge branch 'MDL-38557' of git://github.com/timhunt/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-03-26 23:38:07 +01:00
Eloy Lafuente (stronk7) b741fac308 Merge branch 'MDL-38651' of git://github.com/timhunt/moodle 2013-03-26 23:27:16 +01:00
Eloy Lafuente (stronk7) d89eed6fca Merge branch 'MDL-38647' of git://github.com/timhunt/moodle 2013-03-26 23:22:25 +01:00
Eloy Lafuente (stronk7) 45679e3a9e Merge branch 'w13_MDL-38589_m25_pear' of git://github.com/skodak/moodle 2013-03-26 23:14:24 +01:00
Eloy Lafuente (stronk7) e01812b333 Merge branch 'w13_MDL-37783_m12_testinfo' of git://github.com/skodak/moodle 2013-03-26 23:13:33 +01:00
Eloy Lafuente (stronk7) 8ef5dc58ea Merge branch 'MDL-38563-master-int' of git://github.com/FMCorz/moodle 2013-03-26 23:10:11 +01:00
Eloy Lafuente (stronk7) 4efcfaa3ae Merge branch 'w13_MDL-37742_m25_dirtyoracle' of git://github.com/skodak/moodle
Conflicts:
	lib/upgrade.txt
2013-03-26 23:04:48 +01:00
David Mudrák 5106aab30c MDL-38733 Fix the workshop rubric CSS 2013-03-26 22:32:07 +01:00
Petr Škoda e788339786 MDL-37742 add debugging message when $DB->sql_empty() used 2013-03-26 22:12:17 +01:00
Eric Merrill c9deaa8e79 MDL-25631 backup Decoupling legacy files from course config settigs. If they are present, they will be restored. 2013-03-26 17:01:55 -04:00
David Mudrák e36942b716 MDL-37602 Include the overall feedback in the workshop backup and restore 2013-03-26 21:33:22 +01:00
David Mudrák 77d746a2f5 MDL-37602 Clean up and improve the overall feedback rendering
In order to use the overall feedback in assessments of example
submissions and in the assessment form preview, significant improvements
in the rendering machinery were done.

Workshop class provides two new methods overall_feedback_content_options()
and overall_feedback_attachment_options() as they are needed at various
scripts and libraries.

Overall feedback is displayed as a part of the workshop_assessment_form
only if the form is in editable mode (not frozen). If the form is
displayed in read-only (frozen) mode, the caller is expected to render
the overall feedback and list of attachments (the editor and filemanager
elements do not support frozen mode). To do so, the renderable
workshop_assessment now loads overall feedback data and provides two new
methods get_overall_feedback_content() and
get_overall_feedback_attachments() to be used by the renderer.

Renderable workshop_submission, workshop_assessment and related classes
now accept the workshop instance as the first parameter in their
constructors. This way, these renderable classes have access to the
workshop API.

In the future, the rendering of submission files should be improved in
the same way as is done in this patch (i.e. moving the logic and data
preparation out of the renderer into the renderable classes).
2013-03-26 21:25:46 +01:00
David Mudrák 88e79d8adb MDL-37602 Add support for browsing the overall feedback files 2013-03-26 21:25:45 +01:00
David Mudrák 05837ba355 MDL-37602 Serve files embedded or attached to the overall feedback 2013-03-26 21:25:45 +01:00
David Mudrák c6a793d5a2 MDL-37602 Put the overall feedback fields to the bottom of the assessment form
The assessment form can be displayed as editable or read-only (frozen).
Neither the editor element nor the filemanager element support
displaying frozen content themselves so we need to pre-format and inject
static texts.

The list of attachments should be ideally generated by the renderer and
probably improved a bit - just quick and dirty solution must be enough
for now though (2.5 coding freeze is just behind the corner...).

AMOS BEGIN
 CPY [submissionattachment,mod_workshop],[feedbackauthorattachment,mod_workshop]
AMOS END
2013-03-26 21:25:00 +01:00
Jason Platts 17ff23d743 MDL-37942 Images with non-alphanumeric chars in file name won't export 2013-03-26 15:11:20 +00:00
Eloy Lafuente (stronk7) 2ac738f8ed Merge branch 'w13_MDL-37782_m25_testtrans' of git://github.com/skodak/moodle 2013-03-26 16:09:06 +01:00
Eloy Lafuente (stronk7) 0d377c8d56 Merge branch 'w13_MDL-38671_m25_adodb' of git://github.com/skodak/moodle 2013-03-26 16:07:12 +01:00
Eloy Lafuente (stronk7) cf20e809aa Merge branch 'MDL-38582' of git://github.com/timhunt/moodle 2013-03-26 16:03:37 +01:00
Eloy Lafuente (stronk7) 6341d977a3 MDL-38659 environment: fix incorrect feedback messages 2013-03-26 15:34:50 +01:00
Eloy Lafuente (stronk7) d9b9ef5d4e MDL-38659 environment: verify feedback matches levels 2013-03-26 15:34:06 +01:00
Eloy Lafuente (stronk7) 38495379a8 Merge branch 'MDL-38719' 2013-03-26 13:37:13 +01:00
Eloy Lafuente (stronk7) caa30cd625 MDL-38719 forms: detectMissingSetType() handle of repetitions.
It seems that formslib, for repetition, relies in the type
especified by the main (non existent at the end) element, instead
of assingning a type to each repetition.

Surely a result of storing types apart from elements. :-(

With the patch, detectMissingSetType() will detect
repeated elements (name containing '[') and will
perform the verification against that main element type.
2013-03-26 13:28:47 +01:00
Eloy Lafuente (stronk7) f35f07e9f7 MDL-38719 forms: add some missing types.
This just adds some missing types to different places
causing phpunit tests to fail.
2013-03-26 12:13:40 +01:00
Aparup Banerjee 3a7e4a80ad MDL-38564 fixed whitespace 2013-03-26 17:22:22 +08:00
Frederic Massart c55cd6ac64 MDL-38691 form: Styling for show more/less toggle 2013-03-26 17:20:58 +08:00
Aparup Banerjee be0eacf883 Merge branch 'MDL-38564-master' of git://github.com/ankitagarwal/moodle 2013-03-26 17:20:01 +08:00
Aparup Banerjee d54bc60b33 Merge branch 'w13_MDL-38672_m25_purifier' of git://github.com/skodak/moodle 2013-03-26 17:12:18 +08:00
Barbara Ramiro 83284dc962 MDL-38691 usability: More/less icons 2013-03-26 17:08:15 +08:00
Dan Poltawski 1f0cd6ee98 MDL-38712 mod_glossary: fix missing PARAM type 2013-03-26 17:05:10 +08:00
Dan Poltawski e380d57fb6 MDL-38711 qtype_multianswer: missing setType param 2013-03-26 16:57:01 +08:00
Dan Poltawski 7c69ab5dc7 MDL-38713 course: correctly set visibleold on mod creation
Remove uncessary set of visibleold in the form
2013-03-26 16:27:38 +08:00
Ankit Agarwal bf6b3c7a8a MDL-38564 Adding unit tests for the functions compare_activities_by_time_asc() and compare_activities_by_time_desc() 2013-03-26 16:12:01 +08:00
Damyon Wiese 0231f91d86 Merge branch 'w13_MDL-38673_m25_flowplayer' of git://github.com/skodak/moodle 2013-03-26 16:11:47 +08:00
Frederic Massart a59bbb6e12 MDL-38611 page: Reformat settings form 2013-03-26 15:40:24 +08:00
Damyon Wiese 3dbfd15872 Merge branch 'm25_MDL-38336_SCORM_TOC_links_when_Display_course_structure_is_on' of https://github.com/scara/moodle 2013-03-26 15:40:04 +08:00
Damyon Wiese 41fdbc0d77 MDL-38468 Filelib: Fix ordering of new mimetypes 2013-03-26 15:16:15 +08:00
Damyon Wiese 2013daeb47 Merge branch 'm25_MDL-38468_Fix_MHTML_files_delivery' of https://github.com/scara/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-03-26 15:13:35 +08:00
Charles Fulton bb1592c860 MDL-38700 course: only change visibility if a module moves to a different section 2013-03-26 15:03:33 +08:00
Dan Poltawski 1fff1b8cba MDL-38700 course: add tests for moveto_module()
* Test visibility when moving around hidden sections
* Test for visiblity changes when moving around in the same sections.
2013-03-26 15:03:32 +08:00
Damyon Wiese 96a9273343 Merge branch 'MDL-38528' of git://github.com/timhunt/moodle 2013-03-26 14:57:04 +08:00
Damyon Wiese a847da21d0 MDL-35875: Version bump for CSS changes 2013-03-26 14:50:18 +08:00
Damyon Wiese 95764ab7ef Merge branch 'MDL-35875-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/upgrade.txt
2013-03-26 14:49:34 +08:00
Damyon Wiese d0fd9726d1 Merge branch 'MDL-30438_b' of git://github.com/rwijaya/moodle 2013-03-26 14:29:57 +08:00
Damyon Wiese c7c472a87a MDL-38147 Course: Added version bump for cache definitions. 2013-03-26 14:22:35 +08:00
Damyon Wiese 0c241b980a Merge branch 'wip-MDL-38147-master' of git://github.com/marinaglancy/moodle
Conflicts:
	lib/upgrade.txt
2013-03-26 14:22:11 +08:00
Jason Fowler 6671fa735a MDL-35876 - Blocks - Adding verbose move here descriptions to blocks for accessibility 2013-03-26 14:21:38 +08:00
Frederic Massart 2c1065f7a9 MDL-38610 label: Module settings have a general section 2013-03-26 14:02:11 +08:00
Damyon Wiese 8af0dffb50 Merge branch 'MDL-34311-master' of git://github.com/danpoltawski/moodle
Conflicts:
	course/moodleform_mod.php
	lib/upgrade.txt
2013-03-26 13:46:29 +08:00
Damyon Wiese 59ef4aab75 MDL-38598 Forms: Version bump for js changes. 2013-03-26 13:33:52 +08:00
Damyon Wiese 37e50e9316 Merge branch 'MDL-38598-master-int' of git://github.com/FMCorz/moodle 2013-03-26 13:28:57 +08:00
Damyon Wiese 935ff91d5f Merge branch 'MDL-38380' of git://github.com/lazydaisy/moodle 2013-03-26 13:23:53 +08:00
Marina Glancy 4e53188a4b MDL-38147 bug fix, changed usage of non-existing function 2013-03-26 16:17:34 +11:00
Damyon Wiese 553b23989a Merge branch 'MDL-38390' of git://github.com/jonof/moodle 2013-03-26 13:12:29 +08:00
Damyon Wiese 1e425d185b Merge branch 'MDL-38429' of git://github.com/rwijaya/moodle 2013-03-26 12:59:53 +08:00
Damyon Wiese d21a452dcc Merge branch 'MDL-38569-master' of git://github.com/FMCorz/moodle 2013-03-26 12:19:05 +08:00
Marina Glancy 290af25434 MDL-38147 fixed small bug on changed categories cache 2013-03-26 14:09:00 +11:00
Damyon Wiese 4e4ef99a15 Merge branch 'wip-mdl-36882' of git://github.com/rajeshtaneja/moodle 2013-03-26 10:41:33 +08:00
Damyon Wiese 688f9a46b3 Merge branch 'wip-mdl-36125' of git://github.com/rajeshtaneja/moodle 2013-03-26 10:04:31 +08:00
Damyon Wiese febc08786e Merge branch 'wip-MDL-38650_master' of git://github.com/gjb2048/moodle 2013-03-26 09:38:46 +08:00
Mary Evans 89c9dfc417 MDL-38702 theme_mymobile: Replaced missing theme setting to disable CSS Optimiser.
The missing setting was a regression casued by MDL-33357.
2013-03-26 00:10:37 +00:00
David Mudrák 3ac58f227a MDL-37602 Add feedbackauthorattachment field into the workshop_assessments table
This is a flag to quickly see if some files are expected to be attached
to the overall feedback for the submission author.
2013-03-25 22:31:32 +01:00
Petr Škoda f22f1cafd2 MDL-38627 force byteserving abort on error
It is weird, but Chrome PDF viewer keeps retrying byteserving requests for anything but 407. This commit also normalises response headers on all error pages.
2013-03-25 16:06:02 +01:00
David Mudrák 1c6b484dab MDL-37602 Overall feedback can be configured in the workshop settings form
Three new fields are added into the into the Assessment settings section
of the form. The default value for the overallfeedbackmaxbytes is the
same as the maximum size for submission attachments (which seems to be a
reasonable value). If there is a demand and a strong use case, these
values can became per-site configurable (I can see no big benefit of
doing so right now).

AMOS BEGIN
 CPY [maxbytes,mod_workshop],[overallfeedbackmaxbytes,mod_workshop]
AMOS END
2013-03-25 13:23:02 +01:00
David Mudrák 7426229f12 MDL-37602 Add new fields into the workshop table to hold the feature settings
These three fields hold the per-instance settings for the new Overall
feedback feature. Expected values in the new overallfeedbackmode fields are:
0 - the feature is disabled in this workshop instance
1 - overall feedback is optional (default)
2 - overall feedback is required (i.e. the reviewer must put some text
into the overall feedback field).

Files can be attached to the overall feedback text field, if the field
overallfeedbackfiles > 0 and the feature is enabled (i.e. it is optional
or required). The actual number of attached files is not checked in the
required mode (i.e. attaching files is always optional, if it is
allowed).
2013-03-25 12:58:15 +01:00
Gareth J Barnard 42d79f551d MDL-38650 theme_mymobile: Convert to new jQuery support infrastructure. 2013-03-25 10:26:35 +00:00
Frederic Massart f3aadb1cd0 MDL-38599 glossary: Reformat settings form 2013-03-25 18:05:43 +08:00
Damyon Wiese 0cdc5fc059 Merge branch 'MDL-38674-m' of git://github.com/andrewnicols/moodle 2013-03-25 16:00:00 +08:00
Damyon Wiese 3b5539af5e Merge branch 'MDL-38668' of git://github.com/stronk7/moodle 2013-03-25 15:51:01 +08:00
Chris Wharton 7605dba31b MDl-38494 user: Fix uploaded datetime profile fields 2013-03-25 15:48:04 +08:00
Damyon Wiese 8b18c1bae5 Merge branch 'w13_MDL-38675_m25_tcpdf' of git://github.com/skodak/moodle 2013-03-25 15:36:25 +08:00
Rossiani Wijaya ecea65cace MDL-38429 Lesson Module: improve lesson code by reseting NULL value to use lowercase. 2013-03-25 14:07:18 +08:00
Damyon Wiese 8aae16fb41 MDL-38654 Deprecating gdversion setting: Fix typo for new install 2013-03-25 14:06:00 +08:00
Damyon Wiese 35f155519e Merge branch 'w13_MDL-38654_m25_gdversion' of git://github.com/skodak/moodle
Conflicts:
	lang/en/admin.php
2013-03-25 14:02:31 +08:00
Roman Tsukanov 1b58651681 MDL-38429: lesson report - Improve lesson statistics code. 2013-03-25 13:58:13 +08:00
Damyon Wiese 2e0b17051c Merge branch 'w13_MDL-15727_m25_jquery' of git://github.com/skodak/moodle 2013-03-25 12:27:32 +08:00
Rossiani Wijaya 3bd18935d7 MDL-30438 Lesson Module: fixed input text editable capability after checking/unchecking unmask option 2013-03-25 11:47:05 +08:00
Damyon Wiese e909c7c390 Merge branch 'MDL-38044-master' of git://github.com/FMCorz/moodle 2013-03-25 11:30:36 +08:00
Rossiani Wijaya 41e2a9591f MDL-30438 Lesson Module: improve password field to disabled when password protect is set to no. 2013-03-25 11:26:50 +08:00
Damyon Wiese 716f35954e Merge branch 'wip-MDL-34917_master' of git://github.com/gjb2048/moodle 2013-03-25 11:15:03 +08:00
Damyon Wiese 27a1d25f05 MDL-31681: Formatting changes to fix indentation
Also removed/refactored some confusing use of references.
2013-03-25 10:37:14 +08:00
Marina Glancy 93c544bdb0 MDL-38147 Added functions coursecat::search_courses(), get_courses()
Also search_courses_count(), get_courses_count();
Added unittests
2013-03-25 13:23:38 +11:00
Marina Glancy 9c6cfc083f MDL-38147 fixes to phpdocs and avoid using deprecated context functions 2013-03-25 13:23:37 +11:00
Marina Glancy 9178bbbcf3 MDL-38147 changed logic for building list in make_categories_list() 2013-03-25 13:23:37 +11:00
Marina Glancy eabbfa82d3 MDL-38147 Improvements to caching of course categories, coursecat::get_children() improvements
- Course categories caches are purged by event now
- session cache has additional 10 minutes ttl to clear itself and accomodate for permission changes that do not trigger event purging
- additional request-level cache for coursecat::get()
- We store only children of one category in one cache key
- Function coursecat::get_children() can return results sorted and/or paginated. Added tests
2013-03-25 13:23:15 +11:00
Marina Glancy 15d50fffd8 MDL-38147 Performance improvements to coursecat class:
- Retrieve and cache only often-used fields of course category
- Removed function coursecat::get_all_visible() as potentially causing performance issues
- removed function coursecat::get_all_parents() as ineffective and unnecessary, replaced with get_parents()
- retrieve all fields from course_categories when unretrieved field is accessed

Also some code improvements:
- rename functions starting with _ , rename arguments, etc.
2013-03-25 13:23:14 +11:00
Marina Glancy e1d54562ce MDL-38147 deprecated get_categories(), change usage to coursecat 2013-03-25 13:23:06 +11:00
Marina Glancy 8db5dcb7cd MDL-38147 deprecated get_child_categories(), change usage to coursecat 2013-03-25 13:22:56 +11:00
Marina Glancy bc81b0065c MDL-38147 deprecated get_all_subcategories() 2013-03-25 13:22:38 +11:00
Marina Glancy 9bad61dbfe MDL-38147 deprecated create_course_category(), change usage to coursecat. Also avoid direct DB update of table course_categories
changed to usage of
- coursecat::create()
- coursecat::update()
2013-03-25 13:22:26 +11:00
Marina Glancy 2d8a275bab MDL-38147 deprecated get_course_category(), change usage to coursecat 2013-03-25 13:21:20 +11:00
Marina Glancy 6e1d1ee0e7 MDL-38147 deprecated move_category(), course_category_hide(), course_category_show(), change usage to coursecat
All usages in core replaced with:
- coursecat::change_parent()
- coursecat::hide()
- coursecat::show()
2013-03-25 13:21:09 +11:00
Marina Glancy deb65cedc4 MDL-38147 deprecated category_delete_move(), category_delete_full(), change usage to coursecat 2013-03-25 13:21:04 +11:00
Marina Glancy 4e0b6025ad MDL-38147 deprecated make_categories_list(), change usage to coursecat 2013-03-25 13:20:46 +11:00
Marina Glancy b28bb7e8c7 MDL-38147 Added coursecatlib_test.php, changed other tests to use coursecat::create() for creating category 2013-03-25 13:20:39 +11:00
Marina Glancy b33389d228 MDL-38147 Created class coursecat, added cache definition and lang strings 2013-03-25 13:20:33 +11:00
Damyon Wiese adfcc976f6 Merge branch 'MDL-31681' of https://github.com/Lightwork-Marking/moodle 2013-03-25 10:15:38 +08:00
Dan Poltawski b716cd2b70 MDL-34311 mod_url: Missing setType on the external url 2013-03-25 09:39:30 +08:00
Dan Poltawski 9f9dde40ee MDL-34311 course: add missing type on cm idnumber
We must use PARAM_RAW for idnumbers because external systems could use
any characters and this is a linking field for external systems.
2013-03-25 09:30:52 +08:00
Dan Poltawski e994754d31 MDL-34311 course: prevent course edit form warnings
There is a placeholder element.
2013-03-25 09:30:51 +08:00
Dan Poltawski b45ba7f6fa MDL-34311 formslib: warn when no param type set
Params without a type set will not be getting cleaned, so if developers
really do not want cleaning, they should set it explicitly.
2013-03-25 09:30:51 +08:00
Damyon Wiese 81409525b9 MDL-37033 Environment - Fix indenting in XML 2013-03-25 09:20:53 +08:00
David Monllao 970c5f3849 MDL-38483 behat: New test
According to MDLQA-89
2013-03-25 09:19:40 +08:00
David Monllao b4e94458c7 MDL-38484 behat: New test
According to MDLQA-4597
2013-03-25 09:19:14 +08:00
Damyon Wiese 3bdb3e1605 Merge branch 'MDL-37033' of git://github.com/stronk7/moodle 2013-03-25 09:13:50 +08:00
Frederic Massart 41d020b35e MDL-38645 form: Added margin between checkbox/radio and label 2013-03-25 08:30:31 +08:00
Frederic Massart 207c737dc0 MDL-38569 form: No advanced settings in Common module settings 2013-03-25 08:29:05 +08:00
Frederic Massart 619fe67e32 MDL-38598 form: Prevent flickering due to advanced fields 2013-03-25 08:28:32 +08:00
Frederic Massart 8819a83601 MDL-26644 course: Remove useless setting completionstartonenrol
This commit removes any trace of the setting 'Completion tracking
begins on enrolment' as it does not appear to do anything.
2013-03-25 08:28:01 +08:00
Frederic Massart 5c5317aedc MDL-38612 url: Reformat module settings form 2013-03-25 08:17:59 +08:00
Eloy Lafuente (stronk7) 5214f9ef96 Merge branch 'MDL-38658-m' of git://github.com/andrewnicols/moodle 2013-03-24 23:40:50 +01:00
Eloy Lafuente (stronk7) 943e317cb4 Merge branch 'MDL-36927-master' of git://github.com/ankitagarwal/moodle 2013-03-24 23:39:07 +01:00
Eloy Lafuente (stronk7) 22ddcdef89 Merge branch 'w13_MDL-38581_m25_forumtests' of git://github.com/skodak/moodle 2013-03-24 23:26:55 +01:00
Petr Škoda c7289da7eb MDL-38654 add full $CFG->gdversion backwards compatibility for now 2013-03-24 22:18:49 +01:00
Paul Charsley 3f0ea6d8a7 MDL-31681 added core_grade_get_definitions web service function 2013-03-25 08:38:05 +13:00
Andrew Robert Nicols 5e8dddc167 MDL-38666 JavaScript: Migrate moodle-calendar-evantmanager to use Shifter 2013-03-24 18:42:38 +00:00
Andrew Robert Nicols a94dd7d2b8 MDL-38517 JavaScript: Migrate moodle-core-blocks to use Shifter 2013-03-24 18:39:57 +00:00
Petr Škoda e5f4ba84ab MDL-38675 import tcpdf 5.9.209 2013-03-24 18:59:33 +01:00
Petr Škoda 83cca3da87 MDL-38673 import flash based FlowPlayer 3.2.16 2013-03-24 18:35:09 +01:00
Andrew Robert Nicols 096065e6c0 MDL-38674 JavaScript: Migrate moodle-filter_glossary-autolink to use Shifter 2013-03-24 17:26:23 +00:00
Petr Škoda 510d190382 MDL-38672 import HTML Purifier 4.5.0 2013-03-24 18:00:44 +01:00
Petr Škoda 9f7b1c7f95 MDL-38671 add adodb 5.18 2013-03-24 17:48:11 +01:00
Petr Škoda fe95fb5322 MDL-37782 reset DB after each failed database test 2013-03-24 14:16:28 +01:00
Petr Škoda 77a5c09354 MDL-37742 simplify dirty one-space oracle hack 2013-03-24 13:43:18 +01:00
Matteo Scaramuccia 724dc929c7 MDL-38336 SCORM: incorrect TOC bulding when 'Display course structure' is on 2013-03-24 11:02:41 +01:00
Eloy Lafuente (stronk7) dbd349ab09 MDL-38668 timezones: update to tzdata 2013b 2013-03-24 10:42:28 +01:00
Andrew Robert Nicols f0e79573cf MDL-38667 JavaScript: Correct loading of Shifted CSS 2013-03-24 01:29:00 +00:00
Gareth J Barnard d46e26f682 MDL-34917 course: Jump to section navigation for 'One section per page'. 2013-03-23 17:01:32 +00:00
Matteo Scaramuccia 2aecb84d01 MDL-38468 Files API: fixed the support for MTHML (MIME HTML: web page archive) files 2013-03-23 10:21:51 +01:00
Jonathon Fowler 8bcefa699d MDL-38390 qformat_blackboard_six: use pool title as category name
If the category title is empty, generate a sequentially-numbered
title to use instead.
2013-03-23 17:35:16 +10:00
Petr Škoda 15bac12e9d MDL-37783 add some useful information to any phpunit output 2013-03-23 00:06:39 +01:00
Petr Škoda de8056c871 MDL-38589 improve missing PHPUnit library hint 2013-03-22 22:47:08 +01:00
Andrew Robert Nicols 3f53437109 MDL-38658 JavaScript: Correct fullpath for dndupload definition 2013-03-22 17:29:56 +00:00
Petr Škoda 689096bc26 MDL-38654 do not test $CFG->gdversion
GD PHP extension is now required. Add-ons need to remove $CFG->gdversion tests. The worst case regression is that add-on will think GD is not available.
2013-03-22 16:57:55 +01:00
Eloy Lafuente (stronk7) 40b5cb2d71 MDL-37033 environment: add 2.5 brach details 2013-03-22 16:41:15 +01:00
Tim Hunt a7a031a4e4 MDL-38651 quiz settings: fix layout of review options. 2013-03-22 15:30:48 +00:00
Eloy Lafuente (stronk7) d86db37c44 MDL-38632 folder: observe show_expanded on course page 2013-03-22 15:53:53 +01:00
Fred Woolard 05b733703c MDL-37676 Use course grade category if mapping fails for manual grade items 2013-03-22 08:24:33 -04:00
Petr Škoda c3f31a3ded MDL-38581 move forum discussion and post generators to proper place 2013-03-22 13:21:35 +01:00
Petr Škoda 63c88397f5 MDL-15727 basic jQuery support
See http://docs.moodle.org/dev/jQuery for more details.
2013-03-22 13:09:50 +01:00
Tim Hunt 2515be0e80 MDL-38647 quiz review question issues
1. Page URL should contain 'step=0' if necessary, but not 'step='.
2. Review specific step was not using the right display options.
2013-03-22 11:16:02 +00:00
Tim Hunt 7dbde4ed3b MDL-38557 quiz install.php code should actually be in reports.
I think it is worth moving this code to its correct home in master.
2013-03-22 10:36:15 +00:00
Tim Hunt 30461b0066 MDL-38557 quiz manual grading should check mod/quiz:grade 2013-03-22 10:36:14 +00:00
Tim Hunt 0559a72aa3 MDL-38557 fix quiz version number mess from MDL-31983 2013-03-22 10:36:13 +00:00
Tim Hunt ba203de1d3 MDL-38582 testing: Let any component have a data generator.
Plus a simple core_question generator to test the concept.
2013-03-22 10:28:24 +00:00
Tim Hunt d6b8e1923a MDL-38528 qtype_calc* dataset forms: disable short-forms for now.
At the moment using short-forms no these forms really does not work. In
future is may be possible to do a complete overhaul, but for now, just
disabling short-forms is a simple fix.
2013-03-22 10:28:03 +00:00
Frederic Massart 0ae903bd5f MDL-38566 form: Misaligned elements in RTL 2013-03-22 16:32:23 +08:00
Frederic Massart f2c0aba81d MDL-38044 form: Added collapse/expand all buttons 2013-03-22 16:25:48 +08:00
Frederic Massart 0a94e4a928 MDL-38563 navigation: Removed extra parameters when calling add() 2013-03-22 14:40:12 +08:00
Damyon Wiese 373a8e052c weekly release 2.5dev 2013-03-22 13:38:50 +08:00
Damyon Wiese 39b041eca1 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-03-22 13:35:24 +08:00
Rajesh Taneja fa1ccff866 MDL-36125 course: Added aria-describedby for editing activity title 2013-03-22 12:39:24 +08:00
Rajesh Taneja e2e9ff6542 MDL-38344 Calendar: converted name field in event table to text
There is no limitation on length of event name in RFC-2445, so changing type
for name from char to text.
2013-03-22 10:02:06 +08:00
Rajesh Taneja f0989c3bf7 MDL-36882 course: Added aria-live for manual completion
This is required so that assistive technologies can notify user about change on completion status
2013-03-21 17:28:00 +08:00
David Monllao 355a2c2c25 MDL-38524 behat: Add fake jsrev and themerev
The behat admin tool does not use moodle database
as it runs before anything else, it should set
CFG->jsrev and CFG->themerev as they are required.
2013-03-21 16:34:55 +08:00
David Monllao 371b7fc397 MDL-38414_master behat: Changing expand fieldsets test to forum form 2013-03-21 10:42:24 +08:00
AMOS bot ba6e8f02f0 Automatically generated installer lang files 2013-03-21 00:37:26 +00:00
Eloy Lafuente (stronk7) fedcc83016 Merge branch 'MDL-38035-master' of git://github.com/sammarshallou/moodle 2013-03-20 17:06:22 +01:00
sam marshall acfee0d4ba MDL-38035 Conditional availability: Support multilang custom user fields 2013-03-20 15:57:53 +00:00
David Monllao 25919739fd MDL-38364 phpunit: PHPUnit autoload uses capital A 2013-03-20 16:02:40 +08:00
Frederic Massart b7fc9d5a26 MDL-38552 forms: IMS CP content section expanded by default 2013-03-20 14:31:33 +08:00
Ankit Agarwal 909b8671e8 MDL-36927 Reports: Page layout is not defined in course/recent.php 2013-03-20 14:11:09 +08:00
Damyon Wiese c2eb74df47 Merge branch 'MDL-34401-muc-pluginlib' of git://github.com/mudrd8mz/moodle
Conflicts:
	lib/db/caches.php
	version.php
2013-03-20 14:08:55 +08:00
Damyon Wiese f50867c424 Merge branch 'wip-MDL-38387-m25' of https://github.com/samhemelryk/moodle 2013-03-20 13:24:18 +08:00
Damyon Wiese d7cea24b55 MDL-38373 Auth - Additional strict warning fix for radius authentication 2013-03-20 12:32:29 +08:00
Sam Hemelryk 1d8a1a87de MDL-38055 course: fixed double encoding of title properties 2013-03-20 17:27:08 +13:00
Sam Hemelryk 7b9cb736ba MDL-38387 cache: removed call to plugins API from cache API 2013-03-20 16:07:25 +13:00
Sam Hemelryk a3b63be703 MDL-38350 cache: fixed issue with siteidentifier === false 2013-03-20 16:07:25 +13:00
Sam Hemelryk fe86ebfa4d MDL-38387 cache: fixed inifinite initialisation loop with site id 2013-03-20 16:07:25 +13:00
Damyon Wiese 80d852fa23 Merge branch 'MDL-38373' of git://github.com/stronk7/moodle 2013-03-20 11:05:38 +08:00
Eloy Lafuente (stronk7) cfe6a96f0a Merge branch 'MDL-38470-m' of https://github.com/andrewnicols/moodle 2013-03-20 01:47:52 +01:00
Andrew Robert Nicols c5952e06f1 MDL-38470 JavaScript: Rebuild moodle-core-tooltip with Shifter 2013-03-20 00:46:33 +00:00
Eloy Lafuente (stronk7) 99b3e4e7bd Merge branch 'MDL-38414-master' of git://github.com/FMCorz/moodle 2013-03-20 01:21:05 +01:00
Eloy Lafuente (stronk7) dc1abf2bc4 Merge branch 'MDL-38330-master' of git://github.com/FMCorz/moodle 2013-03-20 01:19:17 +01:00
Eloy Lafuente (stronk7) e6f94aaa11 MDL-38515 JavaScript: Partially revert 4f65d03b08
It was going to cause some continuous logging in the console
annoying developers on 2.5 all the time. It may be reintroduced
once filepickers are converted to proper YUI modules.
2013-03-20 01:02:45 +01:00
Eloy Lafuente (stronk7) b2b54ad7fe Revert "MDL-38515 JavaScript: Correct module dependencies for core_filepicker"
This reverts commit babf34d5cf.
2013-03-20 00:55:32 +01:00
Eloy Lafuente (stronk7) 8b994ec0b9 Merge branch 'MDL-38490' of git://github.com/timhunt/moodle 2013-03-20 00:43:09 +01:00
Eloy Lafuente (stronk7) e233dc58ed Merge branch 'MDL-38416-master' of git://github.com/FMCorz/moodle 2013-03-20 00:34:52 +01:00
Eloy Lafuente (stronk7) b35dd05521 Merge branch 'MDL-38370-master' of git://github.com/ankitagarwal/moodle 2013-03-20 00:30:49 +01:00
Eloy Lafuente (stronk7) 6a32219c84 Merge branch 'w12_MDL-38364_m25_phpunitloading' of git://github.com/skodak/moodle 2013-03-20 00:17:35 +01:00
Eloy Lafuente (stronk7) 044566f001 Merge branch 'MDL-38166-m' of git://github.com/andrewnicols/moodle 2013-03-20 00:13:51 +01:00
Eloy Lafuente (stronk7) 87b6981e25 MDL-38035 api: doc get_condition_user_fields() new param. 2013-03-20 00:09:43 +01:00
Eloy Lafuente (stronk7) 1d962a1984 Merge branch 'MDL-38035-master' of git://github.com/sammarshallou/moodle 2013-03-19 23:54:27 +01:00
Eloy Lafuente (stronk7) 354ec0691b Merge branch 'MDL-37664-master' of https://github.com/lucisgit/moodle 2013-03-19 23:31:21 +01:00
Eloy Lafuente (stronk7) e73ac7692e Merge branch 'MDL-38433_master' of git://github.com/dmonllao/moodle 2013-03-19 23:27:50 +01:00
Eloy Lafuente (stronk7) 1d790031c2 Merge branch 'MDL-38411_master' of git://github.com/dmonllao/moodle 2013-03-19 23:26:01 +01:00
Eloy Lafuente (stronk7) eb8a3eeaac Merge branch 'MDL-38410_master' of git://github.com/dmonllao/moodle 2013-03-19 23:20:31 +01:00
Eloy Lafuente (stronk7) ec05fb8367 Merge branch 'MDL-38424_master' of git://github.com/kordan/moodle 2013-03-19 23:17:39 +01:00
Eloy Lafuente (stronk7) 85620106df Merge branch 'MDL-38418-master' of git://github.com/FMCorz/moodle 2013-03-19 23:15:04 +01:00
Eloy Lafuente (stronk7) 65b5f400b8 Merge branch 'MDL-38395' of git://github.com/timhunt/moodle 2013-03-19 23:06:06 +01:00
Mary Evans 281dac44cd MDL-38380 theme_magazine: Fixed typo in style/core.css at line 980. 2013-03-19 20:30:30 +00:00
Eloy Lafuente (stronk7) 989b9ab6fb Merge branch 'MDL-38363' of git://github.com/timhunt/moodle 2013-03-19 21:02:48 +01:00
Eloy Lafuente (stronk7) 28a5cd942d Merge branch 'MDL-38355' of git://github.com/timhunt/moodle 2013-03-19 21:00:21 +01:00
Eloy Lafuente (stronk7) e0e59a0c38 Merge branch 'w12_MDL-38558_m25_preupgrade' of git://github.com/skodak/moodle 2013-03-19 19:15:09 +01:00
Petr Škoda 6b4b74904b MDL-38558 add preupgrade script support
This is intended things like undoing of local hacks, it is similar to older pre 2.0 upgrade hack.
2013-03-19 19:14:01 +01:00
Eloy Lafuente (stronk7) 49ac0c5d6a Merge branch 'MDL-38388' of git://github.com/jonof/moodle 2013-03-19 18:47:39 +01:00
Eloy Lafuente (stronk7) bab8a6724f Merge branch 'MDL-33680-m' of git://github.com/andrewnicols/moodle 2013-03-19 18:27:57 +01:00
Eloy Lafuente (stronk7) bf2d2aa983 Merge branch 'MDL-38412' of git://github.com/timhunt/moodle 2013-03-19 18:20:47 +01:00
Eloy Lafuente (stronk7) 4e37889c41 Merge branch 'w12_MDL-38329_m25_webkit' of git://github.com/skodak/moodle 2013-03-19 18:17:11 +01:00
Eloy Lafuente (stronk7) 66f1870701 Merge branch 'w12_MDL-38180_m25_enrolpics' of git://github.com/skodak/moodle 2013-03-19 17:58:55 +01:00
Eloy Lafuente (stronk7) 58b9cd031f Merge branch 'MDL-38497-admintree-beforesibling' of git://github.com/mudrd8mz/moodle
Conflicts:
	lib/upgrade.txt
2013-03-19 17:16:32 +01:00
Eloy Lafuente (stronk7) 83ba845de9 Merge branch 'w12_MDL-38202_m25_loginas' of git://github.com/skodak/moodle 2013-03-19 16:51:45 +01:00
Eloy Lafuente (stronk7) b81d5eab90 Merge branch 'MDL-38542' of git://github.com/timhunt/moodle 2013-03-19 16:48:37 +01:00
Eloy Lafuente (stronk7) 1e1815bead Merge branch 'MDL-38444' of https://github.com/ppichet/moodle 2013-03-19 16:33:28 +01:00
Tim Hunt 1736fe3f74 MDL-38542 shortanswer qtype: was broken for responses of '0'.
This was a regression caused by MDL-37157 & MDL-37746.
2013-03-19 13:40:51 +00:00
Eloy Lafuente (stronk7) 7c27e34742 Merge branch 'MDL-38507-m' of git://github.com/andrewnicols/moodle 2013-03-19 13:31:46 +01:00
Eloy Lafuente (stronk7) 7761a38737 Merge branch 'w12_MDL-38319_m25_roleperf' of git://github.com/skodak/moodle 2013-03-19 13:22:50 +01:00
Eloy Lafuente (stronk7) f2bf31e886 Bump (to better detect other issues incrementing it) 2013-03-19 13:21:17 +01:00
Eloy Lafuente (stronk7) 1816c69c3f Merge branch 'MDL-38391-m' of git://github.com/andrewnicols/moodle 2013-03-19 13:17:51 +01:00
Andrew Robert Nicols ad00331ebd MDL-38391 lib: Add missing string for YUI cachedef 2013-03-19 12:09:43 +00:00
Eloy Lafuente (stronk7) e630729443 Merge branch 'MDL-38515-m' of git://github.com/andrewnicols/moodle 2013-03-19 12:51:47 +01:00
Andrew Robert Nicols babf34d5cf MDL-38515 JavaScript: Correct module dependencies for core_filepicker 2013-03-19 11:42:12 +00:00
Andrew Robert Nicols 4f65d03b08 MDL-38515 JavaScript: Detect use of invalid module names in YUI dependencies
A warning is shown in the browser console if debugging is set, but it is
not possible to return from the configFn and stop the module load attempt
from continuing.

The error is caught and an additional error is shown by yui_combo.php
2013-03-19 11:42:12 +00:00
Eloy Lafuente (stronk7) 09fe13d123 Merge branch 'MDL-38391-m' of git://github.com/andrewnicols/moodle 2013-03-19 12:34:45 +01:00
Eloy Lafuente (stronk7) 70ca006538 Merge branch 'MDL-38397' of git://github.com/timhunt/moodle 2013-03-19 12:28:01 +01:00
Eloy Lafuente (stronk7) 5272b7a70f Merge branch 'wip-mdl-38431' of git://github.com/rajeshtaneja/moodle 2013-03-19 10:24:23 +01:00
David Monllao 1e63755fb5 MDL-38531 behat: Replacing composer install for composer update 2013-03-19 16:45:58 +08:00
David Monllao 6b6303d9a1 MDL-38411 behat: New test 2013-03-19 16:44:55 +08:00
David Monllao b7d6c48589 MDL-38433 behat: New tests
According to MDLQA-48
2013-03-19 16:44:20 +08:00
David Monllao 4b61cc91ac MDL-38410 behat: Adding basic step and test for mod_choice 2013-03-19 16:42:59 +08:00
David Monllao 5cde7298e3 MDL-38410 behat: Adding new form fields 2013-03-19 16:42:59 +08:00
David Monllao fb624374bc MDL-38410 behat: Step to select from radio inputs 2013-03-19 16:42:59 +08:00
Eloy Lafuente (stronk7) bacd6a6f32 Merge branch 'MDL-36872-master' of git://github.com/ankitagarwal/moodle 2013-03-19 09:36:43 +01:00
David Monllao ca4f33a79e MDL-38547 behat: New generic steps definitions
For advanced users as specified in the step
description, they can be used to match any locator
using any selector type
2013-03-19 16:29:29 +08:00
David Monllao 32d6e29eb4 MDL-38547 behat: New tests
According MDLQA-1597, MDLQA-1598,
MDLQA-1599, MDLQA-1600 and MDLQA-1601
2013-03-19 16:28:19 +08:00
Damyon Wiese 43087d02dd Merge branch 'MDL-38368-master' of git://github.com/FMCorz/moodle 2013-03-19 16:17:41 +08:00
Damyon Wiese 20139cbcef MDL-30790 folder : Whitespace fixes 2013-03-19 15:59:41 +08:00
Damyon Wiese 0cabeada65 Merge branch 'MDL-30790_25' of git://github.com/rlorenzo/moodle 2013-03-19 15:47:35 +08:00
Damyon Wiese db98fa786e Merge branch 'wip-mdl-36395-m' of git://github.com/rajeshtaneja/moodle
Conflicts:
	version.php
2013-03-19 15:18:13 +08:00
Damyon Wiese 851c304f45 Merge branch 'w12_MDL-38320_m25_logininfo' of git://github.com/skodak/moodle 2013-03-19 15:01:02 +08:00
Damyon Wiese 976b0ff2d4 Merge branch 'MDL-37959-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/formslib.php
2013-03-19 14:54:40 +08:00
Damyon Wiese 08f5b90bb7 Merge branch 'MDL-38426_dnd_plain_text' of git://github.com/davosmith/moodle 2013-03-19 14:36:43 +08:00
Damyon Wiese a34ffe2e2e Merge branch 'MDL-38456-mdeploy-paths' of git://github.com/mudrd8mz/moodle 2013-03-19 14:02:23 +08:00
Michael de Raadt 4b6bf04659 MDL-38543 Adjusted fieldset in select all-none fieldset check 2013-03-19 13:49:47 +08:00
Damyon Wiese 3b2a6bf555 MDL-37079 Course create/update module. Remove use of "continue 2". 2013-03-19 13:03:11 +08:00
Damyon Wiese 716db45f50 Merge branch 'MDL-38453-master' of git://github.com/FMCorz/moodle 2013-03-19 12:15:48 +08:00
Damyon Wiese dcc5f0fe1e Merge branch 'MDL-38049-master' of git://github.com/FMCorz/moodle 2013-03-19 11:52:51 +08:00
Damyon Wiese 8f2913b936 MDL-37079 Course create/update module. Fix indenting, some comment formatting and whitespace. 2013-03-19 11:20:39 +08:00
Damyon Wiese 8fe55f6862 Merge branch 'MDL-37079-master2' of git://github.com/mouneyrac/moodle 2013-03-19 11:13:23 +08:00
Damyon Wiese 1c14b1c10c MDL-38367 Course dnduploadlib : deprecated add_* functions as they are internal to the class. 2013-03-19 09:56:16 +08:00
Damyon Wiese 23477802b7 Merge branch 'MDL-38367_dnd_ui_improvements' of git://github.com/davosmith/moodle 2013-03-19 09:31:07 +08:00
Eloy Lafuente (stronk7) 668a62ef80 Merge branch 'MDL-38524_master' of git://github.com/dmonllao/moodle 2013-03-19 01:46:11 +01:00
Andrew Robert Nicols 53ae22b993 MDL-38391 lib: Also include core subsystems in YUI_config.modules 2013-03-18 23:52:39 +00:00
Andrew Robert Nicols da5e59b9d9 MDL-38391 lib: Rename moodle_metadata adder
This is a bit of a grey area. This function does not get and return a value
to the caller, and does not set a value taken from the caller. Instead it
gets a value from get_moodle_metadata and adds it to the current instance
of YUI_config. This rename will hopefully improve clarity here.
2013-03-18 23:30:00 +00:00
Andrew Robert Nicols c199993a61 MDL-38391 lib: Add note about use of camelCase variables names in YUI_config 2013-03-18 23:17:32 +00:00
Andrew Robert Nicols d52ba47ee0 MDL-38391 lib: Remove clearing of YUI MUC cache on cache purge
purge_all_caches() handles clearing of all MUC caches so we don't need to
additionally clear the cache here too.
2013-03-18 23:13:16 +00:00
Eloy Lafuente (stronk7) 03deed4f75 Merge branch 'w12_MDL-36198_m25_yuireset' of git://github.com/skodak/moodle 2013-03-18 23:56:34 +01:00
Andrew Robert Nicols 0653469e0c MDL-38520 JavaScript: Migrate moodle-core-formchangechecker to use Shifter 2013-03-18 22:36:56 +00:00
Andrew Robert Nicols 3756320fd0 MDL-38519 JavaScript: Migrate moodle-core-formautosubmit to use Shifter 2013-03-18 22:24:31 +00:00
Andrew Robert Nicols 21db4396ab MDL-38404 JavaScript: Migrate editor_tinymce to use Shifter 2013-03-18 21:56:34 +00:00
Davo Smith 09fd07fe00 MDL-38367 course dndupload - deprecate public 'add_type' function, remove non-YUI3 API call to _node 2013-03-18 18:47:04 +00:00
David Monllao f07bf92f53 MDL-38524 behat: Using wildcard instead of hardcoded version 2013-03-18 16:32:13 +08:00
Jerome Mouneyrac 37550a52e7 MDL-37079 missed one modedit.php change since started to work on the issue 2013-03-18 16:08:52 +08:00
Jerome Mouneyrac 80fe0c1983 MDL-37079 switch the modedit.php functions into course/modedit.php 2013-03-18 14:41:38 +08:00
Jerome Mouneyrac 7cb0ea2c37 MDL-37079 remove TODO, add . in comments 2013-03-18 14:41:37 +08:00
Jerome Mouneyrac 7bf4f6e999 MDL-37079 Added many assertEquals + generic test function (easy to test new module) + now process next advanced grading screens 2013-03-18 14:41:36 +08:00
Jerome Mouneyrac dd5d933f30 MDL-37079 create/update_module() 2013-03-18 14:41:35 +08:00
Damyon Wiese 864ce820c4 MDL-38005 formslib: Removing additional duplicate headers in calculated question form. 2013-03-18 14:11:09 +08:00
Damyon Wiese 7c211f565a Merge branch 'MDL-38005-master' of git://github.com/FMCorz/moodle 2013-03-18 13:45:41 +08:00
Damyon Wiese 9ccc1e1f34 Merge branch 'MDL-38340-master' of git://github.com/FMCorz/moodle 2013-03-18 13:24:45 +08:00
Damyon Wiese 61e871c3c9 Merge branch 'MDL-38435-master' of git://github.com/FMCorz/moodle 2013-03-18 13:08:41 +08:00
Damyon Wiese 1ef6160ade Merge branch 'MDL-38215-workshop-oracle' of git://github.com/mudrd8mz/moodle 2013-03-18 11:41:00 +08:00
Petr Škoda d2f3c5c58d MDL-38180 do not add links for enrol and other users candidates 2013-03-17 22:21:27 +01:00
Petr Škoda f2cf0f8419 MDL-38320 fix role name display when roles switched 2013-03-17 21:14:11 +01:00
Petr Škoda d0bf51e2b3 MDL-38329 use proper plugin name for the webkit lists workaround
Credit goes to Mauno Korpelainen, thanks.
2013-03-17 20:59:11 +01:00
Petr Škoda 9d4f949547 MDL-38202 fix loginas logout redirection 2013-03-17 20:51:25 +01:00
Petr Škoda ab633dafac MDL-38319 make role_get_names() faster and more useful 2013-03-17 20:15:59 +01:00
Petr Škoda 94388d18ca MDL-38364 rework PHPUnit autoloading
This is related to BC incompatibility introduced in https://github.com/sebastianbergmann/phpunit/issues/848
2013-03-17 19:54:55 +01:00
Andrew Robert Nicols 43bd811891 MDL-38507 JavaScript: Move definition of YUI_config before setup of SimpleYUI
Since moving to SimpleYUI, the order of inclusion for the YUI_config
variable is more important.

Simple YUI defines a global instance of YUI so that it can be used without
specifying the full YUI().use() syntax. As a result, any configuration
applied when that global instance is setup must exist already.
2013-03-17 16:30:39 +00:00
Andrew Robert Nicols b3c78403b0 MDL-38391 lib: Move the group configFn to the YUI_config class 2013-03-17 16:25:33 +00:00
Andrew Robert Nicols aa135c4d46 MDL-38391 lib: Add system to fetch moodle YUI metadata 2013-03-17 16:25:33 +00:00
ppichet e605209ad6 MDL-38444 Saving datasets from edit_calculatedsimple_form.php
Bypassing the 3 steps savequestion() of calculated.
2013-03-16 23:36:44 -04:00
Eloy Lafuente (stronk7) a06900b5b2 MDL-25655 glossary: non full searches now working.
In the process of updting the module from 1.9 to
2.0 the (non) full search feature was lost without notice.

This restitutes it with the same behavior present in 1.9:

- fullsearch disabled: look into concepts and aliases.
- fullsearch enabled (default): look also into definitions.
2013-03-16 18:04:57 +01:00
Andrew Robert Nicols c2f47c19ad MDL-33680 JavaScript: Improve error handling on user selector
Since the previous commit to this issue removes the built-in debugging
tests, I've added these back using the M.core libraries.
2013-03-16 10:52:02 +00:00
Andrew Robert Nicols 28037331fb MDL-33680 JavaScript: Use the correct Content-Type for AJAX scripts
The repository_ajax.php script was returning a text/plain Content-Type and
user/selector/search.php was setting the content-type when this should be
handled by with the definition of AJAX_SCRIPT.
2013-03-16 10:52:02 +00:00
Eloy Lafuente (stronk7) 07c4a94952 MDL-38373 Use correct PEAR->loadExtension()
Current use is wrong (static) and leads to strict standards notice.
2013-03-16 11:43:03 +01:00
Andrew Robert Nicols cae21a321f MDL-38391 lib: Rewrite YUI_config as a class 2013-03-16 00:18:59 +00:00
Rex Lorenzo f295727859 MDL-30790 - Option to collapse or expand sub-folders 2013-03-15 16:19:07 -07:00
Petr Škoda 97dbc8f2b6 MDL-36198 allow themes to specify yui cssnormalize or disable all CSS resets 2013-03-16 00:03:58 +01:00
Tim Hunt a4768fe290 MDL-38412 fix quiz reports group mode weirdness.
Moodle currently selected group uses the session. This can cause weird
effects when you have two tabs open. This is particularly weird in the
quiz reports, where some actions like delete attempt are checked against
the currently selected group.

The solution is to put the currently selected group into the URL for all
actions like delete/regrade attempt, regrade all attempts, download and
sort table.
2013-03-15 11:58:06 +00:00
Tim Hunt c52bcbf65f MDL-38363 qtype_calculated. Fix warnings. 2013-03-15 11:22:38 +00:00
Frederic Massart ec130bda4b MDL-35875 themes: Safe multiline topics on profile 2013-03-15 17:09:45 +08:00
Jason Fowler 6e5d002e57 MDL-35875 - User - Modify the profile page to use semantic HTML rather than tables for layout 2013-03-15 17:09:37 +08:00
Tim Hunt 8009810ed4 MDL-38395 question categories: wrong URLs after editing.
The problem was that array1 + array2 takes the values from
array1 when a key appears in both places.

While working on this area, I updated it to use html_writer.
2013-03-15 08:12:39 +00:00
Damyon Wiese 7112729206 Merge branch 'MDL-38474-master' of git://github.com/FMCorz/moodle 2013-03-15 13:49:57 +08:00
Frederic Massart 71ac66ed7f MDL-38474 repository: Cannot edit a repository instance 2013-03-15 13:45:31 +08:00
Frederic Massart 807cf3d0ae MDL-38005 form: Headers have a proper name 2013-03-15 11:06:25 +08:00
Damyon Wiese 6a284704fe Merge branch 'MDL-38474-master' of git://github.com/FMCorz/moodle 2013-03-15 10:43:46 +08:00
David Mudrák 56aee7c2f6 MDL-38497 Fix invalid $ADMIN->add() calls
As the admin_category::add() method now checks for the third parameter,
couple of typos were detected in the code. Additional parameters passed
to the add() method were probably a mistake, a relict or a typo.

Note that the typo in admin/tool/unsuproles/settings.php had actually
significant impact on the functionality as the array with required
capabilities was not actually passed to the admin_externalpage
constructor as intended.
2013-03-15 01:00:29 +01:00
David Mudrák 690a55f631 MDL-38497 Add the info about the method signature change into upgrade.txt 2013-03-15 00:59:26 +01:00
David Mudrák 77043fd6f6 MDL-38497 Add unit tests for the admin tree behaviour 2013-03-15 00:53:14 +01:00
David Mudrák f6e85ab02a MDL-38497 Nodes can be put before a sibling in the admin tree
The patch introduces a new optional parameter of the add() method for
all classes implementing the parentable_part_of_admin_tree interface.
Currently we have only one class admin_category implementing this
interface. If some third party code implements this interface too, they
will get an error and will have to fix the add() method signature.
However, the chance that such third party code exists is considered
pretty low.
2013-03-15 00:47:11 +01:00
Jonathon Fowler e5ca31fa4d MDL-38388 qformat_blackboard_six: fix question image import
This works on the expectation that the returned array from readdata()
is opaque and will be fed directly into readquestions() since
filebase is different per file and needs to be set up appropriately
before each parse.
2013-03-15 09:08:57 +10:00
Tim Hunt c81175f532 MDL-38355 qtype_multianswer: input boxes too big in Russian.
... and any other language where the characters take multiple
bytes in UTF-8.

This fix was worked out by Dušan Ristić. I am just committing it.
2013-03-14 22:24:37 +00:00
Tim Hunt 1aecaa3d79 MDL-38397 question editing: only validate default mark if present.
Most qtypes have that field, but not all. multianswer is an example in core.
Also some contrib qtypes.
2013-03-14 22:11:49 +00:00
Tim Hunt 2443f3d21d MDL-38490 question preview, variant is attempt (not display) option 2013-03-14 17:21:16 +00:00
Eloy Lafuente (stronk7) 2e4d9a0b80 weekly release 2.5dev 2013-03-14 15:44:46 +01:00
Petr Škoda 6f634b6ffb MDL-38467 import YUI 3.9.0 2013-03-14 08:49:30 +01:00
Aparup Banerjee 61bd40d562 Revert "MDL-38387 cache: fixed inifinite initialisation loop with site id"
This reverts commit 17200a016d.
2013-03-14 15:39:07 +08:00
Damyon Wiese 3f5ef33fb9 Merge branch 'wip-MDL-38303-m25' of git://github.com/samhemelryk/moodle 2013-03-14 15:30:32 +08:00
Frederic Massart e42861d4fa MDL-38474 repository: Correct context when checking permissions to access a repository 2013-03-14 14:49:29 +08:00
Frederic Massart 9f1b00a85d MDL-38368 folder: No edit button when displayed inline 2013-03-14 14:03:17 +08:00
Aparup Banerjee 87d7c7b578 Revert "Merge branch 'wip-MDL-35875-master' of git://github.com/phalacee/moodle"
This reverts commit 02dcf9b501, reversing
changes made to 61cd50618a.
2013-03-14 11:17:23 +08:00
Andrew Robert Nicols 74972abc29 MDL-38473 JavaScript: Migrate moodle-core-chooserdialogue to use Shifter 2013-03-14 01:25:44 +00:00
Andrew Robert Nicols 9488b9fbe0 MDL-38472 JavaScript: Migrate moodle-core-popuphelp to Shifter 2013-03-14 01:21:18 +00:00
Andrew Robert Nicols 5c0a9d479a MDL-38471 JavaScript: Migrate moodle-core-notification to use Shifter 2013-03-14 00:52:32 +00:00
David Mudrák c3d0157b0d MDL-38215 Fix cross-db support in workshop SQL queries
The $sql used in these methods may contain multiple parts glued
together by the UNION operator. Simply appending the ORDER BY statement
to the end of the query does not work in all DBs (failure reported at
Oracle). Following the pattern already applied in MDL-30051, we wrap the
SQL into yet another SELECT statement and perform ordering there.

Credit goes to Sara Cenni for suggesting the fix.
2013-03-13 14:58:50 +01:00
David Mudrák 5230f6a720 MDL-38456 Allow colons in paths passed to mdeploy.php utility
The input_manager now accepts colons (:) in TYPE_PATH options, but only
in cases where the colon is used as a part of Windows drive labels, as
in C:\apache.
2013-03-13 12:08:38 +01:00
Damyon Wiese b37e555f6d Merge branch 'MDL-38184_master-winfix' of git://github.com/dmonllao/moodle 2013-03-13 16:12:00 +08:00
David Monllao e533d14f09 MDL-38184 behat: Fixing problem with Windows tests 2013-03-13 15:21:57 +08:00
Aparup Banerjee e186442497 Merge branch 'MDL-36990_master-neu' of git://github.com/grabs/moodle 2013-03-13 14:59:47 +08:00
Andreas Grabs 205c61898d MDL-36990 mod_feedback - remove single move icon, prevent autoscrolling 2013-03-13 07:32:04 +01:00
Frederic Massart 9d325e60ae MDL-38453 form: RTL styles for short forms 2013-03-13 14:08:15 +08:00
Frederic Massart 9ec532bef5 MDL-37959 form: Aria attribute set on collapsible sections 2013-03-13 11:14:20 +08:00
Frederic Massart 0b8bb3fe5f MDL-38049 form: Collapsed sections are hidden on page load 2013-03-13 10:28:37 +08:00
Eloy Lafuente (stronk7) 2a28b5d4ad Merge branch 'MDL-38268-master' of https://github.com/jfilip/moodle 2013-03-13 01:14:03 +01:00
Eloy Lafuente (stronk7) 0e5781a7ff Merge branch 'MDL-30166-master' of git://github.com/ankitagarwal/moodle 2013-03-13 01:08:26 +01:00
Eloy Lafuente (stronk7) 2472cdd305 Merge branch 'wip-mdl-38332' of git://github.com/rajeshtaneja/moodle 2013-03-12 22:50:32 +01:00
Davo Smith 3d38777333 MDL-38426 mod_label - correctly handle plain text that has been added by drag and drop upload 2013-03-12 19:46:14 +00:00
Eloy Lafuente (stronk7) 613eebfc6a MDL-38212 fix related unit tests.
For statslib tests was enough to require cronlib.php as
far as all the tests there are using ob-capture / output
expectations, so the new function does not bork anything.

For pluginlib tests finally the use was deleted because
it's a part of cron not interesting (should be always "cheap")
and to keep it there we should be adding a bunch of output
expectations under some cases, for practically nothing.
2013-03-12 19:35:16 +01:00
Shamim Rezaie ba23e9a57b MDL-37664 course: Fix drag & drop RTL mode issue 2013-03-12 15:43:40 +00:00
Eloy Lafuente (stronk7) cedc656bdd MDL-38212 Add a little note about the output change. 2013-03-12 16:08:49 +01:00
sam marshall 3a09f4dc64 MDL-38035 Activity settings: Support multilang names for custom user fields 2013-03-12 15:05:24 +00:00
Eloy Lafuente (stronk7) 63b738a177 Merge branch 'MDL-38212' of git://github.com/timhunt/moodle 2013-03-12 16:02:39 +01:00
Kordan f6adb060f8 MDL-38424 theme_formal_white: added suggestions to css custom styles description 2013-03-12 13:45:08 +01:00
Andrew Robert Nicols 6f07bf766b MDL-38166 mod_data Add option to open url in a new window 2013-03-12 11:29:17 +00:00
Rajesh Taneja 9a51c3d95c MDL-36395: Converted hard-coded MAX_USER_PER_PAGE to config setting
course, cohort, enrol, role, groups and forum used to use hard-coded
MAX_USERS_PER_PAGE=100 for rendering user list. This has been converted
to $CFG->maxusersperpage.
2013-03-12 17:14:53 +08:00
Ankit Agarwal 50c02a3556 MDL-36872 reports: Fixing incorrect sorting of recent activites by timestamp 2013-03-12 17:04:53 +08:00
Aparup Banerjee 02dcf9b501 Merge branch 'wip-MDL-35875-master' of git://github.com/phalacee/moodle 2013-03-12 16:53:45 +08:00
Damyon Wiese 61cd50618a Merge branch 'MDL-38184_master' of git://github.com/dmonllao/moodle 2013-03-12 16:35:19 +08:00
Frederic Massart 41068d989b MDL-38340 form: Last fieldset is collapsed by default 2013-03-12 16:19:17 +08:00
Frederic Massart f160f97c12 MDL-38435 form: Sections can be expanded by default 2013-03-12 16:18:07 +08:00
Damyon Wiese 3de89ef8ea Merge branch 'MDL-38346_master-fix' of git://github.com/dmonllao/moodle 2013-03-12 16:11:38 +08:00
Damyon Wiese 43c791653b Merge branch 'MDL-34011' of git://github.com/rwijaya/moodle 2013-03-12 16:03:53 +08:00
Aparup Banerjee ca5cb4ccac Merge branch 'MDL-35615' of git://github.com/rwijaya/moodle 2013-03-12 15:55:17 +08:00
Frederic Massart fb69f811a8 MDL-38418 grade: Course settings sections are expanded by default 2013-03-12 15:47:10 +08:00
Frederic Massart a4faf4f416 MDL-38416 grade: Grader report settings expands section by default 2013-03-12 15:19:44 +08:00
David Monllao 7532ea010a MDL-38346 behat: Quick fix to remove nasty strings 2013-03-12 15:17:23 +08:00
Rossiani Wijaya 43deb1a4c4 MDL-34011 Lesson module - short answer question: fixed student attempt statistics 2013-03-12 14:16:15 +08:00
Damyon Wiese ee8640a906 MDL-34011 Lesson module: fixed incorrect display of student attempt for short answer question 2013-03-12 14:08:05 +08:00
Frederic Massart b75f1575c6 MDL-38330 blog: Behat tests for commenting 2013-03-12 13:56:36 +08:00
Damyon Wiese f196cfe83a Merge branch 'wip-MDL-38406-master' of git://github.com/marinaglancy/moodle 2013-03-12 13:51:40 +08:00
Aparup Banerjee e14cc639f1 Merge branch 'MDL-38356-m' of git://github.com/andrewnicols/moodle 2013-03-12 13:37:25 +08:00
Aparup Banerjee 34bbe80617 Merge branch 'MDL-35582_message_labels' of git://github.com/andyjdavis/moodle 2013-03-12 13:26:33 +08:00
Frederic Massart 2ce5fd502f MDL-38414 course: Settings form displays all role renaming fields 2013-03-12 13:04:02 +08:00
Rajesh Taneja 4f49e74fae MDL-38431 comment: profile url should be escaped, as it's used in html 2013-03-12 12:27:02 +08:00
Aparup Banerjee e0567bc2a3 MDL-36990 mod_feedback : minor whitespace clean up 2013-03-12 12:25:38 +08:00
Aparup Banerjee 7b37b805d6 Merge branch 'MDL-36990_master-neu' of git://github.com/grabs/moodle 2013-03-12 12:22:28 +08:00
Ankit Agarwal 6e9d3c19e3 MDL-38370 scorm: Fixing strict standard errors in outline report 2013-03-12 11:43:10 +08:00
Rajesh Taneja 5288af68fc MDL-38431 comment: Pass formated comment created time to JS and print_comment 2013-03-12 11:25:49 +08:00
Mary Evans 3acb97f062 MDL-37771 themes: Fixed table header color in Question Bank window block.
modified: theme/anomaly/style/general.css
modified: theme/base/style/question.css
modified: theme/magazine/style/core.css
modified: theme/serenity/style/core.css
modified: theme/splash/style/blue.css
modified: theme/splash/style/green.css
modified: theme/splash/style/orange.css
modified: theme/splash/style/pagelayout.css
modified: theme/splash/style/red.css
2013-03-12 11:25:23 +08:00
Aparup Banerjee 58437b4cd3 Merge branch 'wip-mdl-35716' of git://github.com/rajeshtaneja/moodle 2013-03-12 10:49:18 +08:00
Ankit Agarwal 7a241d8102 MDL-30166 Remove deprecated %fullname% from core
Thanks to Matheus Kautzmann for the initial patch.
2013-03-12 10:38:09 +08:00
Rajesh Taneja 043f100556 MDL-38332 Administration: Updated update.txt and php doc for get_users_listing 2013-03-12 10:04:40 +08:00
Eloy Lafuente (stronk7) b2ccf75484 Merge branch 'MDL-34774' of git://github.com/rwijaya/moodle 2013-03-12 00:54:53 +01:00
Eloy Lafuente (stronk7) 8aa0a1423b Merge branch 'MDL-38307_master' of git://github.com/dmonllao/moodle 2013-03-12 00:50:50 +01:00
Eloy Lafuente (stronk7) 705d41c895 Merge branch 'MDL-36900-master' of git://github.com/FMCorz/moodle 2013-03-12 00:45:59 +01:00
Eloy Lafuente (stronk7) 8ed6ee97a6 Merge branch 'MDL-38346_master' of git://github.com/dmonllao/moodle 2013-03-12 00:43:38 +01:00
Eloy Lafuente (stronk7) e314a6436e Merge branch 'wip-mdl-38382' of git://github.com/rajeshtaneja/moodle 2013-03-12 00:38:37 +01:00
Eloy Lafuente (stronk7) bf3a44afbe Merge branch 'MDL-38337' of git://github.com/timhunt/moodle 2013-03-12 00:25:05 +01:00
Eloy Lafuente (stronk7) ab7cb04fb8 Merge branch 'MDL-34818_master' of git://github.com/lazydaisy/moodle 2013-03-12 00:22:18 +01:00
Eloy Lafuente (stronk7) 35049887b9 Merge branch 'wip_master_mdl-38262' of git://github.com/iarenaza/moodle 2013-03-12 00:04:04 +01:00
Davo Smith 413bca9f76 MDL-38367 course dndupload - workaround to allow 'add X here' text to be drop target in Firefox 2013-03-11 22:44:55 +00:00
Davo Smith 66079e28fd MDL-38367 course dndupload - various tweaks to the UI
Switched to Moodle-style dialog boxes (thanks Andrew for the pointer)
Enter button now submits the form (from within the 'name' field)
Upload button is disabled when the name is empty (if the name is required for the selected handler)
Dialog now has 'What do you want to do with this text?' and 'Name' for the text
Entire course section now has a class added when you drag over it (to enable it to be styled in the future)
2013-03-11 22:44:55 +00:00
David Mudrák 0063302436 MDL-34401 Add language strings for the new cache definitions 2013-03-11 12:51:30 +01:00
David Mudrák 9d6eb027b4 MDL-34401 Cache the contents of version.php files
This saves many inclusions of version.php files.
2013-03-11 12:51:30 +01:00
David Mudrák ad3ed98b05 MDL-34401 Replace ad-hoc plugin request caches with proper application caches
Data cached in these caches change only at well defined places (during
need for upgrade checks, at the plugin management screen etc). So it
makes sense to use proper application caches instead of request caches.

This saves couple of database queries at almost every page in Moodle.
2013-03-11 12:48:53 +01:00
David Mudrák b8a6f26ee3 MDL-34401 Replace static variables in pluginlib with ad-hoc request caches
Where the static variable was not really needed (as in case of arrays
defined by the hard-coded list of items), non-static variable is used as
I believe that there is no real performance gain.
2013-03-11 12:48:07 +01:00
David Mudrák 07622d7dfa MDL-34401 Add caching into get_plugin_types() function
This is a simple MUC replacement for the previous static arrays.
2013-03-11 12:46:15 +01:00
David Mudrák dbaaeb935d MDL-34401 Add caching into get_plugin_list() function
This is quite frequently called function at most pages. The cache needs to be
invalidated only when a new plugin is installed or existing plugin uninstalled.
However, given how moodle_needs_upgrading() checks for new plugins, we need to
purge the cache there. Which is a shame because this means that the cache gets
purged in each cron call and when the admin looks at the front page and/or
system notifications page.
2013-03-11 12:45:27 +01:00
Damyon Wiese 95045941e6 Merge branch 'MDL-38389-m' of git://github.com/andrewnicols/moodle 2013-03-11 16:19:53 +08:00
Aparup Banerjee f19de35c1f Merge branch 'wip-MDL-31342_master' of git://github.com/gjb2048/moodle 2013-03-11 15:41:03 +08:00
Rajesh Taneja 5c9e8898c0 MDL-35716: Added performance to core plugin list 2013-03-11 14:30:02 +08:00
Rajesh Taneja 87f9a3b15e MDL-35716 report_performance: Performance report for moodle site
This will report config setting which can affect moodle performance.
Few of them are added in this patch:
1. Theme designer mode
2. Cache Javascript
3. Debug message set to developer
4. Backup - Active
5. Stats enabled.
2013-03-11 14:30:01 +08:00
Damyon Wiese fcdb8cec4e Merge branch 'wip-MDL-34713-master' of git://github.com/phalacee/moodle 2013-03-11 13:43:56 +08:00
Damyon Wiese e18c12c190 Merge branch 'MDL-33424' of git://github.com/jmvedrine/moodle 2013-03-11 13:30:45 +08:00
David Monllao 37652a9cb9 MDL-38352 behat: Updating tests
According to non-escaped double quotes
in TableNodes. Also refactoring previous
test affected by the issue.
2013-03-11 12:52:13 +08:00
David Monllao e88d47b4a2 MDL-38352 behat: Removing extra double quotes escape 2013-03-11 12:52:12 +08:00
Sam Hemelryk 17200a016d MDL-38387 cache: fixed inifinite initialisation loop with site id 2013-03-11 10:32:46 +08:00
Mary Evans 3004ce46de MDL-34818 theme_mymobile: Fixes resources folders to show properly on first access. 2013-03-11 00:02:50 +00:00
Marina Glancy 6573f727a4 MDL-38406 Separate categories view and edit page - alter CSS 2013-03-11 10:15:17 +11:00
David Monllao 4f07b654e1 MDL-38184 repository_upload: Adding tests 2013-03-11 06:56:02 +08:00
Sam Hemelryk 35b2d0db5e MDL-38303 cache: fixed purging of session cache when switching users 2013-03-10 11:31:26 +13:00
Andreas Grabs c76b19bf37 MDL-36990 feedback - added check for ->enableajax 2013-03-09 16:16:44 +01:00
Andreas Grabs 7eddca8c19 MDL-36990 mod_feedback - using delegator for dd-items 2013-03-09 16:16:43 +01:00
Andreas Grabs 45785a385b MDL-36990 mod_feedback - optimize js code and use groups for dd 2013-03-09 16:16:42 +01:00
Andreas Grabs e6c4d66910 MDL-36990 mod_feedback - moved drag styles into styles.css 2013-03-09 16:16:42 +01:00
Andreas Grabs 3fa1aec8f8 MDL-36990 mod_feedback - moved css selectoren into constants 2013-03-09 16:16:40 +01:00
Andreas Grabs bdd694fd85 MDL-36990 mod_feedback - migrated the yui dragdrop stuff into a yui module 2013-03-09 16:16:40 +01:00
Andreas Grabs c206a2b3fd MDL-36990 mod_feedback - better compatibility for IE8 and IE9 2013-03-09 16:16:39 +01:00
Andreas Grabs fa9ea3e703 MDL-36990 mod_feedback - correct some comments 2013-03-09 16:16:38 +01:00
Andreas Grabs 2694b635d9 MDL-36990 mod_feedback - changed variable to lowercase 2013-03-09 16:16:38 +01:00
Andreas Grabs 5f818c0e64 MDL-36990 mod_feedback - added a missing semicolon 2013-03-09 16:16:37 +01:00
Andreas Grabs 67e12ed2fd MDL-36990 mod_feedback - removed unneeded parameters for js 2013-03-09 16:16:36 +01:00
Andreas Grabs 00cd08b0e9 MDL-36990 mod_feedback - change double with single quoted strings 2013-03-09 16:16:36 +01:00
Andreas Grabs 8dfec73db8 MDL-36990 mod_feedback - added license comment 2013-03-09 16:16:35 +01:00
Andreas Grabs 3b4afad07c MDL-36990 mod_feedback - move ajax function into lib.php 2013-03-09 16:16:35 +01:00
Andreas Grabs 575c88c12f MDL-36990 - Improper use of confirm_sesskey 2013-03-09 16:16:34 +01:00
Andreas Grabs e4d1546116 MDL-36990 - fix position of target boxes with disabled javascript 2013-03-09 16:16:33 +01:00
Andreas Grabs f94e501b23 MDL-36990 - item-position text change on dragdrop 2013-03-09 16:16:32 +01:00
Andreas Grabs 590378bdbf MDL-36990 - first try of a dragdrop version 2013-03-09 16:16:31 +01:00
Jean-Michel Vedrine 3f28674535 MDL-33424 Images missing when restoring a 1.9 backup 2013-03-09 13:51:34 +01:00
Tim Hunt f9e5471273 MDL-38337 quiz: respect maximum grade config for new quizzes. 2013-03-08 21:36:27 +00:00
Tim Hunt 658b9372ee MDL-38212 cron: display time and memory usage before each task.
This helps diagnose problems.

Also, call gc_collect_cycles between tasks, which may reduce the
frequency of out-of-memory errors.
2013-03-08 10:24:41 +00:00
Andrew Robert Nicols 0872e0e9e5 MDL-38389 JavaScript: Return DEBUG versions of Moodle YUI modules 2013-03-08 05:46:59 +00:00
Jason Fowler 46a710e998 MDL-34713 - Blog - Fixing undefined index for blog menu block 2013-03-08 13:46:27 +08:00
David Monllao bceb65ee2d MDL-38307 behat: Remove notices 2013-03-08 12:29:59 +08:00
David Monllao aa988a9a6c MDL-38184 repository_upload: New step definition 2013-03-08 11:57:56 +08:00
David Monllao bd21f796cb MDL-38184 behat: Tests for filepicker steps 2013-03-08 11:57:54 +08:00
David Monllao 3db1aec528 MDL-38184 behat: Filepicker management steps
Includes create/open/delete/zip/unzip
of files and folders
2013-03-08 11:57:15 +08:00
Rajesh Taneja 4e0b615ede MDL-38332 Users: Browse list of users should not contain guest user record 2013-03-08 11:44:42 +08:00
Frederic Massart 04cbea2cd6 MDL-36900 files: D&D upload uses new file name increment function 2013-03-08 10:21:01 +08:00
Frederic Massart 8158fe0542 MDL-36900 repository: File Manager new folder UI improvements 2013-03-08 10:21:01 +08:00
Rajesh Taneja c22a579bed MDL-38382: Update will show minor number with leading zeros (if any) 2013-03-08 10:14:02 +08:00
Lalit Khattar 2ca1f894eb MDL-34724 Accessibility: At the bottom of Messaging settings page put the label of the checkboxes in <label> 2013-03-08 09:45:36 +08:00
David Monllao a8d910a82a MDL-38184 behat: Solving problem with the tests loader 2013-03-08 09:42:28 +08:00
David Monllao 1d823d9322 MDL-38184 behat: File-related actions 2013-03-08 09:42:28 +08:00
David Monllao a4534dceef MDL-38184 behat: Fields management externalized
Not only behat_forms needs to deal
with form fields
2013-03-08 09:42:28 +08:00
Eloy Lafuente (stronk7) 8673a98d1d MDL-38378 Take rid of harcoded db prefix and bump. 2013-03-08 00:27:01 +01:00
Gareth J Barnard b4065a16d1 MDL-31342 theme_mymobile: TinyMCE editor difficulties. 2013-03-07 19:45:30 +00:00
Eloy Lafuente (stronk7) c5cbdff670 weekly release 2.5dev 2013-03-07 16:20:02 +01:00
Eloy Lafuente (stronk7) 3523c45b0c Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-03-07 16:16:54 +01:00
Eloy Lafuente (stronk7) d79759cef9 Merge branch 'MDL-38352' of git://github.com/danpoltawski/moodle 2013-03-07 11:45:06 +01:00
Dan Poltawski dbf8c92f73 MDL-38352 - use ISO ISO 3166-1 name for Libya 2013-03-07 18:34:41 +08:00
Eloy Lafuente (stronk7) a75dfd6f33 MDL-38345 Prevent undefined CFG leading to DB error.
It seems that MDL-32975, no matter a version bump
was done, leads to the $CFG->navsortmycoursessort
setting undefined sometimes. And that ends with an error
visiting the /my page. This just ensures a safe default
if the setting is undefined/empty.
2013-03-07 10:21:03 +01:00
Frederic Massart ac5fc59534 MDL-37852 repository: Admins can't access user instances settings 2013-03-07 16:37:43 +08:00
Aparup Banerjee c3d1c73076 Merge branch 'MDL-38352-behat-fix' of git://github.com/dmonllao/moodle 2013-03-07 15:46:07 +08:00
Frederic Massart bd6581935d MDL-37852 repository: Re-inforced checks to manage repository instances 2013-03-07 14:32:44 +08:00
David Monllao 5ecb87a9a2 MDL-38352 behat: Updating tests
According to latest language strings
changes
2013-03-07 13:56:49 +08:00
Jason Fowler ae18db7025 MDL-35816 - User - Modify the profile page to use semantic HTML rather than tables for layout 2013-03-07 11:00:16 +08:00
Aparup Banerjee c65e7fcbc8 Merge branch 'MDL-33946_label_dndupload_text' of git://github.com/davosmith/moodle 2013-03-07 10:41:52 +08:00
Damyon Wiese 3d231eda76 Revert "MDL-38055 block_courseoverview: fixed formatting of course fullname"
This reverts commit a9ff59979f.
This reverts commit 4e83302f6f.

This issue has failed testing and will be delayed
2013-03-07 10:30:37 +08:00
Davo Smith 2748d8efdb MDL-33946 course dndupload - fixes to dialog when dragging text
Radio buttons have unique IDs, matching the label IDs
'What do you want to call this text' input moved down and disabled when 'label' selected
'Add page here' changed to 'Add text here'
2013-03-06 22:38:01 +00:00
Eloy Lafuente (stronk7) b9f3138dbe Merge branch 'MDL-38173-master' of git://github.com/damyon/moodle 2013-03-06 18:35:33 +01:00
Brent Boghosian 7e21ee683b MDL-38356 Forms: Check that the form exists before applying changechecker
Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
2013-03-06 16:43:48 +00:00
Eloy Lafuente (stronk7) 641577eb32 Merge branch 'MDL-38352-en_fix' of git://github.com/mudrd8mz/moodle 2013-03-06 17:26:37 +01:00
Damyon Wiese 005c6640dd MDL-38173 Course: Fix DB from regression when adding a (new) course module to a section. 2013-03-06 23:59:19 +08:00
Helen Foster ca084ef149 MDL-38352 Merge English strings from the en_fix language pack 2013-03-06 16:44:39 +01:00
Eloy Lafuente (stronk7) 69d0129389 Merge branch 'MDL-38311' of git://github.com/timhunt/moodle 2013-03-06 10:36:24 +01:00
Eloy Lafuente (stronk7) 4384eea0c9 Merge branch 'MDL-37958_master-fix' of git://github.com/dmonllao/moodle 2013-03-06 10:31:20 +01:00
Tim Hunt 770e4a467f MDL-38311 question manual grading: comment fixes. 2013-03-06 09:27:11 +00:00
David Monllao e8a88ebbd8 MDL-37958 behat: Avoid problems with Background cached steps 2013-03-06 15:49:37 +08:00
David Monllao 31c75894e0 MDL-38271 behat: Fixing typo 2013-03-06 15:07:36 +08:00
David Monllao 0a7f6a02eb MDL-37958 behat: Nasty strings in HTML
Nasty strings includes html entities and
non-breaking spaces followed by spaces which makes
very hard to find these strings in the DOM html,
this patch keeps the non-breaking spaces and all
the nasty characters, but leaves them isolated from
other regular spaces. It swaps the strings to HTML before
finding elements in the HTML that matches that contents.
2013-03-06 13:34:09 +08:00
Sam Hemelryk c629c91feb MDL-32975 navigation: fixed error when viewing my with no enrolments 2013-03-06 14:35:19 +13:00
Eloy Lafuente (stronk7) 6026f23559 MDL-38311 Add missing comment format. 2013-03-06 02:02:45 +01:00
AMOS bot a48b920ddf Automatically generated installer lang files 2013-03-06 00:36:54 +00:00
Eloy Lafuente (stronk7) 9f4da038c8 Merge branch 'MDL-38311' of git://github.com/timhunt/moodle 2013-03-06 01:22:32 +01:00
Eloy Lafuente (stronk7) ab1e921c31 Merge branch 'MDL-36749-m' of git://github.com/andrewnicols/moodle 2013-03-06 01:19:17 +01:00
Rossiani Wijaya 6a9235c998 MDL-37411 Notes: unset courseid and userid when updating the note to prevent accidental changes. Thank you Sam Hemelryk for suggesting an alternative solution. 2013-03-06 09:35:42 +13:00
Andrew Robert Nicols a6d81a73ac MDL-36749 lib Complete deprecation of old_help_icon
This deprecates the old_help_icon and helpbutton functions. Since they can
no longer be used, the renderers are removed altogether.
2013-03-05 19:07:06 +00:00
Eloy Lafuente (stronk7) 88906d068d Merge branch 'MDL-37958_master' of git://github.com/dmonllao/moodle 2013-03-05 19:28:14 +01:00
Eloy Lafuente (stronk7) 8d0a042263 Merge branch 'MDL-38327_master' of git://github.com/dmonllao/moodle 2013-03-05 19:26:52 +01:00
Eloy Lafuente (stronk7) 9af30e60b5 Merge branch 'MDL-38252-master' of git://github.com/danpoltawski/moodle 2013-03-05 18:12:55 +01:00
Justin Filip 2e667c7405 MDL-38268 files: Must be explicit about switching cURL request method from HEAD to GET. 2013-03-05 11:30:22 -05:00
Eloy Lafuente (stronk7) af733564f4 Merge branch 'MDL-38119' of git://github.com/timhunt/moodle 2013-03-05 16:45:01 +01:00
Eloy Lafuente (stronk7) 4afd580231 Merge branch 'MDL-38271_master' of git://github.com/dmonllao/moodle 2013-03-05 15:43:15 +01:00
Tim Hunt 53b8e25626 MDL-38311 questions: manual grading API should accept commentformat
Comment format (FORMAT_...) was correctly being processed when the
manual grading happened as the result of a form submission. It was only
when done using the question_usage or question_attempt API method that
there was no way to specify the format. (Although I think the only place
this API as used was in the unit tests.)

Note that question_attempt::manual_grade API had to change, but I don't
think that is a real API change. Calling code should be using
question_usage::question_attempt, which is backwards compatible.

Note that now, if you don't pass format, then no error is generated, but
a developer debugging message is generated.
2013-03-05 11:51:47 +00:00
Aparup Banerjee 045a4173b1 Merge branch 'MDL-38209' of git://github.com/timhunt/moodle 2013-03-05 17:14:02 +08:00
Aparup Banerjee 77e08c04d3 Merge branch 'MDL-38072' of git://github.com/lazydaisy/moodle 2013-03-05 17:07:50 +08:00
Aparup Banerjee 11abbe276f Merge branch 'wip-MDL-34775-master' of git://github.com/phalacee/moodle 2013-03-05 17:01:54 +08:00
Frederic Massart da9d3a1205 MDL-37852 phpunit: Tests for repository::can_be_edited_by_user() 2013-03-05 09:56:23 +01:00
Frederic Massart 89a9d21a15 MDL-37852 repository: Prevent undesired access to repositories settings 2013-03-05 09:56:22 +01:00
David Monllao 6fe3986dec MDL-38007 behat: Refining error texts
Also removing a couple of silly notices
2013-03-05 16:52:48 +08:00
Damyon Wiese ce91af8114 Merge branch 'MDL-38282' of git://github.com/timhunt/moodle 2013-03-05 16:06:31 +08:00
Daniele Cordella a5b884fe6f MDL-35615 Course section: fixed alignment for userdefaultname checkbox to be inline with section name text input 2013-03-05 16:03:13 +08:00
Aparup Banerjee 810fb772c3 Merge branch 'MDL-38240' of git://github.com/timhunt/moodle 2013-03-05 16:00:49 +08:00
Damyon Wiese 915b7aca62 Merge branch 'MDL-38279' of git://github.com/timhunt/moodle 2013-03-05 15:22:38 +08:00
Damyon Wiese d0eac6f639 Merge branch 'MDL-38178_master' of git://github.com/dmonllao/moodle 2013-03-05 15:10:52 +08:00
Aparup Banerjee c0da001c49 Merge branch 'MDL-38025_master' of git://github.com/dmonllao/moodle 2013-03-05 14:43:46 +08:00
David Monllao 2b6287b744 MDL-38178 behat: New tests for fieldsets expansion 2013-03-05 14:41:54 +08:00
David Monllao f8f1bdc315 MDL-38178 behat: Adding find_all and step to expand all form's fieldsets 2013-03-05 14:41:52 +08:00
Aparup Banerjee 212e5ee909 Merge branch 'MDL-38007_master' of git://github.com/dmonllao/moodle 2013-03-05 14:37:05 +08:00
Damyon Wiese ffb95d5fdc Merge branch 'MDL-38241' of git://github.com/timhunt/moodle 2013-03-05 14:13:42 +08:00
Damyon Wiese 6fbf382cd4 Merge branch 'MDL-38280' of git://github.com/timhunt/moodle 2013-03-05 14:10:00 +08:00
David Monllao 5f26d1c8b8 MDL-38327 behat: Don't switch completely if switchcompletely is false 2013-03-05 14:03:50 +08:00
Damyon Wiese be98769eab Merge branch 'wip-MDL-37903-m25' of git://github.com/samhemelryk/moodle 2013-03-05 13:12:12 +08:00
Aparup Banerjee c2b40106d3 Merge branch 'wip-MDL-38251-m25' of git://github.com/samhemelryk/moodle 2013-03-05 13:09:37 +08:00
Damyon Wiese 775eeb1ac2 MDL-37935: Cache - fix spelling mistake in language string 2013-03-05 13:06:49 +08:00
Damyon Wiese 6be6b2b073 Merge branch 'wip-MDL-37935-m25' of git://github.com/samhemelryk/moodle 2013-03-05 13:05:57 +08:00
Aparup Banerjee da33f689dc Merge branch 'MDL-30481' of git://github.com/rwijaya/moodle 2013-03-05 12:55:41 +08:00
Sam Hemelryk 44cfa89576 Merge branch 'MDL-38094' of git://github.com/timhunt/moodle 2013-03-05 16:57:50 +13:00
Damyon Wiese a27996bbad Merge branch 'wip-MDL-38055-m25' of git://github.com/samhemelryk/moodle 2013-03-05 11:42:25 +08:00
Aparup Banerjee d1e220eb0e Merge branch 'MDL-36171-m' of git://github.com/andrewnicols/moodle 2013-03-05 11:13:33 +08:00
David Monllao 15c7fb4adb MDL-37958 behat: Ignoring spaces when comparing field contents 2013-03-05 11:08:04 +08:00
Aparup Banerjee fb3c1d2b34 Merge branch 'MDL-38067-m' of git://github.com/andrewnicols/moodle 2013-03-05 11:06:55 +08:00
Aparup Banerjee 23a6fca502 Merge branch 'MDL-34300-m' of git://github.com/andrewnicols/moodle 2013-03-05 10:37:33 +08:00
Frederic Massart dfe203c12e MDL-34284 library: Import ZF2012-01 security patch for Zend 2013-03-05 10:35:56 +08:00
Sam Hemelryk 2e2bac9d32 Merge branch 'MDL-37932' of git://github.com/timhunt/moodle 2013-03-05 15:30:45 +13:00
Sam Hemelryk dc8e7116a7 Merge branch 'wip-MDL-37901_master' of git://github.com/gjb2048/moodle 2013-03-05 15:23:46 +13:00
Aparup Banerjee b4f110f1a4 Merge branch 'MDL-33946_label_dndupload_text' of git://github.com/davosmith/moodle 2013-03-05 10:21:25 +08:00
Sam Hemelryk aa9f48ed59 Merge branch 'MDL-38298' of git://github.com/stronk7/moodle 2013-03-05 15:12:08 +13:00
Sam Hemelryk 627a43917a MDL-37127 js: fixed indentation of tooltip.js 2013-03-05 14:11:35 +13:00
Sam Hemelryk 5c1d5998ac Merge branch 'MDL-37127-m' of git://github.com/andrewnicols/moodle 2013-03-05 13:54:10 +13:00
Eloy Lafuente (stronk7) 86d053490d Merge branch 'wip-MDL-36215-m25' of git://github.com/samhemelryk/moodle 2013-03-05 01:27:50 +01:00
Eloy Lafuente (stronk7) 2b48123b92 Merge branch 'wip-MDL-38300-m25' of git://github.com/samhemelryk/moodle 2013-03-05 01:21:47 +01:00
Eloy Lafuente (stronk7) caa5bcea00 Merge branch 'wip-MDL-38247-m25' of git://github.com/samhemelryk/moodle 2013-03-05 01:08:23 +01:00
Eloy Lafuente (stronk7) fd0c485584 Merge branch 'm25_MDL-37515_Notice_when_submitting_change_password_form' of https://github.com/scara/moodle 2013-03-05 01:03:26 +01:00
Eloy Lafuente (stronk7) adc4aca475 Merge branch 'MDL-37897' of git://github.com/jmvedrine/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-03-05 00:56:24 +01:00
Eloy Lafuente (stronk7) cdbbd48a66 Merge branch 'MDL-38261-workshop-attachments-size' of git://github.com/mudrd8mz/moodle 2013-03-05 00:48:47 +01:00
Eloy Lafuente (stronk7) 62bf37d8f5 Merge branch 'master_MDL-37907' of git://github.com/danmarsden/moodle 2013-03-05 00:46:12 +01:00
Eloy Lafuente (stronk7) d2be039c6e MDL-32975 mini-bump to get navsortmycoursessort defined. 2013-03-04 23:47:13 +01:00
Eloy Lafuente (stronk7) 2673254919 Merge branch 'wip-MDL-32975-m25' of git://github.com/samhemelryk/moodle 2013-03-04 23:47:13 +01:00
Sam Hemelryk f87ce4e9a0 MDL-32975 navigation: Added option to select how my courses are sorted 2013-03-05 09:46:11 +13:00
Sam Hemelryk ed2703290c Merge branch 'MDL-38101-master' of git://github.com/sammarshallou/moodle 2013-03-05 09:30:02 +13:00
Sam Hemelryk cf7386139d MDL-31983 navigation: fixed copy+paste typo 2013-03-05 09:24:19 +13:00
Eloy Lafuente (stronk7) 1de87afc24 Merge branch 'MDL-37522-published-attachment' of git://github.com/mudrd8mz/moodle 2013-03-04 20:46:41 +01:00
Eloy Lafuente (stronk7) 25ba263d60 Merge branch 'MDL-38133-master' of git://github.com/sammarshallou/moodle 2013-03-04 20:37:57 +01:00
Eloy Lafuente (stronk7) d03d5e7816 Merge branch 'wip-MDL-33013-m25' of git://github.com/samhemelryk/moodle 2013-03-04 20:18:48 +01:00
Eloy Lafuente (stronk7) bb8f31dbf3 MDL-31390 document the set_source_table() api change. 2013-03-04 18:18:09 +01:00
Eloy Lafuente (stronk7) 5a341e9183 Merge branch 'MDL-31390-m' of git://github.com/andrewnicols/moodle 2013-03-04 18:08:54 +01:00
Eloy Lafuente (stronk7) 8b0f09d940 Merge branch 'MDL-36380-master' of git://github.com/FMCorz/moodle 2013-03-04 17:59:39 +01:00
Eloy Lafuente (stronk7) 266e8dec49 Merge branch 'wip-MDL-37983-master' of git://github.com/abgreeve/moodle 2013-03-04 16:42:25 +01:00
Eloy Lafuente (stronk7) d5834b3712 Merge branch 'MDL-38170-master' of git://github.com/sammarshallou/moodle 2013-03-04 16:25:00 +01:00
Sam Hemelryk 486f9dbecc Merge branch 'MDL-38243-master' of git://github.com/lucisgit/moodle 2013-03-04 16:25:50 +13:00
Sam Hemelryk 5722822302 Merge branch 'MDL-35350' of git://github.com/rwijaya/moodle 2013-03-04 16:13:09 +13:00
Sam Hemelryk 1668803ae2 Merge branch 'MDL-35127-master' of git://github.com/damyon/moodle 2013-03-04 16:08:08 +13:00
Eloy Lafuente (stronk7) 15d427c82d Merge branch 'wip-MDL-38205-m25' of git://github.com/samhemelryk/moodle 2013-03-04 03:01:11 +01:00
Frederic Massart 31581ae65d MDL-36426 repository: Prevent login_as() users to access private repositories 2013-03-04 02:38:35 +01:00
Sam Hemelryk 4ce761716c Merge branch 'MDL-31557_master' of git://github.com/markn86/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-03-04 14:35:59 +13:00
Sam Hemelryk 74bf99ddad Merge branch 'MDL-37625-master' of https://github.com/jfilip/moodle 2013-03-04 14:18:49 +13:00
Sam Hemelryk 7171c61c40 Merge branch 'MDL-36128-master' of https://github.com/StudiUM/moodle 2013-03-04 13:59:58 +13:00
Frederic Massart ce96f23fe1 MDL-37681 repository_webdav: improved form handling when configuring an instance 2013-03-04 13:55:53 +13:00
Rajesh Taneja 9fd0cb9cb1 MDL-37338 Calendar: User will not see calendar subscription, which he/she can't edit
Signed-off-by: Rajesh Taneja <rajesh@moodle.com>
2013-03-04 01:49:02 +01:00
Sam Hemelryk 121e604851 Merge branch 'MDL-38168-master' of git://github.com/sammarshallou/moodle 2013-03-04 13:35:16 +13:00
Frederic Massart 954b354511 MDL-37507 repositories: improved formatting of external resources 2013-03-04 13:28:41 +13:00
Mark Nielsen 8d220cb552 MDL-36901: Remove system paths from exceptions
Replaces any server paths, like dataroot, with a token
in exception messages and debug info.
2013-03-04 00:17:01 +01:00
Dan Marsden c238e1e2ab MDL-37907 Participants layout - move checkbox to first column 2013-03-04 11:28:14 +13:00
Frederic Massart 3ecc63e9db MDL-37481 user: fixed bug when logged in as guest 2013-03-04 11:17:14 +13:00
Eloy Lafuente (stronk7) 52f0c094f5 Merge branch 'wip-MDL-38165-m25' of git://github.com/samhemelryk/moodle 2013-03-03 23:08:15 +01:00
Sam Hemelryk f0abd36e46 Merge branch 'MDL-32125-master' of git://github.com/StudiUM/moodle 2013-03-04 10:37:51 +13:00
Sam Hemelryk a9ff59979f MDL-38055 block_courseoverview: fixed formatting of course fullname 2013-03-04 09:31:35 +13:00
Iñaki Arenaza 4bcb0396c2 MDL-38262 auth/{ldap,cas}: Fix undefined property notification on first config
Just move the test after we've set the default configuration values if
they are not defined.

Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2013-03-03 21:22:19 +01:00
Eloy Lafuente (stronk7) 045c0e4d8f MDL-38298 Take out harcoded dependency + tests.
With that change the filte_emoticon will be easily
resusable by other "emoticon filters".
2013-03-03 19:10:09 +01:00
Andrew Davis ec7298a10f MDL-38149 core_grade: added a guard for when there are no old grades 2013-03-03 11:08:37 +08:00
Gareth J Barnard dafa91279f MDL-37901 format_topics & format_weeks: Fix drag icon tooltip after move. 2013-03-02 12:38:29 +00:00
Tim Hunt 9fc29eec6d MDL-39282 quiz: always allow removal of bogus questions. 2013-03-01 17:33:32 +00:00
Tim Hunt 8407a5498b MDL-38280 manual graded behaviour: unit test for when not answered.
If the student does not submit an answer, the questoin goes to state
gaveup, rather than requiresgrading.
2013-03-01 17:04:04 +00:00
Tim Hunt 00cefd925a MDL-38279 questions: must have default mark positive. 2013-03-01 15:21:09 +00:00
Tim Hunt d23edcf151 MDL-37932 formslib: setAdvanced for repeatelements.
I think this commit also fixes some other problems with repeatelements
and shortforms. The shortforms code was trying to use hidden elements
with names like in conjunction with ...[0] with optional_param which
will not work. Hidden form fields that relate to other parts of the form
must use the other elements's id, no name, to make the hidden field
name.
2013-03-01 11:41:59 +00:00
Andrew Robert Nicols 5251450372 MDL-31390 Convert set_source_sql with order clauses to set_source_table 2013-03-01 11:29:01 +00:00
sam marshall 7ae7c3cf9a MDL-38101 Completion: Error when teacher/admin marks activity complete 2013-03-01 11:18:31 +00:00
sam marshall 85cb4b65b1 MDL-38170 SimplePie: Cannot read https feeds through proxy 2013-03-01 10:36:51 +00:00
Andrew Robert Nicols d9bae60289 MDL-31390 Allow data to be sorted at backup 2013-03-01 10:03:13 +00:00
David Monllao d636a3e6cd MDL-38026 behat: New tests 2013-03-01 17:34:39 +08:00
David Monllao 072f67fcac MDL-38026 behat: Base to write steps to work with specific DOM parts 2013-03-01 16:40:22 +08:00
David Monllao 46ac40cd0b MDL-38025 behat: Compliant with moodlechecker and codechecker 2013-03-01 16:07:04 +08:00
David Monllao 80e4150615 MDL-38025 behat: Updating tests according to modified steps 2013-03-01 16:06:23 +08:00
David Monllao 4092397794 MDL-38025 behat: Adding generic manipulation methods
Also required modifications in the affected
steps definitions
2013-03-01 16:06:15 +08:00
David Monllao 5f470b28bf MDL-38025 behat: Replacing selector-based steps by human-friendly options 2013-03-01 15:24:37 +08:00
David Monllao e2eb40ea3c MDL-38271 behat: Adds site shortname 2013-03-01 11:41:28 +08:00
David Monllao ac41f878da MDL-38007 behat: Adding new script using util.php 2013-03-01 10:50:22 +08:00
David Monllao fa7e4e2b6a MDL-38007 behat: Changing check_behat_setup interface 2013-03-01 10:44:31 +08:00
David Monllao e6ac2ab7c2 MDL-37958 behat: Solving problem when expanding root level nodes 2013-03-01 09:52:10 +08:00
David Monllao b9d551e17d MDL-37958 behat: Tests for permissions management 2013-03-01 09:52:10 +08:00
David Monllao 92c79fcc00 MDL-37958 behat: Defintions for permissions management 2013-03-01 09:52:10 +08:00
David Monllao 49d9112909 MDL-37958 behat: Using behat_form_field base class to interact with all form elements 2013-03-01 09:52:10 +08:00
Andrew Robert Nicols e2798523d6 MDL-37127 JavaScript: Switch moodle-core-tooltip to shifter 2013-03-01 01:33:08 +00:00
Andrew Robert Nicols a45e8fd3da MDL-37127 JavaScript: Add support for development using YUI Shifter 2013-03-01 01:25:54 +00:00
AMOS bot 8a099397be Automatically generated installer lang files 2013-03-01 00:42:14 +00:00
Sam Hemelryk 3d6dd54ad1 MDL-38165 cache: fixed issues purging peristent caches by event 2013-03-01 11:38:02 +13:00
Sam Hemelryk 0323e1ab99 MDL-38165 cache: added unit tests for event purging of persistent caches 2013-03-01 11:38:02 +13:00
Davo Smith 5efae6823d MDL-33946 mod_label - create label from text dragged and dropped into the course 2013-02-28 21:43:30 +00:00
Sam Hemelryk 79137823fa MDL-38251 course: fixed add category button on top level 2013-03-01 10:12:02 +13:00
Sam Hemelryk 11cfc0f95e MDL-38247 cache: Improved documentation 2013-03-01 10:11:55 +13:00
Sam Hemelryk 32c981e67a MDL-38247 cache: fixed cache stores so that they pass unit tests 2013-03-01 10:11:55 +13:00
Sam Hemelryk ac6754a679 MDL-38427 cache: implemented unit tests for all core cache stores 2013-03-01 10:11:55 +13:00
Sam Hemelryk 4af3d7e7a3 MDL-38205 cache: implemented key prefix in memcache plugin 2013-03-01 10:11:45 +13:00
Sam Hemelryk 43394c5114 MDL-38165 cache: fixed up application event purging 2013-03-01 10:10:30 +13:00
Sam Hemelryk b6c86be197 MDL-38165 cache: fixed up session event purging 2013-03-01 10:10:30 +13:00
Sam Hemelryk 4e83302f6f MDL-38055 navigation: fixed ampersand use within titles 2013-03-01 10:09:51 +13:00
Sam Hemelryk c643628f23 MDL-37935 cache: improved ready testing of stores on admin screen and testing script 2013-03-01 10:09:24 +13:00
Sam Hemelryk 01a3333723 MDL-37903 cache: implemented cacheable_object_array 2013-03-01 10:09:06 +13:00
Sam Hemelryk 8bc8ab6ee8 MDL-36215 navigation: fixed blog URL within courses using groups 2013-03-01 10:08:42 +13:00
Sam Hemelryk ba7b1ca565 MDL-33013 navigation: fixed expansion limit issue hiding nodes 2013-03-01 10:08:20 +13:00
Andrew Robert Nicols 08b196e265 MDL-36171 Administration Skip replace in the log table 2013-02-28 19:44:42 +00:00
Tim Hunt baa6159bb9 MDL-38241 qtype_match: should say Blanks for 3 more questions.
Currently it says Blanks for 3 more choices, like multichoice, which is
confusing.

AMOS BEGIN
 MOV [addmoreqblanks,qtype_match],[blanksforxmorequestions,qtype_match]
AMOS END
2013-02-28 18:34:43 +00:00
Tim Hunt f7ce33c287 MDL-38240 question forms: penalty should not be reqired.
It is a selecte menu, so you have to select a value, and anyway, 0 is a
valid value.

Once this is not a required field, the 'Multiple tries' section of the
form will collapse by default.
2013-02-28 18:34:25 +00:00
Tim Hunt ae271eba1f MDL-38209 quiz CSS: strip browser-specific rules. 2013-02-28 18:33:45 +00:00
Tim Hunt c04ed8d51c MDL-38209 quiz CSS: fix coding style. 2013-02-28 18:33:45 +00:00
Tim Hunt e01cf1fa68 MDL-37847 / MDL-38119 question engine: document API change. 2013-02-28 18:33:07 +00:00
Tim Hunt c3c65f417a MDL-38094 question forms: remove spare repeat element blanks.
Once the question has been created, only so as many blanks as are
required by the current question. Adding a new answer / choice / unit /
etc. is a rare operation, so it is OK if it takes another mouse click.
It is better to keep the form shorter in the common case.
2013-02-28 18:32:48 +00:00
Jean-Philippe Gaudreau 7f9e076806 MDL-36128 grade: Import outcomes error 2013-02-28 13:29:10 -05:00
David Mudrák 4cd2b45548 MDL-38261 Replace deprecated file_encode_url() in workshop renderer 2013-02-28 18:53:37 +01:00
David Mudrák 57c1c7edfc MDL-38261 Display workshop submission attachments in a preview mode 2013-02-28 18:53:37 +01:00
David Mudrák 8f5cbbd6c8 MDL-38261 Add a new file preview mode for bigger thumbnails 2013-02-28 18:53:37 +01:00
David Mudrák 2d4a3e6894 MDL-37522 Serve images from published submissions
If the user is allowed to see the published submission, she must be also
able to see images in it (both embedded into the text as well as
attached to the submission). See the logic in submission.php as a
reference.
2013-02-28 18:53:08 +01:00
Andrew Robert Nicols 1015b24b42 MDL-38067 JavaScript: Ensure the filemanager does not show through the tooltip 2013-02-28 17:00:02 +00:00
Andrew Robert Nicols 03bd9e7b78 MDL-34300 JavaScript: Stop YUI from forcing z-index on moodle-core-notification 2013-02-28 17:00:02 +00:00
Andrew Robert Nicols 694c4c87ac MDL-34300 JavaScript: Stop YUI from forcing z-index on moodle-core-notification 2013-02-28 16:54:59 +00:00
Jean-Michel Vedrine 4f315786e8 MDL-37897 Remove useless Blackboard question import format 2013-02-28 17:46:29 +01:00
Gilles-Philippe Leblanc 4a913724d0 MDL-32125 mod_forum: Updating subscription mode not reflecting subscribers 2013-02-28 11:33:51 -05:00
Eloy Lafuente (stronk7) cce0d9a100 weekly release 2.5dev 2013-02-28 15:47:07 +01:00
Eloy Lafuente (stronk7) 5524bab53d Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-02-28 15:40:15 +01:00
Ruslan Kabalin ae9fe89afa MDL-38243 mod_assessment: make assessment forms non-collapsible 2013-02-28 10:28:18 +00:00
Rossiani Wijaya 8b8d7fcd17 MDL-34774 Lesson module: fixed report stats for 'high score' and 'low score' values where there is only one attempt with 0 score 2013-02-28 16:05:14 +08:00
Mary Evans 7e97c2440f MDL-38072 theme_mymobile: Removed collapsed topics contributed plugin code.
modified:   theme/mymobile/javascript/custom.js
modified:   theme/mymobile/style/core.css
2013-02-28 07:42:24 +00:00
Damyon Wiese 01ac2cd813 Revert "MDL-33934 theme_mymobile: Updates to CSS & Javascript - including MDL-38072 removing css/js for collapsed topic."
This reverts commit 7e6c674302.
This reverts commit c443c95c01.

This issue needs more work and will be delayed.
2013-02-28 14:06:32 +08:00
Michael de Raadt ce744f7134 MDL-35350 Advanced uploading assignment: add submission timestamp on assignment index page 2013-02-28 14:06:01 +08:00
Frederic Massart bed828de91 MDL-36380 stats: Issue with DST and monthly statistics 2013-02-28 13:56:05 +08:00
Dan Poltawski b22b74035c MDL-38252 - course: fix typo 2013-02-28 11:04:30 +08:00
Damyon Wiese 4e516138e9 Revert "MDL-35875 - Users - Fixing RTL support"
This reverts commit fbb31b0f90.
This reverts commit c111b9f3ae.
This reverts commit 8afb9b7c4f.

This issue has failed testing and integration will be delayed.
2013-02-28 10:53:03 +08:00
Jason Fowler fbb31b0f90 MDL-35875 - Users - Fixing RTL support 2013-02-28 10:18:49 +08:00
Damyon Wiese c111b9f3ae MDL-35875 - User - Modify the profile page to use semantic HTML rather than tables for layout (RTL Support) 2013-02-28 10:12:28 +08:00
Petr Škoda 0f39498480 MDL-38096 fix availability of bulk enrol actions 2013-02-27 16:12:07 +08:00
Petr Škoda 506338d5de MDL-38096 fix availability of enrol button 2013-02-27 16:12:07 +08:00
Simon Coggins d7f69362b9 MDL-38102 lib: Check for null return value from password_hash function call 2013-02-27 16:26:26 +13:00
Damyon Wiese 520fee918e MDL-36832 Assignment Use MUC for useridlist: Fix for quickgrading checkbox 2013-02-27 11:24:42 +08:00
Damyon Wiese b8d3aa8fc8 MDL-35127 Assignment - declare the variables in the outer scope (for readability) 2013-02-27 09:27:55 +08:00
Eric Merrill d77731d612 MDL-35127 mod_assign More efficient use of expensive database queries
Moving two relatively expensive DB queries so they are only executed when needed
instead of on every function call. They will still only execute once, and not
repeatedly during execution of the loop.
2013-02-27 09:01:25 +08:00
Eloy Lafuente (stronk7) 738b0965a4 Merge branch 'wip-MDL-37356-master' of git://github.com/abgreeve/moodle 2013-02-26 18:12:15 +01:00
Eloy Lafuente (stronk7) 2c4293ce90 Merge branch 'wip-MDL-31885-smartcache' of git://github.com/marinaglancy/moodle 2013-02-26 13:23:34 +01:00
Rossiani Wijaya b9509a1e45 MDL-30481 Advanced upload assignment: Fixed assignment available date string to appropriately identify past or future availability 2013-02-26 17:38:55 +08:00
Eloy Lafuente (stronk7) 36650d6f51 Merge branch 'MDL-38076-master' of git://github.com/FMCorz/moodle 2013-02-26 10:14:28 +01:00
Eloy Lafuente (stronk7) 46e120c561 Merge branch 'MDL-37835-master' of git://github.com/damyon/moodle 2013-02-26 10:06:14 +01:00
Eloy Lafuente (stronk7) 9515c34ee6 Merge branch 'wip-MDL-30669-master' of git://github.com/abgreeve/moodle 2013-02-26 09:46:13 +01:00
Michael de Raadt cf626656c6 MDL-34775 - Forum, RSS - Fixing RSS entries option to be disabled if RSS is not enabled 2013-02-26 14:03:00 +08:00
Dan Poltawski 3a01c45ce9 Merge branch 'MDL-38115-master' of git://github.com/damyon/moodle 2013-02-26 13:36:24 +08:00
Mark Nelson 5fb496743f MDL-31557 install: removing PREVIOUS and NEXT attributes from install.xml for newly introduced index 2013-02-26 12:12:05 +08:00
Tim Gus e1580085c4 MDL-31557 Add index for timemodified in grade_grades_history table 2013-02-26 12:11:59 +08:00
Dan Poltawski d28d214167 Merge branch 'w08_MDL-38154_m25_delperf' of git://github.com/skodak/moodle 2013-02-26 11:08:52 +08:00
Damyon Wiese be1ef2f35d MDL-37792 Course - Fix upgrade step and set version number for completion field fix. 2013-02-26 10:49:46 +08:00
Damyon Wiese b672408a1a Merge branch 'MDL-37792-master' of git://github.com/sammarshallou/moodle 2013-02-26 10:45:21 +08:00
Sam Hemelryk 07ccb35731 Merge branch 'wip-MDL-38144-master' of git://github.com/marinaglancy/moodle 2013-02-26 15:43:26 +13:00
Dan Poltawski 84f72e28fd Merge branch 'MDL-38161' of git://github.com/stronk7/moodle 2013-02-26 10:40:51 +08:00
Marina Glancy 96bc647755 MDL-31885 The activity name auto-linking filter should not create links to webpages it was created on 2013-02-26 13:35:24 +11:00
Adrian Greeve b7d3bb0fc6 MDL-30669 - blocks: Unit tests for course_page_type_list() 2013-02-26 10:21:45 +08:00
Adrian Greeve 3dd204b1e6 MDL-30669 - blocks: Added a warning when deleting blocks that have multiple displays set.
Also added a fix to the function course_page_type_list(). It was making a call to
get_context_info_array() which will generate an error if $currentcontext is not set.
2013-02-26 10:21:37 +08:00
Dan Poltawski e7054f06e3 MDL-37455 - redirect for mod_folder course breaking changes 2013-02-26 10:06:29 +08:00
Damyon Wiese 115277060a MDL-37835 Assignment unit tests - Do not fail if custom plugins are installed. 2013-02-26 09:09:53 +08:00
Damyon Wiese 9c986ee01d MDL-38115 Assignment Unit tests : speedup (round 2) 2013-02-26 09:00:06 +08:00
Eloy Lafuente (stronk7) fd6e1aaadb Merge branch 'wip-MDL-38162-m25' of git://github.com/samhemelryk/moodle 2013-02-26 01:28:56 +01:00
Eloy Lafuente (stronk7) 64870338c4 Merge branch 'w08_MDL-37963_m25_usergen' of git://github.com/skodak/moodle 2013-02-26 01:25:58 +01:00
Eloy Lafuente (stronk7) b1ed9f6970 Merge branch 'MDL-38141-m' of git://github.com/andrewnicols/moodle 2013-02-26 01:19:29 +01:00
Eloy Lafuente (stronk7) c45593c6d8 Merge branch 'wip-MDL-38110-m25' of git://github.com/samhemelryk/moodle 2013-02-26 00:48:22 +01:00
Eloy Lafuente (stronk7) 1e171d4d37 Merge branch 'MDL-38090-m' of git://github.com/andrewnicols/moodle 2013-02-26 00:33:32 +01:00
Eloy Lafuente (stronk7) 2a80528fd6 Merge branch 'wip-MDL-38146-master' of git://github.com/marinaglancy/moodle 2013-02-25 23:52:20 +01:00
Eloy Lafuente (stronk7) 8615b484b2 Merge branch 'MDL-38001-master' of git://github.com/mouneyrac/moodle 2013-02-25 23:51:20 +01:00
Eloy Lafuente (stronk7) 05fc7ccc82 Merge branch 'MDL-30098_master' of git://github.com/markn86/moodle
Conflicts:
	course/tests/externallib_test.php
2013-02-25 23:38:20 +01:00
sam marshall 6fea7a5f02 MDL-37792 Conditions: Interests condition offered but not implemented 2013-02-25 13:19:56 +00:00
sam marshall 4c4e587648 MDL-38133 html_writer: add shortcuts for very frequent tags 2013-02-25 12:41:24 +00:00
Petr Škoda 18fa4f4745 MDL-38154 do not hardcode sha1 hash of empty string 2013-02-25 10:10:57 +01:00
Damyon Wiese a3e57810c6 Merge branch 'wip-MDL-36287-m25' of git://github.com/samhemelryk/moodle 2013-02-25 15:49:13 +08:00
Damyon Wiese fffb9bbe64 Merge branch 'wip-MDL-38145-master' of git://github.com/marinaglancy/moodle 2013-02-25 15:42:13 +08:00
Dan Poltawski 2b32b2eea0 Merge branch 'wip-MDL-38163-m25' of git://github.com/samhemelryk/moodle 2013-02-25 15:39:30 +08:00
Damyon Wiese a4a30222a0 MDL-37641 Version number bump for js changes. 2013-02-25 15:25:01 +08:00
Damyon Wiese 61725199a9 Merge branch 'MDL-37641-master' of git://github.com/FMCorz/moodle 2013-02-25 15:23:19 +08:00
Adrian Greeve cffc08a63d MDL-37356 - mod_data: Database activity now uses format_float and unformat_float.
The longitude and latitude values were not using format_float and unformat_float.
Changes have been made to the manual entry of records, csv import of records, and the
display of these records.
2013-02-25 14:39:36 +08:00
Dan Poltawski bbd045b9e6 Merge branch 'w08_MDL-38121_m25_plugincheck' of git://github.com/skodak/moodle 2013-02-25 14:34:07 +08:00
Dan Poltawski f4e34c5ffb Merge branch 'MDL-37770-master' of git://github.com/damyon/moodle 2013-02-25 14:32:01 +08:00
Dan Poltawski e1350c61d1 Merge branch 'MDL-36832-master' of git://github.com/damyon/moodle 2013-02-25 14:19:36 +08:00
Damyon Wiese 44c3f54c92 Merge branch 'wip-MDL-35875-master' of git://github.com/phalacee/moodle 2013-02-25 14:09:33 +08:00
Frederic Massart 2e0bb2af8b MDL-36380 stats: No more duplicated entries when viewing monthly stats 2013-02-25 13:55:37 +08:00
Damyon Wiese 713b75916c MDL-28692 Base theme - Version bump for css change 2013-02-25 13:50:01 +08:00
Damyon Wiese c7cb130bce Merge branch 'MDL-28692_master' of git://github.com/lazydaisy/moodle 2013-02-25 13:32:25 +08:00
Damyon Wiese ac57ce753c MDL-30072 Notes webservices - Fix one parameter description and bump version. 2013-02-25 13:14:18 +08:00
Damyon Wiese cc7a1c8916 Merge branch 'wip-MDL-30072-master' of git://github.com/phalacee/moodle 2013-02-25 12:37:56 +08:00
Damyon Wiese 7e6c674302 MDL-33934 MyMobile theme - Fix white space, indenting and file permissions 2013-02-25 12:24:55 +08:00
Damyon Wiese 23f7fed1e1 Merge branch 'MDL-33934_master' of git://github.com/lazydaisy/moodle 2013-02-25 12:10:06 +08:00
Dan Poltawski b5457b4def MDL-37455 lang - fix trailing whitespace 2013-02-25 12:05:16 +08:00
Dan Poltawski 92adcc1cf0 Merge branch 'wip-MDL-37455-master' of git://github.com/marinaglancy/moodle 2013-02-25 11:43:48 +08:00
Damyon Wiese b625f85949 Merge branch 'MDL-38052_master' of git://github.com/kordan/moodle 2013-02-25 11:38:13 +08:00
Tim Lock 9ecded01cc MDL-38113: Blind Marking grader email reveals submitters details 2013-02-25 11:13:25 +08:00
Dan Poltawski 24ace4b795 Merge branch 'wip-MDL-38091-master' of git://github.com/marinaglancy/moodle 2013-02-25 11:00:03 +08:00
Damyon Wiese dbfe8e26ee Merge branch 'w08_MDL-38042_m25_flatroles' of git://github.com/skodak/moodle 2013-02-25 10:50:38 +08:00
Damyon Wiese 89fcdca119 Merge branch 'w08_MDL-38096_m25_manenrol' of git://github.com/skodak/moodle 2013-02-25 10:44:54 +08:00
Dan Poltawski 5f0aeea1ce Merge branch 'MDL-38164_master' of git://github.com/dmonllao/moodle 2013-02-25 10:43:52 +08:00
Dan Poltawski 1343f4c02b Merge branch 'MDL-38061-master' of git://github.com/damyon/moodle 2013-02-25 10:16:29 +08:00
AMOS bot edf45a66e3 Automatically generated installer lang files 2013-02-25 00:39:44 +00:00
Petr Škoda ce9d54b9f3 MDL-38096 use separate manual enrol and unenrol capabilities in UI 2013-02-24 13:28:48 +01:00
Petr Škoda f10edc9792 MDL-37963 do request flatfile role mapping when adding new roles 2013-02-24 12:17:16 +01:00
Petr Škoda dbf60a042c MDL-37963 hash only given passwords in user generator 2013-02-24 10:40:55 +01:00
Petr Škoda bdbcb6d7fa MDL-38121 tell admins when plugin installed into wrong dir 2013-02-23 18:16:42 +01:00
Mary Evans c443c95c01 MDL-33934 theme_mymobile: Updates to CSS & Javascript - including MDL-38072 removing css/js for collapsed topic.
The following comments is a mash of commits for reference only:

Squashed commit of the following:

commit a6ab42de71e41c0760d6d99dec7a3ec6ef8b7e52
Author: Mary Evans <lazydaisy@visible-expression.co.uk>
Date:   Sat Feb 23 15:34:12 2013 +0000

    MDL-33934 theme_mymobile: fixing whitspace and undoing some previous confict changes fixing where broken.

commit a5abe86fad012f2face9dbd98826583499f46b88
Merge: 89c04c2 13c3ee1
Author: Mary Evans <lazydaisy@visible-expression.co.uk>
Date:   Sat Feb 23 15:18:17 2013 +0000

    Merge branch 'wip-MDL-33934_master' of github.com:lazydaisy/moodle into wip-MDL-33934_master

    Conflicts:
        theme/mymobile/javascript/custom.js
        theme/mymobile/style/core.css

commit 89c04c2bee75938ba5e6f6b54f43ff866c6119b6
Author: Mary Evans <lazydaisy@visible-expression.co.uk>
Date:   Sat Feb 23 15:01:43 2013 +0000

    MDL-33934 theme_mymobile: Removed collapsed topic contributed plugin css/js from style/core.css & javascript/custom.js

commit ddee12ebd2083af0ebebd747e867957d46a10af7
Author: Mary Evans <lazydaisy@visible-expression.co.uk>
Date:   Tue Feb 19 11:05:35 2013 +0000

    MDL-33934 theme-mymobile: un-commenting $(document).ready(function() in javascript/custom.js.

commit 365bb2d9772f9fd2cb55139f728fa9611dac7b4d
Author: Mary Evans <lazydaisy@visible-expression.co.uk>
Date:   Sun Feb 17 17:41:47 2013 +0000

    MDL-33934 theme_mymobile: updates to javascript and css

commit 13c3ee133945ce0e2a55dd54e0c8b8e2a35f76c5
Author: Mary Evans <lazydaisy@visible-expression.co.uk>
Date:   Tue Feb 19 11:05:35 2013 +0000

    MDL-33934 theme-mymobile: un-commenting $(document).ready(function() in javascript/custom.js.

commit c9e626adf810e3d8d3f776b99d648017033fdb39
Author: Mary Evans <lazydaisy@visible-expression.co.uk>
Date:   Sun Feb 17 17:41:47 2013 +0000

    MDL-33934 theme_mymobile: updates to javascript and css
2013-02-23 15:46:05 +00:00
Petr Škoda e029dff4cd MDL-38154 improve dir delete performance 2013-02-23 15:10:48 +01:00
Marina Glancy f0b137c5b8 MDL-38146 fixing navigation when adding/editing course category 2013-02-23 12:06:56 +11:00
Marina Glancy 592f476b02 MDL-38145 conditionlib_test calls API functions to create course and category 2013-02-23 12:06:47 +11:00
Marina Glancy db1eed7012 MDL-38144 categories are created in reverse sort order in externallib 2013-02-23 12:06:39 +11:00
Marina Glancy 898d4975cb MDL-38091 fixed bug with SQL query on Oracle 2013-02-23 12:06:21 +11:00
Marina Glancy c553530a8e MDL-37455 mod_folder can display content inline. Coding style corrections 2013-02-23 12:03:58 +11:00
Marina Glancy ec62d8b4e5 MDL-37455 Performance improvement in mod_folder
We cache and store additional data in cm_info::customdata and do not
query DB every time the folder is displayed on a course page
2013-02-23 12:03:58 +11:00
Marina Glancy 38199c247b MDL-37455 Allow mod_folder to display the content inline on course page instead of on separate page 2013-02-23 12:03:58 +11:00
Rex Lorenzo 334c6d805f MDL-35175 - Lesson shows no attempts if associated with a grouping 2013-02-22 12:38:01 -08:00
Matteo Scaramuccia 8cca810cf9 MDL-37515 PHP Notice when submitting change password form 2013-02-22 21:32:52 +01:00
Andrew Robert Nicols e691028ab6 MDL-38090 JavaScript Make forms JS more resilient
This issue also corrects the way in which Y.one is called. Previously it
was called as constructor rather than as a static method so it always
returned a Y.Node, regardless of whether a node was found.

Additionally, this adds a config setting to the YUI configuration such that
debug messages are not shown in the JS console when debugging is disabled.
2013-02-22 17:11:34 +00:00
sam marshall bedd74bc22 MDL-38168 Filelib: Curl class does not honour proxybypass option 2013-02-22 14:15:01 +00:00
Jason Fowler 8afb9b7c4f MDL-35816 - User - Modify the profile page to use semantic HTML rather than tables for layout 2013-02-22 13:59:49 +08:00
Jason Fowler 34348b2b43 MDL-30072 - Notes, Webservices - adding Webservices for notes 2013-02-22 13:58:11 +08:00
David Monllao 7f9d8045a3 MDL-38164 behat: No switch completely if it is false 2013-02-22 12:01:52 +08:00
Damyon Wiese f29e62cb6c weekly release 2.5dev 2013-02-22 10:55:48 +08:00
Damyon Wiese 41af3cb32c Fix permissions 2013-02-22 10:53:47 +08:00
Damyon Wiese d08e6c31fb MDL-38061 Assignment - Use $CFG->showuseridentity to add extra fields to the assignment grading table/user summary. 2013-02-22 10:30:56 +08:00
Sam Hemelryk d0749719ef MDL-38162 config_cache: fixed issue with empty values array 2013-02-22 14:26:34 +13:00
Sam Hemelryk ff6f9d3aa6 MDL-38162 memcache: fixed up the memcache plugins 2013-02-22 14:23:18 +13:00
Sam Hemelryk 068ad19988 MDL-36287 block_navigation: ajax loading events are now delegated 2013-02-22 14:18:36 +13:00
Eloy Lafuente (stronk7) 6919693cd6 MDL-38161 Upgrade xhprof to 02-2013 commits
Note this continues being version 0.9.2 and
only a few changes have landed since 3y ago.
(the important stuff is in the xhprof extension,
not in this UI package using it)
2013-02-22 02:05:04 +01:00
kordan 6e7eca1d7f MDL-38052 theme_formal_white: allowed the overlap between headermenu and header logo 2013-02-21 18:11:32 +01:00
Dan Poltawski fc7d3fdc84 Merge branch 'MDL-33996-forum-advanced-timestamp' of git://github.com/mudrd8mz/moodle 2013-02-21 22:11:37 +08:00
David Mudrák 15f83171f5 MDL-33996 Remove the nopostscontaining string from the forum module
After Mark's improvements at the search results display page, the string
is not needed any more.
2013-02-21 14:50:15 +01:00
Mark Johnson b74c9a9fec MDL-33996 Forum search. Stop displaying raw search strings to users 2013-02-21 14:48:56 +01:00
Damyon Wiese 0b352fd94e MDL-37770 Assignment submission comments do not work without javascript.
This is mostly fixed by MDL-36832 which correctly sets the $PAGE->url.

This patch hides the submit and textareas from submission comments in the grading table when
javascript is disabled and quickgrading is enabled. This particular combination results in a form
nested in a form which does not work (and cannot be fixed in a reasonable amount of time).
2013-02-21 11:55:24 +08:00
Damyon Wiese c211409998 MDL-36832 Assignment Fix issues found by unit tests with previous patch 2013-02-21 11:22:06 +08:00
Damyon Wiese d04557b364 MDL-36832 Assignment - Use MUC for caching the useridlist and change all pages to redirect after post.
This means that the $PAGE->url is properly set for all pages and is required to fix some edge cases with the comments api when
javascript is disabled. It also means logging in after a timeout will work nicely and other Good Things (tm).
2013-02-21 11:04:07 +08:00
Dan Poltawski 72c70f9d14 Merge branch 'MDL-37997-muc-stats-display' of git://github.com/mudrd8mz/moodle 2013-02-21 09:38:05 +08:00
Andrew Robert Nicols 005c6c203f MDL-38141 JavaScript: Remove unused dependency in module chooser 2013-02-20 21:37:43 +00:00
Sam Hemelryk 0bdf592e6e MDL-38110 cache: increased ttl unit test value to avoid timing issues 2013-02-21 09:53:02 +13:00
Sam Hemelryk 1727057218 MDL-37224 backup-import: better handling of search button 2013-02-21 08:23:58 +13:00
David Mudrák 24798e5df5 MDL-37997 Yet more CSS improvements to display MUC caches usage 2013-02-20 17:00:57 +01:00
Dan Poltawski d94fc7ece9 Revert "MDL-36380 stats: No more duplicated entries when viewing monthly stats"
This reverts commit 304baba01a.
2013-02-20 17:04:33 +08:00
Dan Poltawski aa247695e7 Merge branch 'MDL-35622-master' of git://github.com/FMCorz/moodle 2013-02-20 14:27:27 +08:00
Rajesh Taneja 0627e1cef4 MDL-37329 Navigation: Enrolled courses in category should be added only. 2013-02-20 12:39:21 +08:00
Frederic Massart 5961512aa3 MDL-35622 files: Fixed typo in galleryitem extension 2013-02-20 12:23:18 +08:00
Jerome Mouneyrac ff855b9b19 MDL-38001 rename the download button into install button 2013-02-20 11:39:47 +08:00
Damyon Wiese cfd2addf3f Merge branch 'wip-mdl-37329-new' of git://github.com/rajeshtaneja/moodle 2013-02-20 08:54:57 +08:00
Frederic Massart 3385a89c38 MDL-37641 files: Tests for draftfile_exists and get_unused_filename 2013-02-20 08:50:43 +08:00
Frederic Massart d7d69396b0 MDL-37641 files: Improve file name suggestion and performance 2013-02-20 08:50:40 +08:00
Eloy Lafuente (stronk7) 3b00c13bf1 MDL-37894 Amend tests with new openclose rule. 2013-02-20 01:36:20 +01:00
Eloy Lafuente (stronk7) 349c224817 Merge branch 'wip-MDL-37224-m25' of git://github.com/samhemelryk/moodle 2013-02-20 00:48:12 +01:00
Eloy Lafuente (stronk7) ca1774aea4 Merge branch 'wip-MDL-34298-m25' of git://github.com/samhemelryk/moodle 2013-02-20 00:45:50 +01:00
Eloy Lafuente (stronk7) b70a3b7106 Merge branch 'MDL-38093' of git://github.com/timhunt/moodle 2013-02-20 00:44:54 +01:00
Eloy Lafuente (stronk7) f1b011d3a8 Merge branch 'MDL-37894' of git://github.com/timhunt/moodle 2013-02-20 00:39:44 +01:00
Eloy Lafuente (stronk7) d2761b3aad Merge branch 'MDL-37967' of git://github.com/jmvedrine/moodle 2013-02-20 00:32:19 +01:00
Eloy Lafuente (stronk7) 26581a7420 Merge branch 'wip-MDL-37987-master' of git://github.com/marinaglancy/moodle 2013-02-20 00:10:35 +01:00
Eloy Lafuente (stronk7) 4e6bb9d315 Merge branch 'wip-MDL-38075-m25' of git://github.com/samhemelryk/moodle 2013-02-20 00:07:17 +01:00
Eloy Lafuente (stronk7) 80ba3a4390 Merge branch 'MDL-37982_master' of git://github.com/dmonllao/moodle 2013-02-20 00:01:47 +01:00
Eloy Lafuente (stronk7) 41e94a8d6f Merge branch 'MDL-37872-m' of git://github.com/andrewnicols/moodle 2013-02-19 23:26:09 +01:00
Eloy Lafuente (stronk7) 6d6bd5f114 MDL-32620 whitespace + comment fixes. 2013-02-19 13:21:18 +01:00
Eloy Lafuente (stronk7) 1ead0c63e9 Merge branch 'MDL-32620' of git://github.com/scriby/moodle 2013-02-19 13:13:43 +01:00
Eloy Lafuente (stronk7) 57691c32b7 Merge branch 'MDL-36541' of https://github.com/Lightwork-Marking/moodle 2013-02-19 13:02:56 +01:00
Eloy Lafuente (stronk7) 345768b9b8 Merge branch 'MDL-35750' of git://github.com/danpoltawski/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-02-19 12:57:10 +01:00
Eloy Lafuente (stronk7) a5b1f1e2f2 Merge branch 'MDL-38031-master' of git://github.com/FMCorz/moodle 2013-02-19 12:46:36 +01:00
Eloy Lafuente (stronk7) 8337ed1e69 Merge branch 'MDL-38033_dnd_uppercase_extn' of git://github.com/davosmith/moodle 2013-02-19 12:23:41 +01:00
Dan Poltawski 61df003d53 Merge branch 'master_MDL-37660' of git://github.com/danmarsden/moodle 2013-02-19 15:04:56 +08:00
Dan Poltawski d3c6290328 Merge branch 'w07_MDL-38059_m25_cachedir' of git://github.com/skodak/moodle 2013-02-19 14:07:13 +08:00
Dan Poltawski d0231ac9a9 Merge branch 'MDL-37217-master' of git://github.com/FMCorz/moodle
Conflicts:
    version.php
    repository/googledocs/version.php
2013-02-19 13:54:52 +08:00
Damyon Wiese 1ec8da6706 Merge branch 'wip-MDL-38000-m25' of git://github.com/samhemelryk/moodle 2013-02-19 13:48:12 +08:00
Dan Poltawski 2810980451 Merge branch 'MDL-38048-master' of git://github.com/FMCorz/moodle 2013-02-19 13:44:15 +08:00
Dan Poltawski fd507a8715 Merge branch 'm25_MDL-37449_Reports_ORA-00918_column_ambiguously_defined' of https://github.com/scara/moodle 2013-02-19 13:41:45 +08:00
Frederic Massart 3425813fc4 MDL-37217 repository: Google Docs repository uses Google SDK 2013-02-19 13:36:23 +08:00
Frederic Massart 0acb074618 MDL-37217 repository: Adding Google API PHP SDK 2013-02-19 13:36:23 +08:00
Fred 91c8cf9963 MDL-37217 files: Stricter type check for curl options 2013-02-19 13:36:23 +08:00
Dan Poltawski 3770eadb82 Merge branch 'MDL-38047-master' of git://github.com/damyon/moodle 2013-02-19 13:31:11 +08:00
Damyon Wiese b27fc5b64f Merge branch 'wip-MDL-33774-master' of git://github.com/marinaglancy/moodle 2013-02-19 12:36:40 +08:00
Damyon Wiese 52cb014ea3 MDL-31636 Comments - Call display callback when adding a new comment. 2013-02-19 11:35:56 +08:00
Aparup Banerjee 6b969e14b5 MDL-31636 Added strftimeformat to comment object being passed through to xxx_comment_display() for further time format changes. 2013-02-19 11:35:56 +08:00
Aparup Banerjee 6c847bbb9e MDL-31636 redirect debugging to error log for ajax 2013-02-19 11:35:56 +08:00
Dan Poltawski 7e94bdcca1 Merge branch 'MDL-38009_master' of git://github.com/dmonllao/moodle 2013-02-19 11:34:07 +08:00
Dan Poltawski fdd91adabb Merge branch 'MDL-38051' of git://github.com/jmvedrine/moodle 2013-02-19 11:23:39 +08:00
Dan Poltawski 5e4e086fec Merge branch 'MDL-37934' of git://github.com/jmvedrine/moodle 2013-02-19 10:55:51 +08:00
Damyon Wiese 503c14a612 MDL-29938 Remove tabs (Grrr!) 2013-02-19 10:47:04 +08:00
Dan Poltawski 93a2d4e1a6 Merge branch 'MDL-37858_master' of git://github.com/dmonllao/moodle 2013-02-19 10:33:50 +08:00
Damyon Wiese 0c4ba06047 MDL-29938 Version bump for webservices. 2013-02-19 10:31:25 +08:00
Damyon Wiese ebb1385c39 Merge branch 'MDL-29938-master' of git://github.com/mouneyrac/moodle 2013-02-19 10:10:48 +08:00
Sam Hemelryk 79a809ba44 MDL-34298 course: fixed course search output validation issue 2013-02-19 11:03:58 +13:00
Sam Hemelryk db6539c62a MDL-37224 backup: fixed bug when searching for a course to import 2013-02-19 09:32:01 +13:00
Tim Hunt e58b2c326b MDL-38093 quiz settings: make overall feeback editors collapsible. 2013-02-18 18:13:51 +00:00
Tim Hunt 6e78a7bdb4 MDL-37894 Show the quiz close date even if the quiz is not open yet.
People care a lot about deadlines!
2013-02-18 10:27:37 +00:00
Dan Poltawski 858b3a2487 Merge branch 'MDL-37997-muc-stats-display' of git://github.com/mudrd8mz/moodle 2013-02-18 16:17:06 +08:00
Dan Poltawski 35b5c04f0b Merge branch 'MDL-38039_master' of git://github.com/lazydaisy/moodle 2013-02-18 15:59:48 +08:00
Dan Poltawski 9c70147d54 Merge branch 'MDL-31983-master' of git://github.com/FMCorz/moodle 2013-02-18 15:54:22 +08:00
Frederic Massart dd1c2f5a02 MDL-31983 navigation: Renaming the Settings block to Administration
AMOS BEGIN
 CPY [administration,core],[pluginname,block_settings]
AMOS END
2013-02-18 15:48:12 +08:00
Damyon Wiese 74f3d44d37 Merge branch 'MDL-37687_comments_ajax_fix' of git://github.com/nebgor/moodle 2013-02-18 14:51:50 +08:00
Jean-Michel Vedrine ded5cddb32 MDL-37967 Improve XML question import format handling of duplicated files 2013-02-18 07:38:22 +01:00
Dan Poltawski 69898d6b9a Merge branch 'MDL-37396' of git://github.com/rwijaya/moodle 2013-02-18 14:22:02 +08:00
Dan Poltawski 3672b3b9b0 Merge branch 'MDL-36380-master' of git://github.com/FMCorz/moodle 2013-02-18 14:18:25 +08:00
Damyon Wiese 82a6332837 Merge branch 'MDL-37939-m' of https://github.com/andrewnicols/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-02-18 13:35:36 +08:00
Rossiani Wijaya 62a973cef0 MDL-37396 Enrollmen: pass $perpage as optional_param and set default perpage variable in quickenrolment.js 2013-02-18 13:22:07 +08:00
Dan Poltawski 93d5dc1c03 Merge branch 'MDL-35336' of git://github.com/rwijaya/moodle 2013-02-18 12:23:51 +08:00
Dan Poltawski 32c3446fab Merge branch 'MDL-37337-master' of git://github.com/damyon/moodle 2013-02-18 12:00:45 +08:00
Dan Poltawski 219faacc33 MDL-35622 - fix crazy character causing upgrade problems
Can you see it?!
2013-02-18 11:55:29 +08:00
Dan Poltawski 28d72ad973 Merge branch 'MDL-35622-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2013-02-18 11:31:07 +08:00
Dan Poltawski 8450149249 Merge branch 'MDL-34800_ajax_submit' of git://github.com/andyjdavis/moodle 2013-02-18 11:07:28 +08:00
Damyon Wiese 7866b094cb MDL-37683 cache: - Comments cleanup and remove ;; 2013-02-18 10:35:31 +08:00
Rossiani Wijaya 4be3ed4b3d MDL-37396 User Enrollment: fixed missing user from enrolment sub-menu 2013-02-18 10:28:23 +08:00
Marina Glancy 7d579b1e61 MDL-37987 bugfix: swapped column headings in the category management table 2013-02-18 13:24:06 +11:00
Rossiani Wijaya 17b57ec881 MDL-35336 report (course overview): check the setting for enablestats before printing out the node for setting > site admin > reports 2013-02-18 10:21:53 +08:00
Rossiani Wijaya 2975c3429e MDL-35336 Report (course overview): fixed redirect url to enable statistics setting page when statistics is disable 2013-02-18 10:21:53 +08:00
Mary Evans 167114a27c MDL-28692 theme_base: Added background-color to admin settings form overridden in base/style/admin.css 2013-02-18 01:42:16 +00:00
Frederic Massart 2d10823a7c MDL-38076 usability: Fix wrong position of new 2.4 icons 2013-02-18 09:40:49 +08:00
Damyon Wiese cd747874a4 Merge branch 'wip-MDL-37683-m25' of git://github.com/samhemelryk/moodle 2013-02-18 09:30:47 +08:00
Sam Hemelryk 7634410b6e MDL-37683 cache: improved indentifier collection and storage 2013-02-18 10:20:02 +13:00
Sam Hemelryk 04cfa387f9 MDL-38000 css: fixed handling of CSS files by outputlib. 2013-02-18 08:34:19 +13:00
Sam Hemelryk e0d9b7c0d4 MDL-37683 cache: siteidentifier is now included in the keys 2013-02-18 08:32:03 +13:00
Sam Hemelryk 95cf54e1c9 MDL-38075 csslib: fixed coding error when working with an array of styles 2013-02-18 08:21:43 +13:00
Petr Škoda 2752739cc8 MDL-38059 explain that cachedir must be shared in cluster 2013-02-16 14:43:16 +01:00
Andrew Robert Nicols 3f61e4cbf3 MDL-37939 Course: Add additional unit tests to confirm that module move occurs correctly 2013-02-15 21:28:50 +00:00
Andrew Robert Nicols 59a0ba3bdc MDL-37939 Course: Correct broken sequence data 2013-02-15 21:28:33 +00:00
Jean-Michel Vedrine 7bae3a12fd MDL-38051 Annihilate all the CRLFs present in some questions/fixtures... 2013-02-15 18:26:38 +01:00
Dan Marsden 61fbdb0eec MDL-37660 SCORM: move time related settings into general section and improve lang 2013-02-15 23:48:32 +13:00
Rajesh Taneja db47f68f28 MDL-37329 Navigation: Navigation node My Courses will only show enrolled courses 2013-02-15 17:55:28 +08:00
Adrian Greeve 03ee0c39b3 MDL-37983 - my home / navigation: $CFG->forcelogin is no longer affecting default home page redirects. 2013-02-15 15:48:46 +08:00
Frederic Massart 304baba01a MDL-36380 stats: No more duplicated entries when viewing monthly stats 2013-02-15 15:02:54 +08:00
David Monllao ee7447a9f4 MDL-37858 behat: Testing the step arguments replacements 2013-02-15 13:38:14 +08:00
David Monllao b08b0a2875 MDL-37858 behat: Arguments transformations
To remove the escape characters and to
replace var names for nasty strings
2013-02-15 13:38:14 +08:00
David Monllao 110761997a MDL-37858 testing: Adding nasty strings generator 2013-02-15 13:38:14 +08:00
David Monllao 02ca6219a6 MDL-37858 behat: Removing fixStepArgument
It can be managed by a @Transform in
a centralized way
2013-02-15 13:38:14 +08:00
David Monllao 9305c29f35 MDL-37912 behat: Use text area if there is no html editor 2013-02-15 13:37:14 +08:00
Frederic Massart 444c49fa57 MDL-38048 documentation: Typo in README file 2013-02-15 13:14:39 +08:00
Frederic Massart ebd9ae6523 MDL-31983 navigation: Move reports from Navigation to Settings 2013-02-15 13:06:26 +08:00
Damyon Wiese a5c793c38c MDL-38047 Assignment unit tests - Shave 1 minute from the unit tests for mod_assign. 2013-02-15 12:36:21 +08:00
Dan Poltawski 47570cc67d MDL-35750 - update to the ISO list of countries
Netherlands Antilles has been split up as specified in ISO 3166-1
Newsletter VI-8 (2010-12-15). Users will need to choose their country.
http://www.iso.org/iso/iso_3166-1_newsletter_vi-8_split_of_the_dutch_antilles_final-en.pdf

PLEASE NOTE: if you are updating this list again, i've written a script
to automate it from now on, linked from the bug.
2013-02-15 12:26:08 +08:00
Damyon Wiese b0da618b61 MDL-37337 Assignment: Restructure assignment settings screen to make it "wieldy" 2013-02-15 11:26:21 +08:00
Jerome Mouneyrac 85e6bf8e71 MDL-29938 throw exception when a criteria is repeated, used self instead classname when possible, return only not deleted users 2013-02-15 11:03:13 +08:00
Frederic Massart 982f4bc40e MDL-38301 usability: Fixed wrong icon size 2013-02-15 10:04:57 +08:00
Eloy Lafuente (stronk7) 9e7e1b1c9e MDL-38040 Clean core from CRLFs 2013-02-15 02:13:32 +01:00
Mary Evans 6e8f7688cc MDL-38039 theme_base: Corrected typo fickering to flickering in CSS comment which blocked IPCOP browser firewall in IE. 2013-02-15 00:48:08 +00:00
Paul Charsley 45c0a7d002 MDL-36541 modify get_groupings to optionally return associated groups 2013-02-15 13:13:06 +13:00
Matteo Scaramuccia f1e316870d MDL-37449 Incorrect doubled 'u.email' field in the SQL query (Oracle error: ORA-00918) 2013-02-14 21:38:05 +01:00
Davo Smith 04a38bd311 MDL-38033 dndupload - ignore case when comparing dropped file extensions with those supported by activity modules 2013-02-14 20:19:41 +00:00
Marina Glancy 73a0f3ba76 MDL-33774 Reset filters caches between unit tests 2013-02-14 19:46:19 +11:00
Marina Glancy 173115e14c MDL-33774 filter_activitynames removed hardcoded label module type 2013-02-14 19:46:19 +11:00
Marina Glancy 9ecb50e6e3 MDL-33774 instead of checking that activity is label we check that it has view url 2013-02-14 19:46:19 +11:00
Marina Glancy 3008f86c3f MDL-33774 mod_label stores the content where it is supposed to
removed hardcoded checking for 'label' module type

changed label update script
2013-02-14 19:46:19 +11:00
David Monllao 10dd80c2ac MDL-38029 behat: Cleaning caches before each test 2013-02-14 16:33:33 +08:00
David Monllao a3b4d42b45 MDL-38009 behat: Reset cachedir and tempdir 2013-02-14 16:28:05 +08:00
David Monllao 1f037b3776 MDL-37982 enrol_ims: No filters applied when inserting into DB 2013-02-14 16:27:22 +08:00
Jean-Michel Vedrine 0e178dc939 MDL-37934 Blackboard_six question import fails in some cases
Import fails if the same image is used several times
in the same field of the same question
2013-02-14 09:26:29 +01:00
Damyon Wiese 1dd6835d8c weekly release 2.5dev 2013-02-14 13:46:04 +08:00
Damyon Wiese f22bc6d963 Fix permissions 2013-02-14 13:43:58 +08:00
Damyon Wiese 082685e2de Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-02-14 13:37:48 +08:00
AMOS bot ca3ee769e1 Automatically generated installer lang files 2013-02-14 00:49:54 +00:00
Mark Nielsen e5ed5e6ab7 MDL-32620: Fixing up white space in comment 2013-02-13 09:21:03 -08:00
Dan Poltawski 583b20abd7 Merge branch 'MDL-37883-master' of git://github.com/damyon/moodle 2013-02-13 15:47:27 +08:00
Damyon Wiese 7688a3191c MDL-37883 Assignment Grade import/export. Additional fix to prevent different grade rounding on export. 2013-02-13 15:33:10 +08:00
Damyon Wiese 6e59159387 Merge branch 'MDL-37750_master-add-seconds' of git://github.com/dmonllao/moodle 2013-02-13 15:04:51 +08:00
David Monllao cd65dc3220 MDL-37750 behat: More time for AJAX-related actions
When we want to assert against data coming
from an AJAX request with 1 second we don't
have enough time to ensure the elements are
loaded
2013-02-13 13:19:56 +08:00
Dan Poltawski 733c17694d MDL-30637 - fix padding on show/collapse arrow 2013-02-13 11:44:26 +08:00
AMOS bot 731bea1b3b Automatically generated installer lang files 2013-02-13 00:45:39 +00:00
Eloy Lafuente (stronk7) 6033723098 Merge branch 'MDL-37598-abort-after-config' of git://github.com/mudrd8mz/moodle 2013-02-12 22:49:05 +01:00
David Mudrák 08caae5b22 MDL-37997 Improve the display of MUC caches used in the footer
Cache stores with no hits and some misses are highlighted in red. Caches
stores with some hits but more misses are highlighted in yellow.
Otherwise (more hits than misses) the stores are highlighted in green.
2013-02-12 22:27:55 +01:00
Eloy Lafuente (stronk7) fe4a6d3c38 Merge branch 'MDL-37953_master' of https://github.com/markn86/moodle 2013-02-12 10:12:01 +01:00
Eloy Lafuente (stronk7) 7fe9a7863a Merge branch 'MDL-37787_master' of git://github.com/dmonllao/moodle 2013-02-12 10:07:58 +01:00
Eloy Lafuente (stronk7) a3cdb2ba7e MDL-37893 Take rid of old comment. 2013-02-12 10:03:29 +01:00
Eloy Lafuente (stronk7) b57f62c497 Merge branch 'MDL-37893-grouped-empty' of git://github.com/mudrd8mz/moodle 2013-02-12 10:02:23 +01:00
Aparup Banerjee cff7e83d2d MDL-37687 use $SITE to allow non-logged-in users to browse comment via ajax 2013-02-12 16:19:40 +08:00
Dan Poltawski 6065652f24 Merge branch 'wip-MDL-37976-master' of git://github.com/marinaglancy/moodle 2013-02-12 16:13:48 +08:00
Dan Poltawski 6af8e417c3 Merge branch 'wip-mdl-37633' of git://github.com/rajeshtaneja/moodle
Conflicts:
	mod/forum/db/upgrade.php
	mod/forum/version.php
2013-02-12 15:48:33 +08:00
Dan Poltawski 5c70d6505a Merge branch 'MDL-37768_master' of git://github.com/dmonllao/moodle 2013-02-12 15:44:17 +08:00
Dan Poltawski 2b8741aaa6 Merge branch 'MDL-32076_unlimited2' of git://github.com/andyjdavis/moodle 2013-02-12 15:08:53 +08:00
Rajesh Taneja afd5e85ca8 MDL-37633 Forum: Allow fronpage user to have forum:allowforcesubscribe capability by default 2013-02-12 14:57:47 +08:00
Damyon Wiese 147f592742 Merge branch 'MDL-37873_master' of git://github.com/dmonllao/moodle
Conflicts:
	course/tests/behat/add_activities.feature
2013-02-12 14:48:40 +08:00
Damyon Wiese f49ec42973 Merge branch 'MDL-37750_master-fix' of git://github.com/dmonllao/moodle 2013-02-12 14:47:50 +08:00
Damyon Wiese 2262c52122 Merge branch 'MDL-37012-master' of git://github.com/mouneyrac/moodle 2013-02-12 14:39:20 +08:00
Damyon Wiese 5926f85960 Merge branch 'wip-mdl-20131' of git://github.com/rajeshtaneja/moodle 2013-02-12 14:15:29 +08:00
David Monllao 333cb91fbf MDL-37750 behat: Removing (now) collapsed elements 2013-02-12 14:06:51 +08:00
Dan Poltawski 26f94655d5 Merge branch 'MDL-37883-master' of git://github.com/damyon/moodle 2013-02-12 13:47:37 +08:00
Dan Poltawski 4dea0a7719 Merge branch 'MDL-37074-master' of git://github.com/damyon/moodle 2013-02-12 13:39:07 +08:00
Tim Hunt b4be77c570 MDL-37924 quiz settings: change wrong 'fix' => 'adv'. 2013-02-12 13:36:54 +08:00
Damyon Wiese 6904688967 Merge branch 'MDL-37654_master' of https://github.com/markn86/moodle 2013-02-12 13:09:18 +08:00
Damyon Wiese 7339d6c0e9 Merge branch 'MDL-37164_message_self' of git://github.com/andyjdavis/moodle 2013-02-12 12:12:44 +08:00
Damyon Wiese dad4fa26e7 Merge branch 'MDL-37828_master' of git://github.com/lazydaisy/moodle 2013-02-12 11:40:40 +08:00
Jerome Mouneyrac 909f27acf4 MDL-37410 External PHPunit test: used ->getDataGenerator()->enrol_user instead to manually enrol the user. + improve the unassignUserCapability to remove a capability assigned by getDataGenerator->enrol_users 2013-02-12 11:15:15 +08:00
Rajesh Taneja 390ef41e02 MDL-20131 Glossary: Fixed courseid typo 2013-02-12 10:57:10 +08:00
Dan Poltawski 501bdad2b9 Merge branch 'wip-MDL-34798_master-2' of git://github.com/gjb2048/moodle 2013-02-12 10:34:07 +08:00
Mark Nelson 8076010d37 MDL-37953 mod_forum: using named parameters to build SQL statement 2013-02-12 10:31:10 +08:00
Damyon Wiese 234fdc206c Merge branch 'MDL-5875-master' of git://github.com/FMCorz/moodle
Conflicts:
	version.php
2013-02-12 10:09:26 +08:00
Marina Glancy 2333bfa7e8 MDL-37976 fixed missing global 2013-02-12 12:59:35 +11:00
Dan Poltawski 008a6514ae Merge branch 'MDL-37952' of git://github.com/stronk7/moodle 2013-02-12 09:45:38 +08:00
Dan Poltawski 08eef1a4bd Merge branch 'MDL-37886_master' of git://github.com/dmonllao/moodle 2013-02-12 09:43:50 +08:00
Damyon Wiese 87c9271514 MDL-37831: Version bump for js changes. 2013-02-12 09:34:02 +08:00
Damyon Wiese 82708d0615 Merge branch 'MDL-37831_filepicker_buttons' of git://github.com/davosmith/moodle 2013-02-12 09:15:23 +08:00
Eloy Lafuente (stronk7) e8e6802225 Merge branch 'MDL-37943' of git://github.com/timhunt/moodle 2013-02-12 01:20:56 +01:00
Eloy Lafuente (stronk7) ce9c323635 Merge branch 'MDL-37686-master' of git://github.com/FMCorz/moodle 2013-02-12 01:16:48 +01:00
Eloy Lafuente (stronk7) 625d5f8164 Merge branch 'MDL-37896' of git://github.com/timhunt/moodle 2013-02-12 01:13:18 +01:00
Eloy Lafuente (stronk7) ef1a4d20d4 Merge branch 'MDL-37919-phpunit-exception' of git://github.com/mudrd8mz/moodle 2013-02-12 01:07:43 +01:00
Eloy Lafuente (stronk7) 9a061c3285 Merge branch 'MDL-35037' of git://github.com/danpoltawski/moodle 2013-02-12 00:59:39 +01:00
Eloy Lafuente (stronk7) 65412c365d Merge branch 'MDL-37961-master' of git://github.com/FMCorz/moodle 2013-02-12 00:43:38 +01:00
Eloy Lafuente (stronk7) e196517bf5 Merge branch 'wip-MDL-35832-master' of git://github.com/phalacee/moodle 2013-02-11 23:31:38 +01:00
David Mudrák 55834476c4 MDL-37598 Proceed full setup in YUI serving files if needed
When serving Moodle YUI files, including just moodlelib.php is not enough
any more. We need the full setup in order to use MUC.

Please note that cookies are disabled in these two scripts. This may make
cache_store::MODE_SESSION caches unavailable. We do not expect they will
be needed here.
2013-02-11 16:35:16 +01:00
Gareth J Barnard cbddba1887 MDL_34798 format_topics and format_weeks: Adjust section names when moving up. 2013-02-11 13:43:42 +00:00
Dan Poltawski 32f832b22b Merge branch 'master_MDL-35332' of git://github.com/totara/moodle 2013-02-11 16:43:34 +08:00
Simon Coggins 5c4ffeb883 MDL-35332: Use fast hash when generating hashes during tests 2013-02-11 21:38:07 +13:00
Matt Oquist da48404391 MDL-37953 mod_forum: replace hard-coded numbers with defined values
mod/forum/lib.php sets forum_posts.mailed to 0, 1, and 2. What do these numbers
mean? This patch creates defined values for these otherwise-mysterious
numbers.
2013-02-11 15:20:18 +08:00
Damyon Wiese a052fe8a6b MDL-37122 core get_max_upload_sizes: Removed unit test for no limit as it is depends on settings in php.ini 2013-02-11 15:18:12 +08:00
Dan Poltawski 354348865c Merge branch 'MDL-34137_label_dndupload' of git://github.com/davosmith/moodle 2013-02-11 14:55:13 +08:00
Damyon Wiese 1e7db9fee8 Merge branch 'master_MDL-35332' of git://github.com/totara/moodle
Conflicts:
	lib/tests/moodlelib_test.php
	version.php
2013-02-11 14:51:11 +08:00
Frederic Massart 4d3fd60d28 MDL-37961 webservice: PARAM_BOOL with PARAM_DEFAULT accepts boolean default 2013-02-11 14:37:19 +08:00
Dan Poltawski 9d7d0c4f2b Merge branch 'MDL-37039-master' of git://github.com/damyon/moodle 2013-02-11 14:32:53 +08:00
Dan Poltawski 2ae00d0d3c Merge branch 'MDL-37122-master' of git://github.com/damyon/moodle 2013-02-11 14:24:04 +08:00
Dan Poltawski acd561c66a Merge branch 'MDL-37797' of git://github.com/rwijaya/moodle 2013-02-11 13:58:36 +08:00
Jerome Mouneyrac 0c34e8034d MDL-29938 ignore invalid keys 2013-02-11 13:58:00 +08:00
Jerome Mouneyrac bb1105ae31 MDL-29938 Fix typo bypassing some code + remove misplaced code in deprecated function + some code cleaning 2013-02-11 13:57:59 +08:00
Jerome Mouneyrac ec80bc6bf8 MDL-29938 don't validate return user info against PARAM_USERNAME as PARAM_USERNAME only apply to manual authentication (and web service) 2013-02-11 13:57:59 +08:00
Jerome Mouneyrac b0365ea5d1 MDL-29938 get_users - search users external function 2013-02-11 13:57:59 +08:00
Andrew Davis c90e6b4644 MDL-36091 added debugging() calls in blocks of code marked as "should never happen" 2013-02-11 13:24:52 +08:00
Frederic Massart 506522d582 MDL-5875 forum: Option to display post word count 2013-02-11 12:08:46 +08:00
Rajesh Taneja 95556ce4e8 MDL-20131 Glossary: Global glossary can be added in Random glossary entry block. 2013-02-11 11:55:26 +08:00
Dan Poltawski 06d8f380e9 MDL-35819 - version bump for various JS changes 2013-02-11 10:56:36 +08:00
Dan Poltawski a614fb7457 Merge branch 'MDL-35819-m' of git://github.com/andrewnicols/moodle 2013-02-11 10:56:07 +08:00
Damyon Wiese 8dcca4aacb MDL-30637 Formslib - Cleanup for shortforms implementation (mostly comments)
Also added deprecated functions for the functions that were removed from MoodleQuickForm.
2013-02-11 10:37:13 +08:00
Damyon Wiese 40f1c065b4 Merge branch 'MDL-30637-master' of git://github.com/lucisgit/moodle 2013-02-11 10:37:03 +08:00
Frederic Massart 58b1904fd1 MDL-35622 files: Add support for SMART Notebook MIME types
- The MIME type for Notebook files is: application/x-smarttech-notebook
- The MIME type for Gallery files is also: application/x-smarttech-notebook
Refs: http://exchange-forum.smarttech.com/forums/p/5152/11945.aspx#11945

Original author: Matteo Scaramuccia <moodle@matteoscaramuccia.com>
Fixed by: Paul Holden <pholden@greenhead.ac.uk>
2013-02-11 10:26:09 +08:00
Andrew Davis 01da2d3665 MDL-32076 core_grade: fixed ajax handling of unlimited grades and added some unit tests 2013-02-11 08:49:43 +08:00
Andrew Davis 2e2d197798 MDL-37164 core_message: prevent users from interacting with themself 2013-02-11 08:48:56 +08:00
Andrew Robert Nicols 238b8bc9b6 MDL-35819 AJAX Rewrite Moodle popup help to be more friendly and more efficient 2013-02-10 11:50:56 +00:00
AMOS bot 384dd10a8a Automatically generated installer lang files 2013-02-10 00:41:38 +00:00
Eloy Lafuente (stronk7) 82b61ff8a5 MDL-37952 make helper descendants abstract 2013-02-09 16:22:06 +01:00
Davo Smith 039677df70 MDL-37831 filepicker - icons / details / tree selector buttons now work more reliably 2013-02-08 20:37:19 +00:00
Simon Coggins ec2d8ceb88 MDL-35332 lib: Improve security of hashed passwords 2013-02-09 06:47:57 +13:00
Tim Hunt 2d2018abda MDL-37896 qtype_essay: correct PARAM_CLEANHTML -> PARAM_RAW.
It turns out that you should almost never use PARAM_CLEANHTML.
2013-02-08 12:51:21 +00:00
Tim Hunt 1fa845437c MDL-37943 upgrade: logic error in upgrade_plugins_blocks.
Derek Woolhead tracked down the problem and what needed to be fixed. I
just made the patch.

The problem was that if $plugin->cron had changed in version.php, then
the version number in the database could end up wrong after the upgrade,
and so the upgrade would immediately run a second time.
2013-02-08 12:40:49 +00:00
David Mudrák b3c00549c5 MDL-37774 Do not pass trailing slash if the method does not want it 2013-02-08 12:05:44 +01:00
David Mudrák d0530ed444 MDL-37774 Make moodle1_file_manager::migrate_directory() support trailing slash in rootpath
As the $rootpath is concatenated with the $relpath, we would end with a
path like course_files//file.txt. Such a path is detected as not-valid
later and an error would be thrown.

So the patch makes sure that the trailing slash is cut off and a
debugging for the developer is displayed.
2013-02-08 11:45:24 +01:00
David Mudrák 86083f9752 MDL-37774 Add unit test to illustrate the problem with the trailing slash
The patch introduces two new tests for moodle1_file_manager::migrate_directory().
The second test with the trailing slash reveals the trouble here.
The expected behaviour is that the method would deal with the trailing
slash. Debugging message for the developer should be displayed though.
2013-02-08 11:41:38 +01:00
David Monllao 68fae082df MDL-37787 behat: Using progress format by default 2013-02-08 17:14:57 +08:00
David Monllao b831d47925 MDL-37768 behat: Checking test site version before running tests 2013-02-08 17:14:26 +08:00
David Monllao 9776ddeee2 MDL-37873 behat: Fixing CSS-based assertions arguments 2013-02-08 17:13:32 +08:00
David Monllao bf4fa29980 MDL-37750 behat: Adding tests for the rest of the steps definitions 2013-02-08 17:11:27 +08:00
David Monllao 1f9ffbdbde MDL-37750 behat: Using base find* methods 2013-02-08 17:11:27 +08:00
David Monllao d56ae59b47 MDL-37750 behat: Waiting for DOM ready 2013-02-08 17:11:27 +08:00
David Monllao ff48a235a9 MDL-37750 behat: Elements finders at base level
Set of DOM elements finders to
avoid false fails.
2013-02-08 17:11:27 +08:00
Davo Smith fbe4579250 MDL-34137 mod_label - resize images when uploaded via drag & drop 2013-02-08 08:13:24 +00:00
Davo Smith 785e09a7e3 MDL-32456 mod_label - support course drag and drop upload images to create labels 2013-02-08 08:13:24 +00:00
Damyon Wiese 93d1de6d3f MDL-37039 Assignment - Do not apply filters to grading table for offline assignments
Because the filters do not make sense for offline assignments, they are hidden. But if the active filter
prevents you from seeing any assignments you cannot change it. This change makes it so the filters are
also not applied when the assignment is an offline assignment.
2013-02-08 15:44:18 +08:00
Damyon Wiese 7a15c5c458 MDL-37074 Assign theming: Use addClass/removeClass instead of setAttribute to preserve existing classes 2013-02-08 15:16:47 +08:00
Damyon Wiese 6319737865 weekly release 2.5dev 2013-02-08 11:13:54 +08:00
Damyon Wiese 7bdf7d165d ie9 svg compatibility fixes 2013-02-08 11:05:09 +08:00
Damyon Wiese eb28bb604f Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-02-08 11:02:42 +08:00
Andrew Davis 60daf98c96 MDL-34800 core_grade:switched from hiding the submit button to disabling it if ajax is enabled 2013-02-08 10:15:17 +08:00
AMOS bot 8a3ef166a9 Automatically generated installer lang files 2013-02-08 00:45:14 +00:00
David Mudrák 8d37c9b2d9 MDL-37919 Let PHPUnit display the content of $a even if the error string is not found 2013-02-08 01:25:31 +01:00
Eloy Lafuente (stronk7) 43b83ea19e MDL-37893 Always notify pending starts before dispatching chunk 2013-02-07 20:59:43 +01:00
Sam Hemelryk bb4c391688 MDL-37645 cache: fixed issue deleting mongo instance 2013-02-08 08:06:21 +13:00
Ruslan Kabalin ac5e6ca4d1 MDL-30637 Refactor Advanced fileds functionality
The displaying of advanced items has been refactored. The changes are:

* The Advanced button is replaced by the Show Less/More link
* The Show less/more link controls advanced elements only within the section
  it is located at
* The Show less/more state of sections is preserved between form submissions
* When javascript is off, all advanced elements will be displayed by default,
  no show/hide controls will exists on the page
2013-02-07 14:38:37 +00:00
Ruslan Kabalin a4f1834dca MDL-30637 backup: Disable shortforms for backup interface
As all sections requre user attention or input, there is no sense making them
collapsed in backing up interface.
2013-02-07 14:27:02 +00:00
Ruslan Kabalin a00bafaa65 MDL-30637 mod_resource: Make content section expanded
This just makes the interface look better
2013-02-07 14:26:14 +00:00
Ruslan Kabalin 8763343ad9 MDL-30637 mod_folder: Make content section expanded
This just makes the interface better
2013-02-07 14:23:26 +00:00
Ruslan Kabalin 9d2a7df11b MDL-30638 mod_choice: Add required elements to repeated form items
To make it work properly with MDL-30637
2013-02-07 14:19:03 +00:00
Ruslan Kabalin a4067bfc48 MDL-30637 Simplify moodle forms
Make the forms easier to use and navigate by adding functionality to
collapse and extend form sections (headers). The logic is as follows:

If form contains 2 and less sections (headers):

* Display the form as non-collapsible at all.
* The point above can be overridden if developer marks the section as expanded
  in form definition (e.g. $mform->setExpanded('foo'));

If form contains 3 and more sections (headers):

* always expanding the first section and closing all others by default;
* always expanding a section containing at least one "required" element;
* expanding any section which contains validation errors after submission;
* expanding any section which was previously open on previous submit (e.g. when
  adding new choices);
* expanding the section which is marked as expanded in form definition (e.g.
  $mform->setExpanded('foo');
2013-02-07 14:13:36 +00:00
David Mudrák 2c06c715c7 MDL-37893 Allow elements with no final tags to form a grouped path 2013-02-07 13:00:19 +01:00
David Mudrák 98bba46b70 MDL-37893 Add unit test to demonstrate the issue 2013-02-07 13:00:18 +01:00
Frederic Massart a665e1b013 MDL-37686 xmldb: Fixed coding guidelines errors in generated code 2013-02-07 15:18:10 +08:00
Dan Poltawski 0388a38eda MDL-35037 tags: dont display blog entries when blogging disabled 2013-02-07 12:34:07 +08:00
Damyon Wiese 6b219310cf MDL-37122 core get_max_upload_sizes: Include "Course/Site/Activity limit (X)" in list of options
This change removes the "0 bytes" option from the get_max_upload_sizes list
and replaces it with "Course limit (X)" or "Site limit (X)" (whichever is smaller).
This means we can remove all custom handling in the modules that were removing and
adding these options. It only affects pages that pass valid options for sitelimit and
courselimit - so admin pages will work correctly.

It also orders the list so the course/site limit options will be first
(as it will be the largest).

AMOS START
 REM [courseuploadlimit, core] has been parameterized to get [uploadlimitwithsize, core]
AMOS END
2013-02-07 10:50:52 +08:00
Marina Glancy 8fd56c1942 MDL-37572 correct active navigation node for add/edit category page 2013-02-07 15:22:29 +13:00
Marina Glancy 9d093b71af MDL-37572 small bug fix with misplaced assignment 2013-02-07 15:22:29 +13:00
Eloy Lafuente (stronk7) d220e90fbf Merge branch 'MDL-37566-m-integration' of git://github.com/andrewnicols/moodle 2013-02-07 01:07:04 +01:00
Sam Hemelryk e6a3f4ae27 MDL-37572 course: fixed bug when moving categories 2013-02-07 12:29:03 +13:00
Andrew Robert Nicols c5f609428d MDL-37566 AJAX Fix issues with minimum height and centring 2013-02-06 10:51:40 +00:00
Mark Nelson 79949c1ba3 MDL-30098 core_course: adding webservice functions to allow the deletion of module instances 2013-02-06 16:56:17 +08:00
Damyon Wiese 070d431771 MDL-37883 Assign offline marking: Properly handle french decimal grades when importing worksheet. 2013-02-06 15:43:19 +08:00
Dan Poltawski ef5a82104c MDL-37572 - fix typo in has_any_capability() 2013-02-06 14:47:29 +08:00
Dan Poltawski 8c8d314ffd Merge branch 'wip-MDL-35823-master' of git://github.com/phalacee/moodle 2013-02-06 14:21:03 +08:00
Jason Fowler 083c15e640 MDL-35823 - Accessibility - Readding Focus to header in the help popup 2013-02-06 14:17:29 +08:00
Dan Poltawski 69b2f366b1 Merge branch 'wip-MDL-35823-master' of git://github.com/phalacee/moodle 2013-02-06 13:42:47 +08:00
Jason Fowler fc7defef99 MDL-35823 - Accessibility - Follow up changes from the original commit: addint in theme fixes and updating upgrade.txt 2013-02-06 13:36:37 +08:00
Dan Poltawski 6b106e2e8e Merge branch 'wip-mdl-30144' of git://github.com/rajeshtaneja/moodle 2013-02-06 13:21:31 +08:00
Rajesh Taneja 45281abcfa MDL-30144 Assignmnet 2.2: fixed context retrival 2013-02-06 12:36:25 +08:00
Mark Nelson 9a9cb74118 MDL-37654 core_course: ensure exceptions return static error codes for debugging purposes 2013-02-06 12:10:10 +08:00
David Monllao b048f85f8a MDL-37886 behat: Prevent dropping test site when running tests 2013-02-06 11:20:09 +08:00
Dan Poltawski 0110cc2d49 MDL-37645 Add another missing trailing ;
GRR. Clearly didn't review this one well enough!
2013-02-06 10:36:39 +08:00
Dan Poltawski da92e1b081 Merge branch 'MDL-37645-m' of git://github.com/andrewnicols/moodle 2013-02-06 08:54:55 +08:00
Mary Evans a0e3b2b11e MDL-37828 theme_base: Removed old CSS for popuphelp in style/core.css 2013-02-06 00:08:19 +00:00
Andrew Robert Nicols 2c653f9919 MDL-37645 Add missing trailing ; on some CSS rules 2013-02-05 16:56:47 +00:00
Eloy Lafuente (stronk7) 5ab0371d74 Merge branch 'MDL-37854_master' of https://github.com/markn86/moodle 2013-02-05 11:10:48 +01:00
Mark Nelson 17222a4a25 MDL-37854 phpunit: replaced occurrence of non-existent function assertFail 2013-02-05 18:03:25 +08:00
Eloy Lafuente (stronk7) 6617125ca4 Merge branch 'MDL-37870-progressive_parser_exception' of git://github.com/mudrd8mz/moodle 2013-02-05 10:19:06 +01:00
Andrew Robert Nicols 487989d8ef MDL-37872 AJAX Remove node option from jshintrc 2013-02-05 08:37:41 +00:00
Jerome Mouneyrac b4d24344c2 MDL-37012 some typos, add a new lang string, change tag 'a' for 'link', some code cleaning,
clean the external string against cross-scripting, proper usage of doclink,
correcting the require_once quickform/input

AMOS BEGIN
    CPY [download,block_community],[install,block_community]
AMOS END
2013-02-05 16:36:37 +08:00
Howard Miller 540b8834fa MDL-37797 HTML block: add contextid to block_positions query and make it more unique. 2013-02-05 16:20:34 +08:00
Damyon Wiese e2adaaf788 MDL-30062 - Fix whitespace 2013-02-05 16:07:08 +08:00
Damyon Wiese 33d943500f Merge branch 'wip-mdl-30062' of git://github.com/rajeshtaneja/moodle 2013-02-05 15:53:21 +08:00
Dan Poltawski 9cf44c32b5 Merge branch 'wip-MDL-37572-m25' of git://github.com/samhemelryk/moodle 2013-02-05 15:25:08 +08:00
Dan Poltawski 751f00a0bb Revert "MDL-37164 core_message: prevent users from interacting with themself"
Was breaking unit tests.

This reverts commit 61a73b43c1 and 7bb19ee167.
2013-02-05 14:42:20 +08:00
Dan Poltawski 61a73b43c1 MDL-37164 message - fix broken unit tests
We have fixed the returning of the guest user now
2013-02-05 14:27:20 +08:00
Rajesh Taneja 791723c34a MDL-30062 Webservices: added update_course webservice 2013-02-05 14:15:53 +08:00
Damyon Wiese 4c5dc0e367 MDL-36206 Unit tests - Cleanup whitespace issues from previous patch 2013-02-05 14:11:11 +08:00
Damyon Wiese 9d6f6a6987 Merge branch 'wip-MDL-36206-master' of git://github.com/phalacee/moodle 2013-02-05 14:11:07 +08:00
Dan Poltawski 6e59d6628c Merge branch 'MDL-37164_message_self' of git://github.com/andyjdavis/moodle 2013-02-05 13:51:17 +08:00
Dan Poltawski 9631a80283 Merge branch 'MDL-37800_master' of git://github.com/grabs/moodle 2013-02-05 12:43:06 +08:00
Damyon Wiese 174d857235 Merge branch 'MDL-37626-m' of git://github.com/andrewnicols/moodle 2013-02-05 11:49:16 +08:00
David Mudrák 5aeff5ebc0 MDL-37870 Fix the number of parameters when calling the parent constructor 2013-02-05 04:47:41 +01:00
Damyon Wiese 183e656eea Merge branch 'MDL-30102_master' of git://github.com/markn86/moodle 2013-02-05 11:23:01 +08:00
Dan Poltawski ba076613d3 Merge branch 'MDL-36986' of git://github.com/moodlerooms/moodle 2013-02-05 10:47:15 +08:00
Dan Poltawski d8d02951bb Merge branch 'wip-MDL-36322-m25' of https://github.com/samhemelryk/moodle 2013-02-05 10:25:57 +08:00
Dan Poltawski f7e2143665 MDL-37357 - fix trailing whitespace 2013-02-05 09:57:00 +08:00
Dan Poltawski 837946d5f0 Merge branch 'MDL-37357_hidden_rank' of git://github.com/andyjdavis/moodle 2013-02-05 09:56:16 +08:00
Dan Poltawski a849391244 Merge branch 'wip-MDL-35847-master' of git://github.com/phalacee/moodle 2013-02-05 09:29:25 +08:00
Jason Fowler 1466eccba7 MDL-35847 - Documentation - removing doc block param for on error_text 2013-02-05 09:23:54 +08:00
Jason Fowler b9271ffd94 MDL-35832 - Accessibility - Adding more precise context sensitive title text to undock controls on docked blocks 2013-02-05 09:21:15 +08:00
Dan Poltawski 43b5915e04 MDL-37574 - Fix navigation tests: remove title
We are no longer setting it, to improve accessibility
2013-02-05 08:38:32 +08:00
Eloy Lafuente (stronk7) b97d3e46df Merge branch 'MDL-36472-master' of git://github.com/FMCorz/moodle 2013-02-05 01:28:35 +01:00
Eloy Lafuente (stronk7) b7c238798c Merge branch 'MDL-37566-m' of git://github.com/andrewnicols/moodle 2013-02-05 01:14:07 +01:00
Eloy Lafuente (stronk7) 1df33d5427 Merge branch 'w04_MDL-37780_m25_wintests' of git://github.com/skodak/moodle 2013-02-05 01:06:40 +01:00
Eloy Lafuente (stronk7) 70e963ea9c Merge branch 'MDL-37801_glossary_links' of git://github.com/davosmith/moodle 2013-02-05 01:01:14 +01:00
Eloy Lafuente (stronk7) fc395e02f7 Merge branch 'MDL-37775_master' of git://github.com/lazydaisy/moodle 2013-02-05 00:57:20 +01:00
Eloy Lafuente (stronk7) a0c3faeaef Merge branch 'MDL-37785_master' of git://github.com/lazydaisy/moodle 2013-02-05 00:35:24 +01:00
Eloy Lafuente (stronk7) f941a7864b Merge branch 'MDL-37523_master' of git://github.com/lazydaisy/moodle 2013-02-05 00:28:10 +01:00
Eloy Lafuente (stronk7) 208f59137a Merge branch 'MDL-37518_master' of https://github.com/markn86/moodle 2013-02-05 00:13:48 +01:00
Eloy Lafuente (stronk7) 1615caae6f Merge branch 'wip-MDL-35847-master' of git://github.com/phalacee/moodle 2013-02-05 00:08:44 +01:00
Eloy Lafuente (stronk7) 8d8f9cf756 Merge branch 'master_MDL-33078' of git://github.com/danmarsden/moodle 2013-02-04 23:58:41 +01:00
Eloy Lafuente (stronk7) a35a7644b9 Merge branch 'MDL-37847' of git://github.com/timhunt/moodle 2013-02-04 22:54:50 +01:00
Tim Hunt c0d12fc1cd MDL-37847 plain text essays were screwing up HTML special chars.
This was incorrect use of PARAM_CLEANHTML for these inputs.

This fix also adds some unit tests to try to verify that this does not
break again in future.
2013-02-04 12:54:10 +00:00
Mark Nelson a9a0cb691c MDL-30102 mod_forum: adding webservice function to allow for the retrieval of forum discussions 2013-02-04 19:28:29 +08:00
Dan Marsden a022192a3b MDL-33078 SCORM: rebuild toc when calling LMSCommit to improve pre-req handling 2013-02-04 22:04:06 +13:00
Damyon Wiese 935ec5e77e Merge branch 'MDL-37781-workshop-schedule' of git://github.com/mudrd8mz/moodle 2013-02-04 16:18:00 +08:00
Dan Poltawski 78b161d39b Merge branch 'MDL-37574-m' of git://github.com/andrewnicols/moodle 2013-02-04 16:11:11 +08:00
Dan Poltawski 58e22287a6 Merge branch 'MDL-37422' of git://github.com/colchambers/moodle 2013-02-04 16:02:57 +08:00
Dan Poltawski 6ac9f15969 Merge branch 'master_MDL-29207' of git://github.com/danmarsden/moodle 2013-02-04 15:54:43 +08:00
Dan Poltawski efd779c2c6 Revert "MDL-32076 core_grade: fixed ajax handling of unlimited grades and added some unit tests"
This reverts commit 88df34abed.
2013-02-04 15:12:30 +08:00
Dan Poltawski 5389bd999d Merge branch 'MDL-32076_unlimited2' of git://github.com/andyjdavis/moodle 2013-02-04 14:30:07 +08:00
Dan Poltawski cf936fa297 Merge branch 'wip-mdl-30144' of git://github.com/rajeshtaneja/moodle 2013-02-04 13:54:27 +08:00
Dan Poltawski 4ac341c9b6 Merge branch 'MDL-37646-master' of git://github.com/damyon/moodle 2013-02-04 13:49:23 +08:00
Jason Fowler 3246648b48 MDL-35847 - Accessibility - Adding warning icon to the login error message 2013-02-04 12:49:21 +08:00
Barbara Ramiro ef27582f08 MDL-35847 - Usability - Adding new warning icons 2013-02-04 12:49:02 +08:00
Damyon Wiese c15cda6138 Merge branch 'MDL-37806-workshop-next' of git://github.com/mudrd8mz/moodle 2013-02-04 12:48:42 +08:00
Dan Poltawski d5a13bca09 Merge branch 'MDL-37710-master' of git://github.com/damyon/moodle 2013-02-04 12:12:11 +08:00
Dan Poltawski b9299c61ca Merge branch 'MDL-37635-master' of git://github.com/damyon/moodle 2013-02-04 11:56:45 +08:00
Mark Nelson df7d171fc3 MDL-37518 blocks: described the introduction of the myaddinstance capability in upgrade.txt 2013-02-04 11:43:01 +08:00
Damyon Wiese c04dac3473 Merge branch 'master_MDL-36800' of git://github.com/danmarsden/moodle 2013-02-04 11:35:54 +08:00
Dan Poltawski 40a008b33c Merge branch 'MDL-32652_master' of git://github.com/pauln/moodle 2013-02-04 11:29:22 +08:00
Dan Poltawski 7528ebd23a MDL-35823 - fix trailing whitespace 2013-02-04 11:23:44 +08:00
Dan Poltawski 3428c00d43 Merge branch 'wip-MDL-35823-master' of git://github.com/phalacee/moodle 2013-02-04 11:23:41 +08:00
Jerome Mouneyrac e62cf63035 MDL-37012 fix wrong css + add final . to comment lines + do not use attributid parameter (duplicate of hiddeninputid) 2013-02-04 11:17:02 +08:00
Jerome Mouneyrac 46b229f9a8 MDL-37012-master redesign the community finder search form 2013-02-04 11:17:02 +08:00
Damyon Wiese ef23b6ff4f Merge branch 'MDL-37177-master' of git://github.com/FMCorz/moodle 2013-02-04 11:12:45 +08:00
Dan Poltawski 7c433fa526 Merge branch 'MDL-37645-m' of git://github.com/andrewnicols/moodle 2013-02-04 10:26:32 +08:00
Dan Poltawski e9c0ef3bca Merge branch 'MDL-37746' of git://github.com/timhunt/moodle 2013-02-04 10:17:36 +08:00
Dan Poltawski 85ef4d45ca Merge branch 'MDL-25853-master' of git://github.com/FMCorz/moodle 2013-02-04 10:12:54 +08:00
Mary Evans 1d4bfa094a MDL-37523 theme_mymobile: Removed a renderer from mymobile/renderers.php and added it to theme/mymobile/renderers/mod_choice_renderer.php. Then added a conditional statement to theme/mymobile/renderers.php in order to call mymobile/renderers/mod_choice_renderer.php. 2013-02-03 23:35:05 +00:00
Dan Marsden 361069cbbb MDL-29207: SCORM prereq callback is pure js - move it to module.js so it can be cached better. 2013-02-03 20:27:52 +13:00
Dan Marsden 5f03868a53 MDL-29207 SCORM: Auto-continue doesn't work with Pre-req due to JS errors 2013-02-03 20:27:39 +13:00
Dan Marsden 6496979459 MDL-36800 SCORM: Fix Yui().use calls - thanks to Nancy Cheng for the fix 2013-02-03 20:21:16 +13:00
Andrew Robert Nicols 22bec023db MDL-37626 Include jshint configuration 2013-02-01 15:00:13 +00:00
Colin Chambers 6dbc346095 MDL-37422 Quiz: Group fields related to 'Settings for multiple tries.' 2013-02-01 14:30:27 +00:00
Andrew Robert Nicols 2f545feb89 MDL-37574 Remove default link title from navigation items 2013-02-01 11:30:02 +00:00
Andrew Robert Nicols c1b75ece94 MDL-37566 AJAX Only set max-height for chooser dialogues
If we set height as well as max-height then there is a potential for
whitespace to be shown at the bottom of the list of choices.

This commit stops removing the height option so that we only rely upon
max-height for dialogue heigh calculation.
2013-02-01 11:21:47 +00:00
Andreas Grabs 25d37fe24c MDL-37800 mod_feedback - item "information" does not appear correctly 2013-02-01 11:44:52 +01:00
Andrew Robert Nicols 2324cf045e MDL-37645 Generalise style for moodle-core-dialogues 2013-02-01 10:20:16 +00:00
Michael Hughes 127d66f183 MDL-30144 Assignment 2.2: Download all as zip should only contain submission from active enroled users 2013-02-01 17:08:22 +08:00
Damyon Wiese 46692c3a81 MDL-37635 Assign: Prevent errors when viewing a feedback for an assignment with no gradeitem in gradebook
Also adds unit tests to verify that:
Feedback is visible even if there is no grade
The grade is not shown if the gradeitem is hidden unless you have mod/assign:grade capability
2013-02-01 13:46:08 +08:00
Jason Fowler 4df8223cbe MDL-35823 - Accessibility - Converted the help popup header from H1 to H2 to improve the over all DOM 2013-02-01 11:01:00 +08:00
Andrew Davis 9db8d0301c MDL-37357 core_grade: fixed the showing and hiding of rank on the overview report 2013-02-01 10:46:48 +08:00
Andrew Davis 88df34abed MDL-32076 core_grade: fixed ajax handling of unlimited grades and added some unit tests 2013-02-01 08:31:00 +08:00
Andrew Davis 7bb19ee167 MDL-37164 core_message: prevent users from interacting with themself 2013-02-01 08:12:28 +08:00
Sam Hemelryk 4d26b7f6fa MDL-37572 course: cleaned up manage.php bringing it into the 21st century 2013-02-01 08:51:35 +13:00
Marina Glancy 2c49fb4c3e MDL-37572 Course categories are now managed in /course/manage.php
Switching between categories view and edit no longer depend on global editing mode
/course/index.php and /course/category.php do not contain editing code
2013-02-01 08:51:34 +13:00
Sam Hemelryk 79c55ca344 MDL-36322 cache: implemented cache_store::create_clone 2013-02-01 08:49:03 +13:00
Sam Hemelryk 5dfa3031a8 MDL-36322 cache: clarified docs for initialise and construct 2013-02-01 08:49:03 +13:00
Sam Hemelryk 65b3edc450 MDL-36322 cache: cache stores now test connections during construction 2013-02-01 08:49:03 +13:00
Matteo Scaramuccia f4cec2ec87 MDL-36322 Errors when updating a Moodle instance with some misconfigured cache stores 2013-02-01 08:49:03 +13:00
David Mudrák 1df3bc143c MDL-37806 Display 'Save and show next' button when assessing workshop submissions
The button is displayed only when there is a pending (that is not
assessed yet) submission to assess.

AMOS BEGIN
 CPY [savenext,mod_assign],[saveandshownext,mod_workshop]
AMOS END
2013-01-31 18:21:51 +01:00
David Mudrák 0001eea6dd MDL-37806 Add new workshop class method to return pending assessments
This is a simple wrapper around workshop::get_assessments_by_reviewer()
that filters assigned assessments and returns just those that were not
graded by the reviewer yet.
2013-01-31 18:21:50 +01:00
Davo Smith 56c0465bd4 MDL-37801 mod_glossary - encode / decode links to 'showentry' pages during backup & restore 2013-01-31 12:52:26 +00:00
Tim Hunt a74d924c25 MDL-37746 qtype_shortanser: avoid normalizer_normalize dangers.
When an error occurs, normalizer_normalize just silently returns null,
which is dangerous. Here, we wrap it in a safe helper function.
2013-01-31 11:35:07 +00:00
David Mudrák 8342a6981b MDL-37781 Allocate workshop submissions without waiting for cron
Now we are checking for the need to execute the allocator every time the
main view.php is displayed to any user. Previously this was done by cron
only.
2013-01-31 11:42:03 +01:00
David Mudrák 85f1c2d68b MDL-37781 Check for switching the workshop phase without waiting for cron
Now we are checking for the need to switch the phase when the main
view.php is displayed to any user (previously this was done via cron
only). To give our subplugins (such as the scheduled allocation method)
a chance to do what they need to do, the workshop_viewed event is
triggered before the phase is actually switched.
2013-01-31 11:41:55 +01:00
Eloy Lafuente (stronk7) 1918a2452e weekly release 2.5dev 2013-01-31 10:59:41 +01:00
Mary Evans 772cd5c8fa MDL-37775 theme_canvas: Changed ADD a block from center align to left in style/blocks.css 2013-01-31 08:17:45 +00:00
Dan Poltawski 3895cdc2b7 Merge branch 'MDL-37789_master' of git://github.com/dmonllao/moodle 2013-01-31 15:34:46 +08:00
David Monllao 6b1a8fc5dd MDL-37789 behat: Fixing unit test in windows
The directory separator was specified with
the slash character which is not good when
running the tests on windows
2013-01-31 15:26:08 +08:00
Frederic Massart 39bb9b1f00 MDL-36472 files: Improved file area uploads error messages. 2013-01-31 15:09:44 +08:00
Dan Poltawski 12f756f9d7 Revert "MDL-37613 mod: changed generalbox class in table to generaltable class in mod/feedback (2 files);mod/glossary (3 files);mod/wiki (1 file)."
This reverts commit 0434dd2482.
2013-01-31 15:02:12 +08:00
Frederic Massart d422fb22f7 MDL-37177 navigation: Prevent exception when viewing a profile
When viewing a profile as a non-authenticated user, an exception
was raised because we were trying to fetch the context of this user.
2013-01-31 12:24:37 +08:00
Dan Poltawski 8d81f4f4cc Revert "MDL-33105 flexible apply_units() function"
This reverts commit c2ba17858c.
2013-01-31 10:17:16 +08:00
Dan Poltawski 2c8d31cd72 Merge branch 'master_MDL-34231' of git://github.com/danmarsden/moodle 2013-01-31 10:14:46 +08:00
Mary Evans 7eaa14572b MDL-37785 theme_base: remove duplicate .dir-rtl file-picker css rules from styke/core.css 2013-01-31 01:02:55 +00:00
Sam Hemelryk 956d3544f0 MDL-36363 cache: added unit tests for muliple loaders 2013-01-31 12:16:08 +13:00
Dan Marsden 220e5b5216 MDL-34231 SCORM: calculate correct number of attemptsleft when entering an attempt. 2013-01-31 10:45:11 +13:00
Petr Škoda 73d20f36cb MDL-37780 hack around some unicode date formatting issues on Windows 2013-01-30 22:36:40 +01:00
Petr Škoda 774d1d2429 MDL-37780 make sure there are no windows line endings in test files 2013-01-30 21:23:29 +01:00
Sam Hemelryk 3aee2fb8ee MDL-36363 cache: fixed issue with double parsing keys for stacked loaders 2013-01-31 09:10:57 +13:00
Petr Škoda a629ad3dff MDL-37780 fix 1.9 restore on windows 2013-01-30 20:28:06 +01:00
Eloy Lafuente (stronk7) f97db01978 Merge branch 'wip-MDL-37644-m25' of git://github.com/samhemelryk/moodle 2013-01-30 10:27:11 +01:00
Jason Fowler 0dbae598d7 MDL-36206 - Unit Test - Create unit test for pagination bar 2013-01-30 09:52:34 +08:00
Dan Poltawski 7543705d9b Merge branch 'w04_MDL-37726_m25_prevnext_int' of git://github.com/skodak/moodle 2013-01-30 09:18:57 +08:00
Frederic Massart 769c73ae6c MDL-25853 calendar: Fixed broken previous/next links 2013-01-30 08:59:11 +08:00
Eloy Lafuente (stronk7) fb44a5db6f Merge branch 'w04_MDL-37734_m25_marshack' of git://github.com/skodak/moodle 2013-01-30 01:11:20 +01:00
Eloy Lafuente (stronk7) 6ca12c1cc1 Merge branch 'w04_MDL-37767_m25_pgsocket' of git://github.com/skodak/moodle 2013-01-30 00:51:01 +01:00
Petr Škoda 47bf916773 MDL-37767 allow empty host in enrol_database which is required for default pg socket 2013-01-30 00:40:03 +01:00
Eloy Lafuente (stronk7) 03612a7b00 MDL-32420 anomaly theme: bump version 2013-01-30 00:28:35 +01:00
Eloy Lafuente (stronk7) e2b2794368 Merge branch 'wip-MDL-32420_master' of git://github.com/lazydaisy/moodle 2013-01-29 23:38:43 +01:00
Eloy Lafuente (stronk7) 857b40256e Merge branch 'MDL-37526-m' of git://github.com/andrewnicols/moodle 2013-01-29 23:33:22 +01:00
Petr Škoda 7a18f49c60 MDL-37726 remove PREVIOUS/NEXT from all install.xml files
YAY!
2013-01-29 22:34:46 +01:00
Petr Škoda 76f2fcdedb MDL-37726 stop using PREVIOUS/NEXT in install.xml files 2013-01-29 22:32:24 +01:00
Sam Hemelryk c6cbc3c70c MDL-37474 cache: fixed bug with definition cleaning 2013-01-30 10:28:34 +13:00
Eloy Lafuente (stronk7) a917ef63ae Merge branch 'MDL-37465' of git://github.com/colchambers/moodle 2013-01-29 19:19:29 +01:00
Eloy Lafuente (stronk7) 96b997d759 Merge branch 'MDL-37533-master' of git://github.com/damyon/moodle 2013-01-29 15:35:05 +01:00
Eloy Lafuente (stronk7) 38e4fa58d5 MDL-37101 donot use donot. 2013-01-29 15:24:59 +01:00
Eloy Lafuente (stronk7) 0ed03cc295 Merge branch 'MDL-37101-master' of git://github.com/ankitagarwal/moodle
Conflicts:
	calendar/tests/externallib_tests.php
2013-01-29 15:19:11 +01:00
Eloy Lafuente (stronk7) 6155915ffb Merge branch 'wip-MDL-36363-m25' of https://github.com/samhemelryk/moodle 2013-01-29 12:06:33 +01:00
David Monllao fe856690cb MDL-37662 behat: Add blocks definition 2013-01-29 18:21:08 +08:00
David Monllao d780452472 MDL-37661 behat: Test to add activities to courses 2013-01-29 18:19:04 +08:00
David Monllao a1990e50e8 MDL-37661 behat: Add activities to courses 2013-01-29 18:18:57 +08:00
David Monllao bedc20aa96 MDL-37659 behat: Adding tests for the data generators 2013-01-29 17:25:43 +08:00
David Monllao f0200d1462 MDL-37659 behat: Adding data generator definition 2013-01-29 17:25:25 +08:00
David Monllao 87bb583cbc MDL-37659 testing: New data generators
- Grouping groups
- Group members
2013-01-29 17:25:02 +08:00
Damyon Wiese 3e1b63f1c8 MDL-37710 Assign: Fix pluginfile permission checks for student viewing their own team submission.
This change adds a function to the assign class to allow the permissions for a group submission
to be checked and updates all the submission plugins to call it.
2013-01-29 17:14:36 +08:00
Petr Škoda dd8a39a881 MDL-37734 add one more recordset isolation test 2013-01-29 10:10:40 +01:00
Petr Škoda 0363b7826b MDL-37734 use prefetching workaround for MARS transaction problems 2013-01-29 10:10:09 +01:00
Dan Poltawski 2a090a1581 Merge branch 'wip-mdl-34190' of git://github.com/rajeshtaneja/moodle 2013-01-29 16:53:49 +08:00
Dan Poltawski cbb26eb0ec Merge branch 'MDL-37600' of git://github.com/timhunt/moodle 2013-01-29 16:49:58 +08:00
Aparup Banerjee 37c68301f9 Merge branch 'w04_MDL-37499_m25_authldaptest' of git://github.com/skodak/moodle 2013-01-29 16:33:37 +08:00
Dan Poltawski 0fed6554f9 Merge branch 'MDL-33105' of https://github.com/ppichet/moodle 2013-01-29 16:31:50 +08:00
Dan Poltawski cc0ee3c4f3 Merge branch 'MDL-29691' of https://github.com/ppichet/moodle 2013-01-29 16:30:00 +08:00
David Monllao c7369f79a3 MDL-37657 behat: Adding acceptance tests to the acceptance test tool 2013-01-29 15:31:26 +08:00
David Monllao 23ebc481e7 MDL-37657 behat: Adding definitions related with forms 2013-01-29 15:31:26 +08:00
David Monllao b1bc8cfc65 MDL-37657 behat: Add tree nodes expansion definition 2013-01-29 15:31:25 +08:00
David Monllao 0a56fc6976 MDL-37657 behat: Simple log in/out steps with test 2013-01-29 15:31:25 +08:00
David Monllao 786ea937cc MDL-37657 behat: General steps definitions 2013-01-29 15:31:25 +08:00
Dan Poltawski 4653ecd3b3 Merge branch 'MDL-37046_master' of git://github.com/dmonllao/moodle 2013-01-29 15:07:48 +08:00
David Monllao 33063f2eb5 MDL-37046 behat: Quick fix
Provides feedback when trying to use the web interface
to list steps definitions when $CFG->behat_dataroot hasn't
been set or can not be written
2013-01-29 14:46:41 +08:00
Damyon Wiese 6792b8f5d3 MDL-37646 Assign: Quickgrading fix when using grading filters or lots of students. 2013-01-29 14:36:18 +08:00
Dan Poltawski 10b8d16deb Merge branch 'MDL-37656_master' of git://github.com/dmonllao/moodle 2013-01-29 13:46:26 +08:00
Dan Poltawski e0f755035b Merge branch 'MDL-37046_master' of git://github.com/dmonllao/moodle 2013-01-29 13:25:13 +08:00
David Monllao f5ceb6c233 MDL-37656 behat: Adding hooks
At suite, scenario and step levels
2013-01-29 12:57:03 +08:00
David Monllao d4322e3859 MDL-37656 behat: Base empty class 2013-01-29 12:57:03 +08:00
David Monllao ec017a3460 MDL-37046 behat: Skip unit test if behat is not installed 2013-01-29 12:54:48 +08:00
Dan Poltawski 68aaba6c84 Merge branch 'MDL-37046_master' of git://github.com/dmonllao/moodle 2013-01-29 12:03:10 +08:00
David Monllao 475ac3f8ee MDL-37046 behat: Changes from integration review
* RTL languages problem solved
* Fixed curl errno return
* Switch to behat test environment code more readable
2013-01-29 11:56:42 +08:00
Dan Poltawski 5d80fc80c0 Merge branch 'MDL-37694' of git://github.com/timhunt/moodle 2013-01-29 11:54:36 +08:00
Dan Poltawski 5774879060 Merge branch 'wip-MDL-37615-m25' of git://github.com/samhemelryk/moodle 2013-01-29 11:47:17 +08:00
Dan Poltawski c2f1837e5d Merge branch 'wip-MDL-25630_master' of git://github.com/lazydaisy/moodle 2013-01-29 11:23:12 +08:00
Sam Hemelryk da810f5816 Merge branch 'MDL-37476-master' of git://github.com/mouneyrac/moodle 2013-01-29 15:24:06 +13:00
Paul Nicholls 606554d5b0 MDL-32652 - Make block drag-drop work throughout Moodle
The central "content" region on My Home / user profile pages also needs to
be initialised in lib/ajax/blocks.php in order to allow blocks to be
dropped into that region successfully.  Some tweaks were also necessary in
order to correct the "content" region's structure in order for drag-drop
to function on this region on these pages.

Non-standard block regions (including the central "content" region
used by My Home and user profile pages) were causing the temporary empty
block region used as a drop target to sometimes appear in the wrong place.

The call to init_requirements_data (which includes the block drag-drop JS)
happens at a late enough stage in page generation that we can simply
pass the context ID through to the JS, so that it can be sent as part of
the AJAX request.  This prevents lib/ajax/blocks.php from having to try
to guess the context from the other bits of information it receives, so
block drag-drop should now work everywhere without issues.
2013-01-29 14:57:28 +13:00
Sam Hemelryk ab58c6b724 Merge branch 'w04_MDL-37716_m25_enrolexpiry' of git://github.com/skodak/moodle 2013-01-29 14:56:57 +13:00
David Monllao 096858ed83 MDL-37046 behat: Use behat test env
Moving from phpunit test environment
to a specific behat test environment
2013-01-29 08:40:38 +08:00
David Monllao b5c130092b MDL-37046 behat: Split in different classes 2013-01-29 08:40:38 +08:00
David Monllao 9516712114 MDL-37046 behat: Coding standards compliant 2013-01-29 08:40:38 +08:00
David Monllao ff2ec29bb1 MDL-37046 behat: Added to standard plugins list 2013-01-29 08:40:38 +08:00
David Monllao 0922ef8789 MDL-37046 behat: Windows compatibility 2013-01-29 08:40:38 +08:00
David Monllao 1c36cb2a9c MDL-37046 behat: Only composer.json 2013-01-29 08:40:37 +08:00
David Monllao 5347dae079 MDL-37046 behat: Adding empty Behat config file
This empty behat config file allows behat CLI
command to run before test environment has been set
2013-01-29 08:40:37 +08:00
David Monllao bd770617a9 MDL-37046 behat: New setting to switch completely to test env. 2013-01-29 08:40:37 +08:00
David Monllao f2f66ea4af MDL-37046 behat: Some unit tests 2013-01-29 08:40:37 +08:00
David Monllao d6abac76ca MDL-37046 behat: Allow default config overrides 2013-01-29 08:40:37 +08:00
David Monllao 0b5f481bf5 MDL-37046 behat: Externalizations
Instead of starting the PHP web server and calling
behat as a passthru we maintain them as standalone
2013-01-29 08:40:37 +08:00
David Monllao 6d9427bba6 MDL-37046 behat: Removing MinkContext 2013-01-29 08:40:37 +08:00
David Monllao de424b462f MDL-37046 behat: Removing step
The issue scope is only the integration in moodle
2013-01-29 08:40:37 +08:00
David Monllao a2a9843819 MDL-37046 behat: Checking PHP version 2013-01-29 08:40:37 +08:00
David Monllao a09534f4fc MDL-37046 behat: Requires Moodle 2.5
Also more code comments and general cleanup
2013-01-29 08:40:37 +08:00
David Monllao fbb5243491 MDL-37046 behat: Refining composer dependencies installation 2013-01-29 08:40:37 +08:00
David Monllao 1be4c32138 MDL-37046 behat: Specific composer dependencies versions 2013-01-29 08:40:37 +08:00
David Monllao f4ebf1f889 MDL-37046 behat: Command with x permission 2013-01-29 08:40:37 +08:00
David Monllao cb18fd7100 MDL-37046 behat: Using moodle composer 2013-01-29 08:40:37 +08:00
David Monllao d46340eb16 MDL-37046 behat: Adding steps definitions list filters 2013-01-29 08:40:36 +08:00
David Monllao 25833ef86e MDL-37046 behat: CLI option to add/remove javascript tests 2013-01-29 08:40:36 +08:00
David Monllao cca2c80630 MDL-37046 behat: Restricting the execution to the built-in server 2013-01-29 08:40:36 +08:00
David Monllao 84d687befc MDL-37046 behat: Removing temporarly the rest context of Behatch until upstream fixes the problem 2013-01-29 08:40:36 +08:00
David Monllao df8dcf3ed6 MDL-37046 behat: Using single config file on moodle side 2013-01-29 08:40:36 +08:00
David Monllao 603c95dc10 MDL-37046 behat: User interface 2013-01-29 08:40:36 +08:00
David Monllao 93245e952f MDL-37046 behat: Steps definitions loading 2013-01-29 08:40:36 +08:00
David Monllao 554820dd52 MDL-37046 behat: Moving installation instructions to MDocs 2013-01-29 08:40:36 +08:00
David Monllao 8cdc0ce8a4 MDL-37046 behat: Integrating build config file into runtests action 2013-01-29 08:40:36 +08:00
David Monllao 6d994c510f MDL-37046 behat: Adding CLI options 2013-01-29 08:40:36 +08:00
David Monllao 33005f689c MDL-37046 behat: Adding build config file action 2013-01-29 08:40:36 +08:00
David Monllao e87d603dca MDL-37046 behat: Moving feature file to lib/tests/behat 2013-01-29 08:40:36 +08:00
David Monllao ecbd3cbe70 MDL-37046 behat: CLI tool 2013-01-29 08:40:35 +08:00
David Monllao cc5446464e MDL-37046 behat: Adding switch environment feature 2013-01-29 08:40:35 +08:00
David Monllao 7f541ea3ed MDL-37046 behat: Adding web-based tests runner
Uses phpunit test environment to execute the functional testing, adding
steps definitions list and tests runner actions
2013-01-29 08:40:35 +08:00
David Monllao 191b3fb9d7 MDL-37046 behat: Adding a test to check the test environment 2013-01-29 08:40:35 +08:00
David Monllao dca22d7cc1 MDL-37046 behat: Basic web execution wrapper 2013-01-29 08:40:35 +08:00
David Monllao 301cbe3a30 MDL-37046 behat: Behat admin tool skeleton 2013-01-29 08:40:35 +08:00
Eloy Lafuente (stronk7) 09d6bcc232 Merge branch 'w04_MDL-37718_m25_rs' of git://github.com/skodak/moodle 2013-01-29 01:33:08 +01:00
Eloy Lafuente (stronk7) ee4cac2b44 Merge branch 'wip-MDL-37474-m25' of git://github.com/samhemelryk/moodle 2013-01-29 01:32:09 +01:00
Sam Hemelryk 3178ae6f09 Merge branch 'wip-mdl-36619' of git://github.com/rajeshtaneja/moodle 2013-01-29 10:50:14 +13:00
Sam Hemelryk dabe6985e4 Merge branch 'master_MDL-37696' of git://github.com/danmarsden/moodle 2013-01-29 10:19:31 +13:00
Sam Hemelryk 41f3d113f7 Merge branch 'MDL-37697-m' of git://github.com/andrewnicols/moodle 2013-01-29 10:17:01 +13:00
Sam Hemelryk 49c204d1ee Merge branch 'MDL-37350-m' of git://github.com/andrewnicols/moodle 2013-01-29 08:55:05 +13:00
Sam Hemelryk 5126bab95c Merge branch 'MDL-36881-m' of git://github.com/andrewnicols/moodle 2013-01-29 08:52:01 +13:00
Sam Hemelryk bf6a1b9078 Merge branch 'w04_MDL-37596_m25_schedmaint' of git://github.com/skodak/moodle 2013-01-29 08:44:15 +13:00
Sam Hemelryk 8d8e6b1519 Merge branch 'MDL-34671-m' of git://github.com/andrewnicols/moodle 2013-01-29 08:39:35 +13:00
Sam Hemelryk 44aad12347 Merge branch 'MDL-37668-master' of git://github.com/sammarshallou/moodle 2013-01-29 08:33:41 +13:00
Sam Hemelryk cb4adcc4a4 Merge branch 'master_MDL-34231' of git://github.com/danmarsden/moodle 2013-01-29 08:28:31 +13:00
Eloy Lafuente (stronk7) fab951a6ae Merge branch 'wip-MDL-37545-m25' of git://github.com/samhemelryk/moodle 2013-01-28 19:23:17 +01:00
Eloy Lafuente (stronk7) 7356e732b7 MDL-37086 phpunit: use alt reset method.
When code executed in test cases is using/preventing
database transactions, phpunit itself cannot
use transactions for reseting between cases. But we
can tell it about, so some alternative (and slower)
method for reseting will be used.
2013-01-28 18:25:38 +01:00
Petr Škoda 48e114a517 MDL-37596 optionally enable CLI maintenance later 2013-01-28 14:23:21 +01:00
sam marshall 62019ad86e MDL-37668 Accessibility: Help popup should be easy to close using keyboard 2013-01-28 10:56:26 +00:00
Andrew Robert Nicols 8a185b9ebc MDL-34671 Stop browser receiving escape keydown in modal dialogues
In certain modal dialogues, we listen on the Escape key to close a
dialogue. However, this is still passed to the browser. As a result, if the
browser is in full screen mode and that browser respects the escape key as
a means to exit full screen.

As a result, we need to ensure that we listen for the escape key at keydown
rather than keyup, and additionally prevent the default browser behaviour.

This is a workaround to http://yuilibrary.com/projects/yui3/ticket/2532616
and, should that issue be fixed, it should be removed.
2013-01-28 10:35:26 +00:00
Sam Chaffee 56c0878b45 MDL-36881 Handle poorly behaved modname_get_types functions better
The modname_get_types function is not always well implemented by
third-party plugins and some return poor data. This in turn leads to
incorrect module definitions, and can lead to problems in both the
'Add an activity...' dropdowns and the Activity chooser.

This will also prevent display of plugins which legitimately can have
subtypes but where no subtypes were found. Since such plugins cannot be
used in this fashion in any case, this is also beneficial.

Signed-off-by: Andrew Robert Nicols <andrew.nicols@lancaster.ac.uk>
2013-01-28 10:21:22 +00:00
Andrew Robert Nicols 344936ae48 MDL-37350 Detach listeners when hiding the 'Add roles' popup
If the submit event listener is not correctly closed, then the submit event
calls the relevant callback multiple times incorrectly.

When hiding the Add role dialogue, we need to detach any event listeners
which are applied to it.
2013-01-28 09:57:08 +00:00
Dan Marsden cce0da745a MDL-34231 SCORM: Lock after final attempt when using skip content structure or direct navigation to player.php 2013-01-28 21:17:43 +13:00
Sam Hemelryk 502e785311 Merge branch 'w04_MDL-37638_m25_rolecloning' of git://github.com/skodak/moodle 2013-01-28 18:00:07 +13:00
Sam Hemelryk 44a951b28d Merge branch 'w04_MDL-37666_m25_cssiesend' of git://github.com/skodak/moodle 2013-01-28 17:56:05 +13:00
Sam Hemelryk d0ac573b7f Merge branch 'w04_MDL-37713_m25_testdir' of git://github.com/skodak/moodle 2013-01-28 17:53:54 +13:00
Sam Hemelryk 3619009d0b Merge branch 'MDL-37677-obsolete-cache-debug' of git://github.com/mudrd8mz/moodle 2013-01-28 17:50:48 +13:00
Sam Hemelryk 34e41c81f8 Merge branch 'MDL-37673-muc-groupdata-typo' of git://github.com/mudrd8mz/moodle 2013-01-28 17:49:24 +13:00
Sam Hemelryk 635bc28d98 Merge branch 'MDL-37548-m' of git://github.com/andrewnicols/moodle 2013-01-28 17:46:13 +13:00
Sam Hemelryk be54d2015d Merge branch 'wip-MDL-37614_master' of git://github.com/lazydaisy/moodle 2013-01-28 17:40:08 +13:00
Sam Hemelryk d38df267a0 Merge branch 'wip-MDL-37611_master' of git://github.com/lazydaisy/moodle 2013-01-28 17:40:01 +13:00
Sam Hemelryk 225a85806d Merge branch 'wip-MDL-37613_master' of git://github.com/lazydaisy/moodle 2013-01-28 17:38:36 +13:00
Sam Hemelryk 56a81ad856 Merge branch 'wip-MDL-37612_master' of git://github.com/lazydaisy/moodle 2013-01-28 17:37:07 +13:00
Sam Hemelryk 58f828ca14 Merge branch 'wip-MDL-29723_master' of git://github.com/lazydaisy/moodle 2013-01-28 17:35:04 +13:00
Sam Hemelryk f9a71cb033 Merge branch 'MDL-37172' of git://github.com/jmvedrine/moodle 2013-01-28 17:29:24 +13:00
Sam Hemelryk 682a1c0108 Merge branch 'w04_MDL-37728_m25_roledef' of git://github.com/skodak/moodle 2013-01-28 17:25:51 +13:00
Andrew Davis d8ef2bc03c MDL-13805 core_message: altered some strings so it isnt weird when viewing a different users messages 2013-01-28 16:07:37 +13:00
Andrew Davis 447df209cf MDL-13805 core_message: fixed the admin's ability to read another users messages 2013-01-28 16:07:37 +13:00
David Monllao e8eb2b003a MDL-37634 lesson: readquestion visibility to protected 2013-01-28 13:45:42 +13:00
Sam Hemelryk 81ee22017a Merge branch 'MDL-37628-master' of git://github.com/grabs/moodle 2013-01-28 13:42:07 +13:00
Sam Hemelryk e003d7dc5f Merge branch 'w04_MDL-37640_m25_zipclose' of git://github.com/skodak/moodle 2013-01-28 13:36:28 +13:00
Sam Hemelryk 0449f2e6da Merge branch 'w04_MDL-37407_m25_chineseunzip' of git://github.com/skodak/moodle 2013-01-28 13:32:09 +13:00
Sam Hemelryk 7395c2b8e2 Merge branch 'MDL-37414_master' of https://github.com/markn86/moodle 2013-01-28 13:29:17 +13:00
Sam Hemelryk dff72cde30 Merge branch 'MDL-32750' of git://github.com/colchambers/moodle 2013-01-28 11:57:17 +13:00
Sam Hemelryk 0f54ac5698 Merge branch 'MDL-19069' of git://github.com/rwijaya/moodle 2013-01-28 11:32:53 +13:00
Sam Hemelryk 554b67545b MDL-37615 block_section_links: brought up to current standards. 2013-01-28 11:18:51 +13:00
Sam Hemelryk d20337f180 MDL-37644 navigation: new option to display course full names 2013-01-28 10:42:44 +13:00
Sam Hemelryk 1631d5ffdf MDL-37535 block_section_links: now uses component for settings. 2013-01-28 10:42:29 +13:00
Sam Hemelryk 9890ecfc25 MDL-37545 cache: fixed bug during initialisation and updating of cache config 2013-01-28 10:40:37 +13:00
Sam Hemelryk 5052356574 MDL-37470 cache: definitions can now be purged through config screen 2013-01-28 10:39:47 +13:00
Sam Hemelryk a037c943bd MDL-36363 cache: clean up pre-integration 2013-01-28 10:39:23 +13:00
Matteo Scaramuccia 59ca73ff82 MDL-36363 Override instance_deleted() for all cache stores performing just a cleanup() when this action successfully applies over all the definitions of the cache store 2013-01-28 10:39:23 +13:00
Matteo Scaramuccia 56e65baa1e MDL-36363 Adding/Removing a file store cache instance cleanups the folder too 2013-01-28 10:39:23 +13:00
Matteo Scaramuccia 730cf5acbc MDL-36363 Added cache_store::instance_created() and cache_store::instance_deleted() 2013-01-28 10:39:22 +13:00
Dan Marsden fe56bc615d MDL-37696 SCORM css: don't include style.css multiple times 2013-01-28 10:31:08 +13:00
Mary Evans 009fb7d943 MDL-32420 theme_anomaly: Added custom css settings and tagline. 2013-01-27 20:33:17 +00:00
Petr Škoda ba4b17dc55 MDL-37728 show role risks 2013-01-27 14:55:06 +01:00
Petr Škoda c7e2e4d5d1 MDL-37728 list only relevant capabilities when reviewing role permissions 2013-01-27 14:29:27 +01:00
Petr Škoda 3b00599bb6 MDL-37728 show allow matrix info in role overview 2013-01-27 14:14:32 +01:00
Petr Škoda 9e6bfb5221 MDL-37718 release low level recordsets as soon as possible 2013-01-26 17:20:43 +01:00
Petr Škoda a07c89c632 MDL-37713 let phpunit bootstrap create test dataroot if necessary 2013-01-26 14:59:27 +01:00
Petr Škoda d8f22c49b1 MDL-37716 standardise enrolment expiration code 2013-01-26 14:55:11 +01:00
Andreas Grabs 82e4dc33f0 MDL-37628 feedback - Coding error in Recent Activity 2013-01-26 11:28:06 +01:00
Jean-Michel Vedrine a5d7862b58 MDL-37172 Hardcoded strings in some question imports formats
AMOS BEGIN
MOV [unknownorunhandledtype,qformat_blackboard_six],[unknownorunhandledtype,question]
AMOS END
2013-01-25 22:31:06 +01:00
Petr Škoda 9226ec1939 MDL-37666 fix comment describing IE CSS limitations 2013-01-25 20:20:04 +01:00
Petr Škoda 019b77cd7e MDL-37638 fix name of duplicate role 2013-01-25 19:35:40 +01:00
Petr Škoda be094a59ca MDL-37499 add test ldap debuginfo 2013-01-25 16:04:03 +01:00
Petr Škoda a7aff74fcc MDL-37499 implement basic tests for auth_ldap 2013-01-25 16:00:35 +01:00
Petr Škoda 231b022777 MDL-37407 add support for zh_cn unicode unzip 2013-01-25 15:55:52 +01:00
Tim Hunt 9887aaeb75 MDL-37600 qtype match: fix codechecker issues. 2013-01-25 14:07:33 +00:00
Tim Hunt 87d767343d MDL-37600 qtype match: remove obsolete DB columns, and obey coding style.
Tables renamed to start qtype_match, and qtype_match_options.subquestions
and qtype_match_subquestions.code columnd dropped. Also, qtype_match_options
-> question foreign key link changed to be foreign-unique, since that is
what it should be.
2013-01-25 12:38:16 +00:00
Andrew Robert Nicols c6dcce6ad3 MDL-37526 Fix lint issues in moodle-core-notification 2013-01-25 12:32:22 +00:00
Andrew Robert Nicols c112bc6069 MDL-37697 Use the correct editor format for course forums 2013-01-25 12:30:29 +00:00
Tim Hunt e389874d19 MDL-37694 move quiz unit tests to the right place.
Follow-on from MDL-37684.
2013-01-25 12:12:12 +00:00
Petr Škoda 96846ef18b MDL-37640 close all zip archives after use in unit tests 2013-01-25 12:46:58 +01:00
Colin Chambers 2a22be64ee MDL-32750 Question: make the html editor tools collapsible 2013-01-25 11:17:41 +00:00
Colin Chambers f0a64f017c MDL-37465 Combined feedback: Num correct responses ticked by default 2013-01-25 11:15:50 +00:00
Dan Poltawski b3778a0dec MDL-37684 - phpunit add missing definitions to phpunit.xml.dist 2013-01-25 16:33:51 +08:00
Dan Poltawski a737019604 weekly release 2.5dev 2013-01-25 15:57:30 +08:00
Dan Poltawski ec0f4373fa Fix permissions 2013-01-25 15:57:20 +08:00
Dan Poltawski a7b860a0c7 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-01-25 15:56:27 +08:00
Dan Poltawski ebf6e8f60a Merge branch 'MDL-37473b' of git://github.com/srynot4sale/moodle 2013-01-25 12:35:40 +08:00
Aaron Barnes 10a8581f2b MDL-37473 completion: Add missing cap checks to tracked users functions
Namely get_num_tracked_users and is_tracked_user()
2013-01-25 17:08:44 +13:00
Dan Poltawski dec70f2599 Revert "MDL-32652 - Make block drag-drop work throughout Moodle"
This reverts commit d7c29c2257.
2013-01-25 11:52:15 +08:00
David Mudrák df5d245a05 MDL-37677 Do not display debug info about obsolete string manager caches 2013-01-24 23:14:16 +01:00
David Mudrák 34424d4c8b MDL-37673 Fix core_groupdata cache definition 2013-01-24 22:52:10 +01:00
Andrew Robert Nicols 0739873052 MDL-37548 Show the incorrect value in a colour picker after validation 2013-01-24 09:23:38 +00:00
Rajesh Taneja 9e1d4eda65 MDL-36619 My Home: Fixed course movement when JS is turned off 2013-01-24 13:57:26 +08:00
Stephen Bourget 0b33e91cd6 MDL-37533 Assign: Fix grading filters to show only assignments needing grading 2013-01-24 10:55:43 +08:00
Damyon Wiese d43b31094e MDL-37533 Assign: Use the constant for the submitted status in the query (and parameterize the query) 2013-01-24 10:52:20 +08:00
Stephen Bourget b7f461419b MDL-37533 Assign: assign_print_overview does not correctly display assignments that need grading 2013-01-24 10:39:09 +08:00
AMOS bot 7bc7c3fef2 Automatically generated installer lang files 2013-01-24 00:46:47 +00:00
Dan Poltawski a42a78754f Merge branch 'MDL-37547-master' of github.com:damyon/moodle 2013-01-23 15:58:34 +08:00
Mark Nelson 93cc145f88 MDL-37082 core_course: include details of deprecation in the upgrade.txt file 2013-01-23 15:55:04 +08:00
Dan Poltawski 1c426a56f8 Merge branch 'MDL-37082-master' of git://github.com/damyon/moodle 2013-01-23 15:53:20 +08:00
Damyon Wiese 8549deb969 MDL-37082: Fixed failed unit tests from previous patch 2013-01-23 15:23:37 +08:00
Aparup Banerjee 46112c0277 Merge branch 'MDL-37100-master' of git://github.com/ankitagarwal/moodle
Conflicts:
	version.php
2013-01-23 14:57:45 +08:00
Damyon Wiese d021941d6c MDL-37547 Assign: Fix failed unit test on oracle.
Oracle is rounding numbers with no decimals - which causes a test failure.
2013-01-23 14:56:21 +08:00
Dan Poltawski bc5165c2be Merge branch 'MDL-37082_master' of git://github.com/markn86/moodle 2013-01-23 14:45:59 +08:00
Mark Nelson 18aaeef0b6 MDL-37082 mod_assign: removed reference to deprecated delete_course_module function in the unit tests 2013-01-23 14:25:02 +08:00
Jerome Mouneyrac 821676f5b7 MDL-37476 course_create unit test fails if course completion is enabled 2013-01-23 13:54:22 +08:00
David Monllao 1150aeb896 MDL-37458 testing: Removing wrong comments 2013-01-23 13:23:08 +08:00
Eloy Lafuente (stronk7) c9c75b39fd Merge branch 'MDL-37619-master' of git://github.com/damyon/moodle 2013-01-23 02:07:53 +01:00
Dan Poltawski ad3a730c3a Merge branch 'MDL-37506' of git://github.com/timhunt/moodle 2013-01-23 08:54:32 +08:00
Dan Poltawski 0a93b3127f Merge branch 'MDL-37082_master' of git://github.com/markn86/moodle 2013-01-23 08:53:02 +08:00
Sam Hemelryk 8c35fcdcd9 Merge branch 'MDL-34435-master' of git://github.com/FMCorz/moodle
Conflicts:
	version.php
2013-01-23 11:08:55 +13:00
Sam Hemelryk 8af97c2c2e Merge branch 'wip-MDL-35826-master' of git://github.com/phalacee/moodle
Conflicts:
	calendar/upgrade.txt
2013-01-23 10:03:42 +13:00
Sam Hemelryk a659a79f23 MDL-36621 cache: added missing calendar subscription string 2013-01-23 09:58:43 +13:00
Sam Hemelryk 9d98cb9f17 Merge branch 'wip-MDL-34436-master' of git://github.com/phalacee/moodle 2013-01-23 09:54:36 +13:00
Eloy Lafuente (stronk7) 5afd8bfede Merge branch 'wip-MDL-15930-master' of git://github.com/abgreeve/moodle 2013-01-22 20:34:42 +01:00
Mary Evans bd5d8b5041 MDL-29723 mod/quiz: Modified show/hide button in edit.php and added some extra CSS rules to styles.css to make Question bank block more compatible/adaptable with themes. 2013-01-22 16:17:11 +00:00
Justin Filip 565c0da9c9 MDL-37625 auth_radius Updated to latest version (1.5.0) of included PEAR Crypt_CHAP library. 2013-01-22 10:42:09 -05:00
Frederic Massart 31a783303e MDL-29749 phpunit: Windows dir uses backslashes 2013-01-22 16:24:35 +01:00
Ankit Agarwal 38c52ef291 MDL-37100 Version bump 2013-01-22 17:10:31 +08:00
Mark Nelson a347aee32e MDL-37082 core_course: create new course_delete_module function that handles the whole deletion process
Instead of repeating code all over the place because the original function delete_course_module only partially deletes data, we now place all the functionality needed to delete a module here.
2013-01-22 17:05:16 +08:00
Aparup Banerjee 072844a158 Merge branch 'wip-mdl-37339' of git://github.com/rajeshtaneja/moodle 2013-01-22 16:28:31 +08:00
Dan Poltawski 397ccf1309 MDL-36602 - fix whitespace 2013-01-22 15:45:34 +08:00
Dan Poltawski 079b83f34e Merge branch 'w03_MDL-36602_m25_mnetuser' of git://github.com/skodak/moodle 2013-01-22 15:44:28 +08:00
Dan Poltawski d7687c3a23 Merge branch 'w03_MDL-37257_m25_enrolsettings' of git://github.com/skodak/moodle 2013-01-22 15:37:36 +08:00
Dan Poltawski bfaf3041fa Merge branch 'wip-mdl-32526' of git://github.com/rajeshtaneja/moodle 2013-01-22 14:00:26 +08:00
Aparup Banerjee 1a6192f928 Merge branch 'MDL-37547-master' of github.com:damyon/moodle 2013-01-22 13:57:25 +08:00
Ankit Agarwal e6a1f8c102 MDL-37100 webservices: Adding warnings and cleaning up get_calendar_events() api 2013-01-22 13:54:49 +08:00
Ankit Agarwal 15c0b1ccef MDL-37101 phpunit: phpunit tests for ws api core_calendar_create_calendar_events 2013-01-22 13:53:23 +08:00
Ankit Agarwal 494a6389eb MDL-37101 webservices:Implement ws api core_calendar_create_calendar_events 2013-01-22 13:53:22 +08:00
Jason Fowler 512edd65d8 MDL-35826 - Calendar - Creating a caption containing the month name for mini-calendars 2013-01-22 13:51:09 +08:00
Dan Poltawski 499e1f11a5 Merge branch 'MDL-36138-master' of git://github.com/StudiUM/moodle 2013-01-22 13:40:02 +08:00
Damyon Wiese c1432fad2c MDL-37619 Assign: Fix failed unit tests for mod/assign/lib.php
The failure was caused by a regression in MDL-37527.
2013-01-22 13:34:01 +08:00
Dan Poltawski 5a4a346834 Merge branch 'MDL-33206-master' of git://github.com/StudiUM/moodle 2013-01-22 12:58:27 +08:00
Dan Poltawski f6623fe130 Merge branch 'MDL-27164-master' of git://github.com/micaherne/moodle 2013-01-22 12:51:51 +08:00
Dan Poltawski cba645b850 Merge branch 'master_MDL-36853' of git://github.com/danmarsden/moodle 2013-01-22 12:49:18 +08:00
Dan Poltawski 928639c06e Merge branch 'MDL-37275_master' of git://github.com/markn86/moodle 2013-01-22 12:46:09 +08:00
Dan Poltawski 8f43dfac3a Merge branch 'MDL-37375' of git://github.com/rwijaya/moodle 2013-01-22 12:43:47 +08:00
Dan Poltawski 011ee6742f Merge branch 'MDL-37426-m' of git://github.com/andrewnicols/moodle 2013-01-22 12:41:12 +08:00
Dan Poltawski f5ba8b0f03 Merge branch 'w03_MDL-37593_m25_httpslogineditor' of git://github.com/skodak/moodle 2013-01-22 12:35:54 +08:00
Aparup Banerjee 447e59a1f2 Merge branch 'wip-MDL-37541-master' of git://github.com/marinaglancy/moodle
Conflicts:
	repository/wikimedia/wikimedia.php
2013-01-22 12:10:48 +08:00
Dan Poltawski 8cd57fb26a Merge branch 'MDL-37430-master' of github.com:damyon/moodle 2013-01-22 11:53:10 +08:00
Dan Poltawski ad0bcfe6a6 Merge branch 'MDL-35357' of git://github.com/rwijaya/moodle 2013-01-22 11:48:04 +08:00
Dan Poltawski 97d3e09cd8 Merge branch 'MDL-37599' of git://github.com/timhunt/moodle 2013-01-22 11:40:04 +08:00
Aparup Banerjee 8b042b1cc8 Merge branch 'MDL-37583' of git://github.com/timhunt/moodle 2013-01-22 11:37:24 +08:00
Sam Hemelryk 59573bb447 MDL-36621 calendar: fixed up conflict error 2013-01-22 16:35:48 +13:00
Sam Hemelryk 36546841f1 Merge branch 'MDL-36621-master' of git://github.com/ankitagarwal/moodle
Conflicts:
	calendar/lib.php
	lib/db/caches.php
	version.php
2013-01-22 16:35:03 +13:00
Dan Poltawski 68a6d87684 Merge branch 'MDL-37473' of git://github.com/srynot4sale/moodle 2013-01-22 11:14:19 +08:00
Dan Poltawski c9ae6d3c27 Merge branch 'MDL-17812' of git://github.com/timhunt/moodle 2013-01-22 11:11:53 +08:00
Aparup Banerjee 60f95aad6c Merge branch 'MDL-37585' of git://github.com/timhunt/moodle 2013-01-22 11:08:16 +08:00
Aparup Banerjee c0038fbe5b Merge branch 'MDL-37540-master' of git://github.com/damyon/moodle 2013-01-22 10:59:26 +08:00
Aparup Banerjee 5d4183b94f Merge branch 'MDL-37543-master' of git://github.com/damyon/moodle 2013-01-22 10:56:06 +08:00
Mark Nelson d448625682 MDL-37414 blocks: re-added the ability to add some blocks to the My Moodle 2013-01-22 10:52:41 +08:00
Marina Glancy 1d3791018b MDL-37541 Wikimedia allows to resize found images 2013-01-22 13:48:59 +11:00
Marina Glancy df8b1e7358 MDL-37541 Wikimedia returns more information about images 2013-01-22 13:41:38 +11:00
Eloy Lafuente (stronk7) cccdddf241 Merge branch 'MDL-37539-master' of github.com:damyon/moodle 2013-01-22 02:11:27 +01:00
Dan Poltawski 22aabad2d8 Merge branch 'MDL-37358-master' of git://github.com/mouneyrac/moodle 2013-01-22 09:05:46 +08:00
Damyon Wiese f518843d4c MDL-37539 assign: Fix unit test after changes to upgrade for advanced file assignments. 2013-01-22 09:04:13 +08:00
Eloy Lafuente (stronk7) 0aaf378cf9 Merge branch 'MDL-36104_master' of https://github.com/markn86/moodle 2013-01-22 01:11:48 +01:00
Eloy Lafuente (stronk7) 17f394f81a Merge branch 'MDL-37539-master' of github.com:damyon/moodle 2013-01-22 01:05:54 +01:00
Eloy Lafuente (stronk7) 29a4621e47 Merge branch 'MDL-28512' of git://github.com/timhunt/moodle 2013-01-22 01:02:12 +01:00
Eloy Lafuente (stronk7) 6501e6e037 Merge branch 'wip-mdl-37432' of git://github.com/rajeshtaneja/moodle 2013-01-22 00:52:42 +01:00
Mary Evans 4c085aed64 MDL-37614 report/completion: changed generalbox class in table to generaltable class in user.php 2013-01-21 23:51:47 +00:00
Mary Evans 0434dd2482 MDL-37613 mod: changed generalbox class in table to generaltable class in mod/feedback (2 files);mod/glossary (3 files);mod/wiki (1 file). 2013-01-21 23:38:46 +00:00
Mary Evans eb610eb90d MDL-37612 course: changed 1 instance of generalbox class to generaltable class in each of the following category.php, lib.php, search.php 2013-01-21 23:12:20 +00:00
Mary Evans 42d733dcdf MDL-37611 block/completionstatus: changed 2 insances of generalbox class to generaltable class in details.php 2013-01-21 22:51:37 +00:00
Eloy Lafuente (stronk7) 37027f431b Merge branch 'MDL-29749-master-4th' of git://github.com/FMCorz/moodle 2013-01-21 23:26:35 +01:00
Sam Hemelryk 0774b0d34c Merge branch 'MDL-37563-master' of git://github.com/damyon/moodle 2013-01-22 09:10:44 +13:00
Eloy Lafuente (stronk7) fa669c49ad Merge branch 'w03_MDL-36411_m25_setup' of git://github.com/skodak/moodle 2013-01-21 20:08:12 +01:00
Eloy Lafuente (stronk7) ea4edbd6bc Merge branch 'MDL-37577' of git://github.com/timhunt/moodle 2013-01-21 20:01:39 +01:00
Eloy Lafuente (stronk7) 6ee4df92ab Merge branch 'MDL-35924_master' of https://github.com/markn86/moodle 2013-01-21 19:41:45 +01:00
Eloy Lafuente (stronk7) 509c2758ce Merge branch 'MDL-34050' of git://github.com/rwijaya/moodle 2013-01-21 16:47:18 +01:00
Tim Hunt 805e32f74e MDL-37577 quiz overdue handling: optimise database query
This is the standard trick of adding a redundant WHERE clause to a
subquery to help the database realise that it does not have to inspect
so many rows.
2013-01-21 13:21:38 +00:00
Tim Hunt b5d09003bb MDL-37599 question import: add missing string.
AMOS BEGIN
 MOV [matcherror,question],[invalidgrade,question]
AMOS END
2013-01-21 12:07:47 +00:00
Aparup Banerjee 5650cdb8fc Merge branch 'wip-MDL-37541-master' of git://github.com/marinaglancy/moodle 2013-01-21 17:06:09 +08:00
Tim Hunt 74fa94b26a MDL-37585 Make $DB->set_debug(true) show run time of each query. 2013-01-21 08:48:15 +00:00
Petr Škoda 1764cd8e6f MDL-37593 use https for editor script if required 2013-01-21 09:40:15 +01:00
Michael de Raadt 25784512cd MDL-35357 Lesson Module: fixed undefined property for $answerformat 2013-01-21 15:35:39 +08:00
Aparup Banerjee 93c62e0cd8 Merge branch 'w03_MDL-37559_m25_otherusers' of git://github.com/skodak/moodle 2013-01-21 15:26:13 +08:00
Aparup Banerjee 4e0828c954 Merge branch 'MDL-37571' of git://github.com/tmuras/moodle 2013-01-21 15:05:46 +08:00
Rossiani Wijaya d264e5d72c MDL-37375 Report: fixed blog post link from course activity report 2013-01-21 14:59:23 +08:00
Marina Glancy ebe9d4965d MDL-37541 Wikimedia returns more information about images 2013-01-21 17:30:10 +11:00
Mark Nelson 7e5be0744c MDL-36104 mod_assign: added hidden labels to the feedback input fields 2013-01-21 12:50:34 +08:00
Aparup Banerjee ebf5d99c61 Merge branch 'wip-MDL-37591_master' of git://github.com/lazydaisy/moodle 2013-01-21 12:49:15 +08:00
Aparup Banerjee 410fee1239 Merge branch 'wip-MDL-37592_master' of git://github.com/lazydaisy/moodle 2013-01-21 12:38:13 +08:00
Andrew Davis 245d1d28c2 MDL-37352 core_grade:fixed some ajax display issues 2013-01-21 12:27:44 +08:00
Rossiani Wijaya cdc018ad2d MDL-19069 RSS feed block: Removed link for remote RSS feeds on navigation 2013-01-21 11:56:42 +08:00
Ankit Agarwal c66dc3dff5 MDL-37101 webservices: Define ws api core_calendar_create_calendar_events 2013-01-21 11:53:33 +08:00
Dan Poltawski 77ea8340de Merge branch 'MDL-37458_master' of git://github.com/dmonllao/moodle 2013-01-21 11:14:38 +08:00
Ankit Agarwal 793d38552a MDL-37100 webservices: Define core_calendar_get_calendar_events() api 2013-01-21 11:05:50 +08:00
Ankit Agarwal 261a41f16d MDL-37100 webservices: Adding warnings and cleaning up get_calendar_events() api 2013-01-21 11:05:50 +08:00
Ankit Agarwal 7c30224aeb MDL-37100 webservices: PHPunit tests for core_calendar_get_calendar_events() 2013-01-21 11:05:50 +08:00
Ankit Agarwal 475896bdbc MDL-37100 webservices: Implement core_calendar_get_calendar_events() 2013-01-21 11:05:50 +08:00
Dan Poltawski 73ce4ac996 Merge branch 'MDL-37457_master' of git://github.com/dmonllao/moodle 2013-01-21 10:53:12 +08:00
Rajesh Taneja f40c37d005 MDL-37432 Calendar: If Calendar url is invalid then remove invalid subscription 2013-01-21 10:46:19 +08:00
Rajesh Taneja 378cb038b2 MDL-37432 Calendar: Added check for empty calendar url 2013-01-21 10:28:32 +08:00
Dan Poltawski b77cce5c5c Merge branch 'MDL-30769_iframe' of git://github.com/rwijaya/moodle 2013-01-21 10:25:42 +08:00
Dan Poltawski be576cb0e8 Merge branch 'wip-mdl-36674' of git://github.com/rajeshtaneja/moodle 2013-01-21 10:15:16 +08:00
Dan Poltawski 2073bb7632 Merge branch 'MDL-35074_master_2' of git://github.com/pauln/moodle 2013-01-21 10:07:43 +08:00
Dan Poltawski 66bfd52a62 Merge branch 'MDL-37527-master' of github.com:damyon/moodle 2013-01-21 10:03:34 +08:00
Dan Poltawski 94abbef12f Merge branch 'MDL-32652_master' of git://github.com/pauln/moodle 2013-01-21 09:59:35 +08:00
Dan Poltawski 2f61796c26 Merge branch 'w03_MDL-36809_m25_mysqlipers' of git://github.com/skodak/moodle 2013-01-21 09:04:57 +08:00
Dan Poltawski 3be10301e9 Merge branch 'master_MDL-36421' of git://github.com/danmarsden/moodle 2013-01-21 09:01:00 +08:00
AMOS bot 18ec2dcd40 Automatically generated installer lang files 2013-01-21 00:44:52 +00:00
Mary Evans ac6efbaf22 MDL-37592 admin/toot/xmldb/actions/: changed all instances of generalbox class to generaltable class in twelve files as listed. 2013-01-20 22:23:53 +00:00
Mary Evans 01e34f156a MDL-37591 admin/mnet: replaced generalbox class with generaltable 2013-01-20 21:52:09 +00:00
Sam Hemelryk 528d2633df Merge branch 'MDL-37295-master' of git://github.com/ankitagarwal/moodle 2013-01-21 10:18:33 +13:00
Sam Hemelryk 11a5fab670 Merge branch 'MDL-35817' of git://github.com/rwijaya/moodle 2013-01-21 09:47:00 +13:00
Andrew Davis 40fcc26189 MDL-36757 course: avoid accidently overwriting the hidden/visible values set on grade items 2013-01-21 09:33:02 +13:00
ppichet c2ba17858c MDL-33105 flexible apply_units() function
Allow use of thousands separator as long as the decimal separator
is used in the number.
2013-01-19 15:36:31 -05:00
Petr Škoda 00c269db37 MDL-37559 fix display of multiple roles of other users
Credit goes to Tyron Delean, thanks.
2013-01-19 16:50:38 +01:00
Petr Škoda 9dcae46d93 MDL-36602 support mnethostid in user csv upload tool
Remote users can not be created, updated or deleted. The only allowed operations are suspending, enrolling and adding to cohort or group.
2013-01-19 13:27:00 +01:00
Petr Škoda 33b5b9f97a MDL-36809 add support for mysqli persistent connections 2013-01-19 13:25:28 +01:00
Petr Škoda 6a8e467916 MDL-36411 make sure asserts in setUp() do not cause problems 2013-01-19 13:19:49 +01:00
Petr Škoda c7a3399041 MDL-37257 improve enrol overview page and enrol plugin info 2013-01-19 13:14:41 +01:00
ppichet 1649a4f7ea MDL-29691 Improve numerical format in multianswer
Allow the use of , as decsep in multianswer numerical subquestions
2013-01-18 21:48:56 -05:00
Tim Hunt b4cb095798 MDL-17812 shortanswer qtype: rename DB stuff to match coding guidelines.
We should be leading by example in Moodle core.
2013-01-18 15:53:35 +00:00
Jean-Philippe Gaudreau 5595391eae MDL-33206 mod_book: Add a link to display the print dialog in the print book tool 2013-01-18 10:49:45 -05:00
Gilles-Philippe Leblanc 99f66eb139 MDL-36138 auth_cas: Fix CAS Authentication Strict Standards warnings 2013-01-18 10:02:37 -05:00
Tim Hunt 283cbd825c MDL-37583 quiz statistics report. Delete junk code. 2013-01-18 14:43:17 +00:00
Tim Hunt fbfa572d70 MDL-28512 qtype essay: clean up garbage qtype_essay_options rows. 2013-01-18 12:20:10 +00:00
Tim Hunt 19835d4aff MDL-28512 qtype essay: clean up properly when a question is deleted. 2013-01-18 11:27:53 +00:00
Tim Hunt 03cefcc91b MDL-37506 question code: incorrect preg_quote uses.
For preg_quote to work reliably, you must pass the delimiter you are
using for your regular expression. In many places we were failing to do
that.
2013-01-18 11:18:54 +00:00
Mark Nelson e06bfd3df3 MDL-35924 filemanager: added label for the input field when creating a new folder 2013-01-18 15:36:25 +08:00
Mark Nelson 26741e3e2f MDL-37275 webservices: ensure a webservice function is chosen before attempting to add to service 2013-01-18 15:34:33 +08:00
Dan Poltawski a5ec499521 weekly release 2.5dev 2013-01-18 14:28:36 +08:00
Dan Poltawski a3891a2f47 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-01-18 14:27:21 +08:00
Petr Skoda b5fc5675a2 MDL-30769 - URL module: always use iframe instead of problematic object tag 2013-01-18 11:11:49 +08:00
Rajesh Taneja b2da647202 MDL-34190 Course: Role with student archtype should be selected as default in user list 2013-01-18 10:10:57 +08:00
David Monllao 0ea35584ae MDL-37458 testing common methods generalization 2013-01-18 09:17:30 +08:00
Tomasz Muras 6212ec3217 MDL-37571 Correct form element id. 2013-01-17 23:03:27 +01:00
Petr Škoda 009f190c69 MDL-37429 hack around zip limitations in PHP versions < 5.3.10 2013-01-17 16:48:29 +01:00
Dan Poltawski 9f780282fa MDL-31682 - fix for online text assignments 2013-01-17 15:48:29 +08:00
Marina Glancy 8df0765ad1 MDL-37085 bug fix with glued together class names 2013-01-17 15:19:09 +08:00
David Monllao f822840223 MDL-37458 testing tests finder externalization 2013-01-17 15:15:27 +08:00
Damyon Wiese 7720f485c9 MDL-37563 Assignment upgrade: Upgrade conditional activity settings. 2013-01-17 14:00:46 +08:00
Dan Poltawski 361dfe6572 Merge branch 'wip-mdl-29534' of git://github.com/rajeshtaneja/moodle 2013-01-17 13:47:25 +08:00
Rajesh Taneja e9c55e3993 MDL-29534 Forum: Fixed userfrom reference problem 2013-01-17 13:45:01 +08:00
Ankit Agarwal e73b527c82 MDL-36621 calendar: cache calendar subscriptions and showicalsource setting
Now MUC is used to cache subscription information when the constructor for an event is called, which is child of a ical subscription.
A new setting calendar_showicalsource is introduced which controls if the ical source should be displayed along with events in the calendar
Also minor changes has been done in places to make sure subscription id is always associated with ical events
2013-01-17 13:40:06 +08:00
Rossiani Wijaya a170cdf4a4 MDL-35817 login: convert html tag to use html_writer and change <a> tag id to be more specific to login 2013-01-17 13:01:27 +08:00
Damyon Wiese 5389dfb0eb MDL-37539 Assignment upgrade: Disable submission comments if allow notes was not enabled.
For advanced upload of files only - this setting was stored in var2.
2013-01-17 12:15:00 +08:00
Rajesh Taneja 68e12697a3 MDL-35780 Administration: current user email should be always displayed on participants page 2013-01-17 11:56:47 +08:00
Damyon Wiese f531ca72f9 MDL-37540 Assignment upgrade: Upgrade setting "Hide description before due date"
Advanced upload of files has this setting which is stored in var3.
2013-01-17 11:44:57 +08:00
Frederic Massart caf16a57e5 MDL-29749 files: Improved params PARAM_PATH and PARAM_FILE
The logic change here allows for multiple dots to be part
of a file name or folder name. Most Unit Tests have not
been altered and reflect the exact logic as it was before.
2013-01-17 11:32:59 +08:00
Ankit Agarwal 07c03ff96a MDL-36621 calendar: Display subscription info in calendar event popups 2013-01-17 11:09:50 +08:00
Ankit Agarwal 8a7326ed4e MDL-36621 calendar: Ical event should display source info 2013-01-17 11:09:50 +08:00
Damyon Wiese 01d29b3907 MDL-37543 Assignment upgrade: convert advanced upload files "Send for marking" setting
Advanced upload files assignment type has "Enable send for marking" setting instead
of "Allow resubmissions". Needs special handling in upgrade code to convert to
"Require students click submit button".
2013-01-17 11:05:31 +08:00
Dan Poltawski b1ffa78675 Merge branch 'wip-MDL-34398-m25-integration' of git://github.com/samhemelryk/moodle 2013-01-17 10:36:10 +08:00
Dan Poltawski b630c53591 Merge branch 'MDL-37374' of git://github.com/timhunt/moodle 2013-01-17 10:22:55 +08:00
Marina Glancy cf003abc92 MDL-37085 bug fix in link for module subtypes. Thanks to Andrew Nicols 2013-01-17 14:51:25 +13:00
Sam Hemelryk e17dbeeb1a MDL-34398 groups: implemented caching of group information. 2013-01-17 09:24:58 +13:00
Sam Hemelryk 11fbebb029 MDL-36035 course: fixed typo in function name 2013-01-17 09:15:26 +13:00
Eloy Lafuente (stronk7) 937ad8c626 Merge branch 'MDL-37555' of git://github.com/stronk7/moodle 2013-01-16 20:52:47 +01:00
Tim Hunt 67cc80197f MDL-31616 blocks: ensure showinsubcontexts is only 0 or 1 in the DB. 2013-01-16 19:16:09 +01:00
Eloy Lafuente (stronk7) c6523d2f94 MDL-37555 Apply realpath() 2 CFG->phpunit_dataroot 2013-01-16 16:15:56 +01:00
Eloy Lafuente (stronk7) 460ab53860 NOBUG: mini-bump to help cache definitions. 2013-01-16 15:57:46 +01:00
Tim Hunt a8e577debb MDL-37374 questions: fix property_exists calls. 2013-01-16 11:13:53 +00:00
Damyon Wiese cb5b486040 MDL-37547 Assignment: Add unit tests for mod/assign/lib.php 2013-01-16 16:36:19 +08:00
Rajesh Taneja 1a9d21dc21 MDL-32526 Course: After creating course user should be redirected to newly created course
After creating a new course if user has capability to enrol users then
enrol user page should be visible else user should see newly created course
2013-01-16 16:16:43 +08:00
Marina Glancy aa2b293e8e MDL-37207 modchoosertoggle: added checks that user can update course 2013-01-16 15:51:02 +08:00
Dan Poltawski c5c50786f6 Merge branch 'wip-MDL-37085-master' of git://github.com/marinaglancy/moodle 2013-01-16 14:17:40 +08:00
Marina Glancy db82b13050 MDL-37085 changed echo to return - little bug fix 2013-01-16 17:14:51 +11:00
Dan Poltawski ac6486e36f Merge branch 'wip-MDL-37536-m25' of git://github.com/samhemelryk/moodle 2013-01-16 13:51:58 +08:00
Dan Poltawski f2c87dd530 Merge branch 'MDL-37546-master' of github.com:damyon/moodle 2013-01-16 13:49:34 +08:00
Damyon Wiese f93fdcef86 MDL-37546 Assignment fix assign_get_recent_mod_activity code cleanup regression. 2013-01-16 13:48:15 +08:00
David Monllao 3f7211f45a MDL-37458 testing lock externalization 2013-01-16 13:43:25 +08:00
Sam Hemelryk 20a3199397 Merge branch 'wip-mdl-35873' of git://github.com/rajeshtaneja/moodle 2013-01-16 18:22:04 +13:00
Damyon Wiese 425a634b58 MDL-37527 Assignment - Change query for print_overview so it uses an index (postgres)
Reported by Mark Neilsen.
2013-01-16 13:20:27 +08:00
Dan Poltawski 7acc743f06 Merge branch 'MDL-36553' of git://github.com/rwijaya/moodle 2013-01-16 13:19:36 +08:00
Dan Poltawski 222f608433 Merge branch 'wip-MDL-36968-int' of git://github.com/marinaglancy/moodle 2013-01-16 13:16:40 +08:00
Rossiani Wijaya b3e02098a4 MDL-36553: Admin settings: remove border attribute from HTML settings table 2013-01-16 13:15:40 +08:00
Marina Glancy a3f66bdeac MDL-36968 Move function print_recent_activity() to the block recent_activity 2013-01-16 16:13:04 +11:00
Dan Poltawski 0883d08fd0 Merge branch 'w02_MDL-37187_m25_flatfile' of git://github.com/skodak/moodle 2013-01-16 11:53:00 +08:00
Dan Poltawski 50ac16b8d0 Merge branch 'MDL-31484_anonymous_user_clash' of git://github.com/davosmith/moodle 2013-01-16 11:45:22 +08:00
Dan Poltawski 856df69f3d Merge branch 'MDL-36708-master' of git://github.com/FMCorz/moodle 2013-01-16 11:39:03 +08:00
Frederic Massart 212dac2724 MDL-36708 files: Fixed missing key in array 2013-01-16 11:28:14 +08:00
Dan Poltawski 0f94289c1d Merge branch 'MDL-33688_dndupload_progress' of git://github.com/davosmith/moodle
Conflicts:
	files/renderer.php
	lib/outputrenderers.php
2013-01-16 11:18:18 +08:00
Dan Poltawski 47ee9f9100 Merge branch 'w02_MDL-35899_m25_cohortsort' of git://github.com/skodak/moodle 2013-01-16 11:09:21 +08:00
Dan Poltawski cb598688a8 Merge branch 'w02_MDL-37175_m25_paypalmanage' of git://github.com/skodak/moodle 2013-01-16 10:54:55 +08:00
Dan Poltawski 82420bbb91 Merge branch 'w02_MDL-37184_m25_editenrol' of git://github.com/skodak/moodle 2013-01-16 10:19:57 +08:00
Dan Poltawski a201b57657 Merge branch 'MDL-36412-master' of git://github.com/sammarshallou/moodle 2013-01-16 09:54:26 +08:00
Rajesh Taneja 3ac4ad0050 MDL-37339 Administration: Unique custom profile should not be checked if it's empty.
Currently we have two options for custom profile fields 'Unique' and 'Required'
If value s not entered for unique and not required field then we should allow
duplicate empty values. If value is entered then we should check for unique input.
In case field is unique and required then it should be always checked as required
field can't be empty.
2013-01-16 09:44:32 +08:00
Eloy Lafuente (stronk7) 3431860f54 Merge branch 'w02_MDL-36988_m25_switchrole' of git://github.com/skodak/moodle 2013-01-16 02:27:48 +01:00
Sam Hemelryk 759a302454 MDL-37536 cache: fixed typo 2013-01-16 14:22:58 +13:00
Eloy Lafuente (stronk7) 0c198a1b59 Merge branch 'w02_MDL-37429_m25_zippacker' of git://github.com/skodak/moodle
Conflicts:
	lib/upgrade.txt
2013-01-16 02:22:26 +01:00
Eloy Lafuente (stronk7) 06d78e8209 Merge branch 'MDL-36257-master' of git://git.luns.net.uk/moodle 2013-01-16 02:05:27 +01:00
Eloy Lafuente (stronk7) becb4de707 Merge branch 'w02_MDL-37019_m25_metadef' of git://github.com/skodak/moodle 2013-01-16 01:58:08 +01:00
AMOS bot e62c59c8c3 Automatically generated installer lang files 2013-01-16 00:43:42 +00:00
Eloy Lafuente (stronk7) a932fa439f MDL-35775 Whitespace fix. 2013-01-16 01:30:19 +01:00
Eloy Lafuente (stronk7) 91d5e08aa3 Merge branch 'MDL-35775-master' of git://github.com/micaherne/moodle 2013-01-16 01:28:53 +01:00
Eloy Lafuente (stronk7) a91350609e Merge branch 'wip-MDL-34344-m25' of git://github.com/samhemelryk/moodle
Conflicts:
	lib/db/caches.php
2013-01-16 01:08:26 +01:00
Sam Hemelryk 3909faf45a MDL-23504 admin: fixed whitespace issue 2013-01-16 12:00:37 +13:00
Sam Hemelryk e265716f69 Merge branch 'wip-mdl-23504' of git://github.com/rajeshtaneja/moodle 2013-01-16 11:06:39 +13:00
Sam Hemelryk ec16ef1f85 Merge branch 'wip-MDL-35818-master' of git://github.com/phalacee/moodle 2013-01-16 11:03:39 +13:00
Sam Hemelryk 00ba185d52 Merge branch 'wip-MDL-36967-master' of git://github.com/marinaglancy/moodle
Conflicts:
	lib/deprecatedlib.php
2013-01-16 11:01:16 +13:00
Eloy Lafuente (stronk7) d9b9d22fa1 Merge branch 'MDL-37173-m' of git://github.com/andrewnicols/moodle 2013-01-15 21:56:13 +01:00
Eloy Lafuente (stronk7) 493d8f781c Merge branch 'MDL-37354-master' of git://github.com/mouneyrac/moodle
Conflicts:
	message/tests/externallib_test.php
2013-01-15 21:50:31 +01:00
Eloy Lafuente (stronk7) 563bcc2322 Merge branch 'MDL-31726' of git://github.com/colchambers/moodle 2013-01-15 21:44:38 +01:00
Petr Škoda aae028d9e3 MDL-36988 cleanup role switching
This patch uses local URLs in parameters because it is more compatible
with various security hacks. Session key is not added automatically to
return url for safety reasons - we do not want to execute some random
action again. POST pages are now returned to course page too.
2013-01-15 21:44:20 +01:00
Petr Škoda 59e7cc03d7 MDL-37184 document new general enrolment editing page 2013-01-15 21:29:10 +01:00
Petr Škoda 3cb856c744 MDL-37429 document zip packer improvements 2013-01-15 20:45:36 +01:00
Eloy Lafuente (stronk7) ee5c647e84 Merge branch 'MDL-31616' of git://github.com/timhunt/moodle 2013-01-15 20:14:03 +01:00
Eloy Lafuente (stronk7) dcb21e6cc1 Merge branch 'wip-mdl-37062' of git://github.com/rajeshtaneja/moodle 2013-01-15 20:04:21 +01:00
Eloy Lafuente (stronk7) fcdc9b7717 NOBUG: 1 more whitespace, was hurting my eyes all the time. 2013-01-15 19:20:17 +01:00
Eloy Lafuente (stronk7) 3af9d77c1d MDL-33117 Whitespace fixes 2013-01-15 19:09:57 +01:00
Andrew Robert Nicols d7d68b03ee MDL-37426 Fix JSHint issues for moodle-core-formchangechecker 2013-01-15 17:34:04 +00:00
Eloy Lafuente (stronk7) 0943a0ce11 Merge branch 'MDL-34883_unit_tests' of git://github.com/andyjdavis/moodle 2013-01-15 18:21:12 +01:00
Eloy Lafuente (stronk7) ceda80962c Merge branch 'MDL-37395-master' of git://github.com/sammarshallou/moodle 2013-01-15 18:17:12 +01:00
Eloy Lafuente (stronk7) 62a9604677 Merge branch 'MDL-36553' of git://github.com/rwijaya/moodle 2013-01-15 18:12:20 +01:00
Eloy Lafuente (stronk7) ada893d339 Merge branch 'MDL-36554' of git://github.com/rwijaya/moodle 2013-01-15 18:02:26 +01:00
Eloy Lafuente (stronk7) dfcb38a1c7 Merge branch 'wip-MDL-37207-master' of git://github.com/marinaglancy/moodle 2013-01-15 18:00:17 +01:00
Ben Johnson 7536464d61 MDL-36421 SCORM: fix SCORM course format new window popups 2013-01-15 21:42:56 +13:00
Dan Poltawski a9081ce630 MDL-37313 question: fix trailing whitespace 2013-01-15 16:36:14 +08:00
Dan Poltawski 12576d356a Merge branch 'MDL-37313' of git://github.com/jmvedrine/moodle 2013-01-15 16:35:17 +08:00
Dan Poltawski 2773aa41de Merge branch 'MDL-30070-master' of git://github.com/FMCorz/moodle 2013-01-15 16:04:57 +08:00
Frederic Massart d6731600c8 MDL-30070 message: Web Services for contact list 2013-01-15 16:04:00 +08:00
Rossiani Wijaya c316c3944e MDL-35817 Login: set page focus to error message for login error 2013-01-15 15:45:15 +08:00
Frederic Massart a03330bd16 MDL-30070 message: Optimised search for users over multiple courses 2013-01-15 15:15:47 +08:00
Dan Poltawski d7738ce27c Merge branch 'MDL-36529' of git://github.com/colchambers/moodle 2013-01-15 14:55:18 +08:00
Dan Poltawski 864ff70c74 Merge branch 'MDL-36534' of git://github.com/timhunt/moodle 2013-01-15 14:44:28 +08:00
Dan Poltawski a85d61e812 Merge branch 'MDL-28705_master' of git://github.com/dmonllao/moodle 2013-01-15 14:32:22 +08:00
Dan Poltawski 2429051d2f Merge branch 'MDL-37381-master' of git://github.com/mouneyrac/moodle 2013-01-15 14:29:41 +08:00
David Monllao 7cd5340f05 MDL-28705 enrol_imsenterprise Quick unit tests fix 2013-01-15 14:24:57 +08:00
Ankit Agarwal c524394d88 MDL-37295 forum: Parse old log entries during restore 2013-01-15 13:57:40 +08:00
Dan Poltawski 0efd8de527 Merge branch 'w02_MDL-36898_m25_ccontact' of git://github.com/skodak/moodle 2013-01-15 13:57:39 +08:00
Dan Poltawski 09ade47f55 Merge branch 'MDL-36708-master' of git://github.com/FMCorz/moodle 2013-01-15 13:55:50 +08:00
Dan Poltawski 85533e2a03 Merge branch 'MDL-37077-master' of git://github.com/ankitagarwal/moodle 2013-01-15 13:54:40 +08:00
Ankit Agarwal 644a7ef7a4 MDL-37077 phpunit: Adding phpunit tests for the ws api core_calendar_delete_event 2013-01-15 13:54:38 +08:00
Frederic Massart 7aff468346 MDL-36708 files: Checking the size limit of a draft area does include references 2013-01-15 13:48:05 +08:00
Dan Poltawski 5b2d44e9ca Merge branch 'w02_MDL-37391_m25_enrolconnection' of git://github.com/skodak/moodle 2013-01-15 13:43:20 +08:00
Dan Poltawski cd7d79d3ab Merge branch 'w02_MDL-37064_m25_languser' of git://github.com/skodak/moodle 2013-01-15 13:36:44 +08:00
Ankit Agarwal 01bea07d93 MDL-37077 webservices: Implementing the WS api core_calendar_delete_calendar_events() 2013-01-15 13:23:14 +08:00
Ankit Agarwal 5e1350abaa MDL-37077 webservices: Define the ws api method for deleting calendar events 2013-01-15 13:23:13 +08:00
Dan Poltawski 9d40849d46 Merge branch 'MDL-37162_master' of git://github.com/pauln/moodle 2013-01-15 13:23:02 +08:00
Dan Poltawski 8b16bbfc68 Merge branch 'MDL-35556d' of git://github.com/srynot4sale/moodle 2013-01-15 13:15:31 +08:00
Dan Poltawski bfee251334 Merge branch 'MDL-33669' of git://github.com/equella/moodle 2013-01-15 13:13:53 +08:00
Dan Poltawski cc1521f57b Merge branch 'MDL-37355-master' of git://github.com/mouneyrac/moodle 2013-01-15 13:11:46 +08:00
Dan Poltawski 27885779bc Merge branch 'MDL-36991-master' of git://github.com/sammarshallou/moodle 2013-01-15 13:06:10 +08:00
Dan Poltawski 76a32e1a6f Merge branch 'MDL-37374' of git://github.com/timhunt/moodle 2013-01-15 12:59:33 +08:00
Dan Poltawski 01dcd9d770 Merge branch 'MDL-35793' of git://github.com/timhunt/moodle 2013-01-15 12:56:51 +08:00
Dan Poltawski 9cbb0944c9 Merge branch 'MDL-28705_master' of git://github.com/dmonllao/moodle 2013-01-15 12:54:28 +08:00
Dan Poltawski d0827c938f Merge branch 'wip-MDL-30998-master' of git://github.com/marinaglancy/moodle 2013-01-15 12:51:48 +08:00
Dan Poltawski 37f3f3ac73 Merge branch 'wip-MDL-30316-master' of git://github.com/phalacee/moodle 2013-01-15 12:46:44 +08:00
Dan Poltawski b1be977406 Merge branch 'w02_MDL-29596_m25_editauth' of git://github.com/skodak/moodle 2013-01-15 12:43:59 +08:00
Dan Poltawski aa452f97e3 Merge branch 'MDL-29835_master' of git://github.com/pauln/moodle 2013-01-15 12:41:13 +08:00
Dan Poltawski 97f236e747 Merge branch 'MDL-32341-master' of git://github.com/ankitagarwal/moodle 2013-01-15 12:38:22 +08:00
Dan Poltawski 28cfdfe180 Merge branch 'MDL-37366-master' of git://github.com/andrewnicols/moodle 2013-01-15 12:10:10 +08:00
Dan Poltawski fb8585521a Merge branch 'wip-MDL-36035-m25' of git://github.com/samhemelryk/moodle 2013-01-15 11:56:12 +08:00
Dan Poltawski 4a489ba465 Merge branch 'MDL-36616-master' of git://github.com/FMCorz/moodle 2013-01-15 11:48:11 +08:00
Dan Poltawski 33919cca60 MDL-37085 - fix trailing whitespace 2013-01-15 11:42:30 +08:00
Sam Hemelryk c8d3475e17 Merge branch 'wip-MDL-37085-master' of git://github.com/marinaglancy/moodle 2013-01-15 16:30:36 +13:00
Erik Lundberg af7e05d6cc MDL-34436 - Blogs - Adding event triggers when adding a new entry, editing an entry or remove an entry. 2013-01-15 11:29:12 +08:00
Dan Poltawski 0a9b944a15 Merge branch 'MDL-36587-master' of git://github.com/damyon/moodle
Conflicts:
	mod/assign/locallib.php
2013-01-15 11:19:40 +08:00
Rossiani Wijaya b0ff0e9aae MDL-34050 Lesson Module: Fixed spacing and removed array_unique() for responses 2013-01-15 11:17:55 +08:00
Damyon Wiese a83dd077f8 MDL-37430 Course - Make modules created in hidden sections visible when section is made visible. 2013-01-15 11:16:07 +08:00
Dan Poltawski a0ea4d9fe1 Merge branch 'MDL-37415-m' of git://github.com/andrewnicols/moodle 2013-01-15 11:09:27 +08:00
David Monllao 6b21986911 MDL-37457 testing Mark current classes as deprecated 2013-01-15 11:07:45 +08:00
David Monllao 5c3c2c81be MDL-37457 testing Refactoring references 2013-01-15 11:07:43 +08:00
Dan Poltawski 121d7a3f7d Merge branch 'MDL-37413-m' of git://github.com/andrewnicols/moodle 2013-01-15 10:58:31 +08:00
Dan Poltawski 2254fb2764 Merge branch 'MDL-37194-master' of git://github.com/mouneyrac/moodle 2013-01-15 10:42:31 +08:00
Paul Nicholls d7c29c2257 MDL-32652 - Make block drag-drop work throughout Moodle
Other than shifting the initialisation from course/lib.php to
lib/outputrequirementslib.php, some workarounds/tweaks were required
in order to make it work correctly on admin pages and My Home.
2013-01-15 14:55:31 +13:00
Marina Glancy 54258889f2 MDL-37085 added missing get_renderer call 2013-01-15 12:14:31 +11:00
Eloy Lafuente (stronk7) ca2dfd0070 Merge branch 'MDL-37431' of git://github.com/timhunt/moodle 2013-01-15 00:16:18 +01:00
Eloy Lafuente (stronk7) eaa00a071c Merge branch 'wip-MDL-37453-master' of git://github.com/marinaglancy/moodle 2013-01-15 00:06:06 +01:00
Eloy Lafuente (stronk7) fe25b31d44 Merge branch 'MDL-37456' of git://github.com/danpoltawski/moodle 2013-01-14 23:32:39 +01:00
Eloy Lafuente (stronk7) f38ac3510a Merge branch 'w02_MDL-37483_m25_redirect' of git://github.com/skodak/moodle 2013-01-14 23:29:55 +01:00
Eloy Lafuente (stronk7) b9bbc2a356 Merge branch 'MDL-37485' of git://github.com/timhunt/moodle 2013-01-14 23:21:38 +01:00
Sam Hemelryk 5a3d98c26d Merge branch 'wip-MDL-37206-master' of git://github.com/marinaglancy/moodle 2013-01-15 10:48:53 +13:00
Sam Hemelryk 2a6dbdcaee Merge branch 'MDL-37378' of git://github.com/timhunt/moodle 2013-01-15 10:43:08 +13:00
Sam Hemelryk 0fe5a201c0 Merge branch 'MDL-37030-master' of git://github.com/damyon/moodle
Conflicts:
	mod/assign/locallib.php
	mod/assign/submission/onlinetext/locallib.php
2013-01-15 10:37:54 +13:00
Sam Hemelryk 2d971403e6 MDL-31682 mod_assign: fixed since version on new service. 2013-01-15 10:27:40 +13:00
Sam Hemelryk ddca5610d3 Merge branch 'MDL-31682' of git://github.com/Lightwork-Marking/moodle
Conflicts:
	mod/assign/version.php
2013-01-15 10:21:20 +13:00
Sam Hemelryk ccc89b8235 Merge branch 'w02_MDL-36514_m25_enableself' of git://github.com/skodak/moodle 2013-01-15 10:12:44 +13:00
Tim Hunt 5574862063 MDL-36534 question editing: clean up lang strings.
There were a number of lang strings in suboptimal places.
This commit fixes that, and also removed some unused strings.

AMOS BEGIN
 MOV [addmorechoiceblanks,qtype_multichoice],[addmorechoiceblanks,question]
 MOV [youmustenteramultiplierhere,qtype_calculated],[youmustenteramultiplierhere,qtype_numerical]
AMOS END
2013-01-14 14:52:49 +00:00
Colin Chambers c4b2600d4b MDL-36534 Quiz: Group question type unit fields 2013-01-14 14:37:37 +00:00
Rajesh Taneja 72b181ba59 MDL-36674 Administration: out_as_local_url will check for both http and https url's
out_as_local_url will first check if url passed in wwwroot, if it's not then it will check
if loginhttps is enabled and url is httpswwwroot
2013-01-14 15:59:06 +08:00
Dan Poltawski 5c2aacc21c Merge branch 'MDL-37143-master' of git://github.com/mouneyrac/moodle 2013-01-14 15:34:29 +08:00
Dan Poltawski 9695b2a596 Merge branch 'wip-MDL-30797-master' of git://github.com/abgreeve/moodle 2013-01-14 15:26:09 +08:00
Dan Poltawski b75d99239d Merge branch 'w02_MDL-37151_m25_mimetex' of git://github.com/skodak/moodle 2013-01-14 15:24:10 +08:00
Dan Poltawski 5590e85e1a Merge branch 'w02_MDL-37286_m25_tracebuffer' of git://github.com/skodak/moodle 2013-01-14 15:11:42 +08:00
Dan Poltawski 2e55217173 MDL-36297 - increment version no 2013-01-14 15:06:20 +08:00
Dan Poltawski ddaf0983b2 Merge branch 'wip-MDL-36297-m25' of git://github.com/samhemelryk/moodle 2013-01-14 15:05:15 +08:00
Dan Poltawski bf5f8a4f60 Merge branch 'wip-mdl-29534' of git://github.com/rajeshtaneja/moodle 2013-01-14 14:59:22 +08:00
Marina Glancy 5dc1ca87b1 MDL-30998 added missing phpdocs 2013-01-14 15:14:54 +11:00
Marina Glancy d22e9e32e4 MDL-30998: updated docblocks for advanced grading 2013-01-14 15:14:54 +11:00
Marina Glancy fa4c60c1fe MDL-30998: updated docblocks for backup of advanced grading 2013-01-14 15:14:54 +11:00
Marina Glancy 8afb1cc8f8 MDL-37206 preload course format renderer in course/view.php
Also fixed bug with hardcoded default 'weeks' format
2013-01-14 15:14:08 +11:00
Marina Glancy 7b59f5b32a MDL-37453 fixing regression from MDL-36550 - label show/hide in AJAX works incorrectly 2013-01-14 15:13:14 +11:00
Marina Glancy a03dfb7dbe MDL-37207 Add modchoosertoggle in renderer to allow themes to override 2013-01-14 15:10:07 +11:00
Marina Glancy ff233851a0 MDL-36967 Deprecate function print_overview() 2013-01-14 15:05:31 +11:00
Marina Glancy 9a36be7361 MDL-37085 Properly deprecated functions print_xxx() from course/lib.php
- get_print_section_cm_text()
- print_section_add_menus()
- print_section()
- make_editing_buttons()
2013-01-14 15:01:28 +11:00
Marina Glancy c58a25d6eb MDL-37085 Move print_section() to the course renderer
Added two functions in the renderer:
- core_course_renderer::course_section_cm_list()
- core_course_renderer::course_section_cm()
2013-01-14 15:01:27 +11:00
Marina Glancy ed513fad52 MDL-37085 partly moved code from print_section() to renderer
- added function core_course_renderer::course_section_cm_name()
- added function core_course_renderer::course_section_cm_text()
- added function core_course_renderer::course_section_cm_availability()
2013-01-14 15:01:26 +11:00
Marina Glancy 5c016ab30d MDL-37085 fixed mess with code overwriting cm_info properties
In case when groupmode is forced by the course we should take it from the
course and not overwrite cm_info::groupmode externally
2013-01-14 15:01:25 +11:00
Marina Glancy 7e29340f7c MDL-37085 Moved completion info box rendering code to renderer
Was part of function print_section(), now it is
new function core_course_renderer::course_section_cm_completion()
2013-01-14 15:01:24 +11:00
Marina Glancy 9a6aa5c17d MDL-37085 Substitute function print_section_add_menus() with core_course_renderer::course_section_add_cm_controls() 2013-01-14 15:01:23 +11:00
Marina Glancy 697ff99997 MDL-37085 Load modchooser only when needed 2013-01-14 15:01:23 +11:00
Marina Glancy 170793359a MDL-37085 get_module_metadata() now returns link as moodle_url instead of string 2013-01-14 15:01:22 +11:00
Marina Glancy f89c53f679 MDL-37085 Substitute get_print_section_cm_text() with cm_info functions 2013-01-14 15:01:21 +11:00
Marina Glancy f558b291c1 MDL-37085 separated logic and html in make_editing_buttons()
- added function course_get_cm_edit_actions()
- added function core_course_renderer::course_section_cm_edit_actions()
- removed completely presently not working moveup/movedown controls
- removed not working duplicate controls from front page
2013-01-14 15:01:20 +11:00
Marina Glancy 49aa038b4e MDL-37085 Minor UI and code improvements in print_section() 2013-01-14 15:01:19 +11:00
Anthony Borrow 1a19194121 MDL-15930 - admin: reorganize logic to allow ->fullnamedisplay to be used as default sort. 2013-01-14 10:28:41 +08:00
Adrian Greeve 51e8d287f9 MDL-30797 - backup groups: Added a parameter to the groups_assign_grouping function.
$timeadded has now been included so that the backup / restore functions can now use
this API rather than duplicating the code.
2013-01-14 10:24:37 +08:00
Adam Olley fdcf4a5f37 MDL-30797 backup: Use correct API call for mapping groups to groupings on import/restore 2013-01-14 10:24:37 +08:00
Rossiani Wijaya 2e48a42419 MDL-34050 Lesson Module: improved matching question logic for checking user response. This patch will also resolved MDL-36343. 2013-01-14 10:16:35 +08:00
Rossiani Wijaya fcb88d7d6d MDL-34050 Lesson module: Fixed undefined variable for $qtype 2013-01-14 10:16:35 +08:00
Joseph Rézeau 58b72abc6a MDL-34050: Lesson module: fixed matching answer format to use text 2013-01-14 10:16:34 +08:00
Ankit Agarwal af5d990b59 MDL-32341 calendar: calendar custom date range export
Adding support to export calendar events for a custom date range based on admin settings
2013-01-14 10:15:09 +08:00
Rossiani Wijaya 6fc61f2d08 MDL-36554 Admin settings: make tables class consistent throughout admin settings 2013-01-14 10:10:54 +08:00
Rossiani Wijaya f0e3fbb5dd MDL-36553 admin settings: removed commented out code and add generaltable class to frontpage filter settings 2013-01-14 10:09:52 +08:00
Rossiani Wijaya 8be244b2e2 MDL-36553 Admin settings: make tables class consistent throughout admin plugins setting 2013-01-14 10:09:51 +08:00
Jason Fowler b4a7ce9e71 MDL-35818 - Enrolment - Changing all enrolment method icon alt text attributes to include the name of the course 2013-01-14 09:46:04 +08:00
Sam Hemelryk 110178c5c2 Merge branch 'MDL-37048-master' of git://github.com/ankitagarwal/moodle 2013-01-14 14:08:56 +13:00
Sam Hemelryk f5c51a6d64 Merge branch 'MDL-35568_dndupload_hidden' of git://github.com/davosmith/moodle 2013-01-14 13:51:48 +13:00
Sam Hemelryk 8b2d3f1bef Merge branch 'wip-MDL-35885-master' of git://github.com/phalacee/moodle 2013-01-14 13:40:06 +13:00
Andrew Robert Nicols 699a13e1a6 MDL-37366 Fix JS Lint issues with moodle-core-formautosubmit 2013-01-13 23:58:04 +00:00
Sam Hemelryk 469749706a Merge branch 'MDL-36095-master' of git://github.com/sammarshallou/moodle 2013-01-14 12:24:06 +13:00
Sam Hemelryk 8d9c15a44e Merge branch 'MDL-36511' of git://github.com/srynot4sale/moodle 2013-01-14 12:13:00 +13:00
Sam Hemelryk 00df8f3f45 Merge branch 'w02_MDL-32387_m25_paypalexpire' of git://github.com/skodak/moodle 2013-01-14 11:47:37 +13:00
Sam Hemelryk c2e2da2e69 Merge branch 'master_MDL-37394' of git://github.com/danmarsden/moodle 2013-01-14 11:46:13 +13:00
Sam Hemelryk d9a3d932db Merge branch 'MDL-37397-m' of git://github.com/andrewnicols/moodle 2013-01-14 11:04:52 +13:00
Sam Hemelryk 9abf0ed1dc Merge branch 'wip-mdl-35780' of git://github.com/rajeshtaneja/moodle 2013-01-14 11:00:00 +13:00
Petr Škoda c5772ede5b MDL-29596 use optgroups to highlight enabled auth plugins 2013-01-13 16:52:05 +01:00
Petr Škoda ee17c773c1 MDL-37483 improve require_login redirect when activity not accessible 2013-01-13 11:37:14 +01:00
Petr Škoda 34183020a7 MDL-37391 add enrol_ldap tests and fix enrolment reviving 2013-01-13 00:41:41 +01:00
Petr Škoda 23f36d50c5 MDL-37391 refactor ldap connection handling 2013-01-12 21:18:25 +01:00
Petr Škoda b3ef2e519e MDL-37175 enable PayPal enrolment editing 2013-01-12 16:35:19 +01:00
Petr Škoda e659c02595 MDL-37151 upgrade mimetex to 1.74
Thanks Ralf Krause for help with OSX compilation flags.
2013-01-12 16:31:58 +01:00
Petr Škoda 4d3cd1483d MDL-37064 validate lang in user upload 2013-01-12 16:30:16 +01:00
Petr Škoda 68527e9ef6 MDL-37019 use suspend as default unenrol action for meta enrolments 2013-01-12 16:29:12 +01:00
Petr Škoda 50f1c9e3f5 MDL-36514 add tests for showing of self enrolment link 2013-01-12 16:03:09 +01:00
Petr Škoda e1fa177cf9 MDL-36514 add new option to prevent only new self enrolments
Hopefully this will resolve all confusion around the enrol->status flag in this plugin.
2013-01-12 16:03:08 +01:00
Petr Škoda a069c3f76a MDL-35899 fix cohort sorting in enrol UI 2013-01-12 16:00:29 +01:00
Petr Škoda d9a707adc2 MDL-32387 add paypal enrolment expiration action 2013-01-12 15:59:25 +01:00
Petr Škoda 917dddaafe MDL-37187 cleanup and improve enrol_flatfile plugin 2013-01-12 15:50:00 +01:00
Petr Škoda 0b196a09a8 Merge branch 'refs/heads/w02_MDL-37286_m25_tracebuffer' into w02_MDL-37187_m25_flatfile 2013-01-12 15:49:36 +01:00
Petr Škoda 31a22c216c Merge branch 'refs/heads/w02_MDL-37184_m25_editenrol' into w02_MDL-37187_m25_flatfile 2013-01-12 15:49:30 +01:00
Petr Škoda 0aaea0d241 MDL-37184 refactor enrolment editing code to be shared by plugins
AMOS BEGIN
 MOV [editenrolment,enrol_self],[editenrolment,core_enrol]
AMOS END
2013-01-12 15:47:04 +01:00
Petr Škoda 1b20e00828 MDL-35159 fix regressions reported by Iñaki Arenaza 2013-01-12 15:42:21 +01:00
Petr Škoda e34beca17a MDL-35159 add support for enrol_ldap restore 2013-01-12 15:31:30 +01:00
Petr Škoda 4fa7fdeada MDL-37286 improve coding style in unit tests 2013-01-12 15:28:57 +01:00
Petr Škoda e7259ec998 MDL-37286 add new combined_progress_trace
This type of trace should be useful when multiple trace outputs requested.
2013-01-12 15:16:39 +01:00
Petr Škoda 78048e15f2 MDL-37286 add error_log progress trace 2013-01-12 15:16:38 +01:00
Petr Škoda 837e304260 MDL-37286 add progres_trace buffer and unit tests 2013-01-12 15:16:38 +01:00
Petr Škoda 01b4040a27 MDL-37429 zipping improvements
Changes:
* zip_packer can create empty zip archives
* new option to ignore problematic files when creating archive
* detection of non-existent files
* debugging messages for opening of faulty zip archives
* coding style improvements
* no PHP 5.2 hacks
* more unit tests
2013-01-12 14:58:26 +01:00
Jean-Michel Vedrine 52158a41e4 MDL-37313 Sample files with images for XML import 2013-01-11 19:54:06 +01:00
Jean-Michel Vedrine 2387d1cde5 MDL-37313 Moodle XML import format should use draft file areas, not arrays 2013-01-11 19:54:06 +01:00
Tim Hunt 016a651578 MDL-37431 question preview: cron performance problem.
This query was performing badly. The solution seems to be to add a
redundant JOIN and WHERE to the subquery.

I renamed the table aliases in the subquery to avoid name collisions
elsewhere. I am afraid that makes the diff rather unhelpful. The
    AND subq_qu.component = :qubacomponent2
line is new. The other lines have just had subq_ added.
2013-01-11 13:18:21 +00:00
Tim Hunt 816138b4f2 MDL-37378 quiz restore: timecheckstate not in old backups.
We need to avoid a notice. If the value is missing, setting it to 0 is
fine. It will get sorted out the next time cron is run.
2013-01-11 13:17:13 +00:00
Tim Hunt 8d54191d7a MDL-37374 questions: use property_exists rather than isset
$a->field = null; isset($a->field) returns false, which is typical PHP.
I also improve the error handling a bit.
2013-01-11 13:15:51 +00:00
Tim Hunt 1c2bf99eb9 MDL-37485 plugins overview: require_login before _capability. 2013-01-11 12:51:53 +00:00
Eloy Lafuente (stronk7) ca48fe5f97 NOBUG: Bumping version to test auto-packaging 2013-01-11 13:42:08 +01:00
Andrew Robert Nicols 8743aabca0 MDL-37397 Test for a valid select in formautosubmit
Ideally we shouldn't get into this situation, but in cases where the
generated select element is incorrectly configured, we should try and
handle it gracefully with a warning.
2013-01-11 11:49:44 +00:00
Eloy Lafuente (stronk7) 2e5d013417 weekly release 2.5dev 2013-01-11 12:36:05 +01:00
Eloy Lafuente (stronk7) b64a33bade fix permissions 2013-01-11 12:23:22 +01:00
Eloy Lafuente (stronk7) d0942f0744 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2013-01-11 12:15:57 +01:00
Michael Aherne d6af3d847f MDL-27164 groups Do not show multiple instances of the same role as multiple 2013-01-11 11:12:33 +00:00
Dan Marsden 7b63805531 MDL-37394 SCORM: Aicc direct url fails with new nav as it has a single sco with no children - allow these to be navigated correctly. 2013-01-11 23:45:23 +13:00
Andrew Robert Nicols f96ec5ad96 MDL-37413 Use correct variable in chooserdialogue 2013-01-11 08:18:47 +00:00
Ashley Holman cd2b223dc7 MDL-36616 repository: Fix direct linking to images in Flickr Public. 2013-01-11 15:32:30 +08:00
Jason Fowler beff3a9dd5 MDL-35885 - Wiki - add a legend element to the search wikis form 2013-01-11 15:29:35 +08:00
Dan Marsden 3c44304276 MDL-36853 SCORM: get first valid sco instead of array of scos - thanks to Jamie Smith for the fix - fixes PHP warnings when returning to an existing attempt. 2013-01-11 19:47:55 +13:00
David Monllao f16e1af28e MDL-36457 testing Relocating classes 2013-01-11 14:08:50 +08:00
Damyon Wiese 798a060b04 MDL-32341 calendar: get_file_by_hash() expects a hash 2013-01-11 11:55:55 +08:00
Sam Hemelryk f1ac8520ae MDL-36035 course: renamed new functions and cleaned up docs 2013-01-11 15:03:49 +13:00
Brian King e226a86d76 MDL-36035 course: reduce database queries when calling print_whole_category_list
On a Moodle with 1252 course categories, this reduces the database
reads from 1313 to 62 for course/index.php
2013-01-11 15:03:32 +13:00
Aaron Barnes 3b461a0801 MDL-37473 completion: Add missing cap checks to tracked users functions
Namely get_num_tracked_users and is_tracked_user()
2013-01-11 14:41:05 +13:00
Rajesh Taneja 96214a49ec MDL-35780 Administration: email display on user profile view page will respect user capability 2013-01-11 09:33:28 +08:00
Petr Škoda 92b00c32a7 MDL-37420 rework pg schema testing 2013-01-11 02:12:38 +01:00
David Mudrák fe7e411e7c MDL-37467 Do not provide blog posts via RSS when blogging is disabled 2013-01-10 18:22:56 +01:00
Colin Chambers 5d5895f21a MDL-36529 Quiz: Shorten 'Settings for multiple tries' 2013-01-10 16:03:25 +00:00
Colin Chambers 086cced749 MDL-31726 Pre-fill question type combined feedback 2013-01-10 15:57:36 +00:00
Eloy Lafuente (stronk7) 72a504dc2a Merge branch 'MDL-36741_master' of git://github.com/markn86/moodle 2013-01-10 11:13:13 +01:00
Mark Nelson 941294ef43 MDL-36741 mod_forum: fixed the function forum_rss_newstuff that was using count_records_sql incorrectly as well as generating RSS content when no data exists 2013-01-10 17:59:40 +08:00
Dan Poltawski 2008facf40 MDL-37456 - lang: remove unused zip strings 2013-01-10 15:55:54 +08:00
Frederic Massart 95d1d0373b MDL-34435 reports: Log category actions 2013-01-10 15:10:22 +08:00
Rajesh Taneja 9309a8fe9a MDL-35873 Blocks: Made alt-text on block control icons more descriptive 2013-01-10 14:20:12 +08:00
Mark Nelson faf3016f35 MDL-37247 mod_forum: removing unnecessary variable in the get_forums web service 2013-01-10 13:45:45 +08:00
Mark Nelson 0c246ae5d9 MDL-37247 mod_forum: perform conditional checks before returning forums via web service 2013-01-10 12:47:23 +08:00
Dan Poltawski 319d937602 Revert "Merge branch 'wip-MDL-31750-master' of git://github.com/abgreeve/moodle"
This reverts commit 8361f557a1,
2b9e957a27 and
fae51910bf
2013-01-10 11:17:33 +08:00
Andrew Robert Nicols 632f3effdb MDL-36600 Add missing sesskey check when previewing the message 2013-01-10 10:18:56 +08:00
Rajesh Taneja a7a1e05ff9 MDL-29534 Forum: if forum_replytouser is not set then send forum email using noreplyaddress. 2013-01-09 14:50:32 +08:00
Jerome Mouneyrac fb695f6e3d MDL-37354 clean return value for each externallib PHPUnit tests 2013-01-09 13:47:01 +08:00
Frederic Massart 1017426c26 MDL-32639 phpunit: Hack not to fail on debugging 2013-01-09 11:48:44 +08:00
Aaron Barnes 16d89d6604 MDL-36511 course: Save "completion starts on enrolment" disabled state 2013-01-09 15:29:57 +13:00
Sam Hemelryk a0af8cb8c3 Merge branch 'wip-MDL-37404-master' of git://github.com/marinaglancy/moodle 2013-01-09 14:35:09 +13:00
Eloy Lafuente (stronk7) f9f750cecc Merge branch 'w51_MDL-37420_m25_pgschema' of git://github.com/skodak/moodle 2013-01-09 01:32:09 +01:00
Eloy Lafuente (stronk7) 8361f557a1 Merge branch 'wip-MDL-31750-master' of git://github.com/abgreeve/moodle
Conflicts:
	course/tests/courselib_test.php
2013-01-09 01:31:50 +01:00
Sam Hemelryk 7316589831 MDL-36904 mod_assign: Fixed whitespace issue 2013-01-09 12:33:29 +13:00
Sam Hemelryk 6f51092fbe Merge branch 'MDL-35413-master' of git://github.com/damyon/moodle
Conflicts:
	mod/assign/locallib.php
2013-01-09 11:59:43 +13:00
Paul Nicholls 0d47afe69d MDL-37162: Use CSS to make mod show/hide icons not look "clickable" in hidden sections
Previously, the resource toolbox initialiser was using JS to find the show/hide icon, then find its section ancestor, then check if the section was hidden - only to pointlessly set pointer:auto if it was.  That didn't meet the aim stated in the comments ("Disable" show/hide icons (change cursor to not look clickable) if section is hidden), but this patch meets that goal with a single CSS rule.
2013-01-09 11:44:15 +13:00
Eloy Lafuente (stronk7) e801c74c54 Merge branch 'w51_MDL-37183_m25_excelcleanup' of git://github.com/skodak/moodle 2013-01-08 23:30:19 +01:00
Eloy Lafuente (stronk7) c68f339e5e Merge branch 'wip-MDL-37203-m25' of git://github.com/samhemelryk/moodle 2013-01-08 23:25:34 +01:00
Eloy Lafuente (stronk7) ac4c7aed68 Merge branch 'w51_MDL-35356_m25_excel' of git://github.com/skodak/moodle
Conflicts:
	lib/odslib.class.php
2013-01-08 23:11:54 +01:00
Sam Hemelryk 3913743aa3 Merge branch 'MDL-35443-wip' of git://github.com/mouneyrac/moodle 2013-01-09 10:20:46 +13:00
Sam Hemelryk 5ba45e34bb Merge branch 'wip-MDL-35842-master' of git://github.com/phalacee/moodle 2013-01-09 10:07:16 +13:00
Sam Hemelryk 21117c9d17 Merge branch 'wip-MDL-35891-master' of git://github.com/phalacee/moodle 2013-01-09 09:41:00 +13:00
Sam Hemelryk 086e78da69 MDL-36357 cache: removed double semicolon 2013-01-09 09:37:09 +13:00
Sam Hemelryk f44e7d0a77 Merge branch 'MDL-36357' of git://github.com/danpoltawski/moodle
Conflicts:
	user/view.php
2013-01-09 09:34:22 +13:00
Andrew Robert Nicols 60fb0ef8a9 MDL-36600 user: improve course messaging checks 2013-01-09 09:21:35 +13:00
Eloy Lafuente (stronk7) 4f90540e0c Merge branch 'w51_MDL-37152_m25_smtp' of git://github.com/skodak/moodle 2013-01-08 18:01:43 +01:00
Petr Škoda 59706ff6c7 MDL-37420 add support for db schemas in auth test 2013-01-08 17:20:42 +01:00
Petr Škoda 917fddb5e2 MDL-37420 add support for db schemas in enrol test 2013-01-08 17:20:26 +01:00
Petr Škoda 6ad8d762da MDL-37420 add support for more PostgreSQL schemas 2013-01-08 17:12:31 +01:00
sam marshall aebe9db07f MDL-37395 Add .jar filetype so Moodle doesn't incorrectly call it a zip file 2013-01-08 12:49:23 +00:00
Jean-Michel Vedrine d55399a098 MDL-28183 fix for problem during integration
Conflicts:
	question/type/multianswer/question.php
2013-01-08 12:03:48 +01:00
Eloy Lafuente (stronk7) f9ba4fd83b Merge branch 'MDL-37220_dnd_icon' of git://github.com/davosmith/moodle 2013-01-08 11:54:19 +01:00
Eloy Lafuente (stronk7) a74c3851f7 Merge branch 'w51_MDL-37284_m25_mysqlutf8' of git://github.com/skodak/moodle 2013-01-08 11:39:23 +01:00
Andrew Robert Nicols 98e1ff5f9f MDL-37173 Stop attempting to set User-Agent from core JS
This leads to some browsers throwing warnings that it is unsafe to set the
User-Agent. It doesn't help us in any way particularly either.
2013-01-08 09:55:44 +00:00
Eloy Lafuente (stronk7) 783a51ba48 Merge branch 'w51_MDL-37291_m25_paypalrestore' of git://github.com/skodak/moodle 2013-01-08 10:51:49 +01:00
Eloy Lafuente (stronk7) cf78070a63 Merge branch 'w51_MDL-37186_m25_tinymceconfig' of git://github.com/skodak/moodle 2013-01-08 10:34:04 +01:00
Eloy Lafuente (stronk7) b315a45274 Merge branch 'w51_MDL-37323_m25_dlgstrings' of git://github.com/skodak/moodle 2013-01-08 10:21:50 +01:00
Andrew Robert Nicols a6d96f27e8 MDL-37415 Fix JSHint issues for moodle-core-chooserdialogue 2013-01-08 08:57:08 +00:00
Dan Poltawski 6c8d7fed66 Merge branch 'w51_MDL-7537_m25_paypalcur' of git://github.com/skodak/moodle 2013-01-08 16:49:47 +08:00
Dan Poltawski 6d0a62bc37 MDL-3941 - version bump for TLS support in ldap 2013-01-08 16:42:47 +08:00
Dan Poltawski 6c74a228f3 Merge branch 'wip_master_mdl-3941_add_support_for_LDAP_TLS' of git://github.com/iarenaza/moodle 2013-01-08 16:40:50 +08:00
Jerome Mouneyrac c2bc5a7008 MDL-37194 activity chooser displays entire list of default activities/resources 2013-01-08 16:39:55 +08:00
Jerome Mouneyrac c5f7628d39 MDL-37381 core_external::get_component_strings returns wrong format value 2013-01-08 16:23:24 +08:00
Isaac Marco Blancas 228e09cdd1 MDL-29534 Forum: If forum_replytouser is not set then don't display from user email" 2013-01-08 16:16:02 +08:00
Dan Poltawski 655b566b9e Merge branch 'w51_MDL-37299_m25_manselfprogress' of git://github.com/skodak/moodle 2013-01-08 15:08:05 +08:00
Dan Poltawski 1a12cbd9df Merge branch 'w51_MDL-35685_m25_capinit_b' of git://github.com/skodak/moodle 2013-01-08 14:50:29 +08:00
Dan Poltawski bfb5580f92 Merge branch 'MDL-32639-master' of git://github.com/FMCorz/moodle 2013-01-08 14:46:14 +08:00
Dan Poltawski 81a38f50fb Merge branch 'wip_master_mdl-28585_ldap_auth_doesnt_handle_password_expiration' of https://github.com/iarenaza/moodle 2013-01-08 14:40:15 +08:00
Dan Poltawski c37c9e760d Merge branch 'w51_MDL-37125_m25_yui380' of git://github.com/skodak/moodle 2013-01-08 14:29:32 +08:00
Dan Poltawski 397e4ecf76 Merge branch 'w51_MDL-37282_m25_tinymce358' of git://github.com/skodak/moodle 2013-01-08 14:26:52 +08:00
Dan Poltawski df0b14c3b5 Merge branch 'w51_MDL-37303_m25_enrolinstancestatus' of git://github.com/skodak/moodle 2013-01-08 14:22:11 +08:00
Dan Poltawski 7f3e944aa1 Merge branch 'w51_MDL-37304_m25_authdbcleanup' of git://github.com/skodak/moodle 2013-01-08 14:15:22 +08:00
Jason Fowler 21c3b51e27 MDL-36620 - Blog, RSS - Preventing Guests from viewing the RSS of site level blogs 2013-01-08 14:06:32 +08:00
Ankit Agarwal 7a216229ab MDL-37106 calendar: Proper capability checks should be done before processing an ical request 2013-01-08 14:03:38 +08:00
Jason Fowler 0232fa7b32 MDL-30316 - Libraries - improving pagination output to allow a shifting start page for displays of less than 18 pages -- original code provided by Martha (martha dot morelos at gmail dot com) 2013-01-08 14:02:06 +08:00
Dan Poltawski d161e37488 Merge branch 'MDL-36738-master' of git://github.com/ankitagarwal/moodle 2013-01-08 13:57:47 +08:00
Ankit Agarwal 7af294352b MDL-36738 calendar: Display events imported details
We should display a the status of events when a new subscription is added. Although this means we need to redirect through an itermediate page.
2013-01-08 13:47:49 +08:00
Ankit Agarwal 8c84f374c0 MDL-36738 calendar: Ical subscription list should display type of event 2013-01-08 13:47:48 +08:00
Dan Poltawski 87ffc3fb69 Merge branch 'MDL-27901-master' of git://github.com/FMCorz/moodle 2013-01-08 13:01:00 +08:00
Dan Poltawski 3dab21591d Merge branch 'w51_MDL-21116_m52_reversedel' of git://github.com/skodak/moodle 2013-01-08 12:58:16 +08:00
Dan Poltawski 7378493ee9 Merge branch 'MDL-37247_master' of git://github.com/markn86/moodle 2013-01-08 12:50:44 +08:00
Dan Poltawski 4c345a1ed4 Merge branch 'MDL-36955' of git://github.com/jmvedrine/moodle 2013-01-08 12:20:54 +08:00
Mark Nelson 2b9fe87dca MDL-37247 mod_forum: adding webservice function to allow for the retrieval of forum instances 2013-01-08 12:19:49 +08:00
Dan Poltawski 9519d41142 MDL-28183 - fix trailing whitespace 2013-01-08 12:18:49 +08:00
Dan Poltawski b5b418b2a7 Merge branch 'MDL-28183' of git://github.com/jmvedrine/moodle 2013-01-08 12:17:51 +08:00
Dan Poltawski f858088cc4 Merge branch 'w51_MDL-37191_m25_plugindelete' of git://github.com/skodak/moodle 2013-01-08 11:16:43 +08:00
Dan Poltawski cfb209a538 Merge branch 'MDL-31641_drag_drop_help' of git://github.com/davosmith/moodle 2013-01-08 10:54:01 +08:00
Dan Poltawski f94ed34126 MDL-35130 - remove unused string 2013-01-08 10:52:18 +08:00
Dan Poltawski 230a377474 Merge branch 'MDL-35130-master' of https://github.com/mackensen/moodle 2013-01-08 10:50:46 +08:00
Dan Poltawski a57ce0fde4 Merge branch 'w51_MDL-37297_m25_enrolcatprogress' of git://github.com/skodak/moodle 2013-01-08 10:48:13 +08:00
Dan Poltawski 00079538b9 Merge branch 'MDL-36456-master' of git://github.com/FMCorz/moodle 2013-01-08 10:30:50 +08:00
Dan Poltawski a1d9f433ec Merge branch 'w51_MDL-37301_m25_coursecatinfoas' of git://github.com/skodak/moodle 2013-01-08 10:26:44 +08:00
Dan Poltawski 36b6340532 Merge branch 'w51_MDL-37254_m25_courseinfoas' of git://github.com/skodak/moodle 2013-01-08 10:24:01 +08:00
Dan Poltawski a275bedb38 Merge branch 'w51_MDL-37298_m25_enrolcohprogress' of git://github.com/skodak/moodle 2013-01-08 10:16:19 +08:00
Paul Nicholls a0dc7da9b4 MDL-29835: filemanager - zero means zero, not unlimited
The form_filemanager constructor was using empty() rather than !isset(),
so overwrote maxfiles=0 with the default (-1).  In addition, the JS UI
treated 0 as unlimited - but the non-JS fallback UI treated it as zero.
This would result in a file manager which allowed files to be
chosen/uploaded, which would then vanish into the void when the backend
saw that the maximum number of files was 0.
2013-01-08 15:12:50 +13:00
Dan Poltawski e06c710e87 Merge branch 'w51_MDL-37293_m25_enroldbprogress' of git://github.com/skodak/moodle 2013-01-08 09:52:29 +08:00
Sam Hemelryk b68fb448ef Merge branch 'wip-mdl-36958' of git://github.com/rajeshtaneja/moodle 2013-01-08 14:07:03 +13:00
Sam Hemelryk c4c1504b44 Merge branch 'w51_MDL-35893_m25_perfinstall' of git://github.com/skodak/moodle 2013-01-08 14:00:44 +13:00
David Mudrák 0ab681d3e7 MDL-36977 Be more picky when it comes to migrating files in moodle1 backups 2013-01-08 08:53:38 +08:00
David Mudrák 7b66137f7b MDL-36977 Add more unit tests for moodle1 backup conversion 2013-01-08 08:53:37 +08:00
Marina Glancy 27efa6bfac MDL-37404 add class 'format-xxx' to the body for the current course format 2013-01-08 11:50:01 +11:00
Paul Nicholls 30793ea3bd MDL-35074: grader report - Ease limit on number of students per page
The limit imposed by max_input_vars "applies only to each nesting level of
a multi-dimensional input array"
(http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars).

Turning the grader report fields into arrays (they were all top-level form
fields, i.e. elements of the top-level array) makes the number of students
become the only limiting factor, thereby allowing us to relax the limit on
number of students per page greatly (to 1 less than max_input_vars, for
safety).
2013-01-08 13:44:02 +13:00
Sam Hemelryk be5a3168df MDL-21342 auth: tidy up pre-integration 2013-01-08 13:41:22 +13:00
Sam Hemelryk 70601b9433 Merge branch 'w51_MDL-21342_m25_lockout' of git://github.com/skodak/moodle 2013-01-08 10:56:39 +13:00
Eloy Lafuente (stronk7) 17e5c6e8d2 Merge branch 'MDL-35794' of git://github.com/timhunt/moodle 2013-01-07 22:40:00 +01:00
Eloy Lafuente (stronk7) 3cb7609bd6 Merge branch 'MDL-35792' of git://github.com/timhunt/moodle 2013-01-07 22:35:06 +01:00
Sam Hemelryk 7f30a6449b MDL-34344 config: added unit tests for get_config 2013-01-08 09:52:19 +13:00
sam marshall e81da1540a MDL-36095 Section availability: Make behaviour consistent with activities 2013-01-07 15:57:00 +00:00
Petr Škoda 8d21130267 MDL-29996 cleanup filter plugin info 2013-01-07 12:42:13 +01:00
Eloy Lafuente (stronk7) caf575e2bf Merge branch 'w51_MDL-36807_m25_mysocket' of git://github.com/skodak/moodle 2013-01-07 11:44:16 +01:00
Sam Hemelryk 007bfe8b4d MDL-25290 conversion: Converted config to use MUC 2013-01-07 19:22:40 +13:00
Dan Poltawski bfa2b0382f Merge branch 'MDLmaster-MDL-37157-2' of https://github.com/OdyX/moodle 2013-01-07 13:59:52 +08:00
Dan Poltawski 5083fe2194 Merge branch 'w51_MDL-37128_m25_rssrestore' of git://github.com/skodak/moodle 2013-01-07 13:56:57 +08:00
Dan Poltawski 8057d3ee77 Merge branch 'w51_MDL-36893_m25_mnetestrict' of git://github.com/skodak/moodle 2013-01-07 13:53:14 +08:00
Dan Poltawski 6f4cf4656e Merge branch 'MDL-35230-master' of git://github.com/andrewnicols/moodle 2013-01-07 13:41:16 +08:00
Dan Poltawski bc897f9d63 Merge branch 'MDL-27884-master' of git://github.com/ankitagarwal/moodle 2013-01-07 13:30:24 +08:00
Sam Hemelryk b8459c0267 MDL-29996 filters: fixed bug when upgrading filter plugin names 2013-01-07 17:40:41 +13:00
Andrew Davis 10d8f0852b MDL-33117 grade: adding unit tests for the user report function inject_rowspans() 2013-01-07 11:57:04 +08:00
Jerome Mouneyrac 9a4c2f50c9 MDL-37355 object are automatically cast into object by the return value 2013-01-07 11:12:32 +08:00
Damyon Wiese e00b5c454c MDL-37244 Assignment: Submission comments plugin does not implement comments callbacks.
This allows anyone to view or modify anyone elses submission comments.
2013-01-07 10:48:26 +08:00
Ankit Agarwal 986095771b MDL-33340 completion: Incorrect logic in hidden field check
Credit to Jody Steele
2013-01-07 10:36:00 +08:00
Sam Hemelryk dd89f61e68 Merge branch 'w51_MDL-29996_m25_oldfilters' of git://github.com/skodak/moodle 2013-01-07 15:22:37 +13:00
Simon Coggins fd1d829500 MDL-35991 - use PARAM_LOCALURL for local urls 2013-01-07 10:09:20 +08:00
Rajesh Taneja 30697cf3fe MDL-37062 Course: Show one 'Add new course' button
Currently if there is no course and admin/course creator go to create course, he/she see two
'Add new course' buttons.
2013-01-07 09:44:36 +08:00
Dan Poltawski f7551c2e62 Merge branch 'MDL-36667-master' of git://github.com/damyon/moodle 2013-01-07 09:42:31 +08:00
Sam Hemelryk 8ca9539be5 Merge branch 'MDL-37161-master' of https://github.com/StudiUM/moodle 2013-01-07 14:15:50 +13:00
Sam Hemelryk 1bdc017f42 Merge branch 'w51_MDL-36212_m25_entities' of git://github.com/skodak/moodle 2013-01-07 13:45:15 +13:00
Sam Hemelryk 816635ff03 Merge branch 'MDL-37068' of git://github.com/timhunt/moodle 2013-01-07 13:40:08 +13:00
Sam Hemelryk 68ed412599 Merge branch 'w51_MDL-37281_m25_othersnav' of git://github.com/skodak/moodle 2013-01-07 13:35:25 +13:00
Sam Hemelryk 5fc4ac8549 Merge branch 'MDL-36855-master' of git://github.com/ankitagarwal/moodle 2013-01-07 12:05:26 +13:00
Sam Hemelryk aedad9fcf3 Merge branch 'w51_MDL-37302_m25_roleedit' of git://github.com/skodak/moodle 2013-01-07 11:58:17 +13:00
Sam Hemelryk 99f64911ee Merge branch 'wip-MDL-7660-master' of git://github.com/abgreeve/moodle 2013-01-07 11:40:11 +13:00
Sam Hemelryk b8e551a89e Merge branch 'MDL-4781-master' of https://github.com/mackensen/moodle 2013-01-07 11:14:47 +13:00
Sam Hemelryk f27cbf0790 Merge branch 'MDL-35887_dnd_completion' of git://github.com/davosmith/moodle 2013-01-07 11:06:41 +13:00
Sam Hemelryk 02ad855adc Merge branch 'MDL-16730-master' of git://github.com/ankitagarwal/moodle 2013-01-07 10:15:38 +13:00
Sam Hemelryk 9fa3979c15 Merge branch 'w51_MDL-37105_m25_catlimit' of git://github.com/skodak/moodle 2013-01-07 09:53:06 +13:00
Sam Hemelryk b33f3d7c40 Merge branch 'MDL-37359_master' of git://github.com/markn86/moodle 2013-01-07 09:47:02 +13:00
Sam Hemelryk 77f3d50d92 Merge branch 'MDL-29327_none' of git://github.com/andyjdavis/moodle 2013-01-07 09:38:31 +13:00
Sam Hemelryk 083d5f8a48 Merge branch 'MDL-36741_master' of git://github.com/markn86/moodle 2013-01-07 09:15:53 +13:00
Sam Hemelryk 9ae14001aa Merge branch 'w51_MDL-37315_m25_ldappaging' of git://github.com/skodak/moodle 2013-01-07 09:09:50 +13:00
Petr Škoda 8e7591654a MDL-35356 improve worksheet exports
This patch removes deprecated PEAR excel export lib in favour of newer PHPExcel,
the ODS exporter implementation is finished and a test script is included.

The default Excel format is now 2007, file extension is changed automatically
to match excel format.
2013-01-06 18:15:20 +01:00
Jean-Philippe Gaudreau 924b8d7274 MDL-37161 Backup: Database error caused by grade book settings when importing or restoring a course 2013-01-04 09:59:59 -05:00
Petr Škoda c4844bf45c MDL-21342 deprecate unused login functions 2013-01-04 15:17:14 +01:00
Petr Škoda b28247fe90 MDL-21342 add user login lockout 2013-01-04 15:12:31 +01:00
Davo Smith 0470a094e2 MDL-35568 course dndupload - resources created with the same visibility as the section they are dragged onto 2013-01-04 12:31:31 +00:00
Damyon Wiese 47f48152f7 MDL-35413 Assignment: Add unit tests (lots of them). 2013-01-04 15:51:08 +08:00
Damyon Wiese e5403f8c44 MDL-36904 Assignment: Fix all errors and warnings from codechecker 2013-01-04 15:46:15 +08:00
Mark Nelson 9e222bac61 MDL-37359 groups: fixing typo in the web service function create_groupings_parameters 2013-01-04 15:23:12 +08:00
Damyon Wiese d6c673ed4e MDL-36712: Assignment - Do not always send feedback available emails when grade is created
The entry in the assign_grades table contains grades feedback and other settings such as locked.
Only send the student an email about new feedback if it is actually grades or feedback that
has been added. This is done by using another state for the mailed flag (2) which means "unset".
2013-01-04 14:46:14 +08:00
Jerome Mouneyrac 6a30d03e5f MDL-37355 Fix the REST server that didn't send back the cleaned values 2013-01-04 14:23:02 +08:00
Adrian Greeve 173c6f2c8b MDL-7660 - mod_data: Changed the filepicker to filemanager for field elements.
This allows users to delete their files or pictures when editing their entries
which was previously unavailable.

Also the use of the filemanager allows for drag and drop to be active.
2013-01-04 12:17:47 +08:00
Andrew Davis bd26d932ff MDL-29327 core_grade: removing some code that is messing up the categories and items screen when no grade categories are used 2013-01-04 08:25:41 +08:00
Ankit Agarwal 40652808e3 MDL-36855 scorm: update to api get_scorm_question_count()
get_scorm_question_count() should return 0 not 1 when no attempt is made in a scorm by any student
2013-01-03 14:40:36 +08:00
Jason Fowler 864b7c0130 MDL-35056 - Backup - Removing Dependencies Unmet string from lang files 2013-01-03 10:55:13 +13:00
Sam Hemelryk e85c56ccb8 MDL-36297 caching: added for HTML purified text 2013-01-03 10:55:00 +13:00
Paul Charsley c144959c4d MDL-31682 added mod_assign_get_submissions web service function 2013-01-03 09:46:59 +13:00
Ankit Agarwal 7bf99ee558 MDL-27884 Implement proper username validation during csv import 2013-01-02 14:09:13 +08:00
Ankit Agarwal cb2619150c MDL-27884 blocks: Correcting config title string
AMOS BEGIN
 CPY [configtitle,block_html],[configtitle,block_tags]
AMOS END
2013-01-02 10:39:16 +08:00
Petr Škoda bc5d899510 MDL-35893 do not track performance before installation 2013-01-01 15:50:26 +01:00
Petr Škoda 97155c387d MDL-37323 add support for _dlg strings in our TinyMCE subplugins
Credit goes to Étienne FLORENT, thanks.
2013-01-01 15:25:43 +01:00
AMOS bot 1bfab997c7 Automatically generated installer lang files 2013-01-01 00:42:59 +00:00
Petr Škoda 0662bd677c MDL-29996 remove deprecated stuff from filter code 2012-12-30 17:02:18 +01:00
Petr Škoda fba0abdc22 MDL-29996 remove legacy_filter support 2012-12-30 12:44:43 +01:00
Petr Škoda d8e74f5be7 MDL-29996 remove unnecessary signed tricks 2012-12-30 12:44:42 +01:00
Jean-Michel Vedrine c2f056a925 MDL-36955 Multianswer grading penalties do not address subparts 2012-12-30 11:59:34 +01:00
Jean-Michel Vedrine e9af609176 MDL-28183 add num parts correct and clear wrong to multianswer 2012-12-30 11:55:21 +01:00
Eloy Lafuente (stronk7) 9da506c2a3 weekly on-sync release 2.5dev 2012-12-30 01:07:00 +01:00
Petr Škoda ed05ee6b99 MDL-37315 fix connection reopening in ldap paging 2012-12-30 00:57:43 +01:00
Petr Škoda e7aeaa6590 MDL-37304 cleanup auth_db and use progress_trace 2012-12-29 21:57:57 +01:00
Petr Škoda 5d549ffc8c MDL-37299 use progress_trace in enrol_manual and enrol_self sync 2012-12-29 21:50:32 +01:00
Petr Škoda 411c3f9800 MDL-37293 user progress_trace in enrol_database sync 2012-12-29 21:43:03 +01:00
Petr Škoda 961fbc4f84 MDL-37297 user progress_trace in enrol_category sync 2012-12-29 21:40:07 +01:00
Petr Škoda 63a15b38ad MDL-36893 fix mnet E_STRICT issue 2012-12-27 14:32:31 +01:00
Petr Škoda bb900d139c MDL-37105 prevent fatal error when category limit reached 2012-12-27 13:52:14 +01:00
Petr Škoda 3d89a36a85 MDL-37128 fix E_STRICT rss restore issue 2012-12-27 13:39:09 +01:00
Petr Škoda dd9cd338cf MDL-37301 fix missing AS in select
This was breaking pg 8.3. Credit goes to Thomas Robb, thanks.
2012-12-26 22:25:24 +01:00
Petr Škoda 3a103fd806 MDL-xxxx show appropriate instance status on user enrolments page 2012-12-26 17:28:09 +01:00
Petr Škoda e9ca9d3063 MDL-37302 allow admin to unassign any role on enrolment and other users pages 2012-12-26 12:02:08 +01:00
Petr Škoda 483e6f5cde MDL-37302 allow removal of enrol roles if plugin allows it 2012-12-26 11:37:08 +01:00
Petr Škoda c61162310c MDL-37298 use progress_trace in enrol_cohort sync 2012-12-25 14:55:37 +01:00
Dan Poltawski b20d65f271 Merge branch 'MDL-37037-master' of git://github.com/damyon/moodle 2012-12-24 12:23:03 +08:00
Dan Poltawski 5066f30bed Merge branch 'w51_MDL-37233_m25_skype' of git://github.com/skodak/moodle 2012-12-24 11:34:40 +08:00
Dan Poltawski 33950c3039 Merge branch 'wip-MDL-37263-m25' of git://github.com/samhemelryk/moodle 2012-12-24 11:22:43 +08:00
Dan Poltawski 1b5c5e5788 Merge branch 'wip-MDL-37290-m25' of git://github.com/samhemelryk/moodle 2012-12-24 10:54:51 +08:00
Dan Poltawski 51feee1f64 Merge branch 'w51_MDL-37283_m25_spell' of git://github.com/skodak/moodle 2012-12-24 10:35:33 +08:00
Sam Hemelryk 3330e65354 MDL-37290 course: fixed up navbar when editing categories 2012-12-24 13:05:56 +13:00
Sam Hemelryk eaf750cd9a Merge branch 'wip-MDL-35833-master' of git://github.com/phalacee/moodle 2012-12-24 11:43:59 +13:00
Sam Hemelryk bef123d608 Merge branch 'MDL-36966-master' of git://github.com/damyon/moodle 2012-12-24 11:16:26 +13:00
Sam Hemelryk 486c53f25c Merge branch 'wip-mdl-37015' of git://github.com/rajeshtaneja/moodle 2012-12-24 10:55:31 +13:00
Petr Škoda 471b96c41e MDL-37291 implement full paypal restore support 2012-12-23 22:11:45 +01:00
Sam Hemelryk 296064bb9a Merge branch 'wip-MDL-35653-master' of git://github.com/abgreeve/moodle 2012-12-24 09:40:55 +13:00
Sam Hemelryk fe0980f846 Merge branch 'master_MDL-37225_static_cache_purge' of git://github.com/brki/moodle 2012-12-24 09:34:46 +13:00
Sam Hemelryk d1a73b2add Merge branch 'MDL-36455_master' of git://github.com/markn86/moodle 2012-12-24 09:30:35 +13:00
Petr Škoda 0456edb4ee MDL-7537 add all PayPal supported currencies 2012-12-23 13:09:25 +01:00
Petr Škoda f092d92004 MDL-21116 drop plugin tables in opposite order
This should help with foreign key in the future.
2012-12-22 19:01:00 +01:00
Petr Škoda 9d0ded6697 MDL-37284 fix mysql test for unicode compatibility 2012-12-22 18:42:55 +01:00
Tim Hunt bf7b7f45d1 MDL-37068 qformat_learnwise: fix UTF8 and other issues. 2012-12-22 17:38:52 +00:00
Thanh Le d18f78b046 MDL-35794 quiz: config for whether Outcomes are advanced settings 2012-12-22 17:38:45 +00:00
Tim Hunt 4125ded139 MDL-35793 question preview: config for the display options.
The settings control the display options used when a user
first previews a question in the question bank. Once a
user has previewed some questions, these are stored as user
preferences.

It may not seem worth making this configurable, but acutally
it is important when training new users to get them started
off using the right opitions.
2012-12-22 17:38:37 +00:00
Thanh Le 599cc731e3 MDL-35792 question preview: way to update options without restarting.
It is useful, and possible, to update the display options without
restarting the question. You now only have to restart if you are
changing the maximum mark or the behaviour.
2012-12-22 17:38:30 +00:00
Tim Hunt f187622a0d MDL-31616 block editing: show in subcontexts does not work on category pages.
Thanks to Ian David Wild for pointing to the proper fix.
2012-12-22 17:37:49 +00:00
Petr Škoda 48d2e1117f MDL-37283 import tinymce spellchecker 2.0.6.1 2012-12-22 16:44:55 +01:00
Petr Škoda d10f3e9fef MDL-37282 import TinyMCE 3.5.8 2012-12-22 16:24:20 +01:00
Petr Škoda a1b5490ac4 MDL-37281 fix other users current navigation node 2012-12-22 14:58:39 +01:00
Petr Škoda 017a713900 MDL-37152 remove bogus $mail->IsSMTP() breaking non-smtp mailing
Credit goes to Aurelijus Bruzas, thanks.
2012-12-22 14:46:44 +01:00
Petr Škoda 171215d465 MDL-37254 add missing AS keyword 2012-12-22 14:11:22 +01:00
Petr Škoda d2fec87baf MDL-37233 do not show skype status icon on https sites
Funny that the same company that implemented the IE security warnings is unable to set up SSL on the Skype status server…
2012-12-21 17:26:36 +01:00
Petr Škoda 3db309dcc4 MDL-37191 do not timeout when uninstalling plugins 2012-12-21 15:58:25 +01:00
Petr Škoda 2c4bccd5b8 MDL-35685 attempt to improve slow USER access array init 2012-12-20 22:51:29 +01:00
Sam Hemelryk 9966db51f0 MDL-37263 cache: fixed event invalidation coding error 2012-12-21 10:50:07 +13:00
Petr Škoda 7539894649 MDL-36212 rework html entity conversions
This should resolve all html entity conversion problems in different PHP versions.
2012-12-20 22:47:16 +01:00
Petr Škoda b66e926895 MDL-36807 use our mysql socket logic in adodb tests 2012-12-20 22:41:18 +01:00
Petr Škoda 49ee37d3ac MDL-36898 use only enrolled users as course contacts 2012-12-20 22:38:50 +01:00
Petr Škoda 6846f033a9 MDL-37125 import latest YUI 3.8.0 2012-12-20 22:31:51 +01:00
Petr Škoda 301ebbe512 MDL-37183 remove ancient unused excel library 2012-12-20 22:26:59 +01:00
Petr Škoda 23ac6ef6c5 MDL-37186 add the ultimate TinyMCE custom parameter setting 2012-12-20 22:24:15 +01:00
Eloy Lafuente (stronk7) 0dc5a532ec weekly on-sync release 2.5dev 2012-12-20 21:13:26 +01:00
Eloy Lafuente (stronk7) 29400ba5d6 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-12-20 20:56:58 +01:00
Charles Fulton 63f329cad5 MDL-35130 shibboleth: remove hard-coded string 2012-12-20 10:28:23 -08:00
Mary Evans 4c71a80acd MDL-25630 moodle/index.php: Wraps individual front page content elements (Site news/Course list/Category names/Category combo) in divs with descriptive classes so they can be styled individually. 2012-12-20 17:38:08 +00:00
Charles Fulton 4a112ec8c5 MDL-4781 forum: show discussion link when user has ability to view discussion 2012-12-20 05:59:41 -08:00
Eloy Lafuente (stronk7) 92bdda9bd9 Merge branch 'w50_MDL-37171_m25_outdatedexcel' of git://github.com/skodak/moodle 2012-12-20 10:22:46 +01:00
Jason Fowler d01176bfc9 MDL-35833 - Blocks - Adding alt and title attributes to the docked-block panel close button 2012-12-20 10:42:20 +08:00
Rajesh Taneja e5ad278a94 MDL-37015 Resource: link in onclick should not contain html special char 2012-12-20 10:21:36 +08:00
Dan Poltawski b93e0af3fe Revert "MDL-36704: wrap pending conditions in span tags"
This reverts commit 5e9fd83df8.
2012-12-20 08:45:04 +08:00
AMOS bot 15da42c874 Automatically generated installer lang files 2012-12-20 00:40:36 +00:00
Tim Hunt 9645fe83ff MDL-32245 question bank: update URL after moving question between categories.
Also, improve the URL when you go to edit the questions in a category.
2012-12-20 12:12:22 +13:00
Petr Škoda cdd651a676 MDL-37171 fix some more E_STRICT issues
Credit goes to Mark Nelson, thanks.
2012-12-19 09:54:53 +01:00
Adrian Greeve 9daabc71ea MDL-35653 - mod/wiki: Force format now lets users edit wiki pages.
Thanks to Tõnis Tartes for part of this solution.

When force format was selected in the options, trying to view the
wiki would redirect to the front page with a message saying that
you do not have permission to edit this page. Students had no way
of viewing any entries or creating the first page.

When in force format it skips a page , which would be considered
uncessary for students, but this means that the group id is not set
and this is what is causing most of the problems.

I also have included a check to see if the title is default and whether
the user has permission to view all groups. In these situations the
intermediate page is displayed.
2012-12-19 08:47:26 +08:00
AMOS bot 864f08b4d9 Automatically generated installer lang files 2012-12-19 00:41:59 +00:00
Brian King 6e89fb0309 MDL-37225 reset cachstore_static store when purging 2012-12-18 23:57:22 +01:00
Eloy Lafuente (stronk7) 917169221f Merge branch 'w50_MDL-36245_m25_convert' of git://github.com/skodak/moodle 2012-12-18 23:41:48 +01:00
Davo Smith 08c2331cb5 MDL-37220 course dndupload - improved 'add files' icon 2012-12-18 21:11:35 +00:00
Davo Smith c7e61fba0a MDL-35887 course dndupload - correct default used for completion tracking when resources created by drag and drop 2012-12-18 20:46:26 +00:00
Eloy Lafuente (stronk7) 421d18fd2e Merge branch 'wip-MDL-36339-master' of git://github.com/marinaglancy/moodle 2012-12-18 21:36:42 +01:00
Davo Smith a8b418e82c MDL-31641 filemanager - display help message when drag and drop upload is not supported 2012-12-18 20:22:20 +00:00
Didier Raboud 5a449045c2 MDL-37157: Normalize short answers before comparison
This ensures that ambiguous Unicode representations can be compared sanely.
Also add some tests to ensure it keeps working.

Thanks to Tim Hunt for the syntax check.
2012-12-18 18:44:15 +01:00
Matt Oquist e9d87d90cf MDL-36958 Forum: Replaced hard-coded numbers with proper defines 2012-12-18 17:26:50 +08:00
Dan Poltawski 86575fa709 Merge branch 'MDL-36704-master' of git://github.com/sammarshallou/moodle 2012-12-18 14:57:43 +08:00
Dan Poltawski 033b07895c Merge branch 'MDL-37014_webdav_folders' of git://github.com/davosmith/moodle 2012-12-18 14:52:27 +08:00
Dan Poltawski 22898af76f MDL-36259 - change case of table alias to match definition 2012-12-18 14:27:46 +08:00
Dan Poltawski 3ab43c0502 Merge branch 'MDL-36259' of git://github.com/timhunt/moodle 2012-12-18 14:25:52 +08:00
Damyon Wiese 2406815bbf MDL-37030 Assignment: Fix error on download all submissions.
When group submissions and blind marking are enabled, an error is thrown
when a teacher trys to download all submissions in a zip. The fix is to
move the url rewriting from the plugin to the assign class so it is
done in a standard way by all modules. The rewriting is done to make images
in a text editor field resolve correctly.
2012-12-18 12:17:25 +08:00
Mark Nelson bfe20414c0 MDL-36455 blocks: removed ability to add blocks to the My Moodle page that did not make sense in that context 2012-12-18 11:32:35 +08:00
Damyon Wiese afa3e637a4 MDL-37037 Assignment Some minor refactoring of the previous patch
This just makes the control flow a bit easier to read.

I also added a continue button to take you back to the grading page.
2012-12-18 09:19:23 +08:00
Dan Poltawski 3280819b20 Merge branch 'MDL-30899_master' of git://github.com/dmonllao/moodle 2012-12-18 09:10:42 +08:00
Michael Aherne 5c77835865 MDL-37037 assign Show message if no files to download 2012-12-18 08:54:10 +08:00
AMOS bot ecc6fc7e2d Automatically generated installer lang files 2012-12-18 00:45:13 +00:00
Damyon Wiese 64220210de MDL-35740 Assignment: Change the assignment index page to use a renderer.
This also cleans up the patch to prevent students from seeing the number of submissions for the assignment.
2012-12-18 08:44:53 +08:00
Raymond Wijaya 0c631fbef6 MDL-35740 Assignment: Hide the number of assignment submissions for all students that was visible to all students through the activities block 2012-12-18 08:44:53 +08:00
Raymond Wijaya f81dc1222d MDL-36966 Assignment: Bug - Student submission appears graded by themselves.
Fix a bug when a student editing his submission after it has been graded, it changes the 'graded by' details to the student's name in the feeback summary
2012-12-18 08:39:31 +08:00
Eloy Lafuente (stronk7) cbef51f54b Merge branch 'MDL-36842' of git://github.com/timhunt/moodle 2012-12-18 00:17:51 +01:00
Eloy Lafuente (stronk7) 7039c823dc Merge branch 'w50_MDL-37171_m25_outdatedexcel' of git://github.com/skodak/moodle 2012-12-18 00:13:45 +01:00
Sam Hemelryk 9674194eec Merge branch 'w50_MDL-36475_m25_zindexesgrrr' of git://github.com/skodak/moodle 2012-12-18 10:43:00 +13:00
Sam Hemelryk 2ea5e39ea3 Merge branch 'MDL-36490_master' of git://github.com/lazydaisy/moodle 2012-12-18 10:40:46 +13:00
Sam Hemelryk 03765b2e9d Merge branch 'MDL-37035' of git://github.com/adrianfish/moodle 2012-12-18 10:32:10 +13:00
Sam Hemelryk d135b55323 Merge branch 'w50_MDL-37111_m25_forumsinglefirst' of git://github.com/skodak/moodle 2012-12-18 10:24:53 +13:00
Sam Hemelryk a483113178 Merge branch 'MDL-37176' of git://github.com/stronk7/moodle 2012-12-18 10:12:37 +13:00
Sam Hemelryk bdd7b01a33 Merge branch 'MDL-35530' of git://github.com/rwijaya/moodle 2012-12-18 10:07:28 +13:00
Jason Fowler c8d1e4aa8c MDL-35056 - Backup/Restore - Converting the 'Unmet Dependencies' Message to be a Developer Debug message to make moodle less confusing to the average user 2012-12-18 09:58:53 +13:00
Sam Hemelryk 46b553787c Merge branch 'MDL-32245' of git://github.com/timhunt/moodle 2012-12-18 09:51:42 +13:00
Sam Hemelryk ac546d63a3 MDL-36812 grader_report: Fixed whitespace on integration 2012-12-18 09:47:37 +13:00
Sam Hemelryk a202ead124 Merge branch 'WIP-MDL-36812-master' of git://github.com/nadavkav/moodle 2012-12-18 09:46:35 +13:00
Sam Hemelryk 740f635b79 Merge branch 'MDL-29733_master' of git://github.com/andyjdavis/moodle 2012-12-18 09:42:26 +13:00
Tim Hunt 4475b0ff63 MDL-36842 quiz: update accessrule upgrade.txt file in master. 2012-12-17 17:02:21 +00:00
Adrian Fish 2a457227e2 MDL-37035 Pass user locale after course locale. 2012-12-17 10:25:38 +00:00
David Monllao 9e8961e76f MDL-30899 moodle-enrol-notification Overridding default footer padding 2012-12-17 15:39:19 +08:00
Dan Poltawski 62347c883b Merge branch 'w50_MDL-36493_m25_mysql' of git://github.com/skodak/moodle 2012-12-17 15:28:39 +08:00
Dan Poltawski 0b10485a03 Merge branch 'MDL-37114' of git://github.com/timhunt/moodle 2012-12-17 15:25:22 +08:00
Dan Poltawski f136e27f15 Merge branch 'MDL-37034-CategoryNavigationKey' of https://github.com/iamandrew/moodle 2012-12-17 15:21:31 +08:00
Dan Poltawski a03b106cc2 MDL-36597 - bump version number 2012-12-17 13:52:22 +08:00
Dan Poltawski dfa45f7ddc Merge branch 'w50_MDL-36597_m25_courselang' of git://github.com/skodak/moodle 2012-12-17 13:51:32 +08:00
Dan Poltawski efda4a8340 Merge branch 'MDL-29334_master' of git://github.com/markn86/moodle 2012-12-17 13:47:44 +08:00
Dan Poltawski 8ca70aff14 Merge branch 'wip-mdl-36736' of git://github.com/rajeshtaneja/moodle 2012-12-17 12:08:57 +08:00
Dan Poltawski 9199e53de2 Merge branch 'wip-MDL-25928-m25' of git://github.com/samhemelryk/moodle 2012-12-17 12:05:05 +08:00
Dan Poltawski bfcbbc9833 Merge branch 'wip-MDL-35874-master' of git://github.com/phalacee/moodle 2012-12-17 11:52:55 +08:00
Dan Poltawski 00a9fa5d9a Merge branch 'wip-MDL-35979-master' of git://github.com/phalacee/moodle 2012-12-17 11:48:32 +08:00
Dan Poltawski 06ae410844 Merge branch 'MDL-37078-master' of git://github.com/sammarshallou/moodle 2012-12-17 11:36:57 +08:00
Dan Poltawski a8103b1c07 Merge branch 'MDL-37165-master' of git://github.com/damyon/moodle 2012-12-17 11:30:27 +08:00
Sam Hemelryk 6a1273cbc7 MDL-25928 course: Fixed course info on the combo list to be a popup 2012-12-17 16:03:06 +13:00
Petr Škoda 75427a824c MDL-37171 fix multiple spreadsheet related PHP4isms 2012-12-15 12:36:40 +01:00
Petr Škoda 04463c0ea6 MDL-36245 add tests for the buggy utf-8 to utf-8 conversion 2012-12-15 11:50:17 +01:00
Petr Škoda e9a3070676 MDL-36245 try to workaround buggy iconv() when converting text from utf-8 to utf-8 2012-12-15 11:50:17 +01:00
Petr Škoda 83be0dfd57 MDL-36475 tweak zIndexes once more
The expected ranges are now:
* 0-1000 for normal code
* 5000-5999 for TinyMCE
* 7000-8999 for filepicker and filemanager

This patch fixes also incorrect location of "MDL-25736 - French spellchecker fixes." modification reminder.
2012-12-15 11:46:46 +01:00
Joseph Rezeau 26efb4888f MDL-37114 quiz form validation: feedback boundaries.
The feedback boundaries must either be a number or a percentage.
We were not correctly validating the non-percentage case.
2012-12-15 10:44:51 +00:00
Thanh Le 31f4086460 MDL-36259 course short names: ensure it displays when enabled in admin
Fixed 5 Moodle pages that does not display the course short name even if "Display extended course names" setting is on.  In fixing this, search.php also included related minor code to change to minimise DB calls to improve performance.
2012-12-15 10:44:34 +00:00
Petr Škoda 57160c25d7 MDL-36493 improve timeout handling in mysql upgrade
Credit goes to Mark Nielsen, thanks.
2012-12-15 11:43:52 +01:00
Petr Škoda 801ae0f4d8 MDL-36493 improve performance of mysql unsigned/lob upgrade 2012-12-15 11:43:52 +01:00
Tim Hunt e4ca11842b MDL-32245 question bank: fix coding style in categories.php 2012-12-15 10:41:00 +00:00
Thanh Le 87bee3bcfa MDL-32245 question bank: fix moving categories between contexts. 2012-12-15 10:40:59 +00:00
Petr Škoda a11aa38e80 MDL-37111 copy first post files in single type forum using intro options
This patch also removed the delete button from the first post in single
discussion type forum.

Edit button in the first post leads to the forum edit page now, this should
prevent other problems throwing first post and intro out of sync.
2012-12-15 11:23:42 +01:00
Petr Škoda dbfe415028 MDL-36597 strip '_utf8' from all course.lang fields 2012-12-15 11:13:10 +01:00
Eloy Lafuente (stronk7) c50c84bbae MDL-37176 timezones: updated to 2012j 2012-12-14 20:06:56 +01:00
Eloy Lafuente (stronk7) 20751863e3 weekly on-sync release 2.5dev 2012-12-14 13:33:07 +01:00
Frederic Massart 1fefd1ff8d MDL-36456 repository: S3 handles errors in a nicer way 2012-12-14 17:55:56 +08:00
Damyon Wiese 0c7b691035 MDL-37165 Assignment: Oracle fix for count_submissions_with_status (and friends).
Oracle does not like the use of AS after a join.
2012-12-14 15:10:06 +08:00
Iñaki Arenaza cd37c1dad8 MDL-28585 LDAP Auth doesn't handle password expiration
All credit goes to Mark Ward for proposing the initial patch.

Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2012-12-14 00:10:09 +01:00
Eloy Lafuente (stronk7) 04e56da75f Merge branch 'MDL-30700-master' of git://github.com/damyon/moodle 2012-12-13 10:31:59 +01:00
Jason Fowler e9904e0988 MDL-35874 - Blocks - Adding a label to the 'Add a block' block's select field 2012-12-13 15:08:23 +08:00
Jerome Mouneyrac 8118dbd02f MDL-37143 External_warnings: developer should be able to modify the item/itemid/errorcode description 2012-12-13 11:15:50 +08:00
Damyon Wiese d495f2d75e MDL-30700 tablelib: Fixed get_sort_for_table to work with text sorting columns for oracle
This change stores the list of columns that require text sorting in the session,
so the static function "get_sort_for_table" can work without any additional parameters.
2012-12-13 09:58:07 +08:00
Dan Poltawski aa3258d586 Merge branch 'MDL-36897' of git://github.com/timhunt/moodle 2012-12-13 09:54:17 +08:00
sam marshall 79e9e6049b MDL-37078: Restore - section restore fails with multiple availability conditions 2012-12-12 10:47:17 +00:00
Davo Smith 8427de6883 MDL-37014 repository_webdav - strip the server URL from file & folder paths returned by webdav lib (if present) 2012-12-12 08:36:34 +00:00
Tim Hunt 0fe1b50c29 MDL-36897 quiz review: fixup previous commit. 2012-12-12 08:12:16 +00:00
Frederic Massart c24cd39448 MDL-32639 files: Zipping a folder does not overwrite existing files 2012-12-12 14:38:23 +08:00
Frederic Massart 638d72cd0b MDL-32639 files: Improved File Manager download and zip support 2012-12-12 14:38:11 +08:00
Mark Nelson cba235594a MDL-29334 mod_data: if site-wide presets created in <= 1.9 exist convert them to 2.x 2012-12-12 13:18:02 +08:00
Sam Hemelryk e7335920f3 MDL-33448 enrol_manual: Reduced JS get_string calls for the yui widget 2012-12-12 09:37:27 +08:00
Sam Hemelryk abb0ce1b42 MDL-33448 enrol_manual: Reordered things to improve JS performance when enrolling users 2012-12-12 09:37:27 +08:00
Cathal O'Riordan 6d976f3f30 MDL-36644 Assignment: prepend the course upload limit to the options array
Ensure that the course upload limit is the first option in the list of available choices for the Maximum submission size select.
2012-12-12 08:56:59 +08:00
Dan Poltawski 7ac94cab86 Merge branch 'master_MDL-35737' of git://github.com/danmarsden/moodle 2012-12-12 08:43:29 +08:00
Sam Hemelryk fa125570fb Merge branch 'MDL-27619_master' of git://github.com/pauln/moodle 2012-12-12 11:10:05 +13:00
Eloy Lafuente (stronk7) 12e13ce047 Merge branch 'MDL-32880_master_3' of git://github.com/pauln/moodle 2012-12-11 22:48:06 +01:00
Eloy Lafuente (stronk7) 4ad65dc2b6 Merge branch 'm24_MDL-36641_Missing_external_package_HTTP_check' of https://github.com/scara/moodle 2012-12-11 22:42:09 +01:00
Sam Hemelryk 31d5b2dd69 MDL-29805 redirect: added check REQUIRE_CORRECT_ACCESS is true 2012-12-12 09:46:45 +13:00
Sam Hemelryk 16ae43f243 Merge branch 'MDL-29805-master' of git://github.com/mouneyrac/moodle 2012-12-12 09:45:29 +13:00
Sam Hemelryk db8625bd1e Merge branch 'MDL-35593-master' of git://github.com/mouneyrac/moodle 2012-12-12 09:38:43 +13:00
Sam Hemelryk 5514e22d52 Merge branch 'wip_master_mdl-37088_bad_operator_ldap_sync_user' of https://github.com/iarenaza/moodle 2012-12-12 09:35:27 +13:00
Sam Hemelryk 18e4963a74 Merge branch 'MDL-36321_message_participants' of git://github.com/andyjdavis/moodle 2012-12-12 09:29:33 +13:00
Eloy Lafuente (stronk7) 771b820285 Merge branch 'MDL-30700-master' of git://github.com/damyon/moodle 2012-12-11 19:56:31 +01:00
Eloy Lafuente (stronk7) 6b9dfe731e MDL-37032 upgrade: define all the 2.4.0 points 2012-12-11 13:11:11 +01:00
Dan Poltawski 02dd021d26 Merge branch 'w49_MDL-36447_m25_gdtest' of git://github.com/skodak/moodle 2012-12-11 17:54:24 +08:00
Dan Poltawski 70f4fddae5 Merge branch 'MDL-37098' of git://github.com/timhunt/moodle 2012-12-11 17:51:50 +08:00
Tim Hunt 1744033ccb MDL-37098 quiz: event handler fails deleting group with no overrides
This was a regression from MDL-35717.
2012-12-11 09:06:19 +00:00
Dan Poltawski cba50c0088 Merge branch 'MDL-36243' of git://github.com/jmvedrine/moodle 2012-12-11 16:24:10 +08:00
Dan Poltawski 09f5d8344e Merge branch 'wip-MDL-36108-master' of git://github.com/phalacee/moodle 2012-12-11 16:03:09 +08:00
Jason Fowler 4ff849b7db MDL-36108 - Blocks - Online User block's user image's alt attribute is now empty to prevent repetition of text for screen readers 2012-12-11 15:49:50 +08:00
Damyon Wiese 1e4bd9fe25 MDL-30700 Assignment 2.2: Added text_sorting function to tablelib
Allows oracle to sort by text (clob) columns (should be used sparingly).
2012-12-11 15:42:24 +08:00
Dan Poltawski 6236442aad Merge branch 'wip-MDL-36938-m25' of git://github.com/samhemelryk/moodle 2012-12-11 15:18:50 +08:00
Dan Poltawski c3c2fc538a Merge branch 'MDL-36712-master' of git://github.com/damyon/moodle 2012-12-11 14:00:25 +08:00
Dan Poltawski 021504b547 Merge branch 'MDL-36591-master' of git://github.com/damyon/moodle 2012-12-11 13:56:28 +08:00
Dan Poltawski 0fd3fb0c83 Merge branch 'MDL-36897' of git://github.com/timhunt/moodle 2012-12-11 13:54:15 +08:00
Dan Poltawski 4cc8e8cbb1 Merge branch 'MDL-34791-master' of git://git.luns.net.uk/moodle 2012-12-11 13:22:42 +08:00
Dan Poltawski 358414748c Merge branch 'MDL-36808-master' of git://github.com/sammarshallou/moodle 2012-12-11 12:18:12 +08:00
Dan Poltawski 4889da2199 Merge branch 'w49_MDL-36983_m25_ordertext' of git://github.com/skodak/moodle 2012-12-11 12:09:10 +08:00
Dan Poltawski 624b0c3f1d Merge branch 'w49_MDL-36892_m25_enrolreadme' of git://github.com/skodak/moodle 2012-12-11 12:07:06 +08:00
Dan Poltawski cdb7110f72 Merge branch 'MDL-36845' of git://github.com/timhunt/moodle 2012-12-11 11:58:44 +08:00
Dan Poltawski fa18df40c1 Merge branch 'MDL-36828' of https://github.com/aolley/moodle 2012-12-11 11:44:11 +08:00
Dan Poltawski b62f0f8d82 Merge branch 'wip-MDL-36110-master' of git://github.com/phalacee/moodle 2012-12-11 11:32:53 +08:00
Kirill Astashov 9b7a5f654a MDL-36587 Assignment: Hide Download All links when no submission have been made 2012-12-11 11:25:05 +08:00
Dan Poltawski 595282dfcc Merge branch 'wip-MDL-35884-master' of git://github.com/phalacee/moodle 2012-12-11 11:17:29 +08:00
Sam Hemelryk 6e68a3a93c Merge branch 'MDL-36650' of git://github.com/timhunt/moodle 2012-12-11 16:11:13 +13:00
Dan Poltawski 5d44e45264 Merge branch 'MDL-36025-negative-zero' of git://github.com/mpetrowi/moodle 2012-12-11 11:06:28 +08:00
Sam Hemelryk 0aed7e7d71 Merge branch 'w49_MDL-36731_m25_uploadestrict' of git://github.com/skodak/moodle 2012-12-11 16:04:31 +13:00
Dan Poltawski 74bf44284a Merge branch 'MDL-35476-master' of git://github.com/damyon/moodle 2012-12-11 10:49:12 +08:00
Sam Hemelryk fc6acfe242 Merge branch 'MDL-36905' of git://github.com/rwijaya/moodle 2012-12-11 15:44:37 +13:00
Sam Hemelryk 9a8b79864a Merge branch 'MDL-36916' of git://github.com/timhunt/moodle 2012-12-11 15:42:13 +13:00
Dan Poltawski 6434a6c76e Merge branch 'MDL-34052-master' of https://github.com/damyon/moodle 2012-12-11 10:39:19 +08:00
Sam Hemelryk 159537f65a Merge branch 'w49_MDL-36936_m25_composerdev' of git://github.com/skodak/moodle 2012-12-11 15:35:07 +13:00
Dan Poltawski d4b2190728 Merge branch 'w49_MDL-31424_m25_paypalcase' of git://github.com/skodak/moodle 2012-12-11 10:31:33 +08:00
Sam Hemelryk 7a6ef4ee8f Merge branch 'w49_MDL-37060_m25_sessinit' of git://github.com/skodak/moodle 2012-12-11 15:27:26 +13:00
Sam Hemelryk 711e0ad9b7 Merge branch 'MDL-36942' of git://github.com/timhunt/moodle 2012-12-11 15:04:22 +13:00
Sam Hemelryk 6c3b271c3d Merge branch 'MDL-36954' of git://github.com/timhunt/moodle 2012-12-11 14:59:56 +13:00
Dan Poltawski b3b4fad994 Merge branch 'MDL-36773-master' of git://github.com/mouneyrac/moodle 2012-12-11 09:56:40 +08:00
Sam Hemelryk 46c02a6a91 Merge branch 'wip-mdl-37017' of git://github.com/rajeshtaneja/moodle 2012-12-11 14:54:16 +13:00
Sam Hemelryk 9a2a9b146f Merge branch 'w49_MDL-37061_m25_invalidlang' of git://github.com/skodak/moodle 2012-12-11 14:44:08 +13:00
Andrew Davis 415b15ccd6 MDL-29733 grade: SQL and comment cleanup 2012-12-11 09:15:31 +08:00
Jonathan Champ 8a592bd551 MDL-29733 grade: Query for Identifying Grade Grades to Precreate is SLOW 2012-12-11 09:15:31 +08:00
Sam Hemelryk 0296e662a3 Merge branch 'w49_MDL-29442_m25_entityutf8' of git://github.com/skodak/moodle 2012-12-11 10:22:19 +13:00
Sam Hemelryk 4e0c4ec70d Merge branch 'MDL-36263-master' of git://github.com/damyon/moodle 2012-12-11 10:17:57 +13:00
Sam Hemelryk a77a8f1e9d Merge branch 'MDL-37020-master' of https://github.com/mackensen/moodle 2012-12-11 09:48:05 +13:00
Sam Hemelryk 3dd842ebfb Merge branch 'MDL-36601-master' of git://git.luns.net.uk/moodle 2012-12-11 09:42:17 +13:00
Sam Hemelryk 5f27d13454 Merge branch 'MDL-36805-master' of git://git.luns.net.uk/moodle 2012-12-11 09:16:47 +13:00
Sam Hemelryk 8ebf086d31 Merge branch 'wip-MDL-37011' of git://github.com/abgreeve/moodle 2012-12-11 08:42:40 +13:00
Iñaki Arenaza a5428e15b2 MDL-37088 auth_ldap: bad operator in ldap sync_user() method 2012-12-10 16:52:42 +01:00
Andrew Robert Nicols a71d9a9414 MDL-34791 AJAX Update a graded activity's title in the gradebook on rename 2012-12-10 14:14:28 +00:00
Dan Poltawski 303cccc5a6 MDL-36755 course_overview block: fix for fix.
I will stop commiting now.
2012-12-10 19:45:19 +08:00
Dan Poltawski 36508a201a MDL-36755 course_overview block: fix idiot version
I will shoot the programmer responsible for this mess.
2012-12-10 19:41:16 +08:00
Dan Poltawski e3b494e379 Merge branch 'w49_MDL-36737_m25_glossstrict' of git://github.com/skodak/moodle 2012-12-10 19:37:24 +08:00
Danny Wahl 9a8caba238 MDL-36991: Conditional activity restrictions should be displayed as list 2012-12-10 11:36:17 +00:00
Dan Poltawski 91c5477606 Merge branch 'MDL-36755_master' of git://github.com/markn86/moodle
Conflicts:
	blocks/course_overview/version.php
2012-12-10 19:32:10 +08:00
Dan Poltawski 6aa4fccc74 MDL-36167 fix trailing whitespace 2012-12-10 17:35:58 +08:00
Dan Poltawski 76089dc378 Merge branch 'MDL-36167-master' of git://github.com/damyon/moodle 2012-12-10 17:31:41 +08:00
Dan Poltawski 69e0b225c1 Merge branch 'MDL-36732' of git://github.com/timhunt/moodle 2012-12-10 15:17:46 +08:00
Damyon Wiese 8f7e1c05af MDL-36263 Assignment: Do not count submissions of unenrolled users 2012-12-10 14:54:24 +08:00
Damyon Wiese 7a9fd6da43 MDL-36908 Assignment: Additional fixes for preventing empty submissions 2012-12-10 14:54:24 +08:00
Dan Poltawski adce3fa833 Merge branch 'MDL-36549' of git://github.com/rwijaya/moodle 2012-12-10 14:18:32 +08:00
Dan Poltawski 3b49f655b2 Merge branch 'MDL-36856' of git://github.com/kastashov/moodle 2012-12-10 14:04:22 +08:00
Dan Poltawski 9278e2dbef Merge branch 'MDL-36835-master' of git://github.com/damyon/moodle 2012-12-10 14:01:56 +08:00
Dan Poltawski 8df07e5086 Merge branch 'MDL-36538_webdav_memory' of git://github.com/davosmith/moodle 2012-12-10 13:06:37 +08:00
Vadim Dvorovenko 697ade2850 MDL-32639 files: Removing '0' start folder in archives created with filemanager 2012-12-10 12:30:29 +08:00
Frederic Massart 97a8edddf0 MDL-27901 navigation: Notice when an admin node name is already used 2012-12-10 12:29:41 +08:00
Marina Glancy c8f9faba0c MDL-36339 Modify themes to add course headers and footers provided by course format 2012-12-10 12:14:57 +08:00
Dan Poltawski 9c714c83b7 Merge branch 'w49_MDL-35456_m25_paypal' of git://github.com/skodak/moodle 2012-12-10 12:03:03 +08:00
Dan Poltawski 2e6aff57e5 Merge branch 'MDL-35404' of git://github.com/timhunt/moodle 2012-12-10 11:36:38 +08:00
Dan Poltawski 7689a5837a Merge branch 'wip-MDL-36939-m25' of git://github.com/samhemelryk/moodle 2012-12-10 11:08:42 +08:00
Sam Hemelryk 845774bf33 Merge branch 'MDL-30961-master' of git://github.com/mouneyrac/moodle 2012-12-10 14:59:42 +13:00
Dan Poltawski d31c08b698 Merge branch 'MDL-36680_hidden' of git://github.com/andyjdavis/moodle 2012-12-10 09:56:09 +08:00
Danny Wahl e46fce762a MDL-23504 Theme: Extended support of colors in color picker 2012-12-10 09:54:45 +08:00
Sam Hemelryk 754f808546 Merge branch 'MDL-36946-master' of git://github.com/micaherne/moodle 2012-12-10 14:43:40 +13:00
Sam Hemelryk 11e95000bd Merge branch 'MDL-34592_master' of git://github.com/lazydaisy/moodle 2012-12-10 14:28:44 +13:00
Sam Hemelryk d60ac860ea Merge branch 'MDL-36608_master' of git://github.com/lazydaisy/moodle 2012-12-10 14:24:39 +13:00
Sam Hemelryk 018e659061 Merge branch 'MDL-36978' of git://github.com/lazydaisy/moodle 2012-12-10 14:21:37 +13:00
Sam Hemelryk 9a3e76e01e Merge branch 'MDL-36579_modLtiBackupFields' of git://github.com/moodlerooms/moodle 2012-12-10 14:16:00 +13:00
Mark Nielsen e893c6d442 MDL-36607: Improve block drag and drop
* Adding support for subpage
* Adding support for regions that do not start with "side-"
2012-12-10 14:12:57 +13:00
Sam Hemelryk 9d8abffc87 Merge branch 'MDL-35954_master' of git://github.com/markn86/moodle 2012-12-10 14:08:06 +13:00
Adrian Greeve 5cc0c73ab2 MDL-37011 - themes: Fixed the alignment of the edit and help icon on the participants page. 2012-12-10 08:58:29 +08:00
Sam Hemelryk 1b4e47e43a Merge branch 'MDL-36433-master' of git://github.com/itamart/moodle 2012-12-10 12:13:32 +13:00
Sam Hemelryk 8b5944b9b9 Merge branch 'MDL-36764' of git://github.com/danpoltawski/moodle 2012-12-10 11:54:01 +13:00
Sam Hemelryk a429049ce5 Merge branch 'MDL-36778' of git://github.com/danpoltawski/moodle 2012-12-10 11:51:38 +13:00
Sam Hemelryk 7e4dd7f6c2 Merge branch 'MDL-36887' of git://github.com/danpoltawski/moodle 2012-12-10 11:48:22 +13:00
Sam Hemelryk 533469cba4 Merge branch 'MDL-36640-master' of git://git.luns.net.uk/moodle 2012-12-10 11:42:57 +13:00
Mary Evans e907c68530 MDL-34592 theme_magazine: Fixes the report grader fixed column misalignment in magazine/style/core.css theme, plus fixes all CORE themes with minor adjustment to grade/report/grader/style.css 2012-12-09 22:23:42 +00:00
Andrew Robert Nicols e275e8c3cd MDL-36918 Decode HTML entities on ajax update title 2012-12-10 11:15:50 +13:00
Sam Hemelryk fa9b53cdf8 Merge branch 'message_nav' of git://github.com/andyjdavis/moodle 2012-12-10 11:00:17 +13:00
Sam Hemelryk 70d09e7fd6 Merge branch 'MDL-36761_loop' of git://github.com/andyjdavis/moodle 2012-12-10 10:54:32 +13:00
Sam Hemelryk f6c922e71f Merge branch 'MDL-34591_master' of git://github.com/grabs/moodle 2012-12-10 10:49:21 +13:00
Sam Hemelryk d72f2212da Merge branch 'wip-MDL-35221-master' of git://github.com/kwiliarty/moodle 2012-12-10 10:41:35 +13:00
Sam Hemelryk bb682c1ac2 Merge branch 'wip-MDL-36906-master' of git://github.com/abgreeve/moodle 2012-12-10 10:33:48 +13:00
Sam Hemelryk 6d48072205 Merge branch 'wip-MDL-36915-master' of git://github.com/abgreeve/moodle 2012-12-10 10:27:25 +13:00
Sam Hemelryk d229ac0f0a Merge branch 'wip-MDL-37026-master' of git://github.com/abgreeve/moodle 2012-12-10 10:23:55 +13:00
Sam Hemelryk 13980de16b Merge branch 'MDL-33125' of git://github.com/aolley/moodle 2012-12-10 10:19:32 +13:00
Petr Škoda 65598feb36 MDL-36447 skip file preview test if GD not available 2012-12-09 19:22:01 +01:00
Andreas Grabs a8e85e05bc MDL-34591 - paypal does not allow unenrol 2012-12-09 19:10:52 +01:00
Petr Škoda 1a4596e434 MDL-29442 add missing utf-8 to entity html encoding and decoding 2012-12-09 18:21:38 +01:00
Petr Škoda 25336547e8 MDL-37061 always validate lang when setting session user
This should resolve problems with TinyMCE langs and some unknown MUCH caching issue.
2012-12-09 11:28:36 +01:00
Mary Evans 3c202221a8 MDL-36978 theme_standardold: fixes misplaced block region check in layout/frontpage.php which, with hindsight should have been fixed in MDL-23226. 2012-12-08 22:20:05 +00:00
Petr Škoda 443bb9c103 MDL-36737 fix random glossary E_STRICT issue 2012-12-08 14:44:05 +01:00
Jean-Michel Vedrine 7980a381cc MDL-36243 question->questiontext and question->generalfeedback should always be strings 2012-12-08 14:09:26 +01:00
Petr Škoda a552544370 MDL-31424 compare PayPal emails case-insensitively
Credit goes to Chris Follin, thanks!
2012-12-08 13:16:04 +01:00
Petr Škoda 3277509a60 MDL-37060 prevent notice in session_get_instance() 2012-12-08 12:31:05 +01:00
Petr Škoda b7a9c85118 MDL-35456 use HTTP 1.1 for PayPal IPN 2012-12-08 11:58:05 +01:00
Eloy Lafuente (stronk7) 4bd6f71bad weekly on-sync release 2.5dev 2012-12-08 02:58:07 +01:00
Petr Škoda 32772035e1 MDL-36936 require phpunit as composer --dev only 2012-12-07 18:20:03 +01:00
Petr Škoda 756869d2c2 MDL-36892 delete outdated enrol info 2012-12-07 17:15:39 +01:00
Davo Smith e38f699271 MDL-36538 repository_webdav - save files directly to local filesystem, rather than buffering in memory 2012-12-07 09:17:28 +00:00
Jason Fowler ceb3551726 MDL-35884 - Course - Remove text from ALT attribute for activity chooser 2012-12-07 13:50:08 +08:00
Rajesh Taneja 7d0eaf7414 MDL-37017 My Moodle: Course name should be fullname of course 2012-12-07 11:35:47 +08:00
Sam Hemelryk f0ce225c12 MDL-36938 cache: test performance script checks requirements now 2012-12-07 08:38:14 +13:00
Sam Hemelryk 7d18285720 MDL-36939 cache: instance form validation now handles errors properly 2012-12-07 08:38:05 +13:00
Petr Škoda b39eac3eca MDL-36983 fix incorrect test method name
Credit goes to David Scotson, thanks.
2012-12-06 15:32:15 +01:00
Andrew Davidson cd766190aa MDL-37034 - Added appropriate name to category settings navigation node 2012-12-06 14:08:25 +00:00
Petr Škoda e95bf5b50a MDL-36731 fix E_STRICt issue when creating new groups in user upload 2012-12-06 13:15:16 +01:00
Amy Groshek 62434c8a53 MDL-36960 - fix broken horizontal positioning of titles for docked blocks 2012-12-06 12:10:38 +08:00
David Mudrák 8663b090c0 MDL-36963 Do not attempt to remove the root folder of a plugin during the update deployment
There is no need to move the root folder of a plugin during the update
deployment. We just need to operate with its contents. So the web server
process can have the write access for the plugin folder only.
2012-12-06 11:03:35 +08:00
David Mudrák dabe5acc42 MDL-36963 Add unit tests for directory operations in mdeploy.php 2012-12-06 11:03:35 +08:00
David Mudrák 75879a9e74 MDL-36963 Improve mdeploy worker::remove_directory() method
The additional parameter allows to use this method without actual
removing the root of the path. That is, it is now possible to remove
the content of a folder only.
2012-12-06 11:03:35 +08:00
David Mudrák b68bbc5ae1 MDL-36963 Improve mdeploy worker::move_directory() method
The additional parameter allows to use this method without actual
removing the root of the source location. That is, it is now possible to
move the content of a folder only.

Also, a small refactoring happened here as we will need a variant of
this method that does not throw exception if the target already exists.
2012-12-06 11:03:35 +08:00
Adrian Greeve 3370f216a2 MDL-37026 - lib: The function user_can_assign() returns true for admins. 2012-12-06 10:52:09 +08:00
Eloy Lafuente (stronk7) ee22329a90 Merge branch 'wip-MDL-36341-m24' of git://github.com/samhemelryk/moodle 2012-12-06 02:24:47 +01:00
David Mudrák fa1415f193 MDL-37003 Fix repeated line in update notification email
There was a problem experienced after 2.4.0 release because the version
of the 2.4.0 release was the same as 2.5dev release. So the version
value matched twice in the loop and the line was repeated in the email.
2012-12-06 01:50:48 +01:00
David Mudrák d2713eff38 MDL-36943 Do not notify about already installed updates
Before this patch, the available_update_checker::cron_notifications()
method accessed the availableupdates property. But for plugins, that property
basically contains the most recent version available. So we were missing
the check against the actual version installed.

The fix was simple - obtain available updates via the available_updates()
method that performs the check.
2012-12-06 01:50:42 +01:00
Charles Fulton ab0ccc6731 MDL-37020 auth_shibboleth: check if target variable is actually set 2012-12-05 11:18:37 -08:00
Marina Glancy e28d5db2ee MDL-36840 Set course.format to 'site' for site-course 2012-12-05 10:31:24 +08:00
Jason Fowler b815ccd319 MDL-35979 - Commenting - Adding an empty alt attribute to the javascript generated delete icon for comments 2012-12-05 10:00:38 +08:00
Iñaki Arenaza 326929d54a MDL-3941 auth/cas auth/ldap enrol/ldap Add support for LDAP-TLS.
Credit goes to Chris Bandy for proposing the initial patch.
2012-12-04 12:11:06 +01:00
Jason Fowler 7245acb222 MDL-36110 - Blocks - Community finder icon alt attribute is now empty 2012-12-04 15:15:22 +08:00
Jerome Mouneyrac e9e567f33c MDL-29805 add REQUIRE_CORRECT_ACCESS define + return error code when AJAX_SCRIPT fails 2012-12-04 11:47:19 +08:00
Eloy Lafuente (stronk7) 03953061ca NOBUG: Bump backup relese for 2.5dev 2012-12-03 21:11:33 +01:00
Eloy Lafuente (stronk7) cf08763204 weekly release 2.5dev 2012-12-03 20:05:30 +01:00
Eloy Lafuente (stronk7) f588fdfcc7 Moodle release 2.4 2012-12-03 20:01:33 +01:00
Eloy Lafuente (stronk7) b9896f9613 ie9 svg compatibility fixes 2012-12-03 19:53:36 +01:00
Eloy Lafuente (stronk7) b0d9ca18a4 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-12-03 19:51:37 +01:00
Mark Nielsen bf989c2f3a MDL-36986: Adding course_restored event trigger 2012-12-03 09:37:29 -08:00
Eloy Lafuente (stronk7) e9dab879b6 Merge branch 'MDL-36934-master' of git://git.luns.net.uk/moodle 2012-12-03 09:48:13 +01:00
Aparup Banerjee 552160e844 Merge branch 'MDL-36912-master' of git://github.com/FMCorz/moodle 2012-12-03 15:54:52 +08:00
Dan Poltawski 0dcae7cd14 MDL-36950 pluginlib - add MDL to comment 2012-12-03 15:47:35 +08:00
Dan Poltawski bb608148a9 Merge branch 'MDL-36950-updates-proxy' of git://github.com/mudrd8mz/moodle 2012-12-03 15:21:25 +08:00
Aparup Banerjee ce84cbacb7 Merge branch 'MDL-36777-master' of git://github.com/FMCorz/moodle 2012-12-03 14:59:15 +08:00
Dan Poltawski e1c93ed97b Merge branch 'MDL-36914-master' of git://github.com/damyon/moodle 2012-12-03 14:45:04 +08:00
Frederic Massart 197b314f46 MDL-36860 theme: Readme for MyMobile hack 2012-12-03 14:18:35 +08:00
Dan Poltawski 7d1c3abe88 Merge branch 'MDL-36883-master' of git://github.com/FMCorz/moodle 2012-12-03 14:08:25 +08:00
Jason Fowler 5bc4936954 MDL-35816 - File picker - Adding ALT attributes to the icons of the file picker 2012-12-03 14:00:05 +08:00
Dan Poltawski 7eebac6c77 Merge branch 'MDL-36860-master' of git://github.com/FMCorz/moodle 2012-12-03 13:56:21 +08:00
Dan Poltawski 72647f09f1 Merge branch 'MDL-36944-master' of git://github.com/FMCorz/moodle 2012-12-03 13:41:02 +08:00
Dan Poltawski 539cc4061d Merge branch 'MDL-36949-master' of git://github.com/FMCorz/moodle 2012-12-03 13:28:12 +08:00
Dan Poltawski 4a67095710 Merge branch 'MDL-36884-master' of git://github.com/FMCorz/moodle 2012-12-03 13:23:21 +08:00
Dan Poltawski c62c77c0e8 Merge branch 'wip-MDL-36888-m24' of git://github.com/samhemelryk/moodle 2012-12-03 12:55:42 +08:00
Dan Poltawski f92340ed3f Merge branch 'MDL-36948-master' of git://github.com/FMCorz/moodle 2012-12-03 11:59:01 +08:00
Jerome Mouneyrac 87ede25c9b MDL-35593 core_webservice_get_site_info returns version number set to PARAM_TEXT and PARAM_FLOAT 2012-12-03 10:47:38 +08:00
Dan Poltawski 28ef36f018 Merge branch 'MDL-36618-master' of git://github.com/FMCorz/moodle 2012-12-03 10:36:16 +08:00
Sam Hemelryk cc52e16c4a MDL-36341 calendar: fixed JS bug with popup node setter 2012-12-03 11:31:34 +13:00
Sam Hemelryk 383b89a1e2 MDL-36888 theme: allow the use of SVG in CSS background images. 2012-12-03 09:20:06 +13:00
AMOS bot 58f5646767 Automatically generated installer lang files 2012-12-02 00:40:59 +00:00
Andrew Robert Nicols 50d6ad844a MDL-36934 Only set the autosubmit class on selects when required
The url_select class can optionally show a button (much like the non-JS
fallback). In this case, the autosubmit nature of the form shouldn't be
enforced and it should only submit on the button.
2012-12-01 09:48:42 +00:00
AMOS bot de1c8ef58b Automatically generated installer lang files 2012-12-01 00:43:06 +00:00
Tim Hunt 489f98a662 MDL-36954 question bank: stop centring question name.
This was a regression caused by MDL-21625. These CSS changes
put the display back to how it was, while leaving the table
cell as a TD  for accessibility.
2012-11-30 16:32:31 +00:00
Tim Hunt 7e252acff1 MDL-36942 xml question import: don't add spaces.
They are not necessary anyway, there is a \n character at the end of
each line.

Thanks to Richard Lobb for fining the problem and how to fix it.
2012-11-30 15:59:11 +00:00
Tim Hunt 609a7676e4 MDL-36897 quiz: redirect teachers from summary to review page.
There is already logic like this at the top of attempt.php. If the
teacher arrives at one of these pages for a student's attempt, for
example by clicking a link in the logs, then they should be redirected
to the review page to see the students attempt in its current state.
2012-11-30 15:58:54 +00:00
Tim Hunt bf4045599c MDL-36845 excel export: don't output invalid sheet names.
We should clean any proposed worksheet name, to remove the characters
that Excel does not allow.
2012-11-30 15:58:36 +00:00
Tim Hunt 6b290a491c MDL-36732 Cloze qtype: review marks should not depend on feedback.
The various review options should be independent.
2012-11-30 15:58:12 +00:00
Tim Hunt c23513dbe4 MDL-36650 don't change question timecreated or timemodified on restore. 2012-11-30 15:57:51 +00:00
David Mudrák 63def597a6 MDL-36950 Pass the Moodle proxy setting to the mdeploy.php utility 2012-11-30 16:12:34 +01:00
David Mudrák 42c6731c9f MDL-36950 Make mdeploy.php accept proxy related settings 2012-11-30 16:11:52 +01:00
David Mudrák 333048e06b MDL-36903 Add a link to Moodle documentation from mdeploy error pages 2012-11-30 16:09:58 +01:00
David Mudrák e428b5e0ae MDL-36903 Make mdeploy.php use the custom CA certificate if it exists 2012-11-30 16:09:58 +01:00
David Mudrák 30e2682756 MDL-36903 Pre-check the ZIP download before executing the mdeploy.php utility
This patch makes Moodle call HTTP HEAD method via cURL to see if the ZIP
is expected to be downloadable by mdeploy.php. This is mainly intended
for SSL certificates check.
2012-11-30 16:09:58 +01:00
David Mudrák 4785c45dd8 MDL-36903 Verify the SSL certificate of available updates provider
From now on, Moodle verifies the available updates provider server. To
make it work, either there must be a valid CA certificate available in
the operating system, or the administrator has to upload the valid CA
certificate to moodledata/moodleorgca.crt (PEM format) file manually.
2012-11-30 16:09:58 +01:00
Frederic Massart d75130a1a5 MDL-36949 usability: Use new icons for unused icons 2012-11-30 20:46:13 +08:00
Eloy Lafuente (stronk7) 47dfbd9eb3 on-demand release 2.4rc1 2012-11-30 13:26:57 +01:00
Eloy Lafuente (stronk7) e433207d98 ie9 svg compatibility fixes 2012-11-30 13:19:44 +01:00
Frederic Massart c2e10ac08a MDL-36948 usability: Styling for new reload icon 2012-11-30 20:19:16 +08:00
Barbara Ramiro fd7653aa27 MDL-36948 usability: New reload icon 2012-11-30 20:18:58 +08:00
Michael Aherne 2211f50422 MDL-36946 theme Use server default theme before standard 2012-11-30 12:11:07 +00:00
Tim Hunt 7c86af621e MDL-35404 question export: make it work with slasharguments off.
Thanks to Brian King for working out the problem and how to fix it. I am
just committing his patch.
2012-11-30 11:48:26 +00:00
Eloy Lafuente (stronk7) 089b283b8a Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-11-30 12:48:01 +01:00
Frederic Massart 01686636ce MDL-36884 usability: Deprecated icons fallback on most corresponding new icons 2012-11-30 19:32:14 +08:00
Frederic Massart c7859a51b7 MDL-36944 usability: New version of switchrole icon 2012-11-30 19:28:19 +08:00
Frederic Massart 0348468bee MDL-36912 usability: CSS adaptations for assignment 2012-11-30 19:25:14 +08:00
Barbara Ramiro f08c147ef0 MDL-36912 usability: New icons for assignment module 2012-11-30 19:25:09 +08:00
Barbara Ramiro cfd17b5da7 MDL-36618 usability: New icons for permissions risks 2012-11-30 19:17:59 +08:00
Frederic Massart d9f95015f5 MDL-36777 usability: Theming fixes on backup steps 2012-11-30 16:53:39 +08:00
Barbara Ramiro f9f8a6af6e MDL-36777 usability: New icons for backup 2012-11-30 16:53:39 +08:00
Frederic Massart 851d3b7a97 MDL-36830 usability: Glossary and database small design improvements 2012-11-30 16:48:46 +08:00
Aparup Banerjee 2d74d1aea3 Merge branch 'MDL-36632-master' of git://github.com/FMCorz/moodle 2012-11-30 15:44:50 +08:00
Frederic Massart 501380a96d MDL-36632 usability: Grading methods icons and CSS 2012-11-30 15:42:39 +08:00
Aparup Banerjee 12995ef7d0 Merge branch 'MDL-36774-master' of git://github.com/FMCorz/moodle 2012-11-30 15:32:15 +08:00
Aparup Banerjee 7b1c485911 Merge branch 'MDL-36765-master' of git://github.com/FMCorz/moodle 2012-11-30 15:21:05 +08:00
Mark Nelson 7428077d4b MDL-36755 blocks: the course overview block can only be added to the My Moodle page so removing unnecessary addinstance cap 2012-11-30 15:11:49 +08:00
Aparup Banerjee 5bd84c3fde Merge branch 'MDL-36869-master' of git://github.com/FMCorz/moodle 2012-11-30 15:05:41 +08:00
Jerome Mouneyrac 11d819364e MDL-30961 get_course_contents: returned activity name should not be check against PARAM_TEXT, it could be anything 2012-11-30 14:22:16 +08:00
Frederic Massart 41058f0a19 MDL-36860 theme: Fix MyMobile theme CSS 2012-11-30 13:21:52 +08:00
Frederic Massart d81c17f900 MDL-36860 theme: MyMobile jQuery Mobile hack 2012-11-30 13:20:54 +08:00
Dan Poltawski 7b48acebaf MDL-36778 course - prevent undefined index warnings
When logged in as a guest the mform didn't set userid.
2012-11-30 12:27:09 +08:00
Dan Poltawski 054124a3ed MDL-36887 quiz: reorder upgrade.txt's 2012-11-30 11:41:01 +08:00
Andrew Davis 0a5b8e9e2c MDL-36321 core_message: made the course participants list correctly show if course participants are contacts or not 2012-11-30 11:14:09 +08:00
Andrew Davis aee968da79 MDL-36761 core_grade:shifted a call to count() out of a loop 2012-11-30 11:05:44 +08:00
Eloy Lafuente (stronk7) 663dbbc2e6 MDL-36933 Bump everything to 2012112900
(versions, requires and dependencies)
2012-11-30 03:30:09 +01:00
Eloy Lafuente (stronk7) 08c05956e0 MDL-36933 Prepare main version and backup branch 2012-11-30 03:15:31 +01:00
Jerome Mouneyrac 8158ce79f9 MDL-36773 timezone inconsistency => some number support decimal other don\'t - Original patch author: Nathan Mares 2012-11-30 10:11:55 +08:00
Damyon Wiese 85c5083054 MDL-36835 Assignment: Do not show javascript warning when toggling quickgrading 2012-11-30 10:04:31 +08:00
Adrian Greeve dfdd9c9b11 MDL-36915 - mod/data: A database with no entries no longer displays the export to portfolio button. 2012-11-30 09:57:45 +08:00
Dan Poltawski 6b003f12eb Merge branch 'wip-MDL-36937-m24' of git://github.com/samhemelryk/moodle 2012-11-30 09:48:36 +08:00
Sam Hemelryk b870426ab6 MDL-36937 cache: Fixed up typo 2012-11-30 14:29:58 +13:00
Dan Poltawski b584a35845 Revert "MDL-36838 moodle->mahara mnet SSO failure in FF17"
Firefox have now decided to reverse their UA change (since integration)
and this patch has some minor drawbacks.

This reverts commit 1c65f683dc.
2012-11-30 09:23:17 +08:00
Davo Smith f5744d1cfa MDL-31484 backup - repeated restores with anonymised users now works correctly 2012-11-29 19:57:16 +00:00
Kevin Wiliarty a6a33636eb MDL-35221 mod_feedback: replace checkbox with advcheckbox for all requirable feedback question types 2012-11-29 11:30:19 -05:00
Davo Smith ead25632bf MDL-33688 filemanager - display progress bars as files uploaded
Also improved the styling of the progress bars (used in course drag and drop upload as well)
2012-11-29 11:33:40 +00:00
Andrew Robert Nicols b84a84258c MDL-36601 Ensure that reports remember all days setting
All Days was set as the nothing value, but this nothing value was used.
Additionally, an insufficient comparison meant that the selecteddate then
became Today.
2012-11-29 09:56:30 +00:00
Tim Hunt 6e4a2acf93 MDL-36916 quiz/questions: simplify code after MDL-36638. 2012-11-29 09:28:36 +00:00
Barbara Ramiro 6d5f93ee28 MDL-36869 usability: Revised icons enrolusers and assignroles 2012-11-29 16:16:16 +08:00
Damyon Wiese f264499fcf MDL-36914: Assignment upgrade. Clean up patch to include outcomes in the upgrade
Thanks to Nathan Mares for reporting this issue.
2012-11-29 16:10:02 +08:00
Nathan Mares 8131a848dd MDL-36914: Re-associate all grade_item records when upgrading assignments to prevent data loss 2012-11-29 16:10:02 +08:00
Rossiani Wijaya 49f0c151dd MDL-36905 accessibility for assignment grading: add label for grading actions and operations select options 2012-11-29 15:06:49 +08:00
Dan Poltawski e4d7ec6b3b Merge branch 'MDL-36783-master' of git://github.com/FMCorz/moodle 2012-11-29 15:06:19 +08:00
Dan Poltawski 7dd3674708 Merge branch 'MDL-36638-master' of git://github.com/FMCorz/moodle 2012-11-29 14:53:11 +08:00
Dan Poltawski 4f847182e6 Merge branch 'MDL-36839-master' of git://github.com/FMCorz/moodle 2012-11-29 14:43:50 +08:00
Adrian Greeve 8f3622d89c MDL-36906 - mod_data: Latitude and Logitude error fix.
Thanks to Marcus Boon for providing a patch for this issue.

mod/data/field/latlong/kml.php was missing a context variable.
This was causing an error when trying to download a kml file for
google earth. This variable has now been included.
2012-11-29 14:22:47 +08:00
Aparup Banerjee 8e1fbc0fe6 Merge branch 'master_MDL-36858' of git://github.com/danmarsden/moodle 2012-11-29 12:53:25 +08:00
Dan Poltawski 88ee671bae Merge branch 'MDL-36718-master' of git://github.com/FMCorz/moodle 2012-11-29 12:51:00 +08:00
Frederic Massart c384744304 MDL-36638 usability: Core changes for new quiz/question icons 2012-11-29 12:41:29 +08:00
Barbara Ramiro 5644415789 MDL-36638 usability: New quiz/question related icons 2012-11-29 12:40:09 +08:00
Frederic Massart c22fbd3868 MDL-36837 theme: Help icons aligned on the left are well positioned 2012-11-29 12:34:18 +08:00
Dan Poltawski 694b2e20bb Merge branch 'MDL-36695-master' of git://github.com/FMCorz/moodle 2012-11-29 12:21:03 +08:00
Frederic Massart eacc63ab57 MDL-36883 course: Fixed HTML differences with drag & drop 2012-11-29 11:14:05 +08:00
AMOS bot c64eea5108 Automatically generated installer lang files 2012-11-29 00:40:19 +00:00
Sam Hemelryk ad47d02595 MDL-36878 course: fixed issue with module metadata cache
Credit goes to Sam Chaffee.
2012-11-29 12:56:55 +13:00
Dan Poltawski b58d1b9b1c Merge branch 'MDL-36782-master' of git://github.com/FMCorz/moodle 2012-11-28 17:51:33 +08:00
Frederic Massart 261a89aaa5 MDL-36638 usability: Fix missing padding in forum headers 2012-11-28 17:36:38 +08:00
Dan Poltawski 6f24d3183e Merge branch 'MDL-36838-FF17-MNETSSO-MASTER' of git://github.com/peterbulmer/moodle 2012-11-28 17:35:54 +08:00
Barbara Ramiro 94341a7c50 MDL-36718 usability: New activity completion icons 2012-11-28 16:05:50 +08:00
Dan Marsden be2d2f6d73 MDL-36858 SCORM: improve lang help for attempts grading to warn about failed status. 2012-11-28 20:54:50 +13:00
Frederic Massart 2ba3f3d2f7 MDL-36765 usability: CSS fixes for new course icons 2012-11-28 15:14:49 +08:00
Barbara Ramiro b6305b9b83 MDL-36765 usability: New icons for courses and remote courses 2012-11-28 15:14:43 +08:00
Damyon Wiese 871941a37a MDL-35476 Assignment: Make submissions_open public so it can be used by plugins 2012-11-28 14:46:17 +08:00
Dan Poltawski 0c21bb606b Merge branch 'MDL-35966-master' of git://github.com/damyon/moodle 2012-11-28 14:15:28 +08:00
Dan Poltawski 2e15e63a31 Merge branch 'MDL-36864_master' of git://github.com/markn86/moodle 2012-11-28 14:14:49 +08:00
Frederic Massart fc5e08440a MDL-36783 usability: Portfolio CSS for new icons 2012-11-28 14:07:43 +08:00
Barbara Ramiro a9905a82d4 MDL-36783 usability: New icons for portfolio 2012-11-28 13:37:08 +08:00
Mark Nelson 9b06b50719 MDL-36864 blocks: only perform myaddinstance capability check on the My Moodle page, not on any other pages using the user context 2012-11-28 12:47:54 +08:00
Frederic Massart b45fcbe625 MDL-36839 theme: Margin on single selects 2012-11-28 11:01:05 +08:00
Frederic Massart 971ff1be9b MDL-36774 theme: Comment issues in glossary and blogs 2012-11-28 10:59:01 +08:00
Dan Poltawski 8dd6b5f487 MDL-33791 - fix upgrade.txt ordering 2012-11-28 10:28:01 +08:00
Damyon Wiese e4288042cc MDL-36591 Assignment - rewrite image urls in online text summaries 2012-11-28 10:18:01 +08:00
Dan Poltawski bd80fcc357 Merge branch 'wip-MDL-36859-m24' of git://github.com/samhemelryk/moodle 2012-11-28 09:56:59 +08:00
Barbara Ramiro a37bf4b1dd MDL-36695 usability: New icons for feedback module 2012-11-28 09:48:25 +08:00
Dan Poltawski 1d762c8aba Merge branch 'MDL-36752-master-2' of git://git.luns.net.uk/moodle 2012-11-28 09:40:24 +08:00
Andrew Davis 30dd9930ba MDL-36680 core_grade: fixed grade_report::blank_hidden_total() and added unit tests 2012-11-28 08:45:20 +08:00
Sam Hemelryk 97df015690 Merge branch 'MDL-36336_modLtiRestoreGrade' of git://github.com/moodlerooms/moodle 2012-11-28 11:48:12 +13:00
Sam Hemelryk 6167badf62 Merge branch 'wip-mdl-36238' of git://github.com/rajeshtaneja/moodle 2012-11-28 11:41:42 +13:00
Sam Hemelryk 58014c5621 Merge branch 'wip-MDL-34530_MASTER' of git://github.com/jason-platts/moodle 2012-11-28 11:25:24 +13:00
Sam Hemelryk 2644c4f33a Merge branch 'MDL-30139_master' of https://github.com/markn86/moodle 2012-11-28 11:14:47 +13:00
Sam Hemelryk acd51c5217 Merge branch 'MDL-36012-master' of git://github.com/damyon/moodle 2012-11-28 11:12:53 +13:00
Sam Hemelryk fd6ab92b1d Merge branch 'MDL-35997-wip1' of git://github.com/mouneyrac/moodle
Conflicts:
	version.php
2012-11-28 10:57:09 +13:00
Sam Hemelryk 73321216a1 MDL-36859 cache: removed unused config definition 2012-11-28 10:34:33 +13:00
Andrew Robert Nicols c44a8dfed5 MDL-36752 Be more specific about tooltip selectors 2012-11-27 14:45:47 +00:00
sam marshall da6076f1cc MDL-36808 Completion: Incorrect escaping for activity name in completion tickbox 2012-11-27 13:00:59 +00:00
Aparup Banerjee e002d5e435 Merge branch 'MDL-36865_master' of git://github.com/markn86/moodle 2012-11-27 16:20:26 +08:00
Damyon Wiese a732e1f714 MDL-35966 Assignment - Localisation issue - use userdate not strftime
This is causing a database error (reported on MySQL) when strftime returns
non-utf8 characters.  This occurs when sending assignment notifications.

This was reported and a solution provided by Chien Wen-Chang(簡文章).
2012-11-27 16:19:01 +08:00
Mark Nelson 08a6a19d4b MDL-36865 filepicker: ensuring the dnd arrow displays in the center of the filepicker for all supported browsers 2012-11-27 15:59:43 +08:00
Aparup Banerjee 63e2347e1c Merge branch 'MDL-36710-master' of git://github.com/ankitagarwal/moodle 2012-11-27 15:49:32 +08:00
Ankit Agarwal c34e03097a MDL-36710 calendar: Correcting the validation checks 2012-11-27 15:33:36 +08:00
Dan Poltawski 9c8969a371 Merge branch 'MDL-36629-master' of git://github.com/FMCorz/moodle 2012-11-27 15:26:18 +08:00
Frederic Massart 94972ccae1 MDL-36629 usability: CSS adaptations for Workshop 2012-11-27 15:23:13 +08:00
Barbara Ramiro 01d1bb3a23 MDL-36629 usability: New workshop icons 2012-11-27 15:16:11 +08:00
Aparup Banerjee a58be8a9f1 Merge branch 'MDL-36841_master' of git://github.com/markn86/moodle 2012-11-27 14:56:03 +08:00
David Monllao 67cf74b269 MDL-30899 moodle-core-notification Adding ARIA attributes 2012-11-27 14:41:42 +08:00
David Monllao 4bcbdb3e88 MDL-30899 moodle-core-notification Adding close button title for accessibility 2012-11-27 14:41:42 +08:00
David Monllao f068cac195 MDL-30899 moodle-core-notification Adding focus to non modal windows 2012-11-27 14:40:10 +08:00
David Monllao 729c115195 MDL-30899 moodle-core-notification Adding H1 to notifications headers 2012-11-27 14:40:10 +08:00
David Monllao 789819a9f6 MDL-30899 block_community Changing from overlay to panel references 2012-11-27 14:40:10 +08:00
David Monllao 7b67e0c5eb MDL-30899 modchooser Changing from overlay to panel references 2012-11-27 14:40:09 +08:00
David Monllao 7cd301d191 MDL-30899 moodle-core-notification Replacing Y.Overlay for Y.Panel
References to lightbox are still there to maintain the same
external API but are converted to a modal attribute internally,
same with closeButton, now it uses the Y.Panel close button
2012-11-27 14:40:09 +08:00
Dan Poltawski 908957bc25 Merge branch 'MDL-34695' of git://github.com/rwijaya/moodle 2012-11-27 14:23:29 +08:00
Mark Nelson 04123f6d85 MDL-36841 portfolio: ensure variables in parent function match those of childs to prevent strict standard error 2012-11-27 14:12:25 +08:00
Dan Poltawski 0fa3d61d20 Merge branch 'MDL-36302-master' of git://github.com/damyon/moodle 2012-11-27 14:09:56 +08:00
Damyon Wiese 736a655135 MDL-36302 course: Set correct URL on settings page for navigation. 2012-11-27 14:02:39 +08:00
Dan Poltawski a6d3387c3a Merge branch 'MDL-36782-master' of git://github.com/FMCorz/moodle 2012-11-27 14:01:04 +08:00
Dan Poltawski db0b3c5078 Merge branch 'MDL-36184-master' of git://github.com/damyon/moodle 2012-11-27 13:58:20 +08:00
Dan Poltawski 3546b9f4d2 version bump for lots of theme changes 2012-11-27 13:53:15 +08:00
Frederic Massart 99938034df MDL-36782 usability: Adjustments following new mark as read icon 2012-11-27 13:46:21 +08:00
Kirill Astashov cc2ed22851 MDL-36856: Fix method name misspelled in two places in mod_assign 2012-11-27 16:15:26 +10:30
Barbara Ramiro b166d7141e MDL-36782 usability: New icon to mark posts as read on forum 2012-11-27 13:43:05 +08:00
Luke Tucker fb11a70254 MDL-34052 assignment - Disable submission and feedback plugins based on assign type when upgrading 2012-11-27 13:40:22 +08:00
Dan Poltawski 4554660c28 Merge branch 'wip-MDL-36466-m24' of git://github.com/samhemelryk/moodle 2012-11-27 13:38:53 +08:00
Dan Poltawski f95fb4b600 Merge branch 'wip-MDL-36825-m24' of git://github.com/samhemelryk/moodle 2012-11-27 13:37:49 +08:00
Dan Poltawski e0c9b42ff7 Merge branch 'MDL-36752-master' of git://git.luns.net.uk/moodle 2012-11-27 13:32:34 +08:00
Dan Poltawski 513c64c303 Merge branch 'MDL-36806' of git://github.com/timhunt/moodle 2012-11-27 13:26:38 +08:00
Dan Poltawski f285889157 Merge branch 'MDL-36442_master' of git://github.com/lazydaisy/moodle 2012-11-27 13:18:20 +08:00
Dan Poltawski e7705abdde Merge branch 'MDL-36775-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/upgrade.txt
2012-11-27 13:10:27 +08:00
Dan Poltawski 5d6aca6e1a Merge branch 'MDL-36784-master' of git://github.com/FMCorz/moodle 2012-11-27 13:06:32 +08:00
Dan Poltawski 23510ab2e8 Merge branch 'MDL-36550-master' of git://github.com/FMCorz/moodle 2012-11-27 13:00:44 +08:00
Frederic Massart d2ced94bff MDL-36550 theme: Fixed syntax error in CSS rules 2012-11-27 12:37:13 +08:00
Aparup Banerjee 720ee26d4a Merge branch 'wip-mdl-36767' of git://github.com/rajeshtaneja/moodle 2012-11-27 12:19:52 +08:00
Dan Poltawski dcb58f9d06 Merge branch 'MDL-36802-master' of git://github.com/FMCorz/moodle 2012-11-27 12:14:05 +08:00
Frederic Massart 58f46a0e66 MDL-36470 usability: Course legacy files uses the folder icon 2012-11-27 12:11:19 +08:00
Aparup Banerjee ec03ca7272 Merge branch 'MDL-36710-master' of git://github.com/ankitagarwal/moodle 2012-11-27 12:02:14 +08:00
Dan Poltawski 783c4779df Merge branch 'MDL-36636-master' of git://github.com/FMCorz/moodle 2012-11-27 11:55:21 +08:00
Rajesh Taneja 09153efa90 MDL-36767 Administration: user_filter_yesno use different name for sql filter
user_filter_yesno extends user_filter_simpleselect, so if user bulk action filter has both
user_filter_simpleselect and user_filter_yesno, they use the same filter name but counter is
different as they are different classes. Hence using different filter name will avoid confilts
2012-11-27 11:52:53 +08:00
Aparup Banerjee 0319316444 Merge branch 'MDL-36305-master' of git://github.com/FMCorz/moodle 2012-11-27 11:52:50 +08:00
Dan Poltawski f6399f7547 Merge branch 'MDL-36631-master' of git://github.com/FMCorz/moodle
Conflicts:
	theme/upgrade.txt
2012-11-27 11:39:21 +08:00
Dan Poltawski e8d7f57e8c Merge branch 'MDL-36630-master' of git://github.com/FMCorz/moodle 2012-11-27 11:25:10 +08:00
Peter Bulmer 1c65f683dc MDL-36838 moodle->mahara mnet SSO failure in FF17
In MDL-36838 Firefox 17 users are unable to sso from moodle to mahara.

Firefox 17 uses a different user agent (UA) string for Moodle sites than it
does for Mahara or other sites.
This patch relaxes the check which previously required that the UA string
being presented to the SP on landing matched the UA string presented to the IP
when jumping.
Likewise, checks associated with logout calls have been relaxed
2012-11-27 16:17:43 +13:00
Dan Poltawski 73da0c6e1d MDL-36742 - Add IE svg fixes 2012-11-27 10:57:49 +08:00
Dan Poltawski 8204e57309 Merge branch 'MDL-36559-master-int' of git://github.com/FMCorz/moodle 2012-11-27 10:50:31 +08:00
Dan Poltawski 673c671be0 MDL-36623 - IE9 svg fixes 2012-11-27 10:44:42 +08:00
Dan Poltawski 981f72be5e Merge branch 'MDL-36623-master-int' of git://github.com/FMCorz/moodle 2012-11-27 10:40:24 +08:00
Dan Poltawski 2c59d2ca8c Merge branch 'MDL-36550-master' of git://github.com/FMCorz/moodle 2012-11-27 10:36:59 +08:00
Dan Poltawski 70c53d3ece MDL-36628 - IE svgtool fix 2012-11-27 10:13:47 +08:00
Dan Poltawski 713a49298f Merge branch 'MDL-36628-master' of git://github.com/FMCorz/moodle 2012-11-27 10:10:04 +08:00
Mary Evans 3f370e3a51 MDL-36442 theme_boxxie: Adds definition to block header command icons 2012-11-27 01:38:11 +00:00
Sam Hemelryk b144e12feb MDL-36768 cache: Fixed regression in cache stores by reordering classes 2012-11-27 12:14:48 +13:00
Sam Hemelryk 0aa6247168 Merge branch 'MDL-36826-master' of git://github.com/damyon/moodle 2012-11-27 11:38:57 +13:00
Sam Hemelryk a28e3a6007 Merge branch 'wip-MDL-36795-master' of git://github.com/abgreeve/moodle 2012-11-27 11:22:08 +13:00
Sam Hemelryk 7ad3fc1f80 Merge branch 'MDL-35760_master' of git://github.com/markn86/moodle 2012-11-27 11:10:37 +13:00
Sam Hemelryk fa8d78a485 Merge branch 'MDL-36829' of https://github.com/kastashov/moodle 2012-11-27 11:05:40 +13:00
Sam Hemelryk 75ca9964a5 Merge branch 'MDL-36760' of git://github.com/timhunt/moodle 2012-11-27 10:41:41 +13:00
Sam Hemelryk e4f71b7c8f MDL-36825 cachestore_file: fixed isready condition check 2012-11-27 10:16:08 +13:00
Paul Nicholls 11c56e2489 MDL-27619: Prevent teachers from turning course Outcomes into site-wide ones
Similar to the issue which allowed teachers to create site-wide scales by editing a course-specific scale (MDL-24682), teachers could also promote a course-specific scale to a site-wide (standard) by editing it.  As with MDL-24682, removing the course ID check (leaving just the capability check) prevents this unauthorised creation of site-wide (standard) outcomes.
2012-11-27 09:30:30 +13:00
Frederic Massart e40bd74620 MDL-36550 usability: CSS updates on course page 2012-11-26 17:00:29 +08:00
Dan Poltawski ae8530e854 MDL-35717|NOBUG - fix trailing whitespace problems 2012-11-26 15:01:31 +08:00
Matteo Scaramuccia f833171fd1 MDL-36641 Missing HTTP check when using an external resource 2012-11-26 07:43:17 +01:00
Adrian Greeve 341bfedf90 MDL-36795 - lib / administration: maxsections now limits the default setting for numsections.
In the default course settings, setting the maximum number topics / weeks  to 0 would not
change the default number of sections on the same page as any other number would.
A more appropriate check has been put in place.

This also incorporates a fix for MDL-28584. The course edit screen now also checks to see
if maxsections is set or numeric. If it is not set or numeric then it defaults to 52.
2012-11-26 14:41:50 +08:00
Kirill Astashov 398a414801 MDL-36829: Fix outcome value not being saved when grading a submission 2012-11-26 16:23:02 +10:30
Damyon Wiese 41d3bc0ca0 MDL-36826: Group assignment - Feedback files are not sent entire group 2012-11-26 13:33:13 +08:00
Adam Olley d684074114 MDL-36828: mod_scorm: Allow deletion of scorm modules if no scorm_scoes data exists 2012-11-26 15:30:49 +10:30
Dan Poltawski 939a43e426 Merge branch 'MDL-35717-quiz-attempt-checkstate' of git://github.com/mpetrowi/moodle
Conflicts:
	mod/quiz/tests/generator/lib.php
2012-11-26 12:07:04 +08:00
Dan Poltawski b4272e0005 Merge branch 'wip-MDL-36066-master' of git://github.com/marinaglancy/moodle 2012-11-26 11:42:35 +08:00
Marina Glancy d9c91ffc9e MDL-36066 Removed accidentally added image file causing wrong filemanager display 2012-11-26 10:32:08 +08:00
Damyon Wiese 63f57b2b3c MDL-36728: Assignment - submission statement default - Add a langstring fix 2012-11-26 10:30:37 +08:00
Damyon Wiese a2d5581730 MDL-36728: Assignment - Improve usability of require submission statement setting.
This change will hide the setting "Require that students accept the submission statement" at
the assignment level if no submission statement has been configured for a site. It also includes a
change to the help text to separate the assignment level setting from the site level setting. This
change also sets a default assignment submission statement.

AMOS BEGIN
 CPY [requiresubmissionstatement,mod_assign],[requiresubmissionstatementassignment,mod_assign]
AMOS END
2012-11-26 15:06:22 +13:00
Sam Hemelryk 8a423efda9 Merge branch 'MDL-36609_master' of git://github.com/markn86/moodle 2012-11-26 14:58:13 +13:00
Adam Olley 8f27b77b26 MDL-33125: core_backup: Prevent import/activity duplication from duplicating manual grade items 2012-11-26 12:19:44 +10:30
Sam Hemelryk 4d9e8469e1 Merge branch 'MDL-35569-master' of git://git.luns.net.uk/moodle 2012-11-26 14:46:25 +13:00
Sam Hemelryk 1762071194 Merge branch 'wip-MDL-36551-master' of git://github.com/abgreeve/moodle 2012-11-26 14:44:40 +13:00
Eloy Lafuente (stronk7) 155bd5d54a Merge branch 'wip-MDL-36819-m24-rb' of git://github.com/samhemelryk/moodle 2012-11-26 02:29:58 +01:00
Eloy Lafuente (stronk7) f725158ea6 Merge branch 'wip-MDL-36768-m24-r2' of git://github.com/samhemelryk/moodle 2012-11-26 02:28:12 +01:00
Sam Hemelryk 2b274ad001 MDL-36819 cache: implemented cache_is_configurable interface 2012-11-26 14:27:44 +13:00
Sam Hemelryk 75cde6b9ac MDL-36768 cache: replaced cache_store interface with abstract class 2012-11-26 14:11:01 +13:00
Sam Hemelryk 93e490613e Merge branch 'MDL-36763-master' of git://git.luns.net.uk/moodle 2012-11-26 11:42:28 +13:00
Sam Hemelryk c7efe8b783 Merge branch 'MDL-36400-master' of git://github.com/ankitagarwal/moodle 2012-11-26 11:01:15 +13:00
Sam Hemelryk 6254d1d2ee Merge branch 'MDL-35963-master' of git://github.com/damyon/moodle 2012-11-26 10:40:58 +13:00
Sam Hemelryk f1a90cc4fe Merge branch 'master_MDL-36772' of git://github.com/danmarsden/moodle 2012-11-26 10:24:42 +13:00
Sam Hemelryk bd188851f2 MDL-36768 cache: Implemented abstract cache store base class 2012-11-26 08:12:45 +13:00
Sam Hemelryk 94ef67cf5f MDL-36466 cache: tidy up after review 2012-11-26 08:12:00 +13:00
Sam Hemelryk 3308259062 MDL-36466 cache: disabled caching during installation and upgrade 2012-11-26 08:12:00 +13:00
Sam Hemelryk 3680c61a3c MDL-36466 cache: implemented functionality to disable the bulk of the cache API 2012-11-26 08:12:00 +13:00
Sam Hemelryk 82afd05c35 MDL-36466 cache: renamed disable to disable_stores and added tests 2012-11-26 08:12:00 +13:00
Sam Hemelryk c9f40e77b7 MDL-36466 cache: renamed define NO_CACHE_STORES to CACHE_DISABLE_STORES 2012-11-26 08:12:00 +13:00
Sam Hemelryk 7383a7e2a0 MDL-36466 cache: improved handling of exceptions during initialisation. 2012-11-26 08:11:59 +13:00
Nadav Kavalerchik 2bfdd57619 MDL-36812 - Enabling grade_report_fixedstudents, shows the user's list on the left side of the page, in RTL mode (theme/standard) 2012-11-24 23:12:45 +02:00
AMOS bot 2d1a0caa7d Automatically generated installer lang files 2012-11-24 00:42:50 +00:00
Tim Hunt 97f1137a61 MDL-36806 question files: fix unnecessary require_login call.
quiz_question_pluginfile later does the correct check. Doing this
other check first means you get an error about changing $PAGE->context.
2012-11-23 15:54:58 +00:00
Andrew Robert Nicols ff56ecd315 MDL-36805 Correct docs for workshop_grade_item_update in mod_workshop
The documentation suggested that the modname field should be present on the
$workshop parameter when this is not required. It is not used in any point
in the function and the $workshop variable is never passed to another
function which may use it.
2012-11-23 15:49:17 +00:00
Tim Hunt 5f137dcbe2 MDL-36760 formslib: fix frozen elements with [] in name.
This was a regression caused by MDL-30845 or, to be precise, the related
issue MDL-32785.

Form elements with names like multipier[0] require special handling,
such as is present in HTML_QuickForm_element::_prepareValue. I have
added equivalent handling to MoodleQuickForm::exportValues. I am afraid
that I could not think of a way to do this reliably without duplicating
code.
2012-11-23 10:53:14 +00:00
Mark Nelson 5fe65fd438 MDL-36741 mod_forum: fixed SQL that was generated when either timed posts or groups were enabled 2012-11-23 17:01:50 +08:00
Frederic Massart baf41e4b99 MDL-36802 usability: New icons used for LTI settings 2012-11-23 16:58:36 +08:00
Dan Poltawski f42c34a38a On demand release 2.4beta+ 2012-11-23 16:07:34 +08:00
Dan Poltawski ff3f0a2f43 MDL-36436 - fix ie9 svg compatibility 2012-11-23 16:06:30 +08:00
Dan Poltawski eb48b61abb On demand release 2.4beta+ 2012-11-23 15:21:00 +08:00
Dan Marsden ca9ee2d0eb MDL-36772 SCORM add boilerplate and remove <!-- as it cause jscache to crash and burn. 2012-11-23 20:20:46 +13:00
Dan Poltawski 62022cb553 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-11-23 15:11:14 +08:00
Jason Fowler 9e7d097926 MDL-35842 - Glossary, Blocks - Joseph Rézeau's patch for setting the Random Glossary block to progress alphabetically 2012-11-23 15:06:27 +08:00
Aparup Banerjee 9735135db7 Merge branch 'w47_MDL-36780_m24_redirect' of git://github.com/skodak/moodle 2012-11-23 14:47:25 +08:00
Frederic Massart 857c5f90e7 MDL-36775 usability: Code update following new calendar icons 2012-11-23 14:45:29 +08:00
Barbara Ramiro 5326675e20 MDL-36775 usability: New icons for calendar events 2012-11-23 14:11:07 +08:00
Frederic Massart f2bba619b3 MDL-36631 usability: Core edit for new messaging icons 2012-11-23 12:16:35 +08:00
Barbara Ramiro 00a398fbc6 MDL-36631 usability: New icons for messaging 2012-11-23 12:14:06 +08:00
Petr Škoda cbf99010bc MDL-36779 fix undefined NO_MOODLE_COOKIE after failed db connect 2012-11-23 12:05:49 +08:00
Frederic Massart 79ba32c607 MDL-36784 usability: CSS adjustments for Glossary print icon 2012-11-23 12:02:46 +08:00
Barbara Ramiro 40fb0a9e26 MDL-36784 usability: New print icon for glossary 2012-11-23 12:00:35 +08:00
Frederic Massart bdb66a4635 MDL-36628 usability: CSS adjustments for book module 2012-11-23 11:30:05 +08:00
Barbara Ramiro 2da6e51e9c MDL-36628 usability: New icons for book module 2012-11-23 11:30:02 +08:00
Dan Poltawski 9a27ce00b8 Merge branch 'MDL-36204-files-with-spaces' of git://github.com/mudrd8mz/moodle 2012-11-23 11:28:51 +08:00
David Mudrák 2c9689ed21 MDL-36204 Improve moodle1 conversion of embedded files
URL of files referenced in HTML fields via $@FILEPHP$@ are usually
encoded if they were linked using the HTML editor. So if they contain
spaces or plus signs in the name, their URL is encoded to use %20 and
%2B respectively.

Sometimes, for example when the HTML was edited manually in 1.9 without
the editor, non-encoded file names may be put into the HTML text. Such a
link used to work in 1.9 so we add an explicit support for it, too.

However, we do not support partially encoded URLs (e.g. only spaces are
encoded while plus signs are not). Such links are unmodified and will
rely on Legacy files support.
2012-11-23 03:39:17 +01:00
Paul Nicholls c931551acb MDL-32880: Add moodle1 backup converter for rss_client block.
Creates a shell rss_client.xml file, which contains no feeds.  This makes it behave the same as restoring a Moodle 1.9 backup into a different 1.9 site - the block is created, its title is as per the original course, but it has no feeds selected (and none are added to the site's feed list).
2012-11-23 09:29:29 +13:00
Paul Nicholls 14bb973bfa MDL-32880: Add moodle1 backup converter for html block.
This converter processes the HTML block's content, migrating any referenced files.
2012-11-23 09:29:10 +13:00
Paul Nicholls a374ba237c MDL-32880: moodle1 backup converter: add generic block handler
This handler will automatically be used for any block which does not provide its own handler, and should be subclassed by any block which needs to do anything extra (or different).

This commit incorporates contributions from Mike Churchward and API design suggestions from David Mudrak.
2012-11-23 09:28:50 +13:00
Andrew Robert Nicols 98b50e989e MDL-35819 Improve performance of help tooltip
Rather than using an event handler for each help link, we add the
'helpicon' class to them and delegate the display function.

In order for this to work, we modify the way that Y.io fetches the help to
use the intended target of the anchor rather than a value provided in the
add call. We also no longer modify this URL and instead add the ajaxurl
parameter to it using the Y.io data parameter.

This change is backwards compatible with people calling it without using
the help icon renderer.
2012-11-22 11:43:55 +00:00
Andrew Robert Nicols 120d7ed3c1 MDL-36763 Remove onclick event when creating activity left indent link
The left indent onclick is now handled by a Y.delegate so there is no need
for a seperate event handler.
2012-11-22 10:47:51 +00:00
Jay Knight 5e9fd83df8 MDL-36704: wrap pending conditions in span tags 2012-11-22 10:42:10 +00:00
Petr Škoda 4f73591af3 MDL-36780 add SESSION cleanup to web installer
This might help prevent some SESSION problems at the end
of installation.
2012-11-22 11:29:57 +01:00
Petr Škoda 8cd6d1aa6e MDL-36780 fix login redirect in require_login()
We can not redirect to login page when user is already logged in.
2012-11-22 11:27:10 +01:00
Frederic Massart 65edd8ad6d MDL-36623 usability: CSS adjustments for new course and courses access icons 2012-11-22 17:26:09 +08:00
AMOS bot da3c7e633d Automatically generated installer lang files 2012-11-22 09:05:22 +00:00
Ankit Agarwal cfb59253f6 MDL-36710 calendar: Implementing proper required rules for filepicker 2012-11-22 16:55:54 +08:00
Aparup Banerjee 020e338dee Merge branch 'w47_MDL-36701_m24_composer' of git://github.com/skodak/moodle 2012-11-22 16:23:20 +08:00
Rajesh Taneja 588b94ac65 MDL-36736 course: Availability information should not be visible for hidden modules
If user is viewing hidden module, availability information should only be visible to
user when editing and module is visible. If editing and module is hidden, then hide
availablilty information as it's invalid.
When user is not editing and activity is hidden then don't add availability information.
2012-11-22 15:11:26 +08:00
Rajesh Taneja 7b4737de26 MDL-36736 course: Availability information will use hide class for hidding 2012-11-22 15:11:25 +08:00
Barbara Ramiro 3ca2ffa971 MDL-36623 usability: New icons for course access 2012-11-22 14:56:45 +08:00
Petr Škoda 07c6fa6ee4 MDL-36701 add composer to phpunit readme
Thanks Aparup for reminding me!
2012-11-22 07:30:11 +01:00
Dan Poltawski b3e2aaebc3 MDL-36764 ddl/oracle: fix misleading comment 2012-11-22 10:05:10 +08:00
Petr Škoda 4c21b22043 MDL-36753 fix invalid sectionid in backup tests 2012-11-21 12:43:55 +01:00
Michael Aherne df3efbfb2c MDL-35775 group import Support for groupings 2012-11-21 11:04:48 +00:00
Frederic Massart 0cddd85151 MDL-36559 usability: Gradebook CSS styling for new icons 2012-11-21 17:29:14 +08:00
Frederic Massart 4cf69ee328 MDL-36559 core_grade: Deprecating unused functions print_toggle and get_toggles_html 2012-11-21 17:29:14 +08:00
Barbara Ramiro 4333bc64c8 MDL-36559 usability: New icons for the Gradebook 2012-11-21 17:29:13 +08:00
Frederic Massart 362bb961b5 MDL-36639 blog: Resized associated module icon 2012-11-21 17:29:13 +08:00
Frederic Massart fa9c0aab13 MDL-36633 usability: Styling over the admin pages 2012-11-21 17:29:13 +08:00
Mark Nelson c2aad61661 MDL-35954 javascript: prevent JS from being triggered on select box by clicking on already selected option 2012-11-21 16:54:58 +08:00
Andrew Robert Nicols 7266bd3e59 MDL-35569 AJAX Move auto-submitting selects to separate YUI module 2012-11-21 08:23:01 +00:00
Dan Poltawski a9962a8533 Merge branch 'w47_MDL-36743_m24_blognotice' of git://github.com/skodak/moodle 2012-11-21 16:13:21 +08:00
Ankit Agarwal 17475a2094 MDL-36400 calendar: Allow only ics file type in ical import 2012-11-21 16:09:47 +08:00
Petr Škoda ab996aff22 MDL-36743 fix blog notices in installer 2012-11-21 09:00:17 +01:00
Dan Poltawski 2048b8e2c7 Merge branch 'MDL-36470-master' of git://github.com/FMCorz/moodle 2012-11-21 15:58:19 +08:00
Dan Poltawski 5b93fb114c Merge branch 'w47_MDL-36211_m24_sesslocking' of git://github.com/skodak/moodle 2012-11-21 15:44:34 +08:00
Frederic Massart 3d3c7ecfac MDL-36630 usability: CSS related to online users block 2012-11-21 15:37:02 +08:00
Damyon Wiese 56672cb7b4 MDL-36712: Assignment grading with custom scale is affected by the current language 2012-11-21 15:35:08 +08:00
Petr Škoda bef1207302 MDL-36211 prevent session problems in installer 2012-11-21 08:34:28 +01:00
Barbara Ramiro da1233647a MDL-36630 usability: New email/message icons 2012-11-21 15:31:46 +08:00
Dan Poltawski 1b01909597 Merge branch 'w47_MDL-36547_m24_sectiongen' of git://github.com/skodak/moodle 2012-11-21 15:26:15 +08:00
Barbara Ramiro dcb9160579 MDL-36630 usability: 16x16 version of drag and drop icon 2012-11-21 15:22:26 +08:00
Dan Poltawski 3866195155 Merge branch 'MDL-30884' of git://github.com/timhunt/moodle 2012-11-21 15:19:15 +08:00
Dan Poltawski e5556885eb Merge branch 'MDL-36639-master-int' of git://github.com/FMCorz/moodle 2012-11-21 15:15:23 +08:00
Frederic Massart 58e4233ecb MDL-36639 blog: Resized associated module icon 2012-11-21 13:59:57 +08:00
Dan Poltawski c9f5160438 Merge branch 'MDL-36720-updates-via-https' of git://github.com/mudrd8mz/moodle 2012-11-21 13:48:04 +08:00
Damyon Wiese 34b8f3a83d MDL-35963: Assignment - do not accept empty submissions 2012-11-21 13:46:50 +08:00
Mark Nelson 1d747df105 MDL-35760 filemanager: ensuring the dnd arrow displays in the center of the filemanager for all supported browsers 2012-11-21 12:04:35 +08:00
Dan Poltawski 8068fcb5b6 Merge branch 'MDL-35675-master' of git://github.com/FMCorz/moodle 2012-11-21 12:02:48 +08:00
Dan Poltawski 77f948a2f7 Merge branch 'MDL-36289' of git://github.com/netspotau/moodle-mod_assign 2012-11-21 12:00:28 +08:00
Damyon Wiese 37eb2caa40 MDL-36012: Assignment, Accessibility - Add user information to alt text for grade icon in grading table. 2012-11-21 11:57:47 +08:00
Dan Poltawski 31112f3bab Merge branch 'w47_MDL-36211_m24_sesslocking' of git://github.com/skodak/moodle 2012-11-21 11:56:44 +08:00
Dan Poltawski e4837b8a25 Merge branch 'MDL-30377_master' of git://github.com/markn86/moodle 2012-11-21 11:52:32 +08:00
Dan Poltawski 77307db208 Merge branch 'MDL-36170_master' of https://github.com/jfilip/moodle 2012-11-21 11:47:17 +08:00
Rossiani Wijaya 46ac70b24c MDL-36549 Lesson module: fixed strict standards errors 2012-11-21 11:22:23 +08:00
Damyon Wiese 11b2094968 MDL-36184: Assignment quickgrading should only update lastmodified dates for modified submissions 2012-11-21 11:10:12 +08:00
Aparup Banerjee 9cae08dac4 MDL-36614 fixed version upgrade conflict (git why you no tell me about conflict!) 2012-11-21 10:49:44 +08:00
Aparup Banerjee 6bf410ed4b Merge branch 'MDL-36614-master' of git://github.com/ankitagarwal/moodle
Conflicts:
	calendar/lib.php (MDL-36615)
	calendar/managesubscriptions_form.php (MDL-36352)
2012-11-21 10:29:04 +08:00
Adrian Greeve c600a85c5e MDL-36551 - mod_data: Onsite presets now retain the advanced search template.
Presets that were saved to the site would lose the advanced search template when being used.
The previous check was put in place to see if the advanced search template existed or not (presets pre 1.9),
This checked external files properly but not onsite files.

Now checks are being done on both internal and external preset files.
2012-11-21 09:57:34 +08:00
Damyon Wiese be79d93fae MDL-36167: Assignment quickgrading fix when there is no grade (ensure feedback still saves)
This patch modifies the previous on by Luke Tucker so that the lastmodified hidden field
is always added to the quickgrading form even if there is no grade for the assignment. This
ensures that the lastmodified checks still work (to prevent teachers overwriting each
others feedback) and feedback is saved when there is no grade.
2012-11-21 09:26:48 +08:00
Luke Tucker 90387b1094 MDL-36167: Update all users in assignment quickgrade form to ensure feedback is saved 2012-11-21 09:26:48 +08:00
Eloy Lafuente (stronk7) d937f597e7 Merge branch 'w47_MDL-36719_m24_borkedcachingfront' of git://github.com/skodak/moodle 2012-11-21 00:55:18 +01:00
Sam Hemelryk 82053086bc Merge branch 'wip-MDL-28583-master' of git://github.com/marinaglancy/moodle 2012-11-21 09:15:34 +13:00
Sam Hemelryk d540132fb5 Merge branch 'MDL-25552_master' of git://github.com/markn86/moodle 2012-11-21 09:00:35 +13:00
David Mudrák 40a9c2e531 MDL-36720 Fetch available updates info via HTTPS 2012-11-20 15:51:35 +01:00
Petr Škoda 5689fb0bc8 MDL-36719 try to work around course format caching issue in installer 2012-11-20 15:41:06 +01:00
Petr Škoda e271f71da4 MDL-36719 update $SITE caches in rebuild_course_cache() 2012-11-20 15:39:43 +01:00
Justin Filip e08bb715e7 MDL-36170 - mod/data - Don't display the blocks editing button within table HTML, use a standard API to create it. 2012-11-20 09:01:29 -05:00
Tim Hunt e498f21421 MDL-30884 quiz: ARIA attribute for the coutdown timer. 2012-11-20 13:18:02 +00:00
Petr Škoda 40b9c0694c MDL-36436 use hacky aspect ratio to work around IE9 issues 2012-11-20 13:01:27 +01:00
Petr Škoda 741797453b MDL-36436 add simple svg hacking tool for icon designers
This should solve some IE9 issues with icon cut-off.
2012-11-20 13:00:53 +01:00
Petr Škoda 3a7bc16ad7 MDL-36701 support for PHPUnit installation via Composer packaging system
See http://getcomposer.org/doc/00-intro.md
2012-11-20 11:27:35 +01:00
Mark Nelson 684c3be721 MDL-25552 mod_lesson: changing filepicker element to filemanager to allow the deletion of a file 2012-11-20 17:43:50 +08:00
Aparup Banerjee 4bb2e5c4b2 Merge branch 'wip-mdl-36707' of git://github.com/rajeshtaneja/moodle 2012-11-20 16:22:27 +08:00
Dan Poltawski c796b506be Merge branch 'MDL-33863' of git://github.com/timhunt/moodle 2012-11-20 16:15:16 +08:00
Dan Poltawski 7a12ad1286 Merge branch 'MDL-36634-master' of git://github.com/FMCorz/moodle 2012-11-20 16:09:49 +08:00
Dan Poltawski 3a31c0349a Merge branch 'MDL-36624-master-int' of git://github.com/FMCorz/moodle 2012-11-20 16:07:59 +08:00
Dan Poltawski 30e0a6e5ba Merge branch 'MDL-36659-master' of git://github.com/FMCorz/moodle 2012-11-20 16:06:08 +08:00
Dan Poltawski dab8ed3b24 Merge branch 'MDL-36022-master' of git://git.luns.net.uk/moodle 2012-11-20 16:04:08 +08:00
Dan Poltawski bdd3779064 Merge branch 'w47_MDL-36703_m24_enrolgenerator' of git://github.com/skodak/moodle 2012-11-20 16:01:41 +08:00
Dan Poltawski 109473368d Merge branch 'm24_MDL-36142_Incorrect_query_returns_HTTP_404' of https://github.com/scara/moodle 2012-11-20 15:57:53 +08:00
Dan Poltawski f132526512 Merge branch 'MDL-30731-master' of git://github.com/FMCorz/moodle 2012-11-20 15:31:27 +08:00
Dan Poltawski 3d51f11c9a Merge branch 'MDL-36679-master' of github.com:damyon/moodle 2012-11-20 15:25:20 +08:00
Dan Poltawski 9d1989daa7 Merge branch 'wip-MDL-35678-master' of git://github.com/abgreeve/moodle 2012-11-20 15:15:43 +08:00
Dan Poltawski 430f5aaac0 Merge branch 'MDL-36646' of git://github.com/timhunt/moodle 2012-11-20 15:06:21 +08:00
Dan Poltawski 941cf79fdc Merge branch 'MDL-36613-master' of git://github.com/FMCorz/moodle 2012-11-20 15:03:39 +08:00
Dan Poltawski 91b0d0b75a Merge branch 'MDL-36571' of git://github.com/timhunt/moodle 2012-11-20 14:59:34 +08:00
Frederic Massart f19d57e514 MDL-30731 calendar: Fixed display of images in event descriptions 2012-11-20 14:58:33 +08:00
Dan Poltawski 4dc87c7730 Merge branch 'MDL-36564-master-int' of git://github.com/FMCorz/moodle 2012-11-20 14:46:54 +08:00
Dan Poltawski 7a39c933b9 Merge branch 'MDL-36548_master' of git://github.com/pauln/moodle 2012-11-20 14:44:35 +08:00
Dan Poltawski 5b646bdc6c Merge branch 'wip-MDL-36544-m24' of github.com:amygroshek/moodle 2012-11-20 14:36:53 +08:00
Dan Poltawski f2e1d671a9 Merge branch 'wip-MDL-36453-master' of git://github.com/abgreeve/moodle 2012-11-20 14:31:53 +08:00
Juan Segarra Montesinos ff63763092 MDL-36305. Reply button in forums not shown in MyMobile theme
Updates jquery mobile from version 1.1.0 to 1.1.1 and shows the "Show parent" button again in forum posts.
2012-11-20 13:44:52 +08:00
Rajesh Taneja 6402047395 MDL-36707 Course: set conditionalhidden class properly, so it doesn't overlap with dimmed class 2012-11-20 13:40:25 +08:00
Ankit Agarwal 20131e5cdd MDL-36614 calendar: upgrade code for adding eventtype field to all existing installs 2012-11-20 13:20:43 +08:00
Ankit Agarwal 35ad5fc6bb MDL-36614 calendar: Add support for storing the submitted event type 2012-11-20 13:20:42 +08:00
Frederic Massart ae41a70b40 MDL-36634 usability: Minor CSS fixes in Wiki and Blog 2012-11-20 13:06:09 +08:00
Frederic Massart 59fa7fd006 MDL-36613 usability: Dock icons are correct in RTL mode 2012-11-20 13:00:01 +08:00
Dan Poltawski f45ecda7f9 Merge branch 'w47_MDL-36229_m24_crawl' of git://github.com/skodak/moodle 2012-11-20 12:48:22 +08:00
Dan Poltawski e741c4e4c0 Merge branch 'MDL-36204_master' of git://github.com/pauln/moodle 2012-11-20 12:45:08 +08:00
Dan Poltawski 1d907ae61e Merge branch 'master_MDL-36168' of git://github.com/danmarsden/moodle 2012-11-20 12:38:23 +08:00
Dan Poltawski 7b83e3019d Merge branch 'MDL-35158-master' of git://github.com/grabs/moodle 2012-11-20 12:28:49 +08:00
Damyon Wiese eb189e08f2 MDL-36679: Assignment revert to draft should user the selected user id, not the logged in user id. 2012-11-20 12:23:45 +08:00
Mark Nelson 737aefb454 MDL-30377 forum: do not allow users to view not yet started or expired discussions 2012-11-20 12:17:21 +08:00
Dan Poltawski 56eaaecfa2 Merge branch 'MDL-32865' of git://github.com/jmvedrine/moodle 2012-11-20 12:05:36 +08:00
Dan Poltawski e4b6c671ac Merge branch 'MDL-32806_master' of git://github.com/lazydaisy/moodle 2012-11-20 11:53:36 +08:00
Dan Poltawski 881f49841b Merge branch 'MDL-31847_master' of git://github.com/lazydaisy/moodle 2012-11-20 11:50:11 +08:00
Dan Poltawski 86ebf41545 Merge branch 'MDL-30871-master' of git://github.com/FMCorz/moodle 2012-11-20 11:47:17 +08:00
Sam Hemelryk 4d7259e53d Merge branch 'MDL-36592-master' of git://github.com/ankitagarwal/moodle 2012-11-20 16:42:52 +13:00
Ankit Agarwal 366e3dfaaf MDL-36592 calendar: Parse all line endings
Conflicts:

	lib/bennu/iCalendar_components.php
2012-11-20 11:38:24 +08:00
Dan Poltawski 32f741edea Merge branch 'MDL-26439_message_search' of git://github.com/andyjdavis/moodle 2012-11-20 11:20:43 +08:00
Eloy Lafuente (stronk7) 9e3f733f8a Merge branch 'MDL-36683' of git://github.com/timhunt/moodle 2012-11-20 01:33:39 +01:00
Jean-Michel Vedrine 334783a796 MDL-33863 question restore: better hint identification.
This is very similar to what MDL-30018 did for question_answers.
2012-11-19 23:27:44 +00:00
Sam Hemelryk 0d463df072 Merge branch 'wip-mdl-36352' of git://github.com/rajeshtaneja/moodle 2012-11-20 11:55:12 +13:00
Sam Hemelryk 41d17e48c7 Merge branch 'wip-mdl-36351' of git://github.com/rajeshtaneja/moodle 2012-11-20 11:51:13 +13:00
Petr Škoda 4f5789eae8 MDL-36703 very basic support for enrolments in data generator 2012-11-19 23:15:29 +01:00
Sam Hemelryk cb33680c22 Merge branch 'MDL-36615-master' of git://github.com/ankitagarwal/moodle 2012-11-20 10:25:04 +13:00
Tim Hunt acb9f7f47d MDL-36683 qtype match restore: better subq indentification.
This is very similar to what MDL-30018 did for question_answers.
2012-11-19 17:46:25 +00:00
Tim Hunt 8a7d763c77 MDL-36571 qtype multichoice: don't corrupt unicode characters.
It seems that \s includes non-breaking space, and the typical one-byte
representation of that is the same as some parts of multibyte unicode
characters. Therefore, you need to include the u modifer on the regular
expressions.

Also, remove any number of <br /> at the end of the answer.

Thanks to Joseph Rézeau and Jean-Michel Vedrine for working out what the
problem was, and how to fix it.
2012-11-19 17:21:00 +00:00
Paul Verrall 5f89e88dea MDL-36696 - filepicker: remove superfluous comma
It causes problems with older versions of IE.
2012-11-20 00:04:52 +08:00
Frederic Massart ebc583e4a3 MDL-36659 usability: Adjust main menu block CSS 2012-11-19 20:23:42 +08:00
Frederic Massart b621848c3b MDL-36636 usability: Comment delete icon repositioned 2012-11-19 18:02:41 +08:00
Mark Nelson 62d210515c MDL-36609 javascript: ensure HTML element exists before attempting to perform JS functionality 2012-11-19 15:43:46 +08:00
Dan Poltawski 1ffe4aefb1 Merge branch 'MDL-36655' of git://github.com/netspotau/moodle-mod_assign 2012-11-19 15:01:48 +08:00
Dan Poltawski 98d11a8c83 Merge branch 'w47_MDL-36682_m24_mcache' of git://github.com/skodak/moodle 2012-11-19 14:50:48 +08:00
Frederic Massart 3b59311047 MDL-36624 theme: Better look and feel on my page 2012-11-19 14:13:42 +08:00
Ankit Agarwal 7133a88d06 MDL-36614 calendar: Add event type field to the database 2012-11-19 13:14:57 +08:00
Ankit Agarwal f5b20ea317 MDL-36615 calendar: The type of event should be named site not global for consistencies 2012-11-19 12:05:09 +08:00
Dan Poltawski 1ae8e2f963 Merge branch 'MDL-36415-master-int' of git://github.com/FMCorz/moodle
Conflicts:
	theme/upgrade.txt
2012-11-19 10:51:54 +08:00
Dan Poltawski 380186484b Merge branch 'MDL-34204' of git://github.com/timhunt/moodle 2012-11-19 10:33:25 +08:00
Dan Poltawski 542f68b022 Merge branch 'm24_MDL-36512_Purging_file_cachestore_does_not_purge_anything' of https://github.com/scara/moodle 2012-11-19 10:20:00 +08:00
Barbara Ramiro 8f8f8f5a1e MDL-36564 usability: New icon docs 2012-11-19 10:03:50 +08:00
Frederic Massart 510ccc5521 MDL-36564 usability: Repositioned help/info icon 2012-11-19 10:03:50 +08:00
Sam Hemelryk 41439e6c8d Merge branch 'MDL-36589' of git://github.com/rwijaya/moodle 2012-11-19 14:58:48 +13:00
Andrew Davis f91528d985 MDL-26439 core_message: switched the message search over to displaying smallmessage instead of fullmessage which contains boilerplate we dont want 2012-11-19 09:32:13 +08:00
Andrew Davis 058dadb059 MDL-36162 core_message: string clean up 2012-11-19 09:16:25 +08:00
Andrew Davis 5e008d36ee MDL-36162 core_message: removed the unnecessary and confusing course URL parameter as well as fixing the broken breadcrumb 2012-11-19 09:16:25 +08:00
Petr Škoda 0b37fe466a MDL-36682 remove old unused shared memory caching support 2012-11-18 14:46:31 +01:00
Jean-Michel Vedrine bedbfd6dfa MDL-32865 Backwards compatibility, deal with the old image tag 2012-11-17 16:38:03 +01:00
Jean-Michel Vedrine 7c86628de6 MDL-32865 CLOZE Questions imported from another course end up with broken image links 2012-11-17 16:38:02 +01:00
Andreas Grabs 95a6ed773d MDL-35158 - Random Glossary block returns an error when you delete the linked glossary 2012-11-17 12:06:39 +01:00
Petr Škoda 5705796638 MDL-36211 fix log message typo
Credit goes to Dan Poltawski, thanks.
2012-11-17 10:42:47 +01:00
Petr Škoda 61c651c379 MDL-36211 try to not update session record on every request 2012-11-17 10:42:47 +01:00
Petr Škoda 46a86dbbc2 MDL-36211 do not lock sessions for guests and not-logged-in users 2012-11-17 10:42:47 +01:00
Petr Škoda f28af1dd13 MDL-36229 whitelist more search engines and add tests 2012-11-17 10:37:51 +01:00
Petr Škoda 46453565f3 MDL-36547 do not use modinfo when creating new modules, improve coding style 2012-11-17 09:05:29 +01:00
Petr Škoda b4126b0c8b MDL-36547 add test for section number when generating modules 2012-11-17 09:05:29 +01:00
Matt Petro 8e771aed93 MDL-35717 quiz: fix overdue attempt processing 2012-11-16 21:32:09 -05:00
Andrew Robert Nicols 3186c12412 MDL-36640 Logging: Correct testing of log->info.
log->info sometimes contains additional information which can be looked up
from other tables. This should only be attempted if the field is numeric,
but the CSV, XLS, and ODS outputs were not making this check.

There is an additional case for the print_mnet_log function which has not
been covered - this is because the mnet logging is currently broken beyond
the scope of this bug rendering this section untestable. These issues are
raised in MDL-36642.
2012-11-16 11:21:29 +00:00
Matteo Scaramuccia 942be4a574 MDL-36512 purge_by_*() must initialise the cache implementing a store.
Indeed, given the current stores implementation, purge will not take effect in case of a file store.
2012-11-16 10:49:12 +01:00
Matteo Scaramuccia fb8305dec7 MDL-36512 Purging a file store actually purges nothing 2012-11-16 10:43:15 +01:00
Dan Poltawski 2d7c5eeeea on demand release 2.4beta+ 2012-11-16 16:27:08 +08:00
Dan Poltawski 381230cc70 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-11-16 16:25:59 +08:00
Dan Poltawski 7d1f162a36 on demand release 2.4beta+ 2012-11-16 16:22:30 +08:00
Rajesh Taneja 39bd8a5c59 MDl-36352 Calendar: Moved poll interval next to url field for accessibility 2012-11-16 15:57:21 +08:00
Rajesh Taneja 3e2efe3b05 MDl-36352 Calendar: Poll interval will be disabled for calendar file import 2012-11-16 15:55:45 +08:00
Rajesh Taneja 4e3ce3464d MDL-36351 Calendar: Poll interval for existing subscriptions will update
Pollinterval option value was not set, which was returning string, expected is int.
Added int as pollinterval option value.
2012-11-16 15:44:00 +08:00
Dan Poltawski bc8f1957a4 Merge branch 'm24_MDL-36364_Improve_the_deletion_logic' of https://github.com/scara/moodle
Conflicts:
	cache/stores/file/lib.php
2012-11-16 15:24:24 +08:00
Dan Poltawski aeb8e78785 Merge branch 'wip-MDL-36407-m24' of git://github.com/samhemelryk/moodle 2012-11-16 15:04:17 +08:00
Dan Poltawski c941aafebb Merge branch 'wip-MDL-36276-m24' of git://github.com/samhemelryk/moodle 2012-11-16 14:52:09 +08:00
Dan Poltawski 716bf54332 Merge branch 'MDL-36525-master' of git://github.com/ankitagarwal/moodle 2012-11-16 14:49:44 +08:00
Frederic Massart 06b7ed0a45 MDL-36415 usability: Use new up/down and ordering icons 2012-11-16 12:47:09 +08:00
Barbara Ramiro d4e5a26cfd MDL-36415 usability: New icons for sorting asc and desc 2012-11-16 12:16:36 +08:00
Barbara Ramiro b8bd1a318a MDL-36415 usability: Revert resize of arrow up/down 2012-11-16 12:16:36 +08:00
Dan Poltawski 5d4f65e6df Merge branch 'MDL-36471-master-int' of git://github.com/FMCorz/moodle 2012-11-16 12:16:31 +08:00
Frederic Massart f03671950f MDL-26660 libraries: Improved XML validation before parsing 2012-11-16 12:12:57 +08:00
Frederic Massart 716330444a MDL-36471 phpunit: Fixed failure because SVG support was dropped for Opera 2012-11-16 12:12:54 +08:00
Dan Poltawski c936a6af35 MDL-36526 - calendar: trim urls for copy/pasting 2012-11-16 12:06:41 +08:00
Damyon Wiese f3027e87fe MDL-36655: Assignment - do not add empty group to grading form when there is only one student 2012-11-16 11:07:57 +08:00
Dan Poltawski 2a594e13b1 Merge branch 'MDL-36612-master-int' of git://github.com/FMCorz/moodle 2012-11-16 11:03:45 +08:00
Dan Poltawski 44411fdb0c Merge branch 'MDL-36471-master-int' of git://github.com/FMCorz/moodle 2012-11-16 11:01:53 +08:00
Dan Poltawski e8feeb2ca2 Merge branch 'MDL-36622-master' of git://github.com/FMCorz/moodle 2012-11-16 10:57:16 +08:00
Dan Poltawski 98504eb609 Merge branch 'MDL-36643-master' of git://github.com/FMCorz/moodle 2012-11-16 10:52:07 +08:00
AMOS bot 8c269f2425 Automatically generated installer lang files 2012-11-15 21:29:38 +00:00
Sam Hemelryk 5dd68a7523 MDL-36407 cache: unit tests + checks + improved string cache 2012-11-16 09:46:49 +13:00
Tim Hunt e70b050838 MDL-36646 unit tests should not assume number of contexts. 2012-11-15 14:41:00 +00:00
Tim Hunt 1e88baa071 MDL-34204 grader report: static call to non-static method. 2012-11-15 13:42:32 +00:00
Frederic Massart fbbf043ce4 MDL-36417 usability: Disable SVG support for Opera 2012-11-15 21:38:42 +08:00
Frederic Massart c42651d682 MDL-36622 usability: Adaptations following new icons 2012-11-15 19:47:14 +08:00
Barbara Ramiro 447cfc94a2 MDL-36622 usability: New icons on course category page 2012-11-15 19:47:12 +08:00
Barbara Ramiro a1a48ac0c7 MDL-36643 usability: New RSS icon 2012-11-15 19:32:24 +08:00
Ankit Agarwal 20bdf99764 MDL-36525 calendar: Curl should allow urls with force downloads 2012-11-15 16:55:03 +08:00
Dan Poltawski e7468fb2ed Merge branch 'wip-MDL-35770-master' of git://github.com/marinaglancy/moodle 2012-11-15 16:26:26 +08:00
Marina Glancy a062c97ce8 MDL-36594 reset cache inside course format when course marker is changed 2012-11-15 16:20:05 +08:00
Dan Poltawski b34e88508b MDL-36526 calendar: Convert webcal:// to http://
Curl doesn't understand webcal, so needs to use http. Also fixed some
php warnings spotted during testing.
2012-11-15 15:48:24 +08:00
Marina Glancy 3584d60abe MDL-28583 Redirect in Scorm course format before output 2012-11-15 15:00:48 +08:00
Frederic Massart 9b835f70b6 MDL-36612 upgrade: Force courses cache to be rebuilt 2012-11-15 14:51:28 +08:00
Dan Poltawski 391678f6fa Merge branch 'MDL-36331_redirect' of git://github.com/andyjdavis/moodle 2012-11-15 14:40:42 +08:00
Dan Poltawski 491391873e Merge branch 'MDL-36061_userid' of git://github.com/andyjdavis/moodle 2012-11-15 14:32:51 +08:00
Dan Poltawski 21dfaa0133 Merge branch 'wip-MDL-35770-master' of git://github.com/marinaglancy/moodle 2012-11-15 13:51:07 +08:00
Marina Glancy 399ad6bf3b MDL-35770 Include file defining base class in order to work correctly in cron 2012-11-15 13:26:28 +08:00
Amy Groshek 83690349d9 MDL-36544 - remove rounded corners from course summary block so that its appearance matches other blocks in standard theme 2012-11-14 22:53:31 -06:00
Dan Poltawski f138b38705 Merge branch 'w47_MDL-36524_m24_ieagain' of git://github.com/skodak/moodle 2012-11-15 11:20:12 +08:00
Aparup Banerjee 6eff995f08 MDL-30643 fixed whitespace 2012-11-15 11:16:35 +08:00
Aparup Banerjee 244e907235 Merge branch 'MDL-30643_master-log-speed' of git://github.com/tbannister/moodle
Conflicts:
	lib/tests/statslib_test.php
2012-11-15 11:15:00 +08:00
Andrew Davis 69bcca5e9c MDL-36061 core_grade: added some unit tests related to refresh_grades() 2012-11-15 11:14:21 +08:00
Dan Poltawski f315d159c8 Merge branch 'wip-MDL-35770-master' of git://github.com/marinaglancy/moodle
Conflicts:
	course/format/lib.php
2012-11-15 10:59:17 +08:00
Mary Evans e64be8f52f MDL-36608 theme_sky_high: Removes page-header selector from style/admin.css 2012-11-15 02:44:19 +00:00
Dan Poltawski e4a9cc642f Merge branch 'MDL-36417-master' of git://github.com/FMCorz/moodle 2012-11-15 10:39:08 +08:00
Mary Evans 25ac37183f MDL-36608 theme_sky_high: Fixes admin page header 2012-11-15 02:32:52 +00:00
Dan Poltawski 211f815719 Merge branch 'MDL-36526-master' of git://github.com/ankitagarwal/moodle 2012-11-15 10:06:00 +08:00
Dan Poltawski 0e35ba6ffc MDL-36357 cleanup - remove double semicolons 2012-11-15 09:51:26 +08:00
David Monllao c25c3c07b4 MDL-28705 enrol_imsenterprise Unit tests for course attributes mapping 2012-11-15 09:50:00 +08:00
David Monllao 2b8f692f71 MDL-28705 enrol_imsenterprise Unit tests for users and courses creation 2012-11-15 09:50:00 +08:00
David Monllao 66dad71990 MDL-28705 enrol_imsenterprise Refining provided patch 2012-11-15 09:50:00 +08:00
Aaron C Spike a65c11b0ca MDL-28705 enrol_imsenterprise Make name mapping configurable 2012-11-15 09:50:00 +08:00
Aaron C Spike b1cabb40eb MDL-28705 enrol_imsenterprise Adjust mapping of names for ims groups 2012-11-15 09:50:00 +08:00
Mary Evans 45efa5d5e7 MDL-36608 theme_sky_high: Fixes missing background image in admin pages 2012-11-15 01:44:45 +00:00
Dan Poltawski a3f3ea2684 MDL-36111 cache: remove double semicolons
Thanks to Matteo Scaramuccia!
2012-11-15 09:25:56 +08:00
Dan Poltawski 532a704d95 Merge branch 'wip-MDL-36576-m24' of git://github.com/amygroshek/moodle 2012-11-15 08:56:43 +08:00
Adrian Greeve 590e3ef0ee MDL-36453 - mod_data: Presets now load in a Windows environment.
Thanks to Michael de Raadt for this patch.
2012-11-15 08:51:42 +08:00
Paul Nicholls 36ab8f6cb6 MDL-36204: moodle1 backup converter: add unit test to cover this issue 2012-11-15 10:50:16 +13:00
Paul Nicholls bdc468f9a6 MDL-36204: moodle1 backup converter: urldecode filenames from links
If filenames are not run through urldecode(), those that contain spaces (or other url-encoded characters) will not be handled, as they can't be found in the backup file.
2012-11-15 09:26:55 +13:00
Amy Groshek 8ebb84e281 MDL-36576 - change generalbox classname to generaltable to fix rounded corners on the table background color 2012-11-14 12:49:41 -06:00
Petr Škoda 9172fd82b7 MDL-36524 do not set meta tag for IE compatibility, header should be enough 2012-11-14 19:42:24 +01:00
Tyler Bannister 68203f451c MDL-30643 - Fixed group by for MSSQL and Oracle.
- MSSQL and Oracle don't allow column aliases to be used in group by.
2012-11-14 09:46:50 -05:00
Rossiani Wijaya b09ac20b11 MDL-36589 Lesson Module: set correct answer_jump to next page in question import. 2012-11-14 16:14:52 +08:00
Marina Glancy 081c8f7fe0 MDL-36594 Add function format_base::is_section_current()
- added function format_base::is_section_current()
- overwritten in format_weeks::is_section_current()
- deprecated function format_section_renderer_base::is_section_current()
2012-11-14 15:54:13 +08:00
Frederic Massart 253251a804 MDL-36446 usability: Resource icon on activity block read from page module 2012-11-14 15:00:40 +08:00
Marina Glancy 1b2581f430 MDL-35770 Moved format_weeks_get_section_dates() to format_weeks::get_section_dates() 2012-11-14 14:31:07 +08:00
Dan Poltawski cbb0459962 Merge branch 'MDL-36561-master-int' of git://github.com/FMCorz/moodle 2012-11-14 14:29:48 +08:00
Dan Poltawski 43b8730381 Merge branch 'MDL-36449-master-int' of git://github.com/FMCorz/moodle 2012-11-14 14:26:06 +08:00
Frederic Massart 85947dcc22 MDL-36449 usability: Fixed spinner position in lightbox 2012-11-14 14:24:51 +08:00
Dan Poltawski cc94106b71 Merge branch 'MDL-36565-master-int' of git://github.com/FMCorz/moodle 2012-11-14 14:16:30 +08:00
Dan Poltawski ebdbc6b781 Merge branch 'MDL-36323-master-int' of git://github.com/FMCorz/moodle 2012-11-14 14:10:49 +08:00
Barbara Ramiro b7494afe49 MDL-36323 usability: Final icons for i/assignroles and i/switchrole 2012-11-14 14:07:40 +08:00
Frederic Massart fbb207c57a MDL-36323 usability: New icon names to assign and switch roles 2012-11-14 14:07:40 +08:00
Barbara Ramiro 57dba02813 MDL-36323 usability: Resized icons to 16x16 2012-11-14 14:07:40 +08:00
Frederic Massart 045d946ccc MDL-36323 usability: CSS for block headers 2012-11-14 14:07:40 +08:00
Frederic Massart 11f8718780 MDL-36323 usability: Normalising icons used in blocks 2012-11-14 14:07:40 +08:00
Itamar Tzadok ed608e7ad4 MDL-36433 Forms lib - Added dash escaping to validation script getter. 2012-11-14 01:03:14 -05:00
Marina Glancy 0f070867b8 MDL-35770 Converted weeks format to new course formats API 2012-11-14 13:58:40 +08:00
Marina Glancy 222cd9c996 MDL-35770 Converted topics format to new course formats API 2012-11-14 13:58:35 +08:00
Marina Glancy 62a3f7ef46 MDL-35770 Created class format_weeks as copy of format_legacy 2012-11-14 13:58:34 +08:00
Marina Glancy 2fb8c9a2e9 MDL-35770 Created class format_topics as copy of format_legacy 2012-11-14 13:58:34 +08:00
Marina Glancy bf1a9494a4 MDL-35770 Converted social format to new course formats API 2012-11-14 13:58:28 +08:00
Marina Glancy cad5cba676 MDL-35770 Converted scorm format to new course formats API 2012-11-14 13:58:21 +08:00
Marina Glancy 5ef23705f6 MDL-36048 Allow course formats to add course headers and footers
- Added functions in class format_base
- Added global functions in course/lib.php
- Added calling of course header/footer functions to the base theme
- output renderer checks if theme calls the coures content header/footer functions, if not calls them explicitly and displays a development warning
2012-11-14 13:50:10 +08:00
Dan Poltawski 1720550b5d Merge branch 'MDL-36575_modLtiGenerator' of git://github.com/moodlerooms/moodle 2012-11-14 12:22:54 +08:00
Frederic Massart 81063d1fe6 MDL-36565 mod_url: The default activity icon is the module icon 2012-11-14 12:21:57 +08:00
Frederic Massart d5dfb8d621 MDL-36444 themes: Fixed margin of activities on course page 2012-11-14 12:05:26 +08:00
Frederic Massart 10994f27a1 MDL-36449 usability: Improved renaming toolbox and alignment on course page 2012-11-14 11:38:11 +08:00
Frederic Massart 8a3b8918cb MDL-36449 usability: Course drag and drop field styling 2012-11-14 11:38:10 +08:00
Frederic Massart bb128107e3 MDL-36449 usability: Normalising icons on course page 2012-11-14 11:38:06 +08:00
Dan Poltawski 7fc7a8b94c Merge branch 'w46_MDL-36457_m24_jsmin' of git://github.com/skodak/moodle 2012-11-14 11:32:52 +08:00
Dan Poltawski 8051e85a3f Merge branch 'w46_MDL-36283_m24_cohortmembers' of git://github.com/skodak/moodle 2012-11-14 11:25:54 +08:00
Frederic Massart f7d6e65032 MDL-36417 course: Unit tests for section visibility 2012-11-14 11:22:20 +08:00
Dan Poltawski 124b3fcef7 Merge branch 'MDL-35358' of git://github.com/rwijaya/moodle 2012-11-14 11:16:47 +08:00
Dan Poltawski 3484a69861 Merge branch 'wip-MDL-36267-master' of git://github.com/marinaglancy/moodle 2012-11-14 10:45:19 +08:00
Dan Poltawski 5ebe0ca37a Merge branch 'MDL-26660-master' of git://github.com/FMCorz/moodle 2012-11-14 10:33:45 +08:00
Ankit Agarwal 12927e568b MDL-36526 calendar: calender ical import should allow webcal:// protocols 2012-11-14 10:22:28 +08:00
Dan Poltawski 2d0d36f219 Merge branch 'wip-MDL-36048-master' of git://github.com/marinaglancy/moodle 2012-11-14 09:58:27 +08:00
Dan Poltawski 81d7798996 Merge branch 'MDL-34520-master' of git://github.com/ankitagarwal/moodle 2012-11-14 09:55:51 +08:00
Marina Glancy 9428a1545d MDL-36267 corrected phpdocs for get_fast_modinfo() 2012-11-14 09:52:52 +08:00
Amy Groshek b1dd41de86 MDL-36540 - Survey language pack typo 2012-11-14 09:45:42 +08:00
Aparup Banerjee bf10e51d44 MDL-24736 anotating tinymce changes to readme 2012-11-14 09:40:59 +08:00
Frederic Massart 00a342341c MDL-36417 course: Toggling section visibility update module visibility 2012-11-14 09:32:38 +08:00
Dan Poltawski 762c6c4fee Merge branch 'master_MDL-36467' of git://github.com/danmarsden/moodle 2012-11-14 09:30:59 +08:00
Marina Glancy 52b1ed5ee8 MDL-36048 advise theme developers to output course header/footer 2012-11-14 09:29:54 +08:00
Dan Poltawski f58c96f842 Merge branch 'MDL-36369' of git://github.com/timhunt/moodle 2012-11-14 09:29:51 +08:00
Dan Poltawski 25c1b2edc4 Merge branch 'wip-MDL-36413-master' of https://github.com/nicolasconnault/moodle 2012-11-14 09:18:27 +08:00
Aparup Banerjee f132d28aa5 Merge branch 'wip_master_mdl-25736_tinymce_spellchecker_frech_issues' of https://github.com/iarenaza/moodle 2012-11-14 09:12:28 +08:00
Michael Aherne 5035ed6376 MDL-34762 course Hide system archetypes from mod chooser 2012-11-14 09:06:10 +08:00
Sam Hemelryk e60598730d MDL-36276 calendar: subscription events are no longer editable 2012-11-14 13:34:54 +13:00
Dan Poltawski 59d332ea71 Merge branch 'MDL-36494-invalid-update-debugging' of git://github.com/mudrd8mz/moodle 2012-11-14 08:31:29 +08:00
Paul Nicholls 80d92db940 MDL-36548: Major performance boost to Detail (list) view in file picker
Pass the data (filelist) into the DataTable when initialising it, rather than rendering an empty DataTable and then pushing all of the data into it via addRows().

It's also slightly more efficient to just pass the node in, rather than fetching the node and passing its ID in, as DataTable.render() will just re-select the node if given the ID. [Spotted by Andrew Nicols]
2012-11-14 12:36:13 +13:00
Mark Nielsen 912918b5aa MDL-36579: Adding missing fields in mod/lti backup 2012-11-13 12:55:44 -08:00
Mark Nielsen 610b86f6ec MDL-36336: Prevent duplicate grade items on restore
During restore, lti_add_instance() was being called
and this could generate a grade item.  This would
produce a duplicate item because the restore
process would automatically generate the grade item.
2012-11-13 12:45:02 -08:00
Mark Nielsen 18b10b8721 MDL-36575: Adding mod_lti_generator
This adds the hook for LTI module generation
for unit tests.
2012-11-13 10:15:24 -08:00
Tim Hunt 837e181225 MDL-36369 qtypes and qbehaviour settings permissions.
The correct policy is that users with moodle/question:config can set the
default settings for particular qtypes. However, it requires
moodle/site:config in order to do manage qbehaviours or manage qtypes.
2012-11-13 16:07:28 +00:00
Tyler Bannister 12ccfc123a MDL-30643 - Improved error reporting for daily stats tests. 2012-11-13 10:37:25 -05:00
Marina Glancy e75324a53e MDL-36369 Question types and behaviour settings should not require moodle/site:config 2012-11-13 15:14:03 +00:00
Dan Poltawski 5f7b0f2bdc MDL-30545 messaging - remove DISTINCT from union statement 2012-11-13 22:34:36 +08:00
David Mudrák a22de4ce99 MDL-36494 Do not display a debugging message about invalid update info
It turned out that this well-meant debugging message just caused a lot
of false alarm with no good reason. It seems to be better just ignore it
at the moment.
2012-11-13 11:24:55 +01:00
Frederic Massart 69bc92160f MDL-36561 chat: Chat does not use calendar icons 2012-11-13 17:40:04 +08:00
Mark Nelson fe8a06dc74 MDL-30139 enrol: added search button to AJAX enrolment search 2012-11-13 17:07:22 +08:00
Dan Poltawski 5c4685f0ad MDL-30545 - messagelib: use $DB->sql_concat() 2012-11-13 15:11:14 +08:00
Tyler Bannister dcb28e6e7f MDL-30643 - Fixed timezone problems in test cases.
resolved integration time changes conflict.
Conflicts:
	lib/tests/statslib_test.php
2012-11-13 13:58:31 +08:00
Dan Poltawski 4f64267994 Merge branch 'w46_MDL-36169_m24_enrolsort' of git://github.com/skodak/moodle 2012-11-13 13:40:18 +08:00
Dan Poltawski b0ba493cd0 Merge branch 'MDL-30545' of git://github.com/timhunt/moodle 2012-11-13 13:21:50 +08:00
Dan Poltawski 47e126569d Merge branch 'MDL-36509' of git://github.com/netspotau/moodle-mod_assign 2012-11-13 13:04:14 +08:00
Dan Poltawski 0da9003a45 Merge branch 'wip-MDL-36398-master' of git://github.com/barbararamiro/moodle 2012-11-13 12:57:30 +08:00
Tyler Bannister 67690cfa92 MDL-30643 - Fixed timezone problems in test cases. 2012-11-12 22:47:09 -05:00
Tyler Bannister aa600c472c MDL-30643 - Added fifth table to speed up enrolment look ups. 2012-11-12 22:47:00 -05:00
Damyon Wiese 61cf325300 MDL-36509: Assignment grading table rownum offset is wrong by one. 2012-11-13 09:58:08 +08:00
Adrian Greeve 2b9e957a27 MDL-31750 - course: Unit tests for the function can_move_courses_to_category(). 2012-11-13 09:43:43 +08:00
Adrian Greeve fae51910bf MDL-31750 - course: Creating a consistent api for checking permissions for moving courses to different categories. 2012-11-13 09:42:45 +08:00
Mary Evans 03e6b96987 MDL-36490 theme_standard: reduces the 15px radius down to 3px in style/css3.css for .generalbox objects 2012-11-12 23:34:22 +00:00
Dan Marsden a82c1ad05a MDL-36467 SCORM: remove old debugging superceded by full scorm debugger 2012-11-13 09:02:43 +13:00
Aparup Banerjee 9540a7d0b8 MDL-30643 statslib test - remove using $CFG->timezone=99 for unit test as it clashes with test data in other tz 2012-11-13 00:49:21 +08:00
Aparup Banerjee 7d2705568e MDL-30643 added tables to upgrade script 2012-11-12 15:50:19 +08:00
Aparup Banerjee 6b1a2e4a0d MDL-30643 fixed statslib test start timestamp 2012-11-12 14:46:23 +08:00
Aparup Banerjee 79fc5f5294 Merge branch 'MDL-30643_master-log-speed' of git://github.com/tbannister/moodle 2012-11-12 14:29:45 +08:00
Andrew Davis 0d02aa53ad MDL-36331 core_grade: fixed up 2 incorrect default return URLs 2012-11-12 11:56:19 +08:00
Matt Switlik 0a757cf033 MDL-36061 gradebook: grade_item->refresh_grades doesn't propagate $userid 2012-11-12 11:19:20 +08:00
Dan Poltawski 8eb1180269 MDL-35260 - fix trailing whitespace 2012-11-12 11:07:19 +08:00
Dan Poltawski 3c9b489820 Merge branch 'wip-MDL-35260-master' of git://github.com/marinaglancy/moodle 2012-11-12 11:04:23 +08:00
Dan Poltawski 05f2bdea31 Merge branch 'MDL-35422-workshop-submit-button' of git://github.com/mudrd8mz/moodle 2012-11-12 10:36:16 +08:00
Dan Poltawski 2d910d0464 Merge branch 'w46_MDL-36487_m24_ieheaders' of git://github.com/skodak/moodle 2012-11-12 10:30:36 +08:00
Dan Poltawski 62471f8256 Merge branch 'wip-MDL-36111-m24' of git://github.com/samhemelryk/moodle 2012-11-12 10:26:29 +08:00
Dan Poltawski 9cb2b61621 Merge branch 'w46_MDL-36481_m24_intranetie' of git://github.com/skodak/moodle 2012-11-12 10:17:34 +08:00
Dan Poltawski 529af38e0e Merge branch 'wip-MDL-36450-master' of git://github.com/barbararamiro/moodle
Conflicts:
	pix/help.png
	pix/help.svg
	pix/i/outcomes.png
	pix/i/outcomes.svg
2012-11-12 10:10:30 +08:00
Sam Hemelryk 758dbdf894 MDL-36111 cache: Fixed up typo's and trivial issues 2012-11-12 10:36:53 +13:00
Sam Hemelryk 2566210c63 MDL-36407 cache: Implemented options for ad_hoc caches 2012-11-12 10:05:05 +13:00
Aaron Barnes 5bb05a469a MDL-35556 completion: Improve user completion data permission checking 2012-11-12 00:13:36 +13:00
Petr Škoda d86b7de799 MDL-36283 use accesscontext when assigning cohort members 2012-11-10 20:43:35 +01:00
Iñaki Arenaza b98dd3ff31 MDL-25736 TinyMce Spellchecker French issues
GoogleSpell checker already returns data un UTF8, so there's no need
to use utf8_encode (in fact, using it completely mangles the string).

All credit goes to David Quintal for finding the issue and proposing
the fix.
2012-11-10 19:41:48 +01:00
Petr Škoda 791922735f MDL-36487 do not use IE=edge header on pages that have custom X-UA-Compatible
Thanks Dan Poltawski for spotting this regression!
2012-11-10 11:47:09 +01:00
Marina Glancy 4dcd99de59 MDL-36048 Modify themes to add course headers and footers provided by course format 2012-11-10 15:39:15 +08:00
Marina Glancy fdd4b9a50a MDL-36048 Allow course formats to add course headers and footers
- Added functions in class format_base
- Added global functions in course/lib.php
- Added calling of course header/footer functions to the base theme
- output renderer checks if theme calls the coures content header/footer functions, if not calls them explicitly and displays a development warning
2012-11-10 15:39:01 +08:00
Marina Glancy 3776335ce2 MDL-35260 Course formats may have settings, be enabled, disabled and uninstalled 2012-11-10 15:34:29 +08:00
AMOS bot bf78581ce9 Automatically generated installer lang files 2012-11-10 00:36:22 +00:00
Tyler Bannister 63e0fe85b5 RFC-30643 - Added fifth table to speed up enrolment look ups. 2012-11-09 16:33:19 -05:00
Tyler Bannister c0f00c5fba MDL-30643 - Added statslib test file.
- Tests daily stats and daily stats related functions.
2012-11-09 16:27:25 -05:00
Tyler Bannister 4614b02905 MDL-30643 - Added definition for new temporary table to install.xml.
- Added code to generate tempoary tables from existing standard tables where possible.
2012-11-09 16:27:23 -05:00
Tyler Bannister 0934f5c304 MDL-30643 - Added temporary tables to store the stats results until generation is complete. 2012-11-09 15:34:01 -05:00
Tyler Bannister 9c1600f10f MDL-30643 - Improved stats generation SQL queries.
- Added temporary log tables to reduce log search times.
          - Added additional output to weekly and monthly stat generation
2012-11-09 15:33:48 -05:00
Petr Škoda 8975ff88cb MDL-36169 fix enrolled users sorting by alphanumerical column
Credit goes to Nicholas Koeppen, thanks!
2012-11-09 19:47:35 +01:00
Petr Škoda 398862b92b MDL-36487 send IE standards compatibility http headers 2012-11-09 17:27:29 +01:00
Petr Škoda 3c1405a1ee MDL-36481 improve IE version sniffing 2012-11-09 15:23:22 +01:00
Petr Škoda 4549385e04 MDL-36457 remove GPL incompatible JSMin.php
Credit goes to Hubert Chathi, thanks!
2012-11-09 13:30:32 +01:00
Dan Poltawski 8ccaa296fa Moodle release 2.4beta 2012-11-09 18:49:38 +08:00
Dan Poltawski ae8e5057f4 weekly release 2.4dev 2012-11-09 17:56:42 +08:00
Dan Poltawski c00804c66a Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-11-09 17:52:55 +08:00
Dan Poltawski cd1a9d05e8 Revert "MDL-35556 completion: Improve user completion data permission checking"
This reverts commit f493d528c2.
2012-11-09 16:50:09 +08:00
Dan Poltawski d2dc4c4551 Merge branch 'w45_MDL-36468_m24_tinymce' of git://github.com/skodak/moodle 2012-11-09 15:54:46 +08:00
Petr Škoda 657e6b8199 MDL-36468 fix remaining zIndexes and some { weirdness
I had to reimport all files and search&replace the zIndexes, it is better to not use editor for this.
2012-11-09 08:39:14 +01:00
Dan Poltawski afa23468e9 MDL-36119 - enrol_ldap: fix php error 2012-11-09 14:38:32 +08:00
Barbara Ramiro 9dbb2323c9 MDL-36450 Usability: New svg and png icons for Filters and revised Outcomes and Help icons 2012-11-09 14:24:44 +08:00
Aparup Banerjee 6c4e886426 Merge branch 'WIP-MDL-35512' of git://github.com/nadavkav/moodle 2012-11-09 14:16:15 +08:00
Aparup Banerjee 97bf72055d Merge branch 'MDL-35510_master' of git://github.com/lazydaisy/moodle 2012-11-09 14:09:11 +08:00
Dan Poltawski 8ca0746296 Merge branch 'wip-MDL-36324-m24' of git://github.com/samhemelryk/moodle 2012-11-09 13:43:37 +08:00
Dan Poltawski 224186339e Merge branch 'MDL-34572_accessibility' of git://github.com/rwijaya/moodle 2012-11-09 12:00:47 +08:00
Sam Hemelryk f1d29cf516 MDL-36324 cache: Fixed incorrect get_string component 2012-11-09 16:58:51 +13:00
Rossiani Wijaya de471f375b MDL-34572 alfresco repository: add accesshide class to workspace's label 2012-11-09 11:55:24 +08:00
Adrian Greeve 9ea9d1d7b0 MDL-35678 - Gradebook - Grade CSV Import now uses the csv class and complies with RFC 4180 standards. 2012-11-09 11:49:05 +08:00
Sam Hemelryk db0a71d699 MDL-34342 cache: fixed issue within string cache key 2012-11-09 10:48:39 +08:00
Aparup Banerjee 1f9041e42a Merge branch 'WIP-MDL-35566' of git://github.com/nadavkav/moodle 2012-11-09 10:33:26 +08:00
Dan Poltawski 2f1904f811 Merge branch 'MDL-35238-deployment' of git://github.com/mudrd8mz/moodle 2012-11-09 10:30:55 +08:00
Aparup Banerjee 553cc78952 Merge branch 'MDL-35571_master' of git://github.com/lazydaisy/moodle 2012-11-09 10:27:11 +08:00
David Mudrák 0daa642894 MDL-35238 Inform the admin if the update can not be deployed due to write permissions 2012-11-09 00:20:18 +01:00
Sam Hemelryk d837df0d77 MDL-36381 cachestores: fixed bug when editing with checkbox/bool 2012-11-09 00:01:30 +01:00
David Mudrák d80f80f386 MDL-35238 Do not check for write permissions when enabling the auto-deploy feature
It seems to be better to check for required permission later, when the
button to install the update is actually being displayed. Credit goes to
Dan Poltawski for suggesting this.
2012-11-08 22:46:48 +01:00
Nadav Kavalerchik 7a4535d64b MDL-35566 - Always, left align "Version" and "Folder" fields, in RTL and LTR modes. (Check available updates page) 2012-11-08 23:44:05 +02:00
David Mudrák 56c05088e5 MDL-35238 Accept $CFG->alternativeupdateproviderurl from config.php file only
There was a potential security risk that someone with access to the Moodle
database could update mdl_config table and use it as a vector to
install malicious code on the server.

Credit goes to Dan Poltawski for raising this.
2012-11-08 22:33:08 +01:00
David Mudrák dc11af1903 MDL-35238 Add support for explicit singleton reset
This may be needed during PHPUnit testing.
2012-11-08 22:33:08 +01:00
David Mudrák 80e9ba96c7 MDL-35238 Improve exceptions handling 2012-11-08 22:33:08 +01:00
David Mudrák 8ffa8d7e48 MDL-35238 Be more verbose if the tilde character is used in TYPE_PATH script options
The tilde character is not generally supported in Moodle. Previously it
was just removed silently and it was difficult to realize what was going
on.
2012-11-08 22:33:07 +01:00
David Mudrák ec8e1cbce6 MDL-35238 Add simple logging of mdeploy.php execution 2012-11-08 22:33:07 +01:00
David Mudrák 5bd9b0ae62 MDL-35238 Fix the unit test for invalid input_manager::TYPE_URL values 2012-11-08 22:33:07 +01:00
David Mudrák b10b1e728d MDL-35238 Remove the ZIP file after successful decompression 2012-11-08 22:33:07 +01:00
David Mudrák 6b75106a75 MDL-35238 Compare the ZIP package content hash with the expected value
The expected value is returned as a part of available update info
(requires API version 1.1).
2012-11-08 22:33:07 +01:00
David Mudrák 85d7516313 MDL-35238 Fetch available updates using the 1.1 version of the API
If the stored response has still 1.0 version (which is expected during
the upgrade to 2.4), a debugging message is displayed. Added a string to
explain what's going on and how to recover from the state.
2012-11-08 22:33:07 +01:00
David Mudrák 08c3bc006d MDL-35238 Warn the admin if they are about to overwrite a SCM checkout 2012-11-08 22:33:07 +01:00
David Mudrák 292dbeac9b MDL-35238 Support deployment from yet another plugins check page too 2012-11-08 22:33:07 +01:00
David Mudrák 23137c4ac4 MDL-35238 Unzip the downloaded package and redirect to the upgrade page 2012-11-08 22:33:07 +01:00
David Mudrák 4f71de4161 MDL-35238 Backup existing plugin version before replacing it
This is here to save eventual local contributions to the plugin before
we replace the whole directory in the next step.
2012-11-08 22:33:07 +01:00
David Mudrák 4c72f55516 MDL-35238 Fetch the package and store it in a temporary location 2012-11-08 22:33:07 +01:00
David Mudrák af29dade97 MDL-35238 Reorganise the worker::execute() flow 2012-11-08 22:33:07 +01:00
David Mudrák 3daedb5c5a MDL-35238 Implement deployment authorization
The caller of the mdeploy.php utility is expected to create a file in
the data directory. The name of such file and the passphrase in it are
then sent to mdeploy.php as a part of the request. The submitted and
stored values are then compared.
2012-11-08 22:33:07 +01:00
David Mudrák 6aa2e2881a MDL-35238 Admin renderer method to display the plugin update confirmation page 2012-11-08 22:33:06 +01:00
David Mudrák bcc8397a77 MDL-35238 Handle the update installation request - display the confirmation page 2012-11-08 22:33:06 +01:00
David Mudrák fa3feafbbb MDL-35238 Display a button to install an available update 2012-11-08 22:33:06 +01:00
David Mudrák 7683e550ac MDL-35238 Introduce available_update_deployer class
This class represents the communication bridge from Moodle UI to the
(standalone) mdeploy.php utility. It consists of various helper methods
useful when dealing with user interface, update confirmation etc.

The class is implemented as a singleton. This allows us easily
transfer required data from top level scripts (like /admin/index.php)
into the rendering methods deep in the stack without the need to change
the API of many methods on the way.
2012-11-08 22:33:06 +01:00
David Mudrák f965e16539 MDL-35238 Make the auto-deploy feature lockable via config.php
If $CFG->disableupdateautodeploy is set in config.php, no automatic
deploy can happen. This is for sites that are managed by a provider but
their clients have admin access.
2012-11-08 22:33:06 +01:00
David Mudrák 02fd7f47a9 MDL-35238 Add a new admin setting to enable updates deployment 2012-11-08 22:33:06 +01:00
David Mudrák 9dcb52882c MDL-35238 Distinguish the uninstall link from the settings link
It has been reported (can't find the issue now, sorry) that having these
two links next to each other represents an usability issue as folks
found themselves clicking at the uninstall link instead of the settings
link. Previously, these links were displayed in separate columns but
then the whole table got too wide - see MDL-20438.
2012-11-08 22:33:06 +01:00
David Mudrák 7bc759bd44 MDL-35238 Remove the hide/show icon from the Plugins overview page
This was reported in forums as an usability issue. This icon is used
across Moodle as an active link to hide or show things - not as a status
icon. People were trying to disable plugins by clicking the icon. Until
there is a full support for doing this from the Plugins overview page,
it is better to remove the icons completely.
2012-11-08 22:33:06 +01:00
David Mudrák 4df8bced23 MDL-35238 Allow filtering at the Plugins overview page 2012-11-08 22:33:06 +01:00
David Mudrák c57f18ad06 MDL-35238 Implement HTTP authorization based on passphrase matching 2012-11-08 22:33:06 +01:00
David Mudrák 11c3c579a1 MDL-35238 Fix getting input option value 2012-11-08 22:33:06 +01:00
David Mudrák c99910bb3a MDL-35238 Print help on the script usage in CLI mode 2012-11-08 22:33:05 +01:00
David Mudrák 89af176511 MDL-35238 Introduce a first version of the mdeploy.php script
This is supposed to serve as a standalone script that accepts parameters
via CLI or HTTP. As no Moodle library can be reliably included, we have
to implement our own input handling, output handling and processing the
actual update/install task.

PHPUnit is used to test the functionality. Although (again), the testing
must not be included as a part of standard Moodle PHPUnit environment
but explicitly.
2012-11-08 22:33:05 +01:00
David Mudrák 966bd7852e MDL-34099 Report available updates for plugins at admin/index.php
The Notifications (admin/index.php) page has now information about
available updates for core and eventually plugins, too. Note that the
structure of the available updates array changed. This breaks backward
compatibility for eventual 3rd renderers out there (not expected
though).
2012-11-08 22:33:05 +01:00
Eloy Lafuente (stronk7) 067200e212 MDL-36454 install: add missing cache lib. 2012-11-08 13:07:47 +01:00
Dan Poltawski 440021c8a5 Merge branch 'MDL-35349_master' of git://github.com/markn86/moodle 2012-11-08 18:54:58 +08:00
Dan Poltawski 1cfff7bcff Revert "MDL-36369 Non-admin managers could not access list of plugins"
This reverts commit 22fae2a0dd.
2012-11-08 18:24:36 +08:00
Dan Poltawski a56dc90320 Merge branch 'MDL-33766-master' of git://github.com/FMCorz/moodle
Conflicts:
	version.php
2012-11-08 18:10:26 +08:00
Barbara Ramiro df0b7bba42 MDL-36398 Usability: New navigation block icons in svg and png formats 2012-11-08 15:17:44 +08:00
Dan Poltawski aa8739776c Merge branch 'MDL-34572_accessibility' of git://github.com/rwijaya/moodle 2012-11-08 15:15:54 +08:00
Dan Poltawski 967ec6fb4d Merge branch 'w45_MDL-36196_m24_vercheck' of git://github.com/skodak/moodle 2012-11-08 15:13:10 +08:00
Dan Poltawski aa289da834 Merge branch 'MDL-36051_24' of git://github.com/rlorenzo/moodle 2012-11-08 15:09:59 +08:00
Dan Poltawski 1b4d837a75 Merge branch 'MDL-35556c' of git://github.com/srynot4sale/moodle 2012-11-08 15:07:17 +08:00
Dan Poltawski 0d90b7e4bc Merge branch 'w45_MDL-36431_m24_selfdefaults' of git://github.com/skodak/moodle 2012-11-08 15:04:19 +08:00
Dan Poltawski 42fd0b64b9 Merge branch 'MDL-34270_master' of https://github.com/markn86/moodle 2012-11-08 14:53:06 +08:00
Mark Nelson 4fc95a9fff MDL-34270 blocks: removing unnecessary capabilities 2012-11-08 14:49:28 +08:00
Aparup Banerjee 4b1466d50c Merge branch 'MDL-27824' of git://github.com/rwijaya/moodle 2012-11-08 13:26:39 +08:00
Rossiani Wijaya d9b87135cb MDL-27824 course categories: remove trailing whitespace 2012-11-08 12:29:42 +08:00
Rossiani Wijaya 929cdf06de MDL-27824 course categories: change isset() to empty() 2012-11-08 12:25:58 +08:00
Rossiani Wijaya 08af002921 MDL-27824 course categories: Added @todo comments to remove the temporary fix 2012-11-08 12:25:57 +08:00
Rossiani Wijaya 98068e1d8c MDL-27824 - course category: add check test for ->coursesperpage value. 2012-11-08 12:25:57 +08:00
Dan Poltawski f7febae6d0 Merge branch 'MDL-36422-master' of git://github.com/FMCorz/moodle 2012-11-08 11:07:43 +08:00
Dan Poltawski 9b70e89fc3 MDL-36436 - remove disabling of setting based on ldap paging support 2012-11-08 10:22:30 +08:00
Frederic Massart eec4107bdd MDL-36422 question: Fixed malformed HTML in manual marking 2012-11-08 10:20:22 +08:00
Dan Poltawski 6a0511c17e MDL-36119 - remove <em> from lang string
(Its across whole string, so shouldn't really be done within the string)
2012-11-08 10:18:06 +08:00
Dan Poltawski ee943e7311 MDL-36119 - fix trailing whitespace 2012-11-08 10:18:06 +08:00
Dan Poltawski 809c1bee49 Merge branch 'wip_master_mdl-36119_ldap_paged_results' of git://github.com/iarenaza/moodle 2012-11-08 09:48:36 +08:00
Dan Poltawski bec1b02a91 Merge branch 'wip-MDL-36381-m24' of git://github.com/samhemelryk/moodle 2012-11-08 09:33:43 +08:00
Dan Poltawski 650e6c7339 Merge branch 'MDL-36290-master' of git://github.com/FMCorz/moodle 2012-11-08 09:26:08 +08:00
Dan Poltawski 7164d2f68a Merge branch 'w45_MDL-36194_m24_editoruninstall' of git://github.com/skodak/moodle 2012-11-08 08:52:25 +08:00
Rex Lorenzo 00917ec682 MDL-36051 - Quick Grading in Assignment module does not turn on in some circumstances
* Fixed bug with quick grading when file submission is turned off
2012-11-07 16:26:26 -08:00
Mark Nelson 3774324174 MDL-33791 Portfolio: Fixed security issue with passing file paths. 2012-11-08 00:26:13 +01:00
Sam Hemelryk f89a1a8876 Merge branch 'MDL-36197_master' of git://github.com/lazydaisy/moodle 2012-11-08 11:30:49 +13:00
Sam Hemelryk 24f4515576 Merge branch 'MDL-36271_master' of https://github.com/markn86/moodle 2012-11-08 11:07:15 +13:00
Sam Hemelryk 9a0e6f147d Merge branch 'WIP-MDL-35249-master' of git://github.com/nadavkav/moodle
Conflicts:
	mod/assign/gradingtable.php
2012-11-08 10:57:52 +13:00
Sam Hemelryk 81ede547f2 MDL-36381 cache: fixed bug whereby you couldn't edit store instances 2012-11-08 10:54:11 +13:00
Adrian Greeve e2c5f38605 MDL-35558 mod_data: Show only own entries while there are required pending. 2012-11-07 19:43:42 +01:00
Iñaki Arenaza c090d7c90e MDL-36119: auth_{ldap,cas}: LDAP Sync - implement paged results
Thanks to Jerome Charaoui for the original patch.
2012-11-07 19:13:10 +01:00
Petr Škoda b5cf59a59d MDL-36194 remove bogus echo $PAGE->set_title()
Credit goes to Dan Poltawski, thanks!
2012-11-07 19:11:25 +01:00
Petr Škoda eac37ff46a MDL-36431 fix multiple problems with self enrol defaults
This patch adds new method for retrieving of default properties of enrol_self instances and uses it both for automatic adding of instances and add instance form - this will guarantee both are using the same data in the future.
2012-11-07 18:57:14 +01:00
Petr Škoda 68cd60b7df MDL-36196 hardcode the required PHP version in installer 2012-11-07 13:04:08 +01:00
Petr Škoda 4f66c75f20 MDL-36194 add support for editor uninstallation 2012-11-07 13:02:21 +01:00
sam marshall 333e499c4b MDL-34612 Grade condition range validation allows impossible conditions 2012-11-07 10:54:23 +00:00
Eloy Lafuente (stronk7) 9986cd9013 NOBUG: Trivial whitespace fix to quickly fix ongoing CI status. 2012-11-07 11:49:56 +01:00
Frederic Massart 0f817d0d90 MDL-36290 usability: CSS post processing does not cancel SVG use 2012-11-07 17:29:20 +08:00
Dan Poltawski 2ac705c41d Merge branch 'MDL-36092-master' of git://git.luns.net.uk/moodle 2012-11-07 16:56:11 +08:00
Dan Poltawski e87bdad9ad Merge branch 'MDL-36368_master' of git://github.com/lazydaisy/moodle 2012-11-07 16:49:35 +08:00
Dan Poltawski 4b5a6b1327 Merge branch 'wip-MDL-36317-master' of git://github.com/marinaglancy/moodle
Conflicts:
	course/format/lib.php
2012-11-07 16:41:53 +08:00
Dan Poltawski 63fc21b4e5 Merge branch 'MDL-26349-workshop-grades-display' of git://github.com/mudrd8mz/moodle 2012-11-07 16:32:43 +08:00
David Mudrák 3cb4ce45c7 MDL-26349 Display the workshop final grades to participants when the activity is closed 2012-11-07 09:08:38 +01:00
Dan Poltawski 64f7d154db Merge branch 'wip-MDL-36113-master' of git://github.com/abgreeve/moodle
Conflicts:
	lib/tests/csvclass_test.php
2012-11-07 15:40:06 +08:00
Adrian Greeve 13041f2125 MDL-36113 - lib: Unit tests for importing csv files with empty lines in the middle of the file. 2012-11-07 15:34:36 +08:00
Adrian Greeve 415a6ffcc8 MDL-36113 - lib: Importing csv entries with empty lines in the middle doesn't throw errors. 2012-11-07 15:34:29 +08:00
Dan Poltawski defcb763fe Merge branch 'MDL-36209-workshop-assess-while-evaluating' of git://github.com/mudrd8mz/moodle 2012-11-07 15:30:38 +08:00
Dan Poltawski 092977fb0b Merge branch 'wip-MDL-36112-master' of git://github.com/abgreeve/moodle 2012-11-07 15:06:36 +08:00
Dan Poltawski 20aea2ea0d Merge branch 'MDL-17444_localPluginBackupRestoreMaster' of https://github.com/moodlerooms/moodle 2012-11-07 14:49:15 +08:00
Nicolas Connault dd15ef0e1b MDL-36413 Added "this->" to exclude variable assignment
The this-> keyword was missing from the $exclude = array() statement.
2012-11-07 14:48:40 +08:00
Dan Poltawski 53b6a75a99 Merge branch 'wip-MDL-35279-master' of git://github.com/marinaglancy/moodle 2012-11-07 14:44:26 +08:00
Dan Poltawski 5c6d2b1480 Merge branch 'wip-MDL-36369-master' of git://github.com/marinaglancy/moodle 2012-11-07 14:34:37 +08:00
Dan Poltawski 8f3020558d Merge branch 'wip-MDL-33017-m24-r2' of git://github.com/samhemelryk/moodle 2012-11-07 14:17:11 +08:00
Dan Poltawski 1383b1f29a Merge branch 'wip-MDL-36365-master' of git://github.com/abgreeve/moodle 2012-11-07 14:09:25 +08:00
Adrian Greeve 1222dc52e1 MDL-36365 - lib: The csv class now reads tab separated files with tabs at the end of the file. 2012-11-07 14:02:39 +08:00
Dan Poltawski ac012a9b2c Merge branch 'wip-MDL-36397-master' of git://github.com/barbararamiro/moodle 2012-11-07 13:42:32 +08:00
Dan Poltawski 20272a548c Merge branch 'wip-mdl-36303' of git://github.com/rajeshtaneja/moodle 2012-11-07 11:57:58 +08:00
Barbara Ramiro 32ee9fe407 MDL-36397 Usability: New setting block icons in svg and png formats 2012-11-07 11:32:14 +08:00
Dan Poltawski e9641de10d Merge branch 'w43_MDL-35771_m24_zindex' of git://github.com/skodak/moodle 2012-11-07 11:22:26 +08:00
Dan Poltawski 7451baff70 Merge branch 'wip-MDL-35961-master' of git://github.com/abgreeve/moodle 2012-11-07 11:12:45 +08:00
Dan Poltawski e830d6f98e Merge branch 'wip-MDL-30921-m24' of git://github.com/samhemelryk/moodle 2012-11-07 10:51:06 +08:00
Dan Poltawski 1191881888 Merge branch 'wip-MDL-36120-m24' of git://github.com/samhemelryk/moodle 2012-11-07 10:49:28 +08:00
Dan Poltawski a8ccdd28e0 Merge branch 'wip-MDL-36386-m24' of git://github.com/samhemelryk/moodle
Conflicts:
	version.php
2012-11-07 09:33:47 +08:00
AMOS bot ddf7971c21 Automatically generated installer lang files 2012-11-07 00:36:29 +00:00
Mark Nielsen c7b05a1d1b MDL-17444: Backup hooks for local plugin (CR)
Code review changes
* Fixed PHPDoc
* Fixed missing MOODLE_INTERNAL check
2012-11-06 15:37:08 -08:00
Sam Hemelryk 75af47ee1e MDL-36386 cache: upgrades now trigger definitions to be updated 2012-11-07 10:42:20 +13:00
Sam Hemelryk 49c497ff08 MDL-36120 cachestore_file: Added missing singledirectory check in config check 2012-11-07 10:09:58 +13:00
Sam Hemelryk 702651c7a6 MDL-36120 cache: Tidied up post peer-review 2012-11-07 10:03:32 +13:00
Sam Hemelryk 47834bcd41 MDL-36120 cache: now uses sha1 and has an option for simple keys 2012-11-07 10:03:32 +13:00
Sam Hemelryk 08aaa637fb MDL-36120 cachestore_file: improved file storage method + new setting 2012-11-07 09:58:55 +13:00
Sam Hemelryk b9c87ef86a MDL-33017 navigation: Tidied up after peer-review 2012-11-07 09:52:47 +13:00
Sam Chaffee a66e8bb3aa MDL-17444: Backup hooks for local plugin 2012-11-06 10:49:41 -08:00
Eloy Lafuente (stronk7) 086f5f9ea8 MDL-35762 whitespace fix 2012-11-06 17:03:57 +01:00
Eloy Lafuente (stronk7) 278714a012 MDL-35762 fix deprecated use of get_fast_modinfo() reset. 2012-11-06 16:37:43 +01:00
Eloy Lafuente (stronk7) cd59310d1b Merge branch 'MDL-35762_fix' of git://github.com/andyjdavis/moodle 2012-11-06 16:13:47 +01:00
Andrew Robert Nicols a3b6da6dfc MDL-36022 AJAX Remove shim on chooser dialogues 2012-11-06 13:48:01 +00:00
Dan Poltawski 8cc13d417d Merge branch 'MDL-36392-master-int' of git://github.com/FMCorz/moodle 2012-11-06 17:11:21 +08:00
Frederic Massart 281d730ea6 MDL-36392 course: Adding a module to a section does not corrupt its sequence 2012-11-06 17:00:47 +08:00
Dan Poltawski 02b800ad67 Merge branch 'MDL-34270_master' of https://github.com/markn86/moodle 2012-11-06 16:14:13 +08:00
Dan Poltawski 87b210d98f Merge branch 'w43_MDL-34915_m24_simpleyui' of git://github.com/skodak/moodle 2012-11-06 16:03:40 +08:00
Martin Dougiamas 72225e18e7 MDL-36390 - Make sure resource icons are 24px to match activities 2012-11-06 15:59:32 +08:00
Dan Poltawski 90a23f067c Merge branch 'wip-MDL-36277-master' of git://github.com/barbararamiro/moodle
Conflicts:
	theme/standard/style/course.css
2012-11-06 14:58:49 +08:00
Mark Nelson 464e00be28 MDL-34270 blocks: perform My Moodle addinstance capability check first 2012-11-06 14:56:47 +08:00
Dan Poltawski a353088f2c Merge branch 'wip-MDL-36342-master' of git://github.com/barbararamiro/moodle
Conflicts:
	theme/base/style/core.css
2012-11-06 14:48:22 +08:00
Dan Poltawski 14c01766ec Merge branch 'wip-MDL-36338-master' of git://github.com/barbararamiro/moodle 2012-11-06 14:27:59 +08:00
Dan Poltawski e6acc052fb Merge branch 'MDL-36037' of git://github.com/netspotau/moodle-mod_assign 2012-11-06 12:32:41 +08:00
Sam Hemelryk 468cc57297 MDL-34342 cache: Added missing include and fixed old lang manager setting 2012-11-06 17:24:20 +13:00
Dan Poltawski cdf9b0c86f Merge branch 'MDL-36266-notification-subject' of git://github.com/mudrd8mz/moodle 2012-11-06 11:59:24 +08:00
Dan Poltawski 2f3844e154 MDL-34342 - increment version number
To pickup new cache defintion changes
2012-11-06 11:32:43 +08:00
Dan Poltawski 61d49846a1 Merge branch 'wip-MDL-34342-m24' of git://github.com/samhemelryk/moodle 2012-11-06 11:26:45 +08:00
Dan Poltawski 915fc9b96c Merge branch 'MDL-35421-conclusion' of git://github.com/mudrd8mz/moodle 2012-11-06 11:17:44 +08:00
Dan Poltawski 653c89bcf3 Merge branch 'w43_MDL-36199_m24_pluginsingletons' of git://github.com/skodak/moodle 2012-11-06 10:32:47 +08:00
Dan Poltawski 2c36da50bc Merge branch 'wip-MDL-36362-m24' of git://github.com/samhemelryk/moodle
Conflicts:
	version.php
2012-11-06 10:03:23 +08:00
Dan Poltawski 70cb1b995b Merge branch 'm24_MDL-36360_Missing_cachestore_file_config_get_configuration_array' of git://github.com/scara/moodle 2012-11-06 09:59:16 +08:00
Dan Poltawski 4798b9dd79 Merge branch 'wip-MDL-36379-m24' of git://github.com/samhemelryk/moodle 2012-11-06 09:47:56 +08:00
Dan Poltawski eb5fc2a7d5 Merge branch 'MDL-36347' of git://github.com/timhunt/moodle 2012-11-06 09:41:56 +08:00
Dan Poltawski 980140e7cf Merge branch 'MDL-36023-master' of git://git.luns.net.uk/moodle 2012-11-06 09:35:31 +08:00
Sam Hemelryk db19da5612 MDL-35998 admin: Fixed whitespace 2012-11-06 14:32:18 +13:00
Sam Hemelryk 8b03c25185 MDL-36379 user_view: fixed issue with page layout when editing was on 2012-11-06 14:01:14 +13:00
Mary Evans f02da4fbce MDL-36368 theme_sky_high: fixes regression found when testing MDL-35275 2012-11-06 00:45:07 +00:00
Eloy Lafuente (stronk7) e24d97f944 MDL-35381 added consistent sorting to the new selector (MDL-34657) 2012-11-06 00:44:42 +01:00
Petr Škoda 9f7b195fe6 MDL-35381 limit teachers to do permissions checks of enrolled users only 2012-11-06 00:08:13 +01:00
Sam Hemelryk 5252ec82a2 Merge branch 'MDL-35998' of git://github.com/mouneyrac/moodle
Conflicts:
	version.php
2012-11-06 11:00:16 +13:00
Sam Hemelryk 02adb1e30d Merge branch 'wip-mdl-29689' of git://github.com/rajeshtaneja/moodle 2012-11-06 10:34:06 +13:00
Sam Hemelryk 2ede3d7f35 Merge branch 'MDL-31629-master' of git://github.com/micaherne/moodle 2012-11-06 10:08:43 +13:00
Barbara Ramiro 2df53c3ed8 MDL-36277 Usability: New Activity icons in SVG and PNG formats 2012-11-06 00:02:31 +08:00
Barbara Ramiro 651f639ed0 MDL-36342 Usability: New icons for section in SVG and PNG formats 2012-11-05 23:43:02 +08:00
Andrew Robert Nicols d765695675 MDL-35230 AJAX Only load head and footer javascript if it present 2012-11-05 14:03:11 +00:00
Frederic Massart cded83dd3c MDL-35675 forms: Remove constrain to viewport for popup calendar 2012-11-05 16:38:45 +08:00
Didier Raboud ef46489f38 MDL-35675 forms: Popup calendar is not constrained any more 2012-11-05 16:37:48 +08:00
Dan Poltawski 918085d048 Revert "MDL-35260 Course formats may have settings, be enabled, disabled and uninstalled"
This reverts commit 45f93db912.
This reverts commit 3f798d4a3d.
2012-11-05 15:20:22 +08:00
Rossiani Wijaya 4bde11528b MDL-34572 accessibility compliance for repository: add label for form input text and select tag 2012-11-05 15:06:33 +08:00
Dan Poltawski c296ab7a4d MDL-35260 - version bump for course format settings 2012-11-05 15:06:12 +08:00
Dan Poltawski 3f798d4a3d MDL-35260 - fix trailing whitespace 2012-11-05 15:05:13 +08:00
Dan Poltawski 1fc59b22de Merge branch 'wip-MDL-35260-master' of git://github.com/marinaglancy/moodle 2012-11-05 15:04:25 +08:00
Dan Poltawski 1872a0f26e MDL-35768 - fix trailing whitespace 2012-11-05 14:46:00 +08:00
Dan Poltawski 6b02cc4fc1 MDL-35768 - fix E_STRICT issue 2012-11-05 14:31:54 +08:00
Dan Poltawski 825876620b MDL-35768 - increment redirect_if_major_upgrade_required 2012-11-05 14:25:24 +08:00
Dan Poltawski f041dc5ff7 Merge branch 'wip-MDL-35768-master' of git://github.com/marinaglancy/moodle 2012-11-05 14:08:28 +08:00
Dan Poltawski 940a1e8a17 Merge branch 'MDL-34270_master' of https://github.com/markn86/moodle 2012-11-05 14:05:48 +08:00
Aaron Barnes f493d528c2 MDL-35556 completion: Improve user completion data permission checking 2012-11-05 19:03:18 +13:00
Dan Poltawski ec0a080a07 MDL-34527 - fix trailing whitespace 2012-11-05 13:28:16 +08:00
Dan Poltawski 2c333485c4 Merge branch 'wip-MDL-34527-m24' of git://github.com/samhemelryk/moodle 2012-11-05 13:25:10 +08:00
Marina Glancy 22fae2a0dd MDL-36369 Non-admin managers could not access list of plugins 2012-11-05 12:31:19 +08:00
Mark Nelson 70c9c1956d MDL-34270 blocks: Adding clonepermissionsfrom to the new capability definitions 2012-11-05 12:28:09 +08:00
Marina Glancy 45f93db912 MDL-35260 Course formats may have settings, be enabled, disabled and uninstalled 2012-11-05 11:46:34 +08:00
Marina Glancy 8d8d4da44d MDL-36017 renamed formatoptions to courseformatoptions in externallib 2012-11-05 11:40:03 +08:00
Dan Poltawski b59e928b69 Merge branch 'WIP-MDL-36069-master' of git://github.com/nadavkav/moodle 2012-11-05 11:31:46 +08:00
Sam Hemelryk f3c306f4e0 MDL-21625 question: Fixed phpdocs 2012-11-05 16:29:28 +13:00
Sam Hemelryk 544c455357 Merge branch 'MDL-21625_b' of git://github.com/rwijaya/moodle 2012-11-05 16:27:43 +13:00
Marina Glancy 850acb3560 MDL-35768 MDL-36017 Avoid calling format_base::get_course() when not necessary
- If we want to check fields 'numsections' or 'hiddensections' call course_get_format()->get_format_options()
- We still use extended course object in course/edit.php, update_course(), create_course(), and inside course formats
2012-11-05 11:22:06 +08:00
Dan Poltawski 96846c2a9e Merge branch 'MDL-33621' of git://github.com/rwijaya/moodle 2012-11-05 11:12:32 +08:00
Dan Poltawski 770314dd37 Merge branch 'wip-mdl-35787' of git://github.com/rajeshtaneja/moodle 2012-11-05 10:58:46 +08:00
Aparup Banerjee c770f07155 Merge branch 'wip-MDL-31824-master' of git://github.com/phalacee/moodle 2012-11-05 10:27:57 +08:00
Sam Hemelryk 1385f1d8fb Merge branch 'MDL-36107b' of git://github.com/srynot4sale/moodle 2012-11-05 15:07:21 +13:00
Andrew Davis 69632d42f0 MDL-35762 core_grade: adding unit tests for modinfolib.php 2012-11-05 09:35:10 +08:00
Andrew Davis 5e76227126 MDL-35762 core_grade: altered the code that determines whether an activity is visible on the user report 2012-11-05 09:35:10 +08:00
Mary Evans 715be3cccf MDL-32806 theme_formal_white: fixed some errors 2012-11-05 01:14:13 +00:00
Mary Evans 6cbd8366b1 MDL-32806 theme_formal_white: corrected type 2012-11-05 01:05:56 +00:00
Mary Evans 93bf716160 MDL-32806 theme_formal_white: reversed css rule in style/formal_white.css added in error 2012-11-05 00:57:44 +00:00
Mary Evans 73502c575a MDL-32806 theme_formal_white: Fixed misalignment of frame, logo and headermenu whin in RTL mode 2012-11-05 00:45:37 +00:00
Matteo Scaramuccia f86ce2dcb6 MDL-36364 Improved the deletion logic to preserve the 'prescan' setting 2012-11-04 23:44:33 +01:00
Sam Hemelryk 2e1e266c9a MDL-36362 cache: added simpledata definition option 2012-11-05 10:28:07 +13:00
Sam Hemelryk c575fef5ec Merge branch 'm24_MDL-36359_Typo_admin_rediect' of https://github.com/scara/moodle 2012-11-05 08:35:25 +13:00
Matteo Scaramuccia 894a4f35b9 MDL-36360 Removed 'lock': cachestore_file_addinstance_form::configuration_definition() doesn't include it 2012-11-04 19:57:54 +01:00
Matteo Scaramuccia d4d2f27c7f MDL-36360 Missing of cachestore_file::config_get_configuration_array() 2012-11-04 19:41:22 +01:00
Matteo Scaramuccia 7a65e286ca MDL-36359 Typo prevents 'Cancel' action in 'Add instance' to work as expected 2012-11-04 18:52:43 +01:00
David Mudrák 4affa7242e MDL-36209 Allow teachers to assess submissions during the grading evaluation phase 2012-11-04 08:47:21 +01:00
Petr Škoda 05f6da14f7 MDL-33017 add new function for quickly finding out if user sees at least on course
This will be used in navigation.
2012-11-04 11:08:25 +13:00
Sam Hemelryk 58b602da8e MDL-33017 navigation: added current course and simplified loading 2012-11-04 11:06:49 +13:00
Mary Evans 61f3210bb9 MDL-31847 theme_base: adds highlight colors to table rows 2012-11-03 10:56:49 +00:00
Tim Hunt b5488ffdaa MDL-36347 quiz: formchangechecker should not obstruct auto-submit.
When the quiz time limit runs out, the quiz should be submitted
automatically, withouth formchangechecker popping up a dialogue.
2012-11-03 18:36:13 +11:00
Matt Petro a538cf839e MDL-36025 qtype calculated: Fix handling of "-0" 2012-11-02 11:07:02 -04:00
Jerome Mouneyrac 92fa81d387 MDL-35998 get_site_info return current_language() 2012-11-02 18:03:20 +08:00
Mark Nelson feb1a1beb8 MDL-35349 paypal: Fixing return page so that it now declares page context 2012-11-02 15:35:24 +08:00
Rajesh Taneja cfa4a78b75 MDL-36303 Calendar: remove html special chars from event link in calendar block 2012-11-02 15:02:27 +08:00
Dan Poltawski 0875c405fd Merge branch 'MDL-34270_master' of https://github.com/markn86/moodle 2012-11-02 14:52:33 +08:00
Mark Nelson b291b59d6a MDL-34270 blocks: adding new add block capabilities 2012-11-02 14:32:01 +08:00
Barbara Ramiro f96d1aeffe MDL-36338 Usability: New Edit icons in SVG and PNG formats 2012-11-02 14:03:12 +08:00
Frederic Massart 8a6411991e MDL-33766-master repository: Upgrade notes 2012-11-02 13:54:29 +08:00
Marina Glancy 92d38668ac MDL-35768 MDL-36017 code style corrections 2012-11-02 13:53:48 +08:00
Dan Poltawski 3bd6e74afd Merge branch 'w42_MDL-35469_m24_geckover' of git://github.com/skodak/moodle 2012-11-02 12:07:11 +08:00
Andrew Robert Nicols 6caf3f5c74 MDL-33017 Show Currently viewed course in new node 2012-11-02 16:34:46 +13:00
Marina Glancy 695705f5d4 MDL-36317 Execute course format callback when course or module is set on page 2012-11-02 11:02:22 +08:00
Marina Glancy e010b8503e MDL-35769 Give more flexibility for course formats to extend course navigation
global_navigation::load_course_sections() now has more parameters and ensures
that current section and activity is loaded. This will allow course formats
to display hierarchical sections in navigation and have one callback for
overwriting whole course navigation
2012-11-02 10:58:21 +08:00
Marina Glancy 8bc345339a MDL-36017 IMS-CC export does not filter result by numsections because it is now optional 2012-11-02 10:56:22 +08:00
Marina Glancy 0e984d9809 MDL-36017 Course now may have format-specific options, numsections and hiddensections are among them 2012-11-02 10:56:22 +08:00
Marina Glancy b5cf83f080 MDL-36017 Fields numsections, hiddensections and coursedisplay are now format-specific options
- Fields added to format_legacy as default course format options;
- Upgrade script copies fields values from table course to course_format_options;
- Fields removed from table course;
- Fields removed from edit course form;
- Since front-page course has a 'numsections' setting, format_site defines it as it's option;
- Removed accessing those fields in core code unless we know that format supports them and in this
  case instead of $course = $DB->get_record('course'); we use:
  $course = course_get_format($courseorid)->get_course(); This way all format-specific options
  are added to the $course object
2012-11-02 10:56:19 +08:00
Marina Glancy 7b7d2f4d12 MDL-36017 Added default fields to format_legacy::course_format_options()
Fields coursedisplay, numsections, hiddensections are now the default fields for formats being converted from Moodle 2.3 or earlier
2012-11-02 10:55:24 +08:00
Marina Glancy d6cd57deb6 MDL-35768 Backup and restore of course format-specific options 2012-11-02 10:55:24 +08:00
Marina Glancy 0360443020 MDL-35768 Backup and restore of section format-specific options 2012-11-02 10:55:24 +08:00
Marina Glancy aea2e3c30d MDL-35768 Allow caching of section format options in course.sectioncache 2012-11-02 10:55:24 +08:00
Marina Glancy fc79ede5a1 MDL-35768 Added format-specific options to edit course and section forms
- Course format may define additional fields (format options) to store for course and each section
- Edit course form allows to edit format-specific options and refreshes their list on format change
- Course format may provide it's own form for editing a section
- Default form for editing section allows to edit all format-specific fields
- Class section_info refactored, it defines magic methods such as __get() to access basic section
  information and format-specific options (retrieved only on the first request)
- format_base::update_course_format_options() allows to watch pre-update state of the course,
  format_legacy automatically copies the options with the same names between formats
2012-11-02 10:55:23 +08:00
Marina Glancy 29ac9fc1f8 MDL-35768 create table course_format_options, increase length of course.format field 2012-11-02 10:55:21 +08:00
Steve Bader 27e3057838 MDL-30921 navigation: Added aria-role to the navbar content 2012-11-02 10:58:23 +13:00
Sam Hemelryk 537ba512e5 MDL-30921 output: Added the main role to the main content area 2012-11-02 10:58:23 +13:00
Sam Hemelryk 5c4581fc08 MDL-30921 blocks: Better default aria role given 2012-11-02 10:58:23 +13:00
Sam Hemelryk 91d941c34c MDL-30921 blocks: Added aria-labelledby and aria-label for blocks 2012-11-02 10:58:23 +13:00
Sam Hemelryk 697f7bd701 MDL-30921 blocks: Added a method to inject aria roles into block structure 2012-11-02 10:58:23 +13:00
Sam Hemelryk b3def15507 MDL-34527 forum: Fixed up a couple of SQL queries causing issues in Oracle. 2012-11-02 10:49:50 +13:00
Nadav Kavalerchik d0ec3a5564 MDL-36069 - Right align TEXTAREA "Format selector" listbox, when in RTL mode (theme/standard) 2012-11-01 20:17:15 +02:00
Nadav Kavalerchik 29c368d4b7 MDL-35512 - Two left pointing arrows appear after clicking "left indent activity/resource" arrow, when in RTL mode 2012-11-01 20:07:51 +02:00
David Mudrák 54abf6df70 MDL-35421 Support the new conclusion field in backup and restore 2012-11-01 17:36:40 +01:00
David Mudrák 4c61fcd825 MDL-35421 Display the conclusion when the workshop is closed
There is a new task implemented for the teachers so they are expected to
provide the conclusion at the end of the assessment phase.
2012-11-01 17:36:40 +01:00
David Mudrák 5a49f825bd MDL-35421 Make the new conclusion field editable via mod_form 2012-11-01 17:36:40 +01:00
David Mudrák d898206247 MDL-35421 Add conclusion text fields into the workshop table 2012-11-01 17:36:40 +01:00
Huy Hoang e8c07ff705 MDL-34695 Wiki Module: add prevention to create new record when userid is 0 2012-11-01 17:14:45 +08:00
Adrian Greeve 24054bb28a MDL-36112 - mod/data: Importing URLs no longer generates php warnings.
Also included a slight alteration of the URL field class to display the Choose a link button next to the right input area.

Made an alteration to the url field class
2012-11-01 16:47:38 +08:00
Frederic Massart 68acd1157e MDL-33766 files: Improved validation of areamaxbytes 2012-11-01 16:47:06 +08:00
Frederic Massart 380c122fe2 MDL-33766 files: Capability to ignore userquota 2012-11-01 16:46:42 +08:00
Frederic Massart 21e3ea77a3 MDL-33766 files: Support for userquota/size limit in draft areas 2012-11-01 16:46:42 +08:00
Adrian Greeve eb6e0c613d MDL-35961 - mod/data: Removed duplicate data_content join in simple searches. Thanks to Patrick Pollet (patrick.pollet@insa-lyon.fr) for his patch 2012-11-01 16:28:19 +08:00
Andrew Robert Nicols 21b678dbca MDL-36023 AJAX Move the instantiation of the dialogue to display time 2012-11-01 07:54:58 +00:00
Andrew Robert Nicols 2757a205c8 MDL-36092 Course/AJAX Ensure that dropdown resource pickers are shown when JS is disabled 2012-11-01 07:50:41 +00:00
Mark Nelson fdd375e1a4 MDL-36271 feedback: Fixed variable typo 2012-11-01 15:46:25 +08:00
Dan Poltawski 6109f2112c weekly release 2.4dev 2012-11-01 14:52:00 +08:00
Dan Poltawski fc43eaa133 Fix incorrect permissions 2012-11-01 14:51:29 +08:00
Dan Poltawski 4e90ac1598 weekly release 2.4dev 2012-11-01 14:15:24 +08:00
Dan Poltawski fe74dad062 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-11-01 14:12:49 +08:00
Ankit Agarwal af985a19bd MDL-34520 gradebook: Missing droplow setting in gradebook backup 2012-11-01 13:36:29 +08:00
Rajesh Taneja 52fa70f382 MDL-36238 Blocks: Logs page close session write, so editing is set before 2012-11-01 12:14:18 +08:00
Dan Poltawski 926f51436b Revert "MDL-34332 completion: timeenrolled not always set correctly"
This reverts commit 154a72b002.
2012-11-01 12:02:49 +08:00
Jonathon Fowler 70a9f27b1b MDL-34695 wiki: ensure the correct individual subwiki is used/created for a user 2012-11-01 11:47:11 +08:00
Dan Poltawski 92c99211af MDL-25290 MUC - add dbname to settings hash 2012-11-01 10:41:18 +08:00
Dan Poltawski 3b92a11098 Merge branch 'MDL-36315' of git://github.com/stronk7/moodle 2012-11-01 10:02:47 +08:00
Dan Poltawski 11b748f662 Merge branch 'MDL-34910_fix' of git://github.com/dmonllao/moodle 2012-11-01 09:56:46 +08:00
Eloy Lafuente (stronk7) d4d7984308 MDL-36315 backup: reduce the DST tests failing-window
This reduces the period of time that some of the unit tests
for calculate_next_automated_backup() are failing right now
(from 1week to just some hours around the DST changes).

Note it's not the final solution because they will still fail
when New_York or Brussels DST changes are about to happen, but
to get this completely fixed we'll need to wait to switch from
current custom TZ/DST support to PHP built-in one.
2012-11-01 02:40:56 +01:00
AMOS bot 38292094a2 Automatically generated installer lang files 2012-11-01 00:36:37 +00:00
Eloy Lafuente (stronk7) ed24620d0c MDL-36304 - Left align "marked out of" in RTL Q preview
Credit goes to Nadav Kavalerchik for fixing it @ MDL-36033
2012-10-31 19:32:47 +01:00
Jerome Mouneyrac 489987af77 MDL-35998 move mobile under web services + leave enable mobile under manage web service too 2012-10-31 17:10:42 +08:00
Aparup Banerjee 9b18e58bcb Merge branch 'MDL-36130' of git://github.com/aolley/moodle 2012-10-31 14:51:16 +08:00
Dan Poltawski cedf976367 MDL-35964 - blocks: add missing global $CFG
Thanks Rosie!
2012-10-31 14:28:24 +08:00
Jerome Mouneyrac 33af788210 MDL-35998 New mobile menu: with CSS url + existing enable mobile web services 2012-10-31 14:25:30 +08:00
Jerome Mouneyrac 11e766020b MDL-35997 Create web service functions to return lang strings 2012-10-31 14:21:56 +08:00
Dan Poltawski c9e835e69b Merge branch 'MDL-28235-master' of git://github.com/FMCorz/moodle 2012-10-31 13:42:14 +08:00
Frederic Massart fdfff54f96 MDL-28235 form: Removed reference to unexisting close button in help popup 2012-10-31 12:59:07 +08:00
David Monllao 207b6fc5f1 MDL-34910 blog Fixing mod level related issues 2012-10-31 12:58:42 +08:00
Frederic Massart bd102921e7 MDL-28235 form: Removed close icon of help icon popups 2012-10-31 12:55:26 +08:00
Frederic Massart b218e3ca84 MDL-28235 form: Help button popup close accessibility improved
AMOS BEGIN
 CPY [close,editor],[close,form]
AMOS END
2012-10-31 12:55:26 +08:00
Sam Hemelryk 8458274845 Merge branch 'w43_MDL-36145_m24_yui373' of git://github.com/skodak/moodle 2012-10-31 17:35:18 +13:00
Rajesh Taneja 7482a71401 MDL-34777 Accessibility: Add proper id to select input 2012-10-31 11:35:43 +08:00
Dan Poltawski b89ec44032 Merge branch 'wip-mdl-29762' of git://github.com/rajeshtaneja/moodle 2012-10-31 10:50:44 +08:00
Damyon Wiese fc7b7d52de MDL-36289: Assignment - Prevent feedback files being copied to the next user when using "Save and next". 2012-10-31 10:28:21 +08:00
Aparup Banerjee 07e3b0f17d Merge branch 'MDL-31708-master' of git://github.com/StudiUM/moodle 2012-10-31 10:04:56 +08:00
Dan Poltawski 8120a4fa72 Merge branch 'wip-mdl-34777' of git://github.com/rajeshtaneja/moodle 2012-10-31 09:59:44 +08:00
AMOS bot 96543a9cef Automatically generated installer lang files 2012-10-31 00:36:33 +00:00
Sam Hemelryk eecddb8fd4 Merge branch 'MDL-31934_master' of git://github.com/lazydaisy/moodle 2012-10-31 10:15:44 +13:00
Mary Evans d895d70f9e MDL-31934 mod/forum: Added CSS fix to mod/forum/styles.css for unread forumposts also reversed a previous commit in theme/base/core.css. 2012-10-30 11:34:02 +00:00
David Mudrák 2399585f7f MDL-36266 Improve update notification message subject 2012-10-30 12:00:03 +01:00
Dan Poltawski 639a2868c3 Merge branch 'MDL-34332c' of git://github.com/srynot4sale/moodle 2012-10-30 16:20:39 +08:00
Dan Poltawski eedaf16e9e Merge branch 'MDL-35386b' of git://github.com/srynot4sale/moodle 2012-10-30 16:12:56 +08:00
Dan Poltawski 81bfb046af Merge branch 'MDL-34965_master' of git://github.com/dmonllao/moodle 2012-10-30 16:05:43 +08:00
Dan Poltawski 24a3115caf MDL-16660 calendar - remove cron strings
We don't translate cronjobs
2012-10-30 15:27:02 +08:00
Dan Poltawski c5a82120ac MDL-16660 calendar: remove get_ical_data() from form
This code was only called in one path and so was not necessary.
2012-10-30 14:56:39 +08:00
Dan Poltawski d618dcf3c9 MDL-16660 - upgrade: split steps up into two
Be extra safe for potential debugging purposes
2012-10-30 14:33:30 +08:00
Dan Poltawski 0c918a1f52 Merge branch 'wip-MDL-16660-m24' of git://github.com/samhemelryk/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-10-30 14:18:13 +08:00
Dan Poltawski d3cf8fdf5d Merge branch 'wip-MDL-36094-m24' of git://github.com/samhemelryk/moodle 2012-10-30 13:44:38 +08:00
Dan Poltawski 90d71805f4 Merge branch 'wip-MDL-32326-m24' of git://github.com/samhemelryk/moodle 2012-10-30 13:40:24 +08:00
Sam Hemelryk 81b5ff0e8e Merge branch 'MDL-28235-master' of git://github.com/FMCorz/moodle 2012-10-30 17:37:06 +13:00
Sam Hemelryk e30390a0dd MDL-16660 calendar: Cleaned u several areas of the iCal patch in preparation of the next peer-review
* Added a bit of AMOS to copy existing strings and save a little translation effort
* Cleaned up fixed strings in several places
* Cleaned up some existing strings as required.
* Fixed install and upgrade code. Split upgrade into two parts (one for each table).
* Fixed fatal error caused by missing forms lib inclusion
* Added param types to forms.
* Converted file_get_content to use curl for URL's.
* Cleaned things up per coding style.
* Separated subscription management and form into separate files.
* Tidied up bennu inclusion to just where required.
* Lots of other small fixes as well.

AMOS BEGIN
  CPY [calendar,calendar],[colcalendar,calendar]
  CPY [actions,moodle],[actions,calendar]
  CPY [never,moodle],[never,calendar]
AMOS END
2012-10-30 17:33:49 +13:00
Jonathan Harker 4c349ad7ba MDL-16660: WIP - fixes as per review 2012-10-30 17:33:18 +13:00
Jonathan Harker b5a52acd9d MDL-16660: Add calendar import.
Adds an extra import section alongside the existing export in the
calendar views. Allows the user to import from either a file or a
URL as a subscription, with an optional polling interval of hourly,
daily, weekly, monthly, or annually. This subscription may be added
to the user, group, global or course calendars. These subscriptions
are tracked in a separate database table, and an extra column added
to the events table to relate them to the subscription. The event
uuid field is also expanded to allow for the RFC-2445 UID property.
Subscriptions are listed on the calendar view page, and can be
added and removed, manually polled, and the polling interval
adjusted. Subscription events are updated on cron.
2012-10-30 17:33:18 +13:00
Dan Poltawski 709d684341 Merge branch 'MDL-36064' of git://github.com/netspotau/moodle-mod_assign 2012-10-30 12:14:40 +08:00
Dan Poltawski ef96f58535 Merge branch 'wip-mdl-35489' of git://github.com/rajeshtaneja/moodle 2012-10-30 12:11:44 +08:00
Dan Poltawski 0caa0c869b Merge branch 'MDL-4655-master' of git://github.com/FMCorz/moodle 2012-10-30 11:58:34 +08:00
Jerome Mouneyrac c70b9853da MDL-35543 modify get_users to get_users_by_field (more complex search function named get_users will be implemented later - focussing yet on retrieving user info for a specified field) 2012-10-30 11:36:29 +08:00
Frederic Massart 38fb498bef MDL-30871 message: Removed unused string 2012-10-30 11:04:50 +08:00
Frederic Massart ba4c451f53 MDL-30871 enrol: Flat file does not fail when notifications are enabled 2012-10-30 11:03:12 +08:00
Sam Hemelryk e118ad21c9 Merge branch 'MDL-34274-master' of git://github.com/ankitagarwal/moodle 2012-10-30 16:00:45 +13:00
Sam Hemelryk c8757a3c87 Merge branch 'MDL-35889-master' of git://github.com/ankitagarwal/moodle 2012-10-30 15:48:54 +13:00
Dan Poltawski 8586777168 Merge branch 'MDL-36015_m1' of git://git.catalyst.net.nz/moodle-r2 2012-10-30 10:18:45 +08:00
Dan Poltawski 752a3f14be Merge branch 'wip-mdl-35910' of git://github.com/rajeshtaneja/moodle 2012-10-30 10:00:11 +08:00
Dan Poltawski e76cc8f4c0 Merge branch 'MDL-36135-evaluators' of git://github.com/mudrd8mz/moodle 2012-10-30 09:37:03 +08:00
Frederic Massart 5735454d8f MDL-26660 libraries: Do not try to parse non-valid XML 2012-10-30 09:22:48 +08:00
Sam Hemelryk 21d31a23a0 Merge branch 'MDL-35959-master' of git://git.luns.net.uk/moodle 2012-10-30 13:31:30 +13:00
Sam Hemelryk a9ab988e43 Merge branch 'WIP-MDL-36070-master' of git://github.com/nadavkav/moodle 2012-10-30 13:02:24 +13:00
Sam Hemelryk 41b4e5ec7f Merge branch 'MDL-36076' of git://github.com/timhunt/moodle 2012-10-30 12:59:23 +13:00
Sam Hemelryk ca55ce4b35 Merge branch 'MDL-36101-master' of git://github.com/micaherne/moodle 2012-10-30 12:54:56 +13:00
Sam Hemelryk ebaa74a3e0 Merge branch 'MDL-36103' of git://github.com/timhunt/moodle 2012-10-30 12:52:00 +13:00
Sam Hemelryk 86c0eb48ba Merge branch 'MDL-36105-master' of https://github.com/mackensen/moodle 2012-10-30 12:31:22 +13:00
Sam Hemelryk 558aecf818 Merge branch 'wip-mdl-36131' of git://github.com/rajeshtaneja/moodle 2012-10-30 12:24:31 +13:00
Sam Hemelryk 7080f72c73 Merge branch 'MDL-36137_master' of git://github.com/lazydaisy/moodle 2012-10-30 12:17:11 +13:00
Ruslan Kabalin 88be30c28c MDL-36257 forms Make selectyesno output hidden substitution on freezing 2012-10-29 15:00:40 +00:00
Michael de Raadt 8d880a2ec6 MDL-35358 Lesson Module: fixed teacher grade essays display when lesson is only available for group members only 2012-10-29 17:58:51 +08:00
Rossiani Wijaya 3195bc849f MDL-35530 Lesson Module: Add question text to facilitate grading 2012-10-29 17:01:09 +08:00
Dan Poltawski 8688c112b6 Merge branch 'MDL-34910_master' of git://github.com/dmonllao/moodle 2012-10-29 15:36:07 +08:00
Dan Poltawski 01412583bf Merge branch 'master_MDL-35215' of git://github.com/totara/moodle 2012-10-29 15:33:43 +08:00
Dan Poltawski 69c9669a58 Merge branch 'MDL-34363' of git://github.com/merrill-oakland/moodle 2012-10-29 15:21:39 +08:00
David Monllao 4219ffab43 MDL-34910 blog Remove new entry link when the context doesn't allows to add new entries 2012-10-29 15:04:45 +08:00
Dan Poltawski 506263cfee Merge branch 'WIP-MDL-36033-master' of git://github.com/nadavkav/moodle 2012-10-29 14:59:45 +08:00
Dan Poltawski 4de9b85c83 Merge branch 'wip-MDL-36075_MASTER' of git://github.com/jason-platts/moodle 2012-10-29 14:57:14 +08:00
Dan Poltawski 09f2367617 MDL-34354 - remove unused line 2012-10-29 14:54:14 +08:00
Dan Poltawski 02309e2d50 Merge branch 'MDL-34354-master' of git://git.luns.net.uk/moodle 2012-10-29 14:53:43 +08:00
Dan Poltawski 737492f1a5 Merge branch 'MDL-36099-master' of git://git.luns.net.uk/moodle 2012-10-29 14:50:23 +08:00
Dan Poltawski f6110392f1 Merge branch 'MDL-35880-master' of git://github.com/ankitagarwal/moodle 2012-10-29 14:35:21 +08:00
Dan Poltawski aed58a3da8 Merge branch 'MDL-35990-master' of git://github.com/FMCorz/moodle 2012-10-29 14:32:11 +08:00
Dan Poltawski c28717d913 MDL-35116 - update version numbers 2012-10-29 14:08:28 +08:00
Frederic Massart d8271e3908 MDL-35116 upgrade: Rename backup files having used short name previously 2012-10-29 14:07:18 +08:00
Dan Poltawski 890988221c Merge branch 'MDL-35117-master' of git://github.com/FMCorz/moodle 2012-10-29 14:03:57 +08:00
Dan Poltawski 3dce356ac4 Merge branch 'MDL-34837-master' of git://github.com/FMCorz/moodle 2012-10-29 13:55:06 +08:00
Dan Poltawski 06b33f67b0 Merge branch 'w43_MDL-35843_m42_expiryself' of git://github.com/skodak/moodle 2012-10-29 13:49:47 +08:00
Dan Poltawski b01783f086 Merge branch 'MDL-35964' of git://github.com/timhunt/moodle 2012-10-29 13:48:44 +08:00
Dan Poltawski 08f24a6686 Merge branch 'wip-MDL-34343-m24' of git://github.com/samhemelryk/moodle 2012-10-29 12:39:06 +08:00
Dan Poltawski e93256ecf6 MDL-34399 - bump version to reload cache definition 2012-10-29 12:36:22 +08:00
Dan Poltawski 3aa721e035 Merge branch 'MDL-34399' of git://github.com/timhunt/moodle 2012-10-29 12:18:01 +08:00
Dan Poltawski 6954e44169 Merge branch 'MDL-36086-workshop' of git://github.com/mudrd8mz/moodle 2012-10-29 12:11:51 +08:00
Fábio Souto 8647711201 MDL-29938 implement core_user_get_users as unification
unifies core_user_get_users_by_id and get_course_user_profiles

Conflicts:

	user/lib.php
2012-10-29 12:00:40 +08:00
Dan Poltawski 0e0ad4c9f9 Merge branch 'wip-MDL-36052-m24' of git://github.com/samhemelryk/moodle 2012-10-29 11:52:25 +08:00
Dan Poltawski a9b489525a Merge branch 'wip-MDL-36115-m24' of git://github.com/samhemelryk/moodle 2012-10-29 11:48:55 +08:00
Dan Poltawski 26baacf7d7 Merge branch 'MDL-35297' of git://github.com/stronk7/moodle 2012-10-29 09:50:20 +08:00
Tim Hunt 32953f37b6 MDL-34399 quiz cleanup: remove ugly question/page number hack
It used to be necessary to store the question number and question page
by adding them as random extra fields on the question object (but
I can no longer remember what that reason was). Now it is possible
to store this sensibly in the quiz_attempt object, which is much
cleaner, so do that.
2012-10-26 11:58:25 +08:00
Tim Hunt 15dd772736 MDL-34399 questions cleanup: straighten out strange links to question objects. 2012-10-26 11:58:14 +08:00
Tim Hunt 204ceaa389 MDL-34399 quiz cleanup: remove never used function.
This got added during the Moodle 2.0 files API conversion, but was
always part of a failed experiemnt, so should have been deleted
long ago. It was never actually used.
2012-10-26 11:58:03 +08:00
Tim Hunt a560d636f4 MDL-34399 questions: cache to help load question definitions.
At the moment, it takes several DB queries to load each question definition,
so this cache is potentially a big win.
2012-10-26 11:58:02 +08:00
Dan Marsden db7f1ca70e MDL-35737 SCORM: when scorm_parse is called and external scorm manifest use always update the package. 2012-10-26 15:13:39 +13:00
Andrew Robert Nicols afe3566cca MDL-35836 Rewrite doctonewwindow handling to use delegation instead of individual events 2012-10-26 08:52:23 +08:00
Mary Evans 921765e5eb MDL-36197 theme_fusion: Fix for "Your progress" overlaps completion tracking checkbox 2012-10-26 01:18:17 +01:00
Dan Marsden 6977d5253b MDL-36168 SCORM: fix reset of course completion settings. 2012-10-25 17:12:52 +13:00
Petr Škoda 9854743221 MDL-36199 reset plugin manager singletons 2012-10-25 00:55:10 +08:00
Petr Škoda 9e2d7f560d MDL-35771 patch tinymce to use lower zindexes
The reason is that YUI does not like that bing zIndexes when dragging panels. We should probably try to find the reason why YUI dragging fails and report it upstream.
2012-10-24 22:45:23 +08:00
Petr Škoda e169d3a818 MDL-34915 use SimpleYUI
The main reason is to simplify theme development, the global Y should not be ideally used elsewhere.
2012-10-24 22:18:23 +08:00
David Mudrák dc1e95c96a MDL-35422 Fix the confusing submit button label 2012-10-24 17:43:28 +08:00
Damyon Wiese b2a63d679d MDL-36037: Change language strings from team assignment to call it group assignment 2012-10-24 10:43:44 +08:00
Andrew Davis (andyjdavis) 6ba8a4bee2 MDL-30545 messaging prefs: add Andy's extra unit tests. 2012-10-23 18:41:43 +08:00
Tim Hunt 2cf5ab1028 MDL-30545 messaging prefs: show all relevant message providers.
Some message providers have an associated capability. For example
the mod/quiz:emailconfirmsubmission capability. At the moment,
we only show the preferences for the capabilities that the user
has in the system context.

That does not work for the example capability above. Typically
the capability will be overridden in one quiz, to allow for
Students, and the user will have the Student role in the course
context. Therefore, this message type does not appear on the
preferences page.

This fix corrects the logic, so that all message types that are
to the current user are displayed.
2012-10-23 18:41:43 +08:00
Jason Platts 462e42cb9a MDL-34530 Calendar: Can create event for any group, but cannot view it 2012-10-23 10:17:16 +01:00
Eloy Lafuente (stronk7) 827b294ca8 MDL-35297 book: replay some steps lost when book landed to core
This commit replays, conditionally, all the upgrade steps from
MOODLE_19_STABLE to MOODLE_23_STABLE in the mod_book activity. That
guarentees that any site using the mod_book before landing to core,
no matter if it was the latest or an outdated one will upgrade
perfectly to the expected current version.

As a general rule, everytime one contrib plugin lands to core, its
complete upgrade code must be kept, at least until the core version
that introduced it, is out completely from the upgrade requirement
conditions.

In this case, with the missing upgrade code being added to 2.4, it
will be safe to delete the upgrade steps once 2.5 (or upwards) become
a requirement. Never always.
2012-10-21 17:36:37 +08:00
Petr Škoda e13b330d49 MDL-35771 lower the index values in file related code to prevent dragging problems in YUI 2012-10-21 14:37:10 +08:00
Mary Evans e375511f2f MDL-31934 theme_base: Fix to add highlight colour to unread forum posts. 2012-10-21 01:24:01 +01:00
Petr Škoda 6df2abcf1a MDL-36145 import latest YUI 3.7.3 2012-10-20 15:22:15 +08:00
AMOS bot 39f3bbb815 Automatically generated installer lang files 2012-10-20 00:34:50 +00:00
Mary Evans 025b10d23f MDL-36137 theme_magazine: changed forum and description info from center to left aligned. 2012-10-19 23:39:01 +01:00
Matteo Scaramuccia 4704e6f80b MDL-36142 Incorrect SQL query (wrong usare of quotes) returns HTTP 404 due to a dml_read_exception 2012-10-19 22:36:26 +02:00
David Mudrák 462b4c128c MDL-36086 Fix SQL parameters array 2012-10-20 00:25:27 +08:00
David Mudrák 4f11517667 MDL-36135 Give the grading evaluation methods control over their settings forms
From now on, the evaluator's method get_settings_form() should return a
subclass of workshop_evaluation_settings_form. The evaluation subplugins
are expected to use the define_sub() method to add their own fields into
the base form, although they can override the main define() method, too.

The former interface workshop_evaluation has been refactored into a
superclass with abstract methods which seems to be more robust.

Oh, by the way, I'm in Perth - yay!

AMOS BEGIN
 MOV [settings,workshopeval_best],[evaluationsettings,mod_workshop]
AMOS END
2012-10-20 00:17:13 +08:00
David Mudrák a93dc3ecb7 MDL-36135 Display the workshop grading evaluation method chooser
Teachers can now choose the actual grading evaluation method to use
during the grading evaluation phase. The workshopeval_best is still used
as the default one (this may be made configurable later, although there
is no big benefit of it).
2012-10-20 00:17:13 +08:00
Gilles-Philippe Leblanc 033e8461ab MDL-31708 wiki: Wiki 2.0 non-group member can see edit option in navigation block 2012-10-19 09:38:28 -04:00
Rajesh Taneja 57bda78540 MDL-36131 AJAX: Conditional activities will behave same as in non-ajax mode 2012-10-19 17:10:25 +08:00
Tim Hunt 4726ad4fa4 MDL-36103 tablelib: links to user profiles are wrong in courses. 2012-10-19 16:49:34 +08:00
Nadav Kavalerchik f12117250d MDL-36033 - Left align Numeric value fields in Calculated and Numeric question, when in RTL mode 2012-10-19 10:24:03 +02:00
Nadav Kavalerchik ad01d8f57b MDL-36070 - Points label hides UP and Down ordering arrows and Delete Icon on Quiz edit page, in RTL mode (theme/standard) 2012-10-19 10:16:26 +02:00
Nadav Kavalerchik 2bda04605e MDL-35249 - Move Grading popmenu "userid" column after "scale" column (workaround) 2012-10-19 10:14:49 +02:00
Rajesh Taneja 7212740691 MDL-35910 Assignment 2.2: Fixed included files in assignment zip.
If Marking button is enabled, assignment is open and is not finalized, then don't add file to zip
2012-10-19 16:07:19 +08:00
Petr Škoda 8a486fdb7d MDL-35843 implement self enrolment expiry notification 2012-10-19 16:04:00 +08:00
Petr Škoda 8c04252cbf MDL-35843 refactor expiry notifications to core enrol feature 2012-10-19 16:03:48 +08:00
Petr Škoda 8e941204b2 MDL-35843 prepare fox expiry refactoring to core enrol feature
AMOS BEGIN
  MOV [errorthresholdlow,enrol_manual],[errorthresholdlow,core_enrol]
  MOV [expirynotify,enrol_manual],[expirynotify,core_enrol]
  MOV [expirynotify_help,enrol_manual],[expirynotify_help,core_enrol]
  MOV [expirynotifyall,enrol_manual],[expirynotifyall,core_enrol]
  MOV [expirynotifyteacher,enrol_manual],[expirynotifyenroller,core_enrol]
  MOV [notifyhour,enrol_manual],[expirynotifyhour,core_enrol]
  MOV [expirythreshold,enrol_manual],[expirythreshold,core_enrol]
  MOV [expirythreshold_help,enrol_manual],[expirythreshold_help,core_enrol]
AMOS END
2012-10-19 16:03:40 +08:00
Rossiani Wijaya f262c4cbf7 MDL-21625 Question bank: fixing whitespace 2012-10-19 15:48:04 +08:00
Aaron Barnes 01259692ef MDL-36107 scorm: Fix non-static method call 2012-10-19 18:39:45 +13:00
Rossiani Wijaya d2c9169a4c MDL-21625 Question bank: Add accessibility to table layout for viewing question list 2012-10-19 13:25:52 +08:00
Adam Olley ac9ac1fe9c MDL-36130: mod_assign: migrate logs when migrating from mod_assignment 2012-10-19 15:18:10 +10:30
Sam Hemelryk fe3522080d MDL-36052 cache: Tidied up language in readme and added missing definition args 2012-10-19 10:23:38 +08:00
Sam Hemelryk 4075433bfd MDL-36052 cache: Fixed up the cache README file. 2012-10-19 10:04:31 +08:00
Sam Hemelryk 7e7e108f93 MDL-36115 cache: Fixed up requirements check in cache admin interfaces 2012-10-19 08:12:32 +08:00
Sam Hemelryk e0a568e281 MDL-36094 cache: Fixed up inclusion path for overrideclassfile and datasourcefile 2012-10-19 08:11:40 +08:00
Sam Hemelryk 9381983e5b MDL-25290 conversion: Added db column cache to pgsql + mysql 2012-10-19 08:08:59 +08:00
Sam Hemelryk d90bbe6fce MDL-25290 conversion: Converted string cache to MUC 2012-10-19 08:08:50 +08:00
Mary Evans ccc2693cc1 MDL-35510 theme_mymobile: RTL fixes for course and category names in style/jmobile11_rtl.css 2012-10-18 13:38:18 +01:00
Aparup Banerjee 7e8ae12a7a weekly release 2.4dev 2012-10-18 19:41:39 +08:00
Aparup Banerjee f28b559030 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-10-18 19:20:30 +08:00
Frederic Massart db6c8b82d2 MDL-35117 backup: Read information from backup XML file when removing excess backups 2012-10-18 15:13:50 +08:00
Rajesh Taneja 5f0ba65f26 MDL-35489 users: Check added before using form data 2012-10-18 14:13:18 +08:00
Frederic Massart e462f46b77 MDL-35117 librairies: File Packer can only extract a specific list a files 2012-10-18 13:38:48 +08:00
Jason Fowler 9e142d1121 MDL-31824 - Calendar - Fixing HTML classes fopr calendar month view - patch provided by Mark Ward 2012-10-18 12:49:32 +08:00
Frederic Massart 3b7bfbb5b8 MDL-4655 course: Number of courses with summaries to display is configurable 2012-10-18 11:07:17 +08:00
AMOS bot 34c78e9714 Automatically generated installer lang files 2012-10-18 00:34:54 +00:00
Aparup Banerjee a9dd30802d Merge branch 'WIP-MDL-35583' of git://github.com/nadavkav/moodle 2012-10-18 03:45:06 +08:00
Charles Fulton a377cc5301 MDL-36105 grades: use consistent icon classs 2012-10-17 11:07:12 -07:00
Nadav Kavalerchik 43aae6cc28 MDL-35583 - blocks header and footer right align fixes, profile picture right align (update) 2012-10-17 19:34:16 +02:00
David Tang 54d6517db3 MDL-31629 auth_shibboleth Use correct language string location 2012-10-17 12:56:14 +01:00
Michael Aherne af402e5677 MDL-36101 auth_shibboleth Show appropriate error message for suspended accounts 2012-10-17 12:37:43 +01:00
Andrew Robert Nicols 09f200aa62 MDL-36099 AJAX Ensure that a galleryversion is always set for yui_module calls 2012-10-17 10:14:56 +01:00
Tim Hunt 16c7457f57 MDL-36076 qtype multichoice: validation fails on '0' answer. 2012-10-17 13:54:45 +08:00
Sam Hemelryk 2ea4312a23 MDL-31683 mod_assign: Fixed up whitespace and cap check changes as required 2012-10-17 11:17:53 +08:00
Sam Hemelryk 7e5c720495 Merge branch 'MDL-31683' of git://github.com/Lightwork-Marking/moodle 2012-10-17 10:57:36 +08:00
AMOS bot 663704c080 Automatically generated installer lang files 2012-10-17 00:34:37 +00:00
Aparup Banerjee c6ad465229 Merge branch 'WIP-MDL-35583' of git://github.com/nadavkav/moodle 2012-10-17 08:25:27 +08:00
Paul Charsley 1378838eca MDL-31683 added mod_assign_get_assignments web service function 2012-10-17 13:21:44 +13:00
Jason Platts 8f38558b7a MDL-36075 Forms: Date selector in forms errors in IE7 2012-10-16 12:06:03 +01:00
Aaron Barnes e9d20bbc64 MDL-35386 completion report: Update code and improve report/csv 2012-10-17 00:03:09 +13:00
Sam Hemelryk a896bc32cd Merge branch 'MDL-35412-master' of git://github.com/FMCorz/moodle 2012-10-16 17:41:49 +08:00
Frederic Massart a8397303d2 MDL-35412 phpunit: date_format_string() is case insensitive 2012-10-16 17:21:11 +08:00
Dan Poltawski 4b3a647cfb Merge branch 'wip-mdl-30691' of git://github.com/rajeshtaneja/moodle 2012-10-16 16:27:37 +08:00
Dan Poltawski cdcb468d6f MDL-34228 - version.php bump for new capability 2012-10-16 16:20:43 +08:00
Dan Poltawski 99da334454 Merge branch 'MDL-34228-master' of git://github.com/sammarshallou/moodle 2012-10-16 16:19:25 +08:00
Dan Poltawski a2b86c741d Merge branch 'wip-mdl-27309' of git://github.com/rajeshtaneja/moodle 2012-10-16 14:59:04 +08:00
Dan Poltawski ac088b1c21 Merge branch 'w42_MDL-35904_m24_mainadmin' of git://github.com/skodak/moodle 2012-10-16 14:50:30 +08:00
Dan Poltawski ea0a092e99 Merge branch 'wip-mdl-32218' of git://github.com/rajeshtaneja/moodle 2012-10-16 14:35:28 +08:00
Frederic Massart e56de3a4d1 MDL-35990 repository: Added MOODLE_INTERNAL check and removed config inclusion 2012-10-16 14:01:29 +08:00
Matteo Scaramuccia c67f1a342c MDL-35990 Repository Library should not include the main config.php file 2012-10-16 13:54:23 +08:00
Dan Poltawski d2936c2642 Merge branch 'MDL-34367_message_lib' of git://github.com/andyjdavis/moodle 2012-10-16 13:47:46 +08:00
Dan Poltawski 9b0a3e17ba Merge branch 'wip-MDL-35769-master' of git://github.com/marinaglancy/moodle 2012-10-16 13:41:17 +08:00
Sam Hemelryk f7de90a74a MDL-33857 fixed up whitespace 2012-10-16 13:32:34 +08:00
Sam Hemelryk 2bbf03ce3b Merge branch 'wip-MDL-33857-master' of git://github.com/marinaglancy/moodle 2012-10-16 13:31:44 +08:00
Ankit Agarwal 83f31bcf87 MDL-35880 user: Adding a heading to profile edit page 2012-10-16 13:16:41 +08:00
Frederic Massart c5f2d11969 MDL-35412 core: Moving get_string out of if statement 2012-10-16 11:50:25 +08:00
Sam Hemelryk b10a5376d1 MDL-35198 cache: Fixed up key_exists call in cache 2012-10-16 11:25:02 +08:00
Sam Hemelryk 8422094d91 Merge branch 'MDL-35198' of git://github.com/mouneyrac/moodle 2012-10-16 11:23:24 +08:00
Sam Hemelryk 58e033193f Merge branch 'MDL-32148-master' of git://github.com/StudiUM/moodle 2012-10-16 11:16:33 +08:00
Dan Poltawski fe09ba8785 Merge branch 'MDL-33815' of git://github.com/rwijaya/moodle 2012-10-16 11:08:58 +08:00
Aparup Banerjee 2872bd5101 Merge branch 'wip-MDL-35850-master' of git://github.com/abgreeve/moodle 2012-10-16 11:08:01 +08:00
Dan Poltawski 63acd7f7ce Merge branch 'WIP-MDL-35563-master' of git://github.com/nadavkav/moodle 2012-10-16 10:54:29 +08:00
Dan Poltawski 43c7341b82 Merge branch 'wip-MDL-32184-master' of http://github.com/phalacee/moodle 2012-10-16 10:48:23 +08:00
Aparup Banerjee cb6b5fb625 Merge branch 'wip-MDL-35265-master' of git://github.com/abgreeve/moodle
Conflicts:
	version.php
2012-10-16 10:46:11 +08:00
Sam Hemelryk a7aa82b3ac Merge branch 'MDL-35664-master' of git://github.com/FMCorz/moodle 2012-10-16 10:42:51 +08:00
Dan Poltawski 0651778e95 Merge branch 'MDL-32294-master' of git://github.com/FMCorz/moodle 2012-10-16 10:41:24 +08:00
Dan Poltawski 5def031e6f Merge branch 'MDL-32092' of git://github.com/rwijaya/moodle 2012-10-16 10:37:52 +08:00
Sam Hemelryk d6361e618a Merge branch 'MDL-35892-master' of git://github.com/FMCorz/moodle 2012-10-16 10:31:56 +08:00
Dan Poltawski 5f7ac316fb MDL-21801 - mod_lesson: version bump
To reflect the new (ppt-less) state
2012-10-16 10:30:45 +08:00
Dan Poltawski 399fd63052 Merge branch 'MDL-21801_b' of git://github.com/rwijaya/moodle 2012-10-16 10:29:49 +08:00
Sam Hemelryk efd6156e4d Merge branch 'MDL-35726' of git://github.com/netspotau/moodle-mod_assign 2012-10-16 10:16:26 +08:00
Sam Hemelryk ee17d12db1 Merge branch 'wip-MDL-25275-master' of git://github.com/abgreeve/moodle 2012-10-16 10:11:04 +08:00
Damyon Wiese f42010d10d MDL-35711: Minor comment formatting fixes. 2012-10-16 10:08:36 +08:00
Ruslan Kabalin 184a5ef9e5 MDL-35711 mod_assign Trigger submission event when submit button click is not requred 2012-10-16 10:08:32 +08:00
Dan Poltawski eb214fdb4e MDL-35710 - mod_assign: bump version for new events 2012-10-16 10:04:59 +08:00
Dan Poltawski eed6cd1987 Merge branch 'MDL-35710' of git://github.com/netspotau/moodle-mod_assign 2012-10-16 10:01:46 +08:00
Dan Poltawski dab6b11914 Merge branch 'w42_MDL-35955_m24_geckospell' of git://github.com/skodak/moodle 2012-10-16 09:57:30 +08:00
Damyon Wiese e197970021 MDL-36064: Assignment revert to draft causes error with Team assignment changes 2012-10-16 09:49:29 +08:00
Dan Poltawski e7dcead4de Merge branch 'MDL-35655' of git://github.com/itamart/moodle 2012-10-16 09:49:28 +08:00
AMOS bot caea6920a1 Merge branch 'master' into install_master 2012-10-16 00:34:54 +00:00
Nadav Kavalerchik b801e460d9 MDL-35583 - blocks header and footer right align fixes, profile picture right align (update) 2012-10-15 11:20:49 +02:00
Dan Poltawski f186ad1f90 Merge branch 'wip-MDL-35339-master' of git://github.com/marinaglancy/moodle 2012-10-15 17:19:44 +08:00
Mark Nielsen ac1f907e77 MDL-34837 backup: Restore does not fail when some courses have the same name 2012-10-15 17:18:34 +08:00
Marina Glancy 44aa854e93 MDL-35339 coding style corrections 2012-10-15 16:57:25 +08:00
Mark Nielsen eaf52ff01d MDL-33621 rating: fixed view help error for global scale rating 2012-10-15 16:54:43 +08:00
Rajesh Taneja 5ad8935f45 MDL-29762 Blocks: Modified checks to show image in html block 2012-10-15 16:53:55 +08:00
Aparup Banerjee dd55ec309b MDL-35418 fixed up whitespaces 2012-10-15 16:36:45 +08:00
Aparup Banerjee 43d333cb58 Merge branch 'master_MDL-35418' of git://github.com/danmarsden/moodle 2012-10-15 16:36:38 +08:00
Marina Glancy 2e4c0d05e1 MDL-35339 Fixing rebase with MDL-35634 2012-10-15 16:18:55 +08:00
Dan Poltawski 317db10e5d Merge branch 'wip-MDL-35895-master' of git://github.com/marinaglancy/moodle 2012-10-15 16:07:24 +08:00
Dan Poltawski 348be850c9 Merge branch 'w42_MDL-35854_m24_usergenerator' of git://github.com/skodak/moodle 2012-10-15 16:03:53 +08:00
Dan Poltawski a146ac13c1 Merge branch 'w42_MDL-35917_m24_cohortdoc' of git://github.com/skodak/moodle 2012-10-15 15:59:08 +08:00
Aparup Banerjee 353d6457b7 Merge branch 'MDL-31010-master' of git://github.com/ankitagarwal/moodle 2012-10-15 15:53:22 +08:00
Marina Glancy dddbbac3f7 MDL-35661 Check that plugin is installed before including settings.php 2012-10-15 15:47:41 +08:00
Aparup Banerjee 8cbd15a761 Merge branch 'MDL-28965-master' of git://github.com/ankitagarwal/moodle 2012-10-15 15:17:44 +08:00
Aparup Banerjee de5a44eb3a Merge branch 'w42_MDL-36031_m24_messagesink' of git://github.com/skodak/moodle 2012-10-15 14:36:02 +08:00
Dan Marsden d83566565c MDL-35418 SCORM: always set children param even if empty. Always set incomplete param 2012-10-15 19:25:01 +13:00
Dan Marsden 995e322e75 MDL-35418 SCORM: remove dumb function, include sequencinglib.php as scorm_13lib.php still calls some of the functions. 2012-10-15 19:25:01 +13:00
Dan Marsden 92be6fa471 MDL-35418 SCORM: coding guideline tidy - removes a few unused vars as well. 2012-10-15 19:25:01 +13:00
Mayank Gupa 41e205cd8e MDL-35418 SCORM: Improve SCORM 2004 support
GSOC project to improve SCORM 2004 support, includes MDL-32835 rewrite scorm_get_toc
2012-10-15 19:25:01 +13:00
Aparup Banerjee af6b7edaee Merge branch 'MDL-30845-master' of git://github.com/ankitagarwal/moodle 2012-10-15 14:21:11 +08:00
Marina Glancy 7f4550529a MDL-35895 Correctly build return to course link in book module 2012-10-15 14:17:36 +08:00
Marina Glancy a49e2ea7e6 MDL-35769 Course formats: Added function format_base::default_blocks() to replace format config.php 2012-10-15 14:14:33 +08:00
Marina Glancy b46be6adf4 MDL-35339 Better cache reset for get_fast_modinfo(), allow exec get_fast_modinfo($courseid) 2012-10-15 14:08:15 +08:00
Marina Glancy 38b19bbca1 MDL-35339 call rebuild_course_cache() always (and only) after changing course modules or sections 2012-10-15 14:08:14 +08:00
Marina Glancy 384c3510a9 MDL-35339 Course functions unit tests 2012-10-15 14:08:14 +08:00
Marina Glancy 4ede27b253 MDL-35339 deprecate get_course_section() replace with course_create_sections_if_missing()
By passing course object instead of course id we ensure proper cache reset"
2012-10-15 14:08:14 +08:00
Marina Glancy 9796014660 MDL-35339 added deprecated information in upgrade.txt 2012-10-15 14:08:14 +08:00
Marina Glancy eda43c7d10 MDL-35339 Use get_fast_modinfo() in course sections display functions
- Avoid using field course_sections.sequence for retrieving the modules list, use functionality from
get_fast_modinfo() instead;
- In the following functions/methods mark arguments $mod, $modnames, $modnamesused and $sections as
  not used because they can be taken any time from get_fast_modinfo():
  - function print_section()
  - protected function format_section_renderer_base::section_summary()
  - private function format_section_renderer_base::section_activity_summary
  - public function format_section_renderer_base::print_single_section_page
  - public function format_section_renderer_base::print_multiple_section_page
2012-10-15 14:08:13 +08:00
Marina Glancy d57aa283f7 MDL-35339 Deprecate get_all_mods() add get_module_types_names()
- added function get_module_types_names() returning the list of localised strings used for module names;
- added function cm_info::get_used_module_names();
- added magic properties cm_info:: and cm_info:: returning human readable module name;
- replaced usage of function get_all_mods() with get_fast_modinfo() and get_module_types_names();
- function print_section_add_menus() may now retrieve the modules names list itself;
- deprecated function get_all_mods()
2012-10-15 14:08:13 +08:00
Marina Glancy 722e6ba947 MDL-35339 Deprecate add_mod_to_section(), create new function course_add_cm_to_section()
Function add_mod_to_section() has very confusing arguments when object  looks like record from
table course_modules but field ->section refers to relative section number (course_sections.section).
In table course_modules the field section refers to course_sections.id.
Also add_mod_to_section() does not update table course_modules and does not call rebuild_course_cache()
which developer can forget to do afterwards.

- Added function course_add_cm_to_section()
- In the core code add_mod_to_section() is replaced with course_add_cm_to_section()
- Function add_mod_to_section() is deprecated
2012-10-15 14:08:13 +08:00
Marina Glancy 99e9f9a69d MDL-35339 deprecate function get_all_sections() 2012-10-15 14:08:13 +08:00
Marina Glancy 71a56e08c8 MDL-35339 avoid using get_all_sections(), get_all_mods() and field section.sequence directly 2012-10-15 14:08:13 +08:00
Ankit Agarwal 76b4a3d118 MDL-30845 formslib: Removing persistant true as its not needed anymore 2012-10-15 14:01:47 +08:00
Ankit Agarwal 83e9b8f9de MDL-30845 formslib: Freeze should always be with persistantfreeze set to false since Frozen text fields are now rendered as input fields 2012-10-15 14:01:46 +08:00
Ankit Agarwal 3ec55b9e0a MDL-30845 accessibility: changing the way input fields are rendered when they are not-editable 2012-10-15 14:01:46 +08:00
Dan Poltawski 6bea7da1ab Merge branch 'wip-MDL-35661-master' of git://github.com/marinaglancy/moodle 2012-10-15 13:31:10 +08:00
Dan Poltawski ecfe814e0f on-demand release 2.4dev 2012-10-15 13:24:09 +08:00
Sam Hemelryk d4797177b5 MDL-36047 cache: Fixed up issues with PHP 5.3.2 and 5.3.7 2012-10-15 12:35:23 +08:00
Ankit Agarwal 777417d171 MDL-35889 blocks: Adding a legend to the fieldset 2012-10-15 11:22:45 +08:00
Frederic Massart 8136753abf MDL-35892 repository: prepare_listing recursively prepares the data 2012-10-15 09:46:04 +08:00
Frederic Massart 7dab27b313 MDL-35664 filepicker: Filepicker knows about the current path and uses it 2012-10-15 09:46:03 +08:00
Frederic Massart 15396bba9b MDL-35171 Forms: Date selector always gets UTF-8 strings 2012-10-15 09:46:02 +08:00
Frederic Massart 4c897a815c MDL-32294 course: Add resource/activity dropdown have labels 2012-10-15 09:46:02 +08:00
AMOS bot 6f7a109f21 Automatically generated installer lang files 2012-10-15 00:34:55 +00:00
Eloy Lafuente (stronk7) 61bfc2c13b weekly release 2.4dev 2012-10-15 00:21:38 +02:00
Eloy Lafuente (stronk7) 535c3e874f Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-10-15 00:07:26 +02:00
Eloy Lafuente (stronk7) 990853afbe Merge branch 'wip-MDL-25290-m24-compact' of git://github.com/samhemelryk/moodle 2012-10-14 23:32:40 +02:00
Petr Škoda f763b33dba MDL-36031 add unit tests for expiry notifications of manual enrolments 2012-10-13 21:21:53 +02:00
Petr Škoda 4c9e03f0ac MDL-36031 implement message redirection for unit testing 2012-10-13 20:00:54 +02:00
Petr Škoda e0db105bab MDL-35917 fix cohort phpdocs
Credit goes to Brian Kremer, thanks!
2012-10-13 17:54:30 +02:00
Petr Škoda e71c516065 MDL-35469 test for the new Gecko user agent handling 2012-10-13 09:59:28 +02:00
Petr Škoda 5afe9a6226 MDL-35469 fix Gecko based browser checks
The problem is that latest firefox versions stopped using dates because they lost the meaning over the time.
2012-10-13 09:59:28 +02:00
Petr Škoda fe67134eaa MDL-35854 fix username generator
This eliminates infinite loop and also fixes potentially invalid email derived from usernames created from unicode first/last name.
2012-10-13 09:57:35 +02:00
Petr Škoda 550790153a MDL-35904 send notifications from main admin and improve coding style 2012-10-13 09:52:45 +02:00
Petr Škoda 3ed5751685 MDL-35904 improve caching in get_admin() and fix order of records from get_admins() 2012-10-13 09:52:39 +02:00
Petr Škoda 83828a7725 MDL-35955 use built in spell checker if tinymce spelling plugin disabled 2012-10-13 09:49:58 +02:00
Tim Hunt 1c76fc96d1 MDL-35964 blocks: prevent undeletable blocks being deleted!
This commit simplifies the logic, so that $CFG->undeletableblocks
applies to all blocks, not just ones on certain page types in the
system context.

It also makes the setting apply to adding blocks, so you cannot
accidentally add a block that you cannot delete.
2012-10-12 20:36:02 +01:00
Andrew Robert Nicols a0bef1fb08 MDL-34354 Set default width for all chooser dialogues 2012-10-12 10:21:28 +01:00
Damyon Wiese 26af81027f MDL-35726: Use a different form identifier for each form when using "Save and next"
This prevents a bug where the next student feedback will default to the values that
were on the last submitted form. This is a similar case to having multiple instances
of the same form on the same page - each one needs a unique identifier to distinguish
between them. In this case I include the $rownum which changes as you go to each student
in the list.
2012-10-12 12:03:40 +08:00
Damyon Wiese 1defeabf2c MDL-35710: Minor comment formatting fixes 2012-10-12 08:45:15 +08:00
Ruslan Kabalin c14685e80f MDL-35710 mod_assign Add submission_editable paramenter to event object
This will allow to keep assessable_submitted event object structure consistent
throughout the system, while particular modules could define own parameters
within params variable.

This module defines submission_editable parameter to reflect if user can edit
submission before assessment has been done.
2012-10-12 08:40:42 +08:00
Ruslan Kabalin f04523f07e MDL-35710 mode_assign Make submission event trigger name more precise 2012-10-12 08:40:42 +08:00
Jonathan Harker f335bebd83 MDL-36015 lib/bennu: use static functions correctly. 2012-10-12 13:31:47 +13:00
Eloy Lafuente (stronk7) 2105f57590 Merge branch 'MDL-35858-master' of git://github.com/FMCorz/moodle 2012-10-12 02:15:34 +02:00
Rossiani Wijaya 2628edb110 MDL-33815 Online Users block: Add query condition to filter out deleted users and lastaccess date greater than now 2012-10-11 16:02:16 +08:00
Ankit Agarwal 89eee2f36d MDL-28965 administration: Updating description string for the setting navshowallcourses 2012-10-11 14:22:34 +08:00
Ankit Agarwal 0f357885b2 MDL-34274 book: adding restore log rules for the new actions 2012-10-11 13:32:00 +08:00
Ankit Agarwal d3bf90ae04 MDL-34274 book: Adding ability to log chapter updates 2012-10-11 11:46:15 +08:00
Ankit Agarwal 131688cf94 MDL-34274 book: Adding ability to log chapter view and chapter print 2012-10-11 11:46:15 +08:00
Adrian Greeve c0e98e83c8 MDL-25275 - mod/data - Added a check box to eliminate date searches if desired. 2012-10-11 11:27:26 +08:00
Ankit Agarwal b512b9dee2 MDL-31010 comments: setup_course should update if passed courseid is different from the cached one 2012-10-11 10:55:37 +08:00
Eloy Lafuente (stronk7) 28990bbef4 Merge branch 'MDL-35715-master' of git://git.luns.net.uk/moodle 2012-10-11 01:48:53 +02:00
Andrew Robert Nicols e4a8f00c03 MDL-35959 Correct footer for M.core.dialogue 2012-10-10 11:01:52 +01:00
Eloy Lafuente (stronk7) 566682e8e5 Merge branch 'w41_MDL-28980_m24_expirywarning' of git://github.com/skodak/moodle 2012-10-10 11:22:22 +02:00
Petr Škoda 9f4a3c73cd MDL-28980 fix notification defaults to use new expirynotify combo logic 2012-10-10 11:19:10 +02:00
Eloy Lafuente (stronk7) 05c301a109 Merge branch 'w41_MDL-35691_m24_intsizes' of git://github.com/skodak/moodle 2012-10-10 10:58:22 +02:00
Petr Škoda 633f324896 MDL-35691 fix bogus mysql integer size detection 2012-10-10 10:33:18 +02:00
Eloy Lafuente (stronk7) f6bfcaf6b3 Merge branch 'master_MDL-34848' of git://github.com/danmarsden/moodle 2012-10-10 09:57:00 +02:00
Eloy Lafuente (stronk7) be205a847a Merge branch 'w41_MDL-28980_m24_expirywarning' of git://github.com/skodak/moodle 2012-10-10 09:50:25 +02:00
Petr Škoda da6cf13f00 MDL-28980 use correct instance when informing enroller 2012-10-10 09:45:16 +02:00
Petr Škoda 493057fd27 MDL-28980 fix repeated enroller expiry notification 2012-10-10 09:41:30 +02:00
Dan Marsden 828b6925c0 MDL-34848 SCORM: rewrite over complicated scorm_print_overview to use a single loop and make a single check for attemptstatus 2012-10-10 20:38:06 +13:00
Marina Glancy 43aadf0401 MDL-33857 Increase performance of queries for Server files repository (small improvements) 2012-10-10 15:21:27 +08:00
Marina Glancy b8de262139 MDL-33857 Increase performance of queries for Server files repository
- file_info class now has new methods get_non_empty_children and count_non_empty_children; added default implementation;
- all core classes extending file_info have their implementation of those methods;
- class repository_local_file used for caching get_children() results is removed;
- class repository_local rewritten to use new methods from file_info;
- added caching of retrieved modules in file_browser::get_file_info_context_module() - this query is slow and executed multiple times on big servers
2012-10-10 15:21:26 +08:00
Sam Hemelryk c2e899a444 MDL-22955 output: Forced SVG use in unit tests for pix to fix unit test fails 2012-10-10 14:14:50 +08:00
Aparup Banerjee 364ca5d216 Merge branch 'MDL-35231_master' of git://github.com/lazydaisy/moodle 2012-10-10 13:01:32 +08:00
Aparup Banerjee e5dba28cca Merge branch 'w41_MDL-35839_m24_enroldeletecleanup' of git://github.com/skodak/moodle 2012-10-10 10:29:33 +08:00
AMOS bot a43b1dae7c Automatically generated installer lang files 2012-10-10 00:34:18 +00:00
Eloy Lafuente (stronk7) dbaf9d448d Merge branch 'wip-MDL-22955-m24' of git://github.com/samhemelryk/moodle 2012-10-10 00:35:11 +02:00
Eloy Lafuente (stronk7) 49b1c61e5e Merge branch 'w41_MDL-28980_m24_expirywarning' of git://github.com/skodak/moodle 2012-10-10 00:22:11 +02:00
Simon Coggins 98ce522494 MDL-35581 lib: Help popups misaligned for right-to-left languages 2012-10-10 08:54:50 +13:00
Mary Evans e384711de7 MDL-35571 theme_magazine: RTL fixes - WIKI title headings, ajax frontpage category/course chooser, right align logo, left align course name, left align login & user info. 2012-10-09 12:30:30 +01:00
Eloy Lafuente (stronk7) 2beba29760 MDL-35898 test reset: tidyup comments (forgot to amend previous commit, grrr). 2012-10-09 11:56:42 +02:00
Eloy Lafuente (stronk7) 02c4953ea5 Merge branch 'w41_MDL-35898_m24_coursereset' of git://github.com/skodak/moodle 2012-10-09 11:54:15 +02:00
Aparup Banerjee d022f63202 MDL-35587 fixed up whitespaces 2012-10-09 16:35:32 +08:00
Aparup Banerjee 832e5f5957 Merge branch 'MDL-35587' of git://github.com/rlorenzo/moodle 2012-10-09 16:27:28 +08:00
Petr Škoda 70cae08406 MDL-28980 improve expiry notification inline docs 2012-10-09 10:03:59 +02:00
Petr Škoda 13d5c93872 MDL-35898 include static course caches in test resets 2012-10-09 09:43:08 +02:00
Aparup Banerjee cbc15c76ea Merge branch 'MDL-34819-master' of git://github.com/StudiUM/moodle 2012-10-09 15:40:20 +08:00
Rajesh Taneja 6f5bc0584e MDL-35787 Mnet: If student role is not defined then throw error 2012-10-09 15:30:42 +08:00
Rajesh Taneja 93288f22a9 MDL-35787 Mnet: fixed php strict standards warnings 2012-10-09 14:48:53 +08:00
Aparup Banerjee 7b1c902acc Merge branch 'wip-MDL-30754-m24' of git://github.com/samhemelryk/moodle 2012-10-09 14:32:13 +08:00
Aparup Banerjee 42239bd24c Merge branch 'WIP-MDL-35724-master_quiz' of git://github.com/nadavkav/moodle 2012-10-09 14:05:04 +08:00
Adrian Greeve f417479e3d MDL-35850 - Lib - csv files are now trimmed for white space and new lines at the end of the file. 2012-10-09 13:16:26 +08:00
Aparup Banerjee 84c04ff295 Merge branch 'MDL-35776' of git://github.com/timhunt/moodle 2012-10-09 11:53:12 +08:00
Aparup Banerjee 97512b094d Merge branch 'MDL-35802' of git://github.com/timhunt/moodle 2012-10-09 10:55:26 +08:00
Frederic Massart 588d1b595a MDL-35858 question: Fixed display of feedback in cloze questions 2012-10-09 10:28:21 +08:00
Aparup Banerjee 99baba4079 Merge branch 'w41_MDL-35795_m24_hebrewunzip' of git://github.com/skodak/moodle 2012-10-09 10:16:30 +08:00
Rajesh Taneja 19d69cc9a6 MDL-30691 Adminstration: Added css to break long word in filter table 2012-10-09 10:00:02 +08:00
Marina Glancy 2567584d5e MDL-35661 Loading of plugin settings for webservices plugins (plugininfo_webservice)
- webservicesettings must be only created if user has site:config capability, otherwise the nodes are added to non-existing parent
2012-10-09 09:58:00 +08:00
Marina Glancy c517dd68f7 MDL-35661 Loading of plugin settings for repositories plugins (plugininfo_repository) 2012-10-09 09:57:59 +08:00
Marina Glancy eb30df1e5f MDL-35661 Removed function plugininfo_local::get_settings_url() introduced in MDL-35442
Local plugins do not create settings node with particular name, there is no standard way to
return the settings url
2012-10-09 09:57:59 +08:00
Marina Glancy e8d169320b MDL-35661 Loading of plugin settings for message processors (plugininfo_message) 2012-10-09 09:57:59 +08:00
Marina Glancy d98305bdda MDL-35661 Loading of plugin settings for plagiarism plugins (plugininfo_plagiarism) 2012-10-09 09:57:58 +08:00
Marina Glancy 66f3684a38 MDL-35661 Loading of plugin settings for qtype plugins (plugininfo_qtype) 2012-10-09 09:57:58 +08:00
Marina Glancy 1de1a6665c MDL-35661 Loading of plugin settings for filters plugins (plugininfo_filter) 2012-10-09 09:57:58 +08:00
Marina Glancy 5827bf96ed MDL-35661 Loading of plugin settings for Tinymce plugins (plugininfo_tinymce) 2012-10-09 09:57:57 +08:00
Marina Glancy 087001ee42 MDL-35661 Loading of plugin settings for editor plugins (plugininfo_editor) 2012-10-09 09:57:57 +08:00
Marina Glancy 79c5c3fa96 MDL-35661 Loading of plugin settings for enrol plugins (plugininfo_enrol) 2012-10-09 09:57:57 +08:00
Marina Glancy cbe9f609f8 MDL-35661 Loading of plugin settings for auth plugins (plugininfo_auth) 2012-10-09 09:57:53 +08:00
Marina Glancy 870d42809a MDL-35661 Loading of plugin settings for blocks (plugininfo_block) 2012-10-09 09:56:46 +08:00
Marina Glancy fde6f79fae MDL-35661 Loading of plugin settings for modules (plugininfo_mod) 2012-10-09 09:56:42 +08:00
Marina Glancy 5cdb1893a9 MDL-35661 Add functionality to plugininfo_base to load settings and check the settings url
- added plugin_manager and plugininfo_base::load_settings(), get_settings_section_name()
2012-10-09 09:44:59 +08:00
AMOS bot 55b371573d Automatically generated installer lang files 2012-10-09 00:34:39 +00:00
Eloy Lafuente (stronk7) da6675d633 Merge branch 'wip-MDL-26348-m24' of git://github.com/samhemelryk/moodle 2012-10-09 01:38:01 +02:00
Eloy Lafuente (stronk7) b9570857db Merge branch 'MDL-35141-master' of git://github.com/sammarshallou/moodle 2012-10-09 00:46:49 +02:00
Eloy Lafuente (stronk7) 65095dad88 Merge branch 'wip-mdl-35397' of git://github.com/rajeshtaneja/moodle 2012-10-09 00:39:05 +02:00
Eloy Lafuente (stronk7) f503a3cd5c Merge branch 'MDL-35436' of https://github.com/raymondAntonio/moodle 2012-10-09 00:36:00 +02:00
Eloy Lafuente (stronk7) ec467d04d9 Merge branch 'w41_MDL-35645_m24_tinymcebuttons' of git://github.com/skodak/moodle 2012-10-09 00:31:08 +02:00
Eloy Lafuente (stronk7) 9f707d6c9b Merge branch 'MDL-35395' of git://github.com/timhunt/moodle 2012-10-09 00:25:53 +02:00
Eloy Lafuente (stronk7) 7447a1e55d Merge branch 'wip_mdl-31968_mdl-23011_master' of https://github.com/iarenaza/moodle 2012-10-09 00:13:06 +02:00
Eloy Lafuente (stronk7) f064d2ef69 Merge branch 'MDL-34794' of git://github.com/raymondAntonio/moodle 2012-10-09 00:06:50 +02:00
Eloy Lafuente (stronk7) 5d3559f7b5 Merge branch 'master_MDL-34848' of git://github.com/danmarsden/moodle 2012-10-09 00:02:41 +02:00
Eloy Lafuente (stronk7) 930ce3f3cd Merge branch 'wip-mdl-35047' of git://github.com/rajeshtaneja/moodle 2012-10-08 23:56:53 +02:00
Eloy Lafuente (stronk7) 3b950bab64 Merge branch 'w41_MDL-35382_m24_reordertest' of git://github.com/skodak/moodle 2012-10-08 23:54:36 +02:00
Eloy Lafuente (stronk7) f374702e75 Merge branch 'w41_MDL-35691_m24_intsizes' of git://github.com/skodak/moodle 2012-10-08 23:51:26 +02:00
Eloy Lafuente (stronk7) 0b85584480 Merge branch 'MDL-35519_book_cancel' of git://github.com/andyjdavis/moodle 2012-10-08 23:07:25 +02:00
Eloy Lafuente (stronk7) 69d2746dd2 Revert "MDL-34894 course ws unit tests: fix windows problem."
This reverts commit 954c272e54.

With MDL-35714, each test gets gc_collect_cycles() called, so
no need to call it "manually".
2012-10-08 22:57:50 +02:00
Eloy Lafuente (stronk7) 311eb89695 Merge branch 'w41_MDL-35714_m24_testgc' of git://github.com/skodak/moodle 2012-10-08 22:51:45 +02:00
Petr Škoda 129e6d36a4 MDL-28980 add basic expiry notification support to manual enrolments
Thanks Helen Foster for the lang string improvements.
2012-10-08 15:15:51 +02:00
Nadav Kavalerchik e0ce765323 MDL-35724 - Move Question Marks block to the left (Question Bank page),in RTL mode 2012-10-08 11:35:10 +02:00
Nadav Kavalerchik fd901cf0e2 MDL-35724 - Right align "Question Type" label in Quiz Editing page, when in RTL mode 2012-10-08 11:35:09 +02:00
Aparup Banerjee db739bf096 Merge branch 'wip-MDL-35694' of git://github.com/jennymgray/moodle 2012-10-08 17:24:53 +08:00
Aparup Banerjee 1c5f03fd4a Merge branch 'WIP-MDL-35723-master_quiz' of git://github.com/nadavkav/moodle 2012-10-08 17:15:41 +08:00
Aparup Banerjee e1aa59b9e4 Merge branch 'w41_MDL-35739_m24_cliinstall' of git://github.com/skodak/moodle 2012-10-08 17:06:06 +08:00
Aparup Banerjee 30ee1d93be Merge branch 'w41_MDL-35814_m24_delinstance' of git://github.com/skodak/moodle 2012-10-08 16:42:03 +08:00
Petr Škoda 91652c2429 MDL-35814 improve enrol delete instance strings
Credit goes to Helen Foster, thanks!
2012-10-08 10:30:07 +02:00
Aparup Banerjee 90dd427cf7 Merge branch 'w41_MDL-35695_m24_authdb' of git://github.com/skodak/moodle 2012-10-08 15:59:39 +08:00
Aparup Banerjee d26a3d2b6f Merge branch 'MDL-35728' of git://github.com/netspotau/moodle-mod_assign 2012-10-08 15:23:20 +08:00
Aparup Banerjee af312fdb12 Merge branch 'wip-mdl-35784' of git://github.com/rajeshtaneja/moodle 2012-10-08 15:12:54 +08:00
Aparup Banerjee dbce42a7c2 Merge branch 'w41_MDL-35814_m24_delinstance' of git://github.com/skodak/moodle 2012-10-08 14:59:07 +08:00
Aparup Banerjee 9f8ffac3b8 Merge branch 'wip-MDL-34448-master' of git://github.com/abgreeve/moodle 2012-10-08 14:20:04 +08:00
Tomasz Muras c7ece2b1ef MDL-32092 Remove dead code from profile_field_textarea 2012-10-08 13:53:40 +08:00
Adrian Greeve c0a059260f MDL-35265 - blog - Update code for removing orphaned blog association data. 2012-10-08 10:07:47 +08:00
Sam Hemelryk dc67f522cf Merge branch 'MDL-35634-master' of git://github.com/FMCorz/moodle 2012-10-08 11:36:57 +13:00
Sam Hemelryk 382d11a43c Merge branch 'MDL-35288_dndupload_folder_warning' of git://github.com/davosmith/moodle 2012-10-08 11:18:54 +13:00
Sam Hemelryk 68b9d1f408 Merge branch 'MDL-35211_master' of git://github.com/kordan/moodle 2012-10-08 11:02:44 +13:00
Sam Hemelryk 2a00249df5 Merge branch 'MDL-35763' of git://github.com/netspotau/moodle-mod_assign 2012-10-08 10:44:10 +13:00
Sam Hemelryk da2ebe0474 Merge branch 'MDL-35764' of git://github.com/netspotau/moodle-mod_assign 2012-10-08 10:40:35 +13:00
Sam Hemelryk e8edb00c73 Merge branch 'MDL-34992' of git://github.com/nebgor/moodle 2012-10-08 10:33:48 +13:00
Sam Hemelryk 9201c33bb7 Merge branch 'MDL-33646-master' of git://github.com/ankitagarwal/moodle 2012-10-08 10:22:18 +13:00
Sam Hemelryk 2a2d855e14 Merge branch 'MDL-35667_extra_credit_loop' of git://github.com/andyjdavis/moodle 2012-10-08 10:15:49 +13:00
Sam Hemelryk 4c5f42b400 Merge branch 'MDL-35730' of https://github.com/aolley/moodle 2012-10-08 10:06:30 +13:00
Sam Hemelryk 267ebe02b3 MDL-25290 cache: Fixed issues with references when getting, and added unit tests to cover 2012-10-08 09:53:53 +13:00
Sam Hemelryk 26ce56fddf MDL-25290 cache: renaming to better separate store plugins from lock plugins 2012-10-08 09:53:52 +13:00
Sam Hemelryk 42f2c59eb8 MDL-25290 cache: Added unit tests for admin and fixed up identified issues 2012-10-08 09:53:52 +13:00
Sam Hemelryk fd59389ca6 MDL-25290 cache: Plugins are now standard and strings tidied 2012-10-08 09:53:52 +13:00
Sam Hemelryk 573a6c8eb3 MDL-25290 cache: Made handling of cache locks when writing config more robust 2012-10-08 09:53:52 +13:00
Sam Hemelryk 8dbfbd71c9 MDL-25290 cache: Fixed up handling of objects by cache loader 2012-10-08 09:53:52 +13:00
Sam Hemelryk 42f5d1648d MDL-25290 cache: Fixed up memcache server settings and a couple of minor things 2012-10-08 09:53:52 +13:00
Sam Hemelryk 170f821b9d MDL-25290 cache: Fixed things up per coding style 2012-10-08 09:53:52 +13:00
Sam Hemelryk bb250f02e6 MDL-25290 cache: Added optional CFG setting to control location of cache config file 2012-10-08 09:53:52 +13:00
Sam Hemelryk 167ad91e86 MDL-25290 cache: Added UI to view the cache lock setups and tidied up a couple of things 2012-10-08 09:53:51 +13:00
Sam Hemelryk 34c84c723a MDL-25290 cache: Added cache locking plugin and converted locking implementations to that 2012-10-08 09:53:51 +13:00
Sam Hemelryk 6fec18203b MDL-25290 cache: Renamed plugin from cache => cachestore 2012-10-08 09:53:51 +13:00
Sam Hemelryk f23fbfd849 MDL-25290 cache: Fixed up redirect loop with admin settings for cache stores 2012-10-08 09:53:51 +13:00
Sam Hemelryk 52642d0d24 MDL-25290 cache: Fixed up issue with unit test blowing away cachedir 2012-10-08 09:53:51 +13:00
Sam Hemelryk e3b77f9f57 MDL-25290 cache_memcache: Added Memcache cache store 2012-10-08 09:53:51 +13:00
Sam Hemelryk 47d89ccfa5 MDL-25290 cache_memcached: Added Memcached cache store 2012-10-08 09:53:51 +13:00
Sam Hemelryk 2e638e3d35 MDL-25290 cache_mongodb: Added Mongo DB cache store 2012-10-08 09:53:51 +13:00
Sam Hemelryk 5f2836e6cc MDL-25290 cache_static: Added default static cache store 2012-10-08 09:53:50 +13:00
Sam Hemelryk d7f1f57391 MDL-25290 cache_session: Added default session cache store 2012-10-08 09:53:50 +13:00
Sam Hemelryk 62704f33d4 MDL-25290 cache_file: Added default file cache store 2012-10-08 09:53:50 +13:00
Sam Hemelryk d6a1f63bdd MDL-25290 cache: Cache API integration with core 2012-10-08 09:53:50 +13:00
Sam Hemelryk 8139ad13a5 MDL-25290 cache: Implemented Cache API aka MUC 2012-10-08 09:53:50 +13:00
Sam Hemelryk 32db37bb30 MDL-32326 dock: Changed method used to display vertical titles from SVG to CSS3 2012-10-08 09:43:59 +13:00
Didier Raboud 9c93dc63ac MDL-30754: Make sure to always display breadcrumbs when browsing categories. 2012-10-08 09:37:46 +13:00
Sam Hemelryk 6a3b5e896d MDL-26348 tool_customlang: Fixed up SQL causing issues in Oracle 2012-10-08 09:22:34 +13:00
Sam Hemelryk 27c1c305b1 MDL-22955 output: Fixed bug by ensuring we generate an SVG candidate even for regular format requests 2012-10-08 09:16:14 +13:00
Sam Hemelryk f7d6a556cf MDL-22955 output: Added block to ensure that SVG is not used within CSS 2012-10-08 09:16:14 +13:00
Sam Hemelryk 436dbeecda MDL-22955 theme: Added ability to use SVG format for icons 2012-10-08 09:16:14 +13:00
Nadav Kavalerchik 7d1bc86e0b MDL-35583 - Forum's discussion table header right align fix 2012-10-07 22:12:14 +02:00
Nadav Kavalerchik 9461033d46 MDL-35583 - blocks header and footer right align fixes, profile picture right align 2012-10-07 22:12:14 +02:00
Nadav Kavalerchik 46483c475b MDL-35563 - Description field in all system setting pages should have "right margin" set properly, in RTL mode 2012-10-07 22:04:23 +02:00
Petr Škoda ba87b41b53 MDL-35695 do not connect to ext database when not necessary during login 2012-10-07 21:36:23 +02:00
Petr Škoda 960b65290a MDL-35739 show langs on separate lines in CLI installer
This fixes column width issues and compatibility with RTL languages.
2012-10-07 21:03:44 +02:00
Petr Škoda 194342144b MDL-35814 improve confirmation when deleting enrol instances 2012-10-07 20:01:14 +02:00
Petr Škoda 125e96f370 MDL-35839 add tests for enrol instance deleting 2012-10-06 19:37:05 +02:00
Petr Škoda a1cedcc987 MDL-35839 fix invalid enrol instance delete cleanup 2012-10-06 19:22:07 +02:00
Petr Skoda 3a222db215 MDL-35382 fix random course test failures 2012-10-06 13:27:04 +02:00
Petr Škoda f4b980062a MDL-35645 make the emoticon and tex filter dependency optional in our TinyMCE plugins 2012-10-06 10:10:51 +02:00
Petr Škoda 2b7fa4c175 MDL-35691 use bigint checker for all integers 2012-10-06 10:07:49 +02:00
Petr Škoda 47f51b6989 MDL-35691 fix int(20) db schema typos 2012-10-06 10:07:48 +02:00
Petr Škoda bc5a5527e5 MDL-35691 add unit tests for the fixed integer column length info 2012-10-06 10:07:48 +02:00
Petr Škoda 3c17c85ae6 MDL-35691 fix max length calculation in pg, mysql and our bigint checker 2012-10-06 10:07:48 +02:00
Petr Škoda d03d5113f9 MDL-35714 run gc before test reset 2012-10-06 10:03:28 +02:00
Petr Škoda 177ffd37ff MDL-35795 add fallback for DOS/Windows non-utf8 zip archive unzipping 2012-10-06 10:02:11 +02:00
Mary Evans 06bbc5f3db MDL-35231 theme_serenity: fixed misalignment and styling of mod/assignment/action/edit by updating custommenu css in theme/serenity/style/core.css 2012-10-06 01:44:35 +01:00
AMOS bot 649f351896 Automatically generated installer lang files 2012-10-06 00:33:59 +00:00
Tim Hunt 6b65e50bcb MDL-35395 formslib: a method to disable formchangechecker for a form. 2012-10-05 17:44:21 +01:00
Jean-Philippe Gaudreau d3ea132783 MDL-32148 Backup: Improved check for last backup successful or not 2012-10-05 10:23:42 -04:00
Frederic Massart 1c1ae7a7a6 MDL-32148 Backup: Simplified and improved submitted patch 2012-10-05 10:10:36 -04:00
Jean-Philippe Gaudreau 914442ae29 MDL-32148 Backup: Adding config settings for skipping courses in automated backups 2012-10-05 10:10:36 -04:00
Eloy Lafuente (stronk7) ccd90e765e weekly release 2.4dev 2012-10-05 13:40:36 +02:00
Eloy Lafuente (stronk7) 76fd95e687 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-10-05 13:32:46 +02:00
Tim Hunt e059c033d9 MDL-35802 enrol other users: should use Show user identity setting.
As part of fixing this, I refactored some common code out of
get_potential_users and search_other_users. Previously, only one of
those bits of code had been updated.
2012-10-05 12:07:26 +01:00
Dan Poltawski f7e8f312ca Revert "MDL-33117 grade: added some smarts to the user report method inject_rowspans() to deal with activity conditional availability"
This reverts commit 69c8bcec70.
2012-10-05 16:21:14 +08:00
Jenny Gray e85a341292 MDL-35694 logs: extend course log report downloads with action url 2012-10-05 09:17:40 +01:00
Rossiani Wijaya 15cf7d66d0 MDL-21801 Lesson Module: Removing import power point functionality 2012-10-05 15:31:30 +08:00
Jason Fowler 52fc56a79d MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity -- Patch provided by Kanika Goyal 2012-10-05 11:44:47 +08:00
Aparup Banerjee 3df3c6773b MDL-34992 message : improved component sorting and some minor code clean up. 2012-10-05 10:58:28 +08:00
Eloy Lafuente (stronk7) 5e6f26bdbe MDL-34657 tests: amend tests to verify lower() is used 2012-10-05 02:46:49 +02:00
Adrian Greeve 76fb0443b6 MDL-34448 - mod/data - Fixing separate groups viewing all entries. 2012-10-05 08:11:11 +08:00
Eloy Lafuente (stronk7) b5d155a417 MDL-34657 gropus UI: delete unused var. 2012-10-04 23:49:12 +02:00
Eloy Lafuente (stronk7) 7ba4b17f00 Merge branch 'MDL-34657_fixup' of git://github.com/timhunt/moodle 2012-10-04 23:42:47 +02:00
Tim Hunt 965d167068 MDL-34657 stats / user sorting: fix SQL regression. 2012-10-04 11:47:39 +01:00
Tim Hunt e451c11616 MDL-34657 workshop / user sorting: fix SQL regression. 2012-10-04 11:47:04 +01:00
Tim Hunt 70f5ed370f MDL-34657 gropus UI: sort existing group memebers. 2012-10-04 11:45:56 +01:00
Tim Hunt d0577078fa MDL-34657 system admins: main admin mis-identified in the UI. 2012-10-04 11:44:50 +01:00
Tim Hunt c2004a7952 MDL-34657 user sort: exact match logic should be case-insensitive. 2012-10-04 11:43:33 +01:00
sam marshall b61924d482 MDL-34228 Completion: Add capability that controls if a user is shown in reports 2012-10-04 10:50:10 +01:00
Rajesh Taneja 2bb1d1fbb8 MDL-32218 Blocks: allowblockstodock is also checked for region dock status 2012-10-04 17:25:45 +08:00
Dan Poltawski e12a3e64ac Merge branch 'MDL-35767-master' of git://git.luns.net.uk/moodle 2012-10-04 16:57:40 +08:00
Rajesh Taneja 17bf85dee3 MDL-29689 Assignment 2.2: cleaned print_responsefiles function 2012-10-04 16:23:19 +08:00
Rajesh Taneja deba4dc328 MDL-29689 Assignment 2.2: A student can see feedback for assignments with no-grades 2012-10-04 16:23:18 +08:00
Rajesh Taneja 266bc2946b MDL-35784 Mnet: courseid should not be used for format text on my home page 2012-10-04 15:41:33 +08:00
Rajesh Taneja ecc8ce88c6 MDL-27309 Blocks: command node is taken from dockitem during restore 2012-10-04 15:17:42 +08:00
Ankit Agarwal 5219cc87ec MDL-33646 book: Adding a notice instead of error when there is no content in the book 2012-10-04 13:25:18 +08:00
Damyon Wiese 848ade1d18 MDL-35764: Change the language string on the assignment grading summary to say "Editing status" 2012-10-04 12:51:49 +08:00
AMOS bot 434d22b6fe Automatically generated installer lang files 2012-10-04 00:34:58 +00:00
Tim Hunt 13bd955e65 MDL-35776 user ajax: fix sort order in chrome.
It seems that Chrome orders fields of objects in order of array key.
Therefore we must stop using user.id in the PHP arrays, and instead
ensure that we use sequential numbers.

This commit fixes the enrol UI.
2012-10-03 19:06:17 +01:00
Tim Hunt c62488c22f MDL-35776 user ajax: fix sort order in chrome.
It seems that Chrome orders fields of objects in order of array key.
Therefore we must stop using user.id in the PHP arrays, and instead
ensure that we use sequential numbers.

This commit fixes the user selector.
2012-10-03 18:46:07 +01:00
Ruslan Kabalin 2596265b36 MDL-35767 Fix missing target event group check
Prevent interfering between items from different groups (and no groups)
2012-10-03 14:34:54 +01:00
Frederic Massart ddb16bdd38 MDL-35634 course: Restored alt attribute on module icons 2012-10-03 17:03:35 +08:00
Davo Smith 91813c1b4b MDL-35288 drag and drop upload - adjust error message text when attempting to upload a folder 2012-10-03 08:46:55 +01:00
Jean-Philippe Gaudreau 7f40888801 Fixing feedback's view when assignment is set to no grade. Also refactoring the use of method view_feedback for upload (single and advenced) assignments
Conflicts:

	mod/assignment/type/upload/assignment.class.php
	mod/assignment/type/uploadsingle/assignment.class.php
2012-10-03 14:41:32 +08:00
David Monllao d91750bc5a MDL-35187 groups Adding admin pagelayout to group members edition 2012-10-03 14:40:22 +08:00
Damyon Wiese 8e9efe602a MDL-35763: Add ignoredirty class to drop down lists in assignment grading options form. 2012-10-03 11:52:50 +08:00
Dan Poltawski fcdd35d0fc Merge branch 'MDL-35754-master' of git://github.com/FMCorz/moodle 2012-10-03 10:26:14 +08:00
Frederic Massart df435dda49 MDL-35754 libraries: openpopup() does not fail when window name is not set 2012-10-03 09:54:27 +08:00
Eloy Lafuente (stronk7) b478f2ec10 Merge branch 'MDL-35744' of git://github.com/timhunt/moodle 2012-10-03 00:40:10 +02:00
Sam Hemelryk 40b26758db Merge branch 'wip-MDL-33829-master' of https://github.com/andyjdavis/moodle 2012-10-03 10:07:37 +13:00
Sam Hemelryk a0251e5006 Merge branch 'MDL-35654_master' of git://github.com/lazydaisy/moodle 2012-10-03 09:53:05 +13:00
Eloy Lafuente (stronk7) db0ea4323d Merge branch 'MDL-35660' of git://github.com/netspotau/moodle-mod_assign 2012-10-02 22:02:23 +02:00
Eloy Lafuente (stronk7) c740703c18 Merge branch 'w40_MDL-31437_m24_cohortsync' of git://github.com/skodak/moodle
Conflicts:
	lib/upgrade.txt
2012-10-02 22:00:12 +02:00
Eloy Lafuente (stronk7) 60e5d95a31 Merge branch 'master_MDL-35227' of git://github.com/danmarsden/moodle 2012-10-02 21:39:07 +02:00
Eloy Lafuente (stronk7) 5a2c374326 Merge branch 'w40_MDL-35701_m24_enroldb' of git://github.com/skodak/moodle 2012-10-02 21:27:55 +02:00
Eloy Lafuente (stronk7) f7a506fb87 Merge branch 'master_MDL-35557' of git://github.com/danmarsden/moodle 2012-10-02 20:26:32 +02:00
Iñaki Arenaza 34b10e26c6 MDL-31968 Make NTLM REMOTE_USER format configurable by the admin
Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2012-10-02 16:56:10 +02:00
Tim Hunt b3c18b8621 MDL-35744 quiz: fix review options for Never submitted attempts 2012-10-02 15:51:45 +01:00
Eloy Lafuente (stronk7) b94ffc6d8c Merge branch 'master_MDL-35562' of git://github.com/danmarsden/moodle 2012-10-02 15:54:32 +02:00
Ruslan Kabalin 9d7525fb1a MDL-35715 course dragdrop Fix the ability to drag back to the empty section 2012-10-02 14:35:28 +01:00
Eloy Lafuente (stronk7) 2aeb0fbb60 Merge branch 'MDL-35673-master' of git://git.luns.net.uk/moodle 2012-10-02 09:55:20 +02:00
Dan Poltawski 001d5a034c Merge branch 'MDL-35687' of git://github.com/netspotau/moodle-mod_assign 2012-10-02 14:44:28 +08:00
Dan Poltawski 813a7724cf Merge branch 'MDL-35636' of git://github.com/mouneyrac/moodle 2012-10-02 14:40:23 +08:00
Dan Poltawski 497359f970 Merge branch 'MDL-33789_master' of git://github.com/kordan/moodle 2012-10-02 14:38:20 +08:00
Frederic Massart 81adabd244 MDL-28235 form: Removed close icon of help icon popups 2012-10-02 14:34:15 +08:00
Dan Poltawski c38e18ec37 Merge branch 'MDL-35684' of git://github.com/netspotau/moodle-mod_assign 2012-10-02 14:33:01 +08:00
Frederic Massart edb3b7b473 MDL-28235 form: Help button popup close accessibility improved
AMOS BEGIN
 CPY [close,editor],[close,form]
AMOS END
2012-10-02 14:32:17 +08:00
Dan Poltawski 1e12c7a4f2 Merge branch 'wip-MDL-35263-master' of git://github.com/marinaglancy/moodle 2012-10-02 14:20:07 +08:00
Rajesh Taneja e71696e012 MDL-35047 tool_xmldb: Added missing strings for xmldb 2012-10-02 14:19:09 +08:00
Marina Glancy d0c05602f5 MDL-35263 removed unit test test_format_display_course_content()
since the function global_navigation::format_display_course_content() is removed
2012-10-02 14:16:54 +08:00
Dan Poltawski ed27ce0163 Merge branch 'MDL-34570-master' of git://github.com/FMCorz/moodle 2012-10-02 13:56:48 +08:00
Dan Poltawski f14ecbfff8 Merge branch 'MDL-35187' of git://github.com/lazydaisy/moodle 2012-10-02 13:45:19 +08:00
Rajesh Taneja 956082f18d MDL-35397 Administration: changed link for 'many other contributors'
Previously 'many other contributors' was pointing to http://docs.moodle.org/dev/Credits
now, it will point to http://moodle.org/dev.
2012-10-02 13:41:13 +08:00
Adam Olley e3d9426ab5 enrol_manual: Set context correctly in manual enrolment user selector 2012-10-02 14:51:24 +09:30
Dan Poltawski 0d24043d66 Merge branch 'wip-MDL-35263-master' of git://github.com/marinaglancy/moodle 2012-10-02 12:49:26 +08:00
Damyon Wiese 21f77397a2 MDL-35728: Fix download all submissions for a team assignment when there are no groups 2012-10-02 12:39:23 +08:00
Marina Glancy 76ab3fa18f MDL-35263 corrected coding style 2012-10-02 12:23:43 +08:00
Dan Poltawski dcc4c7199a Merge branch 'MDL-35683' of git://github.com/netspotau/moodle-mod_assign 2012-10-02 12:19:38 +08:00
Dan Poltawski 76811d0bb8 Merge branch 'MDL-35370' of git://github.com/timhunt/moodle 2012-10-02 12:07:41 +08:00
Dan Poltawski c07189ebe8 Merge branch 'MDL-35693' of git://github.com/timhunt/moodle 2012-10-02 11:47:50 +08:00
Dan Poltawski afbdebee62 Merge branch 'MDL-35698' of git://github.com/timhunt/moodle 2012-10-02 11:40:16 +08:00
Dan Poltawski 49ab2d5fb2 Merge branch 'WIP-MDL-35708-master_quiz' of git://github.com/nadavkav/moodle 2012-10-02 11:36:49 +08:00
Dan Poltawski 61badb5989 Merge branch 'MDL-35437' of https://github.com/raymondAntonio/moodle 2012-10-02 11:35:59 +08:00
Dan Poltawski f7b3ac9427 Merge branch 'w40_MDL-35619_m24_otheravatars' of git://github.com/skodak/moodle 2012-10-02 10:41:47 +08:00
Dan Poltawski 624feda48d Merge branch 'MDL-35680' of git://github.com/timhunt/moodle 2012-10-02 09:52:12 +08:00
Dan Poltawski a354add4c8 Merge branch 'MDL-33933-master' of https://github.com/mackensen/moodle 2012-10-02 09:43:38 +08:00
Dan Poltawski 229f543881 Merge branch 'MDL-33117_grade_display' of git://github.com/andyjdavis/moodle 2012-10-02 09:32:58 +08:00
Eloy Lafuente (stronk7) 1ef501ca03 MDL-35669 gravatar amend and complete gravatar tests. 2012-10-02 01:33:59 +02:00
Eloy Lafuente (stronk7) b96a15cc11 MDL-35669 gravatar Fix secure image urls. 2012-10-02 01:19:33 +02:00
Sam Hemelryk ee3502e793 Merge branch 'master_MDL-35472' of git://github.com/totara/moodle 2012-10-02 11:10:39 +13:00
Sam Hemelryk e737ad93a1 Merge branch 'MDL-34257' of git://github.com/timhunt/moodle 2012-10-02 10:46:01 +13:00
Eloy Lafuente (stronk7) 1203b6ea05 Merge branch 'MDL-35669-master-2' of git://github.com/micaherne/moodle 2012-10-01 23:44:07 +02:00
Sam Hemelryk cf45206006 Merge branch 'MDL-30885' of git://github.com/timhunt/moodle 2012-10-02 10:31:13 +13:00
Eloy Lafuente (stronk7) 8614cd72f0 Merge branch 'MDL-34657' of git://github.com/timhunt/moodle 2012-10-01 23:22:39 +02:00
Sam Hemelryk 6beec9ce60 Merge branch 'MDL-35547' of git://github.com/enovation/moodle 2012-10-02 10:15:41 +13:00
Nadav Kavalerchik 9025955df8 MDL-35723 - Align to center the "Quiz Feedback" label,when in RTL mode 2012-10-01 22:46:50 +02:00
Michael Aherne f127b1a538 MDL-35669 gravatar Provide default image URL to Gravatar 2012-10-01 14:17:11 +01:00
Eloy Lafuente (stronk7) 5522e44658 Merge branch 'MDL-34931-master' of git://github.com/FMCorz/moodle 2012-10-01 13:32:44 +02:00
Eloy Lafuente (stronk7) a5fc5b6ceb Merge branch 'MDL-35637_master' of git://github.com/markn86/moodle 2012-10-01 13:19:01 +02:00
Eloy Lafuente (stronk7) a499689c8b Merge branch 'MDL-35662' of git://github.com/netspotau/moodle-mod_assign 2012-10-01 13:14:43 +02:00
Eloy Lafuente (stronk7) a88258ac9f Merge branch 'wip-MDL-34234-m24' of git://github.com/samhemelryk/moodle 2012-10-01 13:09:44 +02:00
Eloy Lafuente (stronk7) c3f06aacef Merge branch 'MDL-34971-wip' of git://github.com/mouneyrac/moodle 2012-10-01 12:48:48 +02:00
Eloy Lafuente (stronk7) b699278773 Merge branch 'MDL-35644' of git://github.com/mouneyrac/moodle 2012-10-01 12:45:51 +02:00
Eloy Lafuente (stronk7) 9a6f1154c2 Merge branch 'MDL-34894' of git://github.com/timhunt/moodle 2012-10-01 11:07:47 +02:00
Eloy Lafuente (stronk7) 5ab457bde0 Merge branch 'MDL-35688' of git://github.com/netspotau/moodle-mod_assign 2012-10-01 10:40:09 +02:00
Eloy Lafuente (stronk7) fc561b2089 Merge branch 'MDL-35620' of git://github.com/timhunt/moodle 2012-10-01 10:28:28 +02:00
Petr Škoda e66827464a MDL-35619 fix invalid avatars on other users page 2012-10-01 09:53:11 +02:00
Andrew Davis 97512dd36b MDL-35667 core_grade: added a new test for grade_category::apply_limit_rules() 2012-10-01 12:53:26 +08:00
Andrew Davis 5292948648 MDL-31782 core_grade: fixed a potential infinite loop 2012-10-01 11:32:06 +08:00
Andrew Davis 26e02d7586 MDL-34367 core_message: removed the call to $PAGE->set_popup_notification_allowed from message/lib.php 2012-10-01 11:00:48 +08:00
Andrew Davis daa1dd74d4 MDL-35519 mod_book: fixed the cancel import redirect URL 2012-10-01 10:05:22 +08:00
Sam Hemelryk 10654e32e2 MDL-34234 course: Fixed notice causing issues in JS when upgrade settings for 2.3+ not run 2012-10-01 09:58:09 +13:00
Tomasz Muras e80c64ab9d MDL-35547 Fetch more sub-categories with one SQL query. 2012-09-30 18:15:06 +02:00
Tomasz Muras 0f76ac4f2e MDL-35547 Detect loops in question categories. 2012-09-30 18:15:06 +02:00
Tomasz Muras e3810d112a MDL-35547 Detect question category pointing to itself as a parent. 2012-09-30 18:15:06 +02:00
Nadav Kavalerchik 993dde5107 MDL-35708 - Right align user's information in quiz attempt review page , when in RTL mode (theme/standard & base) 2012-09-30 16:46:19 +02:00
Petr Škoda d156ec9cea MDL-35701 bump up version and requirements of enrol_database
This should hopefully prevent attempts to blindly backport this to older stable branches.
2012-09-30 14:37:04 +02:00
Petr Škoda 7fa34d1066 MDL-35701 add enrol_database restore support 2012-09-30 14:36:57 +02:00
Petr Škoda d2f26cec9d MDL-35701 add parameter for sync of one course only 2012-09-30 14:36:50 +02:00
Petr Škoda f34518d956 MDL-35701 fix inline docs 2012-09-30 14:36:39 +02:00
Petr Škoda 9bb3a168cf MDL-35701 respect case of external column names in enrol_database
This fixes a regression which prevents referencing of uppercase columns in databases with case sensitive column names. Unfortunately users that relied on this incorrect behaviour may need to lowercase the column names in plugin settings.
2012-09-30 14:36:31 +02:00
Petr Škoda 13a2366cad MD-35701 implement enrol_database unit tests and fix minor issues
Includes fixes for minor problems discovered during testing:
* Removed invalid role->fullname sync option, there was never such fields in roles table and the name column is now usually empty.
* Empty category column now means use default category.
2012-09-30 14:36:23 +02:00
Petr Škoda d34770032c Merge branch 'master_MDL-35562' of git://github.com/danmarsden/moodle into w40_MDL-35701_m24_enroldb 2012-09-30 14:35:57 +02:00
Andrew Davis 2403ea411c MDL-33829 mod_glossary: added some smarts so glossary entries with an image in their description are classed as richhtml instead of plainhtml 2012-09-30 10:54:52 +08:00
Jason Fowler 06b53930ab MDL-33829 - Glossary - Adding Rich Portfolio Export support 2012-09-30 10:54:52 +08:00
Tim Hunt efe5a53ede MDL-35698 quiz cron: group overrides not computed correctly
Thanks to Matt Petro for finding the bug in this monster SQL statement.
2012-09-29 09:34:29 +01:00
AMOS bot 2eff3ce9a4 Automatically generated installer lang files 2012-09-29 00:34:15 +00:00
Petr Škoda 7881024ec4 MDL-31437 add group sync option to enrol_cohort
This patch includes following changes and new features:
* Group sync in enrol_cohort plugin.
* Option for editing of role in existing cohort sync instance.
* Group memberships are now restored after enrolments.
* New enrol method for restore of protected group membership.
* New component callback 'restore_group_member' for restore of general plugin group membership.
* New component callback 'restore_role_assignment' for restore of general plugin role assignments.
* Implemented group membership protection in enrolment UI.
* Other minor fixes and cleanup.

Notes:
* The YUI base enrolment page is not reimplemented yet - see MDL-35618.
2012-09-28 21:00:00 +02:00
Jean-Philippe Gaudreau 57fef333ce MDL-34819: CAS authentication : Fixing bug on if condition 2012-09-28 13:47:52 -04:00
Jean-Philippe Gaudreau 7d6974312f MDL-34819: CAS authentication : Alternative logout return URL 2012-09-28 13:47:52 -04:00
Tim Hunt 1c80e79ac6 MDL-35693 question engine: set id when saving a new question_attempt 2012-09-28 15:28:27 +01:00
Andrew Robert Nicols d6418e531d MDL-35673 Improve performance of formchangechecker event creation 2012-09-28 10:25:21 +01:00
Damyon Wiese 7c7bc2eef9 MDL-35688: Assignment upgrade tool fixes for 2.4 2012-09-28 15:24:54 +08:00
Damyon Wiese 70e8537870 MDL-35687: Remove unused function get_all_submissions in Assignment. 2012-09-28 14:44:51 +08:00
Raymond Wijaya d38dc52f39 MDL-34794: Add reset course feature in mod_assign (new assignment (2.3+)) 2012-09-28 14:33:33 +08:00
Marina Glancy ee7084e950 MDL-35263 Converting course formats to OOP
- added class format_base as the base for all course formats
- added class format_site for the pseudo-format 'site' used for displaying activities on the front page
- added class format_legacy that overrides format_base functions with calling old-style 'callback_xxx' functions
- replaced all usage of 'callback_xxx' functions with format_base methods
- made arguments of get_section_name(), get_course_url() more flexible
- deprecated function get_generic_section_name(), it's contents is moved to format_base
- global_navigation::format_display_course_content() is removed, plugins can supress the sections navigations using extend_course_navigation()
2012-09-28 13:42:27 +08:00
Andrew Davis 69c8bcec70 MDL-33117 grade: added some smarts to the user report method inject_rowspans() to deal with activity conditional availability 2012-09-28 12:06:44 +08:00
Frederic Massart b825e6c613 MDL-35171 Question: Export to HTML uses more of html_writer 2012-09-28 11:40:40 +08:00
Frederic Massart c3cdf1e4cb MDL-34570 Accessibility: Adding labels on text inputs and selects to questions 2012-09-28 11:40:40 +08:00
Rossiani Wijaya 83690170be MDL-34570 accessibility compliance for question: edit string label 2012-09-28 11:40:40 +08:00
Frederic Massart 5fee56d5c3 MDL-34931 core_grade: Fixed grades hidden when activity is hidden 2012-09-28 11:39:46 +08:00
Damyon Wiese 87683428a3 MDL-35684: Check student user id, not grader user id to see if the submission is open. 2012-09-28 11:09:38 +08:00
Damyon Wiese 6c71247961 MDL-35683: Re-adding row to the submission status table removed by MDL-34088. 2012-09-28 10:50:45 +08:00
Mary Evans 681fc3ed1b MDL-35654 theme_anomaly: Added custom menu renderer to aid RTL styling of menu 2012-09-28 02:18:48 +01:00
Dan Marsden c70590245d MDL-35562 enrol_database: enrolment_sync - don't halt sync on failed search for course. 2012-09-28 09:06:44 +12:00
Dan Marsden d7e8f95b74 MDL-35557 enrol/database: use distinct call when getting list of courses that should be added. 2012-09-28 09:05:28 +12:00
Dan Marsden 3270869aab MDL-35227 SCORM: set completion in correct location. 2012-09-28 09:02:30 +12:00
Itamar Tzadok c8ed28175e MDL-35655 Navigation - Generalized fetching method of navigation object and renderer in navigation block 2012-09-27 14:24:03 -04:00
Tim Hunt e783cc45ae MDL-35680 user selector: more usable when queries are slow.
The problem is to do when you pause a bit, so a search starts, and then
type a bit more before the search finishes. It was behaving like this:

1. Type a bit, then pause.
2. First search request sent.
3. Type a bit more, then pause.
4. Second search request sent.
5. First search request completes.
6. You try to select one result.
7. Second search request comples, overwriting what you are selecting.

This fix works by cancelling the first request before sending the
second.
2012-09-27 19:03:34 +01:00
Tim Hunt 954c272e54 MDL-34894 course ws unit tests: fix windows problem.
This fixes a weird windows-only failure, as explained in the tracker
issue.
2012-09-27 18:57:51 +01:00
Tim Hunt a957e97f2f MDL-34657 user sorting: minor niggles found while testing. 2012-09-27 17:44:38 +01:00
Tim Hunt de867fa36e MDL-34657 user selector: bug with "keep non-matching selected users" 2012-09-27 16:41:50 +01:00
Tim Hunt 6dde374acf MDL-34657 admin user selector: options were lost for ajax searches.
The subclass constructor must pass through the pass through any name or
options.
2012-09-27 16:32:54 +01:00
Tim Hunt aebbfb7bf9 MDL-30885 quiz: use formchangechecker during quiz attempts.
To avoid the possiblity of dataloss if a student tries to navigate away
having changed some answers.
2012-09-27 14:13:24 +01:00
Petr Škoda 7a9b6cb6f2 MDL-35616 import YUI 3.7.2 2012-09-27 14:41:32 +02:00
Petr Škoda 08403f9e31 MDL-31437 add enrol_cohort tests 2012-09-27 14:40:24 +02:00
Tim Hunt 65cf651fd8 MDL-35620 question engine: should distinguish NULL and 0.
This only matters in an obscure edge case, but it is an edge case we hit
with one of the OU question types.

This load data code is processing the results of a LEFT JOIN, so is_null
is the correct logic.
2012-09-27 12:44:07 +01:00
Tim Hunt b2a79cc1e8 MDL-35370 cloze qtype: distinguish wrong & unanswered subqs
This affects the subquestions that appear as an embedded text input box.

There are three cases:
1. Input for subq left blank
2. Input for subq was wrong, and matched by a * wildcard.
3. Input for subq was wrong, and did not match any answer.

2. and 3. should look identical, apart from any feedback in case 2.

1. is different. The state should be displayed as "Not answered" even
though the mark for this part is still shown as 0.

There are some new unit tests for these cases.

Also, we slighly improve handling of , for decimal point in multianswer,
although there are still issues.

While working on this, I made some minor clean-ups in shortanswer and
numerical qtypes.
2012-09-27 12:43:21 +01:00
Tim Hunt 9695ff811b MDL-34657 user sorting: consistent sorting everywhere.
This commit coverts everything in the codebase to use the new
users_order_by_sql function when sorting lists of users. More details in
the bug.

Note that this does not change places where users are displayed in a
sortable table, and the sort order comes from the table.
2012-09-27 12:41:42 +01:00
Tim Hunt 9f82ddd66f MDL-34657 datalib: function to generate user sort sql.
The purpose of this method is to ensure that when we display lists of
users in different places, the default sort order is consistent.

Having this code centralised in one place them makes it possible to
improve things accross the board, and there is an example of that here.
There is logic so that if we are searching for particular string, then
users with an exact match are sorted first.
2012-09-27 12:41:41 +01:00
Eloy Lafuente (stronk7) 8e4f6bb1d4 MDL-34657 test: verify CASE statements in ORDER BY clauses. 2012-09-27 12:41:41 +01:00
Tim Hunt e3b2e1a4f4 MDL-34257 quiz 'secure' mode: PAGE initialisation order issues. 2012-09-27 12:41:00 +01:00
Dan Poltawski 5d6285c220 weekly release 2.4dev 2012-09-27 18:52:35 +08:00
Dan Poltawski da00f0a7cd Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-09-27 18:46:54 +08:00
Mark Nelson 5a45b936bf MDL-35637 group: Fix form submission error that occurs when GD version is not set. 2012-09-27 12:00:02 +08:00
Dan Poltawski 22e8bab59a Revert "MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity -- Patch provided by Kanika Goyal"
This reverts commit 0a5181a0df.
2012-09-27 11:31:51 +08:00
Damyon Wiese 7a2565cd91 MDL-35662: Grant extension does not work when applied to multiple users in assignment grading interface 2012-09-27 11:22:09 +08:00
Damyon Wiese cbf5dce26f MDL-35660: Feedback file plugin in assignment uses incorrect constant name for batch file uploads feature. 2012-09-27 11:07:05 +08:00
Eloy Lafuente (stronk7) 695dee4bcd Merge branch 'WIP-MDL-35564' of git://github.com/nadavkav/moodle 2012-09-27 00:35:34 +02:00
Eloy Lafuente (stronk7) ba6d56c202 Merge branch 'WIP-MDL-35481' of git://github.com/nadavkav/moodle 2012-09-27 00:06:17 +02:00
Eloy Lafuente (stronk7) 21ba954e99 Merge branch 'WIP-MDL-35246' of git://github.com/nadavkav/moodle 2012-09-26 23:50:41 +02:00
Eloy Lafuente (stronk7) d863a99aee Merge branch 'WIP-MDL-35527' of git://github.com/nadavkav/moodle 2012-09-26 21:48:27 +02:00
Eloy Lafuente (stronk7) 24c99b709d MDL-35578 - Also justify email2, used in signup 2012-09-26 19:48:06 +02:00
Eloy Lafuente (stronk7) d4cfaaf9a9 Merge branch 'WIP-MDL-35578' of git://github.com/nadavkav/moodle 2012-09-26 19:35:11 +02:00
Jody Steele b770f5363d MDL-33933 mod_forum: fix incorrect capability check 2012-09-26 05:18:01 -07:00
Eloy Lafuente (stronk7) b20e4c11e2 Merge branch 'MDL-34573_accessibility' of git://github.com/rwijaya/moodle
Conflicts:
	tag/manage.php
2012-09-26 12:17:23 +02:00
Dan Poltawski ce77b89a18 Merge branch 'w39_MDL-35506_m24_pgerrorrollback' of git://github.com/skodak/moodle 2012-09-26 17:01:39 +08:00
Petr Škoda d719d59f25 MDL-35506 add more transaction error tests 2012-09-26 10:51:03 +02:00
Petr Škoda bedd0982e8 MDL-35506 improve pg transaction snapshotting perf 2012-09-26 10:39:28 +02:00
Rossiani Wijaya 04a530c9c8 MDL-34573 Tag mod: remove extra quote for new tag name field 2012-09-26 16:27:33 +08:00
Rossiani Wijaya ca2d7327a2 MDL-34573 tag: convert to html_writer 2012-09-26 16:25:02 +08:00
Rossiani Wijaya e3416381b2 MDL-34573 - add label for search tag input text 2012-09-26 16:25:02 +08:00
Rossiani Wijaya 647e902aeb MDL-34573 Tag: update label for suggested tag 2012-09-26 16:25:02 +08:00
Rossiani Wijaya bbfae1eb6e MDL-34573 accessibility compliance for tag: Add forform input text and select tag 2012-09-26 16:25:02 +08:00
Dan Poltawski 03f09a8a9b Merge branch 'wip-MDL-35276-master' of git://github.com/marinaglancy/moodle 2012-09-26 15:21:29 +08:00
Jerome Mouneyrac 12fc8acf5b MDL-35198 replace key_exists by array_key_exists 2012-09-26 15:20:18 +08:00
Marina Glancy 0e116922b4 MDL-35276 fix redirect to course/section pages 2012-09-26 15:16:24 +08:00
Dan Poltawski 942866dd09 MDL-31873 - mod_assign version bump for new webservice 2012-09-26 14:50:48 +08:00
Dan Poltawski 21d3bfb39a MDL-31859 - fix more trailing whitespace 2012-09-26 14:44:42 +08:00
Dan Poltawski d0068cd007 MDL-31859 - fix trailing whitespace 2012-09-26 14:36:59 +08:00
Jerome Mouneyrac acf6459645 MDL-35644 user_get_details: admin should be able to see description 2012-09-26 14:24:29 +08:00
Dan Poltawski ac994d5a8a Merge branch 'MDL-31859' of git://github.com/Lightwork-Marking/moodle 2012-09-26 14:16:55 +08:00
Jerome Mouneyrac 36a7059542 MDL-34971 PHPunit test: user/externallib.php 2012-09-26 14:16:19 +08:00
Dan Poltawski b95e21b8c5 MDL-15471 - oops messed up version number update 2012-09-26 12:10:25 +08:00
Dan Poltawski d0dff189b0 MDL-15471 tag: minor coding style fixes 2012-09-26 12:06:46 +08:00
Dan Poltawski 680afde951 MDL-15471 tag - add upgrade.txt notification of changes 2012-09-26 12:06:35 +08:00
Dan Poltawski 90762324f9 MDL-15471 - fix typo inappropriate
Thanks Sam for spotting it!
2012-09-26 12:06:27 +08:00
Dan Poltawski 50a6106409 MDL-15471 install.xml fixup spacing 2012-09-26 12:06:20 +08:00
Dan Poltawski bb14cc2d23 Merge branch 'wip-MDL-15471' of https://github.com/jennymgray/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-09-26 12:04:41 +08:00
Sam Hemelryk 4aede312e7 Merge branch 'wip-MDL-35276-master' of git://github.com/marinaglancy/moodle 2012-09-26 15:50:56 +12:00
Jerome Mouneyrac 2650c2b03e MDL-35636 login/token.php: confusing 'create user token' log appearing before 'token user request' 2012-09-26 11:47:23 +08:00
Marina Glancy 923451c59f MDL-35276 fix redirect to course/section pages 2012-09-26 10:51:28 +08:00
Sam Hemelryk c89613edaa Merge branch 'MDL-34573_accessibility' of git://github.com/rwijaya/moodle 2012-09-26 10:20:13 +12:00
Sam Hemelryk 86d055360c Merge branch 'wip-MDL-34476-master' of git://github.com/phalacee/moodle 2012-09-26 08:40:11 +12:00
Sam Hemelryk 38cdfab3ca MDL-31976 course: Better alt for edit section icon 2012-09-26 08:23:55 +12:00
Sam Hemelryk d998c1a440 Merge branch 'MDL-31976-master' of git://github.com/FMCorz/moodle 2012-09-26 08:20:53 +12:00
Andrew Robert Nicols 2b42518aa7 MDL-34328 Correct usage of e.drop when catching missed drag/drop events 2012-09-25 09:27:31 +01:00
Paul Nicholls 1e78b3e66f MDL-34328: block dragdrop - disallow dragging from show/hide and dock icons
Tell the YUI drag/drop delegate that the show/hide and dock icons are not valid drag handles.  Otherwise, a drag can be initiated by showing or hiding a block (probably not from docking one, but better safe than sorry).  Not strictly related to MDL-34328, but likely to be encountered whilst testing - and closely related to another patch for MDL-34328.

Note that the "invalid" config option for the delegate takes a string - not an array - but can have multiple selectors separated by commas.
2012-09-25 09:27:31 +01:00
Paul Nicholls 6cc43fedbb MDL-34328: block dragdrop - performance rewrite
Use YUI's DragDrop delegates for block dragdrop - one per block region - rather than initialising a Drag object for each individual block.
2012-09-25 09:27:31 +01:00
Paul Nicholls a000ff6833 MDL-34328: course section "toolboxes" - performance rewrite
Use YUI event delegation to handle events in course section "toolboxes" (visibility and highlight toggles) rather than attaching event handlers to each individual button we care about.  Also remove the (now unused) replace_button() function.
2012-09-25 09:27:31 +01:00
Paul Nicholls de21fb1def MDL-34328: course resource "toolboxes" - performance rewrite
Use YUI event delegation to handle events in course resource "toolboxes" (sets of editing icons) rather than attaching event handlers to each individual button we care about.  Don't waste time setting the CSS cursor to what it already is, use .all() rather than replace_button() if we just need the node.

Section toolboxes could probably also be done this way to some extent, but the payoff may not be worth the effort - they're so minimal that they don't tend to cause issues.
2012-09-25 09:27:31 +01:00
Paul Nicholls d2ce925279 MDL-34328: course dragdrop - performance rewrite
Use YUI's DragDrop delegates for course dragdrop, rather than initialising a Drag object for each individual section and each individual activity/resource.  Also, clone a single drag handle for activities/resources, rather than repeatedly creating a whole new one with the same parameters for each activity/resource.
2012-09-25 09:27:31 +01:00
Aparup Banerjee 8d7f1b1530 MDL-34992 message : grouped message profile setting providers by component 2012-09-25 14:53:09 +08:00
Aparup Banerjee d2ae1df1a3 MDL-34992 message : ordered the providers settings list. 2012-09-25 14:52:46 +08:00
Dan Poltawski 415af656b2 Merge branch 'wip-MDL-35415-master' of git://github.com/marinaglancy/moodle 2012-09-25 14:48:44 +08:00
Marina Glancy b874d5c6b4 MDL-35415 completely remove add activity in settings (MDL-22732) 2012-09-25 14:42:25 +08:00
Dan Poltawski 6d0d5b848b Merge branch 'w39_MDL-35506_m24_pgerrorrollback' of git://github.com/skodak/moodle 2012-09-25 14:34:33 +08:00
Dan Poltawski ac9f5e3fc7 Merge branch 'wip-MDL-32180-master' of git://github.com/phalacee/moodle 2012-09-25 14:27:39 +08:00
Dan Poltawski 03a1ef0cbc Merge branch 'MDL-28616-master' of https://github.com/mackensen/moodle 2012-09-25 14:26:41 +08:00
Brian Jorgensen d2b4684946 MDL-32180 calendar - added developer hint for a missing or unreadable calendar hook file 2012-09-25 14:12:32 +08:00
Dan Poltawski 32441f0c51 Merge branch 'MDL-34778_accessibility' of git://github.com/rwijaya/moodle 2012-09-25 13:43:25 +08:00
Dan Poltawski 6ff5f14a82 Merge branch 'wip-mdl-30918' of git://github.com/rajeshtaneja/moodle 2012-09-25 13:36:48 +08:00
Dan Poltawski b53e0f53b9 Merge branch 'MDL-35252' of git://github.com/raymondAntonio/moodle 2012-09-25 13:14:37 +08:00
Dan Poltawski 7ce576e317 Merge branch 'MDL-34571_accessibility' of git://github.com/rwijaya/moodle
Conflicts:
	report/log/lang/en/report_log.php
2012-09-25 13:04:54 +08:00
Raymond Wijaya 49b6109666 MDL-35437: mod_assign: Stop Moodle from giving out a notice when grading worksheets with missing columns are uploaded via 'Upload grading worksheet' option in the drop-down menu 2012-09-25 11:50:55 +08:00
Dan Poltawski 412d7c7b65 Merge branch 'MDL-35202' of git://github.com/netspotau/moodle-mod_assign 2012-09-25 11:42:57 +08:00
Dan Poltawski 86f564e5cc Merge branch 'MDL-35321-master' of git://github.com/micaherne/moodle 2012-09-25 11:32:21 +08:00
Dan Poltawski 1abadbc38a Merge branch 'WIP-MDL-35275' of git://github.com/nadavkav/moodle 2012-09-25 10:12:07 +08:00
Dan Poltawski 23e1c92db6 Merge branch 'MDL-35521' of https://github.com/raymondAntonio/moodle 2012-09-25 09:45:07 +08:00
Eloy Lafuente (stronk7) e045b42621 Merge branch 'WIP-MDL-35576' of git://github.com/nadavkav/moodle 2012-09-25 01:16:35 +02:00
Eloy Lafuente (stronk7) 81feb36bf2 Merge branch 'WIP-MDL-35537' of git://github.com/nadavkav/moodle 2012-09-25 00:35:19 +02:00
Eloy Lafuente (stronk7) ede30adcf9 Merge branch 'w39_MDL-35515_m24_yui371' of git://github.com/skodak/moodle 2012-09-25 00:07:35 +02:00
Sam Hemelryk 52ebfade63 Merge branch 'MDL-34607-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-09-25 09:51:28 +12:00
Dan Poltawski e00c210f55 Merge branch 'wip-MDL-32184-master' of http://github.com/phalacee/moodle 2012-09-24 15:36:10 +08:00
Dan Poltawski 7647ed4645 Merge branch 'MDL-26940-master' of git://github.com/FMCorz/moodle 2012-09-24 15:32:18 +08:00
Frederic Massart 1d2173afde MDL-31499 Javascript: Handle invalid window names in openpopup 2012-09-24 15:23:51 +08:00
Jason Fowler 0a5181a0df MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity -- Patch provided by Kanika Goyal 2012-09-24 15:04:55 +08:00
Dan Poltawski dbffd9910d Merge branch 'wip-MDL-35542-master' of git://github.com/marinaglancy/moodle 2012-09-24 14:36:43 +08:00
Dan Poltawski 6a02c4c916 Merge branch 'w39_MDL-35561_m24_tinymce357' of git://github.com/skodak/moodle 2012-09-24 11:57:19 +08:00
Sam Hemelryk b39e6f59d6 Merge branch 'MDL-35312-master' of git://github.com/FMCorz/moodle 2012-09-24 15:54:04 +12:00
Sam Hemelryk 81a92474f2 Merge branch 'MDL-35517' of git://github.com/stronk7/moodle 2012-09-24 15:21:34 +12:00
Dan Poltawski 078929f40c Merge branch 'MDL-35442-master' of git://git.luns.net.uk/moodle 2012-09-24 11:19:34 +08:00
Sam Hemelryk d324d74e39 Merge branch 'MDL-30901_master' of git://github.com/dmonllao/moodle 2012-09-24 15:15:05 +12:00
Dan Poltawski 67d5121d9b Merge branch 'MDL-35538' of git://github.com/stronk7/moodle 2012-09-24 11:11:16 +08:00
Dan Poltawski 6876aa7a86 Merge branch 'MDL-35242-master' of git://github.com/FMCorz/moodle 2012-09-24 11:08:07 +08:00
Sam Hemelryk 9c8299972d Merge branch 'MDL-28071-master' of git://github.com/ankitagarwal/moodle 2012-09-24 15:06:25 +12:00
Sam Hemelryk daa9be54c0 Merge branch 'MDL-30889-master' of git://github.com/ankitagarwal/moodle 2012-09-24 15:05:54 +12:00
Sam Hemelryk 8272c63abf Merge branch 'MDL-35389' of git://github.com/raymondAntonio/moodle 2012-09-24 15:05:01 +12:00
Sam Hemelryk 071128c9ac Merge branch 'MDL-35398' of git://github.com/netspotau/moodle-mod_assign 2012-09-24 15:03:08 +12:00
Sam Hemelryk 7a01f7dbc1 Merge branch 'MDL-35427' of git://github.com/netspotau/moodle-mod_assign 2012-09-24 15:00:44 +12:00
Sam Hemelryk 66c0368a9e Merge branch 'MDL-35435' of https://github.com/raymondAntonio/moodle 2012-09-24 14:59:44 +12:00
Sam Hemelryk 8ea8461b3f Merge branch 'MDL-33431' of git://github.com/netspotau/moodle-mod_assign 2012-09-24 14:53:43 +12:00
Dan Poltawski f8be96ad50 Merge branch 'MDL-35518' of https://github.com/raymondAntonio/moodle 2012-09-24 10:47:05 +08:00
Dan Poltawski 15f4a83b3a Merge branch 'MDL-35337' of git://github.com/netspotau/moodle-mod_assign 2012-09-24 10:44:00 +08:00
Dan Poltawski 44417e647d Merge branch 'MDL-31873' of git://github.com/Lightwork-Marking/moodle 2012-09-24 10:26:55 +08:00
Rex Lorenzo bc3f5bcae1 MDL-35587 - Display grouping name for Drag and Dropped resources 2012-09-23 01:14:14 -07:00
Nadav Kavalerchik 1b04d0f918 MDL-35246 - Invert all action arrows in Question Bank categories management, when in RTL mode 2012-09-22 21:42:12 +03:00
Nadav Kavalerchik 9fe40de660 MDL-35481 - Invert "search option" listbox "open" arrow, when in RTL mode (page: manual user course registration ) and Personal Blog page 2012-09-22 21:05:14 +03:00
Nadav Kavalerchik 4e0b7ff29a MDL-35578 - Left justify LTR Form input fields (email, idnumber, url, phone...), when in RTL mode 2012-09-22 17:58:20 +03:00
Nadav Kavalerchik 9a75716ae6 MDL-35576 - Right padding is missing on Date field/element, when in RTL mode (minor fix) 2012-09-22 17:19:18 +03:00
Nadav Kavalerchik cbe4d61a32 MDL-35275 - Fix header, breadcrumbs, form labels and config.php output 2012-09-22 15:45:22 +03:00
Nadav Kavalerchik b9889602ac MDL-35564 - minor, "My Moodle" related (to block Course Overview) CSS RTL UI fixes 2012-09-21 14:02:31 +03:00
Nadav Kavalerchik b62ed9d67f MDL-35564 - Several RTL UI fixes for Course Overview block, in RTL mode 2012-09-21 13:59:11 +03:00
Petr Škoda dbafb80490 MDL-35561 import latest TinyMCE 3.5.7
The previous version 3.5.6 was incorrectly stored as 3.6.0, sorry.
2012-09-21 11:34:33 +02:00
Petr Škoda 8005d4eedf MDL-35506 add pgsql workaround for automatic transaction rollback on any SQL error 2012-09-21 10:52:53 +02:00
Jason Fowler 4dc44fc5ef MDL-34476 - Course Completeion, Blocks - Allowing teachers to access the Full Course Report from the Course Completion Block -- Initial patch provided by Nadav Kavalerchik 2012-09-21 15:20:47 +08:00
Ankit Agarwal 7df3ea154f MDL-30889 calendar: Adding Aria-attributes to make event popup more accessible" 2012-09-21 14:23:38 +08:00
Ankit Agarwal 62caadafe5 MDL-30889 calendar: Adding focus and blur events to calendar renderer 2012-09-21 14:23:37 +08:00
Ankit Agarwal 7dbd7bb7c4 MDL-28071 calendar: Accessibility improvments on calendar new event page 2012-09-21 13:33:24 +08:00
Raymond Wijaya 9f484b984f MDL-35521: mod_assign: Remove 'final grade' column from downloaded grading worksheets 2012-09-21 11:36:40 +08:00
Frederic Massart aad982aa24 MDL-31976 Accessbility: Action icons on course page do not need title attributes 2012-09-21 11:31:19 +08:00
Raymond Wijaya 0a66564903 MDL-35252: Fix a bug that creates unneccessary rows in grade_grades table when unchecking 'overridden' check box in gradebook update 2012-09-21 11:26:10 +08:00
Raymond Wijaya 5fc596303f MDL-35435: Fix invalid CSV file when assignment has no enrolled student and submission in offline grading worksheet 2012-09-21 11:19:19 +08:00
Raymond Wijaya 79e7dfcc76 MDL-35389: Fix an error when changing locked state of a assignment is changed 2012-09-21 11:10:34 +08:00
Raymond Wijaya 23fffa2bea MDL-35518: mod_assign: Change function get_renderer() in assign/locallib.php from private to public 2012-09-21 10:53:32 +08:00
Frederic Massart 0f764c023e MDL-34607 Folder: Remove any sort order during upgrade 2012-09-21 10:09:54 +08:00
Frederic Massart db232bb0f4 MDL-34607 File API: Natural sort on area tree files 2012-09-21 10:08:46 +08:00
Frederic Massart afe27edce6 MDL-35312 Web Services: Fixed typo in capability of course update 2012-09-21 09:59:02 +08:00
Frederic Massart 5583a208c9 MDL-35242 Web Services: Removed translation causing error in add_to_log 2012-09-21 09:58:52 +08:00
David Monllao d11f12f646 MDL-30901 user Removing user->screenreader setting 2012-09-21 09:23:32 +08:00
David Monllao 19db454f36 MDL-30901 gradereport_grader Removing screenreader usage and adding aria elements to grader cells 2012-09-21 09:22:22 +08:00
David Monllao 36ab2fedff MDL-30901 mod_chat Removing screenreader setting usage 2012-09-21 09:22:21 +08:00
David Monllao 13cd661f1b MDL-30901 report_progress Removing screenreader setting usage and adding a title attribute for screen readers 2012-09-21 09:22:21 +08:00
AMOS bot 6ac6bc82c9 Automatically generated installer lang files 2012-09-21 00:34:50 +00:00
Paul Charsley 1f8c8f6125 MDL-31873 added mod_assign_get_grades web service function 2012-09-21 10:29:15 +12:00
Paul Charsley b6b6c7acb6 MDL-31859 added get_enrolled_users_with_capability web service function 2012-09-21 09:37:06 +12:00
Petr Škoda ee70cee844 MDL-35506 test if error in transaction forces rollback 2012-09-20 10:29:12 +02:00
Petr Škoda 414e82b1df MDL-35515 import latest and greatest YUI 3.7.1 2012-09-20 10:23:31 +02:00
Eloy Lafuente (stronk7) ed4f7cccc3 MDL-35538 forum: take rid of forum_get_separate_modules()
100% incorrect function and not used in codebase at all.
2012-09-20 10:21:00 +02:00
Eloy Lafuente (stronk7) 3b3fc5cc76 MDL-35517 course: Handle non-existing $course->maxbytes on course creation. 2012-09-20 10:20:04 +02:00
Jenny Gray 7dd764b856 MDL-15471 course tagging improvements 2012-09-20 09:12:11 +01:00
Rajesh Taneja 02a011eabc MDL-30918 Chat: Added hidden section headers and aria attributes 2012-09-20 15:38:25 +08:00
Marina Glancy 006bbbdf34 MDL-35542 Fixed a bug when trying to directly link to a file from Dropbox 2012-09-20 15:37:48 +08:00
Marina Glancy 7b444a96ec MDL-35001 added unit test for function convert_to_array() 2012-09-20 15:37:25 +08:00
Marina Glancy 9367fd911d MDL-35001 removed cycle detection from convert_to_array because it causes error in data 2012-09-20 15:37:25 +08:00
Dan Poltawski a3ab18c735 weekly release 2.4dev 2012-09-20 14:09:13 +08:00
Dan Poltawski a8612ef780 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-09-20 14:04:30 +08:00
Rajesh Taneja 7400be1b6e MDL-34777 Accessibility: Add labels to input elements in gradebook 2012-09-20 11:28:55 +08:00
Damyon Wiese 66d3fe3708 MDL-33431: Allow in page toggling of full/summary of submissions/feedback in assignment 2012-09-20 10:52:30 +08:00
Nadav Kavalerchik 4fb7325366 MDL-35527 - Left justify CLOSE button on modal dialog boxes, when in RTL mode 2012-09-19 22:43:45 +03:00
Eloy Lafuente (stronk7) b09764da07 MDL-33166 forum: fetch cmid to be used by capability checks. 2012-09-19 21:39:58 +02:00
Nadav Kavalerchik 4f4315f507 MDL-35537 - Right align registration text on login page, when in RTL mode 2012-09-19 22:23:33 +03:00
Michael Aherne b61670c7a7 MDL-35321 course sections Enable reset of grouping access 2012-09-19 13:13:32 +01:00
Eloy Lafuente (stronk7) dafc3b7a85 Merge branch 'MDL-8307-master' of git://github.com/FMCorz/moodle 2012-09-19 11:33:24 +02:00
Eloy Lafuente (stronk7) 8e35be43c4 Merge branch 'MDL-35226-master' of git://github.com/ankitagarwal/moodle 2012-09-19 11:06:33 +02:00
Ankit Agarwal d43d3418ff MDL-35226 lesson: Adding better titles to pages 2012-09-19 17:00:27 +08:00
Frederic Massart d347f30474 MDL-8307 Course: Requests without a category fallback on the default one 2012-09-19 16:51:38 +08:00
Dan Poltawski 99a0936f62 Merge branch 'MDL-32309-master' of git://github.com/FMCorz/moodle 2012-09-19 16:10:50 +08:00
Frederic Massart e57948f58b MDL-32309 Calendar: Fixed CSS in calendar block 2012-09-19 15:54:44 +08:00
Dan Marsden da92e3b05a MDL-34848 SCORM: add extra flexibiltiy to attempt status 2012-09-19 19:53:03 +12:00
Raymond Wijaya 45a64c19bf MDL-35436: mod_assign : Usability issues: add validation rules in the confirmation page for invalid grades uploaded via csv files 2012-09-19 14:01:53 +08:00
Damyon Wiese f9e6212700 MDL-35375: Ensure the assignment grading table is always sorted by at least one unique column 2012-09-19 12:56:51 +08:00
Dan Poltawski ae0f6adeaa Merge branch 'wip-mdl-30833' of git://github.com/rajeshtaneja/moodle 2012-09-19 09:52:10 +08:00
AMOS bot 5a97e4b698 Automatically generated installer lang files 2012-09-19 00:34:23 +00:00
Eloy Lafuente (stronk7) e507b363ca MDL-33166 Forum: whitespace fix 2012-09-19 00:53:33 +02:00
Eloy Lafuente (stronk7) a9c31deea8 Merge branch 'wip-mdl-33166' of git://github.com/rajeshtaneja/moodle 2012-09-19 00:38:41 +02:00
Eloy Lafuente (stronk7) 1f8ee5ce22 Merge branch 'MDL-35226-master' of git://github.com/ankitagarwal/moodle 2012-09-18 20:10:46 +02:00
Eloy Lafuente (stronk7) 05b7836ff7 Merge branch 'MDL-33198-master' of git://github.com/ankitagarwal/moodle 2012-09-18 20:04:58 +02:00
Eloy Lafuente (stronk7) 543951c574 Merge branch 'w38_MDL-32572_m24_authdbduplicates' of git://github.com/skodak/moodle 2012-09-18 19:51:24 +02:00
Eloy Lafuente (stronk7) 58e4214b95 Merge branch 'w38_MDL-35331_m24_verboseenroldb' of git://github.com/skodak/moodle 2012-09-18 19:20:05 +02:00
Eloy Lafuente (stronk7) 5fe658fca9 Merge branch 'w38_MDL-35062_m24_selfaction' of git://github.com/skodak/moodle 2012-09-18 18:57:39 +02:00
Eloy Lafuente (stronk7) 8f75ffeba1 Merge branch 'w38_MDL-35063_m24_manualaction' of git://github.com/skodak/moodle 2012-09-18 17:41:49 +02:00
Eloy Lafuente (stronk7) 5ceded2869 Merge branch 'w38_MDL-35465_m24_cohortscleanup' of git://github.com/skodak/moodle 2012-09-18 16:55:42 +02:00
Petr Škoda 5c28e3a8c6 MDL-32572 fix notice when changing internal auth_db passwords 2012-09-18 13:17:35 +02:00
Petr Škoda bee0220935 MDL-32572 detect username conflicts in auth_db sync 2012-09-18 12:35:15 +02:00
Petr Škoda a0a5ca2578 MDL-32572 always lookpup passwords only in records from current auth plugin
This bug should not be creating any problems thanks to our design of login process, but it should be fixed anyway.
2012-09-18 12:29:13 +02:00
Rajesh Taneja e5c46b5435 MDL-30833 Accessibility: Added aria-expanded attribute on navigation nodes 2012-09-18 17:26:39 +08:00
Ruslan Kabalin 888ce02a82 MDL-35442 Add settings and uninstall link for local plugins 2012-09-18 09:41:26 +01:00
Damyon Wiese ba30fe35b9 MDL-35202: Allow for language files that contain non-ascii for actions in assignment 2012-09-18 15:11:48 +08:00
Dan Poltawski 7783373b99 Merge branch 'MDL-30909-master' of git://github.com/FMCorz/moodle 2012-09-18 15:07:49 +08:00
Itamar Tzadok 110831ceaa MDL-35216 My Moodle - Admin setting for controlling guest access to my moodle 2012-09-18 15:04:45 +08:00
Frederic Massart 0da2ae21d1 MDL-30909 Accessibility: Improved access to reply form in forums 2012-09-18 14:54:24 +08:00
Dan Poltawski 2f6073ca71 Merge branch 'wip-mdl-30831' of git://github.com/rajeshtaneja/moodle 2012-09-18 14:51:25 +08:00
Dan Poltawski a2c5f73194 Merge branch 'MDL-35224-master' of git://github.com/ankitagarwal/moodle 2012-09-18 14:50:06 +08:00
Damyon Wiese 6664b2c0d0 MDL-35398: Quick grading feedback is now pushed to the gradebook 2012-09-18 14:49:52 +08:00
Ankit Agarwal 3fe4a2fa69 MDL-35224 calendar: Adding current time string to make page titles unique 2012-09-18 14:42:08 +08:00
Dan Poltawski b4546290f7 Merge branch 'MDL-32309-master' of git://github.com/FMCorz/moodle 2012-09-18 14:01:45 +08:00
Dan Poltawski 2f2c5a0d22 Merge branch 'MDL-35225-master' of git://github.com/ankitagarwal/moodle 2012-09-18 13:19:30 +08:00
Rossiani Wijaya b1fec412e3 MDL-34777 grading: add label to select and input tag
Conflicts:

	mod/assign/lang/en/assign.php
	mod/assign/locallib.php
2012-09-18 13:18:57 +08:00
Dan Poltawski d4c893c490 Merge branch 'wip-MDL-30912-master' of git://github.com/abgreeve/moodle 2012-09-18 12:00:40 +08:00
Damyon Wiese b32868bed3 MDL-35427: Remove resetting of $_POST - use $mform->setConstant to force update to rownum instead. 2012-09-18 11:17:18 +08:00
Damyon Wiese b3de95afb4 MDL-35337: Fixes for restoring a course backup with no data for teamassignments and extensionsdates 2012-09-18 10:20:53 +08:00
Ankit Agarwal 98e8c0c76d MDL-33198 book: Adding h tags to book title to increase accessibility 2012-09-18 09:43:47 +08:00
Dan Poltawski 0272a0cc6c Merge branch 'master_MDL-34644' of git://github.com/danmarsden/moodle 2012-09-18 09:27:09 +08:00
Eloy Lafuente (stronk7) 6dc9b1569d Merge branch 'MDL-35153-master' of https://github.com/mackensen/moodle 2012-09-18 01:59:28 +02:00
Eloy Lafuente (stronk7) f3d81719b0 Merge branch 'MDL-32688' of git://github.com/itamart/moodle 2012-09-18 01:53:15 +02:00
Eloy Lafuente (stronk7) 9577f6ee94 Merge branch 'MDL-35419' of git://github.com/timhunt/moodle 2012-09-18 01:28:34 +02:00
Charles Fulton 4f54f20d78 MDL-32230 block_rss_client: remove extra cleaning step 2012-09-18 01:23:02 +02:00
Eloy Lafuente (stronk7) b18816beae Merge branch 'MDL-34841' of git://github.com/timhunt/moodle 2012-09-18 01:15:14 +02:00
Eloy Lafuente (stronk7) 742b6984fc Merge branch 'w38_MDL-35129_m24_dbmigration' of git://github.com/skodak/moodle 2012-09-18 01:12:17 +02:00
Eloy Lafuente (stronk7) 5df0b25806 Merge branch 'MDL-35344-updates' of git://github.com/mudrd8mz/moodle 2012-09-17 18:02:46 +02:00
Petr Škoda 94c9db5493 MDL-35479 document unit test debugging() changes 2012-09-17 13:00:36 +02:00
Petr Škoda a3b6e311b8 MDL-35479 some more debugging assert cleanup 2012-09-17 12:06:24 +02:00
Petr Škoda 060bb94d81 MDL-35479 fix zip packer tests to use debugging asserts 2012-09-17 12:00:02 +02:00
Petr Škoda ca6a4546d4 MDL-35479 fix course request tests to use debugging asserts 2012-09-17 11:59:00 +02:00
Petr Škoda c8bc6c1548 MDL-35479 fix moodlelib tests to use debugging asserts 2012-09-17 11:58:43 +02:00
Nadav Kavalerchik cd48b18810 MDL-35275 - Left align INPUT boxes and TEXT boxes during Install process, when in RTL mode 2012-09-17 12:53:46 +03:00
Petr Škoda d9ba3c4ebc MDL-35479 fix ddl tests to use debugging asserts 2012-09-17 11:41:38 +02:00
Petr Škoda 5388ff57f4 MDL-35479 fix textlib tests to use debugging asserts 2012-09-17 11:37:09 +02:00
Petr Škoda dfb10d7857 MDL-35479 fix outputlib tests to use debugging asserts 2012-09-17 11:34:27 +02:00
Petr Škoda eb10d5541e MDL-35479 use new debugging asserts in dml tests 2012-09-17 11:28:56 +02:00
Petr Škoda ef5b5e051e MDL-35479 debugging support in our phpunit integration 2012-09-17 11:27:57 +02:00
Dan Poltawski d3dbb5ce6a Merge branch 'MDL-35388' of git://github.com/netspotau/moodle-mod_assign 2012-09-17 15:40:52 +08:00
Rossiani Wijaya 41bf308aba MDL-34573 tag: convert to html_writer 2012-09-17 13:45:24 +08:00
Rossiani Wijaya 68134e4478 MDL-34573 - add label for search tag input text 2012-09-17 13:21:35 +08:00
Rossiani Wijaya 8ee378e06b MDL-34573 Tag: update label for suggested tag 2012-09-17 13:21:35 +08:00
Rossiani Wijaya 0327dda4ac MDL-34573 accessibility compliance for tag: Add forform input text and select tag 2012-09-17 13:21:35 +08:00
Dan Poltawski 5c4dea968e Merge branch 'w38_MDL-35460_m24_offlineassign' of git://github.com/skodak/moodle 2012-09-17 12:49:58 +08:00
Dan Poltawski 7e3d57fca9 Merge branch 'MDL-35376' of git://github.com/rlorenzo/moodle 2012-09-17 12:47:46 +08:00
Dan Poltawski 7560bf8a8c Merge branch 'MDL-30847_master' of git://github.com/dmonllao/moodle 2012-09-17 12:39:37 +08:00
Rossiani Wijaya b5e2c24ad8 MDL-34778 enrol: add a space 2012-09-17 12:13:20 +08:00
Rossiani Wijaya c4ede87628 MDL-34778 enrol: convert to html_writer 2012-09-17 12:13:20 +08:00
Rossiani Wijaya 75b226b665 MDL-34778 accessibility compliance for enrol: add label tag for input text 2012-09-17 12:13:20 +08:00
Nadav Kavalerchik 7332a439b8 MDL-35462 - RTL alignment of several UI element when in "Scheme phase" Restore setting page 2012-09-17 12:12:13 +08:00
Nadav Kavalerchik 52c540d0b5 MDL-35458 - Left align TEXTAREA and use input LTR direction, when in RTL and LTR modes 2012-09-17 12:12:12 +08:00
Nadav Kavalerchik 8e04747b8c MDL-35248 - Left justify CLOSE button on users modal dialog, when in RTL mode 2012-09-17 12:12:12 +08:00
Nadav Kavalerchik 5e51bd99ff MDL-35247 - Invert previous and next Topics links, when in RTL mode (and course is set to single Topic per page) 2012-09-17 12:12:12 +08:00
Nadav Kavalerchik d4d3158290 MDL-35426 - Right align role names inside course Participants view 2012-09-17 12:12:11 +08:00
Nadav Kavalerchik 669973b8a2 MDL-35250 - #2 issue - left align TEXTAREA field inside TinyMCE setting page 2012-09-17 12:12:11 +08:00
Nadav Kavalerchik 1b62b6b564 MDL-35243 - Right justify course category names, when in RTL mode 2012-09-17 12:12:10 +08:00
Nadav Kavalerchik f17c3daee8 MDL-35245 - Padding for activity sub-type in Activity Chooser dialog, when in RTL mode 2012-09-17 12:12:10 +08:00
Rossiani Wijaya d26cfd602b MDL-34571 report: fixed spacing and string error 2012-09-17 12:10:43 +08:00
Rossiani Wijaya cb589b25c4 MDL-34571 report: convert to html_writer 2012-09-17 12:10:43 +08:00
Rossiani Wijaya 2bbd896edd MDL-34571 accessibility compliance for report: Add label to select and input text form 2012-09-17 12:10:43 +08:00
Nadav Kavalerchik 3b72fe05e3 MDL-35245 - Missing scrollbar in Activity Chooser, when in RTL mode 2012-09-17 12:06:55 +08:00
Dan Poltawski 7248a6f90a Merge branch 'MDL-34975-master' of git://github.com/FMCorz/moodle 2012-09-17 11:59:43 +08:00
Dan Poltawski 6d2c3be183 Merge branch 'MDL-35374' of git://github.com/rlorenzo/moodle 2012-09-17 11:47:27 +08:00
Dan Poltawski d4422a4a50 Merge branch 'w38_MDL-35454_m24_bogusmaxsize' of git://github.com/skodak/moodle 2012-09-17 11:44:35 +08:00
Ankit Agarwal 6f51394b94 MDL-33198 book: Adding h tags to book titles to increase accessibility while printing a book 2012-09-17 11:29:28 +08:00
Simon Coggins e97ddbd8ff MDL-35472: Prevent html tags appearing in page titles
Only a problem when formatstringstriptags is disabled
2012-09-17 15:25:55 +12:00
Marina Glancy 6a02b50ff7 MDL-35415 completely remove add activity in settings (MDL-22732) 2012-09-17 11:03:37 +08:00
Dan Poltawski 5481ce028e Merge branch 'MDL-35163-master' of git://github.com/micaherne/moodle 2012-09-17 10:51:30 +08:00
Dan Poltawski 73d3359904 Merge branch 'w38_MDL-35355_m24_viewportheight' of git://github.com/skodak/moodle 2012-09-17 10:44:03 +08:00
Ankit Agarwal d42bc7dc18 MDL-35226 lesson: Adding strings to page titles of lesson administrative pages to make it more accessible 2012-09-17 10:24:33 +08:00
Ankit Agarwal 27affa2622 MDL-35226 lesson: Adding $extrapagetitle to the api mod_lesson_renderer::header() 2012-09-17 10:24:32 +08:00
Ankit Agarwal 75eec83b9b MDL-35225 logs: Adding page number to the title tags 2012-09-17 10:23:16 +08:00
Adrian Greeve d7ff479e41 MDL-30912 - lib - Select menus are now keyboard accessable. 2012-09-17 10:18:01 +08:00
Rajesh Taneja e9921f6ab2 MDL-30831 Accessibility: Added aria role and attributes to dock block 2012-09-17 10:12:34 +08:00
Rex Lorenzo 1659b1d1a8 MDL-33166 Forum: Adding capability mod/forum:allowforcesubscribe
Conflicts:

	mod/forum/version.php
2012-09-17 10:06:26 +08:00
Frederic Massart 0cf2e0a40a MDL-34975 Accessibility: Collapsible areas captions can be clicked to expand/collapse 2012-09-17 09:47:16 +08:00
Frederic Massart ef21ad21cc MDL-32309 Accessibility: Improved accessibility of calendar filters 2012-09-17 09:47:01 +08:00
Frederic Massart 28c7749fc7 MDL-30909 Forms: Custom ID can be set on a form 2012-09-17 09:46:31 +08:00
David Monllao 683bed9182 MDL-30847 core Adding ARIA attribute to help windows 2012-09-17 09:26:42 +08:00
Eric Merrill 7aa1a4fab2 MDL-35411 assign Include plugin (submission/feedback) info, even when there is no user data.
assign_plugin_config data was only included in backups/imports if user data was included in
the backup. This patch moves it out with the standard structure of the assign backup.
2012-09-16 17:58:20 -04:00
Petr Škoda 960931d945 MDL-35465 add more sql escaping tests for cohort_get_cohorts() 2012-09-16 22:32:33 +02:00
Petr Škoda 9a2f6770d7 MDL-35465 improve cohort paging 2012-09-16 21:56:27 +02:00
Petr Škoda 6eb8bf7f3a MDL-35465 improve cohorts coding style 2012-09-16 21:38:28 +02:00
Petr Škoda 2f8c69e199 MDL-35465 move duplicate check to cohort_add_member() 2012-09-16 21:32:27 +02:00
Petr Škoda aad6e655f6 MDL-35465 fix cohort_get_cohorts() and add tests 2012-09-16 21:29:39 +02:00
Petr Škoda a09ae434ef MDL-35465 fix cohort_get_visible_list() and add tests 2012-09-16 21:07:53 +02:00
Petr Škoda 607fdf632d MDL-35465 refactor cohort user selectors to locallib.php
It is recommended to keep lib.php files as small as possible and without extra includes.
2012-09-16 20:24:17 +02:00
Petr Škoda 4729332b15 MDL-35465 add basic cohort lib tests and generator 2012-09-16 20:23:19 +02:00
Petr Škoda 88a119bb48 MDL-35465 remove invalid sql_empty() Oracle hack
This affects only the partially supported Oracle database, all other databases were not affected by this.
2012-09-16 19:32:39 +02:00
Petr Škoda 5ddd9921fe MDL-35063 add configurable action on manual enrolment expiration 2012-09-16 11:01:07 +02:00
Petr Škoda 90bd89651e MDL-35062 add configurable action on self enrolment expiration 2012-09-16 10:57:57 +02:00
Petr Škoda fcae4a0ce3 MDL-35460 add offline feedback from mod_assign to standard plugins 2012-09-16 09:35:04 +02:00
Petr Škoda 085bf0c9fb MDL-35331 add description of invalid enrolment records in enrol_database sync 2012-09-15 14:24:01 +02:00
Petr Škoda e58a797ce0 MDL-35355 use YUI3 in resource resizing code 2012-09-15 12:52:48 +02:00
Petr Škoda cabc411215 MDL-35129 implement new export_table_recordset()
This is necessary because MySQL get_recordset_sql() stores the data in memory, unfortunately the alternative resultset iteration blocks concurrent access - that is why we need new method for export.
2012-09-15 11:29:33 +02:00
Petr Škoda adc75629e4 MDL-35454 ignore invalid $custombytes in get_max_upload_sizes()
This fixes installation and phpunit init regression.
2012-09-15 11:13:04 +02:00
Petr Škoda 1025b58b44 MDL-35129 add missing recordset closing in db transfer 2012-09-14 23:54:16 +02:00
Itamar Tzadok 613921c6bf MDL-32688 My Moodle - Fixed fatal error in guest access to My Moodle 2012-09-14 15:17:19 -04:00
Eloy Lafuente (stronk7) c8ac480979 weekly release 2.4dev 2012-09-14 19:11:32 +02:00
Eloy Lafuente (stronk7) 0a0e7da565 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-09-14 19:03:06 +02:00
Charles Fulton b4de35e632 MDL-28616 wiki: use class variable for toc header depth 2012-09-14 05:49:14 -07:00
Charles Fulton 2264828fd0 MDL-28616 wiki: html format toc rendering should match nwiki and creole 2012-09-14 05:49:14 -07:00
Michael Aherne 8d9abcf02d MDL-35163 quiz Make quiz report options available to attempts form 2012-09-14 10:03:20 +01:00
Eloy Lafuente (stronk7) bb96b9df18 Revert "MDL-34794: Add reset course feature in mod_assign (new assignment (2.3))"
This reverts commit 72429a10da.
2012-09-14 10:48:07 +02:00
Eloy Lafuente (stronk7) 8be3eeecfe Revert "MDL-34794 mod_assign: Fixed up style after integration"
This reverts commit 20b133e7a3.
2012-09-14 10:47:04 +02:00
Eloy Lafuente (stronk7) 60cb1a5f70 Revert "MDL-32125 mod_forum: updating subscription mode not reflected"
This reverts commit bee9656ca9.
2012-09-14 10:37:10 +02:00
Eloy Lafuente (stronk7) 464df58811 Revert "MDL-32125 mod_forum: updating subscription mode not reflected"
This reverts commit cf3b9054ba.
2012-09-14 10:36:58 +02:00
Charles Fulton 39323c753d MDL-35153 shibboleth: check for WAYFless URLs 2012-09-13 19:13:58 -07:00
Eloy Lafuente (stronk7) 9549090df0 MDL-27856 Fix incorrect instanceid assignment. 2012-09-14 01:52:04 +02:00
Eloy Lafuente (stronk7) b01c955fef Merge branch 'w37_MDL-27856_m24_cohortrestore' of git://github.com/skodak/moodle 2012-09-14 01:19:50 +02:00
Eloy Lafuente (stronk7) 2bc620b363 Merge branch 'w37_MDL-35071_m24_enrolrestore' of git://github.com/skodak/moodle 2012-09-14 01:08:49 +02:00
Tim Hunt 2c76c89422 MDL-35419 question manual grading: valdiation must handle 0,5
Yet another , as decimal separator issue!

To fix this nicely, I refactored some code into question_utils.
2012-09-13 16:33:15 +01:00
Simon Coggins cf0387ff08 MDL-34644 SCORM fix completion when only completion on view is selected. 2012-09-13 14:38:36 +12:00
Damyon Wiese 49d83b9d96 MDL-35388: Change get_output to get_renderer to remove duplicated function 2012-09-13 10:06:09 +08:00
Damyon Wiese fd637d38ac Merge branch 'MDL-35388' of git://github.com/Lightwork-Marking/moodle into integration
Conflicts:
	mod/assign/locallib.php
2012-09-13 10:03:40 +08:00
Paul Charsley 2cffef9f41 MDL-35388 modifications to allow php unit tests to be run 2012-09-13 13:44:05 +12:00
AMOS bot ca53403554 Automatically generated installer lang files 2012-09-13 00:34:32 +00:00
Sam Hemelryk 36b76c1ff9 Merge branch 'master_MDL-32125_forum_subscription_change_reflected' of git://github.com/kanikagoyal/moodle 2012-09-13 11:25:47 +12:00
Sam Hemelryk fd9a54c2e3 Merge branch 'wip-mdl-30667' of git://github.com/rajeshtaneja/moodle 2012-09-13 11:19:30 +12:00
Sam Hemelryk 4113e2951e Merge branch 'MDL-29872_c' of git://github.com/rwijaya/moodle 2012-09-13 11:13:01 +12:00
Eloy Lafuente (stronk7) 7ec68510d9 Merge branch 'MDL-34082' of git://github.com/timhunt/moodle 2012-09-12 17:19:17 +02:00
Tim Hunt e08eaf7da3 MDL-34082 course restrict modules: typo in MDL-19125 upgrade code. 2012-09-12 16:15:11 +01:00
Eloy Lafuente (stronk7) 7f34030583 Merge branch 'master_MDL-33755' of git://github.com/danmarsden/moodle 2012-09-12 12:17:04 +02:00
Dan Marsden 29b244545b MDL-33755: SCORM fix spacing/coding guidelines 2012-09-12 20:19:44 +12:00
Dan Marsden 812bdaeb12 MDL-33755 SCORM: fix the way launch is triggered
fixes bug with the way it handles skipview set to first time.
2012-09-12 20:16:57 +12:00
Dan Marsden 410b7c9bcc MDL-33755 SCORM: new quick function to check if a user has scorm data/tracks - better/quicker way to check as full track info isn't needed. 2012-09-12 19:53:56 +12:00
Dan Marsden 234415c4ea MDL-33755 SCORM: use correct constants for skipview instead of magic numbers 2012-09-12 19:38:49 +12:00
Petr Škoda 2fbfdfd005 MDL-35071 fix plugins typo which was breaking roles restore for some plugins
Thanks Eloy for spotting this!
2012-09-12 08:56:44 +02:00
Aparup Banerjee bf6d9e8c21 Merge branch 'MDL-35264_fix' of git://github.com/dmonllao/moodle 2012-09-12 14:47:50 +08:00
Aparup Banerjee 55fcd5678e Merge branch 'MDL-34967' of git://github.com/mouneyrac/moodle 2012-09-12 14:26:34 +08:00
David Monllao 1fa2dfbcb6 MDL-35264 mod_chat Bigger frame for text input 2012-09-12 13:52:50 +08:00
Sam Hemelryk 37d3caac51 Merge branch 'MDL-34088' of git://github.com/raymondAntonio/moodle 2012-09-12 11:35:41 +12:00
Sam Hemelryk 4b7377847f MDL-34568 mod_quiz: Fixed up whitespace issue 2012-09-12 11:20:35 +12:00
Sam Hemelryk 6aa130499b Merge branch 'wip-mdl-34568' of git://github.com/rajeshtaneja/moodle 2012-09-12 11:08:56 +12:00
Sam Hemelryk 939d182d1e Merge branch 'wip-MDL-34223-master' of git://github.com/marinaglancy/moodle 2012-09-12 10:50:57 +12:00
Sam Hemelryk 1d26f4a5de Merge branch 'MDL-30829-master' of git://github.com/FMCorz/moodle 2012-09-12 10:28:16 +12:00
Sam Hemelryk 223285a640 Merge branch 'MDL-34692' of git://github.com/raymondAntonio/moodle 2012-09-12 10:22:54 +12:00
Rex Lorenzo ff37d63c1b MDL-35376 - Shortcut/alias not working for Private file repo 2012-09-11 14:23:12 -07:00
Eloy Lafuente (stronk7) ae066a4691 Merge branch 'master_MDL-34544' of git://github.com/danmarsden/moodle 2012-09-11 21:33:06 +02:00
Rex Lorenzo 1336e2e160 MDL-35374 - Cannot delete blocks off frontpage 2012-09-11 12:27:17 -07:00
Eloy Lafuente (stronk7) 97f6be20ac MDL-34962 whitespace fix 2012-09-11 20:09:08 +02:00
Eloy Lafuente (stronk7) 498bc10c36 MDL-34962 Tidy up tests a bit 2012-09-11 19:38:12 +02:00
Eloy Lafuente (stronk7) 6e52a71bee Merge branch 'MDL-34962' of git://github.com/Lightwork-Marking/moodle 2012-09-11 18:53:35 +02:00
Eloy Lafuente (stronk7) e633ea6b46 Merge branch 'MDL-34984' of git://github.com/rwijaya/moodle 2012-09-11 16:28:46 +02:00
Tim Hunt cacb8fa08a MDL-34841 error importing questions with long names.
The problem was with the non-UTF-8-safe way that a question name
was being constructed from the question text.

I have done a proper fix with methods in the base class to
carefully construct a question name that is reasonable, and
which will fit in the database column. Then I have changed all
importers to use the new methods.

I also remembered not to break the lesson in the process.
2012-09-11 15:04:00 +01:00
Aparup Banerjee 5c7cca95e7 Merge branch 'MDL-34970' of git://github.com/mouneyrac/moodle 2012-09-11 19:12:29 +08:00
Aparup Banerjee 5e7e3bc20f Merge branch 'MDL-34972' of git://github.com/mouneyrac/moodle 2012-09-11 18:41:01 +08:00
Aparup Banerjee 96e5f78a6e Merge branch 'MDL-34973' of git://github.com/mouneyrac/moodle 2012-09-11 17:16:20 +08:00
Aparup Banerjee 875d0e5916 MDL-31276 mod_assign Phpdocs polish 2012-09-11 16:53:56 +08:00
Aparup Banerjee f4f1fd0b6c Merge branch 'MDL-31276-NOCSVLIB' of git://github.com/netspotau/moodle-mod_assign 2012-09-11 16:39:30 +08:00
Damyon Wiese 7a2b911c6b MDL-31276: Phpdocs cleanup for offline grading feature 2012-09-11 15:48:19 +08:00
Aparup Banerjee 27fec8650b Merge branch 'wip-MDL-29463-master' of git://github.com/phalacee/moodle 2012-09-11 14:46:44 +08:00
Sam Hemelryk f9959166ca Merge branch 'MDL-35190' of git://github.com/mouneyrac/moodle 2012-09-11 16:46:13 +12:00
Frederic Massart 2ee34c85ac MDL-34765 Course: Fixed missing argument in course reordering 2012-09-11 16:41:44 +12:00
Sam Hemelryk 92a763eb55 Merge branch 'MDL-34765-master' of git://github.com/FMCorz/moodle 2012-09-11 15:31:32 +12:00
Sam Hemelryk 1d856f68db Merge branch 'MDL-30018' of https://github.com/stronk7/moodle 2012-09-11 15:22:39 +12:00
Sam Hemelryk 35cd9f1f83 Merge branch 'MDL-10259_master' of git://github.com/dmonllao/moodle 2012-09-11 15:19:16 +12:00
Sam Hemelryk 84342b4e3c Merge branch 'MDL-30857_master' of git://github.com/dmonllao/moodle 2012-09-11 15:10:59 +12:00
Sam Hemelryk 72258d36db Merge branch 'master_MDL-33755' of git://github.com/danmarsden/moodle 2012-09-11 15:08:11 +12:00
Aparup Banerjee 47d474b66c Merge branch 'wip-MDL-30898-master' of git://github.com/phalacee/moodle 2012-09-11 11:05:25 +08:00
Sam Hemelryk 60871abb53 Merge branch 'master_MDL-34755' of git://github.com/danmarsden/moodle 2012-09-11 15:02:30 +12:00
Aparup Banerjee 2873330588 Merge branch 'wip-MDL-30818-master' of git://github.com/phalacee/moodle 2012-09-11 09:19:33 +08:00
Eloy Lafuente (stronk7) e813835f5c Merge branch 'MDL-35134_master' of git://github.com/pauln/moodle 2012-09-11 02:50:56 +02:00
Eloy Lafuente (stronk7) c0d716d7b9 Merge branch 'MDL-35171' of git://github.com/merrill-oakland/moodle 2012-09-11 02:44:30 +02:00
Eloy Lafuente (stronk7) 7772fed15d MDL-34338 mod_folder: delete unused $browser var. 2012-09-11 02:18:38 +02:00
Eloy Lafuente (stronk7) caaf32f823 Merge branch 'wip-MDL-34338-master' of git://github.com/marinaglancy/moodle 2012-09-11 02:17:30 +02:00
Sam Hemelryk 6396fb3dab Merge branch 'master_MDL-35255' of git://github.com/danmarsden/moodle 2012-09-11 12:11:02 +12:00
Eloy Lafuente (stronk7) 29636a9af2 Merge branch 'MDL-34660' of git://github.com/raymondAntonio/moodle 2012-09-11 02:08:41 +02:00
Sam Hemelryk 4bf0aea9dd Merge branch 'MDL-34916_master' of git://github.com/kordan/moodle 2012-09-11 12:06:26 +12:00
Eloy Lafuente (stronk7) 50dca95dc4 Merge branch 'master_MDL-35123' of git://github.com/danmarsden/moodle 2012-09-11 02:02:49 +02:00
Eloy Lafuente (stronk7) 227b50eb43 Merge branch 'master_MDL-35208' of git://github.com/danmarsden/moodle 2012-09-11 01:56:51 +02:00
Eloy Lafuente (stronk7) 513480c22a Merge branch 'MDL-35257-master' of git://github.com/danpoltawski/moodle 2012-09-11 01:53:17 +02:00
Eloy Lafuente (stronk7) 70a491c20e Merge branch 'w37_MDL-35270_m24_oracohort' of git://github.com/skodak/moodle 2012-09-11 01:48:34 +02:00
Sam Hemelryk 20b133e7a3 MDL-34794 mod_assign: Fixed up style after integration 2012-09-11 11:34:10 +12:00
Sam Hemelryk f28896b615 Merge branch 'MDL-34794' of git://github.com/raymondAntonio/moodle 2012-09-11 11:33:04 +12:00
Sam Hemelryk 7c4fe15b2d Merge branch 'MDL-27786-master' of git://github.com/ankitagarwal/moodle 2012-09-11 11:15:45 +12:00
Sam Hemelryk 204ce6858b Merge branch 'MDL-33374-master' of git://github.com/ankitagarwal/moodle 2012-09-11 11:10:39 +12:00
Sam Hemelryk 27b1b28552 Merge branch 'MDL-35007-master' of git://github.com/ankitagarwal/moodle 2012-09-11 11:07:29 +12:00
Eloy Lafuente (stronk7) 24543a2145 Merge branch 'MDL-35272-typo' of git://github.com/mudrd8mz/moodle 2012-09-11 01:03:06 +02:00
Sam Hemelryk c91614ef52 Merge branch 'wip-MDL-32785-master-v3' of git://github.com/abgreeve/moodle 2012-09-11 10:38:23 +12:00
Eloy Lafuente (stronk7) 1f4cd1fcec Merge branch 'MDL-35301-master' of git://github.com/FMCorz/moodle 2012-09-10 23:45:47 +02:00
Eloy Lafuente (stronk7) 5e51915c80 Merge branch 'MDL-8307-master' of git://github.com/FMCorz/moodle 2012-09-10 23:35:12 +02:00
Eloy Lafuente (stronk7) 2c248bd416 Merge branch 'w37_MDL-35284_m24_borkedtoolbar' of git://github.com/skodak/moodle
Conflicts:
	lib/editor/tinymce/version.php
2012-09-10 22:13:36 +02:00
Petr Škoda 5ba3a966f6 MDL-35284 patch empty toolbar crashing TinyMCE 2012-09-10 22:10:25 +02:00
Eloy Lafuente (stronk7) a8cdd8758b Merge branch 'w37_MDL-35318_m24_stringrevisions' of git://github.com/skodak/moodle 2012-09-10 20:39:19 +02:00
Petr Škoda 6dd4241f81 MDL-35318 fix lang revision incrementation conditions 2012-09-10 20:23:14 +02:00
David Mudrák c62580b9d0 MDL-35344 Ignore available updates info with invalid format
Previously when the server response validation had failed, the property
available_update_checker::recentresponse was left as NULL. This caused
problems in available_update_checker::compare_responses() that expects
proper arrays passed.

This patch makes invalid data being ignored by setting the property to
an empty array as if no data have been fetched yet. A debugging message
is thrown so the admins will be able to diagnose eventual problems in
the future.
2012-09-10 17:29:42 +02:00
Eloy Lafuente (stronk7) e79802e04e Merge branch 'w37_MDL-35289_m24_tinymcelangs' of git://github.com/skodak/moodle 2012-09-10 16:54:43 +02:00
Eloy Lafuente (stronk7) 979b868cf1 Merge branch 'MDL-35343' of git://github.com/timhunt/moodle 2012-09-10 16:41:25 +02:00
Tim Hunt 8e8a397b16 MDL-35343 JavaScript visible in multichoice choice feedback.
Also, Match correct answer, and calculated multi and multianswer
feedback.
2012-09-10 13:06:47 +01:00
Aparup Banerjee e2abebcbb2 Merge branch 'MDL-34944-master' of git://github.com/ankitagarwal/moodle 2012-09-10 17:15:00 +08:00
Aparup Banerjee b3b79a58ee Merge branch 'MDL-35223-master' of git://github.com/ankitagarwal/moodle 2012-09-10 17:00:16 +08:00
David Monllao 0e0f3beb38 MDL-30857 block_community Removing comments hardcoded height 2012-09-10 15:01:31 +08:00
Aparup Banerjee 5ddaa60d49 Merge branch 'MDL-35264_master' of git://github.com/dmonllao/moodle 2012-09-10 14:37:40 +08:00
Aparup Banerjee fda1d233a7 Merge branch 'MDL-27398_master' of git://github.com/dmonllao/moodle 2012-09-10 14:29:47 +08:00
Damyon Wiese d0d4796b4a MDL-31276: Fixes for offline marking and team submissions
Filenames in zip of all submission now contains the team group name.
2012-09-10 14:18:42 +08:00
Damyon Wiese df47b77f46 MDL-31276: Offline marking. Includes download/upload of csv grades.
Also provides bulk upload/download of feedback files via zips.
2012-09-10 14:18:32 +08:00
David Monllao bd9cb43e09 MDL-27398 mod_chat Removing PAGE references 2012-09-10 14:09:02 +08:00
David Monllao 32b49bbd84 MDL-27398 mod_chat Adding file basic doc 2012-09-10 14:09:02 +08:00
David Monllao 24242682df MDL-27398 mod_chat Removing deprecated calls and moving dependencies
Credit to Jorge Villalon
2012-09-10 14:08:49 +08:00
David Monllao e54370d7fb MDL-27398 mod_chat Adding CLI_SCRIPT to chat daemon
Credit to Jorge Villalon
2012-09-10 14:08:22 +08:00
Frederic Massart 20b12d5484 MDL-30829 Accessibility: Docking a block disables the accessible anchors 2012-09-10 13:34:20 +08:00
Adrian Greeve 8e73fbf5aa MDL-32785 - lib - Ignorning hard frozen fields when submitting data. 2012-09-10 11:12:10 +08:00
Eloy Lafuente (stronk7) a306ceb1ec MDL-30018 restore: better answer matching. Credit goes to Tyler Bannister, thanks!
On backup, contents are cleaned to be safe utf8. That was leading to
some matching problems on restore against not cleaned DB contents (for
already existing questions). This commit adds one fallback method to
perform the match against cleaned DB contents.
2012-09-09 20:29:26 +02:00
Petr Škoda 79df150a62 MDL-35318 use new lang revision to invalidate TinyMCE lang caches 2012-09-09 12:18:32 +02:00
Petr Škoda a46e11b5df MDL-35318 add lang revision counter and improve PHPUnit test reset
We need this for hacks that need to find out if strings changed.
2012-09-09 12:15:30 +02:00
Petr Škoda 29149f981c MDL-35289 use unmodified TinyMCE 2012-09-09 11:57:25 +02:00
Petr Škoda 7fc9433c87 MDL-35270 fix ambiguously defined column
Credit goes to Sara Arjona, thanks.
2012-09-08 10:49:00 +02:00
Jason Fowler 24eb0897cb MDL-29463 - Chat - Change socket_setopt to socket_set_options 2012-09-08 11:53:37 +08:00
Jason Fowler 5d03c9e044 MDL-30898 - Accessibility/Themes - Removing blink style selector to prevent use of blinking text 2012-09-08 11:51:26 +08:00
Jason Fowler c419fb9609 MDL-30818 - Accessibility/Themes - Adding hover to activity elements to allow visual link between activity and course completion markings 2012-09-08 11:50:55 +08:00
AMOS bot 259211556e Merge branch 'master' into install_master 2012-09-08 00:34:41 +00:00
Petr Škoda e7193380d8 MDL-27856 coding style cleanup 2012-09-07 11:13:34 +02:00
Petr Škoda 94335e5a97 MDL-27856 support restore of cohort in the same site 2012-09-07 11:13:27 +02:00
Petr Škoda 7a7b8a1f19 MDL-35071 redesign enrol restore
Includes option to convert all enrolments to enrol_manual instances, support for mapping of custom fields and fixes for several other problems. This does not include support for custom enrol tables, it will be addressed in another issue.
2012-09-07 11:11:28 +02:00
Petr Škoda a4a4b2f6c6 MDL-35289 use new TinyMCE en lang import
AMOS BEGIN
  MOV [common:browsemedia,editor_tinymce],[moodlemedia:browsemedia,tinymce_moodlemedia]
  MOV [common:browseimage,editor_tinymce],[moodleimage:browseimage,tinymce_moodleimage]
AMOS END
2012-09-07 10:11:37 +02:00
Rossiani Wijaya a3433213a1 MDL-29872 Dropbox repository: add message handler to filepicker header and add message to logout from dropbox. When user clicked on logout button from dropbox repository, it will also logging them out from dropbox site through a popup window 2012-09-07 15:42:43 +08:00
Rossiani Wijaya 8510d731bb MDL-34984 admin setting: fixed labeling and shortname display for admin setting 2012-09-07 15:34:38 +08:00
Raymond Wijaya ec32d06834 MDL-34088: Advanced grading criteria is shown on assignment page (if used) before the assignment submissions have been graded. 2012-09-07 15:20:32 +08:00
Raymond Wijaya 72429a10da MDL-34794: Add reset course feature in mod_assign (new assignment (2.3)) 2012-09-07 15:06:11 +08:00
Paul Charsley 639bc8b2f3 MDL-34962 added release number to returned values 2012-09-07 18:19:01 +12:00
Paul Charsley b224ff57cc Merge branch 'master' of https://github.com/moodle/moodle 2012-09-07 18:08:02 +12:00
David Monllao 84ac37f0f4 MDL-34068 mod_chat Sending text/html headers when sending the messages frame output for the first time 2012-09-07 12:10:36 +08:00
David Monllao 476a235db1 MDL-35264 mod_chat Changing the input frame of chat daemon method to a embedded page layout 2012-09-07 12:07:46 +08:00
David Monllao 98795fd1a6 MDL-10259 core Adding a search courses box if there are too many courses 2012-09-07 11:28:29 +08:00
Frederic Massart 19ffa630a6 MDL-35301 Unit Tests: Test cases for course requests 2012-09-07 11:24:02 +08:00
Frederic Massart f70bfb848b MDL-35301 Unit Tests: Basic test for create_course() 2012-09-07 11:24:02 +08:00
Frederic Massart 59b9a14063 MDL-8307 Course: Course requests can suggest a category 2012-09-07 11:22:08 +08:00
Dan Poltawski 4501a081d3 MDL-35257 lib: if $CFG->logguests is disabled, avoid some log actions
This is for performance, else there can be great contention on the guest
user record as we've seen on moodle.org.
2012-09-07 10:25:22 +08:00
Ankit Agarwal 7582fd3a67 MDL-27786 calendar: Changing the eventname string for accessibility 2012-09-07 10:22:14 +08:00
Ankit Agarwal 607fdfc344 MDL-33374 profile: Use correct text for buttons when creating a new user 2012-09-07 10:19:48 +08:00
Rajesh Taneja 0465ef6e31 MDL-34568: Accessibility: Added missing lables in quiz section
AMOS BEGIN
 CPY [pluginname,grade_export_xls],[downloadexcel,table]
 CPY [pluginname,grade_export_ods],[downloadods,table]
AMOS END
2012-09-07 10:18:15 +08:00
Ankit Agarwal 15c5f2a8bd MDL-34944 book: Implementing reset framework for book 2012-09-07 10:17:21 +08:00
Ankit Agarwal 9735d339d6 MDL-35007 book: Adding rule to parse links to book chapters from 1.9 backups 2012-09-07 10:13:18 +08:00
Ankit Agarwal 93ec553969 MDL-35223 book: use chapter names in page titles 2012-09-07 10:10:01 +08:00
Marina Glancy eb8d220d68 MDL-34338: renderer for mod_folder should not use file_info 2012-09-07 09:34:04 +08:00
Marina Glancy 406f8dd827 MDL-34223 increased performance in forum_get_file_info() for admins 2012-09-07 09:31:22 +08:00
Eloy Lafuente (stronk7) 935c3d5ed2 weekly release 2.4dev 2012-09-07 02:39:21 +02:00
Eloy Lafuente (stronk7) 3b70685c26 fix permissions 2012-09-07 02:36:04 +02:00
AMOS bot e36a9fee8c Automatically generated installer lang files 2012-09-07 00:35:08 +00:00
Eloy Lafuente (stronk7) 9411c595e0 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-09-07 02:17:55 +02:00
Eloy Lafuente (stronk7) 92b75df804 Merge branch 'MDL-34945-master' of git://github.com/FMCorz/moodle 2012-09-06 20:11:53 +02:00
Eloy Lafuente (stronk7) 34a52050b2 Merge branch 'MDL-34985' of git://github.com/merrill-oakland/moodle 2012-09-06 20:06:30 +02:00
Eloy Lafuente (stronk7) df5ac8d0ec MDL-6424 - blocks - Add missing global vars. 2012-09-06 19:39:49 +02:00
Eloy Lafuente (stronk7) 7c2bc95ae2 Merge branch 'wip-MDL-6424-master' of git://github.com/abgreeve/moodle 2012-09-06 19:31:43 +02:00
Eloy Lafuente (stronk7) 6f050c7dea MDL-31291 assign: Fix diffs between installed & upgraded DB schema 2012-09-06 18:31:26 +02:00
Aparup Banerjee d59b488b5a Merge branch 'MDL-31291-POST23' of git://github.com/netspotau/moodle-mod_assign 2012-09-06 19:43:15 +08:00
Aparup Banerjee 89577d774d Merge branch 'MDL-31284-POST23' of git://github.com/netspotau/moodle-mod_assign 2012-09-06 19:36:24 +08:00
Martin Vögeli b5cd5f83e1 MDL-31365 Regions for pagelayout 'secure' 2012-09-06 18:11:13 +08:00
Martin Vögeli 934f04e7c3 MDL-31365 Follow up after discussion 2012-09-06 18:11:09 +08:00
Eloy Lafuente (stronk7) 0cbf023ab6 Merge branch 'w36_MDL-35172_m24_editortoolbar' of git://github.com/skodak/moodle 2012-09-06 12:08:26 +02:00
Aparup Banerjee 7183a1f4a4 Revert "MDL-34257 quiz 'secure' mode: PAGE initialisation order issues."
This reverts commit 0e708c3476.

note : there is another commit prefixed with MDL-34257 hash 'ddda79c' which was really for MDL-34187. 'ddda79c' is not being reverted as its not really about MDL-34257.
2012-09-06 17:35:40 +08:00
Dan Marsden 81f460b1e2 MDL-33755 SCORM only auto-skipview for users with skipview cap that can't see reports
also don't generate unrequired content when scorm will be launched automatically.
2012-09-06 20:30:37 +12:00
Piers Harding 35cfa9e62c MDL-33755 mod/scorm: directview scorm activity
Enable direct view of scorm activity from the course
overview page

Conflicts:

	mod/scorm/view.js
2012-09-06 20:28:42 +12:00
Dan Marsden 122878590a MDL-35123 SCORM: cleaner version of get_last_attempt and get_last_completed_attempt, fixes support for MS Sql driver 2012-09-06 18:42:55 +12:00
Jerome Mouneyrac 7d6c58bc24 MDL-35190 random failures in course externallib test 2012-09-06 11:15:56 +08:00
Eloy Lafuente (stronk7) 0e08f394f5 Merge branch 'MDL-35034-master' of git://github.com/FMCorz/moodle 2012-09-06 02:01:11 +02:00
Eloy Lafuente (stronk7) 37a74d1e28 Merge branch 'MDL-27799' of git://github.com/timhunt/moodle 2012-09-06 01:29:04 +02:00
Eloy Lafuente (stronk7) 44a2eb911b Revert "MDL-30643 - Fixed speed issues with stats generation."
This reverts commit 5d911452cd.
2012-09-05 19:04:01 +02:00
Eloy Lafuente (stronk7) cbcf50a2f4 Revert "MDL-30643 - Added additional temporary tables to deal with log growth in daily tables."
This reverts commit e710925a24.
2012-09-05 19:03:46 +02:00
Eloy Lafuente (stronk7) 583a19d772 Revert "MDL-30643 - Moved table create/drop out of loop to fix performance issue."
This reverts commit 678f53c5f7.
2012-09-05 19:03:30 +02:00
Eloy Lafuente (stronk7) 6a7fb9f778 Revert "MDL-30643 - Now loading table definitions from XML files."
This reverts commit d352e733b3.
2012-09-05 19:03:17 +02:00
Eloy Lafuente (stronk7) 8127f098d8 Revert "MDL-30643 - Added statslib test file."
This reverts commit 8646f5a436.
2012-09-05 19:03:06 +02:00
Eloy Lafuente (stronk7) 06d54f411c Revert "MDL-30643 - Fixing minor log output error and test cases."
This reverts commit 2da32bd6a5.
2012-09-05 19:02:54 +02:00
Eloy Lafuente (stronk7) fa4fbd9790 Revert "MDL-30643 - Updated test cases to handle timezones better."
This reverts commit f0f0fec295.
2012-09-05 19:02:38 +02:00
Eloy Lafuente (stronk7) 447721b44f Revert "RFC-30643 - Removed get_context_instance calls."
This reverts commit eb0ffd3214.
2012-09-05 19:02:27 +02:00
Eloy Lafuente (stronk7) ac9fe9b3a5 Revert "MDL-30643 fixed whitespace"
This reverts commit 5c27678d3a.
2012-09-05 19:02:07 +02:00
Eloy Lafuente (stronk7) 393cadf205 MDL-29662 quiz overrides: use proper course value (was php notice). 2012-09-05 18:01:24 +02:00
David Mudrák 0e5ebc8755 MDL-35272 Fix typo in qformat_blackboard_six.php
Credit goes to German Valero for spotting and reporting this.
2012-09-05 14:05:36 +02:00
Eloy Lafuente (stronk7) 130eddd24c Merge branch 'w36_MDL-35077_m24_stats' of git://github.com/skodak/moodle 2012-09-05 13:12:59 +02:00
Petr Škoda 61712b0fb0 MDL-35077 do not show link to system stats report if stats disabled 2012-09-05 10:01:30 +02:00
Aparup Banerjee 379833e0d0 Merge branch 'MDL-35089' of git://github.com/stronk7/moodle 2012-09-05 15:02:17 +08:00
Petr Škoda 717a993122 MDL-35172 fix handling of more than 10 tinymce toolbars 2012-09-05 08:23:36 +02:00
Aparup Banerjee 01ba041fa6 Merge branch 'w36_MDL-35177_m24_editoradminicons' of git://github.com/skodak/moodle 2012-09-05 11:45:56 +08:00
Aparup Banerjee 937b0acba1 MDL-26504 blog: fixed SQL to add explicit casting 2012-09-05 10:25:22 +08:00
Dan Marsden c792565b9d MDL-35255 mod_assign plagiarism api shift update_status call to after header has been printed. 2012-09-05 12:44:18 +12:00
Eloy Lafuente (stronk7) 4bab07c68c Merge branch 'MDL-34997-master' of git://github.com/FMCorz/moodle 2012-09-05 00:52:17 +02:00
Aparup Banerjee 5c27678d3a MDL-30643 fixed whitespace 2012-09-05 01:51:39 +08:00
Aparup Banerjee b0381539e5 Merge branch 'MDL-30643_master-log-speed' of git://github.com/tbannister/moodle 2012-09-05 01:16:51 +08:00
Tyler Bannister eb0ffd3214 RFC-30643 - Removed get_context_instance calls.
- Added fifth table to speed up enrolment look ups.
2012-09-04 10:11:16 -04:00
Tyler Bannister f0f0fec295 MDL-30643 - Updated test cases to handle timezones better. 2012-09-04 10:10:19 -04:00
Aparup Banerjee c43f715d42 Merge branch 'wip-mdl-34537' of git://github.com/rajeshtaneja/moodle 2012-09-04 17:31:50 +08:00
Kordan 087c28d62e MDL-34916 theme_formal_white: added support for relative path of logos 2012-09-04 09:52:13 +02:00
Kordan 1d538f8693 MDL-35211 theme_formal_white: updated descriptions involved in MDL-34916 2012-09-04 09:09:14 +02:00
Aparup Banerjee 736cc6a246 Merge branch 'MDL-26504_blog_unregister' of git://github.com/andyjdavis/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-09-04 13:43:11 +08:00
Jerome Mouneyrac 4647b4d76f MDL-34973 PHPunit test: notes/externallib.php 2012-09-04 13:38:36 +08:00
Sam Hemelryk b5b82ae943 Merge branch 'MDL-30022_message_duplicate' of git://github.com/andyjdavis/moodle 2012-09-04 16:50:36 +12:00
Jerome Mouneyrac 1f867c025b MDL-34970 PHPunit test: group/externallib.php 2012-09-04 12:34:40 +08:00
Jerome Mouneyrac 566596abd7 MDL-34967 PHPunit test: enrol/externallib.php and enrol/manual/externallib.php 2012-09-04 12:26:21 +08:00
Aparup Banerjee 82fb0aa576 MDL-31365 theme: mymobile updated to compatible declaration 2012-09-04 12:10:30 +08:00
Tim Hunt 0e708c3476 MDL-34257 quiz 'secure' mode: PAGE initialisation order issues. 2012-09-04 11:39:38 +08:00
Aparup Banerjee 8f8e28c0b6 Merge branch 'MDL-31365_master' of https://github.com/birdy1976/moodle 2012-09-04 11:38:11 +08:00
Tim Lock c3a0938e79 MDL-35092: Add proxy support to enrol/paypal IPN 2012-09-04 10:55:09 +08:00
Simon Coggins 02ed0df5ae MDL-34755 SCORM: pop-up not loading in IE7/IE8 compat mode 2012-09-04 13:11:22 +12:00
Eloy Lafuente (stronk7) 519fb0b878 Merge branch 'wip-mdl-34606' of git://github.com/rajeshtaneja/moodle 2012-09-04 02:08:54 +02:00
Eloy Lafuente (stronk7) 12e0ecde48 Merge branch 'MDL-34633-master' of git://github.com/FMCorz/moodle 2012-09-04 01:52:08 +02:00
Eloy Lafuente (stronk7) 259208e0ab MDL-31295 assign: fix comments in upgrade code. 2012-09-04 01:27:49 +02:00
Eloy Lafuente (stronk7) 7ef0d527b2 Merge branch 'MDL-31295-POST23' of git://github.com/netspotau/moodle-mod_assign 2012-09-04 01:20:55 +02:00
Eloy Lafuente (stronk7) b448cf475e Merge branch 'MDL-29662' of git://github.com/timhunt/moodle 2012-09-04 01:14:06 +02:00
Eloy Lafuente (stronk7) 5087a95e9c Merge branch 'MDL-27818' of git://github.com/timhunt/moodle 2012-09-04 01:06:48 +02:00
Dan Marsden cfa5063777 MDL-35208 mod_choice: respect order of options when running backup 2012-09-04 11:01:06 +12:00
Eloy Lafuente (stronk7) 5b38b6be70 Merge branch 'w36_MDL-35189_m24_typo3' of git://github.com/skodak/moodle 2012-09-04 00:38:30 +02:00
Eloy Lafuente (stronk7) 8619c884d9 Merge branch 'w36_MDL-35185_m24_flowplayer' of git://github.com/skodak/moodle 2012-09-04 00:35:48 +02:00
Eloy Lafuente (stronk7) a39c97ca4a Merge branch 'MDL-33306' of git://github.com/timhunt/moodle 2012-09-04 00:30:35 +02:00
Eloy Lafuente (stronk7) edeb39d44a Merge branch 'MDL-33812-master' of git://github.com/FMCorz/moodle 2012-09-04 00:19:53 +02:00
Eloy Lafuente (stronk7) bf14738ea1 Merge branch 'MDL-34725-strict-standards' of git://github.com/mudrd8mz/moodle 2012-09-04 00:05:52 +02:00
Eloy Lafuente (stronk7) 717282a5da Merge branch 'w36_MDL-34097_m24_environment' of git://github.com/skodak/moodle 2012-09-04 00:00:20 +02:00
Eloy Lafuente (stronk7) 4ee9de8f8f Merge branch 'w36_MDL-35188_m24_tcpdf' of git://github.com/skodak/moodle 2012-09-03 23:42:14 +02:00
Eloy Lafuente (stronk7) ffa9378541 Merge branch 'w36_MDL-35186_m24_phpmailer' of git://github.com/skodak/moodle 2012-09-03 23:31:13 +02:00
Paul Charsley 5e21657f87 Merge branch 'master' of https://github.com/moodle/moodle
Conflicts:
	files/externallib.php
2012-09-04 08:58:31 +12:00
Eloy Lafuente (stronk7) e246a8056e Merge branch 'w36_MDL-35184_m24_adodb' of git://github.com/skodak/moodle 2012-09-03 20:16:20 +02:00
Eloy Lafuente (stronk7) 8f487cb608 Merge branch 'MDL-28346-master' of git://github.com/FMCorz/moodle 2012-09-03 19:30:21 +02:00
Petr Škoda ffdd502dbd MDL-35184 import adodb 5.17 2012-09-03 18:49:53 +02:00
Eloy Lafuente (stronk7) 66ea24cf70 Merge branch 'w36_MDL-35077_m24_stats' of git://github.com/skodak/moodle 2012-09-03 17:53:34 +02:00
Eloy Lafuente (stronk7) 1cdcfb7813 Merge branch 'MDL-35133' of git://github.com/timhunt/moodle 2012-09-03 17:47:33 +02:00
Eloy Lafuente (stronk7) 7fcfa721b7 Merge branch 'w36_MDL-35168_m24_yuipath' of git://github.com/skodak/moodle 2012-09-03 17:07:39 +02:00
Eloy Lafuente (stronk7) 55970f85a4 Merge branch 'w36_MDL-35145_m24_guestdelete' of git://github.com/skodak/moodle 2012-09-03 16:17:51 +02:00
Eloy Lafuente (stronk7) efca150b15 Merge branch 'MDL-31973-master-7' of git://git.luns.net.uk/moodle 2012-09-03 15:49:50 +02:00
Aparup Banerjee 4da70893ef Merge branch 'MDL-35151_master' of git://github.com/lazydaisy/moodle 2012-09-03 19:21:29 +08:00
Aparup Banerjee 3c59897f79 Merge branch 'MDL-35180_master' of git://github.com/lazydaisy/moodle 2012-09-03 17:37:29 +08:00
Aparup Banerjee bb048c6afa Merge branch 'w36_MDL-35080_m24_weirdtables' of git://github.com/skodak/moodle 2012-09-03 17:09:23 +08:00
Jerome Mouneyrac e643266843 MDL-34972 PHPunit test: message/externallib.php 2012-09-03 15:27:22 +08:00
Rajesh Taneja 732c25ade9 MDl-30667 Course: Maxbytes list will show current value, if it's lower then maxbytes 2012-09-03 14:43:33 +08:00
Frederic Massart b2245b7e8a MDL-34633 Repository: Flickr supports small images 2012-09-03 14:21:53 +08:00
Frederic Massart 87294fa346 MDL-35101 Repository: Public Flickr fails when the picture has no license 2012-09-03 14:20:45 +08:00
Jean-Philippe Gaudreau 1ba43a9c6f MDL-34997 - Allow shortened url youtu.be and y2u.be for Youtube filter 2012-09-03 14:13:41 +08:00
Frederic Massart 4b30377dd1 MDL-34765 Course: Re-sorting courses uses natural order 2012-09-03 14:13:27 +08:00
Frederic Massart a173b52da0 MDL-28346 Backup: Backup does not fail when a file is missing 2012-09-03 14:13:11 +08:00
Frederic Massart 3b232aeffb MDL-28346 Backup: Restore does not fail when a file is missing 2012-09-03 14:13:11 +08:00
Frederic Massart 05e521c9bc MDL-28346 Backup: Added new status 'warning' for backup result 2012-09-03 14:13:11 +08:00
Frederic Massart ec7e998f4b MDL-35034 Repository: Google Docs does not fail when download is restricted 2012-09-03 14:12:43 +08:00
Frederic Massart 61d71da334 MDL-33812 Backup: Added some upgrade information about the changes 2012-09-03 14:12:28 +08:00
Frederic Massart 14ecc5a80c MDL-33812 Backup: Revert MDL-33521 2012-09-03 14:12:28 +08:00
Frederic Massart e2aebdc928 MDL-33812 Backup: Respect of backup_auto_keep 2012-09-03 14:12:28 +08:00
Martin Vögeli 2d0e682d8b MDL-31365 Fix for safebrowser and securewindow 2012-09-03 07:25:30 +02:00
Damyon Wiese b98824c219 MDL-31291: Fix a warning on the assignment summary page. 2012-09-03 12:20:39 +08:00
Damyon Wiese 88cfe46998 MDL-31291: Do not show students names who have not submitted when blind marking is enabled. 2012-09-03 11:11:16 +08:00
Damyon Wiese b473171a6f MDL-31291: Blind marking feature for mod_assign 2012-09-03 11:11:16 +08:00
Damyon Wiese dd1fe178eb MDL-31284: Fix for plugin summary display in grading table with team submissions 2012-09-03 11:10:03 +08:00
Damyon Wiese cd01491c11 MDL-31284: Backported team assignment fixes from stable branch 2012-09-03 10:54:14 +08:00
Damyon Wiese 12a1a0da2f MDL-31284: New feature for mod_assign: Team assignments 2012-09-03 10:54:07 +08:00
Damyon Wiese 9e795179ad MDL-31295: Allow granting individual extension dates to students for mod_assign 2012-09-03 10:08:47 +08:00
Dan Marsden eb93ee27b3 MDL-34544 - assign - document assessable_ events 2012-09-03 13:45:51 +12:00
Kanika Goyal d37781a529 MDL-34544: Plagiarism API - add support for control of drafts to new assign 2012-09-03 13:11:16 +12:00
Sam Hemelryk 21a87e501a Merge branch 'MDL-35109-available-updates' of git://github.com/mudrd8mz/moodle 2012-09-03 12:28:30 +12:00
Sam Hemelryk c367e7fe4e Merge branch 'MDL-31496_master' of git://github.com/dmonllao/moodle 2012-09-03 12:20:38 +12:00
Sam Hemelryk 78cdd4cd41 Merge branch 'MDL-35029_master' of git://github.com/dmonllao/moodle 2012-09-03 12:16:03 +12:00
Sam Hemelryk c458ba6cd7 Merge branch 'MDL-34991' of git://github.com/nebgor/moodle 2012-09-03 11:45:00 +12:00
Sam Hemelryk cc21d0ff6e MDL-26822 user: Minor improvements post integration 2012-09-03 11:41:07 +12:00
Sam Hemelryk 0363a5b3fa Merge branch 'MDL-26882-master' of git://github.com/ankitagarwal/moodle 2012-09-03 11:40:29 +12:00
Sam Hemelryk 05f7680f3e Merge branch 'wip-MDL-34318-master' of git://github.com/abgreeve/moodle 2012-09-03 10:12:50 +12:00
Sam Hemelryk f9e38429a8 Merge branch 'MDL-30020c' of git://github.com/srynot4sale/moodle 2012-09-03 10:01:50 +12:00
Mary Evans 982e21a550 MDL-35187 /group: Changed page layout from 'standard' to 'admin' in group/index.php 2012-09-02 17:10:38 +01:00
Petr Škoda 1290a9e2a1 MDL-35189 import typo3 4.7.4 2012-09-02 16:10:57 +02:00
Petr Škoda d6ed2191d7 MDL-35188 import tcpdf 5.9.181 2012-09-02 15:58:25 +02:00
Mary Evans 77a1dfd629 MDL-35180 theme_afterburner: fixes IE9 compatibility view bug 2012-09-02 14:58:23 +01:00
Petr Škoda 0747dabad8 MDL-35186 import phpmailer 5.2.1 2012-09-02 15:36:25 +02:00
Petr Škoda 1dd274dc21 MDL-35185 import Flowplayer 3.2.14 2012-09-02 15:11:57 +02:00
Petr Škoda 949f3db40b MDL-34097 keep current requirements for Moodle 2.4 2012-09-02 11:52:58 +02:00
AMOS bot 52a976ff55 Automatically generated installer lang files 2012-09-02 00:32:44 +00:00
Mary Evans d7e6967e4d MDL-35151 theme_anomaly: removed CSS selectors (.forumpost .content p) from style/general.php thus allowing YUI CSS to style paragraphs as normal. 2012-09-01 23:04:08 +01:00
Petr Škoda 3182d885e7 MDL-35080 skip views and weird tables in mysql structure upgrades 2012-09-01 16:23:08 +02:00
Eric Merrill 1bae1fe522 MDL-35171 formslib Updating date config array to fix problems with month jumping.
Based on https://bugs.php.net/bug.php?id=49115, if you request a month, but do not
specify a date, it will use your current date, which may be beyon a date in the month
requested, causing the return of the next month. This patch specifies the date (1st).
2012-09-01 10:11:24 -04:00
Petr Škoda 4366ce8097 MDL-35145 add basic unit tests for delete_user() 2012-09-01 14:13:40 +02:00
Petr Škoda fba5791323 MDL-35145 add extra delete_user() parameter validation
We do not want to delete local admins and guest account, we need to validate the supplied parameter is valid $user record and refetch it from database.
2012-09-01 13:48:07 +02:00
Petr Škoda a2bdf34017 MDL-35168 fix yui combo path disclosure 2012-09-01 12:35:31 +02:00
Petr Škoda 03f48b4797 MDL-35177 add tinymce plugin icons 2012-09-01 11:36:13 +02:00
Petr Škoda c64f13178a MDL-35172 rework editor toolbar setting 2012-08-31 22:52:45 +02:00
Tyler Bannister 2da32bd6a5 MDL-30643 - Fixing minor log output error and test cases. 2012-08-31 14:52:29 -04:00
Tyler Bannister 8646f5a436 MDL-30643 - Added statslib test file.
- Tests daily stats and daily stats related functions.
2012-08-31 14:52:28 -04:00
Tyler Bannister d352e733b3 MDL-30643 - Now loading table definitions from XML files. 2012-08-31 14:52:28 -04:00
Tyler Bannister 678f53c5f7 MDL-30643 - Moved table create/drop out of loop to fix performance issue.
- Added additional output to weekly and monthly stat generation
2012-08-31 14:52:28 -04:00
Tyler Bannister e710925a24 MDL-30643 - Added additional temporary tables to deal with log growth in daily tables. 2012-08-31 14:52:28 -04:00
Tyler Bannister 5d911452cd MDL-30643 - Fixed speed issues with stats generation. 2012-08-31 14:52:28 -04:00
Petr Škoda 6910d97d8b MDL-35077 fix stats report navigation links 2012-08-31 14:17:14 +02:00
Eloy Lafuente (stronk7) 569f1ad63b weekly release 2.4dev 2012-08-31 11:36:43 +02:00
Eloy Lafuente (stronk7) e1d0830f4f Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-08-31 11:26:49 +02:00
Eloy Lafuente (stronk7) 1c3b1f7aee MDL-35147 lesson qformat import: Dirty hack to support array questiontext structures. 2012-08-31 03:02:53 +02:00
Tim Hunt fc51c2bce2 MDL-27818 question bank: multilang category names don't work. 2012-08-30 22:42:15 +01:00
Tim Hunt 34bc5e2f3a MDL-35133 accesslib: context_module::get_context_name should format_string
Otherwise activites with multilang names are displayed badly.
2012-08-30 22:38:24 +01:00
Eloy Lafuente (stronk7) 218010a671 Merge branch 'MDL-35147' of git://github.com/timhunt/moodle 2012-08-30 18:43:02 +02:00
Eloy Lafuente (stronk7) 345892cfb7 Merge branch 'MDL-31244' of git://github.com/timhunt/moodle 2012-08-30 18:27:03 +02:00
Tim Hunt e231a3ffa2 MDL-27799 question bank: remove last traces of qtype constants.
Using consants to refer to plugin names is crazy. The whole point of
plugins is that you can install more, hence the list of constants will
never be complete.
2012-08-30 13:15:52 +01:00
Tim Hunt bba5e71628 MDL-35147 lesson: fix regression from MDL-25492.
I really wish someone would fix lesson to use the question bank.
2012-08-30 13:09:10 +01:00
sam marshall ed0f5a9507 MDL-35141 Filelib: No icon for epub filetype 2012-08-30 12:13:56 +01:00
Aparup Banerjee e51861e0ea Merge branch 'wip-MDL-32108-master' of git://github.com/abgreeve/moodle 2012-08-30 11:37:47 +08:00
Aparup Banerjee 2e8bf83d1b Merge branch 'MDL-35010' of git://github.com/stronk7/moodle 2012-08-30 10:38:15 +08:00
Paul Nicholls f32cdf71a6 MDL-35134: course/format/weeks: remove trailing comma in object definition
IE doesn't like trailing commas in object (or array) definitions, and will cease processing JavaScript when it hits one.
2012-08-30 11:31:35 +12:00
Tim Hunt 2079c732f9 MDL-29662 quiz overrides: update dates during course reset.
Also, fix duplicate SQL clause in similar code in lib,
and fix error when saving overrides.
2012-08-29 18:41:37 +01:00
Tim Hunt 89269fc2c8 MDL-33306 qtype multichoice: fix display of right answer.
Also, fix  higlighing of last edited question in the qeustion bank, when
it co-incides with a grey row.
2012-08-29 17:47:48 +01:00
David Mudrák b615c46821 MDL-34725 Make the signatures of process_legacy_element() method consistent
The patch fixes the missing parameter type declaration in all subclasses
of the moodle1_workshopform_handler class.
2012-08-29 15:35:37 +02:00
Eloy Lafuente (stronk7) c63efc9a6b Merge branch 'wip-mdl-30121' of git://github.com/rajeshtaneja/moodle 2012-08-29 12:14:46 +02:00
Eloy Lafuente (stronk7) 69689b4c3e Merge branch 'wip-MDL-34290-master' of git://github.com/marinaglancy/moodle 2012-08-29 12:11:00 +02:00
Aparup Banerjee 42ac7cf123 Merge branch 'wip-mdl-31623' of git://github.com/rajeshtaneja/moodle 2012-08-29 16:57:03 +08:00
Andrew Robert Nicols b677b83d57 MDL-31973 Remove inadvertantly committed function call from testing 2012-08-29 09:22:11 +01:00
David Monllao 386a24d794 MDL-35119 tool_assignmentupgrade Changing onsubmit form for onclick button 2012-08-29 16:18:45 +08:00
Petr Škoda 5854be2587 MDL-34990 fix JS error when moodlenolink button not present in toolbar
Thanks Rossiani Wijaya for discovering this issue!
2012-08-29 16:13:30 +08:00
Aparup Banerjee 730d005383 Merge branch 'MDL-31959' of git://github.com/rwijaya/moodle 2012-08-29 15:33:31 +08:00
Marina Glancy 0878934f58 MDL-34310 Removed unused options from gradingform_guide 2012-08-29 14:22:01 +08:00
Aparup Banerjee 8be5407bc1 Merge branch 'w35_MDL-35064_m24_delenrol' of git://github.com/skodak/moodle
Conflicts:
	enrol/manual/locallib.php
2012-08-29 13:46:04 +08:00
Aparup Banerjee 8df0008856 Merge branch 'MDL-34952_master' of git://github.com/grabs/moodle 2012-08-29 13:26:51 +08:00
Aparup Banerjee a476581f0d Merge branch 'wip-MDL-34075-master' of git://github.com/abgreeve/moodle 2012-08-29 12:38:17 +08:00
Marina Glancy 63d8ccef81 MDL-34290 repository_filesystem: do not store files in moodle filepool unless images 2012-08-29 11:56:19 +08:00
Dan Poltawski 7e3f70bed7 MDL-34290 using moodleform cast to int in dropbox repository settings 2012-08-29 11:56:18 +08:00
Marina Glancy 7bb7bd2e79 MDL-34290 Added timeout to googledocs request to download a file 2012-08-29 11:56:18 +08:00
Marina Glancy 42aa6e15bb MDL-34290, MDL-33416 prepare to deprecate fields files.referencelastsync and referencelifetime 2012-08-29 11:56:18 +08:00
Marina Glancy 437f5dc4cf MDL-34290 Auto synchronise newly created references when possible 2012-08-29 11:56:17 +08:00
Marina Glancy f4fe646b71 MDL-34665 Dropbox displays thumbnails and return info about file size and date last modified 2012-08-29 11:56:17 +08:00
Marina Glancy db02d84a40 MDL-34290 remove class cache_file as not used
in fact we have moodle filepool that can work perfectly for caching files, no need to create new class and storage
2012-08-29 11:56:17 +08:00
Marina Glancy 75dd40b265 MDL-34290 repository_dropbox reference handling
- When Dropbox file is inserted by reference, the shared link is created and stored
- Added a function to fix old references (containing access_key/secret) with the proper ones
- Added support for external links in Dropbox (FILE_EXTERNAL), using the shared link API
- Make sure that repository::get_link() receives reference and not source (other repositories than Dropbox have those fields identical)
- Function get_file_by_reference respects request timeouts, downloads only images (for thumbnail generation),
- Function get_file respects request timeout
- do not use cache_file class (content is cached in moodle filepool if needed)
- added parameter for maximum size of files to cache
- added 'Manage' link for Filepicker
- added user name to
- added user name (if different from current) to 'Original' field
- added/corrected phpdocs
2012-08-29 11:56:16 +08:00
Marina Glancy 6ec6842933 MDL-34290 oauthlib_helper support for POST request 2012-08-29 11:56:16 +08:00
Marina Glancy 7e1e775fa4 MDL-34290 Allow to have several requests to the same instance of oauth_helper 2012-08-29 11:56:16 +08:00
Marina Glancy fa746096cf MDL-34290 repository_equella: do not download files when not needed
repository_equella::get_file_by_reference respects request timeouts, downloads only images (for thumbnail generation),
does not use cache_file class (content is cached in moodle filepool if needed);
also repository_equella has counter of unsuccessfull connect attempts and do not perform any more if 3 failed
(within one request)
2012-08-29 11:56:15 +08:00
Marina Glancy f24b0f69ee MDL-34290 repository_boxnet, boxlib use request timeouts
boxlib receives additional argument as request timeout
repository_boxnet::get_file_by_reference respects request timeouts and downloads file into moodle only if it is image
also some improvements to repository_boxnet source display functions;
also do not cache result of request in retrieving of listing, user is unable to see the new files he added to box.
2012-08-29 11:56:15 +08:00
Marina Glancy bc6f241ca2 MDL-34290 repository API: add repository function to import referenced file
it must be independed from sync_external_file because sync often does not actually download contents, it is used just to retrieve
the size of the file. Besides the timeouts for get_file and sync requests are very different.

Also add option to send_stored_file() to ignore reference and send cached contents
2012-08-29 11:56:15 +08:00
Marina Glancy 96221c605a MDL-34290 repository_filesystem add original info function and reduce ref lifetime 2012-08-29 11:56:15 +08:00
Marina Glancy 72a5655566 MDL-34290 repository API: add timeout to get_file and throw exception
- get_file should have a request timeout and throw an exception with the details (i.e. timeout reached) if download can
not be completed
- corrected phpdocs
2012-08-29 11:56:14 +08:00
Marina Glancy 59cb759850 MDL-34290 repository API: do not confuse source and reference
make sure that repository function get_file_source_info receives as argument the source of the file,
and get_file receives a reference;
reference is a value of DB field files_reference.reference and result of get_file_reference(source).
Fix dropbox as the only repository that have different values in those fields;
also added information about user in dropbox reference and original
2012-08-29 11:56:14 +08:00
Marina Glancy 2d222a3243 MDL-34290 repository API: allow get_file_by_reference return only filesize
we want to allow repositories to perform quick synchronisation, without downloading the file. In this case they return
only filesize, without the contenthash
2012-08-29 11:56:07 +08:00
Marina Glancy 8d8a6009e8 MDL-34290 class oauth_helper, added API to pass options to curl (such as timeout) 2012-08-29 11:56:06 +08:00
Marina Glancy 14b7e50001 MDL-34290 update all references after the source is changed
- When several records in {files} have the same record in {files_reference} and the synchronisation is performed, we need to update
all records in {files} so all files know if source is changed and that sync was performed;
- also when local moodle file content is changed we immediately update all files referencing to it (therefore sync of references
to the local files is unnecessary);
2012-08-29 11:56:00 +08:00
Eloy Lafuente (stronk7) 77a7da60db MDL-31973 Groups: Bump version after changing versions in prev merge with conflicts. 2012-08-29 00:48:10 +02:00
Eloy Lafuente (stronk7) 238f7761af Merge branch 'MDL-31973-master-6' of git://git.luns.net.uk/moodle
Conflicts:
	lib/db/upgrade.php
2012-08-29 00:42:43 +02:00
Eloy Lafuente (stronk7) 71ff7c2c04 Merge branch 'MDL-29598_master' of git://github.com/dmonllao/moodle 2012-08-28 23:23:26 +02:00
David Mudrák 7092ea5da5 MDL-35109 Fix available_update_checker::cron_has_fresh_fetch()
For the purpose of cron based fetching, recently fetched data are valid
for 24 hours.
2012-08-28 22:59:33 +02:00
David Mudrák 720f7c12e8 MDL-35109 Improve unittests for cron based fetching of available updates
The expected behaviour is as follows:

* If the recently fetched data is older than 48 hours, it is considered
  as outdated and the new fetch is executed
* else, if the recently fetched data is younger than 24 hours, it is
  considered as fresh enough and no fetch is executed
* else, if the current time is after 01:00 AM plus a certain offset
  (which is randomly generated for each site), the fetch is
  executed.
2012-08-28 22:59:26 +02:00
Eloy Lafuente (stronk7) af1e3f2828 Merge branch 'w35_MDL-35070_m24_selfcleanup' of git://github.com/skodak/moodle
Conflicts:
	enrol/self/editenrolment.php
2012-08-28 21:05:26 +02:00
Eloy Lafuente (stronk7) 5298faed69 Merge branch 'w35_MDL-23875_m24_selfcohort' of git://github.com/skodak/moodle 2012-08-28 20:51:37 +02:00
Eloy Lafuente (stronk7) 928dfdee48 Merge branch 'MDL-34250' of github.com:stronk7/moodle 2012-08-28 20:44:09 +02:00
Eloy Lafuente (stronk7) 111938abd9 MDL-34250 navigation: Always look for correct parent context. 2012-08-28 20:37:46 +02:00
Eloy Lafuente (stronk7) 2ab9b983be MDL-25492 bb6 import: bump version after big changes. 2012-08-28 20:16:54 +02:00
Eloy Lafuente (stronk7) 14941785d7 Merge branch 'MDL-25492' of git://github.com/jmvedrine/moodle 2012-08-28 20:02:02 +02:00
Petr Škoda 71c3b0479a MDL-34955 fix use of uninitialised disabledsubplugins setting
Thanks Eloy Lafuente for spotting it!
2012-08-28 18:57:19 +02:00
Petr Škoda 5d605db1dc MDL-35064 improve enrol test comments
Thanks Aparup Banerjee for the feedback.
2012-08-28 15:28:17 +02:00
Petr Škoda 45fd6edfa4 MDL-35064 improve enrol plugin uninstall confirmation
Credit goes to Helen Foster, thanks!
2012-08-28 15:26:23 +02:00
Eloy Lafuente (stronk7) d970005273 Merge branch 'MDL-34192' of git://github.com/stronk7/moodle 2012-08-28 14:44:06 +02:00
Eloy Lafuente (stronk7) dbd0529ae5 MDL-34192 mod_assign: prevent ambiguous column use for Oracle.
Credit goes to Raymond Antonio from NetSpot.
2012-08-28 14:16:15 +02:00
Aparup Banerjee 23d82edc91 Merge branch 'MDL-31837' of git://github.com/timhunt/moodle 2012-08-28 17:03:55 +08:00
Aparup Banerjee a4290d5803 Merge branch 'MDL-32464' of git://github.com/timhunt/moodle 2012-08-28 16:53:41 +08:00
Petr Škoda ddcea181af MDL-34955 fix sloppy class typo and add MUC TODO info
Credit goes to Aparup Banerjee, thanks.
2012-08-28 16:17:43 +08:00
Adrian Greeve ac31c38eed MDL-34318 - blog - Removal of blog associations from the database on delete.
Thanks to Erik Lundberg for this patch.
2012-08-28 15:57:28 +08:00
Aparup Banerjee 55fa9f1fa0 Merge branch 'w35_MDL-34990_m24_tinymcebuttonsfix' of git://github.com/skodak/moodle 2012-08-28 15:43:19 +08:00
Aparup Banerjee 4655497005 Merge branch 'w35_MDL-34879_m24_tinymcedocs' of git://github.com/skodak/moodle 2012-08-28 15:39:42 +08:00
Aparup Banerjee 1dd73f963c Merge branch 'w35_MDL-34955_m24_tinycefinal' of git://github.com/skodak/moodle 2012-08-28 15:10:35 +08:00
Aparup Banerjee edcdd37525 Merge branch 'w35_MDL-34878_m24_tinymcebuttons' of git://github.com/skodak/moodle 2012-08-28 15:00:26 +08:00
Andrew Davis f361678362 MDL-26504 blog: added upgrade code to remove orphan external blog posts 2012-08-28 14:55:33 +08:00
Petr Škoda af29ef049e MDL-23875 improve cohort only help
Credit goes to Helen Foster.
2012-08-28 08:32:23 +02:00
Aparup Banerjee 0c4ee46d77 Merge branch 'w35_MDL-34877_m24_tinymcesettings' of git://github.com/skodak/moodle 2012-08-28 13:56:15 +08:00
Aparup Banerjee 2cdd5d8571 MDL-34549 added IGNORE_MISSING to context call for bc 2012-08-28 12:29:17 +08:00
Aparup Banerjee 9455f48280 Merge branch 'MDL-34549-master' of git://github.com/ankitagarwal/moodle 2012-08-28 11:45:11 +08:00
Aparup Banerjee 6d04dc705c Merge branch 'w35_MDL-35052_m24_disabledenrol' of git://github.com/skodak/moodle 2012-08-28 11:35:24 +08:00
Marina Glancy a3c94686aa MDL-34290 curl class: add functions to return error code and to download one file 2012-08-28 10:23:36 +08:00
Adrian Greeve 96729f6d2d MDL-34075 - lib - Alteration to the csv import lib to include rfc-4180 compliance 2012-08-28 09:23:16 +08:00
David Monllao 12fc11e78f MDL-34965 core_lib Redirect to the login page when session expires before autologin as guest 2012-08-28 08:58:59 +08:00
Eloy Lafuente (stronk7) 1a5367873d Merge branch 'w35_MDL-35060_m24_sesstest' of git://github.com/skodak/moodle 2012-08-28 02:27:34 +02:00
Eloy Lafuente (stronk7) 2b64e24ebe MDL-35089 conditionals: detected one place missing sectioncache
Thanks to MDL-34936 and unit tests this was discovered like 2 new
places calling to get_fast_modinfo() without the sectioncache
column contents. Potential performance problem, leading to
reseting and recalculation of caches all the time.
2012-08-28 01:38:09 +02:00
Aaron Barnes 2ea5b0bb87 MDL-30020 blocks/completion: Some criteria do not display complete
Also includes a spruce up of the code
2012-08-28 11:30:24 +12:00
Paul Charsley 4873a890df Merge branch 'master' of https://github.com/moodle/moodle 2012-08-28 10:24:05 +12:00
Eloy Lafuente (stronk7) a72ff024fb Merge branch 'wip-MDL-34310-master' of git://github.com/marinaglancy/moodle 2012-08-27 20:12:18 +02:00
Eloy Lafuente (stronk7) 7b0c1bf02a Merge branch 'MDL-34306' of git://github.com/timhunt/moodle 2012-08-27 20:06:19 +02:00
Eloy Lafuente (stronk7) f599c81597 Merge branch 'MDL-34406_fullname' of git://github.com/andyjdavis/moodle 2012-08-27 20:03:01 +02:00
Eloy Lafuente (stronk7) af08f5d0af Merge branch 'MDL-34430' of git://github.com/timhunt/moodle 2012-08-27 18:50:29 +02:00
Eloy Lafuente (stronk7) d683fcdf98 Merge branch 'MDL-34993' of git://github.com/timhunt/moodle 2012-08-27 18:35:23 +02:00
Eloy Lafuente (stronk7) 1edce590bd Merge branch 'master_MDL-34994' of git://github.com/danmarsden/moodle 2012-08-27 18:17:55 +02:00
Eloy Lafuente (stronk7) 56f4e2a7a2 Merge branch 'w35_MDL-35072_m24_mancleanup' of git://github.com/skodak/moodle 2012-08-27 18:07:24 +02:00
Eloy Lafuente (stronk7) 4299f5f6a8 Merge branch 'MDL-35026' of git://github.com/timhunt/moodle 2012-08-27 17:53:59 +02:00
Eloy Lafuente (stronk7) 7f7cda07f2 Merge branch 'MDL-35003' of git://github.com/timhunt/moodle 2012-08-27 17:50:55 +02:00
Petr Škoda eef59b1254 MDL-35070 fix incorrect enrol join 2012-08-27 17:20:47 +02:00
Petr Škoda 764094585b MDL-35072 fix bogus left enrol join
Credit goes to Eloy, thanks.
2012-08-27 17:19:07 +02:00
Eloy Lafuente (stronk7) 05a024d393 Merge branch 'MDL-35023' of git://github.com/timhunt/moodle 2012-08-27 16:32:30 +02:00
Eloy Lafuente (stronk7) d324394594 Merge branch 'MDL-35038' of git://github.com/timhunt/moodle 2012-08-27 16:24:17 +02:00
Eloy Lafuente (stronk7) a787a404ea Merge branch 'MDL-35048' of git://github.com/lazydaisy/moodle 2012-08-27 16:20:19 +02:00
Eloy Lafuente (stronk7) 6b2b869049 Merge branch 'MDL-35055' of git://github.com/timhunt/moodle 2012-08-27 16:16:14 +02:00
Eloy Lafuente (stronk7) aec4783bf6 Merge branch 'w35_MDL-35061_m24_enrolfields' of git://github.com/skodak/moodle 2012-08-27 15:58:19 +02:00
Aparup Banerjee f6bc04fe8a Merge branch 'MDL-31633-master' of git://github.com/ankitagarwal/moodle 2012-08-27 17:26:14 +08:00
Aparup Banerjee 5cbda72684 Merge branch 'MDL-34907' of git://github.com/raymondAntonio/moodle 2012-08-27 17:07:46 +08:00
David Monllao 65cd3f9c16 MDL-35029 core_session Refresh guest session if autologin as guest is enabled 2012-08-27 17:03:11 +08:00
Aparup Banerjee 889754ad31 Merge branch 'MDL-35004' of git://github.com/raymondAntonio/moodle 2012-08-27 16:56:03 +08:00
Rajesh Taneja 25ac6d30f2 MDl-34606 Administration: id for clear button is set properly, and disabled on page load 2012-08-27 15:13:52 +08:00
Ankit Agarwal b48ceab75b MDL-26882 profile: Applying cap check (site:viewuseridentity) to email field in user profile 2012-08-27 14:48:50 +08:00
Ankit Agarwal 222ada3765 MDL-26882 profile: Apllying the cap check site:viewuseridentity to user profile 2012-08-27 14:48:50 +08:00
Aparup Banerjee a1a5d8968e Merge branch 'MDL-34936-master-1' of git://github.com/andrewnicols/moodle 2012-08-27 14:20:15 +08:00
Rajesh Taneja 9e7cd6e7a5 MDL-34537 Enrolments: Assign alternative odd and even class to manual enrol popup 2012-08-27 13:59:09 +08:00
Aparup Banerjee d835cdb627 Merge branch 'MDL-34996_master' of git://github.com/grabs/moodle 2012-08-27 13:46:40 +08:00
Aparup Banerjee 13a20081d3 MDL-34429 fixed whitespace. 2012-08-27 12:07:15 +08:00
Aparup Banerjee ed170bd86c Merge branch 'wip-MDL-34429-master' of git://github.com/abgreeve/moodle 2012-08-27 12:04:45 +08:00
Aparup Banerjee 7cc32281fc Merge branch 'MDL-32386b' of git://github.com/srynot4sale/moodle 2012-08-27 11:30:44 +08:00
AMOS bot 3b062da97b Automatically generated installer lang files 2012-08-27 00:32:45 +00:00
Aaron Barnes 1caeb4b450 MDL-32386 completion: Fix incorrect method parameters 2012-08-27 10:57:52 +12:00
Mary Evans 96a25065da MDL-35048 theme_formal_white: removed p {margin:0} from style/formal_white.css which was causing a regression in some areas of theme 2012-08-26 20:02:15 +01:00
Petr Škoda 6f6c9e5c6a MDL-35072 coding style cleanup in enrol_manual 2012-08-26 16:37:49 +02:00
Petr Škoda 005e57a225 MDL-35052 show all enrolled users in enrol UI included those enrolled via disabled plugins 2012-08-26 16:28:18 +02:00
Petr Škoda d9669db9b3 MDL-35070 coding style cleanup in enrol_self 2012-08-26 16:02:38 +02:00
Petr Škoda dd6b1f15cf MDL-23875 add option to limit self-enrol to cohort members only 2012-08-26 15:56:01 +02:00
Petr Škoda 882fb83519 MDL-35061 add more custom fields for enrol instances
This delays the splitting of plugin specific enrol info from shared enrol table.
2012-08-26 15:55:03 +02:00
Petr Škoda 84bc3773cc MDL-35064 add option to keep enrolments when uninstalling plugin 2012-08-26 12:17:11 +02:00
Tim Hunt 19de315e83 MDL-34306 gift question format: allow import of general feedback
This change introduces #### as a separator for general feedback. You need
to add ####General feedback goes here as the last thing inside the {...}.
For example

// question: 123  name: Shortanswer
::Shortanswer::Which is the best animal?{
    =Frog#Good!
    =%50%Cat#What is it with Moodlers and cats?
    =%0%*#Completely wrong
    ####Here is some general feedback!
}

Note that this change is not entirely backwards compatible. It will break
any existing GIFT file where the character sequence #### us used between the
{} as part of the question. This seems highly unlikely.
2012-08-25 14:27:40 +01:00
Petr Škoda 33c7a2d121 MDL-35060 remove unused session test file 2012-08-25 10:14:38 +02:00
Andreas Grabs 2c65cd8462 MDL-34996 - Improve help text for Feedback dependancies 2012-08-24 23:08:55 +02:00
Andreas Grabs 9b90584f43 MDL-34952 - change get_info() to public access 2012-08-24 21:56:45 +02:00
Tim Hunt aa9d6e4300 MDL-32464 qformat multianswer: fix missing include.
Also, add a sample file that can be used for testing, and add a unit
test to verify this is working.
2012-08-24 16:56:18 +01:00
Andrew Robert Nicols fd0680ff4a MDL-34936 Warn if the sectioncache property is missing in a get_fast_modinfo call 2012-08-24 15:43:38 +01:00
Tim Hunt aa5f05110f MDL-35055 question import: slight error with the Match grades option.
Even in the 'Error if grade not listed case', it was applying a small
tolerance. In the case of a fuzzy match, it was returning the inexact
grade from the import file, rather than the precise grade that Moodle
was expecting.

That causes problems when the editing form is displayed, because the
value from the database does not match any of the available options, so
the grade is changed to 0%.
2012-08-24 15:34:20 +01:00
sam marshall 1d1917aeaa MDL-31973 Groups: groups_members table should have 'component', 'itemid' fields 2012-08-24 15:30:13 +01:00
Petr Škoda b3aefe3cc8 MDL-34990 improve custom toolbar setting parsing
It is probably better to parse the setting every time because somebody may put unsupported values directly into config.php, performance should not be an issue because we do not have editors on every page.
2012-08-24 16:11:00 +02:00
Petr Škoda 0bc9b897f9 MDL-34879 add upgrade.txt notes to editor_tinymce 2012-08-24 16:11:00 +02:00
Petr Škoda 883ecce0e9 MDL-34955 fix missing string 2012-08-24 16:11:00 +02:00
Petr Škoda 0b7858221c MDL-34955 add full TinyMCE subplugin management 2012-08-24 16:11:00 +02:00
Petr Škoda caaccae5da MDL-34878 add custom TinyMCE toolbar setting 2012-08-24 16:10:59 +02:00
Petr Škoda 116ad39b7a MDL-34877 add tinymce subplugin setting support
Includes migration of spell related settings to spellchecker plugin.
2012-08-24 16:10:59 +02:00
Jean-Michel Vedrine 7ace84e069 MDL-25492 Blackboard V6+ question import is broken. 2012-08-24 13:27:45 +02:00
Ankit Agarwal a8dfc4837e MDL-31633 grades: Fixing incorrect redirect when trying to edit grade letters from admin settings 2012-08-24 14:57:41 +08:00
Raymond Wijaya 694b11ab4a MDL-35004: Fix 'can not create a new instance of the assignment module with no completion setting' 2012-08-24 14:45:01 +08:00
Raymond Wijaya 93c18e73c2 MDL-34660: Fix SQL error in assignments module with Oracle Database I by replacing 'offline' with 'nosubmissions' 2012-08-24 14:32:04 +08:00
Raymond Wijaya 77b3e35105 MDL-34907: Add a missing string that triggers Javascript error in assignment upgrade tool 2012-08-24 13:30:55 +08:00
Raymond Wijaya a9b94affd4 MDL-34692: Fix the assignment submission agreement will not be visible if the submission statement is empty 2012-08-24 13:18:38 +08:00
Marina Glancy 42b1867410 MDL-34310 display grading method description inside render_preview
This way we can use the function gradingform_controller::render_preview() to display a preview for students in different modules
without worrying on gradingform-specific options on whether to display description for students or not
2012-08-24 11:51:20 +08:00
Ankit Agarwal 5fbe2118bc MDL-34549 libraries: Changing strictness of context::instance_by_id() when required 2012-08-24 11:30:35 +08:00
Ankit Agarwal d197ea4300 MDL-34549 libraries: Replace get_context_instance_by_id() by context::instance_by_id() 2012-08-24 11:30:10 +08:00
Tim Lock 3033853942 MDL-31623 Course: Course reset bypass modules, which are removed 2012-08-24 10:58:53 +08:00
Frederic Massart 2c86955027 MDL-34945 Repository: Creating an instance requires the user to have the permission to view it 2012-08-24 10:55:22 +08:00
Aaron Barnes 055cc8353d MDL-35042 blocks: Allow HTML block advanced setting to be toggled 2012-08-24 14:11:33 +12:00
Rajesh Taneja c517046e4d MDL-30121 Assignment 2.2: Draft submission files will not be included in zip, if activity is open 2012-08-24 09:48:45 +08:00
David Monllao 67d4424a6b MDL-29598 backup Avoid possible future duplicate grade letters
More info in restore_activity_grades_structure_step->process_grade_letter() comments
2012-08-24 08:54:49 +08:00
Justin Filip 5bc8335c6f MDL-29598 backup Check whether a grade_letters record exists before trying to insert a new record 2012-08-24 08:54:49 +08:00
Andrew Davis c6841df4df MDL-34406 message: removed an unnecessary string creation 2012-08-24 08:05:50 +08:00
Andrew Davis 6109f7afce MDL-30022 message: made the messaging history display code able to deal with multiple messages with the same timecreated value 2012-08-24 08:04:40 +08:00
Andrew Davis 4db11a24e8 MDL-26504 blog: made it delete external blog posts when the external blog is deleted 2012-08-24 08:01:15 +08:00
Tim Hunt ca9385682f MDL-34430 qtype essay: upgrade from MDL-31393 needs a progress bar. 2012-08-23 20:08:30 +01:00
Tim Hunt f8d354282c MDL-35038 quiz reports: clarify the API changes docs.
Also re-organise the file to put the most recent changes at the top.
2012-08-23 19:29:14 +01:00
M Kassaei 940f7b9171 MDL-35038 quiz reports: document the API changes in 2.3. 2012-08-23 19:29:13 +01:00
Tim Hunt e7a6779efb MDL-35026 qtype multianswer: misnamed string.
AMOS BEGIN
 MOV [questionnadded,qtype_multianswer],[questionsadded,qtype_multianswer]
AMOS END
2012-08-23 19:28:53 +01:00
Tim Hunt 2b3f70dbad MDL-35023 qtype calculated: fix strict syntax problem. 2012-08-23 19:28:38 +01:00
Tim Hunt 9c2e178e2f MDL-35003 questions: remove stray full stop after correct answer.
In a few situations, this full stop makes things a bit more grammatical,
but there are many other situations where it causes problems. So, on
balance we will remove it.
2012-08-23 19:28:20 +01:00
Tim Hunt d2acbd1ad4 MDL-34993 questions: convert numeric fields to float on load.
NUMBER(X,Y) typically come back from the DB as strings. If you don't
convert them to float, then when you display them, it appears as
1.0000000, which is not normally what you want.

Also, increase the size of the field on the edit form, so if you
question does have default mark 0.1234567, you can see that!
2012-08-23 19:28:05 +01:00
Tim Hunt 93266d0fe0 MDL-31837 numerical tolerance: better handling of very small tolerances.
The changes between Moodle 1.9 and 2.1 made the marking of very small
answers like 10^-20 almost impossible. This change fixes it.

This fix is almost entirely due the the careful research of Pierre
Pichet, who carefully testing various proposals, and worked out that
this one seemed best.
2012-08-23 19:15:15 +01:00
Tim Hunt 802f408f35 MDL-31244, MDL-25063 algebra filter: fix common false positives.
There are two well-known cases where the algebra filter messes up input
that is obviously not meant for the algebra filter:

1. Copy and paste of unified diffs.

2. @@PLUGINFILE@@ tokens in the HTML that are due to be replaced by the
files API.

This fix detects these two cases, and just stops the algebra filter from
replacing them.
2012-08-23 19:14:40 +01:00
Eloy Lafuente (stronk7) d71c486507 weekly release 2.4dev 2012-08-23 19:26:37 +02:00
Eloy Lafuente (stronk7) 920d5b8d1a Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-08-23 19:18:22 +02:00
Eloy Lafuente (stronk7) 7f4de36ddb MDL-31957 Course reset: Add missing global 2012-08-23 02:04:13 +02:00
Eloy Lafuente (stronk7) 0a31b2f308 Merge branch 'MDL-34738_fixup' of git://github.com/jmvedrine/moodle 2012-08-22 16:36:53 +02:00
Jean-Michel Vedrine 7263fd6c53 MDL-34738 fix for the problem found during testing : dat files not accepted on some servers 2012-08-22 15:19:54 +02:00
Dan Poltawski e073565364 MDL-34444 - actually display the title, just don't link it..
Don't worry, i'm going on holiday, so i'll be away from this git repo
for a while to prevent any more mess.
2012-08-22 11:16:07 +02:00
Dan Poltawski bd43383d7e MDL-34444 course - don't show to 'unavaibile' sections title
Instead we just show the availability info in the index page,
this makes the navigation etc much simpler.
2012-08-22 10:50:39 +02:00
Dan Poltawski 134e28b79c Revert "MDL-34444 course: show section availability info"
Turns out this change was just wrong, we shouldn't be allowing linking
to unaavilable sections. Just show the availability information on the
'index page'

This reverts commit 87a31bb5d8.
2012-08-22 10:50:28 +02:00
Eloy Lafuente (stronk7) fb65ab0006 MDL-35010 availability: fix sometimes missing fieldset 2012-08-22 09:49:42 +02:00
Dan Poltawski 569747faec MDL-34444 course: Dont display links to hidden sections
This is what happens when you dont use the navigation api
2012-08-22 08:40:52 +02:00
Dan Poltawski 29eaccab15 MDL-34444 course: show section availability info
When available, rather than a capability error.
2012-08-22 08:40:48 +02:00
Dan Poltawski 8b63e25692 Merge branch 'MDL-35000' of git://github.com/timhunt/moodle 2012-08-22 10:25:26 +08:00
Dan Poltawski 957a5fa7a4 MDL-34853 tests - fix broken phpunit test 2012-08-22 10:13:52 +08:00
Dan Poltawski d94ef56395 MDL-34870 enrol_cohort - don't need to do useless work 2012-08-22 10:02:53 +08:00
Dan Poltawski cff2026980 Merge branch 'MDL-34870' of git://github.com/aolley/moodle 2012-08-22 09:52:48 +08:00
Eloy Lafuente (stronk7) b6b34345ac Merge branch 'MDL-34853' of local stronk7 repo.
(originally w34_MDL-34853_m24_durationsetting @ git://github.com/skodak/moodle.git)
2012-08-22 03:41:14 +02:00
Eloy Lafuente (stronk7) 444af7c65f MDL-34853 code style fixes 2012-08-22 03:25:40 +02:00
Dan Poltawski 23b5bbf49d Merge branch 'MDL-34733' of git://github.com/timhunt/moodle 2012-08-22 09:16:10 +08:00
Petr Škoda ef2737a4df MDL-34853 use new duration setting type in enrol_paypal 2012-08-22 03:00:12 +02:00
Petr Škoda 0bf660cad6 MDL-34853 use new duration setting type in enrol_self 2012-08-22 03:00:12 +02:00
Petr Škoda 38257347ed MDL-34853 add new admin setting for duration (time in seconds) 2012-08-22 03:00:11 +02:00
Petr Škoda 090b173437 MDL-34853 add weeks unit to forms element duration 2012-08-22 03:00:11 +02:00
Petr Škoda 47c8b9788f MDL-34853 use new duration setting type in enrol_manual 2012-08-22 03:00:11 +02:00
Eloy Lafuente (stronk7) df27efbd46 Merge branch 'wip-mdl-32759-warning' of git://github.com/rajeshtaneja/moodle 2012-08-22 02:33:34 +02:00
Eloy Lafuente (stronk7) b85b7b34b2 Merge branch 'MDL-34702' of git://github.com/timhunt/moodle 2012-08-22 02:10:22 +02:00
Eloy Lafuente (stronk7) 9075481920 Merge branch 'MDL-34795' of git://github.com/srynot4sale/moodle 2012-08-22 02:04:47 +02:00
Eloy Lafuente (stronk7) a477affda0 Merge branch 'w34_MDL-34864_m24_enrolcat' of git://github.com/skodak/moodle 2012-08-22 01:58:13 +02:00
Eloy Lafuente (stronk7) 41624a5682 Merge branch 'w34_MDL-34776_m24_notinsql' of git://github.com/skodak/moodle 2012-08-22 01:55:34 +02:00
Eloy Lafuente (stronk7) 479fa62207 MDL-34866 whitespace fix 2012-08-22 01:48:45 +02:00
Eloy Lafuente (stronk7) 1f0f592cea Merge branch 'MDL-34866' of git://github.com/rlorenzo/moodle 2012-08-22 01:47:20 +02:00
Dan Marsden f518ff588d MDL-34994 mod_choice: fix restore of user responses - use correct optionid 2012-08-22 09:01:54 +12:00
Eloy Lafuente (stronk7) dd12051df2 Merge branch 'MDL-34899b' of git://github.com/srynot4sale/moodle 2012-08-21 22:24:20 +02:00
Eloy Lafuente (stronk7) 77dd8ab1de Merge branch 'w34_MDL-34893_m24_phpunitparams' of git://github.com/skodak/moodle 2012-08-21 21:18:15 +02:00
Tim Hunt 172238f435 MDL-35000 quiz: Complete activity report broken by bad require.
Fix the stupid error that caused this. Also, make all the other
require_once calls in the file consistent.
2012-08-21 18:01:32 +01:00
Tim Hunt d869de66a6 MDL-34733 quiz 'secure' mode: finish review link broken in previews
This fix a small API change in mod_quiz_renderer::finish_review_link.
At least the required change is an improvement, since it gives the
renderer more flexibility.
2012-08-21 12:08:57 +01:00
Dan Poltawski d81c02feef Merge branch 'w34_MDL-34876_m24_tinymceuninstall' of git://github.com/skodak/moodle 2012-08-21 15:44:46 +08:00
Petr Škoda 2cd58c83ea MDL-34876 improve coding style 2012-08-21 09:40:10 +02:00
Juho Viitasalo 9ce8411317 Changed two notification to output correctly 2012-08-21 15:33:39 +08:00
Aparup Banerjee 9949e91a57 MDL-34991 Messaging : Fixed rendering of notifications with CRLF to go through text_to_html() in message notifications view page. 2012-08-21 15:23:56 +08:00
Dan Poltawski 9e5680f100 MDL-34648 - increment version number 2012-08-21 14:40:51 +08:00
Dan Poltawski f418f82e52 Merge branch 'MDL-34648-master' of git://github.com/FMCorz/moodle 2012-08-21 14:39:54 +08:00
Dan Poltawski 5d9e2ab19e Merge branch 'MDL-34691_assign_overdue_by' of https://github.com/SWiT/moodle 2012-08-21 14:36:41 +08:00
Adrian Greeve 2b7ece005e MDL-6424 - blocks - Adding a warning screen when the user clicks the delete link. 2012-08-21 14:31:24 +08:00
Dan Poltawski b6476885a4 Merge branch 'wip-mdl-34293' of git://github.com/rajeshtaneja/moodle 2012-08-21 13:56:58 +08:00
Rajesh Taneja 4625404451 MDL-34293 Themes: Added tbody to flexible table 2012-08-21 13:50:38 +08:00
Frederic Massart ad778c84e8 MDL-34648 Course: Added capability to control sections moving 2012-08-21 13:31:19 +08:00
Dan Poltawski 509b17c71d Merge branch 'MDL-32705' of git://github.com/timhunt/moodle 2012-08-21 12:37:43 +08:00
Dan Poltawski 828ecbaf13 Merge branch 'MDL-34569_accessibility' of git://github.com/rwijaya/moodle 2012-08-21 12:35:05 +08:00
Dan Poltawski 34f5898f5e Merge branch 'MDL-34118' of git://github.com/timhunt/moodle 2012-08-21 12:29:16 +08:00
Eric Merrill 59d410ebb4 MDL-34363 gradebook Adding check to prevent incorrect override when a blank feedback is submitted. 2012-08-21 00:24:55 -04:00
Dan Poltawski 3a66d4255d MDL-31341 mod_assign: fixup minor coding style issues 2012-08-21 12:18:40 +08:00
Dan Poltawski 94fb9f9fae Merge branch 'MDL-31341' of git://github.com/netspotau/moodle-mod_assign 2012-08-21 12:13:51 +08:00
Dan Poltawski 6c6604350d Merge branch 'w34_MDL-34901_m24_useraccess' of git://github.com/skodak/moodle 2012-08-21 12:02:17 +08:00
Dan Poltawski 74c0bc34d7 Merge branch 'MDL-34742-master' of git://github.com/FMCorz/moodle 2012-08-21 11:59:14 +08:00
Dan Poltawski 92158c9b4a Merge branch 'wip-mdl-32797' of git://github.com/rajeshtaneja/moodle 2012-08-21 11:48:58 +08:00
Dan Poltawski 29e8b15d83 MDL-34808 qformat_examview - increment version 2012-08-21 11:05:22 +08:00
Dan Poltawski 6a721e3ebb Merge branch 'MDL-34808' of git://github.com/jmvedrine/moodle 2012-08-21 11:00:38 +08:00
Dan Poltawski 8cf68e0d5c Merge branch 'MDL-34887' of git://github.com/raymondAntonio/moodle 2012-08-21 10:53:53 +08:00
David Monllao 649ac85dec MDL-31496 mod_data Replacing inline styles for CSS classes in templates and browse view 2012-08-21 10:40:29 +08:00
Paul Charsley 4a52712627 Merge branch 'master' of https://github.com/moodle/moodle 2012-08-21 14:39:26 +12:00
Dan Poltawski d642260cfe Merge branch 'w34_MDL-34954_m24_subplugins' of git://github.com/skodak/moodle 2012-08-21 10:34:28 +08:00
Dan Poltawski 115728888a MDL-34738 qformat_blackboard - increment version number 2012-08-21 09:56:29 +08:00
Dan Poltawski 2a455e13e7 Merge branch 'MDL-34738' of git://github.com/jmvedrine/moodle 2012-08-21 09:39:50 +08:00
Eloy Lafuente (stronk7) 70d6e4c123 Merge branch 'MDL-34941' of https://github.com/mouneyrac/moodle 2012-08-21 02:42:33 +02:00
Eloy Lafuente (stronk7) fffb9b9064 Merge branch 'w34_MDL-34912_m24_description' of git://github.com/skodak/moodle 2012-08-21 02:39:10 +02:00
Eloy Lafuente (stronk7) ee998a687c Merge branch 'MDL-34889' of git://github.com/timhunt/moodle 2012-08-21 02:24:50 +02:00
Eloy Lafuente (stronk7) 2bdbe66264 Merge branch 'MDL-34810' of git://github.com/timhunt/moodle 2012-08-21 01:36:15 +02:00
Eloy Lafuente (stronk7) afe404068d Merge branch 'MDL-29847' of git://github.com/timhunt/moodle 2012-08-21 01:28:34 +02:00
Eloy Lafuente (stronk7) 57733008c9 Merge branch 'MDL-31957-master' of git://github.com/sammarshallou/moodle 2012-08-21 01:21:18 +02:00
Eric Merrill 13f87cb21e MDL-34985 gradebook Fixing issue where default parent in Full View Add Category could be inconsistent.
Turns out the correct default was already computed, but was not being applied to the setting.
2012-08-20 17:09:40 -04:00
Eloy Lafuente (stronk7) 2672817478 Merge branch 'w34_MDL-34960_m24_gmapsv2drop' of git://github.com/skodak/moodle 2012-08-20 20:34:13 +02:00
Eloy Lafuente (stronk7) 5bed363980 Merge branch 'w34_MDL-34959_m24_gmapsv3' of git://github.com/skodak/moodle 2012-08-20 20:28:59 +02:00
Eloy Lafuente (stronk7) fae6f7cad0 Merge branch 'w34_MDL-34868_m24_gmapsv2' of git://github.com/skodak/moodle 2012-08-20 20:17:27 +02:00
Eloy Lafuente (stronk7) 040d4c63be Merge branch 'MDL-34756-master' of git://github.com/FMCorz/moodle 2012-08-20 16:34:18 +02:00
Eloy Lafuente (stronk7) 53db05a507 Merge branch 'MDL-28531-master' of git://github.com/FMCorz/moodle 2012-08-20 16:28:09 +02:00
Jason Ilicic b3e10b89e9 MDL-34529: Fixed ordering of course sections when performing import/restore by adding the sort parameter. 2012-08-20 14:00:45 +02:00
Nathan Mares 4cb18cb080 MDL-34372: Fix query in backup_cron_helper so it works on Postgres 8.3
Amended by stronk7@moodle.org to use uppercase SQL keywords.
2012-08-20 13:27:32 +02:00
David Monllao f70a4f124b MDL-31496 mod_data Replacing inline styles for CSS classes in text inputs 2012-08-20 17:17:24 +08:00
David Monllao 0d284a8bd6 MDL-31496 mod_data Replacing inline styles for CSS classes in search containers 2012-08-20 17:16:15 +08:00
Jean-Michel Vedrine 01ef6c815e MDL-34808 load sample xml file from fixtures in tests 2012-08-20 10:44:34 +02:00
David Monllao b859dc533f MDL-31496 mod_data Replacing inline styles for CSS classes in textarea elements 2012-08-20 16:44:01 +08:00
Dan Poltawski 821aac54b4 Merge branch 'MDL-33362-master' of git://github.com/ankitagarwal/moodle 2012-08-20 16:01:09 +08:00
Dan Poltawski 9522185b3c Merge branch 'MDL-34779-master' of git://github.com/ankitagarwal/moodle 2012-08-20 15:58:22 +08:00
Dan Poltawski 328e4d280c Merge branch 'w34_MDL-34956_m24_pluginlibregression' of git://github.com/skodak/moodle 2012-08-20 15:56:41 +08:00
Michael de Raadt 6e56d9dcb7 MDL-34779 settings: Updating lang string corrposnding to the fullnamedisplay setting 2012-08-20 15:46:54 +08:00
Jean-Michel Vedrine 735702f62c MDL-34738 load sample dat file in tests 2012-08-20 09:41:02 +02:00
Dan Poltawski 9d218eedb5 Merge branch 'w34_MDL-34740_m24_pageclass' of git://github.com/skodak/moodle 2012-08-20 15:33:36 +08:00
Dan Poltawski e78fa88938 Merge branch 'w34_MDL-34873_m24_tagstrict' of git://github.com/skodak/moodle 2012-08-20 15:18:32 +08:00
Dan Poltawski 20db0a6ff0 Merge branch 'MDL-34934' of git://github.com/stronk7/moodle 2012-08-20 14:46:42 +08:00
Dan Poltawski eca92c379e Merge branch 'MDL-34957_master' of git://github.com/lazydaisy/moodle 2012-08-20 14:23:22 +08:00
Dan Poltawski 09b07f748c Merge branch 'MDL-34937' of git://github.com/timhunt/moodle 2012-08-20 14:19:22 +08:00
Dan Poltawski bf2e9ae1e8 Merge branch 'MDL-34377' of git://github.com/raymondAntonio/moodle 2012-08-20 14:11:37 +08:00
Aaron Barnes 154a72b002 MDL-34332 completion: timeenrolled not always set correctly 2012-08-20 16:51:51 +12:00
Dan Poltawski 7447d328dd Merge branch 'MDL-31926-master' of git://github.com/FMCorz/moodle 2012-08-20 12:12:54 +08:00
Dan Poltawski c46b44154a Merge branch 'MDL-34872-master' of git://github.com/FMCorz/moodle 2012-08-20 12:10:01 +08:00
Dan Poltawski a563bdc119 Merge branch 'MDL-34535-master' of git://github.com/ankitagarwal/moodle 2012-08-20 12:06:50 +08:00
Dan Poltawski 388309ca36 Merge branch 'wip-MDL-31810-master' of git://github.com/phalacee/moodle 2012-08-20 12:01:20 +08:00
Dan Poltawski f646845164 Merge branch 'wip-mdl-31734' of git://github.com/rajeshtaneja/moodle 2012-08-20 11:57:15 +08:00
Dan Poltawski 6cf0952354 Merge branch 'MDL-30405-master' of git://github.com/FMCorz/moodle 2012-08-20 11:39:53 +08:00
Dan Poltawski d8ae194a37 Merge branch 'MDL-30370_master' of git://github.com/dmonllao/moodle 2012-08-20 11:21:59 +08:00
Frederic Massart d5bdbbba26 MDL-34756 Unit Tests: Move backup helper tests 2012-08-20 10:24:37 +08:00
Adrian Greeve 5a3f67af27 MDL-32108 - navigation - After logging in the user is directed to mysite instead of site home.
Thanks to lurii Kucherov for this patch.
2012-08-20 09:42:12 +08:00
Aaron Barnes 14bcde673d MDL-34899 blocks/html: Allow instances to specify additional CSS classes 2012-08-20 13:27:08 +12:00
Petr Škoda 2ea6d5686f MDL-34893 use standard options in Hint_ResultPrinter
This is a very nasty hack!
2012-08-19 22:09:46 +02:00
Petr Škoda 704533fca7 MDL-34960 drop deprecated Google Maps API V2 2012-08-19 20:07:27 +02:00
Petr Škoda cec7d43591 MDL-34959 add Google Maps API V3 support 2012-08-19 19:52:35 +02:00
Petr Škoda b32ec7a3b9 MDL-34868 update deprecated Google maps API V2 key info 2012-08-19 18:20:59 +02:00
Jean-Michel Vedrine 9d06b9eef9 MDL-34808 qformat examview Add phpunit tests to examview import format 2012-08-19 16:30:27 +02:00
Petr Škoda fcb46048c1 MDL-34901 fix user login times handling 2012-08-19 15:33:31 +02:00
Petr Škoda 7c2cc9c85e MDL-34873 fix multiple E_STRICT tag related problems 2012-08-19 10:17:12 +02:00
Mary Evans 27d36445a9 MDL-34957 theme_base: made small change to custommenu CSS in style/core.css to fix vertical arrow overlap in menu item 2012-08-19 01:34:15 +01:00
AMOS bot 6916b5c4bf Automatically generated installer lang files 2012-08-19 00:31:35 +00:00
Petr Škoda e197d9a457 MDL-34956 fix recent plugin parent fetching regression 2012-08-18 21:52:44 +02:00
Petr Škoda f8c9397222 MDL-34876 add tinymce subplugin uninstallation 2012-08-18 14:03:06 +02:00
Petr Škoda 7d59d8dae1 MDL-34954 allow subplugins to define plugininfo_* class 2012-08-18 13:03:58 +02:00
Petr Škoda 975311d3d2 MDL-34954 prevent false IDE code inspection errors 2012-08-18 12:47:58 +02:00
Petr Škoda b4bfdf5a53 MDL-34954 include filelib stuff only when needed 2012-08-18 12:46:05 +02:00
Petr Škoda 8d9b8a4894 MDL-34864 bump up enrol category sync version 2012-08-18 11:39:03 +02:00
Petr Škoda 4b0b9f1d9d MDL-34864 add enrol_category unit tests for sync 2012-08-18 11:34:36 +02:00
Petr Škoda 6c326e2b19 MDL-34864 improve enrol_category phpdocs 2012-08-18 11:34:15 +02:00
Petr Škoda 455748c882 MDL-34864 add verbose option to CLI enrol_category sync 2012-08-18 11:32:39 +02:00
Jean-Michel Vedrine 17ab0e74f9 MDL-34738 qformat blackboard: blackboard format is broken 2012-08-18 10:36:02 +02:00
Petr Škoda 147b9760da MDL-34864 improve enrol_category sync performance 2012-08-18 10:04:51 +02:00
Petr Škoda 3edc37cb13 MDL-34740 add class file option to $CFG->moodlepageclass and $CFG->blockmanagerclass 2012-08-18 10:02:46 +02:00
Petr Škoda cb94adc252 MDL-34776 improve multiple "NOT IN" enrolment and role related queries 2012-08-18 09:56:25 +02:00
Petr Škoda 4a38e65977 MDL-34912 fix invalid descriptionformat default handling 2012-08-18 09:52:31 +02:00
Tim Hunt 607b0a705f MDL-34118 question backup: API improvement following Eloy's review. 2012-08-17 13:15:41 +01:00
Juergen Zimmer 895d364bcf MDL-34118 question backup: fixes for usage prefixes in backups. 2012-08-17 11:15:11 +01:00
Tim Hunt 3e3ae0ee11 MDL-34118 question backup: a mod can use usages in different ways.
An activity module might want to use question_usages in different ways.
We should suppport this, because it lets people make interesting
activities.

At the moment, the backup and restore code does not support this,
because it uses fixed element names for the question_usage element and
its children. This fix changes things so that a prefix can be appended
to all the element names.
2012-08-17 11:13:10 +01:00
sam marshall 5ae17b09a8 MDL-31957 Course reset: Does not erase activity completion data 2012-08-17 10:35:44 +01:00
Frederic Massart 7b05e14659 MDL-28531 Unit Tests: Fixed tests to work with core update 2012-08-17 15:00:10 +08:00
Frederic Massart 4d91f7354e MDL-28531 Backup: Automated backups run when they are scheduled 2012-08-17 15:00:10 +08:00
Frederic Massart 6c6ed54acb MDL-34648 Chat: No more errors when sentence begin with 'To' 2012-08-17 14:59:57 +08:00
Frederic Massart c216eb2008 MDL-31926 Course: Obfuscating an email supports subject and body parameters 2012-08-17 14:59:46 +08:00
David Scotson 289320528c MDL-34293 Themes: Added thead to flexible table 2012-08-17 14:50:20 +08:00
Matt Meisberger dbc623c4fc MDL-34742 - adding ability to move blocks into empty column 2012-08-17 14:44:06 +08:00
Rajesh Taneja 11b8f61718 MDL-31734 Course: removed unused sectiontitle string 2012-08-17 14:33:05 +08:00
Rajesh Taneja e436064fe1 MDL-32797 wiki 2.0: Default value for "First page name" is not set 2012-08-17 14:32:08 +08:00
Rajesh Taneja 85c13c6936 MDL-26492 Lesson: lesson_get_user_grades will return grade of all users if userid=0 2012-08-17 14:27:13 +08:00
Raymond Wijaya a1d31f73fa MDL-34887: Add hyperlinks to names in the Assignment's grading table 2012-08-17 12:34:16 +08:00
Rossiani Wijaya 85bc1f4848 MDL-34569 - add label for search wiki input text 2012-08-17 11:35:11 +08:00
Jerome Mouneyrac 4491273b1a MDL-34941 correct timestamp range: startdate of external fct create_course PHPunit test 2012-08-17 11:00:14 +08:00
Rossiani Wijaya f61b427ab6 MDL-34569 accessibility compliance for wiki module: Add label for input text and select tag 2012-08-17 10:22:26 +08:00
Damyon Wiese 79ed4d8475 MDL-31341: Add custom completion rule to assignment: 'submit' 2012-08-17 09:05:40 +08:00
AMOS bot 8256662754 Automatically generated installer lang files 2012-08-17 00:31:48 +00:00
Tim Hunt 698c42ee61 MDL-34937 quiz responses reports: attempt grade not shown. 2012-08-16 21:34:17 +01:00
Eloy Lafuente (stronk7) 1a33536c4d MDL-34934 general: Delete unnecessary .gitignore 2012-08-16 20:43:24 +02:00
Tim Hunt 6df46aea1d MDL-34702 quiz DB: questiondecimalpoints has wrong default.
Thanks to the folks at UCL for tracking down this problem. It has only
hidden for 2+ years!
2012-08-16 17:33:08 +01:00
Tim Hunt 85b72a7511 MDL-34889 phpunit: progress output in util.php --drop.
It is slow for me, and it is nice to know that something is going on.
2012-08-16 17:13:59 +01:00
Tim Hunt be77e9b6a8 MDL-34810 question bank: user prefs for some display options
The options that are remembered persistently are
* Also show questions from sub-categories
* Also show old questions
* Show question text in the question list
* Number of questions per page
2012-08-16 17:13:03 +01:00
Tim Hunt f238bb73d1 MDL-32705 backup ui: add select all/none JavaScript on schema screens 2012-08-16 17:04:05 +01:00
Tim Hunt 2ec325c252 MDL-29847 question preview: garbage collect old preview data.
This adds cron code which looks for question previews that have not been
touched for more than 24 hours, and deletes them.

We try to delete previews immediately. For example if the user clicks
start again, then we immediately delete their previous preview. However,
we can't do that if they just close the preview window. Hence we need
some cron code to clean up old preview that have got left lying around.

Normally, this code will not have much to do, so it will be very fast,
so we can afford to run it every cron.

This has been implemented in such a way that in future it will be easy
to add other cron code to the question bank.

Sadly, to make this work on MySQL, we require a horrible hack in the
already hacky delete_usage_records_for_mysql function.
2012-08-16 17:02:01 +01:00
Eloy Lafuente (stronk7) c92d6f417c weekly release 2.4dev 2012-08-16 17:27:40 +02:00
Eloy Lafuente (stronk7) 0e6da6f7df Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-08-16 17:21:33 +02:00
Eric Merrill 710f1a344f MDL-34376 mod_assign Fixing flaw in previous commit with not defining . 2012-08-16 10:05:26 -04:00
sam marshall 007bf47f10 MDL-34446 Fix bugs in previous commit 2012-08-16 14:37:11 +08:00
Raymond Wijaya 9da954c0b6 MDL-34377: Fix: assignments overview page shows a unset due date as Epoch and counts draft submissions 2012-08-16 14:31:39 +08:00
Rossiani Wijaya 1b2bd9768d MDL-34563 - change string firstname to lastname and add accesshide class 2012-08-16 14:16:57 +08:00
Rossiani Wijaya 3a5543d43b MDL-34563 - removed double labeling and add label for input text 2012-08-16 14:15:13 +08:00
Ankit Agarwal 2609ae6f04 MDL-33362 book: Parse links to book modules from 1.9 backups 2012-08-16 13:32:00 +08:00
Aparup Banerjee 01ac783fb8 Merge branch 'MDL-34565_accessibility' of git://github.com/rwijaya/moodle 2012-08-16 11:51:23 +08:00
Jason Fowler b2e7db07fc MDL-31810 - Fixing unclosed DIV tags throughout Moodle 2012-08-16 10:37:37 +08:00
Petr Škoda e4945f5f54 MDL-34852 do not use frozen date select field because it is ugly 2012-08-16 10:17:06 +08:00
Petr Škoda 3f038004e6 MDL-34852 add missing timecreated form data 2012-08-16 10:16:14 +08:00
Dan Poltawski b6582000f5 Merge branch 'MDL-34905' of git://github.com/timhunt/moodle 2012-08-15 17:53:55 +08:00
Tim Hunt 4be550c57d MDL-34905 quiz: missing global $DB;
This code normally only runs when JS is disabled, which is why this was
not noticed before.
2012-08-15 10:25:25 +01:00
David Monllao ce7382c959 MDL-30370 mod_forum - Removing duplicate seleted field in the DB query
Credit to Iñigo Zendegi
2012-08-15 17:03:07 +08:00
Rossiani Wijaya 38befbef7a MDL-34565 - remove duplicate labeling 2012-08-15 16:21:25 +08:00
Aparup Banerjee 6e12c2156e MDL-22773 Database : fixed whitespace. 2012-08-15 10:04:24 +08:00
Aparup Banerjee dbf2c5bfef Merge branch 'MDL-22773' of git://github.com/bostelm/moodle 2012-08-15 10:01:46 +08:00
Eloy Lafuente (stronk7) 50b9b2e552 Merge branch 'MDL-34583' of git://github.com/netspotau/moodle-mod_assign 2012-08-15 03:35:34 +02:00
Eloy Lafuente (stronk7) 7ccede7af8 Merge branch 'MDL-34862' of git://github.com/timhunt/moodle 2012-08-15 03:30:56 +02:00
Dan Poltawski 9e586967a6 MDL-34539 course - allow negative section numbers
This gives course format authors more flexibility.

Thanks to Itamar Tzadok for the suggestion.
2012-08-15 03:26:26 +02:00
Eloy Lafuente (stronk7) 92f2403bf3 Merge branch 'master_MDL-34593_add_extra_plugin_param_to_get_form_elements_module' of git://github.com/kanikagoyal/moodle 2012-08-15 03:18:58 +02:00
Eloy Lafuente (stronk7) 4998a013aa Merge branch 'MDL-34885' of git://github.com/timhunt/moodle 2012-08-15 03:16:16 +02:00
Damyon Wiese 1cf98c021e MDL-34583: Assignment upgrade loses comments from onlinetext and offline assignment types. 2012-08-15 08:50:47 +08:00
AMOS bot 1f4e661fd1 Automatically generated installer lang files 2012-08-15 00:31:32 +00:00
Eloy Lafuente (stronk7) 717cabb7a4 Merge branch 'MDL-25347_master' of git://github.com/dmonllao/moodle 2012-08-15 02:03:52 +02:00
Sam Hemelryk 0bb0f086ac Merge branch 'MDL-33640_master' of git://github.com/MaxThrax/moodle 2012-08-15 11:48:40 +12:00
Sam Hemelryk c52c034064 Merge branch 'MDL-33531_master' of git://github.com/dmonllao/moodle 2012-08-15 11:24:45 +12:00
Eloy Lafuente (stronk7) 6b80e18a8b Merge branch 'MDL-34745' of git://github.com/danpoltawski/moodle 2012-08-15 01:22:49 +02:00
Eloy Lafuente (stronk7) 1135ae4908 Merge branch 'MDL-29192' of git://github.com/danpoltawski/moodle 2012-08-15 01:16:48 +02:00
Eloy Lafuente (stronk7) 76b97631b0 Merge branch 'MDL-25012' of git://github.com/danpoltawski/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-08-15 00:41:04 +02:00
Eloy Lafuente (stronk7) 267c898bfd Merge branch 'w33_MDL-34782_m24_mysqlunsigned' of git://github.com/skodak/moodle 2012-08-14 23:09:30 +02:00
Dan Poltawski 1c1246ec28 MDL-34829 course - allow directly linked sections to work.
Even if not in single section mode.
2012-08-14 22:56:36 +02:00
Eloy Lafuente (stronk7) 92886a8e14 Merge branch 'MDL-34783-master-1' of git://git.luns.net.uk/moodle 2012-08-14 22:45:06 +02:00
Rex Lorenzo 1f09018af7 MDL-34866 - Make "course display" default a site configurable option
* Moved COURSE_DISPLAY_SINGLEPAGE and COURSE_DISPLAY_MULTIPAGE constants from courselib to moodlelib.php
* Using course display constants in course default admin setting page
2012-08-14 12:12:14 -07:00
Tim Hunt 6d3b1e1f9d MDL-34885 phpunit: better cygwin detection.
For some reason, on my computer, $_SERVER['SHELL'] was not set, so I
changed the test to also consider $_SERVER['TERM']. This now works for
me.
2012-08-14 14:06:24 +01:00
Henning Bostelmann 4f304eeb3d MDL-22773 Database module export: include internal fields
Fields included:
 * User details (fullname, username, email)
 * Time added/modified
 * Approval status
2012-08-14 11:14:07 +01:00
Frederic Massart 928928490d MDL-34872 Backup: Backup does not fail when a user is deleted 2012-08-14 17:28:31 +08:00
Adrian Greeve 941c251304 MDL-34429 - lib - Changed the log downloads to use the new CSV class. 2012-08-14 16:03:21 +08:00
Aparup Banerjee 50f0c35dd3 Merge branch 'master_MDL-34382_add_new_option_to_flag_modules_that_support_plagiarism_plugins' of git://github.com/kanikagoyal/moodle 2012-08-14 15:48:19 +08:00
Dan Poltawski 3542e01a0c MDL-34741 yui - version bump for 2in3 and upgrade.txt note 2012-08-14 15:33:32 +08:00
Dan Poltawski 06c548c783 Merge branch 'w33_MDL-34741_m24_yui2in3' of git://github.com/skodak/moodle 2012-08-14 15:33:10 +08:00
Aparup Banerjee 6a9718f254 Merge branch 'wip-MDL-34748-master' of git://github.com/marinaglancy/moodle 2012-08-14 15:29:42 +08:00
Ankit Agarwal 194ab42205 MDL-34535 message: userto should use is_number instead of is_init 2012-08-14 14:41:00 +08:00
Aparup Banerjee 1474543a20 Merge branch 'MDL-34563_accessibility' of git://github.com/rwijaya/moodle 2012-08-14 14:34:19 +08:00
Rossiani Wijaya 24a0e85934 MDL-34563 - change plural strings and removed colon for accesshide label 2012-08-14 13:59:45 +08:00
Aparup Banerjee 9fe8a6e02f Merge branch 'MDL-34565_accessibility' of git://github.com/rwijaya/moodle 2012-08-14 13:53:19 +08:00
Dan Poltawski 16f1d5010e Merge branch 'MDL-34728' of git://github.com/timhunt/moodle 2012-08-14 13:28:49 +08:00
Dan Poltawski 10e0769283 Merge branch 'MDL-34793' of git://github.com/merrill-oakland/moodle 2012-08-14 13:25:25 +08:00
Eric Merrill 8c0cf5be66 MDL-34793 mod_assign Fix rendering error that causes student view to break in some cases.
When feedback is switched on for a assignment, and the teacher enters a grade through the gradebook, the student
view would become broken, throwing a coding error. Added check that $status->grade is not empty before passing
to assign_feedback_XXX::is_empty(), as that function expects an object.
2012-08-14 00:41:50 -04:00
Adam Olley 238a7b3ae0 MDL-34870: Prevent cohort enrol sync when updating course record 2012-08-14 13:56:44 +09:30
Dan Poltawski 2776d5b114 Merge branch 'MDL-34807' of git://github.com/timhunt/moodle 2012-08-14 12:07:59 +08:00
Dan Poltawski 78145050c6 Merge branch 'w33_MDL-33041_m24_tinymceplugins' of git://github.com/skodak/moodle 2012-08-14 11:58:05 +08:00
Rajesh Taneja dea75f643d MDL-32759 Assignment: Grades will not be scaled for new assignment module, and added warning message for user 2012-08-14 11:23:33 +08:00
Rajesh Taneja daaf84ec44 MDL-32759 Assignment 2.2: Changing grade for existing assignments will show warning that grades will not be scaled 2012-08-14 11:23:33 +08:00
Aparup Banerjee 060eaca70e Merge branch 'MDL-32344_master' of git://github.com/dmonllao/moodle 2012-08-14 10:55:49 +08:00
David Monllao f813321718 MDL-32344 blog Replacing tables for div containers 2012-08-14 10:47:17 +08:00
Paul Charsley 3a2b8bb09d Merge branch 'master' of https://github.com/moodle/moodle 2012-08-14 14:00:51 +12:00
Rex Lorenzo 79e250dbdc MDL-34866 - Make "course display" default a site configurable option 2012-08-13 16:24:12 -07:00
Tim Hunt 4c16e191e1 MDL-34862 question preview: improve preview ownership check.
Users should only be able to access their own quetion preview. In the
past, for reasons I can no longer remember, this was enforced
using the session. It is much better to set the question_usage to belong
to the user's context.
2012-08-13 16:53:15 +01:00
Kanika Goyal 67fbfe8b54 MDL-34593: Plagiarism API - add extra plgin param to get_form_elements_module 2012-08-13 20:31:45 +05:30
Petr Škoda 43552bd2c3 MDL-33041 fix tabs in all tinymce files except those we update from upstream
The moodleimage plugin is a fork of standard advimage plugin,
the spellchecker is a fork of https://github.com/tinymce/tinymce_spellchecker_php.
2012-08-13 14:13:46 +02:00
Petr Škoda 8ccb3ce861 MDL-33041 improve our tinymce plugin loader docs 2012-08-13 14:13:09 +02:00
Tim Hunt 75d86b6fbc MDL-34807 question bank: navigation loses place.
The symptom is that where we are now is not shown in the settings
navigation. However, the underlying cause is that question/edit.php is
doing some crazy thing of its own to build $PAGE->url, rather than using
the one returned by question_edit_setup.

Not that this patch itentionally removes the returnurl param. It was
added as part of a big change MDL-20276, which I think just got this
detail wrong. That variable is never used.
2012-08-13 11:13:25 +01:00
Tim Hunt bef9ab0ad5 MDL-34728 forms: woy for other JS to trigger disableIf update.
This was discovered while working on MDL-32705. If some JavaScript (for
example a select all/none link) changes the state of some form fields,
then the disabledIf state of other form elements does not automatically
update.

The existing form JS was so well encapsulated that this was impossible.
This change pokes a hole in the encapsulation, and provides an API
    M.form.updateFormState(formid);
that other bits of JS code can call when necessary.
2012-08-13 11:13:06 +01:00
Rossiani Wijaya 01f8e80def MDL-34563 accessibility compliance for data module: Add forform input text and select tag 2012-08-13 15:13:07 +08:00
Rossiani Wijaya 73b2ddddaa MDL-34565: change to plural strings 2012-08-13 15:12:34 +08:00
Rossiani Wijaya d1881bec56 MDL-34565 accessibility compliance for forum module: Add forform input text and select tag 2012-08-13 15:12:34 +08:00
Kanika Goyal 50da4ddd56 MDL-34382: Plagiarism API - add new option to flag modules that support the use of plagiarism plugins 2012-08-13 11:02:34 +05:30
Dan Poltawski 0523293c39 Merge branch 'MDL-34820' of git://github.com/lazydaisy/moodle 2012-08-13 12:30:48 +08:00
Marina Glancy 7355640aed MDL-34748 repository_filesystem: Sort files by title by default 2012-08-13 11:58:58 +08:00
Aparup Banerjee b567fcfb50 Merge branch 'w33_MDL-34851_m24_enrolledsince' of git://github.com/skodak/moodle 2012-08-13 11:03:43 +08:00
Aparup Banerjee b039a627b2 Merge branch 'w33_MDL-34852_m24_enroledit' of git://github.com/skodak/moodle 2012-08-13 11:02:43 +08:00
Dan Poltawski 2b1ddbb8af Merge branch 'MDL-34446-master' of git://github.com/sammarshallou/moodle 2012-08-13 10:44:11 +08:00
Dan Poltawski 26a306be07 Merge branch 'MDL-34376' of git://github.com/merrill-oakland/moodle 2012-08-13 10:33:09 +08:00
Dan Poltawski 3f9d0afcff Merge branch 'MDL-34835_master' of git://github.com/lazydaisy/moodle 2012-08-13 10:20:19 +08:00
Aparup Banerjee 2cfd8f9427 Merge branch 'MDL-34337-master' of git://github.com/ankitagarwal/moodle 2012-08-13 10:16:03 +08:00
Aparup Banerjee e9b5490e29 Merge branch 'MDL-34336-master' of git://github.com/ankitagarwal/moodle 2012-08-13 10:10:15 +08:00
Dan Poltawski 93d73cd8be Merge branch 'MDL-34543' of git://github.com/merrill-oakland/moodle 2012-08-13 10:03:33 +08:00
Petr Škoda 4389d18e74 MDL-34851 show enrolment date if there is no start and end of active enrolment
This should help when enrol plugin does not set any start or end of enrolment validity.
2012-08-12 20:46:00 +02:00
Petr Škoda e8f4b30638 MDL-33734 remove unused session code
Credit goes to Davo Smith, thanks!
2012-08-12 14:25:18 +02:00
Petr Škoda 4c04933b99 MDL-34852 allow editing of manual/self enrolments times and show time enrolled 2012-08-12 14:15:09 +02:00
Petr Škoda a33e740789 MDL-34741 improve inline docs 2012-08-12 12:01:10 +02:00
Petr Škoda e0a5793d8f MDL-34741 remove deprecated M.yui.loader 2012-08-12 11:41:25 +02:00
Petr Škoda 2de3515fcc MDL-34741 use 2in3 in mod_survey 2012-08-11 20:40:11 +02:00
Petr Škoda 69ccc32d4f MDL-34741 use 2in3 in mod_chat 2012-08-11 20:40:11 +02:00
Petr Škoda 82e7d74ece MDL-34741 use 2in3 in static JS 2012-08-11 20:40:10 +02:00
Petr Škoda 99a91bbad1 MDL-34741 remove unused legacy course files code 2012-08-11 20:40:10 +02:00
Petr Škoda 3993f027db MDL-34741 use 2in3 in comments 2012-08-11 20:40:10 +02:00
Petr Škoda a8c7ff1aeb MDL-34741 remove old unused restore JS code 2012-08-11 20:40:10 +02:00
Petr Škoda f387bb9bb7 MDL-34741 use 2in3 in mod_quiz 2012-08-11 20:40:09 +02:00
Petr Škoda 7b66b651da MDL-34741 use 2in3 in question bank 2012-08-11 20:40:09 +02:00
Petr Škoda 69878a382f MDL-34741 use 2in3 in portfolio download 2012-08-11 20:40:09 +02:00
Petr Škoda 70039658c8 MDL-34741 use 2in3 in report_completion 2012-08-11 20:40:08 +02:00
Petr Škoda 5bb40d1ebd MDL-34741 use 2in3 in report_progress 2012-08-11 20:40:08 +02:00
Petr Škoda 11263805b3 MDL-34741 use 2in3 in tags 2012-08-11 20:40:08 +02:00
Petr Škoda 1a59e7151a MDL-34741 use 2in3 in forms 2012-08-11 20:40:07 +02:00
Petr Škoda e3c1d655f8 MDL-34741 use 2in3 in groups UI 2012-08-11 20:40:07 +02:00
Petr Škoda b8b4f65b9c MDL-34741 use 2in3 in gradebook 2012-08-11 20:40:07 +02:00
Petr Škoda 1a92858d80 MDL-34741 use 2in3 in mod_scorm 2012-08-11 20:40:06 +02:00
Petr Škoda 2d90f01d0a MDL-34741 use 2in3 in mod_forum 2012-08-11 20:40:06 +02:00
Petr Škoda 426f2d5bcc MDL-34741 use 2in3 in mod_lti 2012-08-11 20:40:06 +02:00
Petr Škoda 12fff124d2 MDL-34741 use 2in3 in mod_assign 2012-08-11 20:40:05 +02:00
Petr Škoda c7e35969d5 MDL-34741 use 2in3 in mod_assignment 2012-08-11 20:40:05 +02:00
Petr Škoda 5f573e8efc MDL-34741 use 2in3 in mod_wiki 2012-08-11 20:40:05 +02:00
Petr Škoda 080d05752e MDL-34741 use 2in3 in some user TreeView 2012-08-11 20:40:04 +02:00
Petr Škoda dbbc5e834b MDL-34741 use 2in3 in mod_imscp 2012-08-11 20:40:04 +02:00
Petr Škoda 6adabe48eb MDL-34741 use 2in3 in date selector form element 2012-08-11 20:40:04 +02:00
Petr Škoda 3b715c5f80 MDL-34741 use 2in3 in file picker 2012-08-11 20:40:03 +02:00
Petr Škoda 2282cc6ffc MDL-34741 use 2in3 in private files block 2012-08-11 20:40:03 +02:00
Petr Škoda 10e9e1b39e MDL-34741 use 2in3 in mod_folder 2012-08-11 20:40:03 +02:00
Petr Škoda 2f422271c2 MDL-34741 use proper default YUI_config 2012-08-11 20:40:02 +02:00
Petr Škoda 1c76d55a40 MDL-34714 switch to YUI 2in3 2012-08-11 20:40:01 +02:00
Petr Škoda d2711aa088 MDL-33041 send only valid plugin strings to TinyMCE instances 2012-08-11 16:33:05 +02:00
Petr Škoda de6a651299 MDL-33041 cleanup the rest of tinymce plugin 2012-08-11 16:19:37 +02:00
Petr Škoda 51e95db375 MDL-33041 cleanup spellchecker plugin 2012-08-11 15:58:50 +02:00
Petr Škoda 383d67f80b MDL-33041 cleanup moodlenolink plugin
AMOS BEGIN
  MOV [desc,tinymce_moodlenolink],[moodlenolink:desc,tinymce_moodlenolink]
AMOS END
2012-08-11 15:58:50 +02:00
Petr Škoda 1edb79824c MDL-33041 cleanup moodlemedia plugin 2012-08-11 15:58:50 +02:00
Petr Škoda f33693a86a MDL-33041 cleanup moodleimage plugin 2012-08-11 15:58:21 +02:00
Petr Škoda 703763f670 MDL-33041 use standard action buttons in dragmath plugin 2012-08-11 15:58:21 +02:00
Petr Škoda ea5437fd7d MDL-33041 cleanup moodleemoticon plugin
AMOS BEGIN
  MOV [desc,tinymce_moodleemoticon],[moodleemoticon:desc,tinymce_moodleemoticon]
AMOS END
2012-08-11 15:58:05 +02:00
Petr Škoda 07ce641b75 MDL-33041 cleanup dragmath plugin
AMOS BEGIN
  MOV [dragmath_desc,tinymce_dragmath],[dragmath:desc,tinymce_dragmath]
  MOV [dragmath_title,tinymce_dragmath],[title,tinymce_dragmath]
  MOV [dragmath_javaneeded,tinymce_dragmath],[javaneeded,tinymce_dragmath]
AMOS END
2012-08-11 15:57:38 +02:00
Petr Škoda e4907cab85 MDL-33041 add base TinyMCE and moodle plugin urls
We should never use ../../../.. to reference core TinyMCE or moodle TinyMCE plugins, this crate problems if we ever decide to create improved loaders.
2012-08-11 15:57:38 +02:00
Petr Škoda 8585624a6c MDL-33041 always use only local media in moodle tinymce plugins
Unfortunately we can not post-process the css in out moodle tinymce plugins, that is why we need to keep the urls local.
2012-08-11 15:57:38 +02:00
Petr Škoda a3f1cd0318 MDL-33041 import TinyMCE 3.6.0
This contains only string handling changes - finally!
2012-08-11 15:57:37 +02:00
Petr Škoda 065f329a95 MDL-33041 remove another ugly TinyMCE forms hack 2012-08-11 15:57:35 +02:00
Petr Škoda 29e036904f MDL-33041 mark new TinyMCE subplugins as standard plugins 2012-08-11 15:57:35 +02:00
Petr Škoda e4ad5d8a5e MDL-33041 eliminate core TinyMCE moodlemedia hack 2012-08-11 15:57:35 +02:00
Petr Škoda fb7bcc1396 MDL-33041 fork advimage plugin
We need to minimise TinyMCE tweaks, the advimage hacking was too big to maintain it during upstream imports, sorry.
2012-08-11 15:56:58 +02:00
AMOS bot 4f17f1e92e Automatically generated installer lang files 2012-08-11 00:31:29 +00:00
Mary Evans 8fc89387f6 MDL-34835 theme_fusion: fixed displaced navbar by extending #region-header.inside bottom margin by 70px in style/pagelayout.css 2012-08-10 20:21:36 +01:00
Petr Škoda 8421f5ebbf MDL-33041 add missing spellchecker lang file and version info 2012-08-10 16:38:54 +02:00
sam marshall 9b63a155fe MDL-33041 (5) TinyMCE: Move spellchecker plugin as well 2012-08-10 14:57:59 +02:00
sam marshall 204903363f MDL-33041 (4) Use new system for existing added TinyMCE plugins
AMOS BEGIN
  MOV [dragmath:dragmath_desc,editor_tinymce],[dragmath_desc,tinymce_dragmath]
  MOV [dragmath:dragmath_javaneeded,editor_tinymce],[dragmath_javaneeded,tinymce_dragmath]
  MOV [dragmath:dragmath_title,editor_tinymce],[dragmath_title,tinymce_dragmath]
  MOV [moodleemoticon:desc,editor_tinymce],[desc,tinymce_moodleemoticon]
  MOV [moodlenolink:desc,editor_tinymce],[desc,tinymce_moodlenolink]
  CPY [desc,tinymce_moodleemoticon],[pluginname,tinymce_moodleemoticon]
  CPY [desc,tinymce_moodlenolink],[pluginname,tinymce_moodlenolink]
AMOS END
2012-08-10 14:57:59 +02:00
sam marshall fae911708e MDL-33041 (3) TinyMCE: Support custom plugins 2012-08-10 14:57:58 +02:00
sam marshall 1702fb6dda MDL-33041 (2) Tidy up tinymce lib.php before starting real changes 2012-08-10 14:57:58 +02:00
sam marshall c57fc98b27 MDL-33041 (1) Add subplugin support for 'editor' plugins 2012-08-10 14:57:57 +02:00
sam marshall 853dd86368 MDL-34446 Completion report: Add sideways text support to more browsers 2012-08-10 12:36:17 +01:00
Petr Škoda 72263b8f33 MDL-34782 detect code abusing integer limits in mysql database
It is allowed to store only ranges specified in install.xml, for integers it means number of digits specified in size.
2012-08-10 10:18:19 +02:00
Aaron Barnes 66b23db417 MDL-34795 completion: Add course_completed event 2012-08-10 16:06:11 +12:00
Ankit Agarwal 0253b26034 MDL-34336 scorm: Updating export of interaction reports as csv, to use new csv exporter class 2012-08-10 11:20:47 +08:00
Ankit Agarwal 4d26f274c4 MDL-34337 scorm: Updating export of basic reports as csv, to use new csv exporter class 2012-08-10 11:19:27 +08:00
Mary Evans 8d022c56c9 MDL-34820 theme_afterburner: adjusted value in style/pagelayout.css for.side-pre-only #region-pre-box 2012-08-10 02:23:31 +01:00
David Monllao 2591c7ae3d MDL-32344 blog Adding a renderer to manage entries output 2012-08-10 08:51:21 +08:00
David Monllao 1b30a9fac6 MDL-25347 blog Checking association capability at course and module levels instead of system level 2012-08-10 08:48:05 +08:00
David Monllao f4162effeb MDL-33531 backup Added format_string to course shortname 2012-08-10 08:45:26 +08:00
David Monllao bde0eac589 MDL-33531 backup Avoiding possible Notice 2012-08-10 08:45:26 +08:00
Lorenzo Nicora ab519e888b MDL-33531 Fixed the regexp to find old backup files, considering backup_shortname backup option 2012-08-10 08:45:26 +08:00
AMOS bot 6774817ecf Automatically generated installer lang files 2012-08-10 00:31:46 +00:00
Mary Evans c4dbad8c79 MDL-34820 theme_afterburner: adjusted style/pagelayout.css to add 2% to width in .side-pre-only #region-main 2012-08-10 00:54:06 +01:00
Eloy Lafuente (stronk7) 87e9331d93 weekly release 2.4dev 2012-08-09 20:52:43 +02:00
Eloy Lafuente (stronk7) daabbee999 Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-08-09 20:45:45 +02:00
Tim Hunt 9f692145e0 MDL-34590 javascript-static: nuclear option in openpopup
I think we have finally tamed Chrome on all platforms. (Crosses fingers.)
2012-08-09 13:29:48 +01:00
Sam Hemelryk d68a9af478 Merge branch 'MDL-34471-master' of git://github.com/ankitagarwal/moodle 2012-08-09 13:23:18 +12:00
AMOS bot f31f3ec635 Automatically generated installer lang files 2012-08-09 00:31:35 +00:00
Paul Nicholls ec3eaa2c38 MDL-33640 - change $templatesinitialized to an array; improve naming and automate use of template
* $templatesinitialized is now an array, so that subsequent calls to initialise_filepicker which request different repositories will include those (and only those) templates which it requires but have not yet been included
* The get_template method has also been renamed to get_upload_template (and the template to "uploadform_" followed by the repository type), since it only applies to upload forms
* If a plugin provides a get_upload_template method, the template it returns will now automatically be used instead of the standard uploadform template when generating an upload form
2012-08-09 09:47:40 +12:00
Eric Merrill 8f34ecdb7a MDL-34376 mod_assign Omit assigns with no due date from print_overview.
Modify assign_print_overview to omit assigns that have no due date set, in line with behaviour
in 2.2 and other tools.
2012-08-08 10:01:28 -04:00
Andrew Robert Nicols 49ed1b0d0b MDL-34783 Retrieve the sectioncache parameter for enrolled courses in the course_overview block
The sectioncache field is used by course_modinfo and without it, the
modinfo cache is repeatedly reset.
2012-08-08 11:02:48 +01:00
Ankit Agarwal 556e9404cc MDL-34471 backup: Update the php doc block 2012-08-08 17:11:02 +08:00
Dan Marsden ddd84e9226 MDL-34131: Plagiarism API - use correct vars in event trigger 2012-08-08 14:59:24 +08:00
Dan Poltawski 40a37bf974 Revert "MDL-34075 - lib - Alteration to the csv import lib to include rfc-4180 compliance"
This reverts commit 92dfce6be7.
2012-08-08 13:44:03 +08:00
Dan Poltawski 25cba7da9a Merge branch 'MDL-34575_accessibility' of git://github.com/rwijaya/moodle 2012-08-08 12:31:21 +08:00
Rossiani Wijaya 58f85786cd MDL-34575: fixed string typo and string duplication for label 2012-08-08 11:38:39 +08:00
Aparup Banerjee 19c9f39eb9 Merge branch 'w32_MDL-34505_m24_dbsuspend' of git://github.com/skodak/moodle 2012-08-08 11:16:25 +08:00
Aparup Banerjee 80742be46a Merge branch 'w32_MDL-13363_m24_dbuserundelete' of git://github.com/skodak/moodle 2012-08-08 11:15:34 +08:00
Sam Hemelryk e432bf2472 Merge branch 'MDL-34471-master' of git://github.com/ankitagarwal/moodle 2012-08-08 15:05:39 +12:00
Sam Hemelryk 563c436ece Merge branch 'wip-MDL-34075-master' of git://github.com/abgreeve/moodle 2012-08-08 14:24:09 +12:00
Paul Nicholls 013cf2878c MDL-33640 - Add ability to use custom filepicker templates
Allow repository plugins to register a template by defining a get_template() method, coupled with the ability to request the template be used by create_upload_form() instead of the standard 'uploadform' template.  The template is automatically registered using the plugin's name, and core templates will override any which clash; this also means that a theme can override these templates in a custom renderer if it wants to.
2012-08-08 13:50:47 +12:00
Sam Hemelryk fffe12fd95 Merge branch 'wip_MDL-32412_afterburner' of git://github.com/lazydaisy/moodle 2012-08-08 12:07:59 +12:00
Eloy Lafuente (stronk7) f1bfa6bf33 Merge branch 'master_MDL-34656' of git://github.com/danmarsden/moodle 2012-08-08 01:59:19 +02:00
Eloy Lafuente (stronk7) e5e26fb1d6 Merge branch 'MDL-34704' of git://github.com/timhunt/moodle 2012-08-08 01:52:45 +02:00
Eloy Lafuente (stronk7) 4137eb46a9 Merge branch 'wip-mdl-30792' of git://github.com/rajeshtaneja/moodle 2012-08-08 01:00:12 +02:00
Eloy Lafuente (stronk7) f718f5fd55 Merge branch 'MDL-32023-master' of https://github.com/mackensen/moodle 2012-08-08 00:02:10 +02:00
Eloy Lafuente (stronk7) 80913617e8 Merge branch 'MDL-29129-master' of https://github.com/mackensen/moodle 2012-08-07 23:58:27 +02:00
Sam Hemelryk 60312b3189 Merge branch 'master_MDL-32002' of git://github.com/danmarsden/moodle 2012-08-08 09:43:44 +12:00
Eric Merrill fbb70b4717 MDL-34543 mod_assign Fixing problem where previous feedback does not populate when you re-enter the grading view. add_plugin_grade_elements() was expecting grade object, but was being given grade string. 2012-08-07 10:19:35 -04:00
Tim Hunt d0565885ae MDL-34727 restore UI: use checkboxes for userdata.
It was using select menus for the convenience of the code, but the
inconvenience of users.

The way this fix is done is a bit hacky, but it works, makes users'
lives much better, but it would be good if someone would dehackify
this in the future.
2012-08-07 11:36:09 +01:00
Aparup Banerjee 056640610d Merge branch 'master_MDL-33942' of git://github.com/danmarsden/moodle 2012-08-07 15:58:06 +08:00
Aparup Banerjee 0c36e633f5 Merge branch 'MDL-34566_accessibility' of git://github.com/rwijaya/moodle 2012-08-07 15:07:40 +08:00
Aparup Banerjee 0367f6b1aa Merge branch 'MDL-34564_accessibility' of git://github.com/rwijaya/moodle 2012-08-07 14:57:34 +08:00
Aparup Banerjee 2efd02caa6 Merge branch 'MDL-34560_accessibility' of git://github.com/rwijaya/moodle 2012-08-07 14:45:29 +08:00
Aparup Banerjee 12fd98242c Merge branch 'MDL-34559_accessibility' of git://github.com/rwijaya/moodle 2012-08-07 14:36:48 +08:00
Aparup Banerjee 67ab929cbf Revert "Merge branch 'MDL-28531-master' of git://github.com/FMCorz/moodle"
This reverts commit e5d9cc13ac, reversing
changes made to 20c3e25343.
2012-08-07 14:27:01 +08:00
Aparup Banerjee e5d9cc13ac Merge branch 'MDL-28531-master' of git://github.com/FMCorz/moodle 2012-08-07 13:58:07 +08:00
Rossiani Wijaya f8e371f068 MDL-34559: removing accesshide class 2012-08-07 13:34:34 +08:00
Dan Poltawski f271972817 MDL-29192 - clarify email_to_user call 2012-08-07 10:55:13 +08:00
Aparup Banerjee 20c3e25343 Merge branch 'MDL-34715-master' of git://github.com/FMCorz/moodle 2012-08-07 10:40:22 +08:00
Dan Poltawski 6bae2b7633 Merge branch 'MDL-34562_accessibility' of git://github.com/rwijaya/moodle 2012-08-07 10:16:30 +08:00
Dan Poltawski f7cae82286 Merge branch 'MDL-34567_accessibility' of git://github.com/rwijaya/moodle 2012-08-07 10:03:11 +08:00
Aparup Banerjee 99f868c541 Merge branch 'MDL-22663-master' of git://github.com/FMCorz/moodle 2012-08-07 10:00:26 +08:00
Dan Poltawski b217edd265 MDL-34685 authlib - fix trailing whitespace 2012-08-07 09:55:02 +08:00
Michael Aherne 57d38adc58 MDL-34685 auth Allow auth plugins to override user signup form 2012-08-07 09:55:02 +08:00
Aparup Banerjee 7b3c1c9d8c Merge branch 'MDL-33022-master' of git://github.com/danpoltawski/moodle 2012-08-07 09:18:02 +08:00
Dan Poltawski e43c20d064 Merge branch 'wip-MDL-34669-master' of git://github.com/marinaglancy/moodle 2012-08-07 08:48:31 +08:00
Dan Poltawski 32570ea2ce MDL-34600 upgrade.php - fix trailing whitespace 2012-08-07 08:44:19 +08:00
Dan Poltawski deb89552b2 Merge branch 'w32_MDL-34600_m24_questionschema' of git://github.com/skodak/moodle 2012-08-07 08:40:42 +08:00
AMOS bot d614ba7052 Automatically generated installer lang files 2012-08-07 00:31:54 +00:00
Tomasz Muras 464e88340b MDL-31753 Get correct course ID for Community finder search link. 2012-08-07 02:14:03 +02:00
Eloy Lafuente (stronk7) 4ebc74c548 Merge branch 'MDL-34711_master' of git://github.com/dmonllao/moodle 2012-08-07 02:09:25 +02:00
Eloy Lafuente (stronk7) 8b77ab0c10 Merge branch 'w32_MDL-34601_m24_wikischema' of git://github.com/skodak/moodle 2012-08-06 21:15:46 +02:00
Kirill Astashov a8d259553d MDL-34669: Fix editor filepicker context bt trying to use page context 2012-08-06 16:50:59 +08:00
Aparup Banerjee fb87c4c96c Merge branch 'MDL-31599' of git://github.com/danpoltawski/moodle 2012-08-06 16:43:19 +08:00
Aparup Banerjee 78797b3643 Merge branch 'MDL-34716-master' of git://github.com/danpoltawski/moodle 2012-08-06 16:37:46 +08:00
Aparup Banerjee ba713c224e MDL-22937 Chat: fixed whitespaces. 2012-08-06 16:28:13 +08:00
Aparup Banerjee 1f3d01f169 Merge branch 'MDL-22937_message_html2' of git://github.com/andyjdavis/moodle 2012-08-06 16:23:05 +08:00
Rossiani Wijaya da248cbb71 MDL-34562 accessibility compliance for chat module: Add <label> for input text and select tag 2012-08-06 16:17:29 +08:00
Dan Poltawski 71ada5337e Merge branch 'MDL-34561_accessibility' of git://github.com/rwijaya/moodle 2012-08-06 15:49:06 +08:00
Dan Poltawski 93df0f0f31 MDL-34745 mod_forum: remove throttlingapplies string
Its no longer used
2012-08-06 15:31:16 +08:00
Rossiani Wijaya 5d2b1e5eec MDL-34561 accessibility compliance for assignment module: add accesshide class 2012-08-06 15:19:51 +08:00
Dan Poltawski dae2e8e74b Merge branch 'MDL-34707' of git://github.com/timhunt/moodle 2012-08-06 14:41:53 +08:00
Dan Poltawski 3e002fa590 Merge branch 'MDL-34629-master' of https://github.com/mackensen/moodle 2012-08-06 14:19:32 +08:00
Dan Poltawski c3ce4c212e Merge branch 'MDL-34561_accessibility' of git://github.com/rwijaya/moodle 2012-08-06 14:08:47 +08:00
Dan Poltawski bd0f84ea99 Merge branch 'MDL-25983_master' of git://github.com/dmonllao/moodle 2012-08-06 13:52:49 +08:00
Dan Poltawski c786eda7f3 Merge branch 'MDL-34259-master' of git://github.com/FMCorz/moodle 2012-08-06 12:21:24 +08:00
Dan Poltawski 15f2329bb4 Merge branch 'w32_MDL-34630_m24_gradeinstall' of git://github.com/skodak/moodle 2012-08-06 12:18:01 +08:00
Dan Poltawski cfddb2d4e8 Merge branch 'MDL-34574_accessibility' of git://github.com/rwijaya/moodle 2012-08-06 12:12:21 +08:00
Dan Poltawski 34342a1adf MDL-34575 lang/notes: reorder string to be alphabetical 2012-08-06 12:09:15 +08:00
Dan Poltawski e063369689 Merge branch 'MDL-34575_accessibility' of git://github.com/rwijaya/moodle 2012-08-06 12:06:33 +08:00
Dan Poltawski 1adbec57fe Merge branch 'MDL-34558_accessibility' of git://github.com/rwijaya/moodle 2012-08-06 11:54:01 +08:00
Dan Poltawski ebaa898e27 Merge branch 'MDL-34557_accessibility' of git://github.com/rwijaya/moodle 2012-08-06 11:48:12 +08:00
Dan Poltawski 7aa53db5b6 Merge branch 'MDL-34705' of git://github.com/timhunt/moodle 2012-08-06 11:31:31 +08:00
Dan Poltawski e447150153 Merge branch 'w32_MDL-34635_m24_selfwelcommultilang' of git://github.com/skodak/moodle 2012-08-06 11:29:16 +08:00
Dan Poltawski 6a2a055edc MDL-25012 - blogs: only show the settings page when blogs enabled 2012-08-06 11:25:22 +08:00
Dan Poltawski 850d2db82a MDL-25012 - blogs: introduce a specific 'enabled' config setting
Rather than overloading the $CFG->bloglevel setting which had a
confusing UI in the appearance subsystem.

In order to achieve this we modify take the defaults from the existing
bloglevel setting and set that for $CFG->enableblogs. Note that in order
to prevent a bad default settings from being set we also set
$CFG->bloglevel to a valid 'enabled' setting.
2012-08-06 11:25:22 +08:00
Dan Poltawski db9d7be602 MDL-25012 blogs: Remove bloglevelupgrade tool
This was used for 1.9->2.x upgrade and is not longer relevant.
2012-08-06 11:25:21 +08:00
Paul Charsley 81a0be70c8 Merge branch 'master' of github.com:Lightwork-Marking/moodle 2012-08-06 14:41:51 +12:00
Dan Poltawski 0ec001212d Merge branch 'MDL-28207-master' of git://github.com/FMCorz/moodle 2012-08-06 10:40:33 +08:00
Paul Charsley 665b138ee1 Merge branch 'master' of https://github.com/moodle/moodle 2012-08-06 14:38:57 +12:00
Dan Poltawski 669bd9a835 Merge branch 'MDL-34590' of git://github.com/timhunt/moodle 2012-08-06 10:11:16 +08:00
Dan Poltawski 41565f26ff Merge branch 'MDL-34405_master' of git://github.com/kordan/moodle 2012-08-06 10:06:15 +08:00
Dan Poltawski 85f031dc86 Merge branch 'master_MDL-34131_add_plagiarism_api_support_for_new_online_assignment' of git://github.com/kanikagoyal/moodle 2012-08-06 09:58:36 +08:00
Dan Poltawski 6d9fbc5f4a Merge branch 'w32_MDL-34585_m24_blogfiles' of git://github.com/skodak/moodle 2012-08-06 09:45:46 +08:00
Sam Hemelryk 6869060218 Merge branch 'wip-MDL-34074-master' of git://github.com/abgreeve/moodle 2012-08-06 13:36:44 +12:00
Dan Poltawski 3539c2f2bf MDL-28486 - tests: fix broken youtube tests 2012-08-06 09:25:24 +08:00
Sam Hemelryk b84be095b7 Merge branch 'MDL-34708' of git://github.com/nebgor/moodle 2012-08-06 12:05:21 +12:00
Sam Hemelryk 71761f8aa8 Merge branch 'MDL-28486-master-2' of git://git.luns.net.uk/moodle 2012-08-06 11:59:07 +12:00
Sam Hemelryk 8cca2fbb6e Merge branch 'MDL-34658-master' of git://github.com/grabs/moodle 2012-08-06 11:46:26 +12:00
Sam Hemelryk e7ea7825d2 Merge branch 'MDL-34670-master' of git://github.com/grabs/moodle 2012-08-06 11:35:33 +12:00
Sam Hemelryk 1dba7b9a40 Merge branch 'MDL-34645' of git://github.com/aolley/moodle 2012-08-06 11:05:24 +12:00
Sam Hemelryk eff3e7f677 Merge branch 'MDL-34647' of git://github.com/aolley/moodle 2012-08-06 10:59:10 +12:00
Aparup Banerjee f597dcc008 MDL-34708 Forms library : Fixed incorrect calendar day displayed across timezones. Credit to Matthew Davidson and team at rose-hulman.edu. 2012-08-05 23:27:31 +08:00
Mary Evans 2008bde03f MDL-32412 theme_aardvark: fixed margin-left error in style/afterburner_pagelayout.css 2012-08-04 23:03:36 +01:00
Mary Evans 042df07f7f MDL-32412 theme_afterburner: converting afterburner to percentage layout to better enable RTL access in IE7 + support for RTL in general 2012-08-04 17:34:39 +01:00
Rossiani Wijaya 6cae398f1d MDL-34560 accessibility compliance for message: Add label for input text and select tag 2012-08-04 17:07:07 +08:00
Tim Hunt 8c598cef18 MDL-34590 javascript-static: full-screep popups for Chrome.
I have left in both:
1. the code to get the window size correct initially, becuase that seems
sensible; and
2. the subsequent resize (with the setTimeout that Chrome requires,
thanks Jeff Rader for finding that) becuase on Chrome, it gets the size
a bit too big initially, so this correction is necessary.
2012-08-03 13:19:18 +01:00
Tim Hunt 157583b862 MDL-34704 couse, accesslib: improve $CFG->courselistshortnames
1. get_context_name should respect the $CFG->courselistshortnames
setting.

2. When $CFG->courselistshortnames is on, what to display should use a
language string, rather than string concatenation. This makes it
possible for people to configure the display. For example, they might
want 'My first course [M101]' instead of 'M101 My first course'.
2012-08-03 13:01:05 +01:00
Andreas Grabs 63500d9896 MDL-34670 - undefined variable in feedback templates 2012-08-03 12:01:53 +02:00
Andreas Grabs 94848b0748 MDL-34658 - Saving failed because missing or false values 2012-08-03 12:01:45 +02:00
AMOS bot 0682c668cf Automatically generated installer lang files 2012-08-03 11:45:28 +02:00
Dan Poltawski d1ba2660ae MDL-34716 outcomes: Fix admin tree location 2012-08-03 16:07:55 +08:00
Frederic Massart 3e512abbe4 MDL-22663 Repository: WebDAV supports Digest authentication 2012-08-03 14:03:54 +08:00
Frederic Massart d09c62c4e1 MDL-22663 Repository: WebDAV supports SSL and chunked data 2012-08-03 13:51:56 +08:00
Frederic Massart ea034d73df MDL-22663 Repository: Fixed strict standards notices in WebDAV lib 2012-08-03 13:44:29 +08:00
Rossiani Wijaya 2134ddcba1 MDL-34575 accessibility compliance for notes: Add form input text and select tag 2012-08-03 13:39:36 +08:00
Rossiani Wijaya 8ee97ac2e5 MDL-34574 accessibility compliance for mymobile theme: Add forform input text and select tag 2012-08-03 11:54:07 +08:00
Rossiani Wijaya 68ca508f0c MDL-34567 accessibility compliance for lesson module: Add forform input text and select tag 2012-08-03 11:53:59 +08:00
Rossiani Wijaya 656eb8139e MDL-34566 accessibility compliance for glossary module: Add forform input text and select tag 2012-08-03 11:53:57 +08:00
Rossiani Wijaya f203506463 MDL-34564 accessibility compliance for feedback module: Add forform input text and select tag 2012-08-03 11:53:55 +08:00
Rossiani Wijaya 3695494fc3 MDL-34561 accessibility compliance for assignment module: Add forform input text and select tag 2012-08-03 11:53:51 +08:00
Rossiani Wijaya 29bea63484 MDL-34559 accessibility compliance for grade: Add forform input text and select tag 2012-08-03 11:53:49 +08:00
Rossiani Wijaya 0013540d2f MDL-34558 accessibility compliance for filter: Add forform input text and select tag 2012-08-03 11:53:48 +08:00
Rossiani Wijaya 965b7462c4 MDL-34557 accessibility compliance for enrol: Add forform input text and select tag 2012-08-03 11:53:46 +08:00
Rajesh Taneja 960f437972 MDL-30792 Files API: Cleaner approach to get maxbytes size in filepicker 2012-08-03 11:20:55 +08:00
Rajesh Taneja 7030756a98 MDL-30792 Files API: maxbytes will be set by get_max_upload_file_size if less then 0 or greater then max moodle limit 2012-08-03 11:06:00 +08:00
David Monllao b53f4d55c8 MDL-34711 mod_forum Calling forum_trigger_content_uploaded_event only with the course module set 2012-08-03 11:05:30 +08:00
Paul Charsley 4c5f52af42 Merge branch 'master' of git://git.moodle.org/moodle 2012-08-03 14:14:04 +12:00
Frederic Massart 3d515f4896 MDL-28531 Backup: Automated backups run when they are scheduled 2012-08-03 09:30:39 +08:00
Frederic Massart fb6e1b8f50 MDL-34259 Lesson: True/false questions don't break on missing answer 2012-08-03 09:24:50 +08:00
Frederic Massart 643b1de890 MDL-28207 Course: Showing/hiding/marking a section respect capabilities 2012-08-03 09:21:43 +08:00
Andrew Davis a2592fecd1 MDL-22937 mod_chat: switched chat from tables to div/span + css and made chat, comment and message formats more similar 2012-08-03 08:40:49 +08:00
Tim Hunt 9dfadf9e97 MDL-34707 backup UI: only include the JS once. 2012-08-02 18:40:49 +01:00
Tim Hunt 970e01ba24 MDL-34705 role assignments list: should link to contexts.
This will make Admin's lives a bit easier.
2012-08-02 17:44:43 +01:00
Petr Škoda 890e1aacc3 MDL-34701 remove root from yui MODULE pattern definition
The problem was that the root was breaking internal group handling in YUI loader for some reason. Without the root pattern property everything seems to work fine again.
2012-08-02 17:40:50 +02:00
Petr Škoda af7879701b MDL-34701 import latest YUI 3.6.0 2012-08-02 16:49:19 +02:00
Charles Fulton 9ff5e86909 MDL-29129 wiki: fix a hardcoded string 2012-08-02 06:10:16 -07:00
Charles Fulton 789379ec58 MDL-32023 wiki: remove hard-coded edit string 2012-08-02 06:08:49 -07:00
Petr Škoda 28fd4d6c6b MDL-34635 use user->suspended flag in auth_db sync 2012-08-02 10:05:10 +02:00
Petr Škoda f0364be67a MDL-13363 remove non-function user undeleting 2012-08-02 10:03:14 +02:00
Petr Škoda faf40ca3e3 MDL-34585 fix broken blog file access control 2012-08-02 09:58:16 +02:00
Petr Škoda 405a11e88d MDL-34601 drop legacy wiki upgrade tables
Next time please keep db in sync with install.xml at all times.
2012-08-02 09:55:53 +02:00
Dan Marsden f43d3cf50f MDL-33942 Grading method: Marking Guide - check for $cm before using - may not exist if the course is being deleted. 2012-08-02 19:49:28 +12:00
Petr Škoda 237f05cfdd MDL-34600 fix question table to match install.xml
The oldquestiontextformat was used during previous upgrade and is not necessary any more.
Next time we should add these temporary upgrade columns to install.xml files.
2012-08-02 09:48:09 +02:00
Petr Škoda 8b8e949cd2 MDL-34630 fix invalid grade export setting default breaking install 2012-08-02 09:41:29 +02:00
Petr Škoda 0896292622 MDL-34635 support multilang in self enrol course welcome message
Includes also new help string for the custom multilang placeholders by Helen Foster.
2012-08-02 09:38:48 +02:00
Ankit Agarwal 2d9c05b930 MDL-34471 libraries: Remove unused context calls 2012-08-02 15:37:41 +08:00
Ankit Agarwal 0d4d49d18a MDL-34471 libraries: changing strictness of context_XXXX::instance() when needed 2012-08-02 15:37:38 +08:00
Ankit Agarwal bf0f06b1be MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method 2012-08-02 15:37:38 +08:00
Dan Marsden 299aedfaf7 MDL-34656 prevent login form from being shown inside iframe - also prevent wantsurl from being set to loadsco.php which isn't a valid page for initial load. 2012-08-02 19:33:13 +12:00
David Monllao a4b1ba242a MDL-25983 enrol_imsenterprise Importing the course summary when adding new courses 2012-08-02 15:32:28 +08:00
Dan Poltawski 470d47f512 weekly release 2.4dev 2012-08-02 14:38:14 +08:00
Adrian Greeve 9a5abd1b70 MDL-34074 - lib - Creation of a csv upload class which is FRC 4180 compliant and the alteration of various files around Moodle to use this class. 2012-08-02 13:18:57 +08:00
Dan Poltawski f534c1c0c0 MDL-31599 block_news - incorrect RSS feed for guest user
Was previously using the userid 0, rather than guest to use
authenticated RSS feed.

Thanks to Paul Verrall at LUNS for helping me debug this.
2012-08-02 11:11:11 +08:00
Dan Marsden a024301750 MDL-33022 mod_form: set correct groupid when editing an existing post 2012-08-02 10:47:39 +08:00
Matt Switlik 84a8492a02 MDL-34691 assign: Time remaining "Assignment is overdue" was incorrectly being displayed when a student viewed a submitted assignment after the due date. 2012-08-01 16:40:34 -04:00
Aparup Banerjee d590ffdc68 MDL-31288 Assignment : fixed requiresubmission setting states 2012-08-01 17:09:54 +08:00
Petr Škoda 4c7f536379 MDL-34368 fix another validuntil condition 2012-08-01 08:30:28 +02:00
Aparup Banerjee d3d1fec286 MDL-31288 assignment : shifted upgrade block to after 2.3 upgrade line. 2012-08-01 09:34:31 +08:00
Aparup Banerjee 6df08cac3e Merge branch 'MDL-31288-POST23' of git://github.com/netspotau/moodle-mod_assign 2012-08-01 09:30:34 +08:00
Dan Poltawski a8b8f472bd MDL-34599 mod_quiz: optional $thispage & $nextpage
The previous change making the params required was a regression.
2012-08-01 09:05:32 +08:00
Sam Hemelryk df0d0fdee7 Merge branch 'MDL-29909-master' of https://github.com/mackensen/moodle 2012-08-01 12:35:19 +12:00
Dan Marsden 760007a274 MDL-32002 Plagiarism plugins - add support for deleting plugins 2012-08-01 09:56:19 +12:00
Kanika Goyal 48e5aacbfa MDL-34131: Plagiarism API - add support for plagiarism api to new online assignment type 2012-07-31 22:06:25 +05:30
Dan Poltawski 66146ffcf7 Merge branch 'MDL-32791' of git://github.com/timhunt/moodle 2012-07-31 17:46:13 +08:00
Dan Poltawski 0f6cdc519a Merge branch 'MDL-34599' of git://github.com/timhunt/moodle 2012-07-31 17:42:19 +08:00
Rossiani Wijaya 70ad5136da MDL-34556 accessibility compliance for course: Add forform input text and select tag 2012-07-31 17:16:19 +08:00
Rossiani Wijaya 5c57655218 MDL-34555 accessibility compliance for calendar: Add forform input text and select tag 2012-07-31 17:10:33 +08:00
Rossiani Wijaya 5b711b3e99 MDL-34554 accessibility compliance for blocks: Add forform input text and select tag 2012-07-31 17:04:15 +08:00
Rossiani Wijaya eac75f211d MDL-34553 accessibility compliance for authentication: Add forform input text and select tag 2012-07-31 16:49:25 +08:00
Rossiani Wijaya aa414527a4 MDL-34552 accessibility compliance for admin: Add forform input text and select tag 2012-07-31 16:31:47 +08:00
Aparup Banerjee e462de973f MDL-34650 added MDLs to todo comment and deprecation comment.
(also triggering an amos script here for the other MDL-34650 commit)

AMOS BEGIN
  CPY [minute,form],[minute,core]
  CPY [month,form],[month,core]
  CPY [options,editor],[options,core]
  CPY [selectacourse,backup],[selectacourse,core]
AMOS END
2012-07-31 15:30:38 +08:00
Dan Poltawski 43ff71a017 MDL-34460 - fix syntax error I introduced.
doh.
2012-07-31 14:46:45 +08:00
Aparup Banerjee de7a570cd5 MDL-34650 typo correction 2012-07-31 13:24:00 +08:00
Aparup Banerjee 87c12fec13 Merge branch 'MDL-34650' of git://github.com/rwijaya/moodle 2012-07-31 13:19:47 +08:00
Sam Hemelryk 118530e605 Merge branch 'MDL-34526_master' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/canvas/config.php
2012-07-31 16:57:32 +12:00
Mary Evans 0f78d5c065 MDL-34528 theme_canvas: Removed redundent exclude stylesheet configurations from CANVAS theme 2012-07-31 16:51:50 +12:00
Sam Hemelryk 5adf3ec6cb Merge branch 'MDL-32499_master' of git://github.com/dmonllao/moodle 2012-07-31 16:30:05 +12:00
Sam Hemelryk fd892c6f90 Merge branch 'MDL-32931_master' of git://github.com/dmonllao/moodle 2012-07-31 16:19:01 +12:00
Sam Hemelryk ac88177985 Merge branch 'MDL-32827-master' of git://github.com/ankitagarwal/moodle 2012-07-31 16:16:14 +12:00
Rossiani Wijaya ecc5cc31ae MDL-34650 - accessibility compliance: Add <label> for form input text and select tag 2012-07-31 12:07:16 +08:00
Dan Poltawski 1b77cda09e Merge branch 'MDL-25953-master' of git://github.com/FMCorz/moodle 2012-07-31 12:01:49 +08:00
Dan Poltawski 7cd1c5251a Merge branch 'w31_MDL-17830_m24_zipresult' of git://github.com/skodak/moodle 2012-07-31 11:22:07 +08:00
Dan Poltawski b95744a3b5 Merge branch 'MDL-34624' of git://github.com/lazydaisy/moodle 2012-07-31 11:10:29 +08:00
Dan Poltawski 8ba2123739 Merge branch 'MDL-34532' of git://github.com/timhunt/moodle 2012-07-31 10:42:55 +08:00
Dan Poltawski 1383794b35 Merge branch 'MDL-34255' of git://github.com/rwijaya/moodle 2012-07-31 10:31:41 +08:00
Ankit Agarwal f14f9842d5 MDL-32827 calendar: update eventtype of broken event in bulk instead of doing it one by one 2012-07-31 10:28:32 +08:00
Jerome Mouneyrac 48a7b182f1 MDL-33869 user_get_user_details: add support for 'Show user identity' fields set by administrator 2012-07-31 10:24:50 +08:00
Crafton Williams 3a3f3b223f MDL-33869 user_get_user_details: allow return of idnumber 2012-07-31 10:24:35 +08:00
Dan Poltawski 08765665c7 Merge branch 'master_MDL-34440' of git://github.com/danmarsden/moodle 2012-07-31 10:06:57 +08:00
Adam Olley b1d76077fc MDL-34647: admintool: uploaduser enrolments now obey enrolperiod directive 2012-07-31 11:35:55 +09:30
Adam Olley 2e7e9403b2 MDL-34645: enrol_manual: enrolment init to pass default duration setting 2012-07-31 11:11:54 +09:30
Dan Poltawski 93e1ff245d Merge branch 'MDL-34483' of git://github.com/timhunt/moodle 2012-07-31 09:11:48 +08:00
Sam Hemelryk 989e5c49fa Merge branch 'MDL-34494_master' of git://github.com/kordan/moodle 2012-07-31 12:43:44 +12:00
Sam Hemelryk 7d5f2ac2e6 Merge branch 'MDL-29007-master-3' of git://git.luns.net.uk/moodle 2012-07-31 12:05:38 +12:00
Sam Hemelryk 30585a3752 Merge branch 'MDL-28568_noncontact_warning' of git://github.com/andyjdavis/moodle 2012-07-31 12:00:53 +12:00
Tim Hunt 453022307e MDL-34483 qformat_examview: Commit example file.
Supplied by Rick Jerz.
2012-07-30 11:57:36 +01:00
Fred Woolard 9f2470937d MDL-34440 Site registration failing with mysqli 2012-07-30 20:04:55 +12:00
Nathan Mares 6bfa9c49d5 MDL-34368: Fix broken query in so tokens are correctly checked against the linked service 2012-07-30 15:49:38 +08:00
Dan Poltawski 87dd647f04 Merge branch 'wip-MDL-34465-master' of git://github.com/abgreeve/moodle 2012-07-30 15:23:27 +08:00
Dan Poltawski 31e8166797 Merge branch 'MDL-34467-master' of git://github.com/ankitagarwal/moodle 2012-07-30 15:14:27 +08:00
Dan Poltawski 1afa82dd30 Merge branch 'wip-MDL-34469-master' of git://github.com/abgreeve/moodle 2012-07-30 15:06:59 +08:00
Dan Poltawski 090a5337d5 Merge branch 'MDL-34466_master' of git://github.com/dmonllao/moodle 2012-07-30 15:02:01 +08:00
Adrian Greeve a689cd1def MDL-34469 - lib - replacement of the deprecated get_context_instance and get_context_by_id functions (group 15) 2012-07-30 14:59:57 +08:00
Dan Poltawski 1ffc3e427a MDL-34464 - mod_feedback: remove mistaken ignore_missing 2012-07-30 14:55:50 +08:00
Dan Poltawski 8dd154905b Merge branch 'MDL-34464_master' of git://github.com/dmonllao/moodle 2012-07-30 14:48:33 +08:00
Dan Poltawski bc8db7649b MDL-34460 - remove uncessary context retrival
spotted during review
2012-07-30 14:26:19 +08:00
Dan Poltawski 957a8d48fc Merge branch 'MDL-34460-master-integration' of git://github.com/FMCorz/moodle 2012-07-30 14:18:54 +08:00
Dan Poltawski 3f140cdc3f Merge branch 'MDL-34507-master' of git://github.com/FMCorz/moodle 2012-07-30 14:04:46 +08:00
Dan Poltawski 82ee961aca Merge branch 'MDL-34589' of git://github.com/timhunt/moodle 2012-07-30 13:55:43 +08:00
Dan Poltawski 171b18d2d1 Merge branch 'MDL-34513-WIP-MyMobile_rtl_support' of git://github.com/nadavkav/moodle 2012-07-30 13:52:11 +08:00
Dan Poltawski 73454d017a Merge branch 'MDL-33537_master' of git://github.com/dmonllao/moodle 2012-07-30 13:46:22 +08:00
Dan Poltawski 31f29535d1 Merge branch 'master_MDL-32227_add_plagiarism_api_support_to_workshop' of git://github.com/kanikagoyal/moodle 2012-07-30 13:34:20 +08:00
Dan Poltawski f129427fa9 Merge branch 'w31_MDL-34616_m24_tinymceresize' of git://github.com/skodak/moodle 2012-07-30 13:14:53 +08:00
Dan Poltawski a38514ac3f Merge branch 'w31_MDL-34538_m24_validatefloats' of git://github.com/skodak/moodle 2012-07-30 12:35:05 +08:00
Dan Poltawski 20031268b6 Merge branch 'MDL-31509' of git://github.com/timhunt/moodle 2012-07-30 12:15:39 +08:00
Dan Poltawski 098eccf1b8 Merge branch 'MDL-34433-master-1' of git://git.luns.net.uk/moodle 2012-07-30 12:09:20 +08:00
Dan Poltawski 2e3d5ef1eb Merge branch 'wip-mdl-34239' of git://github.com/rajeshtaneja/moodle 2012-07-30 12:05:14 +08:00
Dan Poltawski 4a1c6c586c Merge branch 'MDL-34519_course_reset_patch' of git://github.com/rlorenzo/moodle
Conflicts:
	course/reset.php
2012-07-30 11:57:26 +08:00
Adrian Greeve 92dfce6be7 MDL-34075 - lib - Alteration to the csv import lib to include rfc-4180 compliance 2012-07-30 11:34:11 +08:00
Charles Fulton 94efdedcc3 MDL-34629 wiki: convert default format value during restore 2012-07-29 20:17:41 -07:00
Mary Evans 4543168efb MDL-34526 theme_canvas: incorporating MDL-34528 - Remove redundent exclude stylesheet configurations from CANVAS theme 2012-07-29 21:31:47 +01:00
Mary Evans 6f7cb98f10 MDL-34526 theme_canvas: added custommenu + enabled dock + defined block-regions in frontpage.php & general.php 2012-07-29 17:51:05 +01:00
Petr Škoda f6b49abf9b MDL-17830 fix zip_packer return status add debugging for invalid files and dirs 2012-07-29 16:09:18 +02:00
kordan e7d53b43ec MDL-34405 theme_formal_white: added background for quiz overview 2012-07-29 15:55:23 +02:00
kordan 3518d78f10 MDL-34494 theme_formal_white: replaced old style core_renderer::MAIN_CONTENT_TOKEN with $OUTPUT->main_content() 2012-07-29 15:27:09 +02:00
Mary Evans e0c380994a MDL-34624 theme_base: added background color to style/admin.css for role edit default 2012-07-29 14:23:19 +01:00
Petr Škoda 4b8d031a4e MDL-34616 fix editor resizing regression 2012-07-29 14:48:23 +02:00
Tim Hunt f8b665224f MDL-34532 quiz reports: error when showing users without attempts.
We were not checking if attempt state was null before trying to convert it to a string.
2012-07-27 23:21:32 +01:00
Tim Hunt 7e48778b87 MDL-31509 quiz outcomes: let people associate quizzes with outcomes.
The quiz does not really support outcomes, but even so in 1.9 you could
select outcomes on the quiz edit form, and apparently this was useful to
some people, therefore we should re-enable it.
2012-07-27 18:06:24 +01:00
Petr Škoda fea52c11cb MDL-34538 fix PARAM_FLOAT validation 2012-07-27 18:44:41 +02:00
Petr Škoda 9a97fa5a65 MDL-34538 add float validation tests 2012-07-27 18:44:27 +02:00
Tim Hunt 4b6ad1e79b MDL-32791 quiz db: clean up garbage data that was causing problems.
Melinda Kraft reported having rows in their quiz_question_instances
table which caused various problems. These rows are meaningless, so I
have done a DB upgrade step to clean them up, which should deal with the
bad side-effets they were causing.
2012-07-27 16:41:28 +01:00
Nadav Kavalerchik 9358953d90 MDL-34513 - RTL Theme fixes for Moodle 2 (theme/mymobile)
+ Right align frontpage course list
+ right align activity and resource titles
+ Two Columns on/off slider fix
+ Right align content in Blocks
+ Fix checkbox question types in quiz
+ Right align titles of fields in Forms
+ minor ui tweaks
2012-07-27 16:30:19 +03:00
Jean-Michel Vedrine 3a24ae8b17 MDL-34483 qformat_examview: handle more questions.
These fixes come from testing with the example file supplied by Rick
Jerz.
2012-07-27 12:13:38 +01:00
Tim Hunt ff2ec2cb95 MDL-34599 quiz attempts: more robust if page number out of range.
Rather than throwing an exception, we should just show the first/last
page of the quiz if the page number is out-of-range.
2012-07-27 11:42:03 +01:00
Damyon Wiese 94f26900c9 MDL-31288: New feature: Assignment submission statements 2012-07-27 16:00:10 +08:00
Ankit Agarwal 703a2c2e3f MDL-34467 glossary: Changing strictness of new context_xxx::instances() calls 2012-07-27 14:27:09 +08:00
Rajesh Taneja 432a68805a MDL-34239 Blog: Editing blog associated with module will be keep it's association 2012-07-27 14:01:08 +08:00
Ankit Agarwal f7562e83b1 MDL-34467 page: Repalce all instances of get_context_instanc() with respective context_XXX::instance() 2012-07-27 13:27:59 +08:00
Ankit Agarwal c288a3dbf8 MDL-34467 lti: Repalce all instances of get_context_instanc() with respective context_XXX::instance() 2012-07-27 13:27:13 +08:00
Ankit Agarwal 5918e3715e MDL-34467 lesson: Repalce all instances of get_context_instanc() with respective context_XXX::instance() 2012-07-27 13:26:35 +08:00
David Monllao 327c67a971 MDL-34466 mod_choice Replace all instances of get_context_instance() with respective context_XXXX class in mod/choice 2012-07-27 13:26:06 +08:00
David Monllao c068b41bed MDL-34466 mod_folder Replace all instances of get_context_instance() with respective context_XXXX class in mod/folder 2012-07-27 13:26:06 +08:00
David Monllao 6536217c78 MDL-34466 mod_chat Replace all instances of get_context_instance() with respective context_XXXX class in mod/chat 2012-07-27 13:26:04 +08:00
Ankit Agarwal b631c40835 MDL-34467 imscp: Repalce all instances of get_context_instanc() with respective context_XXX::instance() 2012-07-27 13:25:55 +08:00
Ankit Agarwal e0a91e119a MDL-34467 glossary: Repalce all instances of get_context_instanc() with respective context_XXX::instance() 2012-07-27 13:25:24 +08:00
David Monllao 01a67102e6 MDL-34466 mod_assignment Replace all instances of get_context_instance() with respective context_XXXX class in mod/assignment 2012-07-27 13:25:05 +08:00
Frederic Massart b061530d66 MDL-25953 Repository: Amazon S3 supports sub directories 2012-07-27 10:52:26 +08:00
Frederic Massart 12ca713302 MDL-25953 Repository: Updated Amazon S3 library 2012-07-27 10:52:26 +08:00
Charles Fulton c2ab23894b MDL-29909 wiki: do not show groups when no groups present 2012-07-26 19:13:33 -07:00
Adrian Greeve b0c6dc1cac MDL-34465 - lib - Replacing get_context_instance with context_XXXX::instance (group 8) 2012-07-27 10:10:46 +08:00
Ankit Agarwal 686ca2f5d1 MDL-32827 calendar: Added logic to handle calendar events with empty eventtypes during restore 2012-07-27 10:08:16 +08:00
Ankit Agarwal 3713514b08 MDL-32827 calendar: Fixining calender entries with no eventtype 2012-07-27 10:06:37 +08:00
Frederic Massart bb9ea890f6 MDL-34507 Repository: Better support for 'any' accepted filetypes 2012-07-27 10:01:27 +08:00
Paul Charsley 2ecdfa526a Merge branch 'master' of https://github.com/moodle/moodle 2012-07-27 13:55:05 +12:00
David Monllao 2c979976e1 MDL-34464 mod_feedback Replace all instances of get_context_instance() with respective context_XXXX class in mod/feedback 2012-07-27 09:13:57 +08:00
David Monllao 0b3b8c30e2 MDL-34464 mod_data Replace all instances of get_context_instance() with respective context_XXXX class in mod/data 2012-07-27 09:13:57 +08:00
David Monllao b4b6fc9155 MDL-32499 gradingform_rubric Avoid backup/restore of rubric fillings without an existing criteria 2012-07-27 09:13:21 +08:00
David Monllao ba4ee840db MDL-32931 mod_forum Polishing patch and taking into account courses without previous accesses 2012-07-27 09:08:23 +08:00
Tom Lanyon 28d638729d MDL-32931 mod_forum Change forum overview to avoid use of (potentially large and slow ) log table. 2012-07-27 09:08:23 +08:00
Jean-Michel Vedrine 9c3afc5bb6 MDL-34483 qformat_examview: clean the code to make codechecker happy 2012-07-26 18:54:31 +01:00
Jean-Michel Vedrine 2562c138ec MDL-34483 qformat_examview: changes required to make it basically work. 2012-07-26 18:54:30 +01:00
Tim Hunt 6200f70c5e MDL-34589 quiz report graphs: PHP5.4 issue with unset($array[$float]).
Thanks to Matthew Davidson for diagnosing the problem.
2012-07-26 18:47:57 +01:00
Andrew Robert Nicols feddb588ec MDL-28486 Force use of SSL for all youtube and vimeo embeds
If a page is served over SSL (https), then any content loaded from non-SSL
sources (e.g. http://youtube.com/) will cause errors to show in the
browser. To prevent this, it's best to use the SSL equivelants where they
exist (e.g. https://youtube.com/).

Unfortunately, it isn't possible to accurately determine whether the
current page is loaded over an SSL connection or not in Moodle.

Since including content from an external SSL site on a non-SSL moodle page
does not lead to browser warnings, but non-SSL external content on an SSL
moodle page does, we always use SSL where available.

Note: This does not lead to any additional processing requirements for the
moodle site.
2012-07-26 09:18:19 +01:00
Aparup Banerjee 55a568fa7d weekly release 2.4dev 2012-07-26 14:23:09 +08:00
Rossiani Wijaya 4370d73d48 MDL-34255 group calendar events: fixed adding group calendar event for students 2012-07-26 14:22:22 +08:00
Aparup Banerjee 3c2ed6ebab Merge branch 'install_master' of git://git.moodle.cz/moodle-install 2012-07-26 14:11:57 +08:00
Frederic Massart 4373103084 MDL-34460 Librairies: Replaced deprecated get_context_instance() 2012-07-26 13:23:28 +08:00
AMOS bot 8e28b1de66 Automatically generated installer lang files 2012-07-26 00:31:43 +00:00
Andrew Robert Nicols d2a27ab01b MDL-29007 Rename moodle-enrol-notification to moodle-core-notification 2012-07-25 16:22:18 +01:00
Rajesh Taneja 42b60b2755 MDl-31294 Forms Library: updated php docs pointing to addHelpButton 2012-07-25 14:18:53 +08:00
Dan Poltawski 5d6cdf95f4 Merge branch 'MDL-13629_droplow' of git://github.com/andyjdavis/moodle 2012-07-25 12:29:05 +08:00
Sam Hemelryk d5a81fadbf Merge branch 'wip-mdl-19430' of git://github.com/rajeshtaneja/moodle 2012-07-25 16:25:04 +12:00
Dan Poltawski e5d760697b MDL-34441 dbtransfer - do not attempt migration if moodle is not installed. 2012-07-25 11:29:31 +08:00
Dan Poltawski f1e8021728 MDL-34441 tool_dbtranfer - fix codechecker warnings
Since we were so close to perfection.
2012-07-25 10:43:37 +08:00
Rajesh Taneja 405e14f246 MDL-19430 My Moodle: Fixed spacer icon to align move icons 2012-07-25 10:28:32 +08:00
Dan Poltawski d574571540 Merge branch 'w30_MDL-34441_m24_dbtransfer' of git://github.com/skodak/moodle 2012-07-25 10:26:01 +08:00
Andrew Davis fb80cb2aa4 MDL-13629 grade: added some unit tests to clarify the handling of droplow and improved apply_limit_rules() 2012-07-25 09:35:28 +08:00
Sam Hemelryk 3e23eb6838 Merge branch 'w30_MDL-34475_m24_saveondefault' of git://github.com/skodak/moodle 2012-07-25 11:13:28 +12:00
Sam Hemelryk 61e93a4c08 Merge branch 'MDL-27083-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-07-25 09:20:44 +12:00
Rex Lorenzo 9eba24266b MDL-34519 - Course reset not protected by proper capability 2012-07-24 12:01:11 -07:00
Andrew Robert Nicols 10f2c0fb49 MDL-34433 Check for existence of e and e.target in set_form_changed
This is required for cases when code directly calls set_form_changed as
happens with the filepicker.
2012-07-24 14:28:14 +01:00
Dan Poltawski 6d2cd4368a Merge branch 'MDL-34468-master' of git://github.com/ankitagarwal/moodle 2012-07-24 17:53:50 +08:00
Dan Poltawski effe1c20c0 Merge branch 'MDL-34458-master-integration' of git://github.com/FMCorz/moodle 2012-07-24 17:24:15 +08:00
Dan Poltawski 18d3e39072 Merge branch 'MDL-34461-master-integration' of git://github.com/FMCorz/moodle 2012-07-24 17:08:13 +08:00
Ankit Agarwal a3fc4b3ad6 MDL-34468 scorm: Replace all instances of get_context_instance() with respective context_XXXX in mod/scorm 2012-07-24 17:08:05 +08:00
Ankit Agarwal c492a78ee2 MDL-34468 quiz: Replace all instances of get_context_instance() with respective context_XXXX class in mod/quiz 2012-07-24 17:08:05 +08:00
Ankit Agarwal 1c9691160b MDL-34468 survey: Replace all instances of get_context_instance() with respective context_XXXX class in mod/survey 2012-07-24 17:07:57 +08:00
Frederic Massart 21c08c63ca MDL-34458 Librairies: Replaced deprecated get_context_instance() 2012-07-24 16:58:17 +08:00
Aparup Banerjee 821fbfe4f5 Merge branch 'wip-mdl-31294' of git://github.com/rajeshtaneja/moodle 2012-07-24 16:57:58 +08:00
Dan Poltawski 5237103a99 Merge branch 'MDL-34456-master-integration' of git://github.com/FMCorz/moodle 2012-07-24 16:53:45 +08:00
Aparup Banerjee 90310b1b4f MDL-26969 assignment : clarified phpdoc and fixed whitespace. 2012-07-24 16:40:05 +08:00
Aparup Banerjee c5e518d521 Merge branch 'MDL-26969' of git://github.com/rwijaya/moodle 2012-07-24 16:39:59 +08:00
Dan Poltawski 4074f6d090 Merge branch 'MDL-34459-master' of git://github.com/ankitagarwal/moodle 2012-07-24 16:35:01 +08:00
Ankit Agarwal 4658aec5eb MDL-34459 course: Changing strictness of context call in get_category_or_system_context() to keep it consistent with past usages 2012-07-24 16:20:35 +08:00
Ankit Agarwal 1f364c87e3 MDL-34459 course: changing strictness of context calls as needed 2012-07-24 16:20:35 +08:00
Ankit Agarwal 9a5e297b4c MDL-34470 course: Replace all instances of get_context_instance() with context_xxx::instance() in course/ 2012-07-24 16:19:01 +08:00
Dan Poltawski 4ea5885e87 Merge branch 'wip-MDL-34463-master' of git://github.com/abgreeve/moodle 2012-07-24 16:16:45 +08:00
Dan Poltawski 0cbeea2b96 Merge branch 'MDL-34455-master-integration' of git://github.com/FMCorz/moodle 2012-07-24 16:01:00 +08:00
Dan Poltawski 226c5493ac Merge branch 'MDL-34484' of git://github.com/timhunt/moodle 2012-07-24 15:40:18 +08:00
Dan Poltawski abdf2b675b MDL-34462 cohort: remove uncessary MUST_EXIST params
(its now the default)
2012-07-24 15:23:07 +08:00
Dan Poltawski e0bbad5bf9 Merge branch 'MDL-34462-master-integration' of git://github.com/FMCorz/moodle 2012-07-24 15:16:39 +08:00
Rajesh Taneja c277b502ab MDL-31294 Forms Library: Removed deprecated functions from forms library 2012-07-24 15:09:39 +08:00
Dan Poltawski 7bc0f808d3 Merge branch 'wip-MDL-34457-master' of git://github.com/abgreeve/moodle 2012-07-24 15:04:53 +08:00
Dan Poltawski c14ecacfd5 Merge branch 'MDL-34470-master' of git://github.com/ankitagarwal/moodle 2012-07-24 14:51:14 +08:00
Dan Poltawski b7db7803bc Merge branch 'w30_MDL-34299_m24_html5' of git://github.com/skodak/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-07-24 14:07:26 +08:00
Adrian Greeve d40604724b MDL-34463 - lib - Alteration of the get_context_instance function to utilize the new function context_XXXX::instance(). 2012-07-24 14:04:40 +08:00
Dan Poltawski 1011757205 Merge branch 'w30_MDL-34129_m24_enrolinfo' of git://github.com/skodak/moodle 2012-07-24 13:41:35 +08:00
Dan Poltawski 5082d87c03 Merge branch 'wip-mdl-32940' of git://github.com/rajeshtaneja/moodle 2012-07-24 13:39:59 +08:00
Aparup Banerjee acb88dbed3 Merge branch 'wip-mdl-32942' of git://github.com/rajeshtaneja/moodle 2012-07-24 12:14:17 +08:00
Adrian Greeve 41b3836067 MDL-33061 - lib - Replacement of get_context_instance with the new function call (group 3) 2012-07-24 09:52:41 +08:00
Frederic Massart fe2fdd11e4 MDL-34456 Librairies: Replaced deprecated get_context_instance() 2012-07-24 09:49:47 +08:00
AMOS bot f2b52ff157 Automatically generated installer lang files 2012-07-24 00:31:47 +00:00
Sam Hemelryk b016e23594 Merge branch 'MDL-34352-master-2' of git://git.luns.net.uk/moodle 2012-07-24 11:21:16 +12:00
Kanika Goyal 67ba9007b7 MDL-32227: Plagiarism API - add support for plagiarism api to workshop module 2012-07-24 01:52:54 +05:30
Petr Škoda 434f54044e MDL-34475 add default value to xmldb_field hash calculation 2012-07-23 21:34:44 +02:00
Andrew Robert Nicols 0a2fb91003 MDL-34352 Convert chooserdialogue IDs to classes 2012-07-23 15:35:42 +01:00
Tim Hunt 564fcb3bee MDL-34484 unit tests: stop phpunit using testcase names as class names 2012-07-23 11:08:37 +01:00
Frederic Massart 55bcef2954 MDL-34461 Librairies: Replaced deprecated get_context_instance() 2012-07-23 17:42:05 +08:00
Aparup Banerjee f36b0ba502 Merge branch 'wip-MDL-34285-m24' of git://github.com/samhemelryk/moodle 2012-07-23 17:22:14 +08:00
Rajesh Taneja 61cca0b7fc MDL-32940 libraries: Replaced deprecated PARAM_NUMBER with PARAM_FLOAT 2012-07-23 17:21:05 +08:00
Aparup Banerjee 88b907fdac MDL-34449 phpdoc typo correction 2012-07-23 16:39:25 +08:00
Aparup Banerjee ad1097c2d6 Merge branch 'w30_MDL-34449_m24_layoutmaddness' of git://github.com/skodak/moodle 2012-07-23 16:27:15 +08:00
Frederic Massart 6ca657a772 MDL-34462 Librairies: Replaced deprecated get_context_instance() 2012-07-23 16:22:36 +08:00
Aparup Banerjee c1cf921653 Merge branch 'MDL-29271-master' of git://github.com/FMCorz/moodle 2012-07-23 16:09:44 +08:00
Aparup Banerjee 249996281a Merge branch 'MDL-34400-master' of git://github.com/FMCorz/moodle 2012-07-23 15:32:32 +08:00
Ankit Agarwal 0bbe041b77 MDL-34470 workshop: Replace all instances of get_context_instance() with context_xxx::instance() in mod/workshop 2012-07-23 15:10:07 +08:00
Ankit Agarwal 1df2362669 MDL-34470 wiki: Replace all instances of get_context_instance() with context_xxx::instance() in mod/wiki 2012-07-23 15:10:07 +08:00
Ankit Agarwal 6fd7b70f4b MDL-34470 url: Replace all instances of get_context_instance() with context_xxx::instance() in mod/url 2012-07-23 15:10:07 +08:00
Dan Poltawski 147dc9dafd Merge branch 'wip-MDL-34286-m24' of git://github.com/samhemelryk/moodle 2012-07-23 15:00:26 +08:00
Dan Poltawski 4f22bcbc41 Merge branch 'MDL-34066' of git://github.com/timhunt/moodle 2012-07-23 14:54:46 +08:00
Frederic Massart bf006d2c15 MDL-34455 Libraries: Replaced deprecated get_context_instance() 2012-07-23 14:33:02 +08:00
Dan Poltawski 052f346105 Merge branch 'MDL-34379' of git://github.com/timhunt/moodle 2012-07-23 14:13:58 +08:00
Dan Poltawski bc659e5284 Merge branch 'MDL-34351' of git://github.com/timhunt/moodle 2012-07-23 14:09:16 +08:00
Dan Poltawski 3fb8128fb6 Merge branch 'MDL-34251' of git://github.com/timhunt/moodle 2012-07-23 14:01:59 +08:00
Dan Poltawski bdaff201bb Merge branch 'MDL-34226' of git://github.com/timhunt/moodle 2012-07-23 13:53:46 +08:00
Rajesh Taneja dc9fa9cbb9 MDL-34148 Blog: Fixed variable name used for saving module name
Updated Erik's patch to match coding style
2012-07-23 13:43:52 +08:00
Erik Lundberg 4eaf120a83 MDL-34148: Instead of using the module name from the filesystem, the blog menu now fetches the module name with get_string(). 2012-07-23 13:43:52 +08:00
Dan Poltawski a5c8e33122 Merge branch 'wip-mdl-32945' of git://github.com/rajeshtaneja/moodle 2012-07-23 13:35:24 +08:00
Dan Poltawski db68bd4435 Merge branch 'wip-MDL-34404-m24' of git://github.com/samhemelryk/moodle 2012-07-23 13:25:26 +08:00
Dan Poltawski 89061ad4c0 Merge branch 'wip-mdl-31031' of git://github.com/rajeshtaneja/moodle 2012-07-23 13:21:37 +08:00
Dan Poltawski 6c2be9039b MDL-31023 upgrade.txt: Note to upgrade.txt about pagelib removals 2012-07-23 13:18:06 +08:00
Dan Poltawski 7067a161a3 Merge branch 'wip-mdl-31023' of git://github.com/rajeshtaneja/moodle 2012-07-23 13:13:47 +08:00
Rajesh Taneja f55cf492eb MDL-31031 messages: deprecated message_get_my_providers function to be removed in 2.5 2012-07-23 13:06:07 +08:00
Dan Poltawski db9d24a1cd Merge branch 'w30_MDL-34396_m24_loginhttpsspell' of git://github.com/skodak/moodle 2012-07-23 12:19:56 +08:00
Frederic Massart 67e3dd2c95 MDL-27083 Questions: Orphaned questions are adopted on upgrade 2012-07-23 11:37:09 +08:00
Dan Poltawski ed25f64642 Merge branch 'wip-mdl-30651' of git://github.com/rajeshtaneja/moodle 2012-07-23 11:22:06 +08:00
Rossiani Wijaya 75cf84ac25 MDL-26969 Assignment module - upload: fixed get_submission() return value to nothing when param is set to false. 2012-07-23 11:19:30 +08:00
Aparup Banerjee d829f5c6fd Merge branch 'MDL-32665_chat_popup' of git://github.com/andyjdavis/moodle 2012-07-23 10:17:55 +08:00
Sam Hemelryk 395b805f97 Merge branch 'MDL-34225' of git://github.com/nebgor/moodle 2012-07-23 14:04:09 +12:00
Sam Hemelryk 27ceaf09cc MDL-19430 block_course_overview: Fixed up whitespace 2012-07-23 14:02:27 +12:00
Sam Hemelryk 9e50c8d1e7 Merge branch 'w30_MDL-33180_m24_simpletest' of git://github.com/skodak/moodle
Conflicts:
	version.php
2012-07-23 13:39:11 +12:00
Sam Hemelryk f3c3a84280 MDL-19430 block_course_overview: post integration clean up 2012-07-23 13:36:46 +12:00
Sam Hemelryk 4c21d0da95 Merge branch 'wip-mdl-19430' of git://github.com/rajeshtaneja/moodle 2012-07-23 13:36:45 +12:00
Dan Poltawski fe56f5bc11 Merge branch 'MDL-34451' of git://github.com/merrill-oakland/moodle 2012-07-23 09:22:40 +08:00
Sam Hemelryk 409300ad42 MDL-34205 modchooser: Bumped version number after new setting added 2012-07-23 12:53:11 +12:00
Sam Hemelryk 18989c7a24 Merge branch 'MDL-34205-master' of git://github.com/micaherne/moodle 2012-07-23 12:52:35 +12:00
Sam Hemelryk df49074771 Merge branch 'MDL-24298-master' of git://github.com/micaherne/moodle 2012-07-23 12:48:46 +12:00
Sam Hemelryk 11946cada0 Merge branch 'MDL-34412_master' of git://github.com/lazydaisy/moodle 2012-07-23 12:42:23 +12:00
Sam Hemelryk 97918ad586 Merge branch 'MDL-34370_master' of git://github.com/lazydaisy/moodle 2012-07-23 12:40:08 +12:00
Sam Hemelryk dedf660f86 Merge branch 'wip-MDL-34428-master' of git://github.com/marinaglancy/moodle 2012-07-23 12:37:40 +12:00
Sam Hemelryk a7b2d08727 Merge branch 'MDL-33560-master' of git://github.com/FMCorz/moodle 2012-07-23 12:25:31 +12:00
Jean-Philippe Gaudreau dacd5daa7a MDL-31516 Fixing grade_edit_tree::format_number 2012-07-23 12:21:50 +12:00
Sam Hemelryk fc994304a2 Merge branch 'wip-MDL-34221-master' of git://github.com/marinaglancy/moodle 2012-07-23 12:08:15 +12:00
Sam Hemelryk 87608b34f4 Merge branch 'MDL-33927_enforce_max_attachments' of git://github.com/davosmith/moodle 2012-07-23 12:00:30 +12:00
Sam Hemelryk 6d8b85ff82 Merge branch 'MDL-29563_master' of https://github.com/dmonllao/moodle 2012-07-23 11:49:57 +12:00
Jason Ilicic e0e903291a MDL-34427: Corrected language string when not allowed to enter the chat room. 2012-07-23 11:40:37 +12:00
Sam Hemelryk f49eff005e Merge branch 'master_MDL-34374' of git://github.com/danmarsden/moodle 2012-07-23 11:38:19 +12:00
Sam Hemelryk ce4182a46a Merge branch 'master_MDL-34233' of git://github.com/danmarsden/moodle 2012-07-23 11:26:59 +12:00
Sam Hemelryk c41e682c27 Merge branch 'MDL-34313' of git://github.com/netspotau/moodle-mod_assign 2012-07-23 11:22:17 +12:00
Sam Hemelryk 1d434a6d17 Merge branch 'MDL-34272' of git://github.com/netspotau/moodle-mod_assign 2012-07-23 11:20:28 +12:00
Sam Hemelryk 5b2b9e04ef Merge branch 'MDL-34256' of git://github.com/netspotau/moodle-mod_assign 2012-07-23 11:09:28 +12:00
Sam Hemelryk d817a9e52e Merge branch 'MDL-34067' of git://github.com/netspotau/moodle-mod_assign 2012-07-23 11:07:30 +12:00
Sam Hemelryk f3a6fa396e Merge branch 'MDL-2283' of git://github.com/netspotau/moodle-mod_assign 2012-07-23 10:54:55 +12:00
Sam Hemelryk 30a47aea87 Merge branch 'MDL-34265-master' of git://github.com/ankitagarwal/moodle 2012-07-23 10:39:56 +12:00
Sam Hemelryk d9416fba03 Merge branch 'MDL-34322-master-1' of git://git.luns.net.uk/moodle 2012-07-23 09:43:17 +12:00
Sam Hemelryk 9df815068c MDL-34243 completion: Fixed up call to completion_criteria::factory that was passing object 2012-07-23 09:38:28 +12:00
Sam Hemelryk 8afee51adb Merge branch 'MDL-34243' of git://github.com/srynot4sale/moodle 2012-07-23 09:37:29 +12:00
Petr Škoda 9e8b02e658 MDL-34441 bump up version to trigger cache purging 2012-07-22 21:01:31 +02:00
Petr Škoda 65ee48679b MDL-34441 add CLI database migration script 2012-07-22 20:56:22 +02:00
Mary Evans 1febf3b138 MDL-34370 theme_fusion: added CSS in style/core.css to enable weeks to be moved when editing 2012-07-22 17:55:59 +01:00
Eric Merrill 478067dbfb MDL-34451 quiz Fixed problem where attempt page is updated for ALL attempts, not just current. 2012-07-22 12:22:28 -04:00
Petr Škoda 6ceaf9807c MDL-34441 add maintenance mode to db migration and improve lang strings 2012-07-22 17:50:45 +02:00
Petr Škoda b43bc95104 MDL-34441 scroll to the bottom when db migration finished 2012-07-22 15:38:03 +02:00
Petr Škoda f3ae983eea MDL-34441 rewrite log display actions after db migration 2012-07-22 15:38:03 +02:00
Petr Škoda 3ce26ee7f4 MDL-34441 improve error handling when migrating databases 2012-07-22 15:38:03 +02:00
Petr Škoda a197c413c5 MDL-34441 prevent mysqli::close() notice after failed mysql driver connect 2012-07-22 15:38:03 +02:00
Petr Škoda 90ad9a5329 MDL-34441 show db transfer in experimental section
DB export and import is not ready yet, sorry.
2012-07-22 15:38:03 +02:00
Petr Škoda 867effce93 MDL-34441 fix switched lang strings 2012-07-22 15:38:02 +02:00
Petr Škoda ba9703d14f MDL-34441 always use proper charset in htmlspecialchars() calls 2012-07-22 15:38:02 +02:00
Petr Škoda 5a773597de MDL-34441 cleanup dtl related phpdocs and minor style improvements 2012-07-22 15:38:02 +02:00
Petr Škoda e9324a2274 MDL-34449 lazy load theme layout otpions
This should allow us to switch page layout on admin pages and elsewhere before $OUTPUT->header() call.
2012-07-22 15:33:30 +02:00
Petr Škoda cb76fec0b5 MDL-34129 show course info on enrolment page 2012-07-21 21:29:58 +02:00
Luke Tucker 8bc4a6528f MDL-34396 Ensure TinyMCE editor spell checking works on pages with $PAGE->https_required() 2012-07-21 20:29:20 +02:00
Petr Škoda 13725b3797 MDL-34299 remove xmlstrictheaders setting and switch to html5 doctype by default
This fixes WCAG 2.0 compliance because we were already using HTML5 markup.

The strict XML headers setting never worked for production servers, developers
used browser validators for compliance testing. XHTML 5 option is relatively
similar to this obsolete option, but still it can not be used on production servers.

XHTML Strict 1.x was a standardised dead end, HTML5 is the new de-facto-standard
supported by all major browsers including latest versions of IE.

Please note nothing changes in our coding style because HTML5 is a superset of
several previous standards, it is recommended to use only features that are
already implemented in all our supported browsers.
2012-07-21 19:23:44 +02:00
Petr Škoda c8b3346cfd MDL-33180 delete the last traces of SimpleTest - ciao and thanks 2012-07-21 10:11:50 +02:00
Mary Evans 4470ad0950 MDL-34412 theme_afterburner: defined #EEE as background-color in afterburner_styles.css for filemanager and filepicker input, select, button & textarea 2012-07-20 23:12:06 +01:00
David Monllao 8fea05bfb4 MDL-33537 gradingform_rubric Adding the definition when retrieving grading instances
Credit to Sam Chaffee
2012-07-20 14:57:34 +08:00
Marina Glancy c4b64a064a MDL-34428 Private files repository should have a 'manage' link 2012-07-20 13:32:47 +08:00
Paul Charsley b0b6ead6b9 Merge branch 'master' of https://github.com/moodle/moodle 2012-07-20 17:09:10 +12:00
Marina Glancy c81f332876 MDL-34221 disabledIf support for filemanager and filepicker elements 2012-07-20 10:49:30 +08:00
Davo Smith b1c669a711 MDL-34221 Filepicker - disableIf now prevents drag and drop upload 2012-07-20 10:49:30 +08:00
Frederic Massart 6aa3aabe95 MDL-33560 Enrol: Enrol password can be unmasked 2012-07-20 09:00:39 +08:00
Tim Hunt c33d527833 MDL-34351 quiz cron: one broken overdue attempt should not kill cron
It seems that sometimes trying to process an overdue quiz attempt can
throw an exception. In that case, we need to catch it and report it
nicely, and then carry on processing the rest of the attempts, rather
than just killing the whole of cron processing.

Also, there may be garbage quiz attempts where the associated quiz or
course has been deleted. Skip those too.
2012-07-19 15:21:05 +01:00
Tim Hunt 7326b7e247 MDL-34379 quiz reports: timetaken 'open' for never submitted attempts 2012-07-19 12:51:55 +01:00
Tim Hunt dd7aa58386 MDL-34251 question engine: possible infinite loop loading usages
In the case where either a question_attempt had not steps, or a
question_usage had not question_attempts, the load_from_records methods
could get stuck in an infinite loop.

This fix ensures that does not happen, with unit tests to verify it. At
the same time, I noticed an error in the existing tests, which this
patch fixes.
2012-07-19 12:51:00 +01:00
Tim Hunt be1d8ed194 MDL-34226 multianswer qtype: basic unit test.
This verifies the previous fix, and gets rid of a rather embarassing TODO.
2012-07-19 12:50:47 +01:00
Tim Hunt c0a912e5ac MDL-34226 multichoice qtype: correct is_complete_response for multianswer
The multianswer qtype uses the multi-choice one, and the way it does its
responses array breaks an assumption that multi-choice was making.
2012-07-19 12:50:47 +01:00
Tim Hunt a3e6ad77d2 MDL-34066 adaptive behaviour: refactor logic out of renderer.
These changes move the logic to the behaviour class, which is how things
should be.

It also makes it easier to re-use the code that displays the messages
like "Marks for this submission: 1.00/1.00. Accounting for previous
tries, this gives 0.33/1.00." in other places.

To try to make it clearer what is going on, I introduced a new class
qbehaviour_adaptive_mark_details to hold and document the data that the
behaviour needs to return, and the renderer can base its display on.

As far as my testing can tell (and there are new unit tests), this
commit does not change the existing behaviour.

This commit also replaces all the string concatenation that is going on,
which should help translators. At the moment, a few of the old strings
are still in the language file, and are used in the unit tests to verify
that the behaviour has not changed.

Thanks to Oleg Sychev for making a helpful suggestion about the API.
2012-07-19 12:50:17 +01:00
Andrew Davis 77d187ed1e MDL-28568 message: added a warning message when the user is about to message someone who cant reply 2012-07-19 17:14:50 +08:00
Sam Hemelryk dd51b3b2e0 MDL-33448 javascript: Added caching for the YUI instance used for debug in get_string 2012-07-19 20:22:41 +12:00
Sam Hemelryk 2ede466e5f MDL-34286 conditionlib: Fixed up loading of user profile data for custom field conditions 2012-07-19 20:10:04 +12:00
Rajesh Taneja fc9ae8d164 MDL-31294 Forms Library: Removed deprecated file and format form element 2012-07-19 16:06:21 +08:00
Ankit Agarwal 1868607ad6 MDL-34265 SCORM: Removing sorting from unsortable columns 2012-07-19 15:58:46 +08:00
Rajesh Taneja 11ad98ff0c MDL-31023 Libraries: removed legacypageobject usage 2012-07-19 15:48:45 +08:00
Rajesh Taneja afb92f1b9e MDL-31023 libraries: removed deprecated function and classes from pagelib.php 2012-07-19 15:48:45 +08:00
Rajesh Taneja 405aca3532 MDL-32942 libraries: Replaced deprecated PARAM_ACTION and PARAM_FORMAT with PARAM_ALPHANUMEXT 2012-07-19 15:46:10 +08:00
Rajesh Taneja 071e68f93e MDL-32945 libraries: Replaced deprecated PARAM_MULTILANG with PARAM_TEXT 2012-07-19 15:44:40 +08:00
Dan Marsden 295c012de7 MDL-34233 SCORM backup - change to using set_source_sql to preserve order of records in backup. 2012-07-19 19:38:14 +12:00
Rajesh Taneja 1e12c1203b MDL-30651 libraries: Replaced deprecated PARAM_INTEGER with PARAM_INT 2012-07-19 15:37:46 +08:00
David Monllao 6b4885319b MDL-29563 course Throwing an exception instead of a message 2012-07-19 15:33:30 +08:00
David Monllao 8a1a951f7c MDL-29563 course Hide duplication button in activities without backup2 support - Credit to Mark Nielsen 2012-07-19 15:33:30 +08:00
Rajesh Taneja 37b5e8fee8 MDL-19430 My Moodle: Polished course_over view code of netspot 2012-07-19 15:30:37 +08:00
Adam Olley 83ea0cc17e MDL-19430 My Moodle: Merged Netspot My Course Overview Block for Moodle 2 2012-07-19 15:30:37 +08:00
Sam Hemelryk 1c8d09338e MDL-34285 condition: Fixed up missing operator 2012-07-19 19:29:47 +12:00
Sam Hemelryk 21a4e24cab MDL-34285 condition: Added is not empty option for user profile conditions and moved strings.
As part of this change I added a new condition for user fields: is not equal.
I also copied the strings being used from the filters lang file to the condition
lang file and changed the uses in code.

AMOS BEGIN
  CPY [contains,filters],[contains,condition]
  CPY [doesnotcontain,filters],[doesnotcontain,condition]
  CPY [isequalto,filters],[isequalto,condition]
  CPY [startswith,filters],[startswith,condition]
  CPY [endswith,filters],[endswith,condition]
  CPY [isempty,filters],[isempty,condition]
AMOS END
2012-07-19 19:27:00 +12:00
Dan Poltawski 3294034b80 weekly release 2.4dev 2012-07-19 13:45:13 +08:00
Frederic Massart a2584294b3 MDL-29271 Alfresco: Repository can browse sites 2012-07-19 13:43:57 +08:00
Dan Poltawski 3b593a90ba Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-07-19 13:41:50 +08:00
Frederic Massart ce9e687701 MDL-34400 Alfresco: Altering the API for integration into Moodle 2012-07-19 13:29:42 +08:00
Frederic Massart 1258391a50 MDL-34400 Alfresco: Updated PHP SDK to v0.1 2012-07-19 13:29:10 +08:00
Paul Charsley 3e01e06def Merge branch 'master' of https://github.com/moodle/moodle 2012-07-19 09:27:26 +12:00
Dan Poltawski 0b9a3d7ac1 MDL-33624 externalib: fix two invalidcourseid uses with placeholder
A placeholder no longer exists.
2012-07-18 11:26:49 +08:00
Dan Marsden bb5cc0e964 MDL-34374 SCORM prevent skipview being set to always when used inside a SCORM course format. 2012-07-18 10:32:46 +12:00
Sam Hemelryk d7e0d2cb08 Merge branch 'MDL-31300' of git://github.com/rwijaya/moodle 2012-07-18 10:25:28 +12:00
Sam Hemelryk e260e8ce57 Merge branch 'MDL-32948' of git://github.com/netspotau/moodle-mod_assign 2012-07-18 10:19:52 +12:00
Sam Hemelryk 5f7ee647ff Merge branch 'MDL-34217' of git://github.com/netspotau/moodle-mod_assign 2012-07-18 10:12:50 +12:00
Sam Hemelryk 7ee23e554d Merge branch 'MDL-31132-master' of git://github.com/ankitagarwal/moodle 2012-07-18 10:05:31 +12:00
Sam Hemelryk 2fcd79c043 Merge branch 'MDL-21572-master' of git://github.com/FMCorz/moodle 2012-07-18 09:41:42 +12:00
Frederic Massart 61c8e0d75f MDL-21572 Gradebook: Do not export fields when missing permissions 2012-07-18 12:56:57 +08:00
Sam Hemelryk 4d9f21a27e Merge branch 'MDL-33874-master-2' of git://git.luns.net.uk/moodle 2012-07-18 09:33:00 +12:00
Aparup Banerjee 816ac8dfb5 Merge branch 'MDL-33767-master' of git://github.com/FMCorz/moodle 2012-07-17 17:22:48 +08:00
Frederic Massart 5946d376cb MDL-33767 Course: General section displays its title when required 2012-07-18 17:13:11 +08:00
Davo Smith a32dabc260 MDL-33927 Filemanager - enforce the maxfiles limit on form submission 2012-07-17 10:18:52 +01:00
Michael Aherne 7edfa373fd MDL-24298 news block Remove "more" link for improved accessibility 2012-07-17 09:53:46 +01:00
Sam Hemelryk c1483c9c6c Merge branch 'MDL-32919-core_course_import_course' of git://github.com/jleyva/moodle
Conflicts:
	version.php
2012-07-17 17:38:16 +12:00
Dan Poltawski 239311aaad Merge branch 'MDL-34083' of git://github.com/jleyva/moodle 2012-07-17 13:11:07 +08:00
Sam Hemelryk 51625c4662 Merge branch 'MDL-33575' of git://github.com/rwijaya/moodle 2012-07-17 15:50:19 +12:00
Rossiani Wijaya f92547f81c MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results 2012-07-17 10:18:39 +08:00
Andrew Davis fef7025c5e MDL-32665 mod_chat: disabled popup notifications in the chat windows 2012-07-17 10:15:14 +08:00
Damyon Wiese da099b12a0 MDL-34272: Assignment module displays all assignments on my moodle instead of just open ones 2012-07-17 10:06:02 +08:00
Damyon Wiese f70079b9bf MDL-2283: Display number of assignment submissions that need grading in the grading summary 2012-07-17 09:16:43 +08:00
AMOS bot 38cedbaab8 Automatically generated installer lang files 2012-07-17 00:31:43 +00:00
David Monllaó 8f80180de6 MDL-30876 filter_mediaplugin Wrapping the style sheets access with try & catch
Conflicts:

	lib/javascript-static.js
2012-07-17 12:20:35 +12:00
Dan Poltawski 6039dc55fb MDL-8249 install.xml - fixup use of editor
Thanks Andrew
2012-07-17 07:55:38 +08:00
Dan Poltawski 648c1ad194 Merge branch 'MDL-34187' of git://github.com/timhunt/moodle 2012-07-16 15:57:21 +08:00
Dan Poltawski 7e867bb39f Merge branch 'MDL-26587' of git://github.com/nebgor/moodle 2012-07-16 15:50:44 +08:00
Ankit Agarwal 1ce66e00fe MDL-31132 calendar: remove deprecated CALENDAR_STARTING_WEEKDAY 2012-07-16 15:44:35 +08:00
Andrew Robert Nicols 35ee775882 MDL-33874 Don't warn about focussed form fields with the ignoredirty class 2012-07-16 08:08:05 +01:00
Dan Poltawski 0e7dd4f672 Merge branch 'MDL-23219' of git://github.com/timhunt/moodle 2012-07-16 14:32:48 +08:00
Dan Poltawski 2c42d088dd Merge branch 'wip-mdl-33616' of git://github.com/rajeshtaneja/moodle 2012-07-16 14:28:59 +08:00
Dan Poltawski 0af076a215 Merge branch 'wip-mdl-30798' of git://github.com/rajeshtaneja/moodle 2012-07-16 14:26:01 +08:00
Rajesh Taneja 08d32575e1 MDL-33616 Maths filter: Addded --halt-on-error swtich for latex to stop execution, if any error is encountered 2012-07-16 14:24:34 +08:00
Rajesh Taneja 8450069ad4 MDL-30798 Blog: link param for entries about this course link is fixed 2012-07-16 14:10:27 +08:00
Dan Poltawski bea8b7454e Merge branch 'MDL-22259b' of git://github.com/srynot4sale/moodle 2012-07-16 11:57:04 +08:00
Dan Poltawski 3d1b3a87a2 Merge branch 'MDL-31622-master' of git://github.com/FMCorz/moodle 2012-07-16 11:34:16 +08:00
Fred Woolard ce6ab1b96b MDL-34211 Use the $table_name argument to check against $metatables key values 2012-07-16 11:16:55 +08:00
Dan Poltawski 30a3059e79 Merge branch 'wip-MDL-34220-m24' of git://github.com/samhemelryk/moodle 2012-07-16 11:11:36 +08:00
Dan Poltawski 3c309ba6a4 Merge branch 'w29_MDL-34271_m24_mysqlcollation' of git://github.com/skodak/moodle 2012-07-16 11:00:48 +08:00
Dan Poltawski 9bc01a164a Merge branch 'MDL-34164' of git://github.com/timhunt/moodle 2012-07-16 10:05:43 +08:00
Dan Poltawski 3f728cdbbe Merge branch 'wip-MDL-33720-m24' of git://github.com/samhemelryk/moodle 2012-07-16 10:01:15 +08:00
Dan Poltawski c9e084dd3a Merge branch 'wip-MDL-34213-master' of git://github.com/marinaglancy/moodle 2012-07-16 09:54:54 +08:00
Sam Hemelryk 775d977710 Merge branch 'MDL-33624' of git://github.com/danpoltawski/moodle 2012-07-16 13:51:07 +12:00
Sam Hemelryk ad882e0e41 Merge branch 'master_MDL-34133' of git://github.com/danmarsden/moodle 2012-07-16 13:44:58 +12:00
Kanika Goyal 961f66fbc6 MDL-34133 Plagiarism API - remove stored_file to make it more flexible for content. 2012-07-16 13:27:40 +12:00
Sam Hemelryk 4208d29749 Merge branch 'MDL-34214_dndupload_preview_element' of git://github.com/davosmith/moodle 2012-07-16 12:05:34 +12:00
Sam Hemelryk 5d827a7125 Merge branch 'MDL-26145_master' of git://github.com/dmonllao/moodle 2012-07-16 11:57:48 +12:00
Sam Hemelryk 78f15d33bb Merge branch 'MDL-28155_master' of git://github.com/dmonllao/moodle 2012-07-16 11:50:35 +12:00
Sam Hemelryk 2ec3484dbe Merge branch 'MDL-32310' of git://github.com/danpoltawski/moodle 2012-07-16 11:01:09 +12:00
Sam Hemelryk 7bac687d55 Merge branch 'MDL-34153' of git://github.com/danpoltawski/moodle 2012-07-16 10:44:11 +12:00
Sam Hemelryk b0965de588 Merge branch 'MDL-34240' of git://github.com/danpoltawski/moodle 2012-07-16 10:37:53 +12:00
Sam Hemelryk cbbdc7db2a Merge branch 'master_MDL-32228_add_plagiarism_api_support_to_online_assignment_type' of git://github.com/kanikagoyal/moodle 2012-07-16 10:35:34 +12:00
Sam Hemelryk c9f6b1af5d Merge branch 'master_MDL-32229_add_plagiarism_api_support_to_forum' of git://github.com/kanikagoyal/moodle 2012-07-16 10:25:36 +12:00
Fred Woolard b9609850f6 MDL-34072: Adjust SQL for Oracle. Remove subquery alias altogether. 2012-07-16 10:12:20 +12:00
Sam Hemelryk c6e94095be Merge branch 'MDL-34258' of git://github.com/netspotau/moodle-mod_assign 2012-07-16 09:57:45 +12:00
Sam Hemelryk 5c4907e987 Merge branch 'MDL-27563-master' of https://github.com/mackensen/moodle 2012-07-16 09:39:22 +12:00
Sam Hemelryk 5b5745daa3 Merge branch 'wip-MDL-33841-master' of https://github.com/barbararamiro/moodle 2012-07-16 09:35:24 +12:00
Ashley Holman 081ebacfe9 MDL-34309: Fix broken postgres unix sockets in core_adodb_testcase::test_read_table 2012-07-16 09:31:10 +12:00
Sam Hemelryk 11f8318ccc Merge branch 'MDL-33874-master-1' of git://git.luns.net.uk/moodle 2012-07-16 09:25:21 +12:00
Sam Hemelryk 8fcf6d22bd Merge branch 'MDL-33788b' of git://github.com/srynot4sale/moodle 2012-07-16 09:18:56 +12:00
AMOS bot 3b7eb7409c Automatically generated installer lang files 2012-07-15 00:31:58 +00:00
Tim Hunt 2cdcb90553 MDL-34164 quiz reports: only try to show graphs if GD is installed.
if (empty($CFG->gdversion)) { seems to be the common idiom for this.
I refactored the graph output into the renderer, to avoid having to
duplicate that test three times.
2012-07-14 09:20:04 +01:00
Tim Hunt ddda79ca5f MDL-34257 quiz 'secure' window: does not close automatically. 2012-07-13 18:02:20 +01:00
Tim Hunt ab0c7007c5 MDL-23219 check permissions: show relevant role-assignments.
Adding this list of role assignments should make it much easier for
admins to work out why, when the permissions shown in the check
permisisons page are now what they expect.

I thought about making the links go more directly to, for example, the
assign roles pages for each context, but because of things like
enrolments in courses that is hard. It is only two clicks to go to the
context, then click the right link in the settings block there.

I also re-orderd some of the code in check.php to try to get all the DB
code before all the output code.
2012-07-13 15:16:57 +01:00
Andrew Robert Nicols 65dcd906e3 MDL-34322 Don't display empty navigation nodes which have no link 2012-07-13 15:01:39 +01:00
Juan Leyva 3dfc29e194 MDL-34083 Fixing the param type also after deleting the invalid option 2012-07-13 11:31:44 +03:00
Marina Glancy 0c2fe3aac1 MDL-34213 fixed mistype causing wrong link in some browsers 2012-07-13 16:12:17 +08:00
Damyon Wiese f7626c6490 MDL-34217: Swap short and long text for setting in assignment module 2012-07-13 13:21:16 +08:00
Damyon Wiese 71df83d256 MDL-34313: Deleting assignfeedback plugins deletes config for assignsubmission_plugin instead. 2012-07-13 12:40:25 +08:00
Damyon Wiese 7f47719233 MDL-34067: Change default to on for text feedback comments in assignment
This is the "default default" setting.
2012-07-13 12:17:19 +08:00
Damyon Wiese d7c6e6dc11 MDL-32948: Improved help for "Require students click submit button" setting
Describes the effect of changing this setting after students have submitted.
2012-07-13 12:01:38 +08:00
Damyon Wiese 44e2f0fe72 MDL-34256: Grading table shows users with no submissions with "requires grading" filter
Also hide the filters completely if there are no submission plugins enabled (offline assignment).
2012-07-13 11:44:55 +08:00
Sam Hemelryk 8ab1529d8a MDL-34220 condition: Fixed up backup and restore of custom profile field conditions 2012-07-13 15:19:32 +12:00
Dan Poltawski 999427e985 MDL-34240 - google plugins: switch to PARAM_RAW_TRIMMED
This ensures the client credentials which are entered are trimmed
as users are finding problems with bad pastes.
2012-07-13 10:09:25 +08:00
Charles Fulton 293f42b67a MDL-21572 grade: make user profile fields configurable 2012-07-13 09:00:12 +08:00
Frederic Massart b8514b6a1b MDL-33767 Course: The actions on default section redirect to the correct section 2012-07-13 08:59:19 +08:00
Frederic Massart a0658f00ca MDL-31622 Forms: Date selector supports i18n 2012-07-13 08:57:13 +08:00
AMOS bot 5e623c5e9e Automatically generated installer lang files 2012-07-13 00:32:19 +00:00
Sam Hemelryk 22ba3f0809 MDL-33720 navigation: Added debug noticed to old (deprecated) local plugin callback 2012-07-13 09:19:04 +12:00
Petr Škoda fdd57d4fdf MDL-34271 add new cli tool for mysql collation conversions 2012-07-12 14:39:36 +02:00
Petr Škoda 1eece17648 MDL-34271 use the same collation when adding new tables or columns 2012-07-12 14:39:36 +02:00
Petr Škoda ed047dabc9 MDL-34271 cleanup mysql engine hack before adding similar collation hack 2012-07-12 14:39:36 +02:00
Barbara Ramiro 2ab9a06c7f MDL-33841 Min-height set to remove unnecessary scrollbar on tree and list view 2012-07-12 20:00:23 +08:00
Dan Poltawski 904673dd20 weekly release 2.4dev 2012-07-12 15:54:31 +08:00
Dan Poltawski 24ffa77f30 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-07-12 15:49:21 +08:00
Sam Hemelryk bd1fdb6a1b Revert "MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results"
This reverts commit 440821205a.
2012-07-12 18:20:48 +12:00
Dan Poltawski 2e616b543b MDL-34153 mod_forum: create RFC-2822 compliant message-ids 2012-07-12 14:16:29 +08:00
Paul Nicholls 42648dd405 MDL-32582 - filter/multimedia: MP3 Flow Player doesn't work in Chrome if empty stylesheets are present 2012-07-12 13:39:58 +08:00
Dan Poltawski 19a8646822 MDL-33624 lang - remove incosistent use of placeholder 2012-07-12 13:10:52 +08:00
Aparup Banerjee 60829d8094 MDL-34225 course completion : moved criteria classes into criteria subdir 2012-07-12 12:04:36 +08:00
Aaron Barnes eb8f89a976 MDL-22259 completion: Rename "Course Prerequisites" to "Completion Dependencies" 2012-07-12 15:55:34 +12:00
AMOS bot 8be8a390da Automatically generated installer lang files 2012-07-12 00:32:21 +00:00
Andrew Robert Nicols 52dc017114 MDL-33874 Allow form fields to be ignored by the formchangechecker 2012-07-12 01:09:43 +01:00
Kanika Goyal 103e7cba16 MDL-32227: Plagiarism API - add support for plagiarism api to forum module 2012-07-11 23:36:03 +05:30
Kanika Goyal 93d52d84ec MDL-32228: Plagiarism API - add support for plagiarism api to online assignment type 2012-07-11 23:04:56 +05:30
Dan Poltawski 7e1afba2ae Merge branch 'w28_MDL-33753_m24_utfunzip' of git://github.com/skodak/moodle 2012-07-11 17:12:57 +08:00
Petr Škoda 00f744d2b1 MDL-33753 fix sloppy refactoring regression in zip tweaking 2012-07-11 11:10:19 +02:00
Dan Poltawski ae5cf02259 Merge branch 'w28_MDL-8249_m24_roletranslations' of git://github.com/skodak/moodle 2012-07-11 16:34:15 +08:00
Wirianto Djunaidi 6998831d31 Merge branch 'master' of https://github.com/moodle/moodle 2012-07-11 20:31:34 +12:00
Petr Škoda ef7090522d MDL-8249 improve custom role strings
Credit goes to Michael de Raadt.
2012-07-11 10:29:04 +02:00
Petr Škoda d3c0f41160 MDL-8249 fix participant page role selection
Thanks Michael de Raadt for spotting this regression.
2012-07-11 10:27:14 +02:00
David Monllao 0652b34fde MDL-28155 mod_assignment Using the this object instead of a string 2012-07-11 15:10:17 +08:00
Dan Poltawski f04615e67b Merge branch 'w28_MDL-34175_m24_admin' of git://github.com/skodak/moodle 2012-07-11 14:51:55 +08:00
Petr Škoda f5bd1603e2 MDL-34175 one more hardcoded /admin/ in mnet 2012-07-11 08:47:26 +02:00
Dan Poltawski 94a9c8cae1 Merge branch 'w28_MDL-33454_m24_tinymce3541' of git://github.com/skodak/moodle 2012-07-11 14:45:41 +08:00
Petr Škoda 9177036440 MDL-33454 add forgotten TinyMCE min_height setting name change 2012-07-11 08:41:06 +02:00
Aparup Banerjee 4b92f65351 MDL-26587 Question : fixed restoring shortanswer where answers are missing due to data error in mbz file. 2012-07-11 13:41:00 +08:00
Damyon Wiese 9650334f2c MDL-34258: Plagiarism API now returns strings so mod_assign needs these updates 2012-07-11 08:31:56 +08:00
Sam Hemelryk 37038fa8e1 Merge branch 'w28_MDL-33753_m24_utfunzip' of git://github.com/skodak/moodle 2012-07-11 11:33:02 +12:00
Sam Hemelryk ee2b82d8cb Merge branch 'w28_MDL-33710_m24_utfzip' of git://github.com/skodak/moodle 2012-07-11 11:27:48 +12:00
AMOS bot 5818b36e68 Automatically generated installer lang files 2012-07-10 20:33:13 +02:00
Aaron Barnes 9710fe73d1 MDL-34243 completion: get_criteria() incorrectly passing object 2012-07-10 21:07:30 +12:00
Dan Poltawski 06dd4335aa Merge branch 'w28_MDL-33712_m24_extratags' of git://github.com/skodak/moodle 2012-07-10 15:55:58 +08:00
Dan Poltawski c94068f215 Merge branch 'wip-MDL-33950-master' of git://github.com/marinaglancy/moodle 2012-07-10 14:56:46 +08:00
Dan Poltawski 2c0c3379fc Merge branch 'MDL-30844-master' of https://github.com/FMCorz/moodle 2012-07-10 14:47:35 +08:00
Dan Poltawski f5d7fe4c9e MDL-34159 - add comment lost from previous commit 2012-07-10 12:59:06 +08:00
Sun Zhigang b5b7d9d91a MDL-28155 mod_assignment - Fix an ugly hack
Show download all link for any assignment types which implement
the download_submissions() method
2012-07-10 12:57:54 +08:00
Dan Poltawski 4afbd0c834 Merge branch 'w28_MDL-34159_m24_wherelist' of git://github.com/skodak/moodle 2012-07-10 12:52:14 +08:00
Sam Hemelryk f0d6e53c11 Merge branch 'w28_MDL-33617_m24_roleenrolindex' of git://github.com/skodak/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-07-10 15:47:33 +12:00
Sam Hemelryk e9c614276b Merge branch 'MDL-34237' of git://github.com/danpoltawski/moodle 2012-07-10 15:26:58 +12:00
Dan Poltawski 00142ce553 MDL-34237 - fix version number mistake 2012-07-10 11:20:33 +08:00
Sam Hemelryk af0c360f48 Merge branch 'w28_MDL-33887_m24_jsstrings' of git://github.com/skodak/moodle 2012-07-10 15:07:47 +12:00
Aparup Banerjee 7534234322 MDL-34225 course completion : move /lib/completion/* up to /completion 2012-07-10 11:06:41 +08:00
Dan Poltawski b445f75019 Merge branch 'MDL-34156-master' of git://github.com/micaherne/moodle 2012-07-10 10:53:16 +08:00
Sam Hemelryk e977b391b7 Merge branch 'w28_MDL-34057_m24_styledebug' of git://github.com/skodak/moodle 2012-07-10 14:50:40 +12:00
Sam Hemelryk 8f19a94304 Merge branch 'w28_MDL-34101_m24_newaccountprev' of git://github.com/skodak/moodle 2012-07-10 14:42:28 +12:00
Dan Poltawski 4b9e493b0a Merge branch 'w28_MDL-34147_m24_cygwin' of git://github.com/skodak/moodle 2012-07-10 10:31:16 +08:00
Dan Poltawski 315e968209 MDL-8249 - tests: fix breaking unit tests 2012-07-10 10:17:47 +08:00
Dan Poltawski 029be094ab MDL-8249 - tests: fix trailing whitespace 2012-07-10 10:17:33 +08:00
Dan Poltawski e1980f8bb9 Merge branch 'w28_MDL-8249_m24_roletranslations' of git://github.com/skodak/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-07-10 09:43:23 +08:00
Dan Poltawski c4f48b552f Merge branch 'MDL-34171' of git://github.com/timhunt/moodle 2012-07-10 09:24:56 +08:00
Dan Poltawski b40eca11d9 Merge branch 'w28_MDL-33018_m24_pgindex2' of git://github.com/skodak/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-07-10 09:17:23 +08:00
Sam Hemelryk 2e87278cbd Merge branch 'w28_MDL-34155_m24_visibilitydefault' of git://github.com/skodak/moodle 2012-07-10 12:51:50 +12:00
Dan Poltawski db296214d9 Merge branch 'w28_MDL-34010_m24_mysqldiag' of git://github.com/skodak/moodle 2012-07-10 08:49:22 +08:00
Sam Hemelryk 1ef3f066ee Merge branch 'w28_MDL-34175_m24_admin' of git://github.com/skodak/moodle 2012-07-10 12:43:48 +12:00
Dan Poltawski a87425aba8 Merge branch 'w28_MDL-33568_m24_recordcounts' of git://github.com/skodak/moodle 2012-07-10 08:38:41 +08:00
Dan Poltawski 5c509b058e Merge branch 'master_MDL-34198' of git://github.com/danmarsden/moodle 2012-07-10 08:34:18 +08:00
Sam Hemelryk 3bfe07a5ad Merge branch 'wip-MDL-33444-master' of git://github.com/marinaglancy/moodle 2012-07-10 12:27:47 +12:00
Sam Hemelryk 77c3ccccd2 Merge branch 'wip-MDL-34139-master' of git://github.com/marinaglancy/moodle 2012-07-10 12:22:19 +12:00
Sam Hemelryk 3ea910c83f Merge branch 'w28_MDL-33454_m24_tinymce3541' of git://github.com/skodak/moodle 2012-07-10 12:16:26 +12:00
Sam Hemelryk 5958b17eb0 Merge branch 'MDL-29470-master' of git://github.com/FMCorz/moodle 2012-07-10 12:13:03 +12:00
Sam Hemelryk 3aed38eb7d Merge branch 'MDL-32297-master' of git://github.com/FMCorz/moodle 2012-07-10 12:03:00 +12:00
Sam Hemelryk 3b37c5ceb9 Merge branch 'MDL-34107_filename_dot' of git://github.com/davosmith/moodle 2012-07-10 11:47:20 +12:00
Sam Hemelryk 0f36bce51e Merge branch 'MDL-34061' of git://github.com/danpoltawski/moodle 2012-07-10 11:40:18 +12:00
Sam Hemelryk 68a5f9c7ab Merge branch 'MDL-27800-23' of https://github.com/mackensen/moodle 2012-07-10 11:32:09 +12:00
Dan Poltawski 4e85084148 Merge branch 'MDL-18301-master' of git://github.com/FMCorz/moodle 2012-07-09 14:27:10 +08:00
Dan Poltawski 423c96868d Merge branch 'MDL-32057' of git://github.com/aolley/moodle 2012-07-09 14:14:07 +08:00
Dan Poltawski 13ce630719 Merge branch 'w28_MDL-34046_m24_stalefiles' of git://github.com/skodak/moodle 2012-07-09 13:50:09 +08:00
Dan Poltawski 5e1e213707 Merge branch 'MDL-33030' of git://github.com/rwijaya/moodle 2012-07-09 13:42:26 +08:00
Dan Poltawski 2579ac464f Merge branch 'wip-mdl-29969' of git://github.com/rajeshtaneja/moodle 2012-07-09 13:39:08 +08:00
Dan Poltawski 098c02be10 Merge branch 'MDL-34077-master' of git://github.com/FMCorz/moodle 2012-07-09 13:37:20 +08:00
Sam Hemelryk 357f4d8ed7 Merge branch 'master_MDL-33822' of git://github.com/danmarsden/moodle 2012-07-09 17:24:13 +12:00
Sam Hemelryk 0e08cd1ffd Merge branch 'MDL-17395' of git://github.com/danpoltawski/moodle 2012-07-09 17:19:19 +12:00
Sam Hemelryk 3c34f3213f Merge branch 'wip-MDL-33795-master' of https://github.com/barbararamiro/moodle 2012-07-09 17:14:08 +12:00
Dan Poltawski 898a2310a5 Merge branch 'wip-MDL-34143-master' of git://github.com/marinaglancy/moodle 2012-07-09 13:05:25 +08:00
Sam Hemelryk 66dd3e5d2f MDL-32119 Fixed messy merge in upgrade code 2012-07-09 17:00:52 +12:00
Sam Hemelryk 46bc0e2238 Merge branch 'MDL-33702-master' of git://github.com/ankitagarwal/moodle 2012-07-09 16:27:30 +12:00
Sam Hemelryk a2a2e7fb4a Merge branch 'MDL-32119' of git://github.com/srynot4sale/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-07-09 16:02:49 +12:00
Charles Fulton 258a893c3d MDL-27563 shibboleth: set context on login page 2012-07-08 20:46:34 -07:00
Dan Poltawski cfd5687407 Merge branch 'wip-mdl-33943' of git://github.com/rajeshtaneja/moodle 2012-07-09 11:34:46 +08:00
Dan Poltawski 7265d03334 Merge branch 'MDL-27831-master' of git://github.com/ankitagarwal/moodle 2012-07-09 11:29:38 +08:00
Ankit Agarwal fa6e528c79 MDL-27831 calendar: Removing reduntand control icons in delete.php 2012-07-09 11:29:39 +08:00
Ankit Agarwal 9381c28084 MDL-33702 scorm: refactoring interraction report to use '2004 SCORM' score elements 2012-07-09 11:27:34 +08:00
Ankit Agarwal 57a32d3eb6 MDL-33702 scorm: Adding support for '2004 SCORM' progress status elements 2012-07-09 11:27:34 +08:00
Ankit Agarwal d875cf9cdf MDL-33702 scorm: Adding support for '2004 SCORM' objectives status elements 2012-07-09 11:27:34 +08:00
Ankit Agarwal 1c2b2132e5 MDL-33702 scorm: Adding suppport for '2004 SCORM standard' score elements 2012-07-09 11:27:34 +08:00
Aaron Barnes 7ba1c66592 MDL-33788 completion: SQL optimisation 2012-07-09 15:22:32 +12:00
Dan Poltawski b4b31391cf Merge branch 'MDL-33885-master' of git://github.com/FMCorz/moodle 2012-07-09 10:31:47 +08:00
Dan Poltawski 8081238453 Merge branch 'MDL-33890-master-2' of git://git.luns.net.uk/moodle 2012-07-09 10:02:13 +08:00
Sam Hemelryk b4aa178e40 MDL-29538 condition: Fixed up phpunit tests after addition of user field conditions 2012-07-09 12:37:22 +12:00
Sam Hemelryk 141d3c86d3 MDL-29538 condition: Tidied up user field condition code post merge 2012-07-09 11:45:44 +12:00
Sam Hemelryk 871c06e583 Merge branch 'MDL-29538_usercond' of git://github.com/markn86/moodle 2012-07-09 11:44:39 +12:00
Sam Hemelryk 440821205a MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results 2012-07-09 10:56:14 +12:00
Sam Hemelryk 5261dab607 Merge branch 'MDL-30816' of git://github.com/rwijaya/moodle 2012-07-09 10:45:14 +12:00
Sam Hemelryk ece157e426 Merge branch 'MDL-33514' of git://github.com/danpoltawski/moodle 2012-07-09 10:22:06 +12:00
Sam Hemelryk 91448b9db2 Merge branch 'MDL-31033_message_deprecated' of git://github.com/andyjdavis/moodle 2012-07-09 10:19:50 +12:00
Davo Smith 4d40dc9256 MDL-34214 Course dndupload - removed unneeded classes from preview element 2012-07-07 19:02:23 +01:00
AMOS bot fa54f3d151 Automatically generated installer lang files 2012-07-07 00:31:21 +00:00
Michael Aherne 945a81a943 MDL-34205 Activity chooser default setting 2012-07-06 15:29:08 +01:00
Ruslan Kabalin 2d724607e1 MDL-33890 Make course blocks less theme dependant
This fix checks that the empty block region is actaually the standard one, so
it can be hidden. The blocks move operating area is not resticted to page
content any more.
2012-07-06 11:16:37 +01:00
David Monllao 9d3b8b248d MDL-26145 mod_chat Talk feature not working correctly 2012-07-06 15:59:57 +08:00
Petr Skoda a2dd56d23e MDL-8249 add role naming related info to upgrade.txt files 2012-07-06 08:22:51 +02:00
Petr Skoda ff22f22903 MDL-8249 do not hardcode role names and descriptions during installation 2012-07-06 08:22:45 +02:00
Petr Skoda c52551dc3c MDL-8249 localise standard role names and descriptions if empty 2012-07-06 08:22:34 +02:00
Petr Škoda 068cf0e519 MDL-33018 support varchar_pattern_ops on unique indexes 2012-07-06 08:19:55 +02:00
Petr Škoda 661dd35d89 MDL-33018 fix borked xmldb_index contructor
Thanks Eloy!
2012-07-06 08:19:50 +02:00
Petr Skoda bd991d03cf MDL-33018 add general index type hints and use PostgreSQL varchar_pattern_ops index type for context.path
This significantly improves performance of accesslib queries,
credit for the discovery of this solution goes to Andrew Masterton from OU.
2012-07-06 08:19:39 +02:00
Petr Škoda efc80e2bb8 MDL-33454 import latest TinyMCE 3.5.4.1 2012-07-06 08:10:14 +02:00
Petr Skoda 63224dee44 MDL-33568 improve DB->count_records*()
Now always returns integer and invalid queries are detected.
2012-07-06 08:09:11 +02:00
Petr Škoda 79a471435b MDL-33617 add new index to improve perf of enrol related role_assignments 2012-07-06 08:08:45 +02:00
Petr Skoda 64ed8ca214 MDL-33712 add support for unique moodle tags in tinymce 2012-07-06 08:04:00 +02:00
Petr Skoda 6fb8ae95f5 MDL-33753 support utf-8 filename unzipping 2012-07-06 08:03:38 +02:00
Petr Skoda 79c966cf21 MDL-33710, MDL-33710 add utf-8 flag to all zip files created in moodle and unzip from storage fix 2012-07-06 08:02:42 +02:00
Petr Škoda af225f6c9c MDL-33887 delay string fetching in PAGE->requires->string_for_js() till page footer
This should resolve problems with language switching such as when forcing course language.
2012-07-06 08:02:00 +02:00
Petr Škoda 3c2fbdbb87 MDL-34010 improve mysqli engine diagnostics performace 2012-07-06 08:01:33 +02:00
Michael Aherne 445be5c6cd MDL-34010 Update diagnose() function to query information_schema.tables 2012-07-06 08:01:33 +02:00
Petr Škoda 774c42a8d3 MDL-34046 improve mixed files upgrade error
Credit goes to Gordon Bateson.
2012-07-06 08:00:53 +02:00
Petr Škoda bcf7f9f36f MDL-34057 improve styles_debug concurrency
Please note style debugging is not intended for busy production sites!
2012-07-06 08:00:18 +02:00
Petr Škoda 8956a329a6 MDL-34101 do not try to authenticate non-existent users when user creation is prevented 2012-07-06 07:59:44 +02:00
Petr Škoda 13951f0ce7 MDL-34101 use current mnethostide when verifying if user deleted
authenticate_user_login() is supposed to work with local accounts only,
mnet accounts must be ignored.
2012-07-06 07:59:44 +02:00
Petr Škoda d606bee9ce MDL-34147 use cygwin style paths in phpunit hints 2012-07-06 07:58:44 +02:00
Petr Škoda 2b42c88170 MDL-34155 use course visibility default when creator does not have moodle/course:visibility 2012-07-06 07:58:07 +02:00
Petr Škoda 7f22fb4dd9 MDL-34159 improve where_clause_list performance 2012-07-06 07:57:08 +02:00
Petr Škoda d6fc8d94e2 MDL-34175 a few more renamed admin fixes 2012-07-06 07:53:44 +02:00
Petr Škoda 8a8914cd41 MDL-34175 automatically fix admin JS links 2012-07-06 07:51:23 +02:00
Frederic Massart 3e0ce6079c MDL-33885 Blog: Added maxlength rule to subject field 2012-07-06 13:14:52 +08:00
Frederic Massart 455dc0de61 MDL-18301 Gradebook: Added feature for components to control grade visibility 2012-07-06 09:52:46 +08:00
David Balch 96aeb5be35 MDL-34143 Add file type information for .mdb .accdb (MS Access databases) 2012-07-06 09:44:25 +08:00
Marina Glancy eb45e641b6 MDL-34139 filemanager select-file dialogue should update file on Enter 2012-07-06 09:44:16 +08:00
Marina Glancy 6dc82385ab MDL-33950 Correctly initialise repository and check access in js and non-js filepicker 2012-07-06 09:44:07 +08:00
Marina Glancy 7e897e67ab MDL-33473,MDL-33950,MDL-33837 Allow non-js filepicker to pick files from moodle repositories
- MDL-33473 actually make non-js filepicker to work with local repositories
- MDL-33950 validate that file is accessible
- MDL-33837 when picking a server file marked as main, do not make it main in current filearea
2012-07-06 09:44:07 +08:00
Marina Glancy 1bd0174743 MDL-33950 check if source file is accessible in repository_ajax.php
- repository::copy_to_area() does not check access any more, and repository_recent::copy_to_area() is unnecessary
- added repository::file_is_accessible() that checks access to the picked file (regardless of accessibility of the file it is referencing to)
2012-07-06 09:44:07 +08:00
Marina Glancy 6133c2ea21 MDL-33444 Upload repository can specify custom label for filepicker 2012-07-06 09:43:50 +08:00
Sam Hemelryk 2cbdaa77ea weekly release 2.4dev 2012-07-06 10:03:44 +12:00
Dan Marsden c24bdac7dd MDL-34198 SCORM remove unecessary get_records call 2012-07-06 09:53:59 +12:00
Sam Hemelryk 6ff9f8404c Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-07-06 09:50:41 +12:00
Gilles-Philippe Leblanc f007c032be MDL-33822 SCORM Interactions report - fix formatting of empty cells. 2012-07-06 09:45:44 +12:00
Eloy Lafuente (stronk7) ecad7393e3 Revert "MDL-33303 Filepicker: resized to match HTML editor and made resizable"
This reverts commit c947ea3e3f.
2012-07-05 23:21:34 +02:00
Eloy Lafuente (stronk7) 2fba8f5a92 Merge branch 'wip-MDL-34063-master' of git://github.com/marinaglancy/moodle 2012-07-05 18:34:27 +02:00
David Mudrák 483afa446d MDL-33453 Make it clear what search_references() and search_references_count() are good for
Initially it was not clear enough that these two methods are supposed to
be used for looking for references to a stored_file only. So the docs
comments are improved and unittests added to illustrate the usage.

The patch also removes the unittest for get_references_by_storedfile()
as its usage is already covered in other test methods.
2012-07-05 17:15:37 +02:00
Eloy Lafuente (stronk7) 2173e56a29 Revert "MDL-30912 - lib - A tidy up of the submit url jump functions for greater ease with accessability."
This reverts commit 82203a1e4e.
2012-07-05 16:09:43 +02:00
Eloy Lafuente (stronk7) 8049a5c413 Merge branch 'wip-MDL-33746-master' of git://github.com/marinaglancy/moodle 2012-07-05 14:19:06 +02:00
Tim Hunt 05038fcba0 MDL-34065 questions: also fix two typos in comments.
Amended to change 2 accordin => according
2012-07-05 13:49:05 +02:00
Tim Hunt fede0be5de MDL-34065 lib: improve two debugging messages.
If the string passed to get_string is empty, say that. Don't say that it
contains illegal characters.

When relying on the __call magic in plugin_renderer_base, when the
method cannot be found, include the right class name in the error
message.
2012-07-05 13:48:12 +02:00
Marina Glancy 4b8d51d79a MDL-33746 make folder view look like filemanager tree view 2012-07-05 16:50:46 +08:00
Rossiani Wijaya a50f89ecf5 MDL-30816 Choice module: add format_string() for choice name. 2012-07-05 12:16:30 +08:00
Rossiani Wijaya 0ed9c7456d MDL-30816 choice module: fixed accessibility for responses table and make it easier for screenreader to read it 2012-07-05 10:19:55 +08:00
Eloy Lafuente (stronk7) c3fcad7d55 Merge branch 'MDL-34145' of git://github.com/timhunt/moodle 2012-07-05 03:40:44 +02:00
Frederic Massart 248910258b MDL-29470 Backup: unit tests for next automated backup date 2012-07-05 09:35:57 +08:00
Frederic Massart d4a49ba291 MDL-29470 Backup: fixed unexpected next automated backup date 2012-07-05 09:29:03 +08:00
AMOS bot 7c29038aea Automatically generated installer lang files 2012-07-05 00:31:12 +00:00
Sam Hemelryk e5f0e51942 MDL-33770 webservices: Fixed error with core_group_create_groups when no enrolment key provided 2012-07-05 09:22:12 +12:00
Tim Hunt d9299c349e MDL-34171 qformat_gift: Fix edge case with special character escaping.
We need to escape \ on export, because it is un-escaped on import.
2012-07-04 10:55:52 +01:00
Tim Hunt bf92acc253 MDL-32062 question engine: fixup tests that this change broke.
The test data was wrong, and was triggering the work-around code that
MDL-32062 introduced. I fixed the test data.

Also, I fixed one of the tests, that had been broken.
2012-07-04 10:47:03 +01:00
Juan Leyva 30e772a478 MDL-34083 Deleted user_files from backup options 2012-07-04 10:34:24 +02:00
Dan Poltawski 4013359707 MDL-17395 auth_email: clarify description 2012-07-04 15:02:07 +08:00
Dan Poltawski a274df85f9 MDL-34061 mod_resource: filter settings weren't coming from defaults 2012-07-04 14:06:58 +08:00
Dan Poltawski e255439446 MDL-34035 - fix typo in comment
Thanks Sam!
2012-07-04 10:37:47 +08:00
Dan Poltawski 54bda328d9 Merge branch 'MDL-34035' of git://github.com/timhunt/moodle 2012-07-04 10:34:22 +08:00
Barbara Ramiro 19ef00b916 MDL-33542, MDL-33542 Select dialogue details aligned
And loading gif smaller
2012-07-04 10:25:04 +08:00
Eloy Lafuente (stronk7) a079d364f3 Merge branch 'w27_MDL-33876_m24_delenrol' of git://github.com/skodak/moodle 2012-07-04 04:15:47 +02:00
Dan Poltawski c75599f966 Merge branch 'wip-MDL-34047-master' of git://github.com/marinaglancy/moodle 2012-07-04 09:51:25 +08:00
Sam Hemelryk 5804a2a31e Merge branch 'MDL-32614' of git://github.com/stronk7/moodle 2012-07-04 13:30:58 +12:00
AMOS bot 68d19e8a47 Automatically generated installer lang files 2012-07-04 00:31:59 +00:00
Eloy Lafuente (stronk7) b666885397 MDL-32614 lti: on restore, clean any typeid to convert the tool to selfcontained.
This is known to be imperfect, awaiting for MDL-34161 to fix the whole thing. Also,
unrelated, there are some basiclti => lti replacements.
2012-07-04 02:01:21 +02:00
Chris Scribner 420e6740e9 MDL-32614: Removing code which disassociated LTI instances from their tool types upon restore. 2012-07-04 01:34:20 +02:00
Sam Hemelryk 3778f990cc Merge branch 'MDL-31692' of git://github.com/danpoltawski/moodle 2012-07-04 10:07:54 +12:00
Sam Hemelryk 74abe5ce15 Merge branch 'MDL-32062' of git://github.com/timhunt/moodle 2012-07-04 09:54:06 +12:00
Sam Hemelryk dc31e8d73d Merge branch 'MDL-33466-master' of git://github.com/sammarshallou/moodle 2012-07-04 09:37:38 +12:00
Sam Hemelryk c425663c4c Merge branch 'MDL-27125_master_2' of git://git.catalyst.net.nz/moodle-r2 2012-07-04 09:32:45 +12:00
Sam Hemelryk 5439f90aa3 Merge branch 'wip-MDL-33749-master' of https://github.com/kwiliarty/moodle 2012-07-04 08:33:14 +12:00
Sam Hemelryk 941d1fb2cc Merge branch 'wip-mdl-32787' of git://github.com/rajeshtaneja/moodle 2012-07-04 08:26:14 +12:00
Kevin Wiliarty b1eeb76ec2 MDL-33749 follow redirects for URL downloader 2012-07-03 14:16:51 -04:00
Eloy Lafuente (stronk7) 20ef104713 Merge branch 'wip-MDL-33303-m24' of git://github.com/samhemelryk/moodle 2012-07-03 16:17:36 +02:00
Eloy Lafuente (stronk7) 4fcc358e12 Merge branch 'MDL-33426-master' of git://github.com/sammarshallou/moodle 2012-07-03 16:08:03 +02:00
sam marshall 110f73ad57 MDL-33426 Completion: Multilang activity names wrong in alt/title 2012-07-03 13:10:14 +01:00
Michael Aherne 26a06fa7b6 MDL-34156 Remove subselect from slow query 2012-07-03 12:56:50 +01:00
Rajesh Taneja fc3aa0fbaf MDL-32787 user: rule required for custom profile fields applies to all users editing own profile 2012-07-03 13:46:13 +08:00
Sam Hemelryk e537a588d8 Merge branch 'MDL-33828-master' of git://github.com/FMCorz/moodle 2012-07-03 16:35:32 +12:00
Dan Poltawski eb85dafc8b Merge branch 'MDL-33937-master' of git://github.com/sammarshallou/moodle 2012-07-03 12:29:57 +08:00
Dan Poltawski d4c16e8b63 Merge branch 'master_MDL-33938' of git://github.com/danmarsden/moodle
Conflicts:
	mod/scorm/db/upgrade.php
2012-07-03 12:19:07 +08:00
Dan Poltawski 3da087a8b4 Merge branch 'wip-MDL-30912-master' of git://github.com/abgreeve/moodle 2012-07-03 12:11:48 +08:00
Dan Poltawski f884819546 Merge branch 'MDL-30903-master' of git://github.com/FMCorz/moodle 2012-07-03 11:51:04 +08:00
Dan Poltawski d07f3425ca Merge branch 'MDL-34008' of git://github.com/timhunt/moodle 2012-07-03 11:47:15 +08:00
Dan Poltawski 606319c927 Merge branch 'w27_MDL-34036_m24_bulkrole' of git://github.com/skodak/moodle 2012-07-03 11:40:08 +08:00
Sam Hemelryk 78e43b866b Merge branch 'w27_MDL-34115_m24_arrayofarrayssort' of git://github.com/skodak/moodle 2012-07-03 15:15:07 +12:00
Dan Poltawski 7d27947851 Merge branch 'MDL-30883' of git://github.com/timhunt/moodle 2012-07-03 11:01:39 +08:00
Sam Hemelryk 04573eaa65 Merge branch 'wip-MDL-33957-master' of git://github.com/phalacee/moodle 2012-07-03 14:57:41 +12:00
Dan Poltawski 114244ce6c Merge branch 'w27_MDL-34123_m24_newpasslang' of git://github.com/skodak/moodle 2012-07-03 10:39:12 +08:00
Dan Poltawski 66dd9e8ad4 Merge branch 'wip-MDL-33837-master' of git://github.com/marinaglancy/moodle 2012-07-03 10:24:26 +08:00
Sam Hemelryk 73d38068d9 Merge branch 'MDL-33987_master' of git://github.com/lazydaisy/moodle 2012-07-03 14:14:31 +12:00
Dan Poltawski d3faa829cd Merge branch 'MDL-33757-master' of git://github.com/ankitagarwal/moodle 2012-07-03 09:45:12 +08:00
Frederic Massart c31dc0b695 MDL-33828 Portfolio: prevent notices while exporting to portfolios 2012-07-03 09:33:17 +08:00
ISHIKAWA Takayuki 69101b4392 MDL-33757 gradebook: Adding support to sort userlist by email address 2012-07-03 09:09:05 +08:00
AMOS bot f5e2530b16 Automatically generated installer lang files 2012-07-03 00:31:27 +00:00
Eloy Lafuente (stronk7) 9039021b25 Merge branch 'MDL-33499' of git://github.com/netspotau/moodle-mod_assign 2012-07-03 02:15:57 +02:00
Eloy Lafuente (stronk7) f1d9ceb0e4 Merge branch 'wip-MDL-33521-m24' of git://github.com/samhemelryk/moodle 2012-07-03 01:58:48 +02:00
Adam Olley c71fe473bb MDL-32057: Fix cohort enrolment css for ie7 2012-07-03 09:22:11 +09:30
Sam Hemelryk 2da0a38398 Merge branch 'MDL-33770' of git://github.com/mouneyrac/moodle 2012-07-03 11:48:43 +12:00
Sam Hemelryk e1d7771b0f Merge branch 'MDL-33814-master' of git://github.com/FMCorz/moodle 2012-07-03 11:36:01 +12:00
Eloy Lafuente (stronk7) 5d16ab2bba Merge branch 'MDL-33796-master' of git://github.com/FMCorz/moodle 2012-07-03 01:04:47 +02:00
Sam Hemelryk 4f5263d969 Merge branch 'MDL-34029_upgrade_documentation' of git://github.com/davosmith/moodle 2012-07-03 10:55:29 +12:00
Sam Hemelryk 14cff7be4d Merge branch 'MDL-9214' of git://github.com/danpoltawski/moodle 2012-07-03 10:47:07 +12:00
Sam Hemelryk c6c16fd9ea Merge branch 'MDL-32286' of git://github.com/danpoltawski/moodle 2012-07-03 10:41:17 +12:00
Sam Hemelryk b624ae9a2b Merge branch 'MDL-33990' of git://github.com/danpoltawski/moodle 2012-07-03 10:36:57 +12:00
Sam Hemelryk 4df3e2bedf MDL-34014 cssoptimiser: Fixed some aweful spelling 2012-07-03 10:34:20 +12:00
Sam Hemelryk b5c4f3042b Merge branch 'MDL-34014' of git://github.com/danpoltawski/moodle 2012-07-03 10:32:37 +12:00
Sam Hemelryk 457fc727ac Merge branch 'MDL-34022' of git://github.com/danpoltawski/moodle 2012-07-03 10:30:30 +12:00
Sam Hemelryk fc8931e457 Merge branch 'MDL-34033' of git://github.com/danpoltawski/moodle 2012-07-03 10:27:16 +12:00
Sam Hemelryk a0c400598e Merge branch 'MDL-33848' of git://github.com/netspotau/moodle-mod_assign 2012-07-03 10:20:56 +12:00
Sam Hemelryk a8d40508e9 Merge branch 'MDL-28151' of git://github.com/danpoltawski/moodle 2012-07-03 10:13:12 +12:00
Eloy Lafuente (stronk7) a788105e13 Merge branch 'MDL-23813' of git://github.com/timhunt/moodle 2012-07-02 23:50:39 +02:00
Sam Hemelryk 30141a875e Merge branch 'MDL-23254' of git://github.com/nebgor/moodle 2012-07-03 09:42:08 +12:00
Eloy Lafuente (stronk7) 43a6a288b4 Merge branch 'mssql-case-sensitive' of git://github.com/danpoltawski/moodle 2012-07-02 21:05:08 +02:00
Tim Hunt ff8c5fda48 MDL-23813 glossary filter: add missing YUI dependency
Fix found by Huy Hoang. I am just making a commit.
2012-07-02 17:50:00 +01:00
Eloy Lafuente (stronk7) 44cb29a063 MDL-34121 bump versions to efectively get the upgrade performed. 2012-07-02 18:15:47 +02:00
Eloy Lafuente (stronk7) d207a888ba Merge branch 'w27_MDL-34121_m24_killbackupmess' of git://github.com/skodak/moodle 2012-07-02 18:12:57 +02:00
Tim Hunt 5415d91e20 MDL-34145 postgres driver: fix get_tables perf on <= 9.0
The query of the information_schema view seems to be painfully slow on
older versions of postgres (2000ms instead of 20ms). Therefore, it is
worth detecting that case, and using a more postgres specific feedback.
This is particularly important for 2.3+ unit tests.

Thanks to Petr Skoda for his help with this.
2012-07-02 16:19:00 +01:00
Dan Poltawski 79121bb8ef Merge branch 'wip-MDL-33948-master' of git://github.com/marinaglancy/moodle 2012-07-02 17:44:01 +08:00
Dan Poltawski 6cad0dddd7 Merge branch 'MDL-33916-master-2' of git://git.luns.net.uk/moodle 2012-07-02 17:35:46 +08:00
Dan Poltawski 2d9c0d1174 MDL-31802 - navigation: add a comment about session reduction 2012-07-02 17:30:26 +08:00
Dan Poltawski 539f2381f6 Merge branch 'MDL-31802' of git://github.com/aolley/moodle 2012-07-02 17:24:48 +08:00
Dan Poltawski fc7f44a961 Merge branch 'wip-MDL-34117-master' of git://github.com/marinaglancy/moodle 2012-07-02 17:09:44 +08:00
Dan Poltawski 6fa25ccd26 Merge branch 'w27_MDL-34120_m24_delpass' of git://github.com/skodak/moodle 2012-07-02 16:48:22 +08:00
Dan Poltawski f8425a1d31 Merge branch 'w27_MDL-34125_m24_tablename' of git://github.com/skodak/moodle 2012-07-02 16:46:21 +08:00
Dan Poltawski 0acd31fba8 Merge branch 'MDL-34109' of git://github.com/timhunt/moodle 2012-07-02 16:42:56 +08:00
Dan Poltawski 1363416735 Merge branch 'w27_MDL-34045_m24_idnumber' of git://github.com/skodak/moodle 2012-07-02 16:34:11 +08:00
Dan Poltawski 73c672f593 Merge branch 'MDL-34025_master' of https://github.com/markn86/moodle 2012-07-02 16:28:05 +08:00
Dan Poltawski bfcc865709 Merge branch 'MDL-33924' of git://github.com/timhunt/moodle 2012-07-02 16:19:14 +08:00
Dan Poltawski 6a84f5ae74 Merge branch 'master_MDL-33914' of git://github.com/danmarsden/moodle 2012-07-02 16:14:07 +08:00
Dan Poltawski b96c32fbef Merge branch 'master_MDL-33835' of git://github.com/danmarsden/moodle 2012-07-02 16:09:59 +08:00
Dan Poltawski b8b82c051d Merge branch 'MDL-33780' of git://github.com/timhunt/moodle 2012-07-02 16:07:13 +08:00
Dan Poltawski 09d6d58235 Merge branch 'wip-MDL-33721-master' of git://github.com/marinaglancy/moodle 2012-07-02 16:00:06 +08:00
Dan Poltawski 637406f3c0 Merge branch 'm23_MDL-33053_AICC_flattened_TOC' of git://github.com/scara/moodle 2012-07-02 15:50:09 +08:00
Dan Poltawski cef245ae48 Merge branch 'MDL-32605-master' of git://github.com/ankitagarwal/moodle 2012-07-02 15:45:54 +08:00
Rossiani Wijaya 32bb764891 MDL-33030 Lesson module: fixed progress bar 2012-07-02 15:43:32 +08:00
Dan Poltawski 1f1de4f6da Merge branch 'MDL-25476_email_from_support' of git://github.com/andyjdavis/moodle 2012-07-02 15:41:16 +08:00
Dan Poltawski ba17a42133 Merge branch 'MDL-9073-master' of github.com:FMCorz/moodle 2012-07-02 15:33:31 +08:00
Dan Poltawski 977f05940d Merge branch 'master_MDL-31203_advanced_forum_search_always_reverts_date_from_and_to' of git://github.com/kanikagoyal/moodle 2012-07-02 15:23:52 +08:00
Dan Poltawski eca8e9aca1 Merge branch 'MDL-26465' of git://github.com/rwijaya/moodle 2012-07-02 15:18:26 +08:00
Rajesh Taneja 4387f13821 MDL-33943 tool_replace: Hardcoded strings replaced with lang strings 2012-07-02 15:15:58 +08:00
Dan Poltawski 1e1af1cd15 Merge branch 'MDL-31987_assignment' of git://github.com/rwijaya/moodle 2012-07-02 15:12:39 +08:00
Davo Smith 970f0c0a36 MDL-34107 Upload repository - do not add a dot to files without an extension 2012-07-02 08:10:24 +01:00
David Mudrák d5d2e3531f MDL-34019 Fix response item key name 2012-07-02 15:02:58 +08:00
Dan Poltawski 337b34fac0 Merge branch 'MDL-34054' of git://github.com/timhunt/moodle 2012-07-02 14:56:50 +08:00
Dan Poltawski 1b1ad55b9f MDL-33995 - unit tests: fix class name collision 2012-07-02 14:53:32 +08:00
Rossiani Wijaya df70d008f7 MDL-31987 Assignment module: fixed upgrade version 2012-07-02 14:46:43 +08:00
Dan Poltawski 74fc24a916 MDL-31987 Assignment module: fix sql for postgres. 2012-07-02 14:45:46 +08:00
Rossiani Wijaya b8ba23ca23 MDL-31987 Assignment module: Assignment count submissions correctly.
For advanced upload assignment, store file count of each submission
into assignment_submissions.numfiles

When counting submissions, if the assignment is open and tracking
drafts, only submissions which has send for marking are counted.
Otherwise, submissions which has numfiles > 0 are counted.

Also change a hardcoded 'submitted' to ASSIGNMENT_STATUS_SUBMITTED.

This patch was originally written by: Sunner Sun <sunner@gmail.com>.

I made some modifation to fixed count_real_submissions() query (ref: MDL-32207) in /mod/assignment/type/upload/assignment.class.php file
2012-07-02 14:26:45 +08:00
Rajesh Taneja ba0dde9785 MDL-29969 Administration: Default value for numsections is set to 1 for site frontpage 2012-07-02 14:26:15 +08:00
David Balch c7aed1e11b MDL-34063 XHTML files should use the HTML icon, not the markup icon 2012-07-02 14:25:56 +08:00
Dan Poltawski 9bf41fb6aa Merge branch 'MDL-33776' of git://github.com/mouneyrac/moodle 2012-07-02 14:12:53 +08:00
Marina Glancy b2dbfa90cc MDL-34117 Correctly pass accepted_types to dnduploader 2012-07-02 14:12:31 +08:00
Marina Glancy 81c4a77827 MDL-34047 repository URL downloader must say that it returns only images 2012-07-02 14:12:20 +08:00
Marina Glancy 61a339e598 MDL-33948 mod_forum correctly passes files options to file_save_draft_area_files() 2012-07-02 14:11:55 +08:00
Marina Glancy 3b6629c088 MDL-33948 file_save_draft_area_files() validates if references are allowed and allows unlimited file size 2012-07-02 14:11:55 +08:00
Marina Glancy adbb904b9c MDL-33837 picking file from server files should not copy 'Main file' property 2012-07-02 14:11:39 +08:00
Marina Glancy 4e02810b38 MDL-33721 show loading icon after file has been selected in filepicker, prevent clicking select button twice 2012-07-02 14:11:32 +08:00
Dan Poltawski c6ace6b16a Merge branch 'MDL-33995' of git://github.com/mouneyrac/moodle 2012-07-02 14:09:13 +08:00
Dan Poltawski c252db3dbe Merge branch 'master_MDL-33978' of git://github.com/danmarsden/moodle 2012-07-02 13:44:10 +08:00
Sam Hemelryk 103a53473f Merge branch 'MDL-33686_options' of git://github.com/andyjdavis/moodle 2012-07-02 14:53:31 +12:00
Sam Hemelryk e07a3bf209 Merge branch 'MDL-33932_master' of git://github.com/grabs/moodle 2012-07-02 14:31:55 +12:00
Sam Hemelryk bbfa552c7b Merge branch 'MDL-33627_master' of git://github.com/grabs/moodle 2012-07-02 14:06:14 +12:00
Sam Hemelryk d75e8e3ac8 MDL-33521 css: Fixed invalid CSS in core CSS and plugin styles.css files 2012-07-02 11:34:44 +12:00
Frederic Massart c947ea3e3f MDL-33303 Filepicker: resized to match HTML editor and made resizable 2012-07-02 11:34:34 +12:00
Eloy Lafuente (stronk7) d71b79a406 weekly release 2.4dev 2012-07-02 00:55:18 +02:00
Eloy Lafuente (stronk7) 15c9acb21a Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-07-02 00:39:51 +02:00
Eloy Lafuente (stronk7) 6e4c643101 Merge branch 'MDL-34119_master' of git://github.com/lazydaisy/moodle 2012-07-02 00:30:46 +02:00
Sam Hemelryk abb98b8881 Merge branch 'MDL-34044' of git://github.com/srynot4sale/moodle 2012-07-02 08:22:45 +12:00
Eloy Lafuente (stronk7) cf16aed6f7 Merge branch 'w27_MDL-34130_m24_recordsettests' of git://github.com/skodak/moodle 2012-07-01 21:58:59 +02:00
Petr Škoda c56cdae977 MDL-34130 prevent some warning in PHPStorm 2012-07-01 21:50:36 +02:00
Petr Škoda 3b5f6e6c2a MDL-34130 test recordset data is static
We do not want recordset results to be affected by subsequent update or delete queries.
2012-07-01 21:35:37 +02:00
Petr Škoda 4993d5fe00 MDL-34130 add missing rs close
Thanks Eloy!
2012-07-01 21:24:13 +02:00
Petr Škoda e1defa2ed5 MDL-34130 test interaction of recordsets and transactions 2012-07-01 21:23:54 +02:00
Petr Škoda 541ca062f1 MDL-34130 test nested recordset iteration 2012-07-01 21:23:37 +02:00
Petr Škoda 401793a36d MDL-34130 fix data inserts in recordset tests 2012-07-01 21:23:21 +02:00
Petr Škoda afe1cf72a0 MDL-34125 fix regression when deleting activity modules
Credit goes to Gordon Bateson.
2012-07-01 10:04:54 +02:00
AMOS bot f86830ad0c Automatically generated installer lang files 2012-07-01 00:31:36 +00:00
Eloy Lafuente (stronk7) ba4e17574f Merge branch 'MDL-32249c' of github.com:srynot4sale/moodle 2012-07-01 02:02:56 +02:00
Eloy Lafuente (stronk7) f6653bfd47 Merge branch 'MDL-31201' of git://github.com/danpoltawski/moodle 2012-06-30 22:00:34 +02:00
Petr Škoda 3cbad151af MDL-34123 use user's lang when sending new emails 2012-06-30 20:46:04 +02:00
Petr Škoda 66c528d2ac MDL-34036 fix course role user selector 2012-06-30 15:39:12 +02:00
Petr Škoda 3f4a299936 MDL-34121 drop unused backup tables that were supposed to be dropped long ago
The backup/restore leftovers that referenced these will be dropped in 2.4
2012-06-30 13:58:51 +02:00
Mary Evans 4097797fcd MDL-34119_M23 theme_splash: Added colourswitcher.js and associated code in layout files and lib.php 2012-06-30 12:42:59 +01:00
Dan Poltawski 609541df30 MDL-34081 dml: mssql driver was using case insensitve sql 2012-06-30 18:56:57 +08:00
Petr Škoda 8205498fa0 MDL-34120 do not try to create new passwords for incorrectly deleted users
There is still some code that ignores delete_user() and instead hacks the user table directly, skip the borked user records for now when sending new passwords.
2012-06-30 08:55:39 +02:00
Petr Škoda 0004317f79 MDL-33876 skip deleted users in enrol_database sync 2012-06-30 08:42:16 +02:00
Petr Škoda c82d309d07 MDL-34115 fix sorting in blocks admin UI
Comparison of arrays is not locale aware.
2012-06-30 08:33:34 +02:00
Petr Škoda 81f3d7a76c MDL-34045 fix invalid idnumber field type in cohort form 2012-06-30 07:50:38 +02:00
Mary Evans 44ca33e489 MDL-34119_M23 theme_splash: removed redundant js call in lib.php. Added lang option to config.php + amended lang output in layout files. Added some css to style langmenu + removed redundant loginicon in pagelayout.css 2012-06-30 01:07:14 +01:00
Charles Fulton 5eeb7c53d9 MDL-27800 admin: make front page restore link consistent 2012-06-29 11:13:51 -04:00
Tim Hunt fff85efe4b MDL-34054 quiz reports: missing context.
quiz_report_should_show_grades needs to know the context, so pass it
through.
2012-06-29 16:09:20 +01:00
Tim Hunt 0f525225a1 MDL-34109 quiz cron: timelimit are timeclose of 0 are special.
If the timelimit or timeclose of a quiz are 0, this means 'no
restriction', rather than '1970' or '0 seconds'. We need to handle these
special cases correctly in the code that looks for quiz attempts that
might be in the wrong state.
2012-06-29 11:07:21 +01:00
Tim Hunt 240db6d8f7 MDL-34109 quiz cron: change whitespace before applying the fix.
This commit just changes the white-space, but does not change any of the
actual code. This is so that the commit I am about to make, which will
change the code, will be easier to understand.
2012-06-29 11:02:30 +01:00
Frederic Massart 7b38412d49 MDL-32297 Forms: Date Picker JS popup is not constraint to parent form 2012-06-29 14:17:56 +08:00
Aparup Banerjee 99c3c503e0 MDL-34096 Installation : Added 2.3 upgrade line to db upgrade scripts. 2012-06-29 11:41:09 +08:00
Aparup Banerjee 8128e0c88b MDL-23254 Authentication : used httpswwwroot as root url during authentication procedure where $PAGE->https_required() is specified. 2012-06-28 15:32:33 +08:00
Frederic Massart 545ca38628 MDL-34077 Repositories: Flickr and Picasa can have custom names 2012-06-28 12:11:18 +08:00
Adam Olley 51591b2c0e MDL-31802: Remove section summaries from navigation_cache 2012-06-28 11:04:41 +09:30
AMOS bot d53d164771 Automatically generated installer lang files 2012-06-28 00:31:24 +00:00
Jerome Mouneyrac 2a7a021695 MDL-33995 Course external PHPunit test + externallib_testcase helper class 2012-06-27 16:24:22 +08:00
Tim Hunt df217fd7d0 MDL-33924 quiz: incorrect foreign key definition.
Thanks to Jean-Michel Vedrine for spotting this.≈
2012-06-27 08:08:10 +01:00
Mark Nelson f28da7fcc7 MDL-34025 - quiz secure window: fix popup closing 2012-06-27 15:00:23 +08:00
Sun Zhigang a572f17d41 MDL-31201 wiki: fix a hardcoded string 2012-06-27 13:34:50 +08:00
Ankit Agarwal 069f4d8bef MDL-32605 calendar: Fixing the missing parameter for get_string call 2012-06-27 13:32:20 +08:00
Dan Poltawski 31886e4651 MDL-9214 - improve comment for custom login instructions 2012-06-27 13:10:24 +08:00
Dan Poltawski 3b0ba40ac5 MDL-34033 lang - ammend configenableajax
Now better reflects its functionality.
2012-06-27 11:00:09 +08:00
Aaron Barnes 42b2110657 MDL-34044 completion: Fix regression caused by MDL-26626 2012-06-27 11:19:16 +12:00
Yang Yang bf69dc5247 Merge branch 'master' of https://github.com/moodle/moodle 2012-06-27 09:17:51 +12:00
Tim Hunt 32c842e290 MDL-34035 help links: allow other types of URL for plugins.
For third-parth plugins, in can be helpful if the 'More help' links in
help pop-ups (the ones that come from $string['..._link'] string in the
language file) can go to other places.

This change support two other sorts of URL in addition to the standard
'course/editing' type of link that goes to MoodelDocs.

You can use absolute URLs, starting http:// or https:///

You can use a link starting %%WWWROOT%%, and that token is replaced by
$CFG->wwwroot to make the link.
2012-06-26 18:54:15 +01:00
Davo Smith 652cc64851 MDL-34029 update mod/upgrade.txt to include course drag and drop upload 2012-06-26 12:05:04 +01:00
Rossiani Wijaya 32cfd597fb fixed the ->spacer <br> param 2012-06-26 18:08:46 +08:00
Mark Nielsen 487ee886ec fixed undefined variable 2012-06-26 17:56:11 +08:00
Tim Hunt 9212fe7a79 MDL-32062 question engine: fix re-grading attempts from 2.0
The code to upgrade attempts from before Moodle 2.0 to 2.1 created
attempt data that was not exactly the same as a new attempt created in
2.1+. This did not matter very much - revew and the quiz reports all
worked OK - but it broke on re-grade.

These changes detect the problem data in the re-grade code, an apply a
work-around so that the re-grade gives the correct result.
2012-06-26 10:11:15 +01:00
Tim Hunt ebbc5e7bfd MDL-34008 formslib: repeat_elements replace {no} for submits & buttons 2012-06-26 09:59:37 +01:00
Tim Hunt 77c1f1605f MDL-33780 question import: strip UTF8 BOM
Previously, if there was a byte-order mark at the start of the file, the
import would just break, which was silly. Much better to just strip it
off.
2012-06-26 09:59:26 +01:00
Tim Hunt f1b3d3e08e MDL-30883 question flags: aria attributes for accessibility
Also, update code to use html_writer, and fix pointer style when not
editable.
2012-06-26 09:58:11 +01:00
Mark Nelson f99d3a42a2 MDL-29538 core_condition: Deleting profile fields will delete the dependencies in both the modules and sections 2012-06-26 15:18:54 +08:00
Mark Nelson 4eafabc2a6 MDL-29538 core_condition: Rebase with integration removed add table function 2012-06-26 15:18:54 +08:00
Mark Nelson be2534fd88 MDL-29538 core_condition: Populating form with wrong value 2012-06-26 15:18:54 +08:00
Mark Nelson 94b94c38e7 MDL-29538 core_condition: Section conditions are now deleted from DB 2012-06-26 15:18:53 +08:00
Mark Nelson e01fbcf765 MDL-29538 core_condition: Integrated with the latest code, can now place user field conditions on sections as well 2012-06-26 15:18:53 +08:00
Sam Hemelryk 33e657c7e7 MDL-29538 core_condition: Pre-integration merge cleanup
* Fixed up database installation and upgrade code
* Reverted some whitespace optimisations to minimise conflicts
* Optimised commits made by Mark to reduce complexity and add tracker issue numbers
2012-06-26 15:18:53 +08:00
Mark Nelson 95a9bc0e4a MDL-29538 core_condition: ignore any fields that have none selected 2012-06-26 15:18:53 +08:00
Mark Nelson d2170cb542 MDL-29538 core_condition: moved the deletion of the course_modules_availability information above the deletion of the course modules 2012-06-26 15:18:53 +08:00
Mark Nelson 33f30decce MDL-29538 core_condition: clear the userid from the user field cache when wiping the session 2012-06-26 15:18:53 +08:00
Mark Nelson 129e4a73ec MDL-29538 core_condition: cached result in usercondition array now stores all attributes 2012-06-26 15:18:53 +08:00
Mark Nelson a6b538a862 MDL-29538 core_condition: validate whether a field has been declared before for that activity 2012-06-26 15:18:52 +08:00
Mark Nelson a8f84c287c MDL-29538 core_condition: code cleanup 2012-06-26 15:18:52 +08:00
Mark Nelson af2ce7806b MDL-29538 core_condition: delete the course modules records in the course_module_avail_fields table when deleted 2012-06-26 15:18:52 +08:00
Mark Nelson 5fa220fbf3 MDL-29538 core_condition: backup and restore now works with the new DB structure and removed unneeded restore process 2012-06-26 15:18:52 +08:00
Mark Nelson e7b4bd3ef5 MDL-29538 core_condition: constants are no longer set using language strings 2012-06-26 15:18:52 +08:00
Mark Nelson cb4492c200 MDL-29538 core_condition: changed the logic in the code so that it works with the new database structure as well as tidying up parts of the code 2012-06-26 15:18:52 +08:00
Mark Nelson 92fb7dd3a5 MDL-29538 core_condition: made changes to the DB structure - nb. had to rename the table due to length limit 2012-06-26 15:18:51 +08:00
Mark Nelson 76af15bb4c MDL-29538 core_condition: initial commit to add support for making things conditional on user profile fields 2012-06-26 15:18:51 +08:00
Frederic Massart 50f4e23fc9 MDL-33796 Glossary: removed unused missing string 2012-06-26 14:54:56 +08:00
Andrew Davis c968c1b787 MDL-25476 messages: switched some notification emails to come from the support contact instead of admin 2012-06-26 11:44:56 +07:00
Dan Poltawski 2664c851da MDL-31692 mod_lti - ensure that various mforms are used properly
* typesettings.php and instructor_edit_tool_type.php are tided
   up properly to ensure proper use for form data
* An incorrect PARAM type is corrected for typename
2012-06-26 12:38:22 +08:00
Dan Poltawski 42e4100b62 MDL-34014 lang - fix CSS optimiser spelling errors 2012-06-26 11:17:36 +08:00
Mary Evans b27464f617 MDL-33987_M23 theme_anomaly: amended some css values to style dock better also removed exclude parent theme stylesheet as it refered to a none existant file in base theme. 2012-06-26 04:12:38 +01:00
Dan Poltawski b4284d4895 MDL-34022 lang - the html editor supports all browsers we support
So remove misleading 'some browers only'
2012-06-26 11:03:54 +08:00
nread 82b287522e MDL-33669 equella: implement the manage link 2012-06-26 11:56:57 +10:00
Aaron Barnes 08f19f4848 MDL-32249 completion: Make grade criteria more consistent
Also, round course grades and remove hardcoded string.

Note: This patch also removes the ability to update the course grade
from the completion interface
2012-06-26 13:53:01 +12:00
AMOS bot c463796e11 Automatically generated installer lang files 2012-06-26 00:31:25 +00:00
Andreas Grabs f65c82636a MDL-33932_master - added array_unique() 2012-06-25 21:45:33 +02:00
Andreas Grabs 131e1d4b41 MDL-33627 - feedback block now show all feedbacks 2012-06-25 21:44:30 +02:00
Eloy Lafuente (stronk7) 6be7840ce6 weekly release 2.4dev 2012-06-25 17:54:28 +02:00
Dan Poltawski cfed1268ef MDL-33990 - yui2: remove 2 uncessary requirements
We no longer use yui2 logger and connection in set_user_prefs
2012-06-25 14:42:00 +08:00
Adrian Greeve 82203a1e4e MDL-30912 - lib - A tidy up of the submit url jump functions for greater ease with accessability. 2012-06-25 10:29:48 +08:00
Frederic Massart 95114b18e5 MDL-30844 Accessibility: orphan label in form action buttons 2012-06-25 10:18:42 +08:00
Jason Fowler 8231a0ca2a MDL-33957 - Installation - Fixing field lengths so they are long enough for data entry, and don't distort page rendering 2012-06-25 09:52:56 +08:00
Andrew Davis b71afc0d23 MDL-31033 message: removed commented out and unneccesary code 2012-06-25 08:47:52 +07:00
Dan Marsden c2c5c2f8c7 MDL-33978 SCORM activity completion - don't tiggere completion update state on creation of SCORM 2012-06-25 12:23:52 +12:00
Dan Marsden f0a1cc8ea8 MDL-33914 SCORM show scrollbar on TOC if too long. 2012-06-22 22:21:56 +12:00
Dan Marsden e0d90c54c0 MDL-33938 SCORM use consistant naming for maxattempt setting - match setting name with db field name to help when matching default settings 2012-06-22 21:51:04 +12:00
sam marshall c069dacfc1 MDL-33937 Paged course view: Allows view of sections that are not visible 2012-06-21 16:25:52 +01:00
Andrew Robert Nicols 9b128ba39c MDL-33916 Add unit tests to ensure that is_enrolled returns correctly 2012-06-21 09:24:21 +01:00
Yang Yang 0e47cd5d97 update 2012-06-21 09:39:05 +12:00
Andrew Robert Nicols a386e6e017 MDL-33916 Ensure that capabilities are checked for cached user enrolments 2012-06-20 17:07:30 +01:00
Jerome Mouneyrac e6d1218ade MDL-33776 Web services: get_categories - subcategories should be checked against visible/theme keys 2012-06-20 15:49:20 +08:00
Barbara Ramiro f90ffd296a MDL-33795 Increased file picker width and height 2012-06-20 13:48:43 +08:00
Jonathan Harker def4a8f5b7 MDL-27125 better manage file handles when downloading multiple files.
Based on Dongsheng Cai's branch: s11_MDL-27125_curl_file_handler_master
2012-06-20 16:46:29 +12:00
Frederic Massart f97aee76e7 MDL-9073 Glossary: uncategorised entries are printable 2012-06-20 12:24:44 +08:00
Dan Marsden 0c4390ed21 MDL-33835 Marking Guide - set currentfocus var to the first criteria comment to avoid JS errors. 2012-06-20 11:48:24 +12:00
Damyon Wiese fa7f3a86b5 MDL-33848: Prevent file listings in the assignment module having an ugly border 2012-06-19 22:53:14 +08:00
Frederic Massart 4954d6ed2c MDL-33814 Output renderers: table cell objects are only created when needed 2012-06-19 11:59:03 +08:00
Matthew G. Switlik 6e084e5fb9 MDL-28151 resource: prevent cropping of large images 2012-06-18 11:42:43 +08:00
kordan 9e8e9ebef0 MDL-33789 theme_formal_white: fixed the heigh of the navigation bar even with "theme_formal_white | fontsizereference" set to 16 pixel 2012-06-16 18:01:23 +02:00
Dan Poltawski c851b734a8 MDL-32286 - fix ambigious english string 2012-06-16 23:23:16 +08:00
Jerome Mouneyrac 32435a6968 MDL-33770 Web service: create_groups should not require enrolmentkey 2012-06-15 15:14:06 +08:00
Damyon Wiese 787ad88143 MDL-33499: Display final grade on the grading form with a link to the grader report
AMOS BEGIN
 CPY [currentgrade,mod_assignment],[currentgrade,mod_assign]
AMOS END
2012-06-15 14:09:38 +08:00
sam marshall a098f340fe MDL-33466: Group restriction should hide activity even with 'show availability' option
This is a modified version of fix by Luke Tucker at NetSpot - thanks.
2012-06-13 13:08:30 +01:00
Andrew Davis 648aad913a MDL-33686 Repositories: we were accessing a non-existent variable and thus never displaying the maximum number of attachments 2012-06-13 11:49:13 +07:00
Dan Poltawski 85aec6a4a2 MDL-33514 - rss: also exclude suspended users feeds
Thanks Petr!
2012-06-11 10:26:29 +08:00
Dan Poltawski b30dc391e7 MDL-33514 - rss: only retrieve RSS feeds for valid users 2012-06-06 23:37:16 +08:00
Yang Yang 03d3451d62 Merge branch 'master' of https://github.com/moodle/moodle 2012-06-05 09:08:16 +12:00
Juan Leyva 5842c78fe0 MDL-32919 Bumping version number for testing. 2012-06-04 09:05:26 +02:00
Jerome Mouneyrac b5bd42e873 MDL-32919 missing default for the last params cause invalid parameter exception with REST 2012-06-04 09:01:39 +02:00
Juan Leyva 8430d87b1f MDL-32919 Webservices: Added method core_course_import_course 2012-06-04 08:56:11 +02:00
Aaron Barnes 46eca1f77e MDL-32119 course completion: Removed unused database structure 2012-05-29 14:17:22 +12:00
Frederic Massart d17ba1e1a5 MDL-30903 Accessibility: user profile page uses table headers 2012-05-24 10:18:14 +08:00
Matteo Scaramuccia 8ac8aae4f4 MDL-33053 AICC: Incorrect Table Of Content hierarchy using "structured" AICC
courses
[Fix] 'scorm_scoes' doesn't contain all the entries described in the DES file
[Fix] HTMLizing the parent relationship, described in the CST file,
      fails: it considers 'index = 0' (found) equals to 'false' (not found)
2012-05-22 00:47:01 +02:00
Yang Yang ae4a9ae779 Merge branch 'master' of https://github.com/moodle/moodle 2012-05-22 09:16:23 +12:00
Yang Yang e891c68aa9 Merge branch 'master' of https://github.com/moodle/moodle 2012-05-15 09:16:56 +12:00
Rossiani Wijaya 50eac7e07c MDL-31300 formslib: Removed deprecated set_upload_manager() function 2012-05-10 11:13:17 +08:00
Yang Yang 87d46d187e merge 2012-05-08 09:43:21 +12:00
Yang Yang d0eab62ad5 Merge branch 'master' of https://github.com/moodle/moodle 2012-04-30 10:25:26 +12:00
Chris Scribner 1706e83bb4 Fixing an issue with not sending the launch_presentation_return_url 2012-04-24 10:48:47 -04:00
Paul Charsley 716d4226fe Merge branch 'master' of github.com:Lightwork-Marking/moodle 2012-04-17 13:47:56 +12:00
Paul Charsley 6f5a2eff48 Merge branch 'master' of https://github.com/moodle/moodle 2012-04-17 13:47:02 +12:00
Yang Yang 74961c826a reset 2012-04-13 12:46:44 +12:00
Yang Yang 93a1cfa8ee reset 2012-04-13 12:43:06 +12:00
Yang Yang 01c580ab05 MDL-31863 added modified_since value in parameters and timemodified in return value 2012-04-13 11:44:40 +12:00
Yang Yang a96cbb5162 Merge branch 'master' of https://github.com/moodle/moodle 2012-04-13 11:22:46 +12:00
Paul Charsley 5c631d86c2 Merge branch 'master' of github.com:Lightwork-Marking/moodle 2012-04-11 12:34:06 +12:00
Paul Charsley b6b2fb5435 Merge branch 'master' of https://github.com/moodle/moodle 2012-04-11 12:31:05 +12:00
unknown af4893059e Merge branch 'master' of https://github.com/moodle/moodle 2012-04-11 12:08:39 +12:00
Kanika Goyal cf3b9054ba MDL-32125 mod_forum: updating subscription mode not reflected 2012-04-02 09:55:12 +05:30
Kanika Goyal bee9656ca9 MDL-32125 mod_forum: updating subscription mode not reflected 2012-04-02 09:52:53 +05:30
Kanika Goyal 70df945da5 MDL-31203 mod_forum: advanced search posts must be newer older than date, reverts date 2012-03-31 18:51:16 +05:30
unknown a7e558bc5a Merge branch 'master' of github.com:Lightwork-Marking/moodle 2012-03-30 17:16:44 +13:00
unknown 404238ae51 Merge branch 'master' of https://github.com/moodle/moodle 2012-03-30 13:37:54 +13:00
Paul Charsley 7cc5b68bab Merge branch 'master' of github.com:Lightwork-Marking/moodle 2012-03-16 09:26:50 +13:00
Paul Charsley bcd284cc17 Merge branch 'master' of https://github.com/moodle/moodle 2012-03-16 09:24:52 +13:00
Paul Charsley 0f9b0bcf8b Merge branch 'master' of github.com:Lightwork-Marking/moodle 2012-03-10 17:14:37 +13:00
Paul Charsley c218d6a076 Merge branch 'master' of git://git.moodle.org/moodle 2012-03-10 16:55:08 +13:00
Wirianto Djunaidi bccdff582f Merge branch 'master' of https://github.com/moodle/moodle 2012-03-02 08:45:49 +13:00
Paul Charsley 035c81c7bb Merge branch 'master' of github.com:Lightwork-Marking/moodle 2012-02-27 23:19:23 +13:00
Paul Charsley 9ea62d0044 Merge branch 'master' of https://github.com/moodle/moodle 2012-02-27 10:47:35 +13:00
Paul Charsley c8802ce406 Merge branch 'master' of git://git.moodle.org/moodle 2012-02-26 23:07:21 +13:00
Wirianto Djunaidi c0c175e6c8 Merge branch 'master' of https://github.com/moodle/moodle 2012-02-21 16:32:23 +13:00
Paul Charsley 32bf9b8eac Merge branch 'master' of https://github.com/moodle/moodle 2012-02-10 17:50:30 +13:00
Eloy Lafuente (stronk7) 56ec75de0f weekly release 2.3dev 2012-02-10 15:56:20 +13:00
Dan Marsden 828f09f28e MDL-31360 use extra param in get_in_or_equal - one less line of code... 2012-02-10 15:56:13 +13:00
Dan Marsden 51f53e7033 MDL-28522 Choice : View reports now correctly shows unanswered column - thanks to Marcus Boon for the patch 2012-02-10 15:56:07 +13:00
Andrew Davis 435b4d8e18 MDL-29615 message: reversed the default for messagingallowemailoverride and added upgrade code so upgraded sites maintain consistent behaviour 2012-02-10 15:56:01 +13:00
Eloy Lafuente (stronk7) b7aa07339f MDL-30714 theme_afterburner: better, output the information, LOL 2012-02-10 15:55:55 +13:00
Mary Evans 2203fa50ba MDL-30714 theme_afterburner: logo link to home page 2012-02-10 15:55:48 +13:00
Glenn Ansley af20db5ad7 MDL-31448 Replaced incorrect PHP comment 2012-02-10 15:55:40 +13:00
Andrew Davis e32f8567e8 MDL-30707 mod_forum: fixed a add_to_log() call that was causing invalid URLs to be added to the log 2012-02-10 15:55:31 +13:00
Andrew Davis 29fd874eba MDL-30828 mod_feedback: fixed sorting when viewing responses 2012-02-10 15:55:22 +13:00
Andrew Davis 11f4f8d266 MDL-29615 message: added the ability for admins to restrict users ability to set where their email message notifications go 2012-02-10 15:55:12 +13:00
Andrew Davis e82f9173fe MDL-29097 course: refactored to avoid having two seperate calls to events_trigger() 2012-02-10 15:55:02 +13:00
Eloy Lafuente (stronk7) 8eabde952d MDL-31428 forum: prevent some warnings with debug enabled 2012-02-10 15:54:53 +13:00
Eloy Lafuente (stronk7) 7dff05d326 MDL-31426 forum: don't show/allow any subscription to not enrolled users 2012-02-10 15:54:44 +13:00
Tim Hunt af5b355845 MDL-30484 question engine: don't lose response files when regrading.
The problem was mostly that, in the past, we did not worry if
question_attempt_step.id changed during regrade (because we deleted the
old step row and inserted a new one). However, now that steps can have
associated files, we can't be that slack, becuase the step id is used as
the file itemid.

So, now, we have to update the existing rows during a regrade. We do
this by having the question engine tell the question_engine_unit_of_work
that the step has first been deleted, and then added back. Then we make
the unit-of-work spot that delete + add = update.

This also means that during regrading, we have to pass around some extra
ids so that new steps know the id of the step they are replacing.

Naturally, this requires some quite trickly logic, so I finally got
around to writing unit tests for question_engine_unit_of_work, which is
a good thing.

Along the way I also got around to renaming
question_attempt->set_number_in_usage, which got missed out when
everthing else was renamed to slot ages ago.

Finally, while working on this code, I noticed and fixed some PHPdoc
comments.
2012-02-10 15:54:36 +13:00
Tim Hunt 151ed81cf3 MDL-30854 quiz/question editing: fix create calc question & add on page.
This was one of those innocent seeming issues where, once you start
digging, you find a mess. In this case, the code that is now in
question_wizard_form::add_hidden_fields used to exist in four different
places, in four inconsistent versions. This is now all nicely
re-factored, and that solves the problem.

Along the way, I found and fixed some wrong string references in
qtype_random, and stripped out some unnecessary &s in function
declarations.
2012-02-10 15:54:28 +13:00
Tim Hunt 6705cd3883 MDL-31314 gradebook restore: fix category.depth on restore.
Without this, restoring backups made with the OU's custom 'restore from
1.9' feature, and possibly other people's custom converstion code, does
not work properly.

Also, fix poor recordset code.
2012-02-10 15:54:20 +13:00
sam marshall 6abd4cde9c MDL-31015 File/URL resource 'Open' and 'Force download' options should work consistently 2012-02-10 15:54:14 +13:00
Glenn Ansley d7630cca43 MDL-31311 Enhance unhelpful iframe title attributes 2012-02-10 15:54:07 +13:00
David Mudrak a49e7718f1 MDL-31317 original_site_identifier_hash falls back to null during the backup conversion
Even if the site identifier is not defined in the source 1.9 backup then the
converted 2.0 version should still contain the element to prevent PHP
notices on direct assignment.
2012-02-10 15:54:02 +13:00
Dan Marsden de4fe98fef SCORM AICC MDL-31039 update external AICC url correctly - thanks to Albert Rhemrev for report/fix 2012-02-10 15:53:56 +13:00
Dan Marsden 8efa821550 MDL-31360 Don't use get_in_or_equal if array is empty, tidy up structure of $extracaps array 2012-02-10 15:53:50 +13:00
Tim Hunt 6cc3910696 MDL-31392 qeupgradehelper partial upgrade support broken since 2.2 2012-02-10 15:53:44 +13:00
stabijoh da63fb4ea1 MDL-31267 update mymobile login page 2012-02-10 15:53:37 +13:00
Charles Fulton 8011ddb0bf MDL-31319 quiz attempts: include currentpage in backup 2012-02-10 15:53:29 +13:00
Tim Hunt 1549ee0775 MDL-26260 quiz 'secure' window: close loophole in some themes.
Some themes put padding on body, which meant there were a few pixels
where you could get at the context menu. Oh noes!
2012-02-10 15:53:21 +13:00
Sam Hemelryk dca3ade60f MDL-31197 navigation: Fixed issue withing require_login for courses that are hidden or unavailable 2012-02-10 15:53:11 +13:00
David Penner 7547a5a3d6 MDL-31160 block_navigation: Fixed incorrect thrid arg to substr. 2012-02-10 15:53:01 +13:00
Andrew Robert Nicols d9bdff1d5d MDL-31000 Respect sortorder of repositories when displaying the filepicker 2012-02-10 15:52:51 +13:00
8705 changed files with 1030999 additions and 780315 deletions
+8 -1
View File
@@ -25,4 +25,11 @@ CVS
/.project
/.buildpath
/.cache
phpunit.xml
phpunit.xml
# Composer support - only composer.json is to be in git, the rest is installed in each checkout.
composer.phar
composer.lock
/vendor/
/behat.yml
*/yui/build/*/*-coverage.js
/lib/yuilib/*/build/*/*-coverage.js
+48
View File
@@ -0,0 +1,48 @@
{
"browser": true,
"yui": true,
"bitwise": true,
"curly": true,
"eqeqeq": true,
"forin": false,
"immed": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nomen": false,
"onevar": false,
"plusplus": false,
"regexp": false,
"strict": false,
"trailing": true,
"unused": true,
"white": false,
"asi": false,
"boss": false,
"debug": false,
"eqnull": false,
"es5": false,
"esnext": false,
"evil": false,
"expr": false,
"funcscope": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": true,
"laxcomma": false,
"loopfunc": false,
"multistr": false,
"onecase": false,
"proto": false,
"regexdash": false,
"scripturl": false,
"shadow": false,
"smarttabs": false,
"sub": false,
"supernew": false,
"maxerr": 500,
"maxlen": 150,
"passfail": false,
"latedef": true
}
+4
View File
@@ -0,0 +1,4 @@
{
"coverage": false,
"lint": "config"
}
+1 -1
View File
@@ -8,7 +8,7 @@ a few minutes:
1) Move the Moodle files into your web directory.
2) Create a single database for Moodle to store all
it's tables in (or choose an existing database).
its tables in (or choose an existing database).
3) Visit your Moodle site with a browser, you should
be taken to the install.php script, which will lead
+2 -2
View File
@@ -12,13 +12,13 @@ require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
$returnurl = new moodle_url('/admin/settings.php', array('section'=>'manageauths'));
$PAGE->set_url($returnurl);
$action = optional_param('action', '', PARAM_ACTION);
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
$auth = optional_param('auth', '', PARAM_PLUGIN);
get_enabled_auth_plugins(true); // fix the list of enabled auths
+24 -13
View File
@@ -30,6 +30,9 @@
$strprotect = get_string('blockprotect', 'admin');
$strunprotect = get_string('blockunprotect', 'admin');
// Purge all caches related to blocks administration.
cache::make('core', 'plugininfo_block')->purge();
/// If data submitted, then process and store.
if (!empty($hide) && confirm_sesskey()) {
@@ -127,16 +130,30 @@
$table->define_columns(array('name', 'instances', 'version', 'hideshow', 'undeletable', 'delete', 'settings'));
$table->define_headers(array($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strprotecthdr, $strdelete, $strsettings));
$table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/blocks.php');
$table->set_attribute('class', 'compatibleblockstable blockstable generaltable');
$table->set_attribute('class', 'admintable blockstable generaltable');
$table->set_attribute('id', 'compatibleblockstable');
$table->setup();
$tablerows = array();
// Sort blocks using current locale.
$blocknames = array();
foreach ($blocks as $blockid=>$block) {
$blockname = $block->name;
if (file_exists("$CFG->dirroot/blocks/$blockname/block_$blockname.php")) {
$blocknames[$blockid] = get_string('pluginname', 'block_'.$blockname);
} else {
$blocknames[$blockid] = $blockname;
}
}
collatorlib::asort($blocknames);
foreach ($blocknames as $blockid=>$strblockname) {
$block = $blocks[$blockid];
$blockname = $block->name;
if (!file_exists("$CFG->dirroot/blocks/$blockname/block_$blockname.php")) {
$blockobject = false;
$strblockname = '<span class="notifyproblem">'.$blockname.' ('.get_string('missingfromdisk').')</span>';
$strblockname = '<span class="notifyproblem">'.$strblockname.' ('.get_string('missingfromdisk').')</span>';
$plugin = new stdClass();
$plugin->version = $block->version;
@@ -151,7 +168,6 @@
$incompatible[] = $block;
continue;
}
$strblockname = get_string('pluginname', 'block_'.$blockname);
}
$delete = '<a href="blocks.php?delete='.$blockid.'&amp;sesskey='.sesskey().'">'.$strdelete.'</a>';
@@ -189,10 +205,10 @@
$visible = '';
} else if ($blocks[$blockid]->visible) {
$visible = '<a href="blocks.php?hide='.$blockid.'&amp;sesskey='.sesskey().'" title="'.$strhide.'">'.
'<img src="'.$OUTPUT->pix_url('i/hide') . '" class="icon" alt="'.$strhide.'" /></a>';
'<img src="'.$OUTPUT->pix_url('t/hide') . '" class="iconsmall" alt="'.$strhide.'" /></a>';
} else {
$visible = '<a href="blocks.php?show='.$blockid.'&amp;sesskey='.sesskey().'" title="'.$strshow.'">'.
'<img src="'.$OUTPUT->pix_url('i/show') . '" class="icon" alt="'.$strshow.'" /></a>';
'<img src="'.$OUTPUT->pix_url('t/show') . '" class="iconsmall" alt="'.$strshow.'" /></a>';
$class = ' class="dimmed_text"'; // Leading space required!
}
@@ -207,10 +223,10 @@
$undeletable = '';
} else if (in_array($blockname, $undeletableblocktypes)) {
$undeletable = '<a href="blocks.php?unprotect='.$blockid.'&amp;sesskey='.sesskey().'" title="'.$strunprotect.'">'.
'<img src="'.$OUTPUT->pix_url('t/unlock') . '" class="icon" alt="'.$strunprotect.'" /></a>';
'<img src="'.$OUTPUT->pix_url('t/unlock') . '" class="iconsmall" alt="'.$strunprotect.'" /></a>';
} else {
$undeletable = '<a href="blocks.php?protect='.$blockid.'&amp;sesskey='.sesskey().'" title="'.$strprotect.'">'.
'<img src="'.$OUTPUT->pix_url('t/unlock_gray') . '" class="icon" alt="'.$strprotect.'" /></a>';
'<img src="'.$OUTPUT->pix_url('t/lock') . '" class="iconsmall" alt="'.$strprotect.'" /></a>';
}
$row = array(
@@ -222,12 +238,7 @@
$delete,
$settings
);
$tablerows[] = array(strip_tags($strblockname), $row); // first element will be used for sorting
}
collatorlib::asort($tablerows);
foreach ($tablerows as $row) {
$table->add_data($row[1]);
$table->add_data($row);
}
$table->print_html();
+1 -1
View File
@@ -32,7 +32,7 @@ $adminediting = optional_param('adminedit', -1, PARAM_BOOL);
/// no guest autologin
require_login(0, false);
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
$PAGE->set_context(context_system::instance());
$PAGE->set_url('/admin/category.php', array('category' => $category));
$PAGE->set_pagetype('admin-setting-' . $category);
$PAGE->set_pagelayout('admin');
+91
View File
@@ -0,0 +1,91 @@
<?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 fixed incorrectly deleted users.
*
* @package core
* @subpackage cli
* @copyright 2013 Petr Skoda (http://skodak.org)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/clilib.php');
// Now get cli options.
list($options, $unrecognized) = cli_get_params(array('help'=>false),
array('h'=>'help'));
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
if ($options['help']) {
$help =
"Fix incorrectly deleted users.
This scripts detects users that are marked as deleted instead
of calling delete_user().
Deleted users do not have original username, idnumber or email,
we must also delete all roles, enrolments, group memberships, etc.
Please note this script does not delete any public information
such as forum posts.
Options:
-h, --help Print out this help
Example:
\$sudo -u www-data /usr/bin/php admin/cli/fix_deleted_users.php
";
echo $help;
die;
}
cli_heading('Looking for sloppy user deletes');
// Look for sloppy deleted users where somebody only flipped the deleted flag.
$sql = "SELECT *
FROM {user}
WHERE deleted = 1 AND email LIKE '%@%' AND username NOT LIKE '%@%'";
$rs = $DB->get_recordset_sql($sql);
foreach ($rs as $user) {
echo "Redeleting user $user->id: $user->username ($user->email)\n";
delete_user($user);
}
cli_heading('Deleting all leftovers');
$DB->set_field('user', 'idnumber', '', array('deleted'=>1));
$DB->delete_records_select('role_assignments', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
$DB->delete_records_select('cohort_members', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
$DB->delete_records_select('groups_members', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
$DB->delete_records_select('user_enrolments', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
$DB->delete_records_select('user_preferences', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
$DB->delete_records_select('user_info_data', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
$DB->delete_records_select('user_lastaccess', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
$DB->delete_records_select('external_tokens', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
$DB->delete_records_select('external_services_users', "userid IN (SELECT id FROM {user} WHERE deleted = 1)");
exit(0);
+9 -14
View File
@@ -127,11 +127,14 @@ if (function_exists('date_default_timezone_set') and function_exists('date_defau
/** Used by library scripts to check they are being called by Moodle */
define('MOODLE_INTERNAL', true);
// Disables all caching.
define('CACHE_DISABLE_ALL', true);
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.3.2") < 0) {
if (version_compare(phpversion(), "5.3.3") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
fwrite(STDERR, "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).\n");
fwrite(STDERR, "Moodle 2.5 or later requires at least PHP 5.3.3 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
@@ -146,6 +149,7 @@ $CFG->httpswwwroot = $CFG->wwwroot;
$CFG->docroot = 'http://docs.moodle.org';
$CFG->running_installer = true;
$CFG->early_install_lang = true;
$CFG->ostype = (stristr(PHP_OS, 'win') && !stristr(PHP_OS, 'darwin')) ? 'WINDOWS' : 'UNIX';
$parts = explode('/', str_replace('\\', '/', dirname(dirname(__FILE__))));
$CFG->admin = array_pop($parts);
@@ -164,6 +168,7 @@ require_once($CFG->libdir.'/moodlelib.php');
require_once($CFG->libdir.'/deprecatedlib.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/componentlib.class.php');
require_once($CFG->dirroot.'/cache/lib.php');
require($CFG->dirroot.'/version.php');
$CFG->target_release = $release;
@@ -240,18 +245,8 @@ echo get_string('cliinstallheader', 'install', $CFG->target_release)."\n";
if ($interactive) {
cli_separator();
$languages = get_string_manager()->get_list_of_translations();
// format the langs nicely - 3 per line
$c = 0;
$langlist = '';
foreach ($languages as $key=>$lang) {
$c++;
$length = iconv_strlen($lang, 'UTF-8');
$padded = $lang.str_repeat(' ', 38-$length);
$langlist .= $padded;
if ($c % 3 == 0) {
$langlist .= "\n";
}
}
// Do not put the langs into columns because it is not compatible with RTL.
$langlist = implode("\n", $languages);
$default = $CFG->lang;
cli_heading(get_string('availablelangs', 'install'));
echo $langlist."\n";
+3 -2
View File
@@ -29,6 +29,7 @@
*/
define('CLI_SCRIPT', true);
define('CACHE_DISABLE_ALL', true);
// extra execution prevention - we can not just require config.php here
if (isset($_SERVER['REMOTE_ADDR'])) {
@@ -55,10 +56,10 @@ Example:
";
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.3.2") < 0) {
if (version_compare(phpversion(), "5.3.3") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
fwrite(STDERR, "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).\n");
fwrite(STDERR, "Moodle 2.5 or later requires at least PHP 5.3.3 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
+46 -10
View File
@@ -1,5 +1,4 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
@@ -16,7 +15,7 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Enable or disable maintenance mode
* Enable or disable maintenance mode.
*
* @package core
* @subpackage cli
@@ -26,12 +25,13 @@
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require_once($CFG->libdir.'/clilib.php'); // cli only functions
require(__DIR__.'/../../config.php');
require_once("$CFG->libdir/clilib.php");
require_once("$CFG->libdir/adminlib.php");
// now get cli options
list($options, $unrecognized) = cli_get_params(array('enable'=>false, 'disable'=>false, 'help'=>false),
// Now get cli options.
list($options, $unrecognized) = cli_get_params(array('enable'=>false, 'enablelater'=>0, 'enableold'=>false, 'disable'=>false, 'help'=>false),
array('h'=>'help'));
if ($unrecognized) {
@@ -45,12 +45,14 @@ if ($options['help']) {
Current status displayed if not option specified.
Options:
--enable Enable maintenance mode
--enable Enable CLI maintenance mode
--enablelater=MINUTES Number of minutes before entering CLI maintenance mode
--enableold Enable legacy half-maintenance mode
--disable Disable maintenance mode
-h, --help Print out this help
Example:
\$sudo -u www-data /usr/bin/php admin/cli/maintenance.php
\$ sudo -u www-data /usr/bin/php admin/cli/maintenance.php
"; //TODO: localize - to be translated later when everything is finished
echo $help;
@@ -59,18 +61,52 @@ Example:
cli_heading(get_string('sitemaintenancemode', 'admin')." ($CFG->wwwroot)");
if ($options['enable']) {
if ($options['enablelater']) {
if (file_exists("$CFG->dataroot/climaintenance.html")) {
// Already enabled, sorry.
echo get_string('clistatusenabled', 'admin')."\n";
return 1;
}
$time = time() + ($options['enablelater']*60);
set_config('maintenance_later', $time);
echo get_string('clistatusenabledlater', 'admin', userdate($time))."\n";
return 0;
} else if ($options['enable']) {
if (file_exists("$CFG->dataroot/climaintenance.html")) {
// The maintenance is already enabled, nothing to do.
} else {
enable_cli_maintenance_mode();
}
set_config('maintenance_enabled', 0);
unset_config('maintenance_later');
echo get_string('sitemaintenanceoncli', 'admin')."\n";
exit(0);
} else if ($options['enableold']) {
set_config('maintenance_enabled', 1);
unset_config('maintenance_later');
echo get_string('sitemaintenanceon', 'admin')."\n";
exit(0);
} else if ($options['disable']) {
set_config('maintenance_enabled', 0);
unset_config('maintenance_later');
if (file_exists("$CFG->dataroot/climaintenance.html")) {
unlink("$CFG->dataroot/climaintenance.html");
}
echo get_string('sitemaintenanceoff', 'admin')."\n";
exit(0);
}
if (!empty($CFG->maintenance_enabled)) {
if (!empty($CFG->maintenance_enabled) or file_exists("$CFG->dataroot/climaintenance.html")) {
echo get_string('clistatusenabled', 'admin')."\n";
} else if (isset($CFG->maintenance_later)) {
echo get_string('clistatusenabledlater', 'admin', userdate($CFG->maintenance_later))."\n";
} else {
echo get_string('clistatusdisabled', 'admin')."\n";
}
+211
View File
@@ -0,0 +1,211 @@
<?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/>.
/**
* MySQL collation conversion tool.
*
* @package core
* @copyright 2012 Petr Skoda (http://skodak.org)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require_once($CFG->libdir.'/clilib.php'); // cli only functions
if ($DB->get_dbfamily() !== 'mysql') {
cli_error('This function is designed for MySQL databases only!');
}
// now get cli options
list($options, $unrecognized) = cli_get_params(array('help'=>false, 'list'=>false, 'collation'=>false, 'available'=>false),
array('h'=>'help', 'l'=>'list', 'a'=>'available'));
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
$help =
"MySQL collation conversions script.
It is strongly recommended to stop the web server before the conversion.
This script may be executed before the main upgrade - 1.9.x data for example.
Options:
--collation=COLLATION Convert MySQL tables to different collation
-l, --list Show table and column information
-a, --available Show list of available collations
-h, --help Print out this help
Example:
\$ sudo -u www-data /usr/bin/php admin/cli/mysql_collation.php --collation=utf8_general_ci
";
if (!empty($options['collation'])) {
$collations = mysql_get_collations();
$collation = clean_param($options['collation'], PARAM_ALPHANUMEXT);
$collation = strtolower($collation);
if (!isset($collations[$collation])) {
cli_error("Error: collation '$collation' is not available on this server!");
}
echo "Converting tables and columns to '$collation' for $CFG->wwwroot:\n";
$prefix = $DB->get_prefix();
$prefix = str_replace('_', '\\_', $prefix);
$sql = "SHOW TABLE STATUS WHERE Name LIKE BINARY '$prefix%'";
$rs = $DB->get_recordset_sql($sql);
$converted = 0;
$skipped = 0;
$errors = 0;
foreach ($rs as $table) {
echo str_pad($table->name, 40). " - ";
if ($table->collation === $collation) {
echo "NO CHANGE\n";
$skipped++;
} else {
$DB->change_database_structure("ALTER TABLE $table->name DEFAULT COLLATE = $collation");
echo "CONVERTED\n";
$converted++;
}
$sql = "SHOW FULL COLUMNS FROM $table->name WHERE collation IS NOT NULL";
$rs2 = $DB->get_recordset_sql($sql);
foreach ($rs2 as $column) {
$column = (object)array_change_key_case((array)$column, CASE_LOWER);
echo ' '.str_pad($column->field, 36). " - ";
if ($column->collation === $collation) {
echo "NO CHANGE\n";
$skipped++;
continue;
}
if ($column->type === 'tinytext' or $column->type === 'mediumtext' or $column->type === 'text' or $column->type === 'longtext') {
$notnull = ($column->null === 'NO') ? 'NOT NULL' : 'NULL';
$default = (!is_null($column->default) and $column->default !== '') ? "DEFAULT '$column->default'" : '';
// primary, unique and inc are not supported for texts
$sql = "ALTER TABLE $table->name MODIFY COLUMN $column->field $column->type COLLATE $collation $notnull $default";
$DB->change_database_structure($sql);
} else if (strpos($column->type, 'varchar') === 0) {
$notnull = ($column->null === 'NO') ? 'NOT NULL' : 'NULL';
$default = !is_null($column->default) ? "DEFAULT '$column->default'" : '';
// primary, unique and inc are not supported for texts
$sql = "ALTER TABLE $table->name MODIFY COLUMN $column->field $column->type COLLATE $collation $notnull $default";
$DB->change_database_structure($sql);
} else {
echo "ERROR (unknown column type: $column->type)\n";
$error++;
continue;
}
echo "CONVERTED\n";
$converted++;
}
$rs2->close();
}
$rs->close();
echo "Converted: $converted, skipped: $skipped, errors: $errors\n";
exit(0); // success
} else if (!empty($options['list'])) {
echo "List of tables for $CFG->wwwroot:\n";
$prefix = $DB->get_prefix();
$prefix = str_replace('_', '\\_', $prefix);
$sql = "SHOW TABLE STATUS WHERE Name LIKE BINARY '$prefix%'";
$rs = $DB->get_recordset_sql($sql);
$counts = array();
foreach ($rs as $table) {
if (isset($counts[$table->collation])) {
$counts[$table->collation]++;
} else {
$counts[$table->collation] = 1;
}
echo str_pad($table->name, 40);
echo $table->collation. "\n";
$collations = mysql_get_column_collations($table->name);
foreach ($collations as $columname=>$collation) {
if (isset($counts[$collation])) {
$counts[$collation]++;
} else {
$counts[$collation] = 1;
}
echo ' ';
echo str_pad($columname, 36);
echo $collation. "\n";
}
}
$rs->close();
echo "\n";
echo "Table collations summary for $CFG->wwwroot:\n";
foreach ($counts as $collation => $count) {
echo "$collation: $count\n";
}
exit(0); // success
} else if (!empty($options['available'])) {
echo "List of available MySQL collations for $CFG->wwwroot:\n";
$collations = mysql_get_collations();
foreach ($collations as $collation) {
echo " $collation\n";
}
die;
} else {
echo $help;
die;
}
// ========== Some functions ==============
function mysql_get_collations() {
global $DB;
$collations = array();
$sql = "SHOW COLLATION WHERE Collation LIKE 'utf8\_%' AND Charset = 'utf8'";
$rs = $DB->get_recordset_sql($sql);
foreach ($rs as $collation) {
$collations[$collation->collation] = $collation->collation;
}
$rs->close();
$collation = $DB->get_dbcollation();
if (isset($collations[$collation])) {
$collations[$collation] .= ' (default)';
}
return $collations;
}
function mysql_get_column_collations($tablename) {
global $DB;
$collations = array();
$sql = "SELECT column_name, collation_name
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_schema = DATABASE() AND table_name = ? AND collation_name IS NOT NULL";
$rs = $DB->get_recordset_sql($sql, array($tablename));
foreach($rs as $record) {
$collations[$record->column_name] = $record->collation_name;
}
$rs->close();
return $collations;
}
+8 -3
View File
@@ -30,6 +30,7 @@
*/
define('CLI_SCRIPT', true);
define('CACHE_DISABLE_ALL', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require_once($CFG->libdir.'/adminlib.php'); // various admin-only functions
@@ -150,6 +151,12 @@ if ($interactive) {
}
if ($version > $CFG->version) {
// We purge all of MUC's caches here.
// Caches are disabled for upgrade by CACHE_DISABLE_ALL so we must set the first arg to true.
// This ensures a real config object is loaded and the stores will be purged.
// This is the only way we can purge custom caches such as memcache or APC.
// Note: all other calls to caches will still used the disabled API.
cache_helper::purge_all(true);
upgrade_core($version, true);
}
set_config('release', $release);
@@ -159,9 +166,7 @@ set_config('branch', $branch);
upgrade_noncore(true);
// log in as admin - we need doanything permission when applying defaults
$admins = get_admins();
$admin = reset($admins);
session_set_user($admin);
session_set_user(get_admin());
// apply all default settings, just in case do it twice to fill all defaults
admin_apply_default_settings(NULL, false);
+130
View File
@@ -0,0 +1,130 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Allows the admin to enable, disable and uninstall course formats
*
* @package core_admin
* @copyright 2012 Marina Glancy
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/pluginlib.php');
$action = required_param('action', PARAM_ALPHANUMEXT);
$formatname = required_param('format', PARAM_PLUGIN);
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$syscontext = context_system::instance();
$PAGE->set_url('/admin/courseformats.php');
$PAGE->set_context($syscontext);
require_login();
require_capability('moodle/site:config', $syscontext);
require_sesskey();
$return = new moodle_url('/admin/settings.php', array('section' => 'manageformats'));
$formatplugins = plugin_manager::instance()->get_plugins_of_type('format');
$sortorder = array_flip(array_keys($formatplugins));
if (!isset($formatplugins[$formatname])) {
print_error('courseformatnotfound', 'error', $return, $formatname);
}
switch ($action) {
case 'disable':
if ($formatplugins[$formatname]->is_enabled()) {
if (get_config('moodlecourse', 'format') === $formatname) {
print_error('cannotdisableformat', 'error', $return);
}
set_config('disabled', 1, 'format_'. $formatname);
}
break;
case 'enable':
if (!$formatplugins[$formatname]->is_enabled()) {
unset_config('disabled', 'format_'. $formatname);
}
break;
case 'up':
if ($sortorder[$formatname]) {
$currentindex = $sortorder[$formatname];
$seq = array_keys($formatplugins);
$seq[$currentindex] = $seq[$currentindex-1];
$seq[$currentindex-1] = $formatname;
set_config('format_plugins_sortorder', implode(',', $seq));
}
break;
case 'down':
if ($sortorder[$formatname] < count($sortorder)-1) {
$currentindex = $sortorder[$formatname];
$seq = array_keys($formatplugins);
$seq[$currentindex] = $seq[$currentindex+1];
$seq[$currentindex+1] = $formatname;
set_config('format_plugins_sortorder', implode(',', $seq));
}
break;
case 'uninstall':
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('courseformats', 'moodle'));
$coursecount = $DB->count_records('course', array('format' => $formatname));
if ($coursecount) {
// Check that default format is set. It will be used to convert courses
// using this format
$defaultformat = get_config('moodlecourse', 'format');
$defaultformat = $formatplugins[get_config('moodlecourse', 'format')];
if (!$defaultformat) {
echo $OUTPUT->error_text(get_string('defaultformatnotset', 'admin'));
echo $OUTPUT->footer();
exit;
}
}
$format = $formatplugins[$formatname];
$deleteurl = $format->get_uninstall_url();
if (!$deleteurl) {
// somebody was trying to cheat and type non-existing link
echo $OUTPUT->error_text(get_string('cannotuninstall', 'admin', $format->displayname));
echo $OUTPUT->footer();
exit;
}
if (!$confirm) {
if ($coursecount) {
$message = get_string('formatuninstallwithcourses', 'admin',
(object)array('count' => $coursecount, 'format' => $format->displayname,
'defaultformat' => $defaultformat->displayname));
} else {
$message = get_string('formatuninstallconfirm', 'admin', $format->displayname);
}
$deleteurl->param('confirm', 1);
echo $OUTPUT->confirm($message, $deleteurl, $return);
} else {
$a = new stdClass();
$a->plugin = $format->displayname;
$a->directory = $format->rootdir;
uninstall_plugin('format', $formatname);
echo $OUTPUT->notification(get_string('formatuninstalled', 'admin', $a), 'notifysuccess');
echo $OUTPUT->continue_button($return);
}
echo $OUTPUT->footer();
exit;
}
redirect($return);
+50 -4
View File
@@ -8,14 +8,18 @@ require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
$action = required_param('action', PARAM_ALPHANUMEXT);
$editor = required_param('editor', PARAM_PLUGIN);
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/editors.php', array('action'=>$action, 'editor'=>$editor));
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=manageeditors";
$action = optional_param('action', '', PARAM_ACTION);
$editor = optional_param('editor', '', PARAM_PLUGIN);
// get currently installed and enabled auth plugins
$available_editors = editors_get_available();
if (!empty($editor) and empty($available_editors[$editor])) {
@@ -78,6 +82,48 @@ switch ($action) {
}
}
break;
case 'uninstall':
if ($editor === 'textarea') {
redirect($returnurl);
}
if (get_string_manager()->string_exists('pluginname', 'editor_'.$editor)) {
$strplugin = get_string('pluginname', 'editor_'.$editor);
} else {
$strplugin = $editor;
}
$PAGE->set_title($strplugin);
echo $OUTPUT->header();
if (!$confirm) {
echo $OUTPUT->heading(get_string('editors', 'core_editor'));
$deleteurl = new moodle_url('/admin/editors.php', array('action'=>'uninstall', 'editor'=>$editor, 'sesskey'=>sesskey(), 'confirm'=>1));
echo $OUTPUT->confirm(get_string('editordeleteconfirm', 'core_editor', $strplugin),
$deleteurl, $returnurl);
echo $OUTPUT->footer();
die();
} else {
// Remove from enabled list.
$key = array_search($editor, $active_editors);
unset($active_editors[$key]);
set_config('texteditors', implode(',', $active_editors));
// Delete everything!!
uninstall_plugin('editor', $editor);
$a = new stdClass();
$a->name = $strplugin;
$a->directory = "$CFG->dirroot/lib/editor/$editor";
echo $OUTPUT->notification(get_string('plugindeletefiles', '', $a), 'notifysuccess');
echo $OUTPUT->continue_button($returnurl);
echo $OUTPUT->footer();
die();
}
default:
break;
}
+46 -9
View File
@@ -23,18 +23,21 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('NO_OUTPUT_BUFFERING', true);
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$action = required_param('action', PARAM_ACTION);
$action = required_param('action', PARAM_ALPHANUMEXT);
$enrol = required_param('enrol', PARAM_PLUGIN);
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$migrate = optional_param('migrate', 0, PARAM_BOOL);
$PAGE->set_url('/admin/enrol.php');
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
require_sesskey();
$enabled = enrol_get_plugins(true);
@@ -94,24 +97,58 @@ switch ($action) {
break;
case 'uninstall':
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('enrolments', 'enrol'));
if (get_string_manager()->string_exists('pluginname', 'enrol_'.$enrol)) {
$strplugin = get_string('pluginname', 'enrol_'.$enrol);
} else {
$strplugin = $enrol;
}
$PAGE->set_title($strplugin);
echo $OUTPUT->header();
if (!$confirm) {
$uurl = new moodle_url('/admin/enrol.php', array('action'=>'uninstall', 'enrol'=>$enrol, 'sesskey'=>sesskey(), 'confirm'=>1));
echo $OUTPUT->confirm(get_string('uninstallconfirm', 'enrol', $strplugin), $uurl, $return);
echo $OUTPUT->heading(get_string('enrolments', 'enrol'));
$deleteurl = new moodle_url('/admin/enrol.php', array('action'=>'uninstall', 'enrol'=>$enrol, 'sesskey'=>sesskey(), 'confirm'=>1, 'migrate'=>0));
$migrateurl = new moodle_url('/admin/enrol.php', array('action'=>'uninstall', 'enrol'=>$enrol, 'sesskey'=>sesskey(), 'confirm'=>1, 'migrate'=>1));
$migrate = new single_button($migrateurl, get_string('uninstallmigrate', 'enrol'));
$delete = new single_button($deleteurl, get_string('uninstalldelete', 'enrol'));
$cancel = new single_button($return, get_string('cancel'), 'get');
$buttons = $OUTPUT->render($delete) . $OUTPUT->render($cancel);
if ($enrol !== 'manual') {
$buttons = $OUTPUT->render($migrate) . $buttons;
}
echo $OUTPUT->box_start('generalbox', 'notice');
echo html_writer::tag('p', markdown_to_html(get_string('uninstallconfirm', 'enrol', $strplugin)));
echo html_writer::tag('div', $buttons, array('class' => 'buttons'));
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
exit;
} else { // Delete everything!!
} else {
// This may take a long time.
set_time_limit(0);
// Disable plugin to prevent concurrent cron execution.
unset($enabled[$enrol]);
set_config('enrol_plugins_enabled', implode(',', array_keys($enabled)));
if ($migrate) {
echo $OUTPUT->heading(get_string('uninstallmigrating', 'enrol', 'enrol_'.$enrol));
require_once("$CFG->dirroot/enrol/manual/locallib.php");
enrol_manual_migrate_plugin_enrolments($enrol);
echo $OUTPUT->notification(get_string('success'), 'notifysuccess');
}
// Delete everything!!
uninstall_plugin('enrol', $enrol);
$syscontext->mark_dirty(); // resets all enrol caches
$syscontext->mark_dirty(); // Resets all enrol caches.
$a = new stdClass();
$a->plugin = $strplugin;
+1 -1
View File
@@ -33,7 +33,7 @@ require_once($CFG->libdir.'/environmentlib.php');
require_once($CFG->libdir.'/componentlib.class.php');
// Parameters
$action = optional_param('action', '', PARAM_ACTION);
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
$version = optional_param('version', '', PARAM_FILE); //
$extraurlparams = array();
+364 -17
View File
@@ -227,7 +227,7 @@
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_CHECK message="iconvrequired" />
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
@@ -237,7 +237,7 @@
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_CHECK message="curlrequired" />
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="optional">
@@ -277,12 +277,12 @@
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_CHECK message="simplexmlrequired" />
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_CHECK message="splrequired" />
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
@@ -344,7 +344,7 @@
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_CHECK message="iconvrequired" />
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
@@ -354,7 +354,7 @@
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_CHECK message="curlrequired" />
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="optional">
@@ -394,12 +394,12 @@
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_CHECK message="simplexmlrequired" />
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_CHECK message="splrequired" />
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
@@ -454,7 +454,7 @@
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_CHECK message="iconvrequired" />
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
@@ -464,7 +464,7 @@
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_CHECK message="curlrequired" />
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="optional">
@@ -504,12 +504,12 @@
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_CHECK message="simplexmlrequired" />
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_CHECK message="splrequired" />
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
@@ -569,7 +569,7 @@
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_CHECK message="iconvrequired" />
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
@@ -579,7 +579,7 @@
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_CHECK message="curlrequired" />
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="optional">
@@ -619,12 +619,12 @@
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_CHECK message="simplexmlrequired" />
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_CHECK message="splrequired" />
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
@@ -659,5 +659,352 @@
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
</MOODLE>
</MOODLE>
<MOODLE version="2.4" requires="2.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.1.33" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
<VENDOR name="mssql_n" version="9.0" />
<VENDOR name="oracle" version="10.2" />
<VENDOR name="sqlite" version="2.0" />
</DATABASE>
<PHP version="5.3.2" 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="gd" level="optional">
<FEEDBACK>
<ON_CHECK message="gdrecommended" />
</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="40M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="safe_mode" value="0" level="optional">
<FEEDBACK>
<ON_CHECK message="settingsafemode" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
</MOODLE>
<MOODLE version="2.5" requires="2.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.1.33" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
<VENDOR name="mssql_n" version="9.0" />
<VENDOR name="oracle" version="10.2" />
<VENDOR name="sqlite" version="2.0" />
</DATABASE>
<PHP version="5.3.3" 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="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="40M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="safe_mode" value="0" level="optional">
<FEEDBACK>
<ON_CHECK message="settingsafemode" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
</MOODLE>
<MOODLE version="2.6" requires="2.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.1.33" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="oracle" version="10.2" />
</DATABASE>
<PHP version="5.3.3" 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="optional">
</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="64M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="safe_mode" value="0" level="optional">
<FEEDBACK>
<ON_CHECK message="settingsafemode" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
</MOODLE>
</COMPATIBILITY_MATRIX>
+26 -42
View File
@@ -34,16 +34,19 @@
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->libdir . '/adminlib.php');
$action = optional_param('action', '', PARAM_ACTION);
$filterpath = optional_param('filterpath', '', PARAM_PATH);
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
$filterpath = optional_param('filterpath', '', PARAM_SAFEDIR);
require_login();
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$systemcontext = context_system::instance();
require_capability('moodle/site:config', $systemcontext);
$returnurl = "$CFG->wwwroot/$CFG->admin/filters.php";
admin_externalpage_setup('managefilters');
// Purge all caches related to filter administration.
cache::make('core', 'plugininfo_filter')->purge();
$filters = filter_get_global_states();
// In case any new filters have been installed, but not put in the table yet.
@@ -68,7 +71,7 @@
switch ($action) {
case 'setstate':
if ($newstate = optional_param('newstate', '', PARAM_INTEGER)) {
if ($newstate = optional_param('newstate', '', PARAM_INT)) {
filter_set_global_state($filterpath, $newstate);
if ($newstate == TEXTFILTER_DISABLED) {
filter_set_applies_to_strings($filterpath, false);
@@ -84,39 +87,22 @@
case 'down':
if (isset($filters[$filterpath])) {
$oldpos = $filters[$filterpath]->sortorder;
if ($oldpos <= count($filters)) {
filter_set_global_state($filterpath, $filters[$filterpath]->active, $oldpos + 1);
}
filter_set_global_state($filterpath, $filters[$filterpath]->active, 1);
}
break;
case 'up':
if (isset($filters[$filterpath])) {
$oldpos = $filters[$filterpath]->sortorder;
if ($oldpos >= 1) {
filter_set_global_state($filterpath, $filters[$filterpath]->active, $oldpos - 1);
}
filter_set_global_state($filterpath, $filters[$filterpath]->active, -1);
}
break;
case 'delete':
if (!empty($filternames[$filterpath])) {
$filtername = $filternames[$filterpath];
} else {
$filtername = $filterpath;
}
if (substr($filterpath, 0, 4) == 'mod/') {
$mod = basename($filterpath);
$a = new stdClass;
$a->filter = $filtername;
$a->module = get_string('modulename', $mod);
print_error('cannotdeletemodfilter', 'admin', $returnurl, $a);
}
// If not yet confirmed, display a confirmation message.
if (!optional_param('confirm', '', PARAM_BOOL)) {
$filtername = filter_get_name($filterpath);
$title = get_string('deletefilterareyousure', 'admin', $filtername);
echo $OUTPUT->header();
echo $OUTPUT->heading($title);
@@ -129,7 +115,7 @@
}
// Do the deletion.
$title = get_string('deletingfilter', 'admin', $filtername);
$title = get_string('deletingfilter', 'admin', $filterpath);
echo $OUTPUT->header();
echo $OUTPUT->heading($title);
@@ -137,8 +123,8 @@
filter_delete_all_for_filter($filterpath);
$a = new stdClass;
$a->filter = $filtername;
$a->directory = $filterpath;
$a->filter = $filterpath;
$a->directory = "$CFG->dirroot/filter/$filterpath";
echo $OUTPUT->box(get_string('deletefilterfiles', 'admin', $a), 'generalbox', 'notice');
echo $OUTPUT->continue_button($returnurl);
echo $OUTPUT->footer();
@@ -185,8 +171,9 @@
$table = new html_table();
$table->head = array(get_string('filter'), get_string('isactive', 'filters'),
get_string('order'), get_string('applyto', 'filters'), get_string('settings'), get_string('delete'));
$table->align = array('left', 'left', 'center', 'left', 'left');
$table->width = '100%';
$table->colclasses = array ('leftalign', 'leftalign', 'centeralign', 'leftalign', 'leftalign', 'leftalign');
$table->attributes['class'] = 'admintable generaltable';
$table->id = 'filterssetting';
$table->data = array();
$lastactive = null;
@@ -241,20 +228,21 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)
}
// Disable/off/on
$select = new single_select(filters_action_url($filter, 'setstate'), 'newstate', $activechoices, $filterinfo->active, null, 'active' . basename($filter));
$select = new single_select(filters_action_url($filter, 'setstate'), 'newstate', $activechoices, $filterinfo->active, null, 'active' . $filter);
$select->set_label(get_string('isactive', 'filters'), array('class' => 'accesshide'));
$row[] = $OUTPUT->render($select);
// Re-order
$updown = '';
$spacer = '<img src="' . $OUTPUT->pix_url('spacer') . '" class="iconsmall" alt="" /> ';
$spacer = '<img src="' . $OUTPUT->pix_url('spacer') . '" class="iconsmall" alt="" />';
if ($filterinfo->active != TEXTFILTER_DISABLED) {
if (!$isfirstrow) {
$updown .= $OUTPUT->action_icon(filters_action_url($filter, 'up'), new pix_icon('t/up', get_string('up')));
$updown .= $OUTPUT->action_icon(filters_action_url($filter, 'up'), new pix_icon('t/up', get_string('up'), '', array('class' => 'iconsmall')));
} else {
$updown .= $spacer;
}
if (!$islastactive) {
$updown .= $OUTPUT->action_icon(filters_action_url($filter, 'down'), new pix_icon('t/down', get_string('down')));
$updown .= $OUTPUT->action_icon(filters_action_url($filter, 'down'), new pix_icon('t/down', get_string('down'), '', array('class' => 'iconsmall')));
} else {
$updown .= $spacer;
}
@@ -262,24 +250,20 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)
$row[] = $updown;
// Apply to strings.
$select = new single_select(filters_action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, $applytostrings, null, 'applyto' . basename($filter));
$select = new single_select(filters_action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, $applytostrings, null, 'applyto' . $filter);
$select->set_label(get_string('applyto', 'filters'), array('class' => 'accesshide'));
$select->disabled = $filterinfo->active == TEXTFILTER_DISABLED;
$row[] = $OUTPUT->render($select);
// Settings link, if required
if (filter_has_global_settings($filter)) {
$row[] = '<a href="' . $CFG->wwwroot . '/' . $CFG->admin . '/settings.php?section=filtersetting' .
str_replace('/', '',$filter) . '">' . get_string('settings') . '</a>';
$row[] = '<a href="' . $CFG->wwwroot . '/' . $CFG->admin . '/settings.php?section=filtersetting' . $filter . '">' . get_string('settings') . '</a>';
} else {
$row[] = '';
}
// Delete
if (substr($filter, 0, 4) != 'mod/') {
$row[] = '<a href="' . filters_action_url($filter, 'delete') . '">' . get_string('delete') . '</a>';
} else {
$row[] = '';
}
$row[] = '<a href="' . filters_action_url($filter, 'delete') . '">' . get_string('delete') . '</a>';
return $row;
}
+3 -3
View File
@@ -49,7 +49,7 @@ while(!feof($fd)) {
$a->date = userdate($log->time);
$a->action = $action;
$a->course = format_string($course->fullname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id)));
$a->course = format_string($course->fullname, true, array('context' => context_course::instance($course->id)));
$a->user = fullname($user);
notify_user($user,$subject,$a);
@@ -86,7 +86,7 @@ function notify_admins($user,$subject,$a) {
foreach ($admins as $admin) {
$eventdata = new stdClass();
$eventdata->modulename = 'moodle';
$eventdata->userfrom = $admin;
$eventdata->userfrom = get_admin();
$eventdata->userto = $admin;
$eventdata->subject = $subject;
$eventdata->fullmessage = $body;
@@ -107,7 +107,7 @@ function notify_admins_unknown($file,$a) {
foreach ($admins as $admin) {
$eventdata = new stdClass();
$eventdata->modulename = 'moodle';
$eventdata->userfrom = $admin;
$eventdata->userfrom = get_admin();
$eventdata->userto = $admin;
$eventdata->subject = $subject;
$eventdata->fullmessage = $body;
+113 -17
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.2') < 0) {
if (version_compare(phpversion(), '5.3.3') < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it to later place
echo "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).<br />";
echo "Moodle 2.5 or later requires at least PHP 5.3.3 (currently using version $phpversion).<br />";
echo "Please upgrade your server software or install older Moodle version.";
die();
}
@@ -47,6 +47,14 @@ if (!function_exists('iconv')) {
define('NO_OUTPUT_BUFFERING', true);
if (empty($_GET['cache']) and empty($_POST['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.
// Note2: the sesskey is present in all block editing hacks, we can not redirect there, so enable caching.
define('CACHE_DISABLE_ALL', true);
}
require('../config.php');
require_once($CFG->libdir.'/adminlib.php'); // various admin-only functions
require_once($CFG->libdir.'/upgradelib.php'); // general upgrade/install related functions
@@ -59,14 +67,29 @@ $confirmplugins = optional_param('confirmplugincheck', 0, PARAM_BOOL);
$showallplugins = optional_param('showallplugins', 0, PARAM_BOOL);
$agreelicense = optional_param('agreelicense', 0, PARAM_BOOL);
$fetchupdates = optional_param('fetchupdates', 0, PARAM_BOOL);
$newaddonreq = optional_param('installaddonrequest', null, PARAM_RAW);
$cache = optional_param('cache', 0, PARAM_BOOL);
// Check some PHP server settings
// Set up PAGE.
$url = new moodle_url('/admin/index.php');
if (!is_null($newaddonreq)) {
// We need to set the eventual add-on installation request in the $PAGE's URL
// so that it is stored in $SESSION->wantsurl and the admin is redirected
// correctly once they are logged-in.
$url->param('installaddonrequest', $newaddonreq);
}
if ($cache) {
$url->param('cache', $cache);
}
$PAGE->set_url($url);
unset($url);
$PAGE->set_url('/admin/index.php');
$PAGE->set_pagelayout('admin'); // Set a default pagelayout
$documentationlink = '<a href="http://docs.moodle.org/en/Installation">Installation docs</a>';
// Check some PHP server settings
if (ini_get_bool('session.auto_start')) {
print_error('phpvaroff', 'debug', '', (object)array('name'=>'session.auto_start', 'link'=>$documentationlink));
}
@@ -104,10 +127,6 @@ if (!$version or !$release) {
print_error('withoutversion', 'debug'); // without version, stop
}
// Turn off xmlstrictheaders during upgrade.
$origxmlstrictheaders = !empty($CFG->xmlstrictheaders);
$CFG->xmlstrictheaders = false;
if (!core_tables_exist()) {
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
@@ -189,14 +208,30 @@ if (!core_tables_exist()) {
// and upgrade if possible.
$stradministration = get_string('administration');
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
$PAGE->set_context(context_system::instance());
if (empty($CFG->version)) {
print_error('missingconfigversion', 'debug');
}
// Detect config cache inconsistency, this happens when you switch branches on dev servers.
if ($cache) {
if ($CFG->version != $DB->get_field('config', 'value', array('name'=>'version'))) {
purge_all_caches();
redirect(new moodle_url('/admin/index.php'), 'Config cache inconsistency detected, resetting caches...');
}
}
if ($version > $CFG->version) { // upgrade
// We purge all of MUC's caches here.
// Caches are disabled for upgrade by CACHE_DISABLE_ALL so we must set the first arg to true.
// This ensures a real config object is loaded and the stores will be purged.
// This is the only way we can purge custom caches such as memcache or APC.
// Note: all other calls to caches will still used the disabled API.
cache_helper::purge_all(true);
// We then purge the regular caches.
purge_all_caches();
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
@@ -211,8 +246,8 @@ if ($version > $CFG->version) { // upgrade
if (empty($confirmupgrade)) {
$a = new stdClass();
$a->oldversion = "$CFG->release ($CFG->version)";
$a->newversion = "$release ($version)";
$a->oldversion = "$CFG->release (".sprintf('%.2f', $CFG->version).")";
$a->newversion = "$release (".sprintf('%.2f', $version).")";
$strdatabasechecking = get_string('databasechecking', '', $a);
$PAGE->set_title($stradministration);
@@ -265,6 +300,18 @@ if ($version > $CFG->version) { // upgrade
}
$output = $PAGE->get_renderer('core', 'admin');
$deployer = available_update_deployer::instance();
if ($deployer->enabled()) {
$deployer->initialize($reloadurl, $reloadurl);
$deploydata = $deployer->submitted_data();
if (!empty($deploydata)) {
echo $output->upgrade_plugin_confirm_deploy_page($deployer, $deploydata);
die();
}
}
echo $output->upgrade_plugin_check_page(plugin_manager::instance(), available_update_checker::instance(),
$version, $showallplugins, $reloadurl,
new moodle_url('/admin/index.php', array('confirmupgrade'=>1, 'confirmrelease'=>1, 'confirmplugincheck'=>1)));
@@ -309,6 +356,17 @@ if (moodle_needs_upgrading()) {
$output = $PAGE->get_renderer('core', 'admin');
$deployer = available_update_deployer::instance();
if ($deployer->enabled()) {
$deployer->initialize($PAGE->url, $PAGE->url);
$deploydata = $deployer->submitted_data();
if (!empty($deploydata)) {
echo $output->upgrade_plugin_confirm_deploy_page($deployer, $deploydata);
die();
}
}
// check plugin dependencies first
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
@@ -357,6 +415,10 @@ if (during_initial_install()) {
}
}
// Cleanup SESSION to make sure other code does not complain in the future.
unset($SESSION->has_timed_out);
unset($SESSION->wantsurl);
// at this stage there can be only one admin unless more were added by install - users may change username, so do not rely on that
$adminids = explode(',', $CFG->siteadmins);
$adminuser = get_complete_user_data('id', reset($adminids));
@@ -380,13 +442,15 @@ if (during_initial_install()) {
upgrade_finished('upgradesettings.php');
}
// Turn xmlstrictheaders back on now.
$CFG->xmlstrictheaders = $origxmlstrictheaders;
unset($origxmlstrictheaders);
// Now we can be sure everything was upgraded and caches work fine,
// redirect if necessary to make sure caching is enabled.
if (!$cache and !optional_param('sesskey', '', PARAM_RAW)) {
redirect(new moodle_url($PAGE->url, array('cache' => 1)));
}
// Check for valid admin user - no guest autologin
require_login(0, false);
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
require_capability('moodle/site:config', $context);
// check that site is properly customized
@@ -403,6 +467,17 @@ if (!empty($id) and $id == $CFG->siteidentifier) {
set_config('registered', time());
}
// Check if we are returning from an add-on installation request at moodle.org/plugins
if (!is_null($newaddonreq)) {
if (!empty($CFG->disableonclickaddoninstall)) {
// The feature is disabled in config.php, ignore the request.
} else {
redirect(new moodle_url('/admin/tool/installaddon/index.php', array(
'installaddonrequest' => $newaddonreq,
'confirm' => 0)));
}
}
// setup critical warnings before printing admin tree block
$insecuredataroot = is_dataroot_insecure(true);
$SESSION->admin_critical_warning = ($insecuredataroot==INSECURE_DATAROOT_ERROR);
@@ -424,9 +499,30 @@ $cronoverdue = ($lastcron < time() - 3600 * 24);
$dbproblems = $DB->diagnose();
$maintenancemode = !empty($CFG->maintenance_enabled);
// Available updates for Moodle core
$updateschecker = available_update_checker::instance();
$availableupdates = $updateschecker->get_update_info('core',
$availableupdates = array();
$availableupdates['core'] = $updateschecker->get_update_info('core',
array('minmaturity' => $CFG->updateminmaturity, 'notifybuilds' => $CFG->updatenotifybuilds));
// Available updates for contributed plugins
$pluginman = plugin_manager::instance();
foreach ($pluginman->get_plugins() as $plugintype => $plugintypeinstances) {
foreach ($plugintypeinstances as $pluginname => $plugininfo) {
if (!empty($plugininfo->availableupdates)) {
foreach ($plugininfo->availableupdates as $pluginavailableupdate) {
if ($pluginavailableupdate->version > $plugininfo->versiondisk) {
if (!isset($availableupdates[$plugintype.'_'.$pluginname])) {
$availableupdates[$plugintype.'_'.$pluginname] = array();
}
$availableupdates[$plugintype.'_'.$pluginname][] = $pluginavailableupdate;
}
}
}
}
}
// The timestamp of the most recent check for available updates
$availableupdatesfetch = $updateschecker->get_last_timefetched();
$buggyiconvnomb = (!function_exists('mb_convert_encoding') and @iconv('UTF-8', 'UTF-8//IGNORE', '100'.chr(130).'€') !== '100€');
@@ -438,7 +534,7 @@ admin_externalpage_setup('adminnotifications');
if ($fetchupdates) {
require_sesskey();
$updateschecker->fetch();
redirect($PAGE->url);
redirect(new moodle_url('/admin/index.php'));
}
$output = $PAGE->get_renderer('core', 'admin');
-11
View File
@@ -35,16 +35,5 @@ function admin_page_type_list($pagetype, $parentcontext, $currentcontext) {
'admin-*' => get_string('page-admin-x', 'pagetype'),
$pagetype => get_string('page-admin-current', 'pagetype')
);
// Add the missing * (any page) option for them. MDL-30340
// TODO: These pages are really 'pagetype-varying' - MDL-30564 -
// and some day we should stop behaving that way, so proper pagetypes
// can be specified for it (like course-category-* or so).
// Luckly... the option we are introducing '*' is independent
// of that varying behavior, so will work.
if ($pagetype == 'admin-course-category') {
$array += array(
'*' => get_string('page-x', 'pagetype')
);
}
return $array;
}
+2 -2
View File
@@ -24,11 +24,11 @@ require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/licenselib.php');
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=managelicenses";
$action = optional_param('action', '', PARAM_ACTION);
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
$license = optional_param('license', '', PARAM_SAFEDIR);
////////////////////////////////////////////////////////////////////////////////
+1 -1
View File
@@ -77,7 +77,7 @@ $table->define_columns(array('name', 'version', 'delete'));
$table->define_headers(array(get_string('plugin'), get_string('version'), get_string('delete')));
$table->define_baseurl($PAGE->url);
$table->set_attribute('id', 'localplugins');
$table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide');
$table->set_attribute('class', 'admintable generaltable');
$table->setup();
$plugins = array();
+2 -2
View File
@@ -29,7 +29,7 @@ require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup('managemessageoutputs');
// Require site configuration capability
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
// Get the submitted params
$disable = optional_param('disable', 0, PARAM_INT);
@@ -82,7 +82,7 @@ if ($disable || $enable || $uninstall) {
redirect($url);
}
// Page settings
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
$PAGE->set_context(context_system::instance());
// Grab the renderer
$renderer = $PAGE->get_renderer('core', 'message');
+5 -4
View File
@@ -22,7 +22,7 @@ if (!extension_loaded('openssl')) {
print_error('requiresopenssl', 'mnet');
}
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
$sitecontext = context_system::instance();
$sesskey = sesskey();
$formerror = array();
@@ -203,17 +203,18 @@ echo get_string('username') . ":\n";
if (!empty($formerror['username'])) {
echo '<span class="error"> * </span>';
}
echo '<input type="text" name="username" size="20" maxlength="100" />';
echo html_writer::label(get_string('username'), 'menuusername', false, array('class' => 'accesshide'));
echo '<input id="menuusername" type="text" name="username" size="20" maxlength="100" />';
// choose a remote host
echo " " . get_string('remotehost', 'mnet') . ":\n";
echo " " . html_writer::label(get_string('remotehost', 'mnet'), 'menumnet_host_id') . ":\n";
if (!empty($formerror['mnet_host_id'])) {
echo '<span class="error"> * </span>';
}
echo html_writer::select($mnethosts, 'mnet_host_id');
// choose an access level
echo " " . get_string('accesslevel', 'mnet') . ":\n";
echo " " . html_writer::label(get_string('accesslevel', 'mnet'), 'menuaccessctrl') . ":\n";
if (!empty($formerror['accessctrl'])) {
echo '<span class="error"> * </span>';
}
+1 -1
View File
@@ -36,7 +36,7 @@ $hostid = required_param('hostid', PARAM_INT);
require_login();
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
$mnet = get_mnet_environment();
+3 -3
View File
@@ -9,7 +9,7 @@
require_login();
admin_externalpage_setup('net');
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
@@ -85,7 +85,7 @@
echo $OUTPUT->header();
?>
<form method="post" action="index.php">
<table align="center" width="635" class="generalbox" border="0" cellpadding="5" cellspacing="0">
<table align="center" width="635" class="generaltable" border="0" cellpadding="5" cellspacing="0">
<tr>
<td class="generalboxcontent">
<table cellpadding="9" cellspacing="0" >
@@ -106,7 +106,7 @@
</table>
</form>
<form method="post" action="index.php">
<table align="center" width="635" class="generalbox" border="0" cellpadding="5" cellspacing="0">
<table align="center" width="635" class="generaltable" border="0" cellpadding="5" cellspacing="0">
<tr>
<td class="generalboxcontent">
<table cellpadding="9" cellspacing="0" >
+5
View File
@@ -78,9 +78,13 @@ class mnet_review_host_form extends moodleform {
$mnet_peer = $this->_customdata['peer'];
$mform->addElement('hidden', 'last_connect_time');
$mform->setType('last_connect_time', PARAM_INT);
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
$mform->addElement('hidden', 'applicationid');
$mform->setType('applicationid', PARAM_INT);
$mform->addElement('hidden', 'oldpublickey');
$mform->setType('oldpublickey', PARAM_PEM);
$mform->addElement('text', 'name', get_string('site'), array('maxlength' => 80, 'size' => 50));
$mform->setType('name', PARAM_NOTAGS);
@@ -148,6 +152,7 @@ class mnet_review_host_form extends moodleform {
$mform->addGroup($radioarray, 'radioar', get_string('deleted'), array(' ', ' '), false);
} else {
$mform->addElement('hidden', 'deleted');
$mform->setType('deleted', PARAM_BOOL);
}
// finished with static stuff, print save button
+2 -2
View File
@@ -30,11 +30,11 @@
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot.'/mnet/lib.php');
require_once($CFG->dirroot.'/admin/mnet/peer_forms.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/mnet/peer_forms.php');
require_login();
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, 'nopermissions');
/// Initialize variables.
+1 -1
View File
@@ -34,7 +34,7 @@ $hostid = required_param('hostid', PARAM_INT);
$mnet_peer = new mnet_peer();
$mnet_peer->set_id($hostid);
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, 'nopermissions');
admin_externalpage_setup('mnetpeers');
+2
View File
@@ -50,6 +50,8 @@ class mnet_profile_form extends moodleform {
}
$mform->addElement('hidden', 'hostid', $this->_customdata['hostid']);
$mform->setType('hostid', PARAM_INT);
$fields = mnet_profile_field_options();
// Fields to import ----------------------------------------------------
+1 -1
View File
@@ -33,7 +33,7 @@ $mnet = get_mnet_environment();
require_login();
admin_externalpage_setup('mnetpeers');
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
$hostid = required_param('hostid', PARAM_INT);
+3
View File
@@ -39,6 +39,7 @@ class mnet_services_form extends moodleform {
$myservices = mnet_get_service_info($mnet_peer);
$mform->addElement('hidden', 'hostid', $mnet_peer->id);
$mform->setType('hostid', PARAM_INT);
$count = 0;
foreach ($myservices as $name => $versions) {
@@ -55,6 +56,8 @@ class mnet_services_form extends moodleform {
$mform->addElement('html', '<h3>' . get_string($name.'_name', $langmodule , $mnet_peer->name) . '</h3>' . get_string($name.'_description', $langmodule, $mnet_peer->name));
$mform->addElement('hidden', 'exists[' . $version['serviceid'] . ']', 1);
// Temporary fix until MDL-38885 gets integrated.
$mform->setType('exists', PARAM_BOOL);
$pubstr = get_string('publish','mnet');
if (!empty($version['hostsubscribes'])) {
+1 -1
View File
@@ -24,7 +24,7 @@ if ($CFG->mnet_dispatcher_mode === 'off') {
require_login();
admin_externalpage_setup('mnettestclient');
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
require_capability('moodle/site:config', $context);
error_reporting(DEBUG_ALL);
+1 -1
View File
@@ -8,7 +8,7 @@
require_login();
admin_externalpage_setup('trustedhosts');
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
+5 -2
View File
@@ -29,6 +29,9 @@
$stractivitymodule = get_string("activitymodule");
$strshowmodulecourse = get_string('showmodulecourse');
// Purge all caches related to activity modules administration.
cache::make('core', 'plugininfo_mod')->purge();
/// If data submitted, then process and store.
if (!empty($hide) and confirm_sesskey()) {
@@ -161,11 +164,11 @@
$class = '';
} else if ($module->visible) {
$visible = "<a href=\"modules.php?hide=$module->name&amp;sesskey=".sesskey()."\" title=\"$strhide\">".
"<img src=\"" . $OUTPUT->pix_url('i/hide') . "\" class=\"icon\" alt=\"$strhide\" /></a>";
"<img src=\"" . $OUTPUT->pix_url('t/hide') . "\" class=\"iconsmall\" alt=\"$strhide\" /></a>";
$class = '';
} else {
$visible = "<a href=\"modules.php?show=$module->name&amp;sesskey=".sesskey()."\" title=\"$strshow\">".
"<img src=\"" . $OUTPUT->pix_url('i/show') . "\" class=\"icon\" alt=\"$strshow\" /></a>";
"<img src=\"" . $OUTPUT->pix_url('t/show') . "\" class=\"iconsmall\" alt=\"$strshow\" /></a>";
$class = ' class="dimmed_text"';
}
if ($module->name == "forum") {
+11 -3
View File
@@ -49,7 +49,7 @@ function online_assignment_cleanup($output=false) {
/// cycle through each course
foreach ($courses as $course) {
context_instance_preload($course);
$context = get_context_instance(CONTEXT_COURSE, $course->id);
$context = context_course::instance($course->id);
if (empty($course->fullname)) {
$fullname = get_string('course').': '.$course->id;
@@ -59,11 +59,19 @@ function online_assignment_cleanup($output=false) {
if ($output) echo $OUTPUT->heading($fullname);
/// retrieve a list of sections beyond what is currently being shown
$courseformatoptions = course_get_format($course)->get_format_options();
if (!isset($courseformatoptions['numsections'])) {
// Course format does not use numsections
if ($output) {
echo 'No extra sections<br />';
}
continue;
}
$sql = "SELECT *
FROM {course_sections}
WHERE course=? AND section>?
ORDER BY section ASC";
$params = array($course->id, $course->numsections);
$params = array($course->id, $courseformatoptions['numsections']);
if (!($xsections = $DB->get_records_sql($sql, $params))) {
if ($output) echo 'No extra sections<br />';
continue;
@@ -94,7 +102,7 @@ function online_assignment_cleanup($output=false) {
/// the journal update erroneously stored it in course_sections->section
$newsection = $xsection->section;
/// double check the new section
if ($newsection > $course->numsections) {
if ($newsection > $courseformatoptions['numsections']) {
/// get the record for section 0 for this course
if (!($zerosection = $DB->get_record('course_sections', array('course'=>$course->id, 'section'=>'0')))) {
continue;
+114
View File
@@ -0,0 +1,114 @@
<?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 plagiarism plugins
*
* Displays the list of found plagiarism plugins, their version (if found) and
* a link to delete the plagiarism plugin.
*
* @see http://docs.moodle.org/dev/Plagiarism_API
* @package admin
* @copyright 2012 Dan Marsden <dan@danmarsden.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/tablelib.php');
admin_externalpage_setup('manageplagiarismplugins');
$delete = optional_param('delete', '', PARAM_PLUGIN);
$confirm = optional_param('confirm', false, PARAM_BOOL);
if (!empty($delete) and confirm_sesskey()) { // If data submitted, then process and store.
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('manageplagiarism', 'plagiarism'));
if (!$confirm) {
if (get_string_manager()->string_exists('pluginname', 'plagiarism_' . $delete)) {
$strpluginname = get_string('pluginname', 'plagiarism_' . $delete);
} else {
$strpluginname = $delete;
}
echo $OUTPUT->confirm(get_string('plagiarismplugindeleteconfirm', 'plagiarism', $strpluginname),
new moodle_url($PAGE->url, array('delete' => $delete, 'confirm' => 1)),
$PAGE->url);
echo $OUTPUT->footer();
die();
} else {
uninstall_plugin('plagiarism', $delete);
$a = new stdclass();
$a->name = $delete;
$pluginlocation = get_plugin_types();
$a->directory = $pluginlocation['plagiarism'] . '/' . $delete;
echo $OUTPUT->notification(get_string('plugindeletefiles', '', $a), 'notifysuccess');
echo $OUTPUT->continue_button($PAGE->url);
echo $OUTPUT->footer();
die();
}
}
echo $OUTPUT->header();
// Print the table of all installed plagiarism plugins.
$txt = get_strings(array('settings', 'name', 'version', 'delete'));
$plagiarismplugins = get_plugin_list('plagiarism');
if (empty($plagiarismplugins)) {
echo $OUTPUT->notification(get_string('nopluginsinstalled', 'plagiarism'));
echo $OUTPUT->footer();
exit;
}
echo $OUTPUT->heading(get_string('availableplugins', 'plagiarism'), 3, 'main');
echo $OUTPUT->box_start('generalbox authsui');
$table = new html_table();
$table->head = array($txt->name, $txt->version, $txt->delete, $txt->settings);
$table->colclasses = array('mdl-left', 'mdl-align', 'mdl-align', 'mdl-align');
$table->data = array();
$table->attributes['class'] = 'manageplagiarismtable generaltable';
// Iterate through auth plugins and add to the display table.
$authcount = count($plagiarismplugins);
foreach ($plagiarismplugins as $plugin => $dir) {
if (file_exists($dir.'/settings.php')) {
$displayname = "<span>".get_string($plugin, 'plagiarism_'.$plugin)."</span>";
// Settings link.
$url = new moodle_url("/plagiarism/$plugin/settings.php");
$settings = html_writer::link($url, $txt->settings);
// Get version.
$version = get_config('plagiarism_' . $plugin);
if (!empty($version->version)) {
$version = $version->version;
} else {
$version = '?';
}
// Delete link.
$delete = new moodle_url($PAGE->url, array('delete' => $plugin, 'sesskey' => sesskey()));
$delete = html_writer::link($delete, get_string('delete'));
$table->data[] = array($displayname, $version, $delete, $settings);
}
}
echo html_writer::table($table);
echo get_string('configplagiarismplugins', 'plagiarism');
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
+122 -4
View File
@@ -18,6 +18,15 @@
/**
* UI for general plugins management
*
* Supported HTTP parameters:
*
* ?fetchremote=1 - check for available updates
* ?updatesonly=1 - display plugins with available update only
* ?contribonly=1 - display non-standard add-ons only
* ?uninstall=foo_bar - uninstall the given plugin
* ?delete=foo_bar - delete the plugin folder (it must not be installed)
* &confirm=1 - confirm the uninstall or delete action
*
* @package core
* @subpackage admin
* @copyright 2011 David Mudrak <david@moodle.com>
@@ -27,20 +36,129 @@
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/pluginlib.php');
require_once($CFG->libdir . '/filelib.php');
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
admin_externalpage_setup('pluginsoverview');
require_capability('moodle/site:config', context_system::instance());
$fetchremote = optional_param('fetchremote', false, PARAM_BOOL);
$updatesonly = optional_param('updatesonly', false, PARAM_BOOL);
$contribonly = optional_param('contribonly', false, PARAM_BOOL);
$uninstall = optional_param('uninstall', '', PARAM_COMPONENT);
$delete = optional_param('delete', '', PARAM_COMPONENT);
$confirmed = optional_param('confirm', false, PARAM_BOOL);
$output = $PAGE->get_renderer('core', 'admin');
$pluginman = plugin_manager::instance();
if ($uninstall) {
require_sesskey();
$pluginfo = $pluginman->get_plugin_info($uninstall);
// Make sure we know the plugin.
if (is_null($pluginfo)) {
throw new moodle_exception('err_uninstalling_unknown_plugin', 'core_plugin', '', array('plugin' => $uninstall),
'plugin_manager::get_plugin_info() returned null for the plugin to be uninstalled');
}
$pluginname = $pluginman->plugin_name($pluginfo->component);
$PAGE->set_title($pluginname);
$PAGE->navbar->add(get_string('uninstalling', 'core_plugin', array('name' => $pluginname)));
if (!$pluginman->can_uninstall_plugin($pluginfo->component)) {
throw new moodle_exception('err_cannot_uninstall_plugin', 'core_plugin', '',
array('plugin' => $pluginfo->component),
'plugin_manager::can_uninstall_plugin() returned false');
}
if (!$confirmed) {
$continueurl = new moodle_url($PAGE->url, array('uninstall' => $pluginfo->component, 'sesskey' => sesskey(), 'confirm' => 1));
echo $output->plugin_uninstall_confirm_page($pluginman, $pluginfo, $continueurl);
exit();
} else {
$progress = new progress_trace_buffer(new text_progress_trace(), false);
$pluginman->uninstall_plugin($pluginfo->component, $progress);
$progress->finished();
if ($pluginman->is_plugin_folder_removable($pluginfo->component)) {
$continueurl = new moodle_url($PAGE->url, array('delete' => $pluginfo->component, 'sesskey' => sesskey(), 'confirm' => 1));
echo $output->plugin_uninstall_results_removable_page($pluginman, $pluginfo, $progress, $continueurl);
exit();
} else {
echo $output->plugin_uninstall_results_page($pluginman, $pluginfo, $progress);
exit();
}
}
}
if ($delete and $confirmed) {
require_sesskey();
$pluginfo = $pluginman->get_plugin_info($delete);
// Make sure we know the plugin.
if (is_null($pluginfo)) {
throw new moodle_exception('err_removing_unknown_plugin', 'core_plugin', '', array('plugin' => $delete),
'plugin_manager::get_plugin_info() returned null for the plugin to be deleted');
}
$pluginname = $pluginman->plugin_name($pluginfo->component);
$PAGE->set_title($pluginname);
$PAGE->navbar->add(get_string('uninstalling', 'core_plugin', array('name' => $pluginname)));
// Make sure it is not installed.
if (!is_null($pluginfo->versiondb)) {
throw new moodle_exception('err_removing_installed_plugin', 'core_plugin', '',
array('plugin' => $pluginfo->component, 'versiondb' => $pluginfo->versiondb),
'plugin_manager::get_plugin_info() returned not-null versiondb for the plugin to be deleted');
}
// Make sure the folder is removable.
if (!$pluginman->is_plugin_folder_removable($pluginfo->component)) {
throw new moodle_exception('err_removing_unremovable_folder', 'core_plugin', '',
array('plugin' => $pluginfo->component, 'rootdir' => $pluginfo->rootdir),
'plugin root folder is not removable as expected');
}
// Make sure the folder is within Moodle installation tree.
if (strpos($pluginfo->rootdir, $CFG->dirroot) !== 0) {
throw new moodle_exception('err_unexpected_plugin_rootdir', 'core_plugin', '',
array('plugin' => $pluginfo->component, 'rootdir' => $pluginfo->rootdir, 'dirroot' => $CFG->dirroot),
'plugin root folder not in the moodle dirroot');
}
// So long, and thanks for all the bugs.
fulldelete($pluginfo->rootdir);
cache::make('core', 'pluginlist')->purge();
redirect($PAGE->url);
}
$checker = available_update_checker::instance();
// Filtering options.
$options = array(
'updatesonly' => $updatesonly,
'contribonly' => $contribonly,
);
if ($fetchremote) {
require_sesskey();
$checker->fetch();
redirect($PAGE->url);
redirect(new moodle_url($PAGE->url, $options));
}
$output = $PAGE->get_renderer('core', 'admin');
echo $output->plugin_management_page($pluginman, $checker);
$deployer = available_update_deployer::instance();
if ($deployer->enabled()) {
$myurl = new moodle_url($PAGE->url, array('updatesonly' => $updatesonly, 'contribonly' => $contribonly));
$deployer->initialize($myurl, new moodle_url('/admin'));
$deploydata = $deployer->submitted_data();
if (!empty($deploydata)) {
echo $output->upgrade_plugin_confirm_deploy_page($deployer, $deploydata);
die();
}
}
echo $output->plugin_management_page($pluginman, $checker, $options);
+7 -2
View File
@@ -5,7 +5,7 @@ require_once($CFG->libdir . '/portfoliolib.php');
require_once($CFG->libdir . '/portfolio/forms.php');
require_once($CFG->libdir . '/adminlib.php');
$portfolio = optional_param('pf', '', PARAM_FORMAT);
$portfolio = optional_param('pf', '', PARAM_ALPHANUMEXT);
$action = optional_param('action', '', PARAM_ALPHA);
$sure = optional_param('sure', '', PARAM_ALPHA);
@@ -35,7 +35,7 @@ if ($action == 'newon') {
admin_externalpage_setup($pagename);
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
$baseurl = "$CFG->wwwroot/$CFG->admin/portfolio.php";
$sesskeyurl = "$CFG->wwwroot/$CFG->admin/portfolio.php?sesskey=" . sesskey();
@@ -43,6 +43,9 @@ $configstr = get_string('manageportfolios', 'portfolio');
$return = true; // direct back to the main page
// Purge all caches related to portfolio administration.
cache::make('core', 'plugininfo_portfolio')->purge();
/**
* Helper function that generates a moodle_url object
* relevant to the portfolio
@@ -197,6 +200,7 @@ if (($action == 'edit') || ($action == 'new')) {
$currentaction = 'hide';
}
$select = new single_select(portfolio_action_url($pluginid, 'pf'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . $pluginid);
$select->set_label(get_string('action'), array('class' => 'accesshide'));
$table->data[] = array($pluginname, $OUTPUT->render($select), $settings);
}
if (!in_array($plugin, $usedplugins)) {
@@ -218,6 +222,7 @@ if (($action == 'edit') || ($action == 'new')) {
$insaneplugins[] = $p;
} else {
$select = new single_select(portfolio_action_url($p, 'pf'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . $p);
$select->set_label(get_string('action'), array('class' => 'accesshide'));
$table->data[] = array(portfolio_static_function($p, 'get_name'), $OUTPUT->render($select), '');
}
}
+30 -30
View File
@@ -27,37 +27,37 @@ require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$returnurl = optional_param('returnurl', null, PARAM_LOCALURL);
// If we have got here as a confirmed aciton, do it.
if ($confirm && isloggedin() && confirm_sesskey()) {
require_capability('moodle/site:config', context_system::instance());
// Valid request. Purge, and redirect the user back to where they came from.
purge_all_caches();
if ($returnurl) {
$returnurl = $CFG->wwwroot . $returnurl;
} else {
$returnurl = new moodle_url('/admin/purgecaches.php');
}
redirect($returnurl, get_string('purgecachesfinished', 'admin'));
}
// Otherwise, show a button to actually purge the caches.
admin_externalpage_setup('purgecaches');
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
if ($confirm) {
require_sesskey();
// Valid request. Purge, and redisplay the form so it is easy to purge again
// in the near future.
purge_all_caches();
redirect(new moodle_url('/admin/purgecaches.php'), get_string('purgecachesfinished', 'admin'));
} else {
// Show a confirm form.
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('purgecaches', 'admin'));
$url = new moodle_url('/admin/purgecaches.php', array('sesskey'=>sesskey(), 'confirm'=>1));
$button = new single_button($url, get_string('purgecaches','admin'), 'post');
// Cancel button takes them back to the page the were on, if possible,
// otherwise to the site home page.
$return = new moodle_url('/');
if (isset($_SERVER['HTTP_REFERER']) and !empty($_SERVER['HTTP_REFERER'])) {
if ($_SERVER['HTTP_REFERER'] !== "$CFG->wwwroot/$CFG->admin/purgecaches.php") {
$return = $_SERVER['HTTP_REFERER'];
}
}
echo $OUTPUT->confirm(get_string('purgecachesconfirm', 'admin'), $button, $return);
echo $OUTPUT->footer();
$actionurl = new moodle_url('/admin/purgecaches.php', array('sesskey'=>sesskey(), 'confirm'=>1));
if ($returnurl) {
$actionurl->param('returnurl', $returnurl);
}
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('purgecaches', 'admin'));
echo $OUTPUT->box_start('generalbox', 'notice');
echo html_writer::tag('p', get_string('purgecachesconfirm', 'admin'));
echo $OUTPUT->single_button($actionurl, get_string('purgecaches', 'admin'), 'post');
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
+6 -6
View File
@@ -33,7 +33,7 @@ require_once($CFG->libdir . '/tablelib.php');
// Check permissions.
require_login();
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$systemcontext = context_system::instance();
require_capability('moodle/question:config', $systemcontext);
admin_externalpage_setup('manageqbehaviours');
@@ -258,7 +258,7 @@ foreach ($sortedbehaviours as $behaviour => $behaviourname) {
$rowclass = 'dimmed_text';
}
} else {
$icons = $OUTPUT->spacer() . ' ';
$icons = $OUTPUT->spacer(array('class' => 'iconsmall'));
}
// Move icons.
@@ -284,10 +284,10 @@ echo $OUTPUT->footer();
function question_behaviour_enable_disable_icons($behaviour, $enabled) {
if ($enabled) {
return question_behaviour_icon_html('disable', $behaviour, 'i/hide',
return question_behaviour_icon_html('disable', $behaviour, 't/hide',
get_string('enabled', 'question'), get_string('disable'));
} else {
return question_behaviour_icon_html('enable', $behaviour, 'i/show',
return question_behaviour_icon_html('enable', $behaviour, 't/show',
get_string('disabled', 'question'), get_string('enable'));
}
}
@@ -296,7 +296,7 @@ function question_behaviour_icon_html($action, $behaviour, $icon, $alt, $tip) {
global $OUTPUT;
return $OUTPUT->action_icon(new moodle_url('/admin/qbehaviours.php',
array($action => $behaviour, 'sesskey' => sesskey())),
new pix_icon($icon, $alt, 'moodle', array('title' => '')),
null, array('title' => $tip)) . ' ';
new pix_icon($icon, $alt, 'moodle', array('title' => '', 'class' => 'iconsmall')),
null, array('title' => $tip));
}
+7 -7
View File
@@ -33,7 +33,7 @@ require_once($CFG->libdir . '/tablelib.php');
// Check permissions.
require_login();
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$systemcontext = context_system::instance();
require_capability('moodle/question:config', $systemcontext);
$canviewreports = has_capability('report/questioninstances:view', $systemcontext);
@@ -195,7 +195,7 @@ $table->define_headers(array(get_string('questiontype', 'question'), get_string(
get_string('version'), get_string('requires', 'admin'), get_string('availableq', 'question'),
get_string('delete'), get_string('settings')));
$table->set_attribute('id', 'qtypes');
$table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide');
$table->set_attribute('class', 'admintable generaltable');
$table->setup();
// Add a row for each question type.
@@ -257,7 +257,7 @@ foreach ($sortedqtypes as $qtypename => $localname) {
$rowclass = 'dimmed_text';
}
} else {
$icons = $OUTPUT->spacer() . ' ';
$icons = $OUTPUT->spacer();
}
// Move icons.
@@ -294,10 +294,10 @@ echo $OUTPUT->footer();
function question_types_enable_disable_icons($qtypename, $createable) {
if ($createable) {
return question_type_icon_html('disable', $qtypename, 'i/hide',
return question_type_icon_html('disable', $qtypename, 't/hide',
get_string('enabled', 'question'), get_string('disable'));
} else {
return question_type_icon_html('enable', $qtypename, 'i/show',
return question_type_icon_html('enable', $qtypename, 't/show',
get_string('disabled', 'question'), get_string('enable'));
}
}
@@ -306,7 +306,7 @@ function question_type_icon_html($action, $qtypename, $icon, $alt, $tip) {
global $OUTPUT;
return $OUTPUT->action_icon(new moodle_url('/admin/qtypes.php',
array($action => $qtypename, 'sesskey' => sesskey())),
new pix_icon($icon, $alt, 'moodle', array('title' => '')),
null, array('title' => $tip)) . ' ';
new pix_icon($icon, $alt, 'moodle', array('title' => '', 'class' => 'iconsmall')),
null, array('title' => $tip));
}
+71 -30
View File
@@ -49,8 +49,10 @@ class site_unregistration_form extends moodleform {
$unregisterlabel = get_string('unregister', 'hub');
$mform->addElement('checkbox', 'unpublishalladvertisedcourses', '',
' ' . get_string('unpublishalladvertisedcourses', 'hub'));
$mform->setType('unpublishalladvertisedcourses', PARAM_INT);
$mform->addElement('checkbox', 'unpublishalluploadedcourses', '',
' ' . get_string('unpublishalluploadedcourses', 'hub'));
$mform->setType('unpublishalluploadedcourses', PARAM_INT);
$mform->addElement('hidden', 'confirm', 1);
$mform->setType('confirm', PARAM_INT);
@@ -82,7 +84,6 @@ class site_clean_registration_data_form extends moodleform {
$unregisterlabel = get_string('forceunregister', 'hub');
$mform->addElement('static', '', get_string('warning', 'hub'), get_string('forceunregisterconfirmation', 'hub', $hubname));
$mform->addElement('hidden', 'confirm', 1);
$mform->setType('confirm', PARAM_INT);
$mform->addElement('hidden', 'unregistration', 1);
@@ -149,6 +150,7 @@ class hub_selector_form extends moodleform {
if (!empty($hubs)) {
$mform->addElement('select', 'publichub', get_string('publichub', 'hub'),
$options, array("size" => 15));
$mform->setType('publichub', PARAM_URL);
}
$mform->addElement('static', 'or', '', get_string('orenterprivatehub', 'hub'));
@@ -156,8 +158,10 @@ class hub_selector_form extends moodleform {
//Private hub
$mform->addElement('text', 'unlistedurl', get_string('privatehuburl', 'hub'),
array('class' => 'registration_textfield'));
$mform->setType('unlistedurl', PARAM_URL);
$mform->addElement('text', 'password', get_string('password'),
array('class' => 'registration_textfield'));
$mform->setType('password', PARAM_RAW);
$this->add_action_buttons(false, get_string('selecthub', 'hub'));
}
@@ -171,11 +175,8 @@ class hub_selector_form extends moodleform {
$unlistedurl = $this->_form->_submitValues['unlistedurl'];
if (!empty($unlistedurl)) {
$unlistedurltotest = clean_param($unlistedurl, PARAM_URL);
if (empty($unlistedurltotest)) {
$errors['unlistedurl'] = get_string('badurlformat', 'hub');
}
if (empty($unlistedurl)) {
$errors['unlistedurl'] = get_string('badurlformat', 'hub');
}
return $errors;
@@ -203,7 +204,7 @@ class site_registration_form extends moodleform {
$cleanhuburl = clean_param($huburl, PARAM_ALPHANUMEXT);
$sitename = get_config('hub', 'site_name_' . $cleanhuburl);
if ($sitename === false) {
$sitename = format_string($site->fullname, true, array('context' => get_context_instance(CONTEXT_COURSE, SITEID)));
$sitename = format_string($site->fullname, true, array('context' => context_course::instance(SITEID)));
}
$sitedescription = get_config('hub', 'site_description_' . $cleanhuburl);
if ($sitedescription === false) {
@@ -243,7 +244,11 @@ class site_registration_form extends moodleform {
$postsnumber = get_config('hub', 'site_postsnumber_' . $cleanhuburl);
$questionsnumber = get_config('hub', 'site_questionsnumber_' . $cleanhuburl);
$resourcesnumber = get_config('hub', 'site_resourcesnumber_' . $cleanhuburl);
$badgesnumber = get_config('hub', 'site_badges_' . $cleanhuburl);
$issuedbadgesnumber = get_config('hub', 'site_issuedbadges_' . $cleanhuburl);
$mediancoursesize = get_config('hub', 'site_mediancoursesize_' . $cleanhuburl);
$participantnumberaveragecfg = get_config('hub', 'site_participantnumberaverage_' . $cleanhuburl);
$modulenumberaveragecfg = get_config('hub', 'site_modulenumberaverage_' . $cleanhuburl);
//hidden parameters
$mform->addElement('hidden', 'huburl', $huburl);
@@ -270,6 +275,7 @@ class site_registration_form extends moodleform {
$options[HUB_SITELINKPUBLISHED] = $registrationmanager->get_site_privacy_string(HUB_SITELINKPUBLISHED);
$mform->addElement('select', 'privacy', get_string('siteprivacy', 'hub'), $options);
$mform->setDefault('privacy', $privacy);
$mform->setType('privacy', PARAM_ALPHA);
$mform->addHelpButton('privacy', 'privacy', 'hub');
unset($options);
@@ -303,11 +309,13 @@ class site_registration_form extends moodleform {
$countries = get_string_manager()->get_list_of_countries();
$mform->addElement('select', 'countrycode', get_string('sitecountry', 'hub'), $countries);
$mform->setDefault('countrycode', $country);
$mform->setType('countrycode', PARAM_ALPHANUMEXT);
$mform->addHelpButton('countrycode', 'sitecountry', 'hub');
$mform->addElement('text', 'geolocation', get_string('sitegeolocation', 'hub'),
array('class' => 'registration_textfield'));
$mform->setDefault('geolocation', $geolocation);
$mform->setType('geolocation', PARAM_RAW);
$mform->addHelpButton('geolocation', 'sitegeolocation', 'hub');
$mform->addElement('text', 'contactname', get_string('siteadmin', 'hub'),
@@ -325,7 +333,7 @@ class site_registration_form extends moodleform {
$mform->addElement('text', 'contactemail', get_string('siteemail', 'hub'),
array('class' => 'registration_textfield'));
$mform->addRule('contactemail', $strrequired, 'required', null, 'client');
$mform->setType('contactemail', PARAM_TEXT);
$mform->setType('contactemail', PARAM_EMAIL);
$mform->setDefault('contactemail', $contactemail);
$mform->addHelpButton('contactemail', 'siteemail', 'hub');
@@ -334,6 +342,7 @@ class site_registration_form extends moodleform {
$options[1] = get_string("registrationcontactyes");
$mform->addElement('select', 'contactable', get_string('siteregistrationcontact', 'hub'), $options);
$mform->setDefault('contactable', $contactable);
$mform->setType('contactable', PARAM_INT);
$mform->addHelpButton('contactable', 'siteregistrationcontact', 'hub');
unset($options);
@@ -342,6 +351,7 @@ class site_registration_form extends moodleform {
$options[1] = get_string("registrationyes");
$mform->addElement('select', 'emailalert', get_string('siteregistrationemail', 'hub'), $options);
$mform->setDefault('emailalert', $emailalert);
$mform->setType('emailalert', PARAM_INT);
$mform->addHelpButton('emailalert', 'siteregistrationemail', 'hub');
unset($options);
@@ -372,80 +382,111 @@ class site_registration_form extends moodleform {
require_once($CFG->dirroot . "/course/lib.php");
$participantnumberaverage = number_format(average_number_of_participants(), 2);
$modulenumberaverage = number_format(average_number_of_courses_modules(), 2);
require_once($CFG->libdir . '/badgeslib.php');
$badges = $DB->count_records_select('badge', 'status <> ' . BADGE_STATUS_ARCHIVED);
$issuedbadges = $DB->count_records('badge_issued');
if (HUB_MOODLEORGHUBURL != $huburl) {
$mform->addElement('checkbox', 'courses', get_string('sendfollowinginfo', 'hub'),
" " . get_string('coursesnumber', 'hub', $coursecount));
$mform->setDefault('courses', true);
$mform->setDefault('courses', $coursesnumber != -1);
$mform->setType('courses', PARAM_INT);
$mform->addHelpButton('courses', 'sendfollowinginfo', 'hub');
$mform->addElement('checkbox', 'users', '',
" " . get_string('usersnumber', 'hub', $usercount));
$mform->setDefault('users', true);
$mform->setDefault('users', $usersnumber != -1);
$mform->setType('users', PARAM_INT);
$mform->addElement('checkbox', 'roleassignments', '',
" " . get_string('roleassignmentsnumber', 'hub', $roleassigncount));
$mform->setDefault('roleassignments', true);
$mform->setDefault('roleassignments', $roleassignmentsnumber != -1);
$mform->setType('roleassignments', PARAM_INT);
$mform->addElement('checkbox', 'posts', '',
" " . get_string('postsnumber', 'hub', $postcount));
$mform->setDefault('posts', true);
$mform->setDefault('posts', $postsnumber != -1);
$mform->setType('posts', PARAM_INT);
$mform->addElement('checkbox', 'questions', '',
" " . get_string('questionsnumber', 'hub', $questioncount));
$mform->setDefault('questions', true);
$mform->setDefault('questions', $questionsnumber != -1);
$mform->setType('questions', PARAM_INT);
$mform->addElement('checkbox', 'resources', '',
" " . get_string('resourcesnumber', 'hub', $resourcecount));
$mform->setDefault('resources', true);
$mform->setDefault('resources', $resourcesnumber != -1);
$mform->setType('resources', PARAM_INT);
$mform->addElement('checkbox', 'badges', '',
" " . get_string('badgesnumber', 'hub', $badges));
$mform->setDefault('badges', $badgesnumber != -1);
$mform->setType('resources', PARAM_INT);
$mform->addElement('checkbox', 'issuedbadges', '',
" " . get_string('issuedbadgesnumber', 'hub', $issuedbadges));
$mform->setDefault('issuedbadges', $issuedbadgesnumber != -1);
$mform->setType('resources', PARAM_INT);
$mform->addElement('checkbox', 'participantnumberaverage', '',
" " . get_string('participantnumberaverage', 'hub', $participantnumberaverage));
$mform->setDefault('participantnumberaverage', true);
$mform->setDefault('participantnumberaverage', $participantnumberaveragecfg != -1);
$mform->setType('participantnumberaverage', PARAM_FLOAT);
$mform->addElement('checkbox', 'modulenumberaverage', '',
" " . get_string('modulenumberaverage', 'hub', $modulenumberaverage));
$mform->setDefault('modulenumberaverage', true);
$mform->setDefault('modulenumberaverage', $modulenumberaveragecfg != -1);
$mform->setType('modulenumberaverage', PARAM_FLOAT);
} else {
$mform->addElement('static', 'courseslabel', get_string('sendfollowinginfo', 'hub'),
" " . get_string('coursesnumber', 'hub', $coursecount));
$mform->addElement('hidden', 'courses', true);
$mform->setType('courses', PARAM_FLOAT);
$mform->addElement('hidden', 'courses', 1);
$mform->setType('courses', PARAM_INT);
$mform->addHelpButton('courseslabel', 'sendfollowinginfo', 'hub');
$mform->addElement('static', 'userslabel', '',
" " . get_string('usersnumber', 'hub', $usercount));
$mform->addElement('hidden', 'users', true);
$mform->setType('users', PARAM_FLOAT);
$mform->addElement('hidden', 'users', 1);
$mform->setType('users', PARAM_INT);
$mform->addElement('static', 'roleassignmentslabel', '',
" " . get_string('roleassignmentsnumber', 'hub', $roleassigncount));
$mform->addElement('hidden', 'roleassignments', true);
$mform->setType('roleassignments', PARAM_FLOAT);
$mform->addElement('hidden', 'roleassignments', 1);
$mform->setType('roleassignments', PARAM_INT);
$mform->addElement('static', 'postslabel', '',
" " . get_string('postsnumber', 'hub', $postcount));
$mform->addElement('hidden', 'posts', true);
$mform->setType('posts', PARAM_FLOAT);
$mform->addElement('hidden', 'posts', 1);
$mform->setType('posts', PARAM_INT);
$mform->addElement('static', 'questionslabel', '',
" " . get_string('questionsnumber', 'hub', $questioncount));
$mform->addElement('hidden', 'questions', true);
$mform->setType('questions', PARAM_FLOAT);
$mform->addElement('hidden', 'questions', 1);
$mform->setType('questions', PARAM_INT);
$mform->addElement('static', 'resourceslabel', '',
" " . get_string('resourcesnumber', 'hub', $resourcecount));
$mform->addElement('hidden', 'resources', true);
$mform->setType('resources', PARAM_FLOAT);
$mform->addElement('hidden', 'resources', 1);
$mform->setType('resources', PARAM_INT);
$mform->addElement('static', 'badgeslabel', '',
" " . get_string('badgesnumber', 'hub', $badges));
$mform->addElement('hidden', 'badges', 1);
$mform->setType('badges', PARAM_INT);
$mform->addElement('static', 'issuedbadgeslabel', '',
" " . get_string('issuedbadgesnumber', 'hub', $issuedbadges));
$mform->addElement('hidden', 'issuedbadges', true);
$mform->setType('issuedbadges', PARAM_INT);
$mform->addElement('static', 'participantnumberaveragelabel', '',
" " . get_string('participantnumberaverage', 'hub', $participantnumberaverage));
$mform->addElement('hidden', 'participantnumberaverage', true);
$mform->addElement('hidden', 'participantnumberaverage', 1);
$mform->setType('participantnumberaverage', PARAM_FLOAT);
$mform->addElement('static', 'modulenumberaveragelabel', '',
" " . get_string('modulenumberaverage', 'hub', $modulenumberaverage));
$mform->addElement('hidden', 'modulenumberaverage', true);
$mform->addElement('hidden', 'modulenumberaverage', 1);
$mform->setType('modulenumberaverage', PARAM_FLOAT);
}
+14
View File
@@ -247,6 +247,20 @@ class registration_manager {
$resourcecount = $DB->count_records('resource');
}
$siteinfo['resources'] = $resourcecount;
// Badge statistics.
require_once($CFG->libdir . '/badgeslib.php');
if (get_config('hub', 'site_badges_' . $cleanhuburl) == -1) {
$badges = -1;
} else {
$badges = $DB->count_records_select('badge', 'status <> ' . BADGE_STATUS_ARCHIVED);
}
$siteinfo['badges'] = $badges;
if (get_config('hub', 'site_issuedbadges_' . $cleanhuburl) == -1) {
$issuedbadges = -1;
} else {
$issuedbadges = $DB->count_records('badge_issued');
}
$siteinfo['issuedbadges'] = $issuedbadges;
//TODO
require_once($CFG->dirroot . "/course/lib.php");
if (get_config('hub', 'site_participantnumberaverage_' . $cleanhuburl) == -1) {
+29 -1
View File
@@ -62,7 +62,18 @@ $siteregistrationform = new site_registration_form('',
$fromform = $siteregistrationform->get_data();
if (!empty($fromform) and confirm_sesskey()) {
//save the settings
// Set to -1 all optional data marked as "don't send" by the admin.
// The function get_site_info() will not calculate the optional data if config is set to -1.
$inputnames = array('courses', 'users', 'roleassignments', 'posts', 'questions', 'resources',
'badges', 'issuedbadges', 'modulenumberaverage', 'participantnumberaverage');
foreach ($inputnames as $inputname) {
if (empty($fromform->{$inputname})) {
$fromform->{$inputname} = -1;
}
}
// Save the settings.
$cleanhuburl = clean_param($huburl, PARAM_ALPHANUMEXT);
set_config('site_name_' . $cleanhuburl, $fromform->name, 'hub');
set_config('site_description_' . $cleanhuburl, $fromform->description, 'hub');
@@ -84,6 +95,8 @@ if (!empty($fromform) and confirm_sesskey()) {
set_config('site_postsnumber_' . $cleanhuburl, $fromform->posts, 'hub');
set_config('site_questionsnumber_' . $cleanhuburl, $fromform->questions, 'hub');
set_config('site_resourcesnumber_' . $cleanhuburl, $fromform->resources, 'hub');
set_config('site_badges_' . $cleanhuburl, $fromform->badges, 'hub');
set_config('site_issuedbadges_' . $cleanhuburl, $fromform->issuedbadges, 'hub');
set_config('site_modulenumberaverage_' . $cleanhuburl, $fromform->modulenumberaverage, 'hub');
set_config('site_participantnumberaverage_' . $cleanhuburl, $fromform->participantnumberaverage, 'hub');
}
@@ -113,6 +126,21 @@ if ($update and confirm_sesskey()) {
if (!empty($fromform) and empty($update) and confirm_sesskey()) {
if (!empty($fromform) and confirm_sesskey()) { // if the register button has been clicked
// Retrieve the optional info (specially course number, user number, module number average...).
$siteinfo = $registrationmanager->get_site_info($huburl);
$fromform->courses = $siteinfo['courses'];
$fromform->users = $siteinfo['users'];
$fromform->enrolments = $siteinfo['enrolments'];
$fromform->posts = $siteinfo['posts'];
$fromform->questions = $siteinfo['questions'];
$fromform->resources = $siteinfo['resources'];
$fromform->badges = $siteinfo['badges'];
$fromform->issuedbadges = $siteinfo['issuedbadges'];
$fromform->modulenumberaverage = $siteinfo['modulenumberaverage'];
$fromform->participantnumberaverage = $siteinfo['participantnumberaverage'];
$fromform->street = $siteinfo['street'];
$params = (array) $fromform; //we are using the form input as the redirection parameters (token, url and name)
$unconfirmedhub = $registrationmanager->get_unconfirmedhub($huburl);
+2 -2
View File
@@ -38,7 +38,7 @@ class core_register_renderer extends plugin_renderer_base {
public function moodleorg_registration_message() {
$moodleorgurl = html_writer::link('http://moodle.org', 'Moodle.org');
$moodleorgstatsurl = html_writer::link('http://moodle.org/stats', get_string('statsmoodleorg', 'admin'));
$moochurl = html_writer::link(HUB_MOODLEORGHUBURL, 'MOOCH');
$moochurl = html_writer::link(HUB_MOODLEORGHUBURL, get_string('moodleorghubname', 'admin'));
$moodleorgregmsg = get_string('registermoodleorg', 'admin', $moodleorgurl);
$items = array(get_string('registermoodleorgli1', 'admin'),
get_string('registermoodleorgli2', 'admin', $moodleorgstatsurl),
@@ -92,4 +92,4 @@ class core_register_renderer extends plugin_renderer_base {
return html_writer::table($table);
}
}
}
+302 -50
View File
@@ -68,7 +68,7 @@ class core_admin_renderer extends plugin_renderer_base {
$output .= $this->header();
$output .= $this->heading(get_string('upgradestalefiles', 'admin'));
$output .= $this->box_start('generalbox', 'notice');
$output .= get_string('upgradestalefilesinfo', 'admin', get_docs_url('Upgrading'));
$output .= format_text(get_string('upgradestalefilesinfo', 'admin', get_docs_url('Upgrading')), FORMAT_MARKDOWN);
$output .= html_writer::empty_tag('br');
$output .= html_writer::tag('div', $this->single_button($this->page->url, get_string('reload'), 'get'), array('class' => 'buttons'));
$output .= $this->box_end();
@@ -234,6 +234,62 @@ class core_admin_renderer extends plugin_renderer_base {
return $output;
}
/**
* Prints a page with a summary of plugin deployment to be confirmed.
*
* @param available_update_deployer $deployer
* @param array $data deployer's data package as returned by {@link available_update_deployer::submitted_data()}
* @return string
*/
public function upgrade_plugin_confirm_deploy_page(available_update_deployer $deployer, array $data) {
if (!$deployer->initialized()) {
throw new coding_exception('Unable to render a page for non-initialized deployer.');
}
if (empty($data['updateinfo'])) {
throw new coding_exception('Missing required data component.');
}
$updateinfo = $data['updateinfo'];
$output = '';
$output .= $this->header();
$output .= $this->container_start('generalbox updateplugin', 'notice');
$a = new stdClass();
if (get_string_manager()->string_exists('pluginname', $updateinfo->component)) {
$a->name = get_string('pluginname', $updateinfo->component);
} else {
$a->name = $updateinfo->component;
}
if (isset($updateinfo->release)) {
$a->version = $updateinfo->release . ' (' . $updateinfo->version . ')';
} else {
$a->version = $updateinfo->version;
}
$a->url = $updateinfo->download;
$output .= $this->output->heading(get_string('updatepluginconfirm', 'core_plugin'));
$output .= $this->output->container(format_text(get_string('updatepluginconfirminfo', 'core_plugin', $a)), 'updatepluginconfirminfo');
$output .= $this->output->container(get_string('updatepluginconfirmwarning', 'core_plugin', 'updatepluginconfirmwarning'));
if ($repotype = $deployer->plugin_external_source($data['updateinfo'])) {
$output .= $this->output->container(get_string('updatepluginconfirmexternal', 'core_plugin', $repotype), 'updatepluginconfirmexternal');
}
$widget = $deployer->make_execution_widget($data['updateinfo'], $data['returnurl']);
$output .= $this->output->render($widget);
$output .= $this->output->single_button($data['callerurl'], get_string('cancel', 'core'), 'get');
$output .= $this->container_end();
$output .= $this->footer();
return $output;
}
/**
* Display the admin notifications page.
* @param int $maturity
@@ -278,22 +334,30 @@ class core_admin_renderer extends plugin_renderer_base {
/**
* Display the plugin management page (admin/plugins.php).
*
* The filtering options array may contain following items:
* bool contribonly - show only contributed extensions
* bool updatesonly - show only plugins with an available update
*
* @param plugin_manager $pluginman
* @param available_update_checker $checker
* @param array $options filtering options
* @return string HTML to output.
*/
public function plugin_management_page(plugin_manager $pluginman, available_update_checker $checker) {
public function plugin_management_page(plugin_manager $pluginman, available_update_checker $checker, array $options = array()) {
global $CFG;
$output = '';
$output .= $this->header();
$output .= $this->heading(get_string('pluginsoverview', 'core_admin'));
$output .= $this->plugins_overview_panel($pluginman);
$output .= $this->plugins_overview_panel($pluginman, $options);
if (empty($CFG->disableupdatenotifications)) {
$output .= $this->container_start('checkforupdates');
$output .= $this->single_button(new moodle_url($this->page->url, array('fetchremote' => 1)), get_string('checkforupdates', 'core_plugin'));
$output .= $this->single_button(
new moodle_url($this->page->url, array_merge($options, array('fetchremote' => 1))),
get_string('checkforupdates', 'core_plugin')
);
if ($timefetched = $checker->get_last_timefetched()) {
$output .= $this->container(get_string('checkforupdateslast', 'core_plugin',
userdate($timefetched, get_string('strftimedatetime', 'core_langconfig'))));
@@ -301,12 +365,94 @@ class core_admin_renderer extends plugin_renderer_base {
$output .= $this->container_end();
}
$output .= $this->box($this->plugins_control_panel($pluginman), 'generalbox');
$output .= $this->box($this->plugins_control_panel($pluginman, $options), 'generalbox');
$output .= $this->footer();
return $output;
}
/**
* Display a page to confirm the plugin uninstallation.
*
* @param plugin_manager $pluginman
* @param plugin_info $pluginfo
* @param moodle_url $continueurl URL to continue after confirmation
* @return string
*/
public function plugin_uninstall_confirm_page(plugin_manager $pluginman, plugininfo_base $pluginfo, moodle_url $continueurl) {
$output = '';
$pluginname = $pluginman->plugin_name($pluginfo->component);
$output .= $this->output->header();
$output .= $this->output->heading(get_string('uninstalling', 'core_plugin', array('name' => $pluginname)));
$output .= $this->output->confirm(get_string('uninstallconfirm', 'core_plugin', array('name' => $pluginname)),
$continueurl, $this->page->url);
$output .= $this->output->footer();
return $output;
}
/**
* Display a page with results of plugin uninstallation and offer removal of plugin files.
*
* @param plugin_manager $pluginman
* @param plugin_info $pluginfo
* @param progress_trace_buffer $progress
* @param moodle_url $continueurl URL to continue to remove the plugin folder
* @return string
*/
public function plugin_uninstall_results_removable_page(plugin_manager $pluginman, plugininfo_base $pluginfo,
progress_trace_buffer $progress, moodle_url $continueurl) {
$output = '';
$pluginname = $pluginman->plugin_name($pluginfo->component);
$output .= $this->output->header();
$output .= $this->output->heading(get_string('uninstalling', 'core_plugin', array('name' => $pluginname)));
$output .= $this->output->box($progress->get_buffer(), 'generalbox uninstallresultmessage');
$confirm = $this->output->container(get_string('uninstalldeleteconfirm', 'core_plugin',
array('name' => $pluginname, 'rootdir' => $pluginfo->rootdir)), 'uninstalldeleteconfirm');
if ($repotype = $pluginman->plugin_external_source($pluginfo->component)) {
$confirm .= $this->output->container(get_string('uninstalldeleteconfirmexternal', 'core_plugin', $repotype),
'uninstalldeleteconfirmexternal');
}
$output .= $this->output->confirm($confirm, $continueurl, $this->page->url);
$output .= $this->output->footer();
return $output;
}
/**
* Display a page with results of plugin uninstallation and inform about the need to remove plugin files manually.
*
* @param plugin_manager $pluginman
* @param plugin_info $pluginfo
* @param progress_trace_buffer $progress
* @return string
*/
public function plugin_uninstall_results_page(plugin_manager $pluginman, plugininfo_base $pluginfo, progress_trace_buffer $progress) {
$output = '';
$pluginname = $pluginman->plugin_name($pluginfo->component);
$output .= $this->output->header();
$output .= $this->output->heading(get_string('uninstalling', 'core_plugin', array('name' => $pluginname)));
$output .= $this->output->box($progress->get_buffer(), 'generalbox uninstallresultmessage');
$output .= $this->output->box(get_string('uninstalldelete', 'core_plugin',
array('name' => $pluginname, 'rootdir' => $pluginfo->rootdir)), 'generalbox uninstalldelete');
$output .= $this->output->continue_button($this->page->url);
$output .= $this->output->footer();
return $output;
}
/**
* Display the plugin management page (admin/environment.php).
* @param array $versions
@@ -470,7 +616,7 @@ class core_admin_renderer extends plugin_renderer_base {
$copyrighttext = '<a href="http://moodle.org/">Moodle</a> '.
'<a href="http://docs.moodle.org/dev/Releases" title="'.$CFG->version.'">'.$CFG->release.'</a><br />'.
'Copyright &copy; 1999 onwards, Martin Dougiamas<br />'.
'and <a href="http://docs.moodle.org/dev/Credits">many other contributors</a>.<br />'.
'and <a href="http://moodle.org/dev">many other contributors</a>.<br />'.
'<a href="http://docs.moodle.org/dev/License">GNU Public License</a>';
//////////////////////////////////////////////////////////////////////////////////////////////////
@@ -495,21 +641,39 @@ class core_admin_renderer extends plugin_renderer_base {
}
/**
* Displays the info about available Moodle updates
* Displays the info about available Moodle core and plugin updates
*
* @param array|null $updates array of available_update_info objects or null
* The structure of the $updates param has changed since 2.4. It contains not only updates
* for the core itself, but also for all other installed plugins.
*
* @param array|null $updates array of (string)component => array of available_update_info objects or null
* @param int|null $fetch timestamp of the most recent updates fetch or null (unknown)
* @return string
*/
protected function available_updates($updates, $fetch) {
$updateinfo = $this->box_start('generalbox adminwarning availableupdatesinfo');
$someupdateavailable = false;
if (is_array($updates)) {
$updateinfo .= $this->heading(get_string('updateavailable', 'core_admin'), 3);
foreach ($updates as $update) {
$updateinfo .= $this->moodle_available_update_info($update);
if (is_array($updates['core'])) {
$someupdateavailable = true;
$updateinfo .= $this->heading(get_string('updateavailable', 'core_admin'), 3);
foreach ($updates['core'] as $update) {
$updateinfo .= $this->moodle_available_update_info($update);
}
}
} else {
unset($updates['core']);
// If something has left in the $updates array now, it is updates for plugins.
if (!empty($updates)) {
$someupdateavailable = true;
$updateinfo .= $this->heading(get_string('updateavailableforplugin', 'core_admin'), 3);
$pluginsoverviewurl = new moodle_url('/admin/plugins.php', array('updatesonly' => 1));
$updateinfo .= $this->container(get_string('pluginsoverviewsee', 'core_admin',
array('url' => $pluginsoverviewurl->out())));
}
}
if (!$someupdateavailable) {
$now = time();
if ($fetch and ($fetch <= $now) and ($now - $fetch < HOURSECS)) {
$updateinfo .= $this->heading(get_string('updateavailablenot', 'core_admin'), 3);
@@ -517,7 +681,8 @@ class core_admin_renderer extends plugin_renderer_base {
}
$updateinfo .= $this->container_start('checkforupdates');
$updateinfo .= $this->single_button(new moodle_url($this->page->url, array('fetchupdates' => 1)), get_string('checkforupdates', 'core_plugin'));
$fetchurl = new moodle_url('/admin/index.php', array('fetchupdates' => 1, 'sesskey' => sesskey(), 'cache' => 1));
$updateinfo .= $this->single_button($fetchurl, get_string('checkforupdates', 'core_plugin'));
if ($fetch) {
$updateinfo .= $this->container(get_string('checkforupdateslast', 'core_plugin',
userdate($fetch, get_string('strftimedatetime', 'core_langconfig'))));
@@ -609,7 +774,7 @@ class core_admin_renderer extends plugin_renderer_base {
function upgrade_reload($url) {
return html_writer::empty_tag('br') .
html_writer::tag('div',
html_writer::link($url, $this->pix_icon('i/reload', '') .
html_writer::link($url, $this->pix_icon('i/reload', '', '', array('class' => 'icon icon-pre')) .
get_string('reload'), array('title' => get_string('reload'))),
array('class' => 'continuebutton')) . html_writer::empty_tag('br');
}
@@ -683,7 +848,7 @@ class core_admin_renderer extends plugin_renderer_base {
$row = new html_table_row();
$row->attributes['class'] = 'type-' . $plugin->type . ' name-' . $plugin->type . '_' . $plugin->name;
if ($this->page->theme->resolve_image_location('icon', $plugin->type . '_' . $plugin->name)) {
if ($this->page->theme->resolve_image_location('icon', $plugin->type . '_' . $plugin->name, null)) {
$icon = $this->output->pix_icon('icon', '', $plugin->type . '_' . $plugin->name, array('class' => 'smallicon pluginicon'));
} else {
$icon = $this->output->pix_icon('spacer', '', 'moodle', array('class' => 'smallicon pluginicon noicon'));
@@ -732,7 +897,7 @@ class core_admin_renderer extends plugin_renderer_base {
continue;
}
} else if ($isstandard and $statusisboring and $dependenciesok and empty($availableupdates)) {
} else if ($statusisboring and $dependenciesok and empty($availableupdates)) {
// no change is going to happen to the plugin - display it only
// if the user wants to see the full list
if (empty($options['full'])) {
@@ -836,9 +1001,11 @@ class core_admin_renderer extends plugin_renderer_base {
} else {
$str = 'otherplugin';
}
$componenturl = new moodle_url('https://moodle.org/plugins/view.php?plugin='.$component);
$componenturl = html_writer::tag('a', $component, array('href' => $componenturl->out()));
$requires[] = html_writer::tag('li',
get_string($str, 'core_plugin',
array('component' => $component, 'version' => $requiredversion)),
array('component' => $componenturl, 'version' => $requiredversion)),
array('class' => $class));
}
@@ -852,9 +1019,10 @@ class core_admin_renderer extends plugin_renderer_base {
* Prints an overview about the plugins - number of installed, number of extensions etc.
*
* @param plugin_manager $pluginman provides information about the plugins
* @param array $options filtering options
* @return string as usually
*/
public function plugins_overview_panel(plugin_manager $pluginman) {
public function plugins_overview_panel(plugin_manager $pluginman, array $options = array()) {
global $CFG;
$plugininfo = $pluginman->get_plugins();
@@ -880,14 +1048,49 @@ class core_admin_renderer extends plugin_renderer_base {
}
$info = array();
$filter = array();
$somefilteractive = false;
$info[] = html_writer::tag('span', get_string('numtotal', 'core_plugin', $numtotal), array('class' => 'info total'));
$info[] = html_writer::tag('span', get_string('numdisabled', 'core_plugin', $numdisabled), array('class' => 'info disabled'));
$info[] = html_writer::tag('span', get_string('numextension', 'core_plugin', $numextension), array('class' => 'info extension'));
if ($numextension > 0) {
if (empty($options['contribonly'])) {
$filter[] = html_writer::link(
new moodle_url($this->page->url, array('contribonly' => 1)),
get_string('filtercontribonly', 'core_plugin'),
array('class' => 'filter-item show-contribonly')
);
} else {
$filter[] = html_writer::tag('span', get_string('filtercontribonlyactive', 'core_plugin'),
array('class' => 'filter-item active show-contribonly'));
$somefilteractive = true;
}
}
if ($numupdatable > 0) {
$info[] = html_writer::tag('span', get_string('numupdatable', 'core_plugin', $numupdatable), array('class' => 'info updatable'));
if (empty($options['updatesonly'])) {
$filter[] = html_writer::link(
new moodle_url($this->page->url, array('updatesonly' => 1)),
get_string('filterupdatesonly', 'core_plugin'),
array('class' => 'filter-item show-updatesonly')
);
} else {
$filter[] = html_writer::tag('span', get_string('filterupdatesonlyactive', 'core_plugin'),
array('class' => 'filter-item active show-updatesonly'));
$somefilteractive = true;
}
}
if ($somefilteractive) {
$filter[] = html_writer::link($this->page->url, get_string('filterall', 'core_plugin'), array('class' => 'filter-item show-all'));
}
return $this->output->box(implode(html_writer::tag('span', ' ', array('class' => 'separator')), $info), '', 'plugins-overview-panel');
$output = $this->output->box(implode(html_writer::tag('span', ' ', array('class' => 'separator')), $info), '', 'plugins-overview-panel');
if (!empty($filter)) {
$output .= $this->output->box(implode(html_writer::tag('span', ' ', array('class' => 'separator')), $filter), '', 'plugins-overview-filter');
}
return $output;
}
/**
@@ -896,13 +1099,43 @@ class core_admin_renderer extends plugin_renderer_base {
* This default implementation renders all plugins into one big table.
*
* @param plugin_manager $pluginman provides information about the plugins.
* @param array $options filtering options
* @return string HTML code
*/
public function plugins_control_panel(plugin_manager $pluginman) {
public function plugins_control_panel(plugin_manager $pluginman, array $options = array()) {
global $CFG;
$plugininfo = $pluginman->get_plugins();
// Filter the list of plugins according the options.
if (!empty($options['updatesonly'])) {
$updateable = array();
foreach ($plugininfo as $plugintype => $pluginnames) {
foreach ($pluginnames as $pluginname => $pluginfo) {
if (!empty($pluginfo->availableupdates)) {
foreach ($pluginfo->availableupdates as $pluginavailableupdate) {
if ($pluginavailableupdate->version > $pluginfo->versiondisk) {
$updateable[$plugintype][$pluginname] = $pluginfo;
}
}
}
}
}
$plugininfo = $updateable;
}
if (!empty($options['contribonly'])) {
$contribs = array();
foreach ($plugininfo as $plugintype => $pluginnames) {
foreach ($pluginnames as $pluginname => $pluginfo) {
if (!$pluginfo->is_standard()) {
$contribs[$plugintype][$pluginname] = $pluginfo;
}
}
}
$plugininfo = $contribs;
}
if (empty($plugininfo)) {
return '';
}
@@ -917,22 +1150,23 @@ class core_admin_renderer extends plugin_renderer_base {
get_string('actions', 'core_plugin'),
get_string('notes','core_plugin'),
);
$table->headspan = array(1, 1, 1, 1, 2, 1);
$table->colclasses = array(
'pluginname', 'source', 'version', 'availability', 'actions', 'notes'
'pluginname', 'source', 'version', 'availability', 'settings', 'uninstall', 'notes'
);
foreach ($plugininfo as $type => $plugins) {
$header = new html_table_cell($pluginman->plugintype_name_plural($type));
$header->header = true;
$header->colspan = count($table->head);
$header->colspan = array_sum($table->headspan);
$header = new html_table_row(array($header));
$header->attributes['class'] = 'plugintypeheader type-' . $type;
$table->data[] = $header;
if (empty($plugins)) {
$msg = new html_table_cell(get_string('noneinstalled', 'core_plugin'));
$msg->colspan = count($table->head);
$msg->colspan = array_sum($table->headspan);
$row = new html_table_row(array($msg));
$row->attributes['class'] .= 'msg msg-noneinstalled';
$table->data[] = $row;
@@ -944,17 +1178,20 @@ class core_admin_renderer extends plugin_renderer_base {
$row->attributes['class'] = 'type-' . $plugin->type . ' name-' . $plugin->type . '_' . $plugin->name;
if ($this->page->theme->resolve_image_location('icon', $plugin->type . '_' . $plugin->name)) {
$icon = $this->output->pix_icon('icon', '', $plugin->type . '_' . $plugin->name, array('class' => 'smallicon pluginicon'));
$icon = $this->output->pix_icon('icon', '', $plugin->type . '_' . $plugin->name, array('class' => 'icon pluginicon'));
} else {
$icon = $this->output->pix_icon('spacer', '', 'moodle', array('class' => 'smallicon pluginicon noicon'));
$icon = $this->output->pix_icon('spacer', '', 'moodle', array('class' => 'icon pluginicon noicon'));
}
if ($plugin->get_status() === plugin_manager::PLUGIN_STATUS_MISSING) {
$msg = html_writer::tag('span', get_string('status_missing', 'core_plugin'), array('class' => 'notifyproblem'));
$row->attributes['class'] .= ' missingfromdisk';
$status = $plugin->get_status();
$row->attributes['class'] .= ' status-'.$status;
if ($status === plugin_manager::PLUGIN_STATUS_MISSING) {
$msg = html_writer::tag('span', get_string('status_missing', 'core_plugin'), array('class' => 'statusmsg'));
} else if ($status === plugin_manager::PLUGIN_STATUS_NEW) {
$msg = html_writer::tag('span', get_string('status_new', 'core_plugin'), array('class' => 'statusmsg'));
} else {
$msg = '';
}
$pluginname = html_writer::tag('div', $icon . ' ' . $plugin->displayname . ' ' . $msg, array('class' => 'displayname')).
$pluginname = html_writer::tag('div', $icon . '' . $plugin->displayname . ' ' . $msg, array('class' => 'displayname')).
html_writer::tag('div', $plugin->component, array('class' => 'componentname'));
$pluginname = new html_table_cell($pluginname);
@@ -973,27 +1210,27 @@ class core_admin_renderer extends plugin_renderer_base {
$availability = new html_table_cell('');
} else if ($isenabled) {
$row->attributes['class'] .= ' enabled';
$icon = $this->output->pix_icon('i/hide', get_string('pluginenabled', 'core_plugin'));
$availability = new html_table_cell($icon . ' ' . get_string('pluginenabled', 'core_plugin'));
$availability = new html_table_cell(get_string('pluginenabled', 'core_plugin'));
} else {
$row->attributes['class'] .= ' disabled';
$icon = $this->output->pix_icon('i/show', get_string('plugindisabled', 'core_plugin'));
$availability = new html_table_cell($icon . ' ' . get_string('plugindisabled', 'core_plugin'));
$availability = new html_table_cell(get_string('plugindisabled', 'core_plugin'));
}
$actions = array();
$settingsurl = $plugin->get_settings_url();
if (!is_null($settingsurl)) {
$actions[] = html_writer::link($settingsurl, get_string('settings', 'core_plugin'), array('class' => 'settings'));
$settings = html_writer::link($settingsurl, get_string('settings', 'core_plugin'), array('class' => 'settings'));
} else {
$settings = '';
}
$settings = new html_table_cell($settings);
$uninstallurl = $plugin->get_uninstall_url();
if (!is_null($uninstallurl)) {
$actions[] = html_writer::link($uninstallurl, get_string('uninstall', 'core_plugin'), array('class' => 'uninstall'));
if ($pluginman->can_uninstall_plugin($plugin->component)) {
$uninstallurl = $plugin->get_uninstall_url();
$uninstall = html_writer::link($uninstallurl, get_string('uninstall', 'core_plugin'));
} else {
$uninstall = '';
}
$actions = new html_table_cell(implode(html_writer::tag('span', ' ', array('class' => 'separator')), $actions));
$uninstall = new html_table_cell($uninstall);
$requriedby = $pluginman->other_plugins_that_require($plugin->component);
if ($requriedby) {
@@ -1013,7 +1250,7 @@ class core_admin_renderer extends plugin_renderer_base {
$notes = new html_table_cell($requiredby.$updateinfo);
$row->cells = array(
$pluginname, $source, $version, $availability, $actions, $notes
$pluginname, $source, $version, $availability, $settings, $uninstall, $notes
);
$table->data[] = $row;
}
@@ -1058,6 +1295,23 @@ class core_admin_renderer extends plugin_renderer_base {
$box = $this->output->box_start($boxclasses);
$box .= html_writer::tag('div', get_string('updateavailable', 'core_plugin', $updateinfo->version), array('class' => 'version'));
$box .= $this->output->box(implode(html_writer::tag('span', ' ', array('class' => 'separator')), $info), '');
$deployer = available_update_deployer::instance();
if ($deployer->initialized()) {
$impediments = $deployer->deployment_impediments($updateinfo);
if (empty($impediments)) {
$widget = $deployer->make_confirm_widget($updateinfo);
$box .= $this->output->render($widget);
} else {
if (isset($impediments['notwritable'])) {
$box .= $this->output->help_icon('notwritable', 'core_plugin', get_string('notwritable', 'core_plugin'));
}
if (isset($impediments['notdownloadable'])) {
$box .= $this->output->help_icon('notdownloadable', 'core_plugin', get_string('notdownloadable', 'core_plugin'));
}
}
}
$box .= $this->output->box_end();
return $box;
@@ -1082,10 +1336,9 @@ class core_admin_renderer extends plugin_renderer_base {
get_string('report'),
get_string('status'),
);
$servertable->align = array('center', 'center', 'left', 'center');
$servertable->wrap = array('nowrap', '', '', 'nowrap');
$servertable->size = array('10', 10, '100%', '10');
$servertable->attributes['class'] = 'environmenttable generaltable';
$servertable->colclasses = array('centeralign name', 'centeralign status', 'leftalign report', 'centeralign info');
$servertable->attributes['class'] = 'admintable environmenttable generaltable';
$servertable->id = 'serverstatus';
$serverdata = array('ok'=>array(), 'warn'=>array(), 'error'=>array());
@@ -1095,10 +1348,9 @@ class core_admin_renderer extends plugin_renderer_base {
get_string('report'),
get_string('status'),
);
$othertable->align = array('center', 'left', 'center');
$othertable->wrap = array('', '', 'nowrap');
$othertable->size = array(10, '100%', '10');
$othertable->attributes['class'] = 'environmenttable generaltable';
$othertable->colclasses = array('aligncenter info', 'alignleft report', 'aligncenter status');
$othertable->attributes['class'] = 'admintable environmenttable generaltable';
$othertable->id = 'otherserverstatus';
$otherdata = array('ok'=>array(), 'warn'=>array(), 'error'=>array());
+22 -12
View File
@@ -19,7 +19,7 @@ require_once($CFG->dirroot . '/repository/lib.php');
require_once($CFG->libdir . '/adminlib.php');
$repository = optional_param('repos', '', PARAM_ALPHANUMEXT);
$action = optional_param('action', '', PARAM_ACTION);
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
$sure = optional_param('sure', '', PARAM_ALPHA);
$downloadcontents = optional_param('downloadcontents', false, PARAM_BOOL);
@@ -47,7 +47,7 @@ if ($action == 'newon') {
$visible = false;
}
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
admin_externalpage_setup($pagename);
$sesskeyurl = $CFG->wwwroot.'/'.$CFG->admin.'/repository.php?sesskey=' . sesskey();
@@ -61,6 +61,9 @@ if (!empty($action)) {
require_sesskey();
}
// Purge all caches related to repositories administration.
cache::make('core', 'plugininfo_repository')->purge();
/**
* Helper function that generates a moodle_url object
* relevant to the repository
@@ -140,8 +143,10 @@ if (($action == 'edit') || ($action == 'new')) {
$success = $repositorytype->update_options($settings);
} else {
$type = new repository_type($plugin, (array)$fromform, $visible);
$type->create();
$success = true;
if (!$repoid = $type->create()) {
$success = false;
}
$data = data_submitted();
}
if ($success) {
@@ -281,17 +286,20 @@ if (($action == 'edit') || ($action == 'new')) {
// Table to list plug-ins
$table = new html_table();
$table->head = array(get_string('name'), get_string('isactive', 'repository'), get_string('order'), $settingsstr);
$table->align = array('left', 'center', 'center', 'center', 'center');
$table->colclasses = array('leftalign', 'centeralign', 'centeralign', 'centeralign', 'centeralign');
$table->id = 'repositoriessetting';
$table->data = array();
$table->attributes['class'] = 'admintable generaltable';
// Get list of used plug-ins
$instances = repository::get_types();
if (!empty($instances)) {
$repositorytypes = repository::get_types();
if (!empty($repositorytypes)) {
// Array to store plugins being used
$alreadyplugins = array();
$totalinstances = count($instances);
$totalrepositorytypes = count($repositorytypes);
$updowncount = 1;
foreach ($instances as $i) {
foreach ($repositorytypes as $i) {
$settings = '';
$typename = $i->get_typename();
// Display edit link only if you can config the type or if it has multiple instances (e.g. has instance config)
@@ -314,9 +322,10 @@ if (($action == 'edit') || ($action == 'new')) {
$userinstances = array();
foreach ($instances as $instance) {
if ($instance->context->contextlevel == CONTEXT_COURSE) {
$repocontext = context::instance_by_id($instance->instance->contextid);
if ($repocontext->contextlevel == CONTEXT_COURSE) {
$courseinstances[] = $instance;
} else if ($instance->context->contextlevel == CONTEXT_USER) {
} else if ($repocontext->contextlevel == CONTEXT_USER) {
$userinstances[] = $instance;
}
}
@@ -352,7 +361,7 @@ if (($action == 'edit') || ($action == 'new')) {
}
$select = new single_select(repository_action_url($typename, 'repos'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . basename($typename));
$select->set_label(get_string('action'), array('class' => 'accesshide'));
// Display up/down link
$updown = '';
$spacer = $OUTPUT->spacer(array('height'=>15, 'width'=>15)); // should be done with CSS instead
@@ -364,7 +373,7 @@ if (($action == 'edit') || ($action == 'new')) {
else {
$updown .= $spacer;
}
if ($updowncount < $totalinstances) {
if ($updowncount < $totalrepositorytypes) {
$updown .= "<a href=\"$sesskeyurl&amp;action=movedown&amp;repos=".$typename."\">";
$updown .= "<img src=\"" . $OUTPUT->pix_url('t/down') . "\" alt=\"down\" /></a>";
}
@@ -389,6 +398,7 @@ if (($action == 'edit') || ($action == 'new')) {
// Check that it has not already been listed
if (!in_array($plugin, $alreadyplugins)) {
$select = new single_select(repository_action_url($plugin, 'repos'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . basename($plugin));
$select->set_label(get_string('action'), array('class' => 'accesshide'));
$table->data[] = array(get_string('pluginname', 'repository_'.$plugin), $OUTPUT->render($select), '', '');
}
}
+8 -3
View File
@@ -62,6 +62,9 @@ $return = true;
if (!empty($edit) || !empty($new)) {
if (!empty($edit)) {
$instance = repository::get_instance($edit);
if (!$instance->can_be_edited_by_user()) {
throw new repository_exception('nopermissiontoaccess', 'repository');
}
$instancetype = repository::get_type_by_id($instance->options['typeid']);
$classname = 'repository_' . $instancetype->get_typename();
$configs = $instance->get_instance_option_names();
@@ -118,10 +121,12 @@ if (!empty($edit) || !empty($new)) {
$return = true;
} else if (!empty($delete)) {
$instance = repository::get_instance($delete);
//if you try to delete an instance set as readonly, display an error message
if ($instance->readonly) {
throw new repository_exception('readonlyinstance', 'repository');
}
// If you try to delete an instance set as readonly, display an error message.
throw new repository_exception('readonlyinstance', 'repository');
} else if (!$instance->can_be_edited_by_user()) {
throw new repository_exception('nopermissiontoaccess', 'repository');
}
if ($sure) {
if ($instance->delete($downloadcontents)) {
$deletedstr = get_string('instancedeleted', 'repository');
+2 -2
View File
@@ -28,7 +28,7 @@ require_once(dirname(__FILE__) . '/../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/roles/lib.php');
$mode = required_param('mode', PARAM_ACTION);
$mode = required_param('mode', PARAM_ALPHANUMEXT);
$classformode = array(
'assign' => 'role_allow_assign_page',
'override' => 'role_allow_override_page',
@@ -41,7 +41,7 @@ if (!isset($classformode[$mode])) {
$baseurl = new moodle_url('/admin/roles/allow.php', array('mode'=>$mode));
admin_externalpage_setup('defineroles', '', array(), $baseurl);
$syscontext = get_context_instance(CONTEXT_SYSTEM);
$syscontext = context_system::instance();
require_capability('moodle/role:manage', $syscontext);
$controller = new $classformode[$mode]();
+6 -8
View File
@@ -189,7 +189,7 @@ $assignurl = new moodle_url($PAGE->url, array('roleid'=>$roleid));
<form id="assignform" method="post" action="<?php echo $assignurl ?>"><div>
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
<table summary="" class="roleassigntable generaltable generalbox boxaligncenter" cellspacing="0">
<table id="assigningrole" summary="" class="admintable roleassigntable generaltable" cellspacing="0">
<tr>
<td id="existingcell">
<p><label for="removeselect"><?php print_string('extusers', 'role'); ?></label></p>
@@ -259,7 +259,7 @@ $assignurl = new moodle_url($PAGE->url, array('roleid'=>$roleid));
foreach ($assignableroles as $roleid => $notused) {
$roleusers = '';
if (0 < $assigncounts[$roleid] && $assigncounts[$roleid] <= MAX_USERS_TO_LIST_PER_ROLE) {
$roleusers = get_role_users($roleid, $context, false, 'u.id, u.lastname, u.firstname');
$roleusers = get_role_users($roleid, $context, false, 'u.id, u.firstname, u.lastname');
if (!empty($roleusers)) {
$strroleusers = array();
foreach ($roleusers as $user) {
@@ -278,15 +278,13 @@ $assignurl = new moodle_url($PAGE->url, array('roleid'=>$roleid));
// Print overview table
$table = new html_table();
$table->tablealign = 'center';
$table->width = '60%';
$table->id = 'assignrole';
$table->head = array(get_string('role'), get_string('description'), get_string('userswiththisrole', 'role'));
$table->wrap = array('nowrap', '', 'nowrap');
$table->align = array('left', 'left', 'center');
$table->colclasses = array('leftalign role', 'leftalign', 'centeralign userrole');
$table->attributes['class'] = 'admintable generaltable';
if ($showroleholders) {
$table->headspan = array(1, 1, 2);
$table->wrap[] = 'nowrap';
$table->align[] = 'left';
$table->colclasses[] = 'leftalign roleholder';
}
foreach ($assignableroles as $roleid => $rolename) {
+35 -15
View File
@@ -59,16 +59,11 @@ $courseid = $course->id;
$contextname = print_context_name($context);
// Get the user_selector we will need.
// Teachers within a course just get to see the same list of people they can
// assign roles to. Admins (people with moodle/role:manage) can run this report for any user.
$options = array('context' => $context, 'roleid' => 0);
if (has_capability('moodle/role:manage', $context)) {
$userselector = new potential_assignees_course_and_above('reportuser', $options);
} else {
$userselector = roles_get_potential_user_selector($context, 'reportuser', $options);
}
$userselector->set_multiselect(false);
$userselector->set_rows(10);
// Teachers within a course just get to see the same list of enrolled users.
// Admins (people with moodle/role:manage) can run this report for any user.
$options = array('accesscontext' => $context);
$userselector = new role_check_users_selector('reportuser', $options);
$userselector->set_rows(20);
// Work out an appropriate page title.
$title = get_string('checkpermissionsin', 'role', $contextname);
@@ -104,20 +99,45 @@ switch ($context->contextlevel) {
break;
}
// Get the list of the reported-on user's role assignments - must be after
// the page setup code above, or the language might be wrong.
$reportuser = $userselector->get_selected_user();
if (!is_null($reportuser)) {
$roleassignments = get_user_roles_with_special($context, $reportuser->id);
$rolenames = role_get_names($context);
}
echo $OUTPUT->header();
// These are needed early because of tabs.php
$assignableroles = get_assignable_roles($context, ROLENAME_BOTH);
$overridableroles = get_overridable_roles($context, ROLENAME_BOTH);
// Print heading.
echo $OUTPUT->heading($title);
// If a user has been chosen, show all the permissions for this user.
$reportuser = $userselector->get_selected_user();
if (!is_null($reportuser)) {
echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide');
echo $OUTPUT->heading(get_string('permissionsforuser', 'role', fullname($reportuser)), 3);
if (!empty($roleassignments)) {
echo $OUTPUT->heading(get_string('rolesforuser', 'role', fullname($reportuser)), 3);
echo html_writer::start_tag('ul');
$systemcontext = context_system::instance();
foreach ($roleassignments as $ra) {
$racontext = context::instance_by_id($ra->contextid);
$link = html_writer::link($racontext->get_url(), $racontext->get_context_name());
$rolename = $rolenames[$ra->roleid]->localname;
if (has_capability('moodle/role:manage', $systemcontext)) {
$rolename = html_writer::link(new moodle_url('/admin/roles/define.php',
array('action' => 'view', 'roleid' => $ra->roleid)), $rolename);
}
echo html_writer::tag('li', get_string('roleincontext', 'role',
array('role' => $rolename, 'context' => $link)));
}
echo html_writer::end_tag('ul');
}
echo $OUTPUT->heading(get_string('permissionsforuser', 'role', fullname($reportuser)), 3);
$table = new check_capability_table($context, $reportuser, $contextname);
$table->display();
echo $OUTPUT->box_end();
+2 -2
View File
@@ -38,7 +38,7 @@
throw new moodle_exception('invalidaccess');
}
if ($action != 'add') {
$roleid = required_param('roleid', PARAM_INTEGER);
$roleid = required_param('roleid', PARAM_INT);
} else {
$roleid = 0;
}
@@ -56,7 +56,7 @@
}
/// Check access permissions.
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$systemcontext = context_system::instance();
require_login();
require_capability('moodle/role:manage', $systemcontext);
admin_externalpage_setup('defineroles', '', array('action' => $action, 'roleid' => $roleid), $defineurl);
+306 -65
View File
@@ -256,19 +256,14 @@ class permissions_table extends capability_table_base {
* @param string $contextname print_context_name($context) - to save recomputing.
*/
public function __construct($context, $contextname, $allowoverrides, $allowsafeoverrides, $overridableroles) {
global $DB;
parent::__construct($context, 'permissions');
$this->contextname = $contextname;
$this->allowoverrides = $allowoverrides;
$this->allowsafeoverrides = $allowsafeoverrides;
$this->overridableroles = $overridableroles;
$roles = $DB->get_records('role', null, 'sortorder DESC');
foreach ($roles as $roleid=>$role) {
$roles[$roleid] = $role->name;
}
$this->roles = role_fix_names($roles, $context);
$roles = get_all_roles($context);
$this->roles = role_fix_names(array_reverse($roles, true), $context, ROLENAME_ALIAS, true);
}
@@ -593,18 +588,6 @@ class define_role_table_advanced extends capability_table_with_risks {
global $DB;
$this->errors = array();
// Role name.
$name = optional_param('name', null, PARAM_MULTILANG);
if (!is_null($name)) {
$this->role->name = $name;
if (html_is_blank($this->role->name)) {
$this->errors['name'] = get_string('errorbadrolename', 'role');
}
}
if ($DB->record_exists_select('role', 'name = ? and id <> ?', array($this->role->name, $this->roleid))) {
$this->errors['name'] = get_string('errorexistsrolename', 'role');
}
// Role short name. We clean this in a special way. We want to end up
// with only lowercase safe ASCII characters.
$shortname = optional_param('shortname', null, PARAM_RAW);
@@ -620,6 +603,20 @@ class define_role_table_advanced extends capability_table_with_risks {
$this->errors['shortname'] = get_string('errorexistsroleshortname', 'role');
}
// Role name.
$name = optional_param('name', null, PARAM_TEXT);
if (!is_null($name)) {
$this->role->name = $name;
// Hack: short names of standard roles are equal to archetypes, empty name means localised via lang packs.
$archetypes = get_role_archetypes();
if (!isset($archetypes[$shortname]) and html_is_blank($this->role->name)) {
$this->errors['name'] = get_string('errorbadrolename', 'role');
}
}
if ($this->role->name !== '' and $DB->record_exists_select('role', 'name = ? and id <> ?', array($this->role->name, $this->roleid))) {
$this->errors['name'] = get_string('errorexistsrolename', 'role');
}
// Description.
$description = optional_param('description', null, PARAM_RAW);
if (!is_null($description)) {
@@ -664,7 +661,7 @@ class define_role_table_advanced extends capability_table_with_risks {
public function make_copy() {
$this->roleid = 0;
unset($this->role->id);
$this->role->name .= ' ' . get_string('copyasnoun');
$this->role->name = role_get_name($this->role, null, ROLENAME_ORIGINAL) . ' ' . get_string('copyasnoun');
$this->role->shortname .= 'copy';
}
@@ -741,6 +738,56 @@ class define_role_table_advanced extends capability_table_with_risks {
return $output;
}
/**
* Returns an array of roles of the allowed type.
*
* @param string $type Must be one of: assign, switch, or override.
* @return array
*/
protected function get_allow_roles_list($type) {
global $DB;
if ($type !== 'assign' and $type !== 'switch' and $type !== 'override') {
debugging('Invalid role allowed type specified', DEBUG_DEVELOPER);
return array();
}
if (empty($this->roleid)) {
return array();
}
$sql = "SELECT r.*
FROM {role} r
JOIN {role_allow_{$type}} a ON a.allow{$type} = r.id
WHERE a.roleid = :roleid
ORDER BY r.sortorder ASC";
return $DB->get_records_sql($sql, array('roleid'=>$this->roleid));
}
/**
* Returns an array of roles with the allowed type.
*
* @param string $type Must be one of: assign, switch, or override.
* @return array Am array of role names with the allowed type
*/
protected function get_allow_role_control($type) {
if ($roles = $this->get_allow_roles_list($type)) {
$roles = role_fix_names($roles, null, ROLENAME_ORIGINAL, true);
return implode(', ', $roles);
} else {
return get_string('none');
}
}
/**
* Returns information about the risks associated with a role.
*
* @return string
*/
protected function get_role_risks_info() {
return '';
}
protected function print_field($name, $caption, $field) {
global $OUTPUT;
// Attempt to generate HTML like formslib.
@@ -779,11 +826,17 @@ class define_role_table_advanced extends capability_table_with_risks {
global $OUTPUT;
// Extra fields at the top of the page.
echo '<div class="topfields clearfix">';
$this->print_field('name', get_string('rolefullname', 'role'), $this->get_name_field('name'));
$this->print_field('shortname', get_string('roleshortname', 'role'), $this->get_shortname_field('shortname'));
$this->print_field('edit-description', get_string('description'), $this->get_description_field('description'));
$this->print_field('shortname', get_string('roleshortname', 'role').'&nbsp;'.$OUTPUT->help_icon('roleshortname', 'role'), $this->get_shortname_field('shortname'));
$this->print_field('name', get_string('customrolename', 'role').'&nbsp;'.$OUTPUT->help_icon('customrolename', 'role'), $this->get_name_field('name'));
$this->print_field('edit-description', get_string('customroledescription', 'role').'&nbsp;'.$OUTPUT->help_icon('customroledescription', 'role'), $this->get_description_field('description'));
$this->print_field('menuarchetype', get_string('archetype', 'role').'&nbsp;'.$OUTPUT->help_icon('archetype', 'role'), $this->get_archetype_field('archetype'));
$this->print_field('', get_string('maybeassignedin', 'role'), $this->get_assignable_levels_control());
$this->print_field('', get_string('allowassign', 'role'), $this->get_allow_role_control('assign'));
$this->print_field('', get_string('allowoverride', 'role'), $this->get_allow_role_control('override'));
$this->print_field('', get_string('allowswitch', 'role'), $this->get_allow_role_control('switch'));
if ($risks = $this->get_role_risks_info()) {
$this->print_field('', get_string('rolerisks', 'role'), $risks);
}
echo "</div>";
$this->print_show_hide_advanced_button();
@@ -862,7 +915,7 @@ class view_role_definition_table extends define_role_table_advanced {
}
protected function get_name_field($id) {
return strip_tags(format_string($this->role->name));
return role_get_name($this->role);
}
protected function get_shortname_field($id) {
@@ -870,7 +923,7 @@ class view_role_definition_table extends define_role_table_advanced {
}
protected function get_description_field($id) {
return format_text($this->role->description, FORMAT_HTML);
return role_get_description($this->role);
}
protected function get_archetype_field($id) {
@@ -885,6 +938,57 @@ class view_role_definition_table extends define_role_table_advanced {
// Do nothing.
}
/**
* Returns HTML risk icons.
*
* @return string
*/
protected function get_role_risks_info() {
global $OUTPUT;
if (empty($this->roleid)) {
return '';
}
$risks = array();
$allrisks = get_all_risks();
foreach ($this->capabilities as $capability) {
$perm = $this->permissions[$capability->name];
if ($perm != CAP_ALLOW) {
continue;
}
foreach ($allrisks as $type=>$risk) {
if ($risk & (int)$capability->riskbitmask) {
$risks[$type] = $risk;
}
}
}
$risksurl = new moodle_url(get_docs_url(s(get_string('risks', 'role'))));
foreach ($risks as $type=>$risk) {
$pixicon = new pix_icon('/i/' . str_replace('risk', 'risk_', $type), get_string($type . 'short', 'admin'));
$risks[$type] = $OUTPUT->action_icon($risksurl, $pixicon, new popup_action('click', $risksurl));
}
return implode(' ', $risks);
}
/**
* Returns true if the row should be skipped.
*
* @param string $capability
* @return bool
*/
protected function skip_row($capability) {
$perm = $this->permissions[$capability->name];
if ($perm == CAP_INHERIT) {
// Do not print empty rows in role overview, admins need to know quickly what is allowed and prohibited,
// if they want to see the list of all capabilities they can go to edit role page.
return true;
}
parent::skip_row($capability);
}
protected function add_permission_cells($capability) {
$perm = $this->permissions[$capability->name];
$permname = $this->allpermissions[$perm];
@@ -936,7 +1040,7 @@ class override_permissions_table_advanced extends capability_table_with_risks {
global $DB;
/// Get the capabilities from the parent context, so that can be shown in the interface.
$parentcontext = get_context_instance_by_id(get_parent_contextid($this->context));
$parentcontext = context::instance_by_id(get_parent_contextid($this->context));
$this->parentpermissions = role_context_capabilities($this->roleid, $parentcontext);
}
@@ -985,8 +1089,6 @@ class override_permissions_table_advanced extends capability_table_with_risks {
* Base class to avoid duplicating code.
*/
abstract class role_assign_user_selector_base extends user_selector_base {
const MAX_USERS_PER_PAGE = 100;
protected $roleid;
protected $context;
@@ -999,7 +1101,7 @@ abstract class role_assign_user_selector_base extends user_selector_base {
if (isset($options['context'])) {
$this->context = $options['context'];
} else {
$this->context = get_context_instance_by_id($options['contextid']);
$this->context = context::instance_by_id($options['contextid']);
}
$options['accesscontext'] = $this->context;
parent::__construct($name, $options);
@@ -1042,27 +1144,26 @@ class potential_assignees_below_course extends role_assign_user_selector_base {
$countfields = 'SELECT COUNT(u.id)';
$sql = " FROM {user} u
WHERE u.id IN ($enrolsql) $wherecondition
AND u.id NOT IN (
SELECT r.userid
FROM {role_assignments} r
WHERE r.contextid = :contextid
AND r.roleid = :roleid)";
$order = ' ORDER BY lastname ASC, firstname ASC';
LEFT JOIN {role_assignments} ra ON (ra.userid = u.id AND ra.roleid = :roleid AND ra.contextid = :contextid)
WHERE u.id IN ($enrolsql)
$wherecondition
AND ra.id IS NULL";
$params['contextid'] = $this->context->id;
$params['roleid'] = $this->roleid;
list($sort, $sortparams) = users_order_by_sql('u', $search, $this->accesscontext);
$order = ' ORDER BY ' . $sort;
// Check to see if there are too many to show sensibly.
if (!$this->is_validating()) {
$potentialmemberscount = $DB->count_records_sql($countfields . $sql, $params);
if ($potentialmemberscount > role_assign_user_selector_base::MAX_USERS_PER_PAGE) {
if ($potentialmemberscount > $this->maxusersperpage) {
return $this->too_many_results($search, $potentialmemberscount);
}
}
// If not, show them.
$availableusers = $DB->get_records_sql($fields . $sql . $order, $params);
$availableusers = $DB->get_records_sql($fields . $sql . $order, array_merge($params, $sortparams));
if (empty($availableusers)) {
return array();
@@ -1078,6 +1179,132 @@ class potential_assignees_below_course extends role_assign_user_selector_base {
}
}
/**
* User selector subclass for the selection of users in the check permissions page.
*
* @copyright 2012 Petr Skoda {@link http://skodak.org}
*/
class role_check_users_selector extends user_selector_base {
/** @var bool limit listing of users to enrolled only */
var $onlyenrolled;
/**
* Constructor.
*
* @param string $name the control name/id for use in the HTML.
* @param array $options other options needed to construct this selector.
* You must be able to clone a userselector by doing new get_class($us)($us->get_name(), $us->get_options());
*/
public function __construct($name, $options) {
if (!isset($options['multiselect'])) {
$options['multiselect'] = false;
}
parent::__construct($name, $options);
$coursecontext = $this->accesscontext->get_course_context(false);
if ($coursecontext and $coursecontext->id != SITEID and !has_capability('moodle/role:manage', $coursecontext)) {
// Prevent normal teachers from looking up all users.
$this->onlyenrolled = true;
} else {
$this->onlyenrolled = false;
}
}
public function find_users($search) {
global $DB;
list($wherecondition, $params) = $this->search_sql($search, 'u');
$fields = 'SELECT ' . $this->required_fields_sql('u');
$countfields = 'SELECT COUNT(1)';
$coursecontext = $this->accesscontext->get_course_context(false);
if ($coursecontext and $coursecontext != SITEID) {
$sql1 = " FROM {user} u
JOIN {user_enrolments} ue ON (ue.userid = u.id)
JOIN {enrol} e ON (e.id = ue.enrolid AND e.courseid = :courseid1)
WHERE $wherecondition";
$params['courseid1'] = $coursecontext->instanceid;
if ($this->onlyenrolled) {
$sql2 = null;
} else {
$sql2 = " FROM {user} u
LEFT JOIN ({user_enrolments} ue
JOIN {enrol} e ON (e.id = ue.enrolid AND e.courseid = :courseid2)) ON (ue.userid = u.id)
WHERE $wherecondition
AND ue.id IS NULL";
$params['courseid2'] = $coursecontext->instanceid;
}
} else {
if ($this->onlyenrolled) {
// Bad luck, current user may not view only enrolled users.
return array();
}
$sql1 = null;
$sql2 = " FROM {user} u
WHERE $wherecondition";
}
$params['contextid'] = $this->accesscontext->id;
list($sort, $sortparams) = users_order_by_sql('u', $search, $this->accesscontext);
$order = ' ORDER BY ' . $sort;
$result = array();
if ($search) {
$groupname1 = get_string('enrolledusersmatching', 'enrol', $search);
$groupname2 = get_string('potusersmatching', 'role', $search);
} else {
$groupname1 = get_string('enrolledusers', 'enrol');
$groupname2 = get_string('potusers', 'role');
}
if ($sql1) {
$enrolleduserscount = $DB->count_records_sql($countfields . $sql1, $params);
if (!$this->is_validating() and $enrolleduserscount > $this->maxusersperpage) {
$result[$groupname1] = array();
$toomany = $this->too_many_results($search, $enrolleduserscount);
$result[implode(' - ', array_keys($toomany))] = array();
} else {
$enrolledusers = $DB->get_records_sql($fields . $sql1 . $order, array_merge($params, $sortparams));
if ($enrolledusers) {
$result[$groupname1] = $enrolledusers;
}
}
if ($sql2) {
$result[''] = array();
}
}
if ($sql2) {
$otheruserscount = $DB->count_records_sql($countfields . $sql2, $params);
if (!$this->is_validating() and $otheruserscount > $this->maxusersperpage) {
$result[$groupname2] = array();
$toomany = $this->too_many_results($search, $otheruserscount);
$result[implode(' - ', array_keys($toomany))] = array();
} else {
$otherusers = $DB->get_records_sql($fields . $sql2 . $order, array_merge($params, $sortparams));
if ($otherusers) {
$result[$groupname2] = $otherusers;
}
}
}
return $result;
}
protected function get_options() {
global $CFG;
$options = parent::get_options();
$options['file'] = $CFG->admin . '/roles/lib.php';
return $options;
}
}
/**
* User selector subclass for the list of potential users on the assign roles page,
* when we are assigning in a context at or above the course level. In this case we
@@ -1099,19 +1326,21 @@ class potential_assignees_course_and_above extends role_assign_user_selector_bas
FROM {role_assignments} r
WHERE r.contextid = :contextid
AND r.roleid = :roleid)";
$order = ' ORDER BY lastname ASC, firstname ASC';
list($sort, $sortparams) = users_order_by_sql('', $search, $this->accesscontext);
$order = ' ORDER BY ' . $sort;
$params['contextid'] = $this->context->id;
$params['roleid'] = $this->roleid;
if (!$this->is_validating()) {
$potentialmemberscount = $DB->count_records_sql($countfields . $sql, $params);
if ($potentialmemberscount > role_assign_user_selector_base::MAX_USERS_PER_PAGE) {
if ($potentialmemberscount > $this->maxusersperpage) {
return $this->too_many_results($search, $potentialmemberscount);
}
}
$availableusers = $DB->get_records_sql($fields . $sql . $order, $params);
$availableusers = $DB->get_records_sql($fields . $sql . $order, array_merge($params, $sortparams));
if (empty($availableusers)) {
return array();
@@ -1145,6 +1374,9 @@ class existing_role_holders extends role_assign_user_selector_base {
$params = array_merge($params, $ctxparams);
$params['roleid'] = $this->roleid;
list($sort, $sortparams) = users_order_by_sql('u', $search, $this->accesscontext);
$params = array_merge($params, $sortparams);
$sql = "SELECT ra.id as raid," . $this->required_fields_sql('u') . ",ra.contextid,ra.component
FROM {role_assignments} ra
JOIN {user} u ON u.id = ra.userid
@@ -1153,7 +1385,7 @@ class existing_role_holders extends role_assign_user_selector_base {
$wherecondition AND
ctx.id $ctxcondition AND
ra.roleid = :roleid
ORDER BY ctx.depth DESC, ra.component, u.lastname, u.firstname";
ORDER BY ctx.depth DESC, ra.component, $sort";
$contextusers = $DB->get_records_sql($sql, $params);
// No users at all.
@@ -1235,7 +1467,7 @@ class existing_role_holders extends role_assign_user_selector_base {
}
protected function parent_con_group_name($search, $contextid) {
$context = get_context_instance_by_id($contextid);
$context = context::instance_by_id($contextid);
$contextname = print_context_name($context, true, true);
if ($search) {
$a = new stdClass;
@@ -1273,8 +1505,7 @@ abstract class role_allow_role_page {
*/
protected function load_required_roles() {
/// Get all roles
$this->roles = get_all_roles();
role_fix_names($this->roles, get_context_instance(CONTEXT_SYSTEM), ROLENAME_ORIGINAL);
$this->roles = role_fix_names(get_all_roles(), context_system::instance(), ROLENAME_ORIGINAL);
}
/**
@@ -1483,7 +1714,7 @@ class role_allow_switch_page extends role_allow_role_page {
function roles_get_potential_user_selector($context, $name, $options) {
$blockinsidecourse = false;
if ($context->contextlevel == CONTEXT_BLOCK) {
$parentcontext = get_context_instance_by_id(get_parent_contextid($context));
$parentcontext = context::instance_by_id(get_parent_contextid($context));
$blockinsidecourse = in_array($parentcontext->contextlevel, array(CONTEXT_MODULE, CONTEXT_COURSE));
}
@@ -1501,10 +1732,14 @@ class admins_potential_selector extends user_selector_base {
* @param string $name control name
* @param array $options should have two elements with keys groupid and courseid.
*/
public function __construct() {
global $CFG, $USER;
$admins = explode(',', $CFG->siteadmins);
parent::__construct('addselect', array('multiselect'=>false, 'exclude'=>$admins));
public function __construct($name = null, $options = array()) {
global $CFG;
if (is_null($name)) {
$name = 'addselect';
}
$options['multiselect'] = false;
$options['exclude'] = explode(',', $CFG->siteadmins);
parent::__construct($name, $options);
}
public function find_users($search) {
@@ -1516,18 +1751,21 @@ class admins_potential_selector extends user_selector_base {
$sql = " FROM {user}
WHERE $wherecondition AND mnethostid = :localmnet";
$order = ' ORDER BY lastname ASC, firstname ASC';
$params['localmnet'] = $CFG->mnet_localhost_id; // it could be dangerous to make remote users admins and also this could lead to other problems
list($sort, $sortparams) = users_order_by_sql('', $search, $this->accesscontext);
$order = ' ORDER BY ' . $sort;
// Check to see if there are too many to show sensibly.
if (!$this->is_validating()) {
$potentialcount = $DB->count_records_sql($countfields . $sql, $params);
if ($potentialcount > 100) {
if ($potentialcount > $this->maxusersperpage) {
return $this->too_many_results($search, $potentialcount);
}
}
$availableusers = $DB->get_records_sql($fields . $sql . $order, $params);
$availableusers = $DB->get_records_sql($fields . $sql . $order, array_merge($params, $sortparams));
if (empty($availableusers)) {
return array();
@@ -1555,9 +1793,12 @@ class admins_existing_selector extends user_selector_base {
* @param string $name control name
* @param array $options should have two elements with keys groupid and courseid.
*/
public function __construct() {
global $CFG, $USER;
parent::__construct('removeselect', array('multiselect'=>false));
public function __construct($name = null, $options = array()) {
if (is_null($name)) {
$name = 'removeselect';
}
$options['multiselect'] = false;
parent::__construct($name, $options);
}
public function find_users($search) {
@@ -1574,7 +1815,10 @@ class admins_existing_selector extends user_selector_base {
}
$sql = " FROM {user}
WHERE $wherecondition";
$order = ' ORDER BY lastname ASC, firstname ASC';
list($sort, $sortparams) = users_order_by_sql('', $search, $this->accesscontext);
$params = array_merge($params, $sortparams);
$order = ' ORDER BY ' . $sort;
$availableusers = $DB->get_records_sql($fields . $sql . $order, $params);
@@ -1583,13 +1827,10 @@ class admins_existing_selector extends user_selector_base {
}
$mainadmin = array();
$adminids = explode(',', $CFG->siteadmins);
foreach ($adminids as $id) {
if (isset($availableusers[$id])) {
$mainadmin = array($id=>$availableusers[$id]);
unset($availableusers[$id]);
break;
}
$mainadminuser = get_admin();
if ($mainadminuser && isset($availableusers[$mainadminuser->id])) {
$mainadmin = array($mainadminuser->id => $availableusers[$mainadminuser->id]);
unset($availableusers[$mainadminuser->id]);
}
$result = array();
+6 -8
View File
@@ -47,14 +47,13 @@
$defineurl = $CFG->wwwroot . '/' . $CFG->admin . '/roles/define.php';
/// Check access permissions.
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$systemcontext = context_system::instance();
require_login();
require_capability('moodle/role:manage', $systemcontext);
admin_externalpage_setup('defineroles');
/// Get some basic data we are going to need.
$roles = get_all_roles();
role_fix_names($roles, $systemcontext, ROLENAME_ORIGINAL);
$roles = role_fix_names(get_all_roles(), $systemcontext, ROLENAME_ORIGINAL);
$undeletableroles = array();
$undeletableroles[$CFG->notloggedinroleid] = 1;
@@ -187,10 +186,9 @@
/// Initialise table.
$table = new html_table();
$table->tablealign = 'center';
$table->align = array('left', 'left', 'left', 'left');
$table->wrap = array('nowrap', '', 'nowrap','nowrap');
$table->width = '90%';
$table->colclasses = array('leftalign', 'leftalign', 'leftalign', 'leftalign');
$table->id = 'roles';
$table->attributes['class'] = 'admintable generaltable';
$table->head = array(
get_string('role') . ' ' . $OUTPUT->help_icon('roles', 'role'),
get_string('description'),
@@ -214,7 +212,7 @@
/// Basic data.
$row = array(
'<a href="' . $defineurl . '?action=view&amp;roleid=' . $role->id . '">' . $role->localname . '</a>',
format_text($role->description, FORMAT_HTML),
role_get_description($role),
s($role->shortname),
'',
);
+1 -2
View File
@@ -33,7 +33,6 @@ $toprow[] = new tabobject('manage', new moodle_url('/admin/roles/manage.php'), g
$toprow[] = new tabobject('assign', new moodle_url('/admin/roles/allow.php', array('mode'=>'assign')), get_string('allowassign', 'role'));
$toprow[] = new tabobject('override', new moodle_url('/admin/roles/allow.php', array('mode'=>'override')), get_string('allowoverride', 'role'));
$toprow[] = new tabobject('switch', new moodle_url('/admin/roles/allow.php', array('mode'=>'switch')), get_string('allowswitch', 'role'));
$tabs = array($toprow);
print_tabs($tabs, $currenttab);
echo $OUTPUT->tabtree($toprow, $currenttab);
+15 -17
View File
@@ -36,9 +36,9 @@ $courseid = required_param('courseid', PARAM_INT);
$user = $DB->get_record('user', array('id' => $userid), '*', MUST_EXIST);
$course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);
$usercontext = get_context_instance(CONTEXT_USER, $user->id);
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$usercontext = context_user::instance($user->id);
$coursecontext = context_course::instance($course->id);
$systemcontext = context_system::instance();
$baseurl = new moodle_url('/admin/roles/usersroles.php', array('userid'=>$userid, 'courseid'=>$courseid));
@@ -68,14 +68,11 @@ if ($course->id != $SITE->id || $userid != $USER->id) {
/// Now get the role assignments for this user.
$sql = "SELECT
ra.id, ra.userid, ra.contextid, ra.roleid, ra.component, ra.itemid,
c.path,
r.name AS rolename,
COALESCE(rn.name, r.name) AS localname
c.path
FROM
{role_assignments} ra
JOIN {context} c ON ra.contextid = c.id
JOIN {role} r ON ra.roleid = r.id
LEFT JOIN {role_names} rn ON rn.roleid = ra.roleid AND rn.contextid = ra.contextid
WHERE
ra.userid = ?
"./*AND ra.active = 1*/"
@@ -83,6 +80,8 @@ $sql = "SELECT
contextlevel DESC, contextid ASC, r.sortorder ASC";
$roleassignments = $DB->get_records_sql($sql, array($user->id));
$allroles = role_fix_names(get_all_roles());
/// In order to display a nice tree of contexts, we need to get all the
/// ancestors of all the contexts in the query we just did.
$requiredcontexts = array();
@@ -142,14 +141,14 @@ echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthnormal');
if (!$roleassignments) {
echo '<p>', get_string('noroleassignments', 'role'), '</p>';
} else {
print_report_tree($systemcontext->id, $contexts, $systemcontext, $fullname);
print_report_tree($systemcontext->id, $contexts, $systemcontext, $fullname, $allroles);
}
/// End of page.
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
function print_report_tree($contextid, $contexts, $systemcontext, $fullname, $allroles) {
global $CFG, $OUTPUT;
// Only compute lang strings, etc once.
@@ -166,19 +165,18 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
$context = context::instance_by_id($contextid);
// Print the context name.
echo $OUTPUT->heading($context->get_context_name(), 4, 'contextname');
echo $OUTPUT->heading(html_writer::link($context->get_url(), $context->get_context_name()),
4, 'contextname');
// If there are any role assignments here, print them.
foreach ($contexts[$contextid]->roleassignments as $ra) {
$role = $allroles[$ra->roleid];
$value = $ra->contextid . ',' . $ra->roleid;
$inputid = 'unassign' . $value;
echo '<p>';
if ($ra->rolename == $ra->localname) {
echo strip_tags(format_string($ra->localname));
} else {
echo strip_tags(format_string($ra->localname . ' (' . $ra->rolename . ')'));
}
echo $role->localname;
if (has_capability('moodle/role:assign', $context)) {
$raurl = $assignurl . '?contextid=' . $ra->contextid . '&amp;roleid=' .
$ra->roleid . '&amp;removeselect[]=' . $ra->userid;
@@ -189,7 +187,7 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
}
$a = new stdClass;
$a->fullname = $fullname;
$a->contextlevel = get_contextlevel_name($context->contextlevel);
$a->contextlevel = $context->get_level_name();
if ($context->contextlevel == CONTEXT_SYSTEM) {
$strgoto = get_string('gotoassignsystemroles', 'role');
$strcheck = get_string('checksystempermissionsfor', 'role', $a);
@@ -210,7 +208,7 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
echo '<ul>';
foreach ($contexts[$contextid]->children as $childcontextid) {
echo '<li>';
print_report_tree($childcontextid, $contexts, $systemcontext, $fullname);
print_report_tree($childcontextid, $contexts, $systemcontext, $fullname, $allroles);
echo '</li>';
}
echo '</ul>';
+1 -1
View File
@@ -7,7 +7,7 @@ require_once($CFG->libdir.'/adminlib.php');
$query = trim(optional_param('query', '', PARAM_NOTAGS)); // Search string
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
$PAGE->set_context(context_system::instance());
admin_externalpage_setup('search', '', array('query' => $query)); // now hidden page
+1 -1
View File
@@ -9,7 +9,7 @@ $adminediting = optional_param('adminedit', -1, PARAM_BOOL);
/// no guest autologin
require_login(0, false);
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
$PAGE->set_context(context_system::instance());
$PAGE->set_url('/admin/settings.php', array('section' => $section));
$PAGE->set_pagetype('admin-setting-' . $section);
$PAGE->set_pagelayout('admin');
+32 -3
View File
@@ -67,16 +67,29 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
}
$temp->add(new admin_setting_configselect('calendar_maxevents',new lang_string('configmaxevents','admin'),new lang_string('helpupcomingmaxevents', 'admin'),10,$options));
$temp->add(new admin_setting_configcheckbox('enablecalendarexport', new lang_string('enablecalendarexport', 'admin'), new lang_string('configenablecalendarexport','admin'), 1));
// Calendar custom export settings.
$days = array(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),
30 => new lang_string('numdays', '', 30),
5 => new lang_string('numdays', '', 5));
$temp->add(new admin_setting_configcheckbox('calendar_customexport', new lang_string('configcalendarcustomexport', 'admin'), new lang_string('helpcalendarcustomexport','admin'), 1));
$temp->add(new admin_setting_configselect('calendar_exportlookahead', new lang_string('configexportlookahead','admin'), new lang_string('helpexportlookahead', 'admin'), 365, $days));
$temp->add(new admin_setting_configselect('calendar_exportlookback', new lang_string('configexportlookback','admin'), new lang_string('helpexportlookback', 'admin'), 5, $days));
$temp->add(new admin_setting_configtext('calendar_exportsalt', new lang_string('calendarexportsalt','admin'), new lang_string('configcalendarexportsalt', 'admin'), random_string(60)));
$temp->add(new admin_setting_configcheckbox('calendar_showicalsource', new lang_string('configshowicalsource', 'admin'), new lang_string('helpshowicalsource','admin'), 1));
$ADMIN->add('appearance', $temp);
// blog
$temp = new admin_settingpage('blog', new lang_string('blog','blog'));
$temp = new admin_settingpage('blog', new lang_string('blog','blog'), 'moodle/site:config', empty($CFG->enableblogs));
$temp->add(new admin_setting_configcheckbox('useblogassociations', new lang_string('useblogassociations', 'blog'), new lang_string('configuseblogassociations','blog'), 1));
$temp->add(new admin_setting_bloglevel('bloglevel', new lang_string('bloglevel', 'admin'), new lang_string('configbloglevel', 'admin'), 4, array(BLOG_GLOBAL_LEVEL => new lang_string('worldblogs','blog'),
BLOG_SITE_LEVEL => new lang_string('siteblogs','blog'),
BLOG_USER_LEVEL => new lang_string('personalblogs','blog'),
0 => new lang_string('disableblogs','blog'))));
BLOG_USER_LEVEL => new lang_string('personalblogs','blog'))));
$temp->add(new admin_setting_configcheckbox('useexternalblogs', new lang_string('useexternalblogs', 'blog'), new lang_string('configuseexternalblogs','blog'), 1));
$temp->add(new admin_setting_configselect('externalblogcrontime', new lang_string('externalblogcrontime', 'blog'), new lang_string('configexternalblogcrontime', 'blog'), 86400,
array(43200 => new lang_string('numhours', '', 12),
@@ -96,9 +109,18 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
HOMEPAGE_USER => new lang_string('userpreference', 'admin')
);
$temp->add(new admin_setting_configselect('defaulthomepage', new lang_string('defaulthomepage', 'admin'), new lang_string('configdefaulthomepage', 'admin'), HOMEPAGE_SITE, $choices));
$temp->add(new admin_setting_configcheckbox('allowguestmymoodle', new lang_string('allowguestmymoodle', 'admin'), new lang_string('configallowguestmymoodle', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('navshowfullcoursenames', new lang_string('navshowfullcoursenames', 'admin'), new lang_string('navshowfullcoursenames_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('navshowcategories', new lang_string('navshowcategories', 'admin'), new lang_string('confignavshowcategories', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('navshowmycoursecategories', new lang_string('navshowmycoursecategories', 'admin'), new lang_string('navshowmycoursecategories_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('navshowallcourses', new lang_string('navshowallcourses', 'admin'), new lang_string('confignavshowallcourses', 'admin'), 0));
$sortoptions = array(
'sortorder' => new lang_string('sort_sortorder', 'admin'),
'fullname' => new lang_string('sort_fullname', 'admin'),
'shortname' => new lang_string('sort_shortname', 'admin'),
'idnumber' => new lang_string('sort_idnumber', 'admin'),
);
$temp->add(new admin_setting_configselect('navsortmycoursessort', new lang_string('navsortmycoursessort', 'admin'), new lang_string('navsortmycoursessort_help', 'admin'), 'sortorder', $sortoptions));
$temp->add(new admin_setting_configtext('navcourselimit',new lang_string('navcourselimit','admin'),new lang_string('confignavcourselimit', 'admin'),20,PARAM_INT));
$temp->add(new admin_setting_configcheckbox('usesitenameforsitepages', new lang_string('usesitenameforsitepages', 'admin'), new lang_string('configusesitenameforsitepages', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('linkadmincategories', new lang_string('linkadmincategories', 'admin'), new lang_string('linkadmincategories_help', 'admin'), 0));
@@ -176,6 +198,12 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('courselistshortnames',
new lang_string('courselistshortnames', 'admin'),
new lang_string('courselistshortnames_desc', 'admin'), 0));
$temp->add(new admin_setting_configtext('coursesperpage', new lang_string('coursesperpage', 'admin'), new lang_string('configcoursesperpage', 'admin'), 20, PARAM_INT));
$temp->add(new admin_setting_configtext('courseswithsummarieslimit', new lang_string('courseswithsummarieslimit', 'admin'), new lang_string('configcourseswithsummarieslimit', 'admin'), 10, PARAM_INT));
$temp->add(new admin_setting_configtext('courseoverviewfileslimit', new lang_string('courseoverviewfileslimit'),
new lang_string('configcourseoverviewfileslimit', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('courseoverviewfilesext', new lang_string('courseoverviewfilesext'),
new lang_string('configcourseoverviewfilesext', 'admin'), '.jpg,.gif,.png'));
$ADMIN->add('appearance', $temp);
$temp = new admin_settingpage('ajax', new lang_string('ajaxuse'));
@@ -185,6 +213,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$setting = new admin_setting_configcheckbox('cachejs', new lang_string('cachejs', 'admin'), new lang_string('cachejs_help', 'admin'), 1);
$setting->set_updatedcallback('js_reset_all_caches');
$temp->add($setting);
$temp->add(new admin_setting_configcheckbox('modchooserdefault', new lang_string('modchooserdefault', 'admin'), new lang_string('configmodchooserdefault', 'admin'), 1));
$ADMIN->add('appearance', $temp);
// link to tag management interface
+92
View File
@@ -0,0 +1,92 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file defines settingpages and externalpages under the "badges" section
*
* @package core
* @subpackage badges
* @copyright 2012 onwards Totara Learning Solutions Ltd {@link http://www.totaralms.com/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @author Yuliya Bozhko <yuliya.bozhko@totaralms.com>
*/
global $SITE;
if (($hassiteconfig || has_any_capability(array(
'moodle/badges:viewawarded',
'moodle/badges:createbadge',
'moodle/badges:manageglobalsettings',
'moodle/badges:awardbadge',
'moodle/badges:configuremessages',
'moodle/badges:configuredetails',
'moodle/badges:deletebadge'), $systemcontext))) {
require_once($CFG->libdir . '/badgeslib.php');
$globalsettings = new admin_settingpage('badgesettings', new lang_string('badgesettings', 'badges'),
array('moodle/badges:manageglobalsettings'), empty($CFG->enablebadges));
$globalsettings->add(new admin_setting_configtext('badges_defaultissuername',
new lang_string('defaultissuername', 'badges'),
new lang_string('defaultissuername_desc', 'badges'),
$SITE->fullname ? $SITE->fullname : $SITE->shortname, PARAM_TEXT));
$globalsettings->add(new admin_setting_configtext('badges_defaultissuercontact',
new lang_string('defaultissuercontact', 'badges'),
new lang_string('defaultissuercontact_desc', 'badges'),
get_config('moodle','supportemail'), PARAM_EMAIL));
$globalsettings->add(new admin_setting_configtext('badges_badgesalt',
new lang_string('badgesalt', 'badges'),
new lang_string('badgesalt_desc', 'badges'),
'badges' . $SITE->timecreated, PARAM_ALPHANUM));
$globalsettings->add(new admin_setting_configcheckbox('badges_allowexternalbackpack',
new lang_string('allowexternalbackpack', 'badges'),
new lang_string('allowexternalbackpack_desc', 'badges'), 1));
$globalsettings->add(new admin_setting_configcheckbox('badges_allowcoursebadges',
new lang_string('allowcoursebadges', 'badges'),
new lang_string('allowcoursebadges_desc', 'badges'), 1));
$ADMIN->add('badges', $globalsettings);
$ADMIN->add('badges',
new admin_externalpage('managebadges',
new lang_string('managebadges', 'badges'),
new moodle_url('/badges/index.php', array('type' => BADGE_TYPE_SITE)),
array(
'moodle/badges:viewawarded',
'moodle/badges:createbadge',
'moodle/badges:awardbadge',
'moodle/badges:configuremessages',
'moodle/badges:configuredetails',
'moodle/badges:deletebadge'
),
empty($CFG->enablebadges)
)
);
$ADMIN->add('badges',
new admin_externalpage('newbadge',
new lang_string('newbadge', 'badges'),
new moodle_url('/badges/newbadge.php', array('type' => BADGE_TYPE_SITE)),
array('moodle/badges:createbadge'), empty($CFG->enablebadges)
)
);
}
+103 -41
View File
@@ -8,45 +8,98 @@ if ($hassiteconfig
or has_capability('moodle/course:create', $systemcontext)
or has_capability('moodle/site:approvecourse', $systemcontext)) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('courses', new admin_externalpage('coursemgmt', new lang_string('coursemgmt', 'admin'), $CFG->wwwroot . '/course/index.php?categoryedit=on',
$ADMIN->add('courses', new admin_externalpage('coursemgmt', new lang_string('coursemgmt', 'admin'), $CFG->wwwroot . '/course/manage.php',
array('moodle/category:manage', 'moodle/course:create')));
/// Course Default Settings Page
/// NOTE: these settings must be applied after all other settings because they depend on them
///main course settings
// Course Default Settings Page.
// NOTE: these settings must be applied after all other settings because they depend on them.
// Main course settings.
$temp = new admin_settingpage('coursesettings', new lang_string('coursesettings'));
$courseformats = get_plugin_list('format');
require_once($CFG->dirroot.'/course/lib.php');
$choices = array();
$choices['0'] = new lang_string('hide');
$choices['1'] = new lang_string('show');
$temp->add(new admin_setting_configselect('moodlecourse/visible', new lang_string('visible'), new lang_string('visible_help'),
1, $choices));
// Course format.
$temp->add(new admin_setting_heading('courseformathdr', new lang_string('type_format', 'plugin'), ''));
$courseformats = get_sorted_course_formats(true);
$formcourseformats = array();
foreach ($courseformats as $courseformat => $courseformatdir) {
foreach ($courseformats as $courseformat) {
$formcourseformats[$courseformat] = new lang_string('pluginname', "format_$courseformat");
}
$temp->add(new admin_setting_configselect('moodlecourse/format', new lang_string('format'), new lang_string('coursehelpformat'), 'weeks',$formcourseformats));
$temp->add(new admin_setting_configselect('moodlecourse/format', new lang_string('format'), new lang_string('coursehelpformat'),
'weeks',$formcourseformats));
$temp->add(new admin_setting_configtext('moodlecourse/maxsections', new lang_string('maxnumberweeks'), new lang_string('maxnumberweeks_desc'), 52));
$temp->add(new admin_setting_configtext('moodlecourse/maxsections', new lang_string('maxnumberweeks'),
new lang_string('maxnumberweeks_desc'), 52));
$temp->add(new admin_settings_num_course_sections('moodlecourse/numsections', new lang_string('numberweeks'), new lang_string('coursehelpnumberweeks'), 10));
$temp->add(new admin_settings_num_course_sections('moodlecourse/numsections', new lang_string('numberweeks'),
new lang_string('coursehelpnumberweeks'), 10));
$choices = array();
$choices['0'] = new lang_string('hiddensectionscollapsed');
$choices['1'] = new lang_string('hiddensectionsinvisible');
$temp->add(new admin_setting_configselect('moodlecourse/hiddensections', new lang_string('hiddensections'), new lang_string('coursehelphiddensections'), 0,$choices));
$options = range(0, 10);
$temp->add(new admin_setting_configselect('moodlecourse/newsitems', new lang_string('newsitemsnumber'), new lang_string('coursehelpnewsitemsnumber'), 5,$options));
$temp->add(new admin_setting_configselect('moodlecourse/showgrades', new lang_string('showgrades'), new lang_string('coursehelpshowgrades'), 1,array(0 => new lang_string('no'), 1 => new lang_string('yes'))));
$temp->add(new admin_setting_configselect('moodlecourse/showreports', new lang_string('showreports'), '', 0,array(0 => new lang_string('no'), 1 => new lang_string('yes'))));
$temp->add(new admin_setting_configselect('moodlecourse/hiddensections', new lang_string('hiddensections'),
new lang_string('coursehelphiddensections'), 0, $choices));
if (isset($CFG->maxbytes)) {
$choices = get_max_upload_sizes($CFG->maxbytes);
} else {
$choices = get_max_upload_sizes();
}
$temp->add(new admin_setting_configselect('moodlecourse/maxbytes', new lang_string('maximumupload'), new lang_string('coursehelpmaximumupload'), key($choices), $choices));
$choices = array();
$choices[COURSE_DISPLAY_SINGLEPAGE] = new lang_string('coursedisplay_single');
$choices[COURSE_DISPLAY_MULTIPAGE] = new lang_string('coursedisplay_multi');
$temp->add(new admin_setting_configselect('moodlecourse/coursedisplay', new lang_string('coursedisplay'),
new lang_string('coursedisplay_help'), COURSE_DISPLAY_SINGLEPAGE, $choices));
// Appearance.
$temp->add(new admin_setting_heading('appearancehdr', new lang_string('appearance'), ''));
$languages = array();
$languages[''] = new lang_string('forceno');
$languages += get_string_manager()->get_list_of_translations();
$temp->add(new admin_setting_configselect('moodlecourse/lang', new lang_string('forcelanguage'), '', key($languages),
$languages));
$options = range(0, 10);
$temp->add(new admin_setting_configselect('moodlecourse/newsitems', new lang_string('newsitemsnumber'),
new lang_string('coursehelpnewsitemsnumber'), 5, $options));
$temp->add(new admin_setting_configselect('moodlecourse/showgrades', new lang_string('showgrades'),
new lang_string('coursehelpshowgrades'), 1, array(0 => new lang_string('no'), 1 => new lang_string('yes'))));
$temp->add(new admin_setting_configselect('moodlecourse/showreports', new lang_string('showreports'), '', 0,
array(0 => new lang_string('no'), 1 => new lang_string('yes'))));
// Files and uploads.
$temp->add(new admin_setting_heading('filesanduploadshdr', new lang_string('filesanduploads'), ''));
if (!empty($CFG->legacyfilesinnewcourses)) {
$choices = array('0'=>new lang_string('no'), '2'=>new lang_string('yes'));
$temp->add(new admin_setting_configselect('moodlecourse/legacyfiles', new lang_string('courselegacyfiles'), new lang_string('courselegacyfiles_help'), key($choices), $choices));
$temp->add(new admin_setting_configselect('moodlecourse/legacyfiles', new lang_string('courselegacyfiles'),
new lang_string('courselegacyfiles_help'), key($choices), $choices));
}
$currentmaxbytes = get_config('moodlecourse', 'maxbytes');
if (isset($CFG->maxbytes)) {
$choices = get_max_upload_sizes($CFG->maxbytes, 0, 0, $currentmaxbytes);
} else {
$choices = get_max_upload_sizes(0, 0, 0, $currentmaxbytes);
}
$temp->add(new admin_setting_configselect('moodlecourse/maxbytes', new lang_string('maximumupload'),
new lang_string('coursehelpmaximumupload'), key($choices), $choices));
// Completion tracking.
$temp->add(new admin_setting_heading('progress', new lang_string('completion','completion'), ''));
$temp->add(new admin_setting_configselect('moodlecourse/enablecompletion', new lang_string('completion', 'completion'),
new lang_string('enablecompletion_help', 'completion'), 0, array(0 => new lang_string('no'), 1 => new lang_string('yes'))));
// Groups.
$temp->add(new admin_setting_heading('groups', new lang_string('groups', 'group'), ''));
$choices = array();
$choices[NOGROUPS] = new lang_string('groupsnone', 'group');
@@ -55,31 +108,14 @@ if ($hassiteconfig
$temp->add(new admin_setting_configselect('moodlecourse/groupmode', new lang_string('groupmode'), '', key($choices),$choices));
$temp->add(new admin_setting_configselect('moodlecourse/groupmodeforce', new lang_string('force'), new lang_string('coursehelpforce'), 0,array(0 => new lang_string('no'), 1 => new lang_string('yes'))));
$temp->add(new admin_setting_heading('availability', new lang_string('availability'), ''));
$choices = array();
$choices['0'] = new lang_string('courseavailablenot');
$choices['1'] = new lang_string('courseavailable');
$temp->add(new admin_setting_configselect('moodlecourse/visible', new lang_string('visible'), '', 1,$choices));
$temp->add(new admin_setting_heading('language', new lang_string('language'), ''));
$languages=array();
$languages[''] = new lang_string('forceno');
$languages += get_string_manager()->get_list_of_translations();
$temp->add(new admin_setting_configselect('moodlecourse/lang', new lang_string('forcelanguage'), '',key($languages),$languages));
$temp->add(new admin_setting_heading('progress', new lang_string('progress','completion'), ''));
$temp->add(new admin_setting_configselect('moodlecourse/enablecompletion', new lang_string('completion','completion'), '',
0, array(0 => new lang_string('completiondisabled','completion'), 1 => new lang_string('completionenabled','completion'))));
$temp->add(new admin_setting_configcheckbox('moodlecourse/completionstartonenrol', new lang_string('completionstartonenrol','completion'), new lang_string('completionstartonenrolhelp', 'completion'), 0));
$ADMIN->add('courses', $temp);
/// "courserequests" settingpage
// "courserequests" settingpage.
$temp = new admin_settingpage('courserequest', new lang_string('courserequest'));
$temp->add(new admin_setting_configcheckbox('enablecourserequests', new lang_string('enablecourserequests', 'admin'), new lang_string('configenablecourserequests', 'admin'), 0));
$temp->add(new admin_settings_coursecat_select('defaultrequestcategory', new lang_string('defaultrequestcategory', 'admin'), new lang_string('configdefaultrequestcategory', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('requestcategoryselection', new lang_string('requestcategoryselection', 'admin'), new lang_string('configrequestcategoryselection', 'admin'), 0));
$temp->add(new admin_setting_users_with_capability('courserequestnotify', new lang_string('courserequestnotify', 'admin'), new lang_string('configcourserequestnotify2', 'admin'), array(), 'moodle/site:approvecourse'));
$ADMIN->add('courses', $temp);
@@ -122,11 +158,17 @@ if ($hassiteconfig
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_blocks', new lang_string('generalblocks','backup'), new lang_string('configgeneralblocks','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_filters', new lang_string('generalfilters','backup'), new lang_string('configgeneralfilters','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_comments', new lang_string('generalcomments','backup'), new lang_string('configgeneralcomments','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_badges', new lang_string('generalbadges','backup'), new lang_string('configgeneralbadges','backup'), array('value'=>1,'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_userscompletion', new lang_string('generaluserscompletion','backup'), new lang_string('configgeneraluserscompletion','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_logs', new lang_string('generallogs','backup'), new lang_string('configgenerallogs','backup'), array('value'=>0, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_histories', new lang_string('generalhistories','backup'), new lang_string('configgeneralhistories','backup'), array('value'=>0, 'locked'=>0)));
$ADMIN->add('backups', $temp);
// Create a page for general import configuration and defaults.
$temp = new admin_settingpage('importgeneralsettings', new lang_string('importgeneralsettings', 'backup'), 'moodle/backup:backupcourse');
$temp->add(new admin_setting_configtext('backup/import_general_maxresults', new lang_string('importgeneralmaxresults', 'backup'), new lang_string('importgeneralmaxresults_desc', 'backup'), 10));
$ADMIN->add('backups', $temp);
// Create a page for automated backups configuration and defaults.
$temp = new admin_settingpage('automated', new lang_string('automatedsetup','backup'), 'moodle/backup:backupcourse');
@@ -162,6 +204,25 @@ if ($hassiteconfig
500 => '500');
$temp->add(new admin_setting_configselect('backup/backup_auto_keep', new lang_string('keep'), new lang_string('backupkeephelp'), 1, $keepoptoins));
$temp->add(new admin_setting_configcheckbox('backup/backup_shortname', new lang_string('backup_shortname', 'admin'), new lang_string('backup_shortnamehelp', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_skip_hidden', new lang_string('skiphidden', 'backup'), new lang_string('skiphiddenhelp', 'backup'), 1));
$temp->add(new admin_setting_configselect('backup/backup_auto_skip_modif_days', new lang_string('skipmodifdays', 'backup'), new lang_string('skipmodifdayshelp', 'backup'), 30, array(
0 => new lang_string('never'),
1 => new lang_string('numdays', '', 1),
2 => new lang_string('numdays', '', 2),
3 => new lang_string('numdays', '', 3),
5 => new lang_string('numdays', '', 5),
7 => new lang_string('numdays', '', 7),
10 => new lang_string('numdays', '', 10),
14 => new lang_string('numdays', '', 14),
20 => new lang_string('numdays', '', 20),
30 => new lang_string('numdays', '', 30),
60 => new lang_string('numdays', '', 60),
90 => new lang_string('numdays', '', 90),
120 => new lang_string('numdays', '', 120),
180 => new lang_string('numdays', '', 180),
365 => new lang_string('numdays', '', 365)
)));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_skip_modif_prev', new lang_string('skipmodifprev', 'backup'), new lang_string('skipmodifprevhelp', 'backup'), 0));
// Automated defaults section.
$temp->add(new admin_setting_heading('automatedsettings', new lang_string('automatedsettings','backup'), ''));
@@ -171,6 +232,7 @@ if ($hassiteconfig
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_blocks', new lang_string('generalblocks','backup'), new lang_string('configgeneralblocks','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_filters', new lang_string('generalfilters','backup'), new lang_string('configgeneralfilters','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_comments', new lang_string('generalcomments','backup'), new lang_string('configgeneralcomments','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_badges', new lang_string('generalbadges','backup'), new lang_string('configgeneralbadges','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_userscompletion', new lang_string('generaluserscompletion','backup'), new lang_string('configgeneraluserscompletion','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_logs', new lang_string('generallogs', 'backup'), new lang_string('configgenerallogs', 'backup'), 0));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_histories', new lang_string('generalhistories','backup'), new lang_string('configgeneralhistories','backup'), 0));
+4 -1
View File
@@ -25,7 +25,6 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp = new admin_settingpage('debugging', new lang_string('debugging', 'admin'));
$temp->add(new admin_setting_special_debug());
$temp->add(new admin_setting_configcheckbox('debugdisplay', new lang_string('debugdisplay', 'admin'), new lang_string('configdebugdisplay', 'admin'), ini_get_bool('display_errors')));
$temp->add(new admin_setting_configcheckbox('xmlstrictheaders', new lang_string('xmlstrictheaders', 'admin'), new lang_string('configxmlstrictheaders', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('debugsmtp', new lang_string('debugsmtp', 'admin'), new lang_string('configdebugsmtp', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('perfdebug', new lang_string('perfdebug', 'admin'), new lang_string('configperfdebug', 'admin'), '7', '15', '7'));
$temp->add(new admin_setting_configcheckbox('debugstringids', new lang_string('debugstringids', 'admin'), new lang_string('debugstringids_desc', 'admin'), 0));
@@ -66,6 +65,10 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
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);
+8 -7
View File
@@ -3,7 +3,7 @@
// This file defines everything related to frontpage
if (!during_initial_install()) { //do not use during installation
$frontpagecontext = get_context_instance(CONTEXT_COURSE, SITEID);
$frontpagecontext = context_course::instance(SITEID);
if ($hassiteconfig or has_any_capability(array(
'moodle/course:update',
@@ -32,7 +32,9 @@ if (!during_initial_install()) { //do not use during installation
for ($i=1; $i<100; $i++) {
$options[$i] = $i;
}
$temp->add(new admin_setting_configselect('maxcategorydepth', new lang_string('configsitemaxcategorydepth','admin'), new lang_string('configsitemaxcategorydepthhelp','admin'), 0, $options));
$temp->add(new admin_setting_configselect('maxcategorydepth', new lang_string('configsitemaxcategorydepth','admin'), new lang_string('configsitemaxcategorydepthhelp','admin'), 2, $options));
$temp->add(new admin_setting_configtext('frontpagecourselimit', new lang_string('configfrontpagecourselimit','admin'), new lang_string('configfrontpagecourselimithelp','admin'), 200, PARAM_INT));
$temp->add(new admin_setting_sitesetcheckbox('numsections', new lang_string('sitesection'), new lang_string('sitesectionhelp','admin'), 1));
$temp->add(new admin_setting_sitesetselect('newsitems', new lang_string('newsitemsnumber'), '', 3,
@@ -49,14 +51,13 @@ if (!during_initial_install()) { //do not use during installation
'10' => '10')));
$temp->add(new admin_setting_configtext('commentsperpage', new lang_string('commentsperpage', 'admin'), '', 15, PARAM_INT));
$temp->add(new admin_setting_configtext('coursesperpage', new lang_string('coursesperpage', 'admin'), new lang_string('configcoursesperpage', 'admin'), 20, PARAM_INT));
// front page default role
$options = array(0=>new lang_string('none')); // roles to choose from
$defaultfrontpageroleid = 0;
foreach (get_all_roles() as $role) {
$roles = role_fix_names(get_all_roles(), null, ROLENAME_ORIGINALANDSHORT);
foreach ($roles as $role) {
if (empty($role->archetype) or $role->archetype === 'guest' or $role->archetype === 'frontpage' or $role->archetype === 'student') {
$options[$role->id] = strip_tags(format_string($role->name)) . ' ('. $role->shortname . ')';
$options[$role->id] = $role->localname;
if ($role->archetype === 'frontpage') {
$defaultfrontpageroleid = $role->id;
}
@@ -77,7 +78,7 @@ if (!during_initial_install()) { //do not use during installation
$ADMIN->add('frontpage', new admin_externalpage('frontpagebackup', new lang_string('frontpagebackup', 'admin'), $CFG->wwwroot.'/backup/backup.php?id='.SITEID, 'moodle/backup:backupcourse', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagerestore', new lang_string('frontpagerestore', 'admin'), $CFG->wwwroot.'/files/index.php?id='.SITEID.'&amp;wdir=/backupdata', 'moodle/restore:restorecourse', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagerestore', new lang_string('frontpagerestore', 'admin'), $CFG->wwwroot.'/backup/restorefile.php?contextid='.$frontpagecontext->id, 'moodle/restore:restorecourse', false, $frontpagecontext));
$questioncapabilities = array(
'moodle/question:add',
+4
View File
@@ -58,6 +58,10 @@ if (has_capability('moodle/grade:manage', $systemcontext)
GRADE_NAVMETHOD_TABS => new lang_string('tabs', 'grades'),
GRADE_NAVMETHOD_COMBO => new lang_string('combo', 'grades'))));
$temp->add(new admin_setting_configtext('grade_export_userprofilefields', new lang_string('gradeexportuserprofilefields', 'grades'), new lang_string('gradeexportuserprofilefields_desc', 'grades'), 'firstname,lastname,idnumber,institution,department,email', PARAM_TEXT));
$temp->add(new admin_setting_configtext('grade_export_customprofilefields', new lang_string('gradeexportcustomprofilefields', 'grades'), new lang_string('gradeexportcustomprofilefields_desc', 'grades'), '', PARAM_TEXT));
$temp->add(new admin_setting_configcheckbox('recovergradesdefault', new lang_string('recovergradesdefault', 'grades'), new lang_string('recovergradesdefault_help', 'grades'), 0));
$temp->add(new admin_setting_special_gradeexport());
+1 -1
View File
@@ -14,7 +14,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_heading('iplookup', new lang_string('iplookup', 'admin'), new lang_string('iplookupinfo', 'admin')));
$temp->add(new admin_setting_configfile('geoipfile', new lang_string('geoipfile', 'admin'), new lang_string('configgeoipfile', 'admin', $CFG->dataroot.'/geoip/'), $CFG->dataroot.'/geoip/GeoLiteCity.dat'));
$temp->add(new admin_setting_configtext('googlemapkey', new lang_string('googlemapkey', 'admin'), new lang_string('configgooglemapkey', 'admin', $CFG->wwwroot), ''));
$temp->add(new admin_setting_configtext('googlemapkey3', new lang_string('googlemapkey3', 'admin'), new lang_string('googlemapkey3_help', 'admin'), '', PARAM_RAW, 60));
$temp->add(new admin_setting_configtext('allcountrycodes', new lang_string('allcountrycodes', 'admin'), new lang_string('configallcountrycodes', 'admin'), '', '/^(?:\w+(?:,\w+)*)?$/'));
+1 -1
View File
@@ -29,7 +29,7 @@ if (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode !== 'off')
new admin_externalpage(
'mnetpeer' . $host->id,
$host->name,
$CFG->wwwroot . '/admin/mnet/peers.php?step=update&hostid=' . $host->id,
$CFG->wwwroot . '/'.$CFG->admin.'/mnet/peers.php?step=update&hostid=' . $host->id,
'moodle/site:config'
)
);
+135 -168
View File
@@ -5,66 +5,43 @@
*/
if ($hassiteconfig) {
require_once("$CFG->libdir/pluginlib.php");
$allplugins = plugin_manager::instance()->get_plugins();
$ADMIN->add('modules', new admin_page_pluginsoverview());
// activity modules
$ADMIN->add('modules', new admin_category('modsettings', new lang_string('activitymodules')));
$ADMIN->add('modsettings', new admin_page_managemods());
$modules = $DB->get_records('modules', array(), "name ASC");
foreach ($modules as $module) {
$modulename = $module->name;
if (!file_exists("$CFG->dirroot/mod/$modulename/lib.php")) {
continue;
}
$strmodulename = new lang_string('modulename', 'mod_'.$modulename);
if (file_exists($CFG->dirroot.'/mod/'.$modulename.'/settings.php')) {
// do not show disabled modules in tree, keep only settings link on manage page
$settings = new admin_settingpage('modsetting'.$modulename, $strmodulename, 'moodle/site:config', !$module->visible);
include($CFG->dirroot.'/mod/'.$modulename.'/settings.php');
if ($settings) {
$ADMIN->add('modsettings', $settings);
}
}
foreach ($allplugins['mod'] as $module) {
$module->load_settings($ADMIN, 'modsettings', $hassiteconfig);
}
// hidden script for converting journals to online assignments (or something like that) linked from elsewhere
$ADMIN->add('modsettings', new admin_externalpage('oacleanup', 'Online Assignment Cleanup', $CFG->wwwroot.'/'.$CFG->admin.'/oacleanup.php', 'moodle/site:config', true));
// course formats
$ADMIN->add('modules', new admin_category('formatsettings', new lang_string('courseformats')));
$temp = new admin_settingpage('manageformats', new lang_string('manageformats', 'core_admin'));
$temp->add(new admin_setting_manageformats());
$ADMIN->add('formatsettings', $temp);
foreach ($allplugins['format'] as $format) {
$format->load_settings($ADMIN, 'formatsettings', $hassiteconfig);
}
// blocks
$ADMIN->add('modules', new admin_category('blocksettings', new lang_string('blocks')));
$ADMIN->add('blocksettings', new admin_page_manageblocks());
$blocks = $DB->get_records('block', array(), "name ASC");
foreach ($blocks as $block) {
$blockname = $block->name;
if (!file_exists("$CFG->dirroot/blocks/$blockname/block_$blockname.php")) {
continue;
}
$strblockname = new lang_string('pluginname', 'block_'.$blockname);
if (file_exists($CFG->dirroot.'/blocks/'.$blockname.'/settings.php')) {
$settings = new admin_settingpage('blocksetting'.$blockname, $strblockname, 'moodle/site:config', !$block->visible);
include($CFG->dirroot.'/blocks/'.$blockname.'/settings.php');
if ($settings) {
$ADMIN->add('blocksettings', $settings);
}
}
foreach ($allplugins['block'] as $block) {
$block->load_settings($ADMIN, 'blocksettings', $hassiteconfig);
}
// message outputs
$ADMIN->add('modules', new admin_category('messageoutputs', new lang_string('messageoutputs', 'message')));
$ADMIN->add('messageoutputs', new admin_page_managemessageoutputs());
$ADMIN->add('messageoutputs', new admin_page_defaultmessageoutputs());
require_once($CFG->dirroot.'/message/lib.php');
$processors = get_message_processors();
foreach ($processors as $processor) {
$processorname = $processor->name;
if (!$processor->available) {
continue;
}
if ($processor->hassettings) {
$strprocessorname = new lang_string('pluginname', 'message_'.$processorname);
$settings = new admin_settingpage('messagesetting'.$processorname, $strprocessorname, 'moodle/site:config', !$processor->enabled);
include($CFG->dirroot.'/message/output/'.$processor->name.'/settings.php');
if ($settings) {
$ADMIN->add('messageoutputs', $settings);
}
}
foreach ($allplugins['message'] as $processor) {
$processor->load_settings($ADMIN, 'messageoutputs', $hassiteconfig);
}
// authentication plugins
@@ -92,72 +69,27 @@ if ($hassiteconfig) {
$temp->add(new admin_setting_configtext('recaptchaprivatekey', new lang_string('recaptchaprivatekey', 'admin'), new lang_string('configrecaptchaprivatekey', 'admin'), '', PARAM_NOTAGS));
$ADMIN->add('authsettings', $temp);
$auths = get_plugin_list('auth');
$authsenabled = get_enabled_auth_plugins();
foreach ($auths as $authname => $authdir) {
$strauthname = new lang_string('pluginname', "auth_{$authname}");
// do not show disabled auths in tree, keep only settings link on manage page
$enabled = in_array($authname, $authsenabled);
if (file_exists($authdir.'/settings.php')) {
// TODO: finish implementation of common settings - locking, etc.
$settings = new admin_settingpage('authsetting'.$authname, $strauthname, 'moodle/site:config', !$enabled);
include($authdir.'/settings.php');
if ($settings) {
$ADMIN->add('authsettings', $settings);
}
} else {
$ADMIN->add('authsettings', new admin_externalpage('authsetting'.$authname, $strauthname, "$CFG->wwwroot/$CFG->admin/auth_config.php?auth=$authname", 'moodle/site:config', !$enabled));
}
foreach ($allplugins['auth'] as $auth) {
$auth->load_settings($ADMIN, 'authsettings', $hassiteconfig);
}
// Enrolment plugins
$ADMIN->add('modules', new admin_category('enrolments', new lang_string('enrolments', 'enrol')));
$temp = new admin_settingpage('manageenrols', new lang_string('manageenrols', 'enrol'));
$temp->add(new admin_setting_manageenrols());
if (empty($CFG->enrol_plugins_enabled)) {
$enabled = array();
} else {
$enabled = explode(',', $CFG->enrol_plugins_enabled);
}
$enrols = get_plugin_list('enrol');
$ADMIN->add('enrolments', $temp);
foreach($enrols as $enrol=>$enrolpath) {
if (!file_exists("$enrolpath/settings.php")) {
continue;
}
$settings = new admin_settingpage('enrolsettings'.$enrol, new lang_string('pluginname', 'enrol_'.$enrol), 'moodle/site:config', !in_array($enrol, $enabled));
// settings.php may create a subcategory or unset the settings completely
include("$enrolpath/settings.php");
if ($settings) {
$ADMIN->add('enrolments', $settings);
}
foreach($allplugins['enrol'] as $enrol) {
$enrol->load_settings($ADMIN, 'enrolments', $hassiteconfig);
}
unset($enabled);
unset($enrols);
/// Editor plugins
$ADMIN->add('modules', new admin_category('editorsettings', new lang_string('editors', 'editor')));
$temp = new admin_settingpage('manageeditors', new lang_string('editorsettings', 'editor'));
$temp->add(new admin_setting_manageeditors());
$htmleditors = editors_get_available();
$ADMIN->add('editorsettings', $temp);
$editors_available = editors_get_available();
foreach ($editors_available as $editor=>$editorstr) {
if (file_exists($CFG->dirroot . '/lib/editor/'.$editor.'/settings.php')) {
$settings = new admin_settingpage('editorsettings'.$editor, new lang_string('pluginname', 'editor_'.$editor), 'moodle/site:config');
// settings.php may create a subcategory or unset the settings completely
include($CFG->dirroot . '/lib/editor/'.$editor.'/settings.php');
if ($settings) {
$ADMIN->add('editorsettings', $settings);
}
}
foreach ($allplugins['editor'] as $editor) {
$editor->load_settings($ADMIN, 'editorsettings', $hassiteconfig);
}
/// License types
@@ -218,17 +150,8 @@ if ($hassiteconfig) {
}
$ADMIN->add('filtersettings', $temp);
$activefilters = filter_get_globally_enabled();
$filternames = filter_get_all_installed();
foreach ($filternames as $filterpath => $strfiltername) {
if (file_exists("$CFG->dirroot/$filterpath/filtersettings.php")) {
$settings = new admin_settingpage('filtersetting'.str_replace('/', '', $filterpath),
$strfiltername, 'moodle/site:config', !isset($activefilters[$filterpath]));
include("$CFG->dirroot/$filterpath/filtersettings.php");
if ($settings) {
$ADMIN->add('filtersettings', $settings);
}
}
foreach ($allplugins['filter'] as $filter) {
$filter->load_settings($ADMIN, 'filtersettings', $hassiteconfig);
}
@@ -264,18 +187,18 @@ if ($hassiteconfig) {
'portfolio_moderate_db_threshold',
new lang_string('moderatedbsizethreshold', 'portfolio'),
new lang_string('moderatedbsizethresholddesc', 'portfolio'),
20, PARAM_INTEGER, 3));
20, PARAM_INT, 3));
$temp->add(new admin_setting_configtext(
'portfolio_high_db_threshold',
new lang_string('highdbsizethreshold', 'portfolio'),
new lang_string('highdbsizethresholddesc', 'portfolio'),
50, PARAM_INTEGER, 3));
50, PARAM_INT, 3));
$ADMIN->add('portfoliosettings', $temp);
$ADMIN->add('portfoliosettings', new admin_externalpage('portfolionew', new lang_string('addnewportfolio', 'portfolio'), $url, 'moodle/site:config', true), '', $url);
$ADMIN->add('portfoliosettings', new admin_externalpage('portfoliodelete', new lang_string('deleteportfolio', 'portfolio'), $url, 'moodle/site:config', true), '', $url);
$ADMIN->add('portfoliosettings', new admin_externalpage('portfoliocontroller', new lang_string('manageportfolios', 'portfolio'), $url, 'moodle/site:config', true), '', $url);
$ADMIN->add('portfoliosettings', new admin_externalpage('portfolionew', new lang_string('addnewportfolio', 'portfolio'), $url, 'moodle/site:config', true));
$ADMIN->add('portfoliosettings', new admin_externalpage('portfoliodelete', new lang_string('deleteportfolio', 'portfolio'), $url, 'moodle/site:config', true));
$ADMIN->add('portfoliosettings', new admin_externalpage('portfoliocontroller', new lang_string('manageportfolios', 'portfolio'), $url, 'moodle/site:config', true));
foreach (portfolio_instances(false, false) as $portfolio) {
require_once($CFG->dirroot . '/portfolio/' . $portfolio->get('plugin') . '/lib.php');
@@ -287,9 +210,7 @@ if ($hassiteconfig) {
$portfolio->get('name'),
$url . '?action=edit&pf=' . $portfolio->get('id'),
'moodle/site:config'
),
$portfolio->get('name'),
$url . '?action=edit&pf=' . $portfolio->get('id')
)
);
}
@@ -311,36 +232,30 @@ if ($hassiteconfig) {
$temp->add(new admin_setting_configcheckbox('legacyfilesinnewcourses', new lang_string('legacyfilesinnewcourses', 'admin'), new lang_string('legacyfilesinnewcourses_help', 'admin'), 0));
$ADMIN->add('repositorysettings', $temp);
$ADMIN->add('repositorysettings', new admin_externalpage('repositorynew',
new lang_string('addplugin', 'repository'), $url, 'moodle/site:config', true),
'', $url);
new lang_string('addplugin', 'repository'), $url, 'moodle/site:config', true));
$ADMIN->add('repositorysettings', new admin_externalpage('repositorydelete',
new lang_string('deleterepository', 'repository'), $url, 'moodle/site:config', true),
'', $url);
new lang_string('deleterepository', 'repository'), $url, 'moodle/site:config', true));
$ADMIN->add('repositorysettings', new admin_externalpage('repositorycontroller',
new lang_string('manage', 'repository'), $url, 'moodle/site:config', true),
'', $url);
new lang_string('manage', 'repository'), $url, 'moodle/site:config', true));
$ADMIN->add('repositorysettings', new admin_externalpage('repositoryinstancenew',
new lang_string('createrepository', 'repository'), $url, 'moodle/site:config', true),
'', $url);
new lang_string('createrepository', 'repository'), $url, 'moodle/site:config', true));
$ADMIN->add('repositorysettings', new admin_externalpage('repositoryinstanceedit',
new lang_string('editrepositoryinstance', 'repository'), $url, 'moodle/site:config', true),
'', $url);
foreach (repository::get_types() as $repositorytype) {
//display setup page for plugins with: general options or multiple instances (e.g. has instance config)
$typeoptionnames = repository::static_function($repositorytype->get_typename(), 'get_type_option_names');
$instanceoptionnames = repository::static_function($repositorytype->get_typename(), 'get_instance_option_names');
if (!empty($typeoptionnames) || !empty($instanceoptionnames)) {
$params = array('action'=>'edit', 'sesskey'=>sesskey(), 'repos'=>$repositorytype->get_typename());
$settingsurl = new moodle_url("/$CFG->admin/repository.php", $params);
$repositoryexternalpage = new admin_externalpage('repositorysettings'.$repositorytype->get_typename(), $repositorytype->get_readablename(), $settingsurl);
$ADMIN->add('repositorysettings', $repositoryexternalpage);
}
new lang_string('editrepositoryinstance', 'repository'), $url, 'moodle/site:config', true));
foreach ($allplugins['repository'] as $repositorytype) {
$repositorytype->load_settings($ADMIN, 'repositorysettings', $hassiteconfig);
}
}
/// Web services
$ADMIN->add('modules', new admin_category('webservicesettings', new lang_string('webservices', 'webservice')));
// Mobile
$temp = new admin_settingpage('mobile', new lang_string('mobile','admin'), 'moodle/site:config', false);
$enablemobiledocurl = new moodle_url(get_docs_url('Enable_mobile_web_services'));
$enablemobiledoclink = html_writer::link($enablemobiledocurl, new lang_string('documentation'));
$temp->add(new admin_setting_enablemobileservice('enablemobilewebservice',
new lang_string('enablemobilewebservice', 'admin'),
new lang_string('configenablemobilewebservice', 'admin', $enablemobiledoclink), 0));
$temp->add(new admin_setting_configtext('mobilecssurl', new lang_string('mobilecssurl', 'admin'), new lang_string('configmobilecssurl','admin'), '', PARAM_URL));
$ADMIN->add('webservicesettings', $temp);
/// overview page
$temp = new admin_settingpage('webservicesoverview', new lang_string('webservicesoverview', 'webservice'));
$temp->add(new admin_setting_webservicesoverview());
@@ -349,9 +264,9 @@ if ($hassiteconfig) {
$ADMIN->add('webservicesettings', new admin_externalpage('webservicedocumentation', new lang_string('wsdocapi', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/documentation.php", 'moodle/site:config', false));
/// manage service
$temp = new admin_settingpage('externalservices', new lang_string('externalservices', 'webservice'));
$enablemobiledocurl = new moodle_url(get_docs_url('Enable_mobile_web_services'));
$enablemobiledoclink = html_writer::link($enablemobiledocurl, new lang_string('documentation'));
$temp->add(new admin_setting_enablemobileservice('enablemobilewebservice', new lang_string('enablemobilewebservice', 'admin'), new lang_string('configenablemobilewebservice', 'admin', $enablemobiledoclink), 0));
$temp->add(new admin_setting_enablemobileservice('enablemobilewebservice',
new lang_string('enablemobilewebservice', 'admin'),
new lang_string('configenablemobilewebservice', 'admin', $enablemobiledoclink), 0));
$temp->add(new admin_setting_heading('manageserviceshelpexplaination', new lang_string('information', 'webservice'), new lang_string('servicehelpexplanation', 'webservice')));
$temp->add(new admin_setting_manageexternalservices());
$ADMIN->add('webservicesettings', $temp);
@@ -375,17 +290,8 @@ if ($hassiteconfig) {
'admin'), new lang_string('configenablewsdocumentation', 'admin', $wsdoclink), false));
$ADMIN->add('webservicesettings', $temp);
/// links to protocol pages
$webservices_available = get_plugin_list('webservice');
$active_webservices = empty($CFG->webserviceprotocols) ? array() : explode(',', $CFG->webserviceprotocols);
foreach ($webservices_available as $webservice => $location) {
if (file_exists("$location/settings.php")) {
$name = new lang_string('pluginname', 'webservice_'.$webservice);
$settings = new admin_settingpage('webservicesetting'.$webservice, $name, 'moodle/site:config', !in_array($webservice, $active_webservices) or empty($CFG->enablewebservices));
include("$location/settings.php");
if ($settings) {
$ADMIN->add('webservicesettings', $settings);
}
}
foreach ($allplugins['webservice'] as $webservice) {
$webservice->load_settings($ADMIN, 'webservicesettings', $hassiteconfig);
}
/// manage token page link
$ADMIN->add('webservicesettings', new admin_externalpage('addwebservicetoken', new lang_string('managetokens', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/tokens.php", 'moodle/site:config', true));
@@ -395,9 +301,15 @@ if ($hassiteconfig) {
$temp->add(new admin_setting_heading('webservicesaredisabled', '', new lang_string('disabledwarning', 'webservice')));
}
$ADMIN->add('webservicesettings', $temp);
}
// Question type settings
if ($hassiteconfig || has_capability('moodle/question:config', $systemcontext)) {
if (!$hassiteconfig) {
require_once("$CFG->libdir/pluginlib.php");
$allplugins = plugin_manager::instance()->get_plugins();
}
// Question behaviour settings.
$ADMIN->add('modules', new admin_category('qbehavioursettings', new lang_string('questionbehaviours', 'admin')));
$ADMIN->add('qbehavioursettings', new admin_page_manageqbehaviours());
@@ -405,30 +317,67 @@ if ($hassiteconfig || has_capability('moodle/question:config', $systemcontext))
// Question type settings.
$ADMIN->add('modules', new admin_category('qtypesettings', new lang_string('questiontypes', 'admin')));
$ADMIN->add('qtypesettings', new admin_page_manageqtypes());
$qtypes = get_plugin_list('qtype');
foreach ($qtypes as $qtype => $path) {
$settingsfile = $path . '/settings.php';
if (file_exists($settingsfile)) {
$settings = new admin_settingpage('qtypesetting' . $qtype,
new lang_string('pluginname', 'qtype_' . $qtype), 'moodle/question:config');
include($settingsfile);
if ($settings) {
$ADMIN->add('qtypesettings', $settings);
}
}
// Question preview defaults.
$settings = new admin_settingpage('qdefaultsetting',
get_string('questionpreviewdefaults', 'question'),
'moodle/question:config');
$ADMIN->add('qtypesettings', $settings);
$settings->add(new admin_setting_heading('qdefaultsetting_preview_options',
'', get_string('questionpreviewdefaults_desc', 'question')));
// These keys are question_display_options::HIDDEN and VISIBLE.
$hiddenofvisible = array(
0 => get_string('notshown', 'question'),
1 => get_string('shown', 'question'),
);
$settings->add(new admin_setting_question_behaviour('question_preview/behaviour',
get_string('howquestionsbehave', 'question'), '',
'deferredfeedback'));
$settings->add(new admin_setting_configselect('question_preview/correctness',
get_string('whethercorrect', 'question'), '', 1, $hiddenofvisible));
// These keys are question_display_options::HIDDEN, MARK_ONLY and MARK_AND_MAX.
$marksoptions = array(
0 => get_string('notshown', 'question'),
1 => get_string('showmaxmarkonly', 'question'),
2 => get_string('showmarkandmax', 'question'),
);
$settings->add(new admin_setting_configselect('question_preview/marks',
get_string('marks', 'question'), '', 1, $marksoptions));
$settings->add(new admin_setting_configselect('question_preview/markdp',
get_string('decimalplacesingrades', 'question'), '', 2, array(0, 1, 2, 3, 4, 5, 6, 7)));
$settings->add(new admin_setting_configselect('question_preview/feedback',
get_string('specificfeedback', 'question'), '', 1, $hiddenofvisible));
$settings->add(new admin_setting_configselect('question_preview/generalfeedback',
get_string('generalfeedback', 'question'), '', 1, $hiddenofvisible));
$settings->add(new admin_setting_configselect('question_preview/rightanswer',
get_string('rightanswer', 'question'), '', 1, $hiddenofvisible));
$settings->add(new admin_setting_configselect('question_preview/history',
get_string('responsehistory', 'question'), '', 0, $hiddenofvisible));
// Settings for particular question types.
foreach ($allplugins['qtype'] as $qtype) {
$qtype->load_settings($ADMIN, 'qtypesettings', $hassiteconfig);
}
}
// Plagiarism plugin settings
if ($hassiteconfig && !empty($CFG->enableplagiarism)) {
$ADMIN->add('modules', new admin_category('plagiarism', new lang_string('plagiarism', 'plagiarism')));
$temp = new admin_settingpage('plagiarismsettings', new lang_string('plagiarismsettings', 'plagiarism'));
$temp->add(new admin_setting_manageplagiarism());
$ADMIN->add('plagiarism', $temp);
foreach (get_plugin_list('plagiarism') as $plugin => $plugindir) {
if (file_exists($plugindir.'/settings.php')) {
$ADMIN->add('plagiarism', new admin_externalpage('plagiarism'.$plugin, new lang_string($plugin, 'plagiarism_'.$plugin), "$CFG->wwwroot/plagiarism/$plugin/settings.php", 'moodle/site:config'));
}
$ADMIN->add('plagiarism', new admin_externalpage('manageplagiarismplugins', new lang_string('manageplagiarism', 'plagiarism'),
$CFG->wwwroot . '/' . $CFG->admin . '/plagiarism.php'));
foreach ($allplugins['plagiarism'] as $plugin) {
$plugin->load_settings($ADMIN, 'plagiarism', $hassiteconfig);
}
}
$ADMIN->add('reports', new admin_externalpage('comments', new lang_string('comments'), $CFG->wwwroot.'/comment/', 'moodle/site:viewreports'));
@@ -492,6 +441,22 @@ foreach (get_plugin_list('tool') as $plugin => $plugindir) {
}
}
// Now add the Cache plugins
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('cache', new lang_string('caching', 'cache')));
$ADMIN->add('cache', new admin_externalpage('cacheconfig', new lang_string('cacheconfig', 'cache'), $CFG->wwwroot .'/cache/admin.php'));
$ADMIN->add('cache', new admin_externalpage('cachetestperformance', new lang_string('testperformance', 'cache'), $CFG->wwwroot . '/cache/testperformance.php'));
$ADMIN->add('cache', new admin_category('cachestores', new lang_string('cachestores', 'cache')));
foreach (get_plugin_list('cachestore') as $plugin => $path) {
$settingspath = $path.'/settings.php';
if (file_exists($settingspath)) {
$settings = new admin_settingpage('cachestore_'.$plugin.'_settings', new lang_string('pluginname', 'cachestore_'.$plugin), 'moodle/site:config');
include($settingspath);
$ADMIN->add('cachestores', $settings);
}
}
}
/// Add all local plugins - must be always last!
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('localplugins', new lang_string('localplugins')));
@@ -499,6 +464,8 @@ if ($hassiteconfig) {
$CFG->wwwroot . '/' . $CFG->admin . '/localplugins.php'));
}
// extend settings for each local plugin. Note that their settings may be in any part of the
// settings tree and may be visible not only for administrators. We can not use $allplugins here
foreach (get_plugin_list('local') as $plugin => $plugindir) {
$settings_path = "$plugindir/settings.php";
if (file_exists($settings_path)) {
+10 -2
View File
@@ -23,9 +23,12 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
new lang_string('configprofileroles', 'admin'),
array('student', 'teacher', 'editingteacher')));
$max_upload_choices = get_max_upload_sizes();
$maxbytes = 0;
if (!empty($CFG->maxbytes)) {
$maxbytes = $CFG->maxbytes;
}
$max_upload_choices = get_max_upload_sizes(0, 0, 0, $maxbytes);
// maxbytes set to 0 will allow the maximum server limit for uploads
$max_upload_choices[0] = new lang_string('serverlimit', 'admin');
$temp->add(new admin_setting_configselect('maxbytes', new lang_string('maxbytes', 'admin'), new lang_string('configmaxbytes', 'admin'), 0, $max_upload_choices));
// 100MB
$defaultuserquota = 104857600;
@@ -59,6 +62,11 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('cronclionly', new lang_string('cronclionly', 'admin'), new lang_string('configcronclionly', 'admin'), 0));
$temp->add(new admin_setting_configpasswordunmask('cronremotepassword', new lang_string('cronremotepassword', 'admin'), new lang_string('configcronremotepassword', 'admin'), ''));
$options = array(0=>get_string('no'), 3=>3, 5=>5, 7=>7, 10=>10, 20=>20, 30=>30, 50=>50, 100=>100);
$temp->add(new admin_setting_configselect('lockoutthreshold', new lang_string('lockoutthreshold', 'admin'), new lang_string('lockoutthreshold_desc', 'admin'), 0, $options));
$temp->add(new admin_setting_configduration('lockoutwindow', new lang_string('lockoutwindow', 'admin'), new lang_string('lockoutwindow_desc', 'admin'), 60*30));
$temp->add(new admin_setting_configduration('lockoutduration', new lang_string('lockoutduration', 'admin'), new lang_string('lockoutduration_desc', 'admin'), 60*30));
$temp->add(new admin_setting_configcheckbox('passwordpolicy', new lang_string('passwordpolicy', 'admin'), new lang_string('configpasswordpolicy', 'admin'), 1));
$temp->add(new admin_setting_configtext('minpasswordlength', new lang_string('minpasswordlength', 'admin'), new lang_string('configminpasswordlength', 'admin'), 8, PARAM_INT));
$temp->add(new admin_setting_configtext('minpassworddigits', new lang_string('minpassworddigits', 'admin'), new lang_string('configminpassworddigits', 'admin'), 1, PARAM_INT));
+6 -28
View File
@@ -7,9 +7,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "systempaths" settingpage
$temp = new admin_settingpage('systempaths', new lang_string('systempaths','admin'));
$temp->add(new admin_setting_configselect('gdversion', new lang_string('gdversion','admin'), new lang_string('configgdversion', 'admin'), check_gd_version(), array('0' => new lang_string('gdnot'),
'1' => new lang_string('gd1'),
'2' => new lang_string('gd2'))));
$temp->add(new admin_setting_configexecutable('pathtodu', new lang_string('pathtodu', 'admin'), new lang_string('configpathtodu', 'admin'), ''));
$temp->add(new admin_setting_configexecutable('aspellpath', new lang_string('aspellpath', 'admin'), new lang_string('edhelpaspellpath'), ''));
$temp->add(new admin_setting_configexecutable('pathtodot', new lang_string('pathtodot', 'admin'), new lang_string('pathtodot_help', 'admin'), ''));
@@ -177,8 +175,6 @@ $ADMIN->add('server', new admin_externalpage('phpinfo', new lang_string('phpinfo
// "performance" settingpage
$temp = new admin_settingpage('performance', new lang_string('performance', 'admin'));
$temp->add(new admin_setting_configtext('numcoursesincombo', new lang_string('numcoursesincombo', 'admin'), new lang_string('numcoursesincombo_help', 'admin'), 500));
$temp->add(new admin_setting_configselect('extramemorylimit', new lang_string('extramemorylimit', 'admin'),
new lang_string('configextramemorylimit', 'admin'), '512M',
// if this option is set to 0, default 128M will be used
@@ -193,29 +189,7 @@ $temp->add(new admin_setting_configtext('curlcache', new lang_string('curlcache'
$temp->add(new admin_setting_configtext('curltimeoutkbitrate', new lang_string('curltimeoutkbitrate', 'admin'),
new lang_string('curltimeoutkbitrate_help', 'admin'), 56, PARAM_INT));
/* //TODO: we need to fix code instead of relying on slow rcache, enable this once we have some code that is actually using it
$temp->add(new admin_setting_special_selectsetup('cachetype', new lang_string('cachetype', 'admin'),
new lang_string('configcachetype', 'admin'), '',
array( '' => new lang_string('none'),
'internal' => 'internal',
'memcached' => 'memcached',
'eaccelerator' => 'eaccelerator')));
// NOTE: $CFG->rcache is forced to bool in lib/setup.php
$temp->add(new admin_setting_special_selectsetup('rcache', new lang_string('rcache', 'admin'),
new lang_string('configrcache', 'admin'), 0,
array( '0' => new lang_string('no'),
'1' => new lang_string('yes'))));
$temp->add(new admin_setting_configtext('rcachettl', new lang_string('rcachettl', 'admin'),
new lang_string('configrcachettl', 'admin'), 10));
$temp->add(new admin_setting_configtext('intcachemax', new lang_string('intcachemax', 'admin'),
new lang_string('configintcachemax', 'admin'), 10));
$temp->add(new admin_setting_configtext('memcachedhosts', new lang_string('memcachedhosts', 'admin'),
new lang_string('configmemcachedhosts', 'admin'), ''));
$temp->add(new admin_setting_configselect('memcachedpconn', new lang_string('memcachedpconn', 'admin'),
new lang_string('configmemcachedpconn', 'admin'), 0,
array( '0' => new lang_string('no'),
'1' => new lang_string('yes'))));
*/
$ADMIN->add('server', $temp);
@@ -227,6 +201,10 @@ if (empty($CFG->disableupdatenotifications)) {
$temp = new admin_settingpage('updatenotifications', new lang_string('updatenotifications', 'core_admin'));
$temp->add(new admin_setting_configcheckbox('updateautocheck', new lang_string('updateautocheck', 'core_admin'),
new lang_string('updateautocheck_desc', 'core_admin'), 1));
if (empty($CFG->disableupdateautodeploy)) {
$temp->add(new admin_setting_configcheckbox('updateautodeploy', new lang_string('updateautodeploy', 'core_admin'),
new lang_string('updateautodeploy_desc', 'core_admin'), 0));
}
$temp->add(new admin_setting_configselect('updateminmaturity', new lang_string('updateminmaturity', 'core_admin'),
new lang_string('updateminmaturity_desc', 'core_admin'), MATURITY_STABLE,
array(
+3 -5
View File
@@ -26,11 +26,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$optionalsubsystems->add(new admin_setting_configcheckbox('enablerssfeeds', new lang_string('enablerssfeeds', 'admin'), new lang_string('configenablerssfeeds', 'admin'), 0));
$optionalsubsystems->add(new admin_setting_bloglevel('bloglevel', new lang_string('bloglevel', 'admin'),
new lang_string('configbloglevel', 'admin'), 4, array(5 => new lang_string('worldblogs','blog'),
4 => new lang_string('siteblogs','blog'),
1 => new lang_string('personalblogs','blog'),
0 => new lang_string('disableblogs','blog'))));
$optionalsubsystems->add(new admin_setting_configcheckbox('enableblogs', new lang_string('enableblogs', 'admin'), new lang_string('configenableblogs', 'admin'), 1));
$options = array('off'=>new lang_string('off', 'mnet'), 'strict'=>new lang_string('on', 'mnet'));
$optionalsubsystems->add(new admin_setting_configselect('mnet_dispatcher_mode', new lang_string('net', 'mnet'), new lang_string('configmnet', 'mnet'), 'off', $options));
@@ -45,4 +41,6 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$checkbox->set_affects_modinfo(true);
$optionalsubsystems->add(new admin_setting_configcheckbox('enableplagiarism', new lang_string('enableplagiarism','plagiarism'), new lang_string('configenableplagiarism','plagiarism'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablebadges', new lang_string('enablebadges', 'badges'), new lang_string('configenablebadges', 'badges'), 1));
}
+2 -1
View File
@@ -5,7 +5,7 @@
// since they need to exist *before* settingpages and externalpages
// are added to them.
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$systemcontext = context_system::instance();
$hassiteconfig = has_capability('moodle/site:config', $systemcontext);
$ADMIN->add('root', new admin_externalpage('adminnotifications', new lang_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
@@ -30,6 +30,7 @@ if ($hassiteconfig) {
$ADMIN->add('root', new admin_category('users', new lang_string('users','admin')));
$ADMIN->add('root', new admin_category('courses', new lang_string('courses','admin')));
$ADMIN->add('root', new admin_category('grades', new lang_string('grades')));
$ADMIN->add('root', new admin_category('badges', new lang_string('badges'), empty($CFG->enablebadges)));
$ADMIN->add('root', new admin_category('location', new lang_string('location','admin')));
$ADMIN->add('root', new admin_category('language', new lang_string('language')));
$ADMIN->add('root', new admin_category('modules', new lang_string('plugins', 'admin')));
+6 -3
View File
@@ -34,7 +34,7 @@ if ($hassiteconfig
$temp = new admin_settingpage('userpolicies', new lang_string('userpolicies', 'admin'));
if ($ADMIN->fulltree) {
if (!during_initial_install()) {
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
$otherroles = array();
$guestroles = array();
@@ -45,8 +45,9 @@ if ($hassiteconfig
$defaultuserid = null;
$defaultguestid = null;
foreach (get_all_roles() as $role) {
$rolename = strip_tags(format_string($role->name)) . ' ('. $role->shortname . ')';
$roles = role_fix_names(get_all_roles(), null, ROLENAME_ORIGINALANDSHORT);
foreach ($roles as $role) {
$rolename = $role->localname;
switch ($role->archetype) {
case 'manager':
$creatornewroles[$role->id] = $rolename;
@@ -149,7 +150,9 @@ if ($hassiteconfig
'department' => new lang_string('department'),
'institution' => new lang_string('institution'),
)));
$temp->add(new admin_setting_configtext('maxusersperpage', new lang_string('maxusersperpage','admin'), new lang_string('configmaxusersperpage','admin'), 100, PARAM_INT));
$temp->add(new admin_setting_configcheckbox('enablegravatar', new lang_string('enablegravatar', 'admin'), new lang_string('enablegravatar_help', 'admin'), 0));
$temp->add(new admin_setting_configtext('gravatardefaulturl', new lang_string('gravatardefaulturl', 'admin'), new lang_string('gravatardefaulturl_help', 'admin'), 'mm'));
}
$ADMIN->add('roles', $temp);
+113
View File
@@ -0,0 +1,113 @@
<?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/>.
/**
* Steps definitions related with administration.
*
* @package core
* @category test
* @copyright 2013 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.
require_once(__DIR__ . '/../../../lib/behat/behat_base.php');
require_once(__DIR__ . '/../../../lib/behat/behat_field_manager.php');
use Behat\Gherkin\Node\TableNode as TableNode,
Behat\Mink\Exception\ElementNotFoundException as ElementNotFoundException;
/**
* Site administration level steps definitions.
*
* @package core
* @category test
* @copyright 2013 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class behat_admin extends behat_base {
/**
* Sets the specified site settings. A table with | Setting label | value | is expected.
*
* @Given /^I set the following administration settings values:$/
* @param TableNode $table
*/
public function i_set_the_following_administration_settings_values(TableNode $table) {
if (!$data = $table->getRowsHash()) {
return;
}
foreach ($data as $label => $value) {
// 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")');
}
// Search by label.
$searchbox = $this->find_field(get_string('searchinsettings', 'admin'));
$searchbox->setValue($label);
$submitsearch = $this->find('css', 'form.adminsearchform input[type=submit]');
$submitsearch->press();
$this->wait(self::TIMEOUT, '(document.readyState === "complete")');
// 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.
$exception = new ElementNotFoundException($this->getSession(), '"' . $label . '" administration setting ');
// The argument should be converted to an xpath literal.
$label = $this->getSession()->getSelectorsHandler()->xpathLiteral($label);
$fieldxpath = "//*[self::input | self::textarea | self::select][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')]" .
"[@id=//label[contains(normalize-space(.), $label)]/@for]";
$fieldnode = $this->find('xpath', $fieldxpath, $exception);
$formfieldtypenode = $this->find('xpath', $fieldxpath . "/ancestor::div[@class='form-setting']" .
"/child::div[contains(concat(' ', @class, ' '), ' form-')]/child::*/parent::div");
// Getting the class which contains the field type.
$classes = explode(' ', $formfieldtypenode->getAttribute('class'));
foreach ($classes as $class) {
if (substr($class, 0, 5) == 'form-') {
$type = substr($class, 5);
}
}
// Instantiating the appropiate field type.
$field = behat_field_manager::get_field_instance($type, $fieldnode, $this->getSession());
$field->set_value($value);
$this->find_button(get_string('savechanges'))->press();
}
}
/**
* Waits with the provided params if we are running a JS session.
*
* @param int $timeout
* @param string $javascript
* @return void
*/
protected function wait($timeout, $javascript = false) {
if ($this->running_javascript()) {
$this->getSession()->wait($timeout, $javascript);
}
}
}
@@ -0,0 +1,22 @@
@core @core_admin
Feature: Display extended course names
In order to display more info about the courses
As an admin
I need to display courses short names along with courses full names
Background:
Given the following "courses" exists:
| fullname | shortname | category |
| Course fullname | C_shortname | 0 |
And I log in as "admin"
Scenario: Courses list without extended course names (default value)
Then I should see "Course fullname"
And I should not see "C_shortname Course fullname"
Scenario: Courses list with extended course names
Given I click on "Courses" "link" in the "//div[@id='settingsnav']/descendant::li[contains(concat(' ', normalize-space(@class), ' '), ' type_setting ')][not(contains(., 'Site administration'))][contains(., 'Appearance')]" "xpath_element"
And I check "Display extended course names"
When I press "Save changes"
And I am on homepage
Then I should see "C_shortname Course fullname"
+69
View File
@@ -0,0 +1,69 @@
@core @core_admin
Feature: An administrator can filter user accounts by role, cohort and other profile fields
In order to find the user accounts I am looking for
As an admin
I need to filter the users account list using different filter
Background:
Given the following "users" exists:
| 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:
| name | idnumber |
| Cohort 1 | CH1 |
And the following "courses" exists:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exists:
| 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 follow "Browse list of users"
@javascript
Scenario: Filter user accounts by role and cohort
When I fill the moodle form with:
| courserole_rl | Student |
| courserole_ct | any category |
| courserole | C1 |
And I press "Add filter"
Then I should see "User One"
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:
| cohort | CH1 |
And I press "Add filter"
And I should not see "User One"
And I should see "User Two"
And I should see "User Three"
And I should not see "User Four"
And I press "Remove all filters"
And I should see "User One"
And I should see "User Two"
And I should see "User Three"
And I should see "User Four"
@javascript
Scenario: Filter user accounts by confirm and authentication method
When I fill the moodle form with:
| 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:
| Authentication | manual |
And I press "Add filter"
And I should see "User One"
And I should not see "User Two"
And I should not see "User Three"
And I should not see "User Four"
+46
View File
@@ -0,0 +1,46 @@
@core @core_admin @_only_local
Feature: Upload users
In order to add users to the system
As an admin
I need to upload files containing the users data
@javascript
Scenario: Upload users enrolling them on courses and groups
Given the following "courses" exists:
| fullname | shortname | category |
| Maths | math102 | 0 |
And the following "groups" exists:
| 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 press "Upload users"
Then I should see "Upload users preview"
And I should see "Tom"
And I should see "Jones"
And I should see "verysecret"
And I should see "jonest@someplace.edu"
And I should see "Reznor"
And I should see "course1"
And I should see "math102"
And I should see "group1"
And I should see "Section 1"
And I press "Upload users"
And I press "Continue"
And I follow "Browse list of users"
And I should see "Tom Jones"
And I should see "Trent Reznor"
And I should see "reznor@someplace.edu"
And I am on homepage
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 the "members" select box should contain "Tom Jones"
+2 -2
View File
@@ -14,7 +14,7 @@
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
$strtimezone = get_string("timezone");
$strsavechanges = get_string("savechanges");
@@ -44,7 +44,7 @@
$timezones = get_list_of_timezones();
echo '<center><form action="timezone.php" method="post">';
echo "$strusers ($strall): ";
echo html_writer::label($strusers . ' (' . $strall . '): ', 'menuzone');
echo html_writer::select($timezones, "zone", $current, array('99'=>get_string("serverlocaltime")));
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />";
echo '<input type="submit" value="'.s($strsavechanges).'" />';
@@ -26,13 +26,13 @@ define('NO_OUTPUT_BUFFERING', true);
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/locallib.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/upgradableassignmentstable.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/upgradableassignmentsbatchform.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/upgradableassignmentstable.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/upgradableassignmentsbatchform.php');
require_sesskey();
// admin_externalpage_setup calls require_login and checks moodle/site:config
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade', '', array(), tool_assignmentupgrade_url('batchupgrade'));
$PAGE->set_pagelayout('maintenance');
@@ -46,7 +46,8 @@ if (!$confirm) {
die();
}
raise_memory_limit(MEMORY_EXTRA);
session_get_instance()->write_close(); // release session
// Release session.
session_get_instance()->write_close();
echo $renderer->header();
echo $renderer->heading(get_string('batchupgrade', 'tool_assignmentupgrade'));
@@ -62,7 +63,8 @@ $total = count($assignmentids);
foreach ($assignmentids as $assignmentid) {
list($summary, $success, $log) = tool_assignmentupgrade_upgrade_assignment($assignmentid);
$current += 1;
echo $renderer->heading(get_string('upgradeprogress', 'tool_assignmentupgrade', array('current'=>$current, 'total'=>$total)), 3);
$params = array('current'=>$current, 'total'=>$total);
echo $renderer->heading(get_string('upgradeprogress', 'tool_assignmentupgrade', $params), 3);
echo $renderer->convert_assignment_result($summary, $success, $log);
}
+2 -2
View File
@@ -35,9 +35,9 @@
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/locallib.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
// admin_externalpage_setup calls require_login and checks moodle/site:config
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade');
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
@@ -36,6 +36,7 @@ $string['conversioncomplete'] = 'Assignment converted';
$string['conversionfailed'] = 'The assignment conversion was not successful. The log from the upgrade was: <br />{$a}';
$string['listnotupgraded'] = 'List assignments that have not been upgraded';
$string['listnotupgraded_desc'] = 'You can upgrade individual assignments from here';
$string['noassignmentsselected'] = 'No assignments selected';
$string['noassignmentstoupgrade'] = 'There are no assignments that require upgrading';
$string['notsupported'] = '';
$string['notupgradedintro'] = 'This page lists the assignments created with an older version of Moodle that have not been upgraded to the new assignment module in Moodle 2.3. Not all assignments can be upgraded - if they were created with a custom assignment subtype, then that subtype will need to be upgraded to the new assignment plugin format in order to complete the upgrade.';
@@ -24,12 +24,12 @@
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/locallib.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/upgradableassignmentstable.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/upgradableassignmentsbatchform.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/paginationform.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/upgradableassignmentstable.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/upgradableassignmentsbatchform.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/paginationform.php');
// admin_externalpage_setup calls require_login and checks moodle/site:config
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade', '', array(), tool_assignmentupgrade_url('listnotupgraded'));
$PAGE->navbar->add(get_string('listnotupgraded', 'tool_assignmentupgrade'));
@@ -57,4 +57,3 @@ if ($data && $data->selectedassignments != '' || $data && isset($data->upgradeal
echo $renderer->assignment_list_page($assignments, $batchform, $paginationform);
}
+29 -10
View File
@@ -51,17 +51,24 @@ class tool_assignmentupgrade_batchoperationconfirm implements renderable {
* Constructor for this class
* @param stdClass $data - The data from the previous batch form
*/
function __construct($data) {
public function __construct($data) {
if (isset($data->upgradeselected)) {
$this->continuemessage = get_string('upgradeselectedcount', 'tool_assignmentupgrade', count(explode(',', $data->selectedassignments)));
$this->continueurl = new moodle_url('/admin/tool/assignmentupgrade/batchupgrade.php', array('upgradeselected'=>'1', 'confirm'=>'1', 'sesskey'=>sesskey(), 'selected'=>$data->selectedassignments));
$this->continuemessage = get_string('upgradeselectedcount',
'tool_assignmentupgrade',
count(explode(',', $data->selectedassignments)));
$urlparams = array('upgradeselected'=>'1',
'confirm'=>'1',
'sesskey'=>sesskey(),
'selected'=>$data->selectedassignments);
$this->continueurl = new moodle_url('/admin/tool/assignmentupgrade/batchupgrade.php', $urlparams);
} else if (isset($data->upgradeall)) {
if (!tool_assignmentupgrade_any_upgradable_assignments()) {
$this->continuemessage = get_string('noassignmentstoupgrade', 'tool_assignmentupgrade');
$this->continueurl = '';
} else {
$this->continuemessage = get_string('upgradeallconfirm', 'tool_assignmentupgrade');
$this->continueurl = new moodle_url('/admin/tool/assignmentupgrade/batchupgrade.php', array('upgradeall'=>'1', 'confirm'=>'1', 'sesskey'=>sesskey()));
$urlparams = array('upgradeall'=>'1', 'confirm'=>'1', 'sesskey'=>sesskey());
$this->continueurl = new moodle_url('/admin/tool/assignmentupgrade/batchupgrade.php', $urlparams);
}
}
}
@@ -86,7 +93,8 @@ class tool_assignmentupgrade_action {
/**
* Constructor to set the fields.
*
* In order to create a new tool_assignmentupgrade_action instance you must use the tool_assignmentupgrade_action::make
* In order to create a new tool_assignmentupgrade_action instance you must use
* the tool_assignmentupgrade_action::make
* method.
*
* @param string $name the name of this action.
@@ -120,8 +128,13 @@ class tool_assignmentupgrade_action {
function tool_assignmentupgrade_any_upgradable_assignments() {
global $DB, $CFG;
require_once($CFG->dirroot . '/mod/assign/locallib.php');
// first find all the unique assignment types
$types = $DB->get_records_sql('SELECT plugin AS assignmenttype, value AS version FROM {config_plugins} WHERE name = ? AND plugin LIKE ?', array('version', 'assignment_%'));
// First find all the unique assignment types.
$types = $DB->get_records_sql('SELECT plugin AS assignmenttype,
value AS version
FROM {config_plugins}
WHERE
name = ? AND
plugin LIKE ?', array('version', 'assignment_%'));
$upgradabletypes = array();
@@ -133,7 +146,7 @@ function tool_assignmentupgrade_any_upgradable_assignments() {
}
list($sql, $params) = $DB->get_in_or_equal($upgradabletypes);
$count = $DB->count_records_sql('SELECT COUNT(id) from {assignment} where assignmenttype ' . $sql, $params);
$count = $DB->count_records_sql('SELECT COUNT(id) FROM {assignment} WHERE assignmenttype ' . $sql, $params);
return $count > 0;
}
@@ -145,8 +158,14 @@ function tool_assignmentupgrade_any_upgradable_assignments() {
function tool_assignmentupgrade_load_all_upgradable_assignmentids() {
global $DB, $CFG;
require_once($CFG->dirroot . '/mod/assign/locallib.php');
// first find all the unique assignment types
$types = $DB->get_records_sql('SELECT plugin AS assignmenttype, value AS version FROM {config_plugins} WHERE name = ? AND plugin LIKE ?', array('version', 'assignment_%'));
// First find all the unique assignment types.
$types = $DB->get_records_sql('SELECT
plugin AS assignmenttype,
value AS version
FROM {config_plugins}
WHERE
name = ? AND
plugin LIKE ?', array('version', 'assignment_%'));
$upgradabletypes = array();
+3 -4
View File
@@ -1,4 +1,3 @@
M.tool_assignmentupgrade = {
init_upgrade_table: function(Y) {
@@ -42,8 +41,8 @@ M.tool_assignmentupgrade = {
}
});
var batchform = Y.one('.tool_assignmentupgrade_batchform form');
batchform.on('submit', function(e) {
var upgradeselectedbutton = Y.one('#id_upgradeselected');
upgradeselectedbutton.on('click', function(e) {
checkboxes = Y.all('td.c0 input');
var selectedassignments = [];
checkboxes.each(function(node) {
@@ -56,7 +55,7 @@ M.tool_assignmentupgrade = {
assignmentsinput = Y.one('input.selectedassignments');
assignmentsinput.set('value', selectedassignments.join(','));
if (selectedassignments.length == 0) {
alert(M.str.assign.noassignmentsselected);
alert(M.str.tool_assignmentupgrade.noassignmentsselected);
e.preventDefault();
}
});
@@ -24,9 +24,7 @@
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
/** Include formslib.php */
require_once ($CFG->libdir.'/formslib.php');
require_once($CFG->libdir.'/formslib.php');
/**
* Assignment upgrade table display options
@@ -39,20 +37,20 @@ class tool_assignmentupgrade_pagination_form extends moodleform {
/**
* Define this form - called from the parent constructor
*/
function definition() {
public function definition() {
$mform = $this->_form;
$instance = $this->_customdata;
$mform->addElement('header', 'general', get_string('assignmentsperpage', 'tool_assignmentupgrade'));
// visible elements
// Visible elements.
$options = array(10=>'10', 20=>'20', 50=>'50', 100=>'100');
$mform->addElement('select', 'perpage', get_string('assignmentsperpage', 'assign'), $options);
// hidden params
// Hidden params.
$mform->addElement('hidden', 'action', 'saveoptions');
$mform->setType('action', PARAM_ALPHA);
// buttons
// Buttons.
$this->add_action_buttons(false, get_string('updatetable', 'tool_assignmentupgrade'));
}
}
+9 -4
View File
@@ -100,7 +100,9 @@ class tool_assignmentupgrade_renderer extends plugin_renderer_base {
$output = '';
if ($confirm->continueurl) {
$output .= $this->output->confirm($confirm->continuemessage, $confirm->continueurl, tool_assignmentupgrade_url('listnotupgraded'));
$output .= $this->output->confirm($confirm->continuemessage,
$confirm->continueurl,
tool_assignmentupgrade_url('listnotupgraded'));
} else {
$output .= $this->output->box($confirm->continuemessage);
$output .= $this->output->continue_button(tool_assignmentupgrade_url('listnotupgraded'));
@@ -115,11 +117,13 @@ class tool_assignmentupgrade_renderer extends plugin_renderer_base {
* @param tool_assignmentupgrade_pagination_form $paginationform Form which contains the preferences for paginating the table
* @return string html to output.
*/
public function assignment_list_page(tool_assignmentupgrade_assignments_table $assignments, tool_assignmentupgrade_batchoperations_form $batchform, tool_assignmentupgrade_pagination_form $paginationform) {
public function assignment_list_page(tool_assignmentupgrade_assignments_table $assignments,
tool_assignmentupgrade_batchoperations_form $batchform,
tool_assignmentupgrade_pagination_form $paginationform) {
$output = '';
$output .= $this->header();
$this->page->requires->js_init_call('M.tool_assignmentupgrade.init_upgrade_table', array());
$this->page->requires->string_for_js('noassignmentsselected', 'tool_assignmentupgrade');
$output .= $this->heading(get_string('notupgradedtitle', 'tool_assignmentupgrade'));
$output .= $this->box(get_string('notupgradedintro', 'tool_assignmentupgrade'));
@@ -161,7 +165,8 @@ class tool_assignmentupgrade_renderer extends plugin_renderer_base {
$output .= $this->container(get_string('conversionfailed', 'tool_assignmentupgrade', $log));
} else {
$output .= $this->container(get_string('upgradeassignmentsuccess', 'tool_assignmentupgrade'));
$output .= $this->container(html_writer::link(new moodle_url('/course/view.php', array('id'=>$assignmentsummary->courseid)) ,get_string('viewcourse', 'tool_assignmentupgrade')));
$url = new moodle_url('/course/view.php', array('id'=>$assignmentsummary->courseid));
$output .= $this->container(html_writer::link($url, get_string('viewcourse', 'tool_assignmentupgrade')));
}
$output .= $this->container_end();
+3 -2
View File
@@ -24,8 +24,9 @@
defined('MOODLE_INTERNAL') || die;
if ($hassiteconfig) { // needs this condition or there is error on login page
if ($hassiteconfig) {
// Needs this condition or there is error on login page.
$ADMIN->add('root', new admin_externalpage('assignmentupgrade',
get_string('pluginname', 'tool_assignmentupgrade'),
new moodle_url('/admin/tool/assignmentupgrade/index.php')));
}
}
@@ -24,12 +24,10 @@
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
/** Include formslib.php */
require_once ($CFG->libdir.'/formslib.php');
require_once($CFG->libdir.'/formslib.php');
/**
* Assignment upgrade batch operations form
* Assignment upgrade batch operations form.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
@@ -37,15 +35,16 @@ require_once ($CFG->libdir.'/formslib.php');
*/
class tool_assignmentupgrade_batchoperations_form extends moodleform {
/**
* Define this form - is called from parent constructor
* Define this form - is called from parent constructor.
*/
function definition() {
public function definition() {
$mform = $this->_form;
$instance = $this->_customdata;
$mform->addElement('header', 'general', get_string('batchoperations', 'tool_assignmentupgrade'));
// visible elements
// Visible elements.
$mform->addElement('hidden', 'selectedassignments', '', array('class'=>'selectedassignments'));
$mform->setType('selectedassignments', PARAM_SEQUENCE);
$mform->addElement('submit', 'upgradeselected', get_string('upgradeselected', 'tool_assignmentupgrade'));
$mform->addElement('submit', 'upgradeall', get_string('upgradeall', 'tool_assignmentupgrade'));
@@ -36,6 +36,7 @@ require_once($CFG->dirroot.'/mod/assign/locallib.php');
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_assignments_table extends table_sql implements renderable {
/** @var int $perpage */
private $perpage = 10;
/** @var int $rownum (global index of current row in table) */
@@ -46,12 +47,13 @@ class tool_assignmentupgrade_assignments_table extends table_sql implements rend
public $anyupgradableassignments = false;
/**
* This table loads a list of the old assignment instances and tests them to see if they can be upgraded
* This table loads a list of the old assignment instances and tests them to see
* if they can be upgraded
*
* @param int $perpage How many per page
* @param int $rowoffset The starting row for pagination
*/
function __construct($perpage, $rowoffset=0) {
public function __construct($perpage, $rowoffset=0) {
global $PAGE;
parent::__construct('tool_assignmentupgrade_assignments');
$this->perpage = $perpage;
@@ -61,12 +63,17 @@ class tool_assignmentupgrade_assignments_table extends table_sql implements rend
$this->anyupgradableassignments = tool_assignmentupgrade_any_upgradable_assignments();
// do some business - then set the sql
// Do some business - then set the sql.
if ($rowoffset) {
$this->rownum = $rowoffset - 1;
}
$fields = 'a.id as id, a.name as name, a.assignmenttype as type, c.shortname as courseshortname, c.id as courseid, COUNT(s.id) as submissioncount';
$fields = 'a.id as id,
a.name as name,
a.assignmenttype as type,
c.shortname as courseshortname,
c.id as courseid,
COUNT(s.id) as submissioncount';
$from = '{assignment} a JOIN {course} c ON a.course = c.id ' .
' LEFT JOIN {assignment_submissions} s ON a.id = s.assignment';
@@ -80,7 +87,10 @@ class tool_assignmentupgrade_assignments_table extends table_sql implements rend
$headers = array();
$columns[] = 'select';
$headers[] = get_string('select', 'tool_assignmentupgrade') . '<div class="selectall"><input type="checkbox" name="selectall" title="' . get_string('selectall') . '"/></div>';
$headers[] = get_string('select', 'tool_assignmentupgrade') .
'<div class="selectall">' .
'<input type="checkbox" name="selectall" title="' . get_string('selectall') . '"/>' .
'</div>';
$columns[] = 'upgradable';
$headers[] = get_string('upgradable', 'tool_assignmentupgrade');
$columns[] = 'id';
@@ -94,7 +104,7 @@ class tool_assignmentupgrade_assignments_table extends table_sql implements rend
$columns[] = 'submissioncount';
$headers[] = get_string('submissions', 'tool_assignmentupgrade');
// set the columns
// Set the columns.
$this->define_columns($columns);
$this->define_headers($headers);
$this->no_sorting('upgradable');
@@ -106,7 +116,7 @@ class tool_assignmentupgrade_assignments_table extends table_sql implements rend
*
* @return int The number of rows per page
*/
function get_rows_per_page() {
public function get_rows_per_page() {
return $this->perpage;
}
@@ -116,9 +126,9 @@ class tool_assignmentupgrade_assignments_table extends table_sql implements rend
* @param stdClass $row
* @return string
*/
function col_name(stdClass $row) {
return html_writer::link(new moodle_url('/mod/assignment/view.php',
array('a' => $row->id)), $row->name);
public function col_name(stdClass $row) {
$url = new moodle_url('/mod/assignment/view.php', array('a' => $row->id));
return html_writer::link($url, $row->name);
}
@@ -128,10 +138,11 @@ class tool_assignmentupgrade_assignments_table extends table_sql implements rend
* @param stdClass $row (contains cached result from previous upgradable check)
* @return string
*/
function col_upgradable(stdClass $row) {
public function col_upgradable(stdClass $row) {
if ($row->upgradable) {
return html_writer::link(new moodle_url('/admin/tool/assignmentupgrade/upgradesingleconfirm.php',
array('id' => $row->id, 'sesskey' => sesskey())), get_string('supported', 'tool_assignmentupgrade'));
$urlparams = array('id' => $row->id, 'sesskey' => sesskey());
$url = new moodle_url('/admin/tool/assignmentupgrade/upgradesingleconfirm.php', $urlparams);
return html_writer::link($url, get_string('supported', 'tool_assignmentupgrade'));
} else {
return get_string('notsupported', 'tool_assignmentupgrade');
}
@@ -143,7 +154,7 @@ class tool_assignmentupgrade_assignments_table extends table_sql implements rend
* @param stdClass $row
* @return string
*/
function col_select(stdClass $row) {
public function col_select(stdClass $row) {
global $CFG;
$version = get_config('assignment_' . $row->type, 'version');
require_once($CFG->dirroot . '/mod/assign/locallib.php');
@@ -24,14 +24,17 @@
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/locallib.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
require_sesskey();
$assignmentid = required_param('id', PARAM_INT);
// admin_externalpage_setup calls require_login and checks moodle/site:config
admin_externalpage_setup('assignmentupgrade', '', array(), tool_assignmentupgrade_url('upgradesingle', array('id' => $assignmentid)));
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade',
'',
array(),
tool_assignmentupgrade_url('upgradesingle', array('id' => $assignmentid)));
$PAGE->navbar->add(get_string('upgradesingle', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
@@ -24,14 +24,17 @@
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/admin/tool/assignmentupgrade/locallib.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
require_sesskey();
$assignmentid = required_param('id', PARAM_INT);
// admin_externalpage_setup calls require_login and checks moodle/site:config
admin_externalpage_setup('assignmentupgrade', '', array(), tool_assignmentupgrade_url('upgradesingle', array('id' => $assignmentid)));
// This calls require_login and checks moodle/site:config.
admin_externalpage_setup('assignmentupgrade',
'',
array(),
tool_assignmentupgrade_url('upgradesingle', array('id' => $assignmentid)));
$PAGE->navbar->add(get_string('upgradesingle', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
+3 -3
View File
@@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2012061700;
$plugin->requires = 2012061700;
$plugin->version = 2013050100;
$plugin->requires = 2013050100;
$plugin->component = 'tool_assignmentupgrade';
$plugin->dependencies = array('mod_assign' => 2012061700);
$plugin->dependencies = array('mod_assign' => 2013050100);
+94
View File
@@ -0,0 +1,94 @@
<?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/>.
/**
* CLI script to set up all the behat test environment.
*
* @package tool_behat
* @copyright 2013 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (isset($_SERVER['REMOTE_ADDR'])) {
die(); // No access from web!
}
// Is not really necessary but adding it as is a CLI_SCRIPT.
define('CLI_SCRIPT', true);
// Basic functions.
require_once(__DIR__ . '/../../../../lib/clilib.php');
require_once(__DIR__ . '/../../../../lib/behat/lib.php');
// Changing the cwd to admin/tool/behat/cli.
chdir(__DIR__);
$output = null;
exec("php util.php --diag", $output, $code);
if ($code == 0) {
echo "Behat test environment already installed\n";
} else if ($code == BEHAT_EXITCODE_INSTALL) {
testing_update_composer_dependencies();
// Behat and dependencies are installed and we need to install the test site.
chdir(__DIR__);
passthru("php util.php --install", $code);
if ($code != 0) {
exit($code);
}
} else if ($code == BEHAT_EXITCODE_REINSTALL) {
testing_update_composer_dependencies();
// Test site data is outdated.
chdir(__DIR__);
passthru("php util.php --drop", $code);
if ($code != 0) {
exit($code);
}
passthru("php util.php --install", $code);
if ($code != 0) {
exit($code);
}
} else if ($code == BEHAT_EXITCODE_COMPOSER) {
// Missing Behat dependencies.
testing_update_composer_dependencies();
// Returning to admin/tool/behat/cli.
chdir(__DIR__);
passthru("php util.php --install", $code);
if ($code != 0) {
exit($code);
}
} else {
// Generic error, we just output it.
echo implode("\n", $output)."\n";
exit($code);
}
// Enable editing mode according to config.php vars.
passthru("php util.php --enable", $code);
if ($code != 0) {
exit($code);
}
exit(0);
+202
View File
@@ -0,0 +1,202 @@
<?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/>.
/**
* CLI tool with utilities to manage Behat integration in Moodle
*
* All CLI utilities uses $CFG->behat_dataroot and $CFG->prefix_dataroot as
* $CFG->dataroot and $CFG->prefix
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (isset($_SERVER['REMOTE_ADDR'])) {
die(); // No access from web!.
}
// Basic functions.
require_once(__DIR__ . '/../../../../lib/clilib.php');
require_once(__DIR__ . '/../../../../lib/behat/lib.php');
// CLI options.
list($options, $unrecognized) = cli_get_params(
array(
'help' => false,
'install' => false,
'drop' => false,
'enable' => false,
'disable' => false,
'diag' => false
),
array(
'h' => 'help'
)
);
if ($options['install'] or $options['drop']) {
define('CACHE_DISABLE_ALL', true);
}
// Checking util.php CLI script usage.
$help = "
Behat utilities to manage the test environment
Options:
--install Installs the test environment for acceptance tests
--drop Drops the database tables and the dataroot contents
--enable Enables test environment and updates tests list
--disable Disables test environment
--diag Get behat test environment status code
-h, --help Print out this help
Example from Moodle root directory:
\$ php admin/tool/behat/cli/util.php --enable
More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
";
if (!empty($options['help'])) {
echo $help;
exit(0);
}
// Checking $CFG->behat_* vars and values.
define('BEHAT_UTIL', true);
define('CLI_SCRIPT', true);
define('ABORT_AFTER_CONFIG', true);
define('NO_OUTPUT_BUFFERING', true);
error_reporting(E_ALL | E_STRICT);
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->tempdir);
// Continues setup.
define('ABORT_AFTER_CONFIG_CANCEL', true);
require("$CFG->dirroot/lib/setup.php");
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/upgradelib.php');
require_once($CFG->libdir.'/clilib.php');
require_once($CFG->libdir.'/pluginlib.php');
require_once($CFG->libdir.'/installlib.php');
require_once($CFG->libdir.'/testing/classes/test_lock.php');
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
// Behat utilities.
require_once($CFG->libdir . '/behat/classes/util.php');
require_once($CFG->libdir . '/behat/classes/behat_command.php');
// Run command (only one per time).
if ($options['install']) {
behat_util::install_site();
mtrace("Acceptance tests site installed");
} else if ($options['drop']) {
// Ensure no tests are running.
test_lock::acquire('behat');
behat_util::drop_site();
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);
} else if ($options['disable']) {
behat_util::stop_test_mode();
mtrace("Acceptance tests environment disabled");
} else if ($options['diag']) {
$code = behat_util::get_behat_status();
exit($code);
} else {
echo $help;
}
exit(0);
+55
View File
@@ -0,0 +1,55 @@
<?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/>.
/**
* Web interface to list and filter steps
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require(__DIR__ . '/../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/tool/behat/locallib.php');
require_once($CFG->libdir . '/behat/classes/behat_config_manager.php');
$filter = optional_param('filter', '', PARAM_ALPHANUMEXT);
$type = optional_param('type', false, PARAM_ALPHAEXT);
$component = optional_param('component', '', PARAM_ALPHAEXT);
admin_externalpage_setup('toolbehat');
// Getting available steps definitions from behat.
$steps = tool_behat::stepsdefinitions($type, $component, $filter);
// Form.
$componentswithsteps = array('' => get_string('allavailablesteps', 'tool_behat'));
// Complete the components list with the moodle steps definitions.
$components = behat_config_manager::get_components_steps_definitions();
if ($components) {
foreach ($components as $component => $filepath) {
// TODO Use a class static attribute instead of the class name.
$componentswithsteps[$component] = 'Moodle ' . substr($component, 6);
}
}
$form = new steps_definitions_form(null, array('components' => $componentswithsteps));
// Output contents.
$renderer = $PAGE->get_renderer('tool_behat');
echo $renderer->render_stepsdefinitions($steps, $form);
+45
View File
@@ -0,0 +1,45 @@
<?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 tool_behat
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @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['allavailablesteps'] = 'All the available steps definitions';
$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';
$string['stepsdefinitionstype'] = 'Type';
$string['theninfo'] = 'Then. Checkings to ensure the outcomes are the expected ones';
$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>';
+76
View File
@@ -0,0 +1,76 @@
<?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/>.
/**
* Behat commands
*
* @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->libdir . '/behat/classes/behat_command.php');
require_once($CFG->libdir . '/behat/classes/behat_config_manager.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/tool/behat/steps_definitions_form.php');
/**
* Behat commands manager
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_behat {
/**
* Lists the available steps definitions
*
* @param string $type
* @param string $component
* @param string $filter
* @return array System steps or empty array if case there are no steps
*/
public static function stepsdefinitions($type, $component, $filter) {
// We don't require the test environment to be enabled to list the steps definitions
// so test writers can more easily set up the environment.
behat_command::behat_setup_problem();
// The loaded steps depends on the component specified.
behat_config_manager::update_config_file($component, false);
// The Moodle\BehatExtension\HelpPrinter\MoodleDefinitionsPrinter will parse this search format.
if ($type) {
$filter .= '&&' . $type;
}
if ($filter) {
$filteroption = ' -d "' . $filter . '"';
} else {
$filteroption = ' -di';
}
// Get steps definitions from Behat.
$options = ' --config="'.behat_config_manager::get_steps_list_config_filepath(). '" '.$filteroption;
list($steps, $code) = behat_command::run($options);
return $steps;
}
}
+117
View File
@@ -0,0 +1,117 @@
<?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/>.
/**
* Behat tool renderer
*
* @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->libdir . '/behat/classes/behat_selectors.php');
/**
* Renderer for behat tool web features
*
* @package tool_behat
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_behat_renderer extends plugin_renderer_base {
/**
* Renders the list of available steps according to the submitted filters.
*
* @param mixed $stepsdefinitions Available steps array.
* @param moodleform $form
* @return string HTML code
*/
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();
// Form.
ob_start();
$form->display();
$html .= ob_get_contents();
ob_end_clean();
if (empty($stepsdefinitions)) {
$stepsdefinitions = get_string('nostepsdefinitions', 'tool_behat');
} else {
$stepsdefinitions = implode('', $stepsdefinitions);
// Replace text selector type arguments with a user-friendly select.
$stepsdefinitions = preg_replace_callback('/(TEXT_SELECTOR\d?_STRING)/',
function ($matches) {
return html_writer::select(behat_selectors::get_allowed_text_selectors(), uniqid());
},
$stepsdefinitions
);
// Replace selector type arguments with a user-friendly select.
$stepsdefinitions = preg_replace_callback('/(SELECTOR\d?_STRING)/',
function ($matches) {
return html_writer::select(behat_selectors::get_allowed_selectors(), uniqid());
},
$stepsdefinitions
);
}
// Steps definitions.
$html .= html_writer::tag('div', $stepsdefinitions, array('class' => 'steps-definitions'));
$html .= $this->output->footer();
return $html;
}
}

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