Compare commits

...

7233 Commits

Author SHA1 Message Date
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
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
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
Dan Poltawski 28ef36f018 Merge branch 'MDL-36618-master' of git://github.com/FMCorz/moodle 2012-12-03 10:36:16 +08: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
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
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
Aparup Banerjee 5bd84c3fde Merge branch 'MDL-36869-master' of git://github.com/FMCorz/moodle 2012-11-30 15:05:41 +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
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
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
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
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
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
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
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
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
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
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
Barbara Ramiro b166d7141e MDL-36782 usability: New icon to mark posts as read on forum 2012-11-27 13:43:05 +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
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
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
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
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
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
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
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
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
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
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
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
Petr Škoda 4c21b22043 MDL-36753 fix invalid sectionid in backup tests 2012-11-21 12:43:55 +01: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
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
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
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
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
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
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
Dan Poltawski e4a9cc642f Merge branch 'MDL-36417-master' of git://github.com/FMCorz/moodle 2012-11-15 10:39:08 +08: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 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
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 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
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
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
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
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
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
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
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
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
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
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
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
Eloy Lafuente (stronk7) a5f6ea2e88 Moodle release 2.3 2012-06-25 17:51:17 +02:00
Eloy Lafuente (stronk7) 7dcdca9c85 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-25 17:44:13 +02:00
Martin Dougiamas 386a862f95 MDL-34004 - reinstate the custom HTML icon as separate from other markup icons, because it usually means a "page" to most people that displays in the browser. These icons are temporary (but workable) until Barbara can put in some nice ones that work as a set. The 16px one is from Moodle 2.2 and the others are copies of "unknown". 2012-06-25 23:05:44 +08:00
Dan Poltawski a2be8d9dbe Merge branch 'MDL-33984' of git://github.com/stronk7/moodle 2012-06-25 21:56:54 +08:00
Eloy Lafuente (stronk7) 84874400c5 MDL-33984 mysql: take rid of old unicode & mysql 4.1 message on error. 2012-06-25 15:48:24 +02:00
Dan Poltawski a9ca93db95 Merge branch 'MDL-33984' of git://github.com/stronk7/moodle 2012-06-25 18:46:59 +08:00
Eloy Lafuente (stronk7) 95bcc6e2d3 MDL-33984 mysql - raise min version to 5.1.33.
Because of http://bugs.mysql.com/bug.php?id=42758 and other benefits.
2012-06-25 12:32:25 +02:00
Aparup Banerjee f5fee1e148 Merge branch 'MDL-33694' of git://github.com/danpoltawski/moodle 2012-06-25 16:45:23 +08:00
Dan Poltawski 3ab04302dd Merge branch 'MDL-33999' of git://github.com/nebgor/moodle 2012-06-25 16:35:09 +08:00
Dan Poltawski 6100b006f1 Merge branch 'wip-MDL-33777-master' of git://github.com/marinaglancy/moodle 2012-06-25 16:18:27 +08:00
Aparup Banerjee 13429b9596 MDL-33999 filemanager : fixed up incorrect string used in dialog button during folder renaming 2012-06-25 16:18:21 +08:00
Dan Poltawski b0d3162930 Merge branch 'wip-MDL-33997-master' of git://github.com/marinaglancy/moodle 2012-06-25 16:08:33 +08:00
Marina Glancy c8161eec94 MDL-33997 Repository should not support references by default 2012-06-25 16:03:25 +08:00
Dan Poltawski 72b33964f6 MDL-33694 repository: docs about 2.3 changes 2012-06-25 16:01:54 +08:00
Andrew Robert Nicols 26992cf171 MDL-33926 Add window scrolling when drag/dropping 2012-06-25 15:27:46 +08:00
Dan Poltawski 4c8926c7c3 Merge branch 'wip-MDL-33987-m23' of git://github.com/samhemelryk/moodle 2012-06-25 15:08:12 +08: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
Aparup Banerjee 224d186ebb Merge branch 'wip-MDL-33419-master' of https://github.com/barbararamiro/moodle 2012-06-25 14:30:18 +08:00
Sam Hemelryk 511a58d945 MDL-33987 theme_anomaly: Fixed up a couple of issues with the dock
* Active title displayed incorrectly because they had a limited width which I removed
* Docked block content was indented because block titles are now floated in anomaly.
  To fix this I gave it a bottom border, forcing it clear.
2012-06-25 17:17:37 +12:00
Dan Poltawski d71f207da0 Merge branch 'wip-MDL-33985-m23' of git://github.com/samhemelryk/moodle 2012-06-25 13:00:33 +08:00
Sam Hemelryk 125231acf9 MDL-33985 theme_base: Fixed bad conflict resolution of course CSS rtl fixes 2012-06-25 16:53:39 +12:00
Dan Poltawski f935363572 Merge branch 'MDL-33980' of github.com:equella/moodle 2012-06-25 11:20:40 +08:00
Marina Glancy c01f7628f7 MDL-33777 Equella repository properly set the source and display file origin 2012-06-25 10:57:02 +08:00
nread 75d1891548 MDL-33980 equella: course ID number should be being passed through, not the course database ID 2012-06-25 12:33:49 +10: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
AMOS bot 6c213ef776 Automatically generated installer lang files 2012-06-25 00:31:38 +00: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
Petr Skoda aefe9734fa MDL-33733 fix broken zip_packer->extract_to_storage() when extracting from stored_file 2012-06-25 01:32:50 +02:00
Eloy Lafuente (stronk7) ba3e7df265 Moodle release 2.3rc1 2012-06-24 18:37:12 +02:00
Eloy Lafuente (stronk7) 4f1d79538e Fix permissions. 2012-06-24 18:31:09 +02:00
Eloy Lafuente (stronk7) bec3cd5b18 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-24 18:27:53 +02: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
Dan Poltawski 5b7621f78d Merge branch 'MDL-33717_admin_message2' of git://github.com/andyjdavis/moodle 2012-06-22 15:09:46 +08:00
Damyon Wiese 99467a9f7f MDL-33853: Prevent locking an assignment submission from putting a grade of 0 in the gradebook 2012-06-22 11:12:06 +08:00
Sam Hemelryk 31ea84a503 Merge branch 'MDL-32769-master' of git://github.com/ankitagarwal/moodle 2012-06-22 14:40:09 +12:00
Sam Hemelryk cc0823118d Merge branch 'wip-MDL-33931-master' of git://github.com/abgreeve/moodle 2012-06-22 14:25:54 +12:00
Damyon Wiese dd9247adfe MDL-33954: Assignment "submissionreceipthtml" Language change
Add the missing word: "see"
2012-06-22 09:03:18 +08:00
AMOS bot 0773a5161a Automatically generated installer lang files 2012-06-22 00:31:21 +00:00
Sam Hemelryk 088c374a6d Merge branch 'MDL-33430-reference-restore' of git://github.com/mudrd8mz/moodle
Conflicts:
	lib/db/install.xml
	lib/db/upgrade.php
	version.php
2012-06-22 11:56:49 +12:00
Sam Hemelryk 0e5533b607 MDL-32769 completion: Fixed up display of completion information 2012-06-22 10:42:56 +12:00
Sam Hemelryk a273391e4a Merge branch 'MDL-33936-master-1' of git://git.luns.net.uk/moodle 2012-06-22 09:47:13 +12:00
Sam Hemelryk c691963939 Merge branch 'wip-MDL-33928-master' of git://github.com/phalacee/moodle 2012-06-22 09:33:25 +12:00
Sam Hemelryk c5541daf00 Merge branch 'MDL-33915' of git://github.com/danpoltawski/moodle 2012-06-22 09:02:50 +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
David Mudrák 7b5f67f77f MDL-33430 Notify user about file aliases failures at the final stage of the restore 2012-06-21 15:22:38 +02:00
David Mudrák ff8734f21d MDL-33430 Give tasks an access to their current plan's results
This in turn provides access to the plan's results for both structure and
execution steps so they can register something useful there.
2012-06-21 12:28:09 +02:00
David Mudrák fb3a57e2d4 MDL-33430 Fix strict standards warning
Only variables should be passed by reference.
2012-06-21 12:28:09 +02:00
Barbara Ramiro 5a322c8cfc MDL-33381 Icon label removed for all file types to make it generic 2012-06-21 18:19:33 +08:00
David Mudrák d129c3608f MDL-33430 Add caching into choose_repository() method
Simply do not repeat expensive search once the restore process decides how
to deal with the given repositoryid or repositorytype.
2012-06-21 12:17:54 +02:00
Aparup Banerjee 7cacb2ef08 Merge branch 'wip-MDL-33297-master' of git://github.com/abgreeve/moodle 2012-06-21 17:34:57 +08:00
Barbara Ramiro a1b0852779 MDL-33419 Reference/source icons in table view and list view displayed and smaller 2012-06-21 17:13:43 +08: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
Andrew Robert Nicols c397e0c8bc MDL-33936 Detect activity chooser in block_site_main_menu correctly 2012-06-21 09:19:20 +01:00
Ankit Agarwal dce49c1c38 MDL-32769 course: Moving the completion status to a new line 2012-06-21 16:16:48 +08:00
Dan Poltawski 2a67e6f28b MDL-33911 mathslib: add unit test to demonstrate problem 2012-06-21 16:00:45 +08:00
Dan Poltawski 1e485acd7d Merge branch 'MDL-33911' of git://github.com/timhunt/moodle 2012-06-21 16:00:08 +08:00
Adrian Greeve 612aee17b0 MDL-33931 - themes - Change of the base theme to align the submit and cancel buttons with the rest of the mform (15%) 2012-06-21 15:47:02 +08:00
Dan Poltawski 75c8a109e5 Merge branch 'MDL-33878' of git://github.com/netspotau/moodle-mod_assign 2012-06-21 15:21:13 +08:00
Dan Poltawski 22b0514e27 Merge branch 'MDL-33860' of git://github.com/netspotau/moodle-mod_assign 2012-06-21 14:56:07 +08:00
Damyon Wiese caff10a0b0 MDL-33850: Assignment: Change text to "Add submission" before anything has been submitted
AMOS BEGIN
 CPY [addsubmission,mod_assignment],[addsubmission,mod_assign]
AMOS END
2012-06-21 14:48:53 +08:00
Damyon Wiese 7056953a1c MDL-33860: Use get_string for All option in assignment grading table 2012-06-21 14:48:28 +08:00
Ankit Agarwal 68b8cc84af MDL-32769 course: Do not show a completion status of 0/0 2012-06-21 13:29:46 +08:00
Mary Evans 088511ded6 MDL-33785 theme_base: RTL fixes added to style/filemanager.css
Conflicts:

	theme/base/style/filemanager.css
2012-06-21 17:24:07 +12:00
Dan Poltawski 026082b401 MDL-33915 - prevent use of rebuild_course_cache during upgrade
It depends on upgrade changes itself
2012-06-21 11:43:54 +08:00
Jason Fowler 3d24b287be MDL-33928 - Installation - Fixing the size of the host field for database details in the installation stage 2012-06-21 11:18:51 +08:00
Andrew Davis 7db6bb7f61 MDL-33717 files: improved display_size() so that it displays something nice for -1 2012-06-21 10:14:32 +07:00
Dan Poltawski 334de6b691 Merge branch 'MDL-33877' of git://github.com/netspotau/moodle-mod_assign 2012-06-21 10:04:29 +08:00
David Mudrák 2c1426743a MDL-33430 Add process_file_aliases_queue restore step to the final task
This execution step tries to actually restore all aliases that were
stashed in the file aliases queue.
2012-06-21 02:31:26 +02:00
David Mudrák 83b2cc562d MDL-33430 Set newcontextid and newitemid when sending file to the pool 2012-06-21 02:31:18 +02:00
David Mudrák 38ca2f1a83 MDL-33430 Add newcontextid and newitemid to backup_files_template
These new fields will be used to hold the new location of the file once
it is sent to the filepool during the restore.
2012-06-21 02:29:42 +02:00
David Mudrák 4b6b087faf MDL-33430 Do not restore aliases yet, stash them for later processing 2012-06-21 02:29:34 +02:00
Sam Hemelryk 5f17311f52 MDL-27675 mod_feedback: Fixed up white space 2012-06-21 11:40:38 +12:00
David Mudrák 79b810fdc0 MDL-33430 Include repository type in files.xml in MBZ backup file
This is a valuable information needed especially when restoring the MBZ
at another site. The repositoryid itself is not enough there to identify
the type of the repository.
2012-06-21 01:32:25 +02:00
David Mudrák 6feae1d256 MDL-33430 Make file_storage::unpack_reference() more picky on what it gets 2012-06-21 01:32:24 +02:00
Sam Hemelryk d2448b8bd2 Merge branch 'MDL-27675_master' of git://github.com/grabs/moodle 2012-06-21 11:25:07 +12:00
Sam Hemelryk 92e0842978 Merge branch 'MDL-33808' of git://github.com/danpoltawski/moodle 2012-06-21 10:19:05 +12:00
Sam Hemelryk 21cb669f36 Merge branch 'MDL-33845_folder_whitespace' of git://github.com/moodler/moodle 2012-06-21 10:01:49 +12:00
Sam Hemelryk 45d011c896 Merge branch 'MDL-32479_master' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/base/style/core.css
2012-06-21 09:46:32 +12: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
Tim Hunt 4efc3d4096 MDL-33911 lib/evalmath: fix strict syntax notices 2012-06-20 13:48:37 +01:00
Aparup Banerjee c575842ce9 Merge branch 'MDL-33683-master-2' of git://git.luns.net.uk/moodle 2012-06-20 19:36:22 +08:00
Dan Poltawski 5649520d9b Merge branch 'MDL-33891-master-1' of git://git.luns.net.uk/moodle 2012-06-20 17:43:47 +08:00
Andrew Robert Nicols ae86017339 MDL-33683 Determine sectionid for activity chooser at display time
Rather than calculate the sectionid for the activity chooser on page load,
we do so when opening the chooser. This resolves issues where sections have
been moved without swapping all of the section IDs around.
2012-06-20 10:32:10 +01:00
Andrew Robert Nicols dfe15e0ef9 MDL-33891 Ensure that listen events are cancelled correctly when closing the dialogue 2012-06-20 10:18:19 +01:00
Aparup Banerjee 4c7d9eb5c2 Merge branch 'wip-MDL-33811-m23' of git://github.com/samhemelryk/moodle 2012-06-20 17:18:00 +08:00
Aparup Banerjee 01158d86c4 Merge branch 'wip-MDL-33715-m23' of git://github.com/samhemelryk/moodle 2012-06-20 16:57:51 +08:00
Dan Poltawski 73ec069e3b Merge branch 'wip-MDL-33832-master' of git://github.com/marinaglancy/moodle 2012-06-20 16:55:29 +08:00
Aparup Banerjee c949723817 Merge branch 'wip-MDL-33825-m23' of git://github.com/samhemelryk/moodle 2012-06-20 16:50:54 +08:00
Dan Poltawski e3c7845314 Merge branch 'MDL-27156_part2' of git://github.com/andyjdavis/moodle 2012-06-20 16:38:13 +08:00
Andrew Davis 703ffaea05 MDL-27156 repositories: altered a check as the !empty() test on $PAGE->course was always failing for some reason 2012-06-20 15:17:12 +07:00
Marina Glancy 83d2700ec9 MDL-33832 Fixed filling of files.source field
- also supress the error on unserialise (because people already may have broken files.source field)
- also display details about unparseable JSON error
- make source field look the same across repositories
2012-06-20 16:09:37 +08: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
Aparup Banerjee 3262f547fc Merge branch 'MDL-33649-master-2' of git://git.luns.net.uk/moodle 2012-06-20 15:19:18 +08:00
Rajesh Taneja 99f374c457 MDL-33419 Filepicker: Reference/source icons are visible in filemanager list and table view 2012-06-20 15:07:58 +08:00
Aparup Banerjee cd29a5822f Merge branch 'MDL-33722-master-wip' of git://git.luns.net.uk/moodle 2012-06-20 14:53:20 +08:00
Aparup Banerjee 7189225b7a Merge branch 'MDL-33728-master-1' of git://git.luns.net.uk/moodle 2012-06-20 14:49:16 +08:00
Aparup Banerjee f65d3d1d18 Merge branch 'MDL-33703-master-3' of git://git.luns.net.uk/moodle 2012-06-20 14:39:58 +08:00
Damyon Wiese 1f417de84a MDL-33877: Prevent duplicate records in grade items table after running assignment upgrade tool
The cause was multiple calls to set_field on the same table. Changed to update_record.
2012-06-20 14:33:33 +08:00
Aparup Banerjee eca0371465 Merge branch 'MDL-33729-master-1' of git://git.luns.net.uk/moodle 2012-06-20 14:28:05 +08:00
Dan Poltawski b1c43c3f64 Merge branch 'w25_MDL-33831_m23_glossestrict' of git://github.com/skodak/moodle 2012-06-20 13:57:26 +08:00
Barbara Ramiro f90ffd296a MDL-33795 Increased file picker width and height 2012-06-20 13:48:43 +08:00
Dan Poltawski a3086f3233 Merge branch 'MDL-33875' of git://github.com/stronk7/moodle 2012-06-20 13:45:49 +08:00
Dan Poltawski 6e471afe8b Merge branch 'wip-MDL-33417-master' of git://github.com/marinaglancy/moodle 2012-06-20 13:42:19 +08:00
Dan Poltawski b19af5b41c Merge branch 'MDL-33862-master-1' of git://git.luns.net.uk/moodle 2012-06-20 13:22:42 +08:00
Damyon Wiese 14c46e24a9 MDL-33878: Assignment - prevent error when removing overridden flag in gradebook
This error only occurs when there is a submission but no grade in the assignment
and the feedback comments plugin is enabled.
2012-06-20 13:11:19 +08:00
Aparup Banerjee 900183ebf7 MDL-33357 theme : mymobile whitespace fixes 2012-06-20 12:49:20 +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
Andrew Davis bc8da017b5 MDL-27156 repositories: altered filepicker.php so that users with the ability to ignore course file size restrictions are not incorrectly restricted 2012-06-20 11:27:31 +07:00
Frederic Massart f97aee76e7 MDL-9073 Glossary: uncategorised entries are printable 2012-06-20 12:24:44 +08:00
Aparup Banerjee b2d1c67e2c MDL-33357 theme : mymobile whitespaces fixup 2012-06-20 12:11:28 +08:00
Aparup Banerjee 23099d5beb Merge branch 'MDL-33357-3' of git://github.com/epsd/moodle 2012-06-20 12:11:07 +08:00
Dan Poltawski d8d2eebb44 Merge branch 'MDL-33773' of git://github.com/netspotau/moodle-mod_assign 2012-06-20 11:25:08 +08:00
Dan Poltawski f14651b6b1 Merge branch 'MDL-27156_part2' of git://github.com/andyjdavis/moodle 2012-06-20 11:17:01 +08:00
Aparup Banerjee e77fe8f020 Merge branch 'MDL-33856-master-1' of git://git.luns.net.uk/moodle 2012-06-20 11:00:38 +08:00
Adrian Greeve 35ca63c166 MDL-33297 - forum - workshop - glossary - data - Updated the check for files to allow students to see files they recently uploaded. 2012-06-20 10:49:18 +08:00
Jason Fowler e85b7e7865 MDL-32290 - Repositories - Fixing missing slash from the URL path 2012-06-20 10:41:58 +08:00
Ankit Agarwal 7c05cd0e1f MDL-32769 course: Adding completion summary to course sections 2012-06-20 09:38:35 +08:00
Eloy Lafuente (stronk7) 4388b63177 MDL-33875 delete category: fix E_STRICT reset() by ref. 2012-06-20 03:31:44 +02:00
AMOS bot 2406894a20 Automatically generated installer lang files 2012-06-20 00:31:14 +00:00
Eloy Lafuente (stronk7) 7128d8fca2 MDL-32003 xmldb: Use action error for filemodified check instead of structure one (protected attr). 2012-06-20 02:04:02 +02:00
Eloy Lafuente (stronk7) cb172822e5 Merge branch 'w25_MDL-32003_m23_dbcleanup' of git://github.com/skodak/moodle 2012-06-20 02:03:47 +02: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
Sam Hemelryk f7dc4a5630 Merge branch 'MDL-3971' of git://github.com/danpoltawski/moodle 2012-06-20 11:39:59 +12:00
Sam Hemelryk 1e3d84785a Merge branch 'wip-mdl-33425' of git://github.com/rajeshtaneja/moodle 2012-06-20 11:32:04 +12:00
Sam Hemelryk a9efc8ddb8 Merge branch 'MDL-32908' of git://github.com/danpoltawski/moodle 2012-06-20 10:31:52 +12:00
Sam Hemelryk ec1ca38996 Merge branch 'MDL-33843' of git://github.com/netspotau/moodle-mod_assign 2012-06-20 09:36:22 +12:00
Sam Hemelryk dae0c90dbd Merge branch 'wip-mdl-33506' of git://github.com/rajeshtaneja/moodle 2012-06-20 09:15:48 +12:00
John Stabinger 256c51fab0 MDL-33357 update mymobile inline for 2.3, attempt 3 2012-06-19 13:44:51 -04: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
Andrew Robert Nicols a51cf9302b MDL-33862 Ensure that a chooserspan exists before trying to set it up 2012-06-19 15:43:14 +01:00
Andrew Robert Nicols baca909631 MDL-33703 Adjust chooser location when changing browser orientation or size 2012-06-19 15:33:07 +01:00
Damyon Wiese d9a88f427d MDL-33773: Make view/grade all submissions a link in assignment module 2012-06-19 22:08:21 +08:00
Dan Poltawski f189c540b9 Merge branch 'MDL-33842_antivirus_message' of git://github.com/davosmith/moodle 2012-06-19 21:52:27 +08:00
Davo Smith 78b4da1963 MDL-33842 Filemanager dndupload - now displays error messages (including antivirus) 2012-06-19 14:27:12 +01:00
Petr Škoda 9bba13089d MDL-33831 fix E_STRICT issues in glossary 2012-06-19 13:57:11 +02:00
Andrew Robert Nicols 61eadb51af MDL-33856 Correct CSS selectors for chooser dialogues in RTL languages 2012-06-19 10:32:32 +01:00
Dan Poltawski 5e3698fda0 Merge branch 'wip-MDL-33661-master' of https://github.com/barbararamiro/moodle
Conflicts:
	theme/base/style/core.css
2012-06-19 16:28:00 +08:00
Aparup Banerjee 4214bc63a8 MDL-31330 fixed whitespace 2012-06-19 16:13:29 +08:00
Aparup Banerjee 9e4d54e15d Merge branch 'wip-MDL-33130-master' of https://github.com/barbararamiro/moodle
Conflicts:
	theme/base/style/core.css
	theme/base/style/filemanager.css
2012-06-19 16:09:43 +08:00
Martin Dougiamas c23170914a MDL-33845 Removed the hideous amounts of whitespace around the folder edit view for canvas theme (and moved Folder CSS together) 2012-06-19 16:08:28 +08:00
Dan Poltawski 139d3639c8 Merge branch 'MDL-33582-master-integration' of git://github.com/FMCorz/moodle 2012-06-19 15:39:03 +08:00
Damyon Wiese 5382eabbec MDL-33843: Remove custom dirty form handling and use default behaviour in assignment 2012-06-19 15:18:07 +08:00
Dan Poltawski a80b5a0cf0 MDL-32908 - drop $USER->ajax
Its not been respected for some time and is just confusing
2012-06-19 15:07:18 +08:00
Aparup Banerjee 1ee9b37880 Merge branch 'wip-MDL-32990-master' of git://github.com/phalacee/moodle 2012-06-19 14:59:48 +08:00
Jason Fowler 9e9382530f MDL-32990 - Repositories - Updating Box.net API calls to use HTTPS 2012-06-19 14:46:44 +08:00
Barbara Ramiro af9c48cbe9 MDL-33130 Filemanager/Filepicker buttons, Activitity Chooser and Quiz revised to look consistent 2012-06-19 14:36:13 +08:00
Dan Poltawski bb046e61b6 Merge branch 'wip-MDL-33423-m23' of git://github.com/samhemelryk/moodle 2012-06-19 14:29:25 +08:00
Aparup Banerjee 36080a2da2 MDL-30337 : removed extra css affecting LTR when it shouldn't. 2012-06-19 14:27:41 +08:00
Dan Poltawski 4bf433b5fb MDL-33121 book - improve a lang string
+ Make a comment match coding style
2012-06-19 14:15:11 +08:00
Dan Poltawski 34741af185 Merge branch 'MDL-33121' of git://github.com/rwijaya/moodle 2012-06-19 14:14:54 +08:00
Dan Poltawski c1ac8fa189 Merge branch 'MDL-33821-master-1' of git://git.luns.net.uk/moodle 2012-06-19 13:27:07 +08:00
Sam Hemelryk 9d7d2b03c8 MDL-33423 filepicker: Fixed visibility problem with loading icon 2012-06-19 16:53:44 +12:00
Dan Poltawski 8655fb96cf MDL-33808 - format title on the repository instance screen 2012-06-19 12:10:56 +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
Dan Poltawski a2e6088c7f MDL-33469 repository_picasa: oops, wrong pluginname in string 2012-06-19 11:56:45 +08:00
Dan Poltawski 102f928621 MDL-33808 - incorrect cleaning of repository names 2012-06-19 11:27:04 +08:00
Marina Glancy 1778f310f3 MDL-33417 Show reference icon for files in filepicker 2012-06-19 11:15:51 +08:00
Eloy Lafuente (stronk7) f18ad1b781 Merge branch 'MDL-33523_master' of git://github.com/dmiletic/moodle 2012-06-19 03:09:30 +02:00
Eloy Lafuente (stronk7) 926b08ca4b Merge branch 'MDL-33623' of git://github.com/danpoltawski/moodle 2012-06-19 03:05:52 +02:00
Eloy Lafuente (stronk7) 25c94edb27 Merge branch 'MDL-33469' of git://github.com/danpoltawski/moodle 2012-06-19 03:01:30 +02:00
Eloy Lafuente (stronk7) f98973c2ff Merge branch 'MDL-33294' of git://github.com/danpoltawski/moodle 2012-06-19 02:59:46 +02:00
Eloy Lafuente (stronk7) f2904fe243 Merge branch 'MDL-33724' of git://github.com/danpoltawski/moodle 2012-06-19 02:56:19 +02:00
Sam Hemelryk 2395a7510f MDL-33825 css_optimiser: Fixed bug where !important was being lost for advanced background styles 2012-06-19 12:32:56 +12:00
AMOS bot 2943b459b5 Automatically generated installer lang files 2012-06-19 00:31:15 +00:00
Sam Hemelryk 624ef76c2f MDL-33811 Fixed left over debugging code preventing proper setting of YUI gallery version 2012-06-19 11:26:23 +12:00
Eloy Lafuente (stronk7) e165512d3a Merge branch 'MDL-33778' of git://github.com/timhunt/moodle 2012-06-19 00:54:39 +02:00
Sam Hemelryk 2e7ce603ff MDL-33423 filepicker: Added delay and fade in to loading icon 2012-06-19 10:11:21 +12:00
Sam Hemelryk 514d31c805 MDL-33715 css_optimiser: enablecssoptimiser setting now triggers theme_reset_all_caches when changed 2012-06-19 10:10:20 +12:00
Andrew Robert Nicols 48e6de1c34 MDL-33821 Fix SQL syntax for recent glossary activity 2012-06-18 16:02:02 +01:00
Tim Hunt 72f2e13d04 MDL-33778 quiz statistics: part and class ids can be strings, not just ints. 2012-06-18 14:39:21 +01:00
Dan Poltawski 07384ecc8b Merge branch 'MDL-33818' of git://github.com/timhunt/moodle 2012-06-18 21:33:26 +08:00
Tim Hunt 584ae11a52 MDL-33818 quiz restore: quiz_attempt.state not restoring old MBZ
This field was new in 2.3, so we need to set it when restoring backups
from 2.2 or before, using the same logic as in upgrade.
2012-06-18 14:09:06 +01:00
Andrew Robert Nicols 2de13ef252 MDL-33722 Set z-index for dndupload-status message to prevent it hiding other items 2012-06-18 11:35:58 +01:00
Eloy Lafuente (stronk7) e04a0e32c7 Merge branch 'MDL-33552' of git://github.com/danpoltawski/moodle 2012-06-18 12:31:37 +02:00
Dan Poltawski 6855fec7fd Merge branch 'MDL-33136_dndfilemanager_replace_file' of git://github.com/davosmith/moodle 2012-06-18 17:36:03 +08:00
Aparup Banerjee 44b836d629 Merge branch 'MDL-33175' of git://github.com/danpoltawski/moodle 2012-06-18 17:14:11 +08:00
Eloy Lafuente (stronk7) f4a9bf65da Moodle release 2.3beta 2012-06-18 10:36:52 +02:00
Eloy Lafuente (stronk7) b18066df83 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-18 10:29:12 +02:00
Rossiani Wijaya 0a5b9e79e3 MDL-33121 Book Module: removing prev/next value from book_preload_chapters and more code cleaning 2012-06-18 16:10:15 +08:00
Dan Poltawski 3248a1e1e4 Merge branch 'MDL-33794' of git://github.com/stronk7/moodle
Conflicts:
	mod/assign/version.php
2012-06-18 16:08:39 +08:00
Aparup Banerjee 341d989d63 Merge branch 'MDL-30337_no_risk' of git://github.com/nebgor/moodle 2012-06-18 16:03:08 +08:00
Aparup Banerjee 751fe70671 MDL-30337 theme : cleanup after conflict. 2012-06-18 16:02:34 +08:00
Davo Smith b8a22d22fe MDL-33136 Dndupload filemanager - moved 'overwrite all' and 'rename all' buttons onto new line 2012-06-18 08:56:39 +01:00
Davo Smith d0b2d44528 MDL-33136 Dndupload filemanager - user asked to rename/overwrite file when droping file with existing name 2012-06-18 08:55:41 +01:00
Dan Poltawski f715dc3fd5 Merge branch 'MDL-33573-master-1' of git://git.luns.net.uk/moodle 2012-06-18 15:35:05 +08:00
Dan Poltawski e73c1cafa1 Merge branch 'MDL-33775-master-integration' of git://github.com/FMCorz/moodle 2012-06-18 15:18:02 +08:00
Frederic Massart a41b1d96b6 MDL-33775 Course: fix redirect to course/section in paged mode 2012-06-18 15:10:33 +08:00
Dan Poltawski 584c219edf Merge branch 'wip-MDL-33603-master-v2' of git://github.com/abgreeve/moodle 2012-06-18 15:07:10 +08:00
Dan Poltawski f418c54875 Merge branch 'wip-mdl-33607' of git://github.com/rajeshtaneja/moodle 2012-06-18 14:34:35 +08:00
Dan Poltawski 2b5f4dbbca Merge branch 'MDL-33699' of git://github.com/netspotau/moodle-mod_assign 2012-06-18 13:49:16 +08:00
Dan Poltawski 1eab24d1a4 Merge branch 'MDL-33779' of git://github.com/timhunt/moodle 2012-06-18 13:43:36 +08:00
Dan Poltawski 53db3251da Merge branch 'MDL-33793' of git://github.com/netspotau/moodle-mod_assign 2012-06-18 13:28:07 +08:00
Dan Poltawski 728aee9767 Merge branch 'MDL-33697' of git://github.com/netspotau/moodle-mod_assign 2012-06-18 13:12:56 +08:00
Andrew Davis 448c2f5b9b MDL-27156 repositories: altered filepicker.php so that users with the ability to ignore course file size restrictions are not incorrectly restricted 2012-06-18 11:33:28 +07:00
Dan Poltawski 8a7b0be111 Merge branch 'MDL-33327-2' of git://github.com/netspotau/moodle-mod_assign 2012-06-18 12:17:49 +08:00
Matthew G. Switlik 6e084e5fb9 MDL-28151 resource: prevent cropping of large images 2012-06-18 11:42:43 +08:00
Nadav Kavalerchik 6abbcf194e MDL - RTL Theme fixes for Moodle 2 (theme/canvas)
Right align Forms in Report pages (when in RTL mode)
2012-06-18 11:34:51 +08:00
Nadav Kavalerchik 409c12f21a MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Right align Fields in forms (when in RTL mode)

Conflicts:

	theme/base/style/course.css
2012-06-18 11:31:33 +08:00
Dan Poltawski 8b5039361a MDL-33469 google plugins - string update
Improved strings to try and ensure maximum support for users during
upgrade.
2012-06-18 11:28:27 +08:00
Nadav Kavalerchik 0a1617e23f MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Right align item's content (when viewing a Glossary activity in RTL mode)

Conflicts:

	mod/glossary/styles.css
2012-06-18 11:26:07 +08:00
Nadav Kavalerchik 4d488c25b6 MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Right align content (when viewing a Lesson activity in RTL mode)
2012-06-18 11:24:50 +08:00
Nadav Kavalerchik d180d19a83 MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Support for blocks columns switch when in rtl mode:
theme/base/layout/frontpage.php
theme/base/layout/general.php

Right align course completion checkbox to the right side of the activities and resources, when in RTL mode
theme/base/style/course.css

Right align DOCK bar, when in RTL mode
theme/base/style/dock.css

First-name and Last-name Initials (filter) bar (on every users list) letters spacing (usability issue, NOT RTL issue)
theme/base/style/core.css

Conflicts:

	theme/base/style/core.css
	theme/base/style/course.css
2012-06-18 11:24:04 +08:00
Adrian Greeve db79db63ed MDL-33603 - data - added another sql query to allow links to records to work. 2012-06-18 10:21:38 +08:00
Rajesh Taneja 6947c57a06 MDl-33607 wiki-2: check subwiki before fetching it from db 2012-06-18 10:20:29 +08:00
Rajesh Taneja 4e782b32f3 MDL-33425 user: Replaced filepicker with filemanager on edit profile page 2012-06-18 10:19:48 +08:00
Eloy Lafuente (stronk7) c5e783e512 MDL-33794 version.php: Bump all versions, requires and dependencies to 2012061700 2012-06-18 02:37:00 +02:00
Eloy Lafuente (stronk7) 798c9100d8 MDL-33794 assign: fix some incorrect function names 2012-06-18 02:17:03 +02:00
Petr Skoda d8bf2a14b6 MDL-32003 last db related phpdocs cleanup commit 2012-06-17 22:56:30 +02:00
Petr Skoda 002252f714 MDL-32003 standardise null case 2012-06-17 22:56:30 +02:00
Petr Skoda 2edc3fecfb MDL-32003 fix broken table ordering and cleanup other xmldb ordering 2012-06-17 22:56:30 +02:00
Petr Skoda aaddfac50c MDL-32003 more xmldb phpdocs and PHP4-ism cleanup 2012-06-17 22:56:30 +02:00
Petr Skoda 85d6dd382e MDL-32003 fix xmldb editor code indentations, phpdocs and PHP4-isms 2012-06-17 22:56:29 +02:00
Petr Skoda a6d9d4efc2 MDL-32003 fix PHP4-isms in core xmldb code 2012-06-17 22:56:29 +02:00
Petr Skoda ef7c3f108a MDL-32003 protect xmldb class internals
Use getters and setters instead!
2012-06-17 22:56:29 +02:00
Petr Skoda 01be2287c7 MDL-32003 drop unused statement constants
These were last used in 2.2 upgrade, not allowed any more.
2012-06-17 22:56:29 +02:00
Petr Skoda 94417438b3 MDL-32003 fix phpdocs in xmldb abstraction 2012-06-17 22:56:28 +02:00
Petr Skoda 5a070f0477 MDL-32003 fix phpdocs in DDL layer 2012-06-17 22:56:28 +02:00
Petr Skoda 00902cd974 MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer
DML layer is not supposed to use $CFG,
it is better to rely on __DIR__ in self-contained libs…
2012-06-17 22:56:28 +02:00
Eloy Lafuente (stronk7) 130aed6e7e MDL-33794 version.php: Fix some missing bits before bump. 2012-06-17 19:29:44 +02:00
Damyon Wiese 8b2cfdc1c6 MDL-33793: Add conditions to the assignment upgrade code to prevent overwriting grade items. 2012-06-17 22:41:59 +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
Dan Poltawski dd4502af6b MDL-3971 - mod_forum: contain () in span 2012-06-16 14:21:28 +08:00
Dan Poltawski 15ea1c9105 MDL-33294 - block_blog_recent: fix E_STRICT error
Default object from empty value
2012-06-16 12:46:07 +08:00
Dan Poltawski 7f3b68a892 MDL-33294 - block_blog_tags: fix E_STRICT error
Default object from empty value
2012-06-16 12:45:41 +08:00
AMOS bot 0187c8637c Automatically generated installer lang files 2012-06-16 00:31:27 +00:00
Mary Evans 642b1ca325 MDL-32479 theme_base: some RTL fixes for Moodle 2.3 2012-06-15 22:00:03 +01:00
Eloy Lafuente (stronk7) 85c4758c5a on-demand release 2.3dev 2012-06-15 20:29:04 +02:00
Eloy Lafuente (stronk7) a4b9f21e45 MDL-27156 maxfilesize: Comment out new cap use + return -1 as temp fix
With the capability check and the return -1 commented
it has been checked here that it's possible to upload
and pick from filesystem repository files normally, so
I'm introducing this temp commit to allow people to
use those repos "normallly" until a proper fix arrives
supporting the new cap.
2012-06-15 20:05:46 +02:00
Tim Hunt ba6425ab3d MDL-33779 question: code clean-up 2012-06-15 14:02:15 +01:00
Dan Poltawski ad9fa9712c Merge branch 'MDL-33756' of git://github.com/stronk7/moodle 2012-06-15 18:38:35 +08:00
Eloy Lafuente (stronk7) b37681d59c Merge branch 'MDL-33726' of git://github.com/danpoltawski/moodle 2012-06-15 12:16:56 +02:00
Eloy Lafuente (stronk7) 363cb2df7e Merge branch 'w24_MDL-33768_m23_filters' of git://github.com/skodak/moodle 2012-06-15 12:07:59 +02:00
Aparup Banerjee 951f9829c0 Merge branch 'MDL-33769-master-1' of git://git.luns.net.uk/moodle 2012-06-15 16:26:56 +08:00
Aparup Banerjee cafc5ae9c3 MDL-30337 Themes : RTL fixes for filepicker and filemanager 2012-06-15 16:15:25 +08:00
Eloy Lafuente (stronk7) b9647509d4 MDL-32279 filters: filters: setup() before filter() is better. 2012-06-15 10:12:53 +02:00
Petr Skoda 4371b301f2 MDL-33768 enable activitynames filter by default in new installs 2012-06-15 09:50:45 +02:00
Petr Skoda 8cd436a32d MDL-33768 enable multimedia filter by default in new installs 2012-06-15 09:44:58 +02:00
Andrew Robert Nicols 8ff6c5ee51 MDL-33769 Switch Submit and Cancel buttons around on Activity Chooser 2012-06-15 08:16:11 +01:00
Jerome Mouneyrac 32435a6968 MDL-33770 Web service: create_groups should not require enrolmentkey 2012-06-15 15:14:06 +08:00
Damyon Wiese a13edd499d MDL-33699: Allow grades of 0 in assignment quickgrading 2012-06-15 15:13:26 +08:00
Aparup Banerjee a6c3aed35d Merge branch 'MDL-33317-master' of git://github.com/FMCorz/moodle 2012-06-15 14:54:10 +08:00
Dongsheng Cai d6453211b6 MDL-33513: Make files->source field consistent 2012-06-15 14:51:07 +08:00
Marina Glancy 52474d7497 MDL-33136 upload dnd files one after another 2012-06-15 14:48:02 +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
Dan Poltawski ed2ed3f97e MDL-33468 - fix illegal whitespace 2012-06-15 12:17:40 +08:00
Dan Poltawski 74ef0474fc Merge branch 'wip-MDL-33468-m23' of git://github.com/samhemelryk/moodle 2012-06-15 12:14:49 +08:00
Dan Poltawski d25887d440 Merge branch 'MDL-33731-master-1' of git://git.luns.net.uk/moodle 2012-06-15 12:10:34 +08:00
Dan Poltawski b44022782b MDL-32279 filter: fix undefined variable 2012-06-15 11:58:03 +08:00
Dan Poltawski ccd4972636 Merge branch 'MDL-33758-master-integration' of git://github.com/FMCorz/moodle 2012-06-15 11:30:33 +08:00
Dan Poltawski f898b935af Merge branch 'MDL-33730' of git://github.com/mouneyrac/moodle 2012-06-15 11:07:48 +08:00
Dan Poltawski 66d9586070 Merge branch 'MDL-32279' of git://github.com/stronk7/moodle 2012-06-15 11:02:47 +08:00
Frederic Massart e7ae9c2600 MDL-33758 Filepicker: using iframe instead of popup windows for download 2012-06-15 10:12:57 +08:00
Eloy Lafuente (stronk7) 936402278b MDL-33756 backup: converters only available in general course backups. 2012-06-15 02:27:18 +02:00
Eloy Lafuente (stronk7) d24f821e0f MDL-32279 filters: add documentation to upgrade.txt 2012-06-15 01:24:18 +02:00
Darko Miletic 7547946580 MDL-33523: Fixed item C of the issue 2012-06-14 17:12:53 -03:00
Eloy Lafuente (stronk7) 0ba48ee899 MDL-32279 glossary filter: take rid of unused courseid variable in yui module. 2012-06-14 20:08:07 +02:00
Eloy Lafuente (stronk7) 3ffb739586 MDL-32279 glossary filter: implement the setup() method. 2012-06-14 20:05:45 +02:00
Eloy Lafuente (stronk7) 6c5dbbb36b MDL-32279 filters: add support for setup() methods in filters. 2012-06-14 20:02:20 +02:00
Darko Miletic 42642f6c35 MDL-33523: for for missing image (the folder.gif is no longer available) 2012-06-14 12:34:10 -03:00
Andrew Robert Nicols 605f92ca1d MDL-33729 Ensure that the cancel_popup event is correctly called when using the [x] button on a chooser 2012-06-14 14:46:24 +01:00
Aparup Banerjee 8db5df0c56 Merge branch 'MDL-33442-master-integration' of git://github.com/FMCorz/moodle 2012-06-14 21:29:45 +08:00
Aparup Banerjee 6971dcf7ec Merge branch 'wip-MDL-33596-m23' of git://github.com/samhemelryk/moodle 2012-06-14 21:09:55 +08:00
Andrew Robert Nicols 346099f08b MDL-33731 Add exception for closebutton when drag/dropping activity chooser 2012-06-14 11:30:29 +01:00
Jerome Mouneyrac 7a38450680 MDL-33730 missing description field cause error when call is done on default values 2012-06-14 18:16:03 +08:00
Andrew Robert Nicols 7db27680f8 MDL-33728 Ensure that chooser dialogues are centred vertically 2012-06-14 10:55:16 +01:00
Dan Poltawski 00c41b4083 MDL-33726 course: don't list labels in section summary
Its a special 'non-activity' kind of activity ;-)
2012-06-14 17:24:49 +08:00
Aparup Banerjee 60d3ff94db Merge branch 'MDL-31499-master-iframe' of git://github.com/FMCorz/moodle 2012-06-14 17:08:18 +08:00
Frederic Massart 76055f5de4 MDL-33442 Course: actions bring you back where you came from 2012-06-14 17:07:57 +08:00
Dan Poltawski ed8e053e64 MDL-33724 repository_equella: missing string 2012-06-14 17:01:39 +08:00
Dan Poltawski d4401b9643 Merge branch 'wip-MDL-33420-master' of git://github.com/marinaglancy/moodle 2012-06-14 16:32:03 +08:00
Dan Poltawski 4585e6ac98 Merge branch 'wip-MDL-33550-master' of git://github.com/marinaglancy/moodle 2012-06-14 16:23:08 +08:00
Marina Glancy 6fd1cf05b0 MDL-33550 reset repository static cache between unit tests 2012-06-14 16:21:04 +08:00
Martin Dougiamas 70b1d892ed MDL-33156 pix: standardise image icons for course pages 2012-06-14 16:04:16 +08:00
Damyon Wiese f750cf712c MDL-33697: Merge the 2 assignment notification types
This is the best solution until Moodle supports capabilities on module message providers.

Unfortunately we already changed the mod_assignment language string so I can't put an AMOS
command to copy the new string.
2012-06-14 15:31:23 +08:00
Damyon Wiese a1e54f4d6c MDL-33327: Layout changes for the assignment grading table
Move the grading actions to a single drop down list above the header
Move the grading options below the grading table (although that is inconsistent)

Conflicts:

	mod/assign/gradingtable.php
	mod/assign/locallib.php
2012-06-14 15:22:42 +08:00
Frederic Massart 247804bcc2 MDL-33582 Filepicker: set main file button disabled when not required 2012-06-14 15:14:57 +08:00
Marina Glancy cfc4db405c MDL-33550 Set default status for file =0 and correct setting user in phpunit test 2012-06-14 14:52:31 +08:00
Dan Poltawski 414ce30812 Revert MDL-33513
This reverts commit b2cf2b807f.
This reverts commit 24b96f0170.
This reverts commit 39c60294a6.
This reverts commit 8a288971e2.
2012-06-14 13:57:45 +08:00
Sam Hemelryk 1875b6fb89 MDL-33468 css_optimiser: Coding style clean up and renamed cssslib_test => csslib_test 2012-06-14 17:28:26 +12:00
Sam Hemelryk de3a460e17 MDL-33468 css_optimiser: Fixed aggressive optimisation so that it only combines siblings and doesn't reorder 2012-06-14 17:25:19 +12:00
Dan Poltawski bc1f298b2a MDL-33175 - filemanager: make dndupload icon clickable 2012-06-14 13:25:05 +08:00
Rajesh Taneja d01ebb940d MDL-33506 Filepicker: Search box text will be selected on focus 2012-06-14 13:03:08 +08:00
Sam Hemelryk 778121751d Merge branch 'MDL-32767' of git://github.com/danpoltawski/moodle 2012-06-14 16:37:08 +12:00
Dan Poltawski 1ae5eb704a Merge branch 'MDL-33035-m23' of git://github.com/sunner/moodle 2012-06-14 12:29:14 +08:00
Dan Poltawski 5ab8fde00e Merge branch 'MDL-33718' of git://github.com/netspotau/moodle-mod_assign 2012-06-14 12:25:50 +08:00
Dan Poltawski 745b178e42 Merge branch 'wip-MDL-33592-m23' of git://github.com/samhemelryk/moodle 2012-06-14 12:22:39 +08:00
Dan Poltawski a1394f429b Merge branch 'MDL-33464' of git://github.com/netspotau/moodle-mod_assign 2012-06-14 12:20:14 +08:00
Dan Poltawski d21a98a633 MDL-27156 - version bump for new capability 2012-06-14 12:12:39 +08:00
Dan Poltawski 54588ca214 Merge branch 'MDL-27156_file_cap' of git://github.com/andyjdavis/moodle 2012-06-14 12:00:18 +08:00
Damyon Wiese d9eb908d74 MDL-33718: Help text change for assignment module. 2012-06-14 11:23:27 +08:00
Dan Poltawski cd925ac79b Merge branch 'dev_MDL-33513_files_source' of git://github.com/danpoltawski/moodle 2012-06-14 11:12:21 +08:00
Aparup Banerjee 38d488cea1 MDL-33400 Lib : fixed character miscount 2012-06-14 10:56:40 +08:00
Dan Poltawski b2cf2b807f MDL-33513 repositories - fix misleading phpdocs 2012-06-14 10:55:30 +08:00
Dan Poltawski 813f6964ca MDL-33400 questionlib - minor whitespace/equality imporvement 2012-06-14 10:28:34 +08:00
Dan Poltawski e46dfeb7fc Merge branch 'MDL-33400' of git://github.com/nebgor/moodle 2012-06-14 10:27:23 +08:00
Andrew Davis 845c2ae110 MDL-27156 repositories: switched the file manager and the file picker over to using get_user_max_upload_file_size() 2012-06-14 09:19:26 +07:00
Andrew Davis 1812ea3e06 MDL-27156 repositories: switched some spots over to using get_user_max_upload_file_size() instead of get_max_upload_file_size() 2012-06-14 09:19:25 +07:00
Andrew Davis 8ac95c279c MDL-27156 repository: Added a new capability so that select users can bypass file size restrictions 2012-06-14 09:19:25 +07:00
Damyon Wiese 07a4677eb1 MDL-33464: Do not create a grade item on upgrade (mod_assign) because we already reassigned the old one 2012-06-14 09:14:40 +08:00
Sam Hemelryk 78338b8b0e Merge branch 'MDL-33645-master' of git://github.com/ankitagarwal/moodle 2012-06-14 11:31:46 +12:00
Sam Hemelryk 043a53fb25 Merge branch 'MDL-33541' of git://github.com/danpoltawski/moodle 2012-06-14 11:27:37 +12:00
Sam Hemelryk f90848689c Merge branch 'MDL-33554' of git://github.com/mouneyrac/moodle 2012-06-14 11:20:16 +12:00
Aparup Banerjee 0dd0f96373 MDL-33400 Libraries : added callback to *_question_pluginfile without 'mod_' prefix 2012-06-14 01:30:52 +08:00
Eloy Lafuente (stronk7) 3f2939fa3e Merge branch 'w24_MDL-33204_m23_importsort' of git://github.com/skodak/moodle 2012-06-13 18:01:31 +02:00
Eloy Lafuente (stronk7) f7b3e092e9 Merge branch 'w24_MDL-33635_m23_sort' of git://github.com/skodak/moodle 2012-06-13 16:40:07 +02:00
Petr Skoda bc53b4e9d7 MDL-33635 improve collatorlib::ksort() coding style and perf
Thanks Eloy Lafuente for spotting my sloppy coding style!
2012-06-13 16:37:56 +02: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
Dan Poltawski 5c2bbfd6e9 Merge branch 'MDL-33611' of git://github.com/timhunt/moodle 2012-06-13 18:00:01 +08:00
Dongsheng Cai 24b96f0170 MDL-33513 Fixed source field 2012-06-13 19:57:10 +10:00
Andrew Robert Nicols b95b05085c MDL-33649 Hide page scrollbars when a chooser is open
This has the effect of preventing page scrolling which makes the chooser
difficult to use when there are many options or the page is too small.
2012-06-13 10:51:31 +01:00
Dan Poltawski 4413b48000 Merge branch 'MDL-33581' of git://github.com/mouneyrac/moodle 2012-06-13 17:45:27 +08:00
Tim Hunt 3f0e034d75 MDL-33611 quiz: acutally use the right help string
The previous commit for this bug actually managed to use the wrong one.
2012-06-13 10:43:04 +01:00
Dan Poltawski 52f2bb2995 Merge branch 'MDL-33611' of git://github.com/timhunt/moodle 2012-06-13 16:39:24 +08:00
Dan Poltawski dff798fd4a Merge branch 'wip-MDL-33590-master' of git://github.com/marinaglancy/moodle 2012-06-13 16:33:50 +08:00
Dan Poltawski 966f3a11e1 Merge branch 'w24_MDL-33553_m23_portfoliostrict' of git://github.com/skodak/moodle 2012-06-13 16:22:27 +08:00
Barbara Ramiro 64063bdbe2 MDL-33661 Aligned assignment 2.2 and its subtypes 2012-06-13 16:00:03 +08:00
Dan Poltawski eb6afd93b9 Merge branch 'wip-MDL-33597-m23' of git://github.com/samhemelryk/moodle 2012-06-13 15:45:19 +08:00
Rossiani Wijaya fb909757a6 MDL-33121 Book Module: Removing unused book_log(), renamed css class and fixed the book_preload_chpaters: next and previous values 2012-06-13 15:42:58 +08:00
Tõnis Tartes 5b7e511ea8 MDL-33121 Book Module: performed minor changes and cleanup for the module 2012-06-13 15:28:07 +08:00
Rossiani Wijaya b15ef0b058 MDL-33121 Book Module: Fixed documentation header 2012-06-13 15:25:23 +08:00
Dan Poltawski 2333058eb0 Merge branch 'MDL-33691' of git://github.com/netspotau/moodle-mod_assign 2012-06-13 15:24:42 +08:00
Barbara Ramiro ee0f34b514 MDL-33005 Drag and drop animation revised to play once only 2012-06-13 15:12:53 +08:00
Dan Poltawski 3aad3a5e64 Merge branch 'wip-MDL-33452-master' of git://github.com/marinaglancy/moodle 2012-06-13 15:03:07 +08:00
Nadav Kavalerchik 25df8c4e48 MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Correctly align the filemanager-toolbar , .fp-repo-name , .fp-repo-area , .fp-list .fp-repo
.fp-vb-icons , .fp-vb-details , .fp-vb-tree (need more work!)
.fp-icon , .fp-filename
theme/base/style/core.css
theme/base/style/filemanager.css

Conflicts:
	resolved by taking out all non .dir-rtl lines as there were heavy changes to filemanager and filepicker.
	we can't afford changes or breakage to LTR at this point.

	theme/base/style/core.css
	theme/base/style/filemanager.css
2012-06-13 14:44:43 +08:00
Nadav Kavalerchik cbf4d2f3af MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Correctly align the fp-toolbar, fp-pathbar, fp-viewbar, header, fp-mkdir-dlg
Add rtl images to the YUI file-picker
theme/base/style/core.css

Conflicts:
resolution was simply sticking with .dir-rtl changes only as we are near release and .dirrtl is borked.

	theme/base/style/core.css
	theme/base/style/filemanager.css
2012-06-13 14:22:00 +08:00
Dan Poltawski 3292d9f003 Merge branch 'master_MDL-33477' of git://github.com/danmarsden/moodle 2012-06-13 14:08:36 +08:00
Dan Poltawski 1904310572 Merge branch 'MDL-33608-master-1' of git://git.luns.net.uk/moodle 2012-06-13 14:02:05 +08:00
Nadav Kavalerchik 8c5bd0591b MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Right align NEW YUI3 overlay Activity/Resource Chooser
theme/base/style/core.css
2012-06-13 13:55:33 +08:00
Nadav Kavalerchik 7dd65ae2f2 MDL-32802 - RTL CSS fixes for Moodle 2 (lib/editor/tinymce)
Right align theme Clearlooks2
/lib/editor/tinymce/tiny_mce/3.4.9/plugins/inlinepopups/skins/clearlooks2/window.css
2012-06-13 13:55:17 +08:00
Ankit Agarwal 09b46f0e13 MDL-33645 assign: Teachers should not be allowed to change grades if it is overridden in the gradebook 2012-06-13 13:20:54 +08: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 837eef2e64 MDL-33541 - remove cookies from filepicker 2012-06-13 12:17:52 +08:00
Marina Glancy 0b2bfbd1c6 MDL-33550 Correctly process situation when file reference source is missing
- do not die with fatal error if source file in moodle internal repository is missing;
- moved code duplication for moodle repositories into class repository (functions send_file, get_reference_details, get_file_by_reference, get_file_reference);
- update file status after repository::sync_external_file so we know that it is missing (or not missing anymore). Do not run this function more than once for file within one request;
- display readable name for Private Files and Server files with the new format;
- display broken icon in filemanager if we know that source is missing, display information (for admin) where it was located before: see repository::get_reference_details() and extending classes;
- removed unnecessary queries in stored_file::sync_external_file();
- syncronize files before displaying it's size in mod_resource, do not query  directly
2012-06-13 12:11:06 +08:00
Sam Hemelryk 463ccee1de Merge branch 'MDL-33128-master-1' of git://git.luns.net.uk/moodle 2012-06-13 15:40:39 +12:00
Sam Hemelryk a54a08b818 Merge branch 'MDL-32573' of git://github.com/danpoltawski/moodle 2012-06-13 15:32:54 +12:00
Dan Poltawski 9379a9190d Merge branch 'MDL-33576-2' of git://github.com/netspotau/moodle-mod_assign 2012-06-13 11:28:39 +08:00
Sam Hemelryk 7cbd6d8353 Merge branch 'MDL-33675-master-1' of git://git.luns.net.uk/moodle 2012-06-13 15:24:07 +12:00
Damyon Wiese 571cc0b7d2 MDL-33691: The grading table is showing "graded" for assignments with a NULL grade 2012-06-13 11:01:37 +08:00
Dan Poltawski 38569ad3a2 Merge branch 'master_MDL-32937' of git://github.com/danmarsden/moodle 2012-06-13 10:12:21 +08:00
Dan Marsden c6e423695a MDL-33477 Advanced grading Marking Guide - fix lang 2012-06-13 14:09:41 +12:00
Dan Poltawski b9c871b18a Merge branch 'wip-mdl-33664' of git://github.com/rajeshtaneja/moodle 2012-06-13 10:07:32 +08:00
Rajesh Taneja b0fc12189b MDL-33664 Hub: required renderer is passed to backup->display and huburl is initalised before use. 2012-06-13 09:21:13 +08:00
Marina Glancy be920f9acf MDL-33420 Enable references in Server files repository 2012-06-13 09:03:41 +08:00
Marina Glancy ff32444a7c MDL-33590 Correctly determine that file is an archive to enable unzip in filemanager 2012-06-13 08:57:10 +08:00
Damyon Wiese e7ade405eb MDL-33576: If grade set to "No grade" in mod_assign hide inputs for quickgrading 2012-06-13 08:55:02 +08:00
Eloy Lafuente (stronk7) 0961ca7998 MDL-33682 backup: keep old behavior, aka, use section number on empty section name. 2012-06-13 00:54:21 +02:00
Eloy Lafuente (stronk7) 1df09d3af2 Merge branch 'MDL-33682' of git://github.com/timhunt/moodle 2012-06-13 00:37:42 +02:00
Eloy Lafuente (stronk7) dbe4bcc959 Merge branch 'MDL-33681' of git://github.com/timhunt/moodle 2012-06-13 00:06:26 +02:00
Dan Marsden cb6782d4a5 MDL-32937 SCORM: better lang for dnd interface 2012-06-13 09:59:11 +12:00
Aparup Banerjee 039e110509 Merge branch 'MDL-33610' of git://github.com/danpoltawski/moodle 2012-06-13 01:59:33 +08:00
Aparup Banerjee fa4ae5ac9f Merge branch 'MDL-33593' of git://github.com/danpoltawski/moodle 2012-06-13 01:46:17 +08:00
Tim Hunt ff5d6f8872 MDL-33682 backup: cope with sections called '0'
It was not previously possible to have a section called 0 because of
bugs in the standard course formats, but we hit this with the OU course
format. You got an exception because backup settings tested to see if
their lable was empty, which means a section name of '0' was fatal.
Should work now.
2012-06-12 17:46:47 +01:00
Tim Hunt bb410a1ecc MDL-33681 course: cannot have a section called '0'.
No reason to prevent this. It is just a matter of doing a proper test,
rather than the sloppy PHP !empty().
2012-06-12 17:45:40 +01:00
Dan Poltawski c17ec774d7 MDL-33552 - portfolio api E_STRICT fixes
admin_config_form and admin_config_validation are now static
2012-06-12 22:56:42 +08:00
Dan Poltawski 4a126f1725 MDL-32573 - repository: make instance_config_form static 2012-06-12 22:17:29 +08:00
Andrew Robert Nicols 8635302e54 MDL-33675 Add updated help texts for modules to appear in activity chooser 2012-06-12 13:38:17 +01:00
Dan Poltawski 19774b885d Merge branch 'MDL-33676' of git://github.com/danpoltawski/moodle 2012-06-12 18:36:08 +08:00
Eloy Lafuente (stronk7) 2903a92b29 Merge branch 'MDL-33123-master' of git://github.com/ankitagarwal/moodle 2012-06-12 12:33:54 +02:00
Eloy Lafuente (stronk7) e47275fa0d Merge branch 'w24_MDL-33636_m23_yuislash' of git://github.com/skodak/moodle 2012-06-12 12:31:27 +02:00
Barbara Ramiro 59e807e800 MDL-33676 Activity chooser dialogue background set to transparent for IE 2012-06-12 18:30:22 +08:00
Tim Hunt 7ead73c106 MDL-33611 quiz: improve help string
Thanks to Helen and Michelle. Who would have thought that 124 words
would require such a team effort!
2012-06-12 10:38:47 +01:00
Dan Poltawski 8409bd51f4 Merge branch 'MDL-33612' of git://github.com/timhunt/moodle 2012-06-12 17:38:25 +08:00
Dan Poltawski 93de786561 Merge branch 'MDL-33292-master-3' of git://git.luns.net.uk/moodle 2012-06-12 17:18:18 +08:00
Dan Poltawski ac961e292a Merge branch 'MDL-33588-master-1' of git://git.luns.net.uk/moodle 2012-06-12 17:16:40 +08:00
Dan Poltawski ee6b360431 Merge branch 'w24_MDL-33182_m23_mnetstrict' of git://github.com/skodak/moodle 2012-06-12 17:10:54 +08:00
Petr Skoda 2e297453b8 MDL-33182 fix mnet enrol E_STRICT issue 2012-06-12 11:08:33 +02:00
Petr Skoda 6498b6190a MDL-33553 fix mod_data E_STRICT issue 2012-06-12 11:05:02 +02:00
Dan Poltawski 203d255116 Merge branch 'MDL-33393' of git://github.com/timhunt/moodle
Conflicts:
	mod/quiz/lang/en/quiz.php
2012-06-12 17:00:09 +08:00
Petr Skoda f327b9c3f3 MDL-33204 use natural filename sorting when importing books form html 2012-06-12 10:59:58 +02:00
Petr Skoda b71d0b43fc MDL-33635 add collatorlib::ksort() support 2012-06-12 10:57:24 +02:00
Petr Skoda 212826853b MDL-33635 improve collatorlib
1/ the sort flag can not use Intl extension constants because they may not be available
2/ add sort flag to all methods
3/ use private constructor instead of abstract - more Java like API to match the textlib
4/ add natural sorting support
5/ consistent bool return type
6/ better non-intl fallback
7/ more tests
2012-06-12 10:57:24 +02:00
Petr Skoda 7953149e01 MDL-33204 disable yui_combo slasharguments by default for now 2012-06-12 10:13:17 +02:00
Petr Skoda 84e1e04418 MDL-33636 add more yui caching goodness 2012-06-12 10:13:01 +02:00
Ankit Agarwal b0b30cb648 MDL-33123 book: Fixing numbering issue with hidden sub-chapters 2012-06-12 16:03:40 +08:00
Dan Poltawski 82fc6ae6e3 Merge branch 'MDL-33598-master-integration' of git://github.com/FMCorz/moodle 2012-06-12 15:57:58 +08:00
Dan Poltawski 071d8ea75b Merge branch 'wip-MDL-33156-master' of https://github.com/barbararamiro/moodle 2012-06-12 15:55:26 +08:00
Dan Poltawski f3e526b859 Merge branch 'wip-MDL-33005-master' of https://github.com/barbararamiro/moodle 2012-06-12 13:54:10 +08:00
Dan Poltawski 760c063bc0 Merge branch 'wip-MDL-33446-master' of git://github.com/marinaglancy/moodle 2012-06-12 13:45:10 +08:00
Dan Poltawski 502be9a069 MDL-33572 - assign: fixed syntax probblem found immediately after integration
Grr. shouldn't have escaped our review.
2012-06-12 13:41:54 +08:00
Dan Poltawski 08f5648de3 Merge branch 'MDL-33572' of git://github.com/netspotau/moodle-mod_assign 2012-06-12 13:38:34 +08:00
Dan Poltawski 14507142a1 Merge branch 'w23_MDL-33543_m23_datastrict' of git://github.com/skodak/moodle 2012-06-12 13:36:15 +08:00
Dan Poltawski 8550d72d85 MDL-32937 - scorm: switch commenting style to // 2012-06-12 13:18:51 +08:00
Dan Poltawski d87debaa3e MDL-32767 - course: Add a summary of activities
When in single-page summary mode
2012-06-12 13:13:52 +08:00
Frederic Massart db48ed64c7 MDL-33598 Messaging: students can change their assignment notification preferences 2012-06-12 13:10:43 +08:00
Dan Poltawski 91f0dd438a Merge branch 'master_MDL-32937' of git://github.com/danmarsden/moodle 2012-06-12 13:05:47 +08:00
Dan Poltawski 555099c666 Merge branch 'MDL-33400' of git://github.com/nebgor/moodle 2012-06-12 13:03:42 +08:00
Aparup Banerjee 7d22edb6b1 Merge branch 'master_MDL-33515' of git://github.com/danmarsden/moodle 2012-06-12 11:25:17 +08:00
Aparup Banerjee 575776c1bd Merge branch 'MDL-31863' of git://github.com/mouneyrac/moodle 2012-06-12 11:09:51 +08:00
Marina Glancy c0e8f211d3 MDL-33452 It must not possible to create an alias to another alias
- if the downloaded file is an alias we pretend that we operate with its source
2012-06-12 11:03:54 +08:00
Marina Glancy c469b3963b MDL-33446 Editor form field can filter return types
- Added possibility for editor form field to specify return_types (default FILE_INTERNAL | FILE_EXTERNAL | FILE_REFERENCE)
- For assignment, workshop, quiz essay submissions and form posts do not allow FILE_REFERENCE
- Fixed mod_resource return_types, reset them to default, because filemanager does not know how to work with FILE_EXTERNAL links
2012-06-12 11:03:43 +08:00
Sam Hemelryk 8f856cd041 MDL-33597 css_optimiser: Moved the Enable CSS optimiser setting from advanced to experimental settings 2012-06-12 14:23:20 +12:00
Sam Hemelryk b305d623a5 MDL-33596 css_optimiser: Added an option for themes to disable the CSS optimiser 2012-06-12 14:23:15 +12:00
Sam Hemelryk 5c1f0d1ff6 MDL-33592 navigation: Added support for local_ prefix on navigation callback 2012-06-12 14:23:09 +12:00
Sam Hemelryk d2830cdd93 MDL-33468 css_optimiser: pre-integration clean up 2012-06-12 14:22:56 +12:00
Sam Hemelryk f791122195 MDL-33468 css_optimiser: Fixed validation of individual background styles 2012-06-12 14:22:56 +12:00
Sam Hemelryk ecad5058a0 MDL-33504 css_optimiser: Added support for common media-queiries 2012-06-12 14:22:56 +12:00
Sam Hemelryk 3daafb9295 MDL-33468 css_optimiser: Fixed handling of !important in shorthand notations 2012-06-12 14:22:56 +12:00
Sam Hemelryk e3036985b2 MDL-33468 css_optimiser: Added support for multiple values for a single attribute 2012-06-12 14:22:55 +12:00
Sam Hemelryk 6a519fdcf1 MDL-33468 css_optimiser: Improved consolidation of background styles and fixed ordering issue 2012-06-12 14:22:55 +12:00
Sam Hemelryk 0663b5353c MDL-33468 css_optimiser: Added support for prioritising reset rules 2012-06-12 14:22:55 +12:00
Sam Hemelryk 1121f79b91 MDL-33468 css_optimiser: Added support for @keyframes to the CSS optimiser 2012-06-12 14:22:55 +12:00
Sam Hemelryk f2e8d3798c MDL-33468 css_optimiser: Numerous fixes to the CSS optimiser and its tests 2012-06-12 14:22:55 +12:00
Eloy Lafuente (stronk7) f8dfdb524b on-demand release 2.3dev 2012-06-12 03:01:04 +02:00
Eloy Lafuente (stronk7) 92b0d9820e Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-12 02:55:03 +02:00
Eloy Lafuente (stronk7) daf28d868b MDL-32117 equella: make it core plugin 2012-06-12 02:37:04 +02:00
Eloy Lafuente (stronk7) 74ea1b95f4 MDL-32117 equella: add missing MOODLE_INTERNAL + phpdocs tidy 2012-06-12 02:23:14 +02:00
Eloy Lafuente (stronk7) 37b8257de5 Merge branch 'equella' of git://github.com/danpoltawski/moodle 2012-06-12 02:22:26 +02:00
Andrew Robert Nicols 0080872fc4 MDL-33608 Correct modulename_link for the label module 2012-06-11 12:41:25 +01:00
Barbara Ramiro d76dfe97dd MDL-33005 Replaced drag and drop arrow with animated gif 2012-06-11 19:37:33 +08:00
Barbara Ramiro 398c04dc59 MDL-33156 Customized 16px icons and generic image icons 2012-06-11 16:28:54 +08:00
Dongsheng Cai 39c60294a6 MDL-33513 box.net repository should have filename in source field 2012-06-11 17:41:32 +10:00
Dan Poltawski 2365213fdb MDL-33623 - course: remove incorrect logic for marker moving 2012-06-11 15:11:10 +08:00
Frederic Massart 4988b54667 MDL-33317 Theme: added jQuery noConflict to myMobile 2012-06-11 14:54:54 +08:00
Jerome Mouneyrac ecd1bdf420 MDL-31863 fix responseerror when no files are found 2012-06-11 14:12:00 +08:00
Aparup Banerjee fef6b15ad9 MDL-31863 Web Service : get_files() optional $modified timestamp returns files changed after given time. 2012-06-11 14:06:56 +08:00
Yang Yang 8f3039576a MDL-31863 Web service : added modified to parameters and modifiedtime to description 2012-06-11 14:06:46 +08:00
Aparup Banerjee 42fd396171 Merge branch 'MDL-33548' of git://github.com/timhunt/moodle 2012-06-11 13:55:20 +08:00
Aparup Banerjee 6b8b0b2e68 MDL-34400 Libraries : maintained naming rule by removing stray mod_ function and class prefixes from activity modules.
This rule @ http://docs.moodle.org/dev/Activity_modules still stands for now.
2012-06-11 13:34:47 +08:00
Tim Hunt 33d7737711 MDL-33610 theme - increase activity icon spacing 2012-06-11 12:21:13 +08:00
Dan Poltawski 3d8fe4820a MDL-33623 - course: add unit tests for section moving
Including tracking of the course marker updates
2012-06-11 11:46:22 +08:00
Eloy Lafuente (stronk7) 3ea1330949 MDL-33455 restore: process grade_grades only if user matches.
Note this has been applied both to individual activities grade_grades
and to general ones.
2012-06-11 11:30:20 +08:00
Dan Poltawski 85aec6a4a2 MDL-33514 - rss: also exclude suspended users feeds
Thanks Petr!
2012-06-11 10:26:29 +08:00
Dan Poltawski d66e5720a1 MDL-32117 - equella: prevent errors when no username 2012-06-11 10:08:16 +08:00
Christopher Tombleson 01b5936cd0 MDL-32937 Add drag and drop support to SCORM 2012-06-11 12:18:32 +12:00
Petr Skoda 8d475fe4fe MDL-33543 fix mod_data E_STRICT issue when adding fields with file size limits 2012-06-10 10:05:59 +02:00
Dongsheng Cai 8a288971e2 MDL-33513: Make files->source field consistent 2012-06-10 17:47:00 +10:00
Eloy Lafuente (stronk7) f0852f474b MDL-33630 backup: invalidate ids cache on temptable drop. 2012-06-10 04:57:40 +02:00
AMOS bot 73da957671 Automatically generated installer lang files 2012-06-09 00:31:15 +00:00
Eloy Lafuente (stronk7) fcbf68fd05 Merge branch 'w23_MDL-33595_m23_phpunitinit' of git://github.com/skodak/moodle 2012-06-08 19:32:26 +02:00
Eloy Lafuente (stronk7) 997c7e2744 Merge branch 'MDL-33471' of git://github.com/timhunt/moodle 2012-06-08 17:08:18 +02:00
Tim Hunt 815fcecc40 MDL-33471 quiz cron: better mtrace output for overdue handling 2012-06-08 16:02:01 +01:00
Tim Hunt 4c7f377d9b MDL-33612 quiz: Improve page title 'Editing quiz'
Include the quiz name in the title. Also, add two missing format_string
calls around $quiz->name.
2012-06-08 11:47:03 +01:00
Petr Skoda 7cb76d1645 MDL-33595 fix recent initial PHPUnit init regression 2012-06-08 11:50:03 +02:00
Eloy Lafuente (stronk7) 78117cb1a4 MDL-33465 fix incorrect merge conflict resolution 2012-06-08 10:55:39 +02:00
Dan Marsden e099166635 MDL-33515 SCORM - attempts grading setting is confusing - last attempt is really last completed attempt. 2012-06-08 20:33:38 +12:00
Dan Poltawski ec3d3ede80 MDL-33465 - bump version number for new log entry defintion 2012-06-08 15:54:31 +08:00
Dan Poltawski 4e020fe71d Merge branch 'MDL-33465-master' of git://github.com/ankitagarwal/moodle 2012-06-08 15:51:41 +08:00
Ankit Agarwal 283ba570c0 MDL-33465 course: COALESCE is not cross-db compatible while using fields of different datatypes 2012-06-08 15:48:18 +08:00
Dan Poltawski dcac0787b9 Revert "MDL-31863 Web service : added modified to parameters and modifiedtime to description"
This reverts commit 25ccaf5494.
2012-06-08 15:25:40 +08:00
Dan Poltawski c13dcf934e Revert "MDL-31863 Web Service : get_files() optional $modified timestamp returns files changed after given time."
This reverts commit 130d3fbf96.
2012-06-08 15:25:34 +08:00
Dan Poltawski c9d7e6fa16 Merge branch 'MDL-33498' of git://github.com/netspotau/moodle-mod_assign 2012-06-08 13:39:17 +08:00
Jason Fowler d508e71d4c MDL-33594 - Glossary - fixing portfolio exports 2012-06-08 13:32:44 +08:00
Dan Poltawski b63084a58b MDL-33594 mod_data: use filelib rather than speciifc internal file 2012-06-08 13:31:31 +08:00
Frederic Massart 98d5bad9fa MDL-31499 Filepicker: download all function uses iframe instead of popup 2012-06-08 12:32:39 +08:00
Jerome Mouneyrac 3297d57528 MDL-33581 missing parameter defaults for some external functions 2012-06-08 11:54:59 +08:00
Dan Poltawski 8ac226d23c Merge branch 'MDL-33587-delete-alias' of git://github.com/mudrd8mz/moodle 2012-06-08 11:40:56 +08:00
Dan Poltawski e13388c1c0 MDL-32783 quiz overdue handling: improve lang string
And remove a stray #
2012-06-08 10:47:31 +08:00
Dan Poltawski 583c698ee1 Merge branch 'MDL-32783' of git://github.com/timhunt/moodle 2012-06-08 10:36:17 +08:00
Dan Poltawski 3970a4719c MDL-33593 course: rename editingenabled param
Change to notifyeditingon to better reflect what it does and
prevent people getting confused with edit=1
2012-06-08 10:21:58 +08:00
Eloy Lafuente (stronk7) 61aaad4833 Merge branch 'w23_MDL-33583_m23_keepall' of git://github.com/skodak/moodle 2012-06-08 01:56:06 +02:00
Sam Hemelryk c224cc643b Merge branch 'w23_MDL-33557_m23_initpath' of git://github.com/skodak/moodle 2012-06-08 11:53:43 +12:00
Eloy Lafuente (stronk7) a3974b0106 Merge branch 'w23_MDL-30725_m23_backuptrash' of git://github.com/skodak/moodle 2012-06-08 01:43:40 +02:00
Sam Hemelryk 76cc4fd177 Merge branch 'MDL-33080' of git://github.com/stronk7/moodle 2012-06-08 10:23:16 +12:00
Sam Hemelryk 5874cc6aab Merge branch 'MDL-32325-master' of git://github.com/FMCorz/moodle 2012-06-08 10:20:43 +12:00
Eloy Lafuente (stronk7) 03a94794fc Merge branch 'MDL-32985_integration' of git://github.com/merrill-oakland/moodle 2012-06-08 00:04:19 +02:00
Sam Hemelryk a15e8b4101 MDL-30506 navigation: Fixed up reference handling issue and added docs post integration 2012-06-08 09:34:19 +12:00
Sam Hemelryk a509cb29c3 Merge branch 'MDL-30506' of git://github.com/jonof/moodle 2012-06-08 09:04:46 +12:00
Tim Hunt a6866c7e9f MDL-32783 quiz overdue handling: enforce end of grace period
The summary page was not enforcing the end of the grace period. If the
user had the summary page open, then they coudl still stubmit after the
end of the grace period.

Also, the editing form was not validating that the quiz grace period was
greater than quiz|graceperiodmin in the quiz configuration, and that
should be checked, so I added it.

I fear that processattempt.php is becoming very spaghetti-like with all
the timing rules, it really needs to be refactored, but not 2 weeks
before the 2.3 release. (When refactoring, we really need unit tests for
this.)
2012-06-07 19:17:07 +01:00
Tim Hunt d9552ab44f MDL-33393 quiz overdue handling: improve strings and add help 2012-06-07 17:33:46 +01:00
David Mudrak 3b2465fee6 MDL-33587 Delete the reference properly in stored_file::delete() 2012-06-07 18:02:12 +02:00
David Mudrak 1c0da8498f MDL-33587 Improve stored_file::delete_reference() method 2012-06-07 17:37:25 +02:00
David Mudrak 2fa8aea279 MDL-33587 Throw coding exception when trying to unlink a non-reference file 2012-06-07 17:36:29 +02:00
David Mudrak 2d2c194bbe MDL-33587 Add unit tests for stored_file::delete_reference()
The first unit test forces the File API to be more picky as any sane
core API should be. The second one illustrates the buggy behaviour of
the current implementation of delete_reference(). They both fail at the
moment, of course...
2012-06-07 17:36:23 +02:00
Dan Poltawski 55244f8527 Merge branch 'MDL-33577' of git://github.com/timhunt/moodle 2012-06-07 23:15:45 +08:00
Dan Poltawski 901f49097a Merge branch 'MDL-33532' of git://github.com/timhunt/moodle 2012-06-07 22:23:38 +08:00
Dan Poltawski 9c1fe3356f Merge branch 'MDL-33565' of git://github.com/timhunt/moodle 2012-06-07 22:14:28 +08:00
Andrew Robert Nicols 984ec46e03 MDL-33292 Consume the new ability to move dialogues in chooser dialogues 2012-06-07 14:58:54 +01:00
Dan Poltawski 3bc24f9aa7 Merge branch 'MDL-33517' of git://github.com/timhunt/moodle 2012-06-07 21:49:14 +08:00
Andrew Robert Nicols 06a78ea6a4 MDL-33292 Add ability to move (drag) M.core.dialogue 2012-06-07 14:47:33 +01:00
Andrew Robert Nicols 371409f41e MDL-33588 Ensure that a drop target is defined before checking a drop group 2012-06-07 14:46:36 +01:00
Damyon Wiese a2d1d76961 MDL-33547: Fix for mod_assign portfolio export for a list of files.
This will fix any submission or feedback plugin using render_area_files
to show a list of files.
2012-06-07 14:46:36 +01:00
Tim Hunt 7f5f384477 MDL-33532 quiz editing: let uses enter locale floats.
So, for example, Croatian users can set the maximum grade to 65,5.
2012-06-07 12:55:53 +01:00
Tim Hunt b84477000a MDL-33577 qtype_multianswer: Fix strict syntax warning. 2012-06-07 12:32:41 +01:00
Dan Poltawski 620ecd38d2 Merge branch 'wip-MDL-33482-master' of git://github.com/danpoltawski/moodle 2012-06-07 18:11:10 +08:00
Barbara Ramiro 8d25aeb711 MDL-33482 Replaced modchooser with chooserdialouge and cleaned codes 2012-06-07 18:09:14 +08:00
Andrew Robert Nicols 255dd8d1e2 MDL-33482 Replaced modchooser with chooserdialogue 2012-06-07 18:09:14 +08:00
Barbara Ramiro 89e00e91cd MDL-33482 Activity Chooser styled similar to Filepicker particularly the look and feel with drop shadow 2012-06-07 18:09:14 +08:00
Dan Poltawski 644495114e Merge branch 'MDL-33475' of git://github.com/netspotau/moodle-mod_assign 2012-06-07 17:33:39 +08:00
Dan Poltawski a6eecb7c9d Merge branch 'MDL-33535-master-1' of git://git.luns.net.uk/moodle 2012-06-07 17:25:59 +08:00
Andrew Robert Nicols 928cc791e6 MDL-33573 Remove anchor from activity chooser link until JS is ready 2012-06-07 10:15:52 +01:00
Petr Skoda dbf7784e67 MDL-33583 really keep all automated backup files when told to do so 2012-06-07 11:05:15 +02:00
Petr Skoda 096702f698 MDL-30725 save automated external only backups directly to ext storage, do not pollute file pool
This solution is based on code by Tony Levi, thanks!
2012-06-07 10:49:48 +02:00
Dan Poltawski d9d59e3911 MDL-33551 googleapi: allow multiple uploads in one session
We need to clear state between multiple uploads
2012-06-07 16:38:10 +08:00
Andrew Robert Nicols 7ccec1e2cf MDL-33535 Correct typo in glossary documentation link 2012-06-07 09:17:40 +01:00
Dan Poltawski c9978ce67b Merge branch 'w23_MDL-33555_m23_assignfk' of git://github.com/skodak/moodle 2012-06-07 14:29:08 +08:00
Aparup Banerjee ac16f14512 Merge branch 'MDL-33465-master' of git://github.com/ankitagarwal/moodle
Conflicts:
	backup/moodle2/restore_stepslib.php
2012-06-07 14:04:08 +08:00
Dan Poltawski 25f288f2fd Merge branch 'MDL-33467' of git://github.com/timhunt/moodle 2012-06-07 13:33:22 +08:00
Dan Poltawski 2960a22052 Merge branch 'MDL-33322' of git://github.com/rwijaya/moodle 2012-06-07 13:02:38 +08:00
Aparup Banerjee 3872cae1eb Merge branch 'MDL-31863' of git://github.com/nebgor/moodle 2012-06-07 11:59:13 +08:00
Aparup Banerjee 130d3fbf96 MDL-31863 Web Service : get_files() optional $modified timestamp returns files changed after given time. 2012-06-07 11:57:19 +08:00
Yang Yang 25ccaf5494 MDL-31863 Web service : added modified to parameters and modifiedtime to description 2012-06-07 11:56:19 +08:00
Damyon Wiese eba009ea63 MDL-33475: Fix javascript error when advanced grading is used in mod_assign 2012-06-07 10:52:05 +08:00
Damyon Wiese 2d8a9ce96c MDL-33572: Make the display of the "graded" status consistent in mod_assign
Do not display "graded" when the grade is set to -1.
2012-06-07 10:22:46 +08:00
Damyon Wiese 4913af936f MDL-33498: Correct use of unformat_float for mod_assign decimal grades
This was affecting locales that use , instead of . in floating point numbers.
2012-06-07 09:27:59 +08:00
Andreas Grabs e7fc2ff42e MDL-27675 - Feedback module abuses data_submitted 2012-06-06 23:17:35 +02:00
Tim Hunt 98984c09a2 MDL-33565 setuplib: better error if you pass an object as $debuginfo
This changes makes sure the error is triggerd when the exception is
thrown, so that the problem code is in the stack-trace. Before, the
error happend in the exception hander, so you could not see the code
that caused the problem.
2012-06-06 20:33:16 +01:00
Tim Hunt ee326d5e7d MDL-33548 quiz manual grading: check the grade is in range.
To do this nicely, I refactored some code out of the quiz manual grading
report.
2012-06-06 20:21:33 +01:00
Tim Hunt f02a91fc50 MDL-33517 quiz: revise timelimit help string.
Thanks Helen.
2012-06-06 19:24:48 +01:00
Eric Merrill 54c2756ca2 MDL-32985 cron: Fixing related problem with setting of lastnotifyfailure
Because of a flaw in the logic, lastnotifyfailure was not set unless
there was a failure. This means that after 1 hour of no failures, the
function would execute every cron cycle, which has a pretty high cost
on large sites.
2012-06-06 12:04:03 -04:00
Dan Poltawski b30dc391e7 MDL-33514 - rss: only retrieve RSS feeds for valid users 2012-06-06 23:37:16 +08:00
Petr Skoda 5f9ba165de MDL-33557 fix path in PHPUnit init hint
This resolves problem when execution phpunit in subdirectory.
2012-06-06 12:29:20 +02:00
Marina Glancy 2aad62e93c MDL-33467 fixed variable name conflict 2012-06-06 11:17:07 +01:00
Petr Skoda 3269c859bf MDL-33555 fix invalid FK in mod_assign
There is no need to upgrade DB because we create only indexes now.
2012-06-06 10:54:40 +02:00
Jerome Mouneyrac fe77a34ed0 MDL-33554 update_categories didn't update the path field when moving category 2012-06-06 16:40:06 +08:00
Dan Poltawski 4a5be0e949 MDL-33330 /lib/db/upgrade.php: fix stray semicolon
Breaking Oracle upgrade
2012-06-06 16:25:20 +08:00
Dan Poltawski 79c2b50980 Merge branch 'MDL-33330-files-reference' of git://github.com/mudrd8mz/moodle
Conflicts:
	version.php
    lib/db/upgrade.php
2012-06-06 16:18:30 +08:00
Dan Poltawski de6a0dfd3d Merge branch 'MDL-33547' of git://github.com/netspotau/moodle-mod_assign 2012-06-06 16:09:15 +08:00
Damyon Wiese 509e59ca38 MDL-33547: Fix for mod_assign portfolio export for a list of files.
This will fix any submission or feedback plugin using render_area_files
to show a list of files.
2012-06-06 15:49:37 +08:00
Jerome Mouneyrac 55e168e3a3 MDL-32581 Web services : should force type of external_format_value structure 2012-06-06 14:29:45 +08:00
Dan Poltawski 7f04dd633f Merge branch 'MDL-33088-master' of git://github.com/FMCorz/moodle 2012-06-06 13:20:59 +08:00
Frederic Massart a8608cba3f MDL-33088 Glossary: disabled filtering on concepts in recent activity block 2012-06-06 12:57:02 +08:00
Dan Poltawski dcba513f4b Merge branch 'w23_MDL-32632_m23_windate' of git://github.com/skodak/moodle 2012-06-06 12:27:10 +08:00
Sam Hemelryk 5dc4db1ef2 Merge branch 'MDL-33090-missing-xmldb-strings' of git://github.com/rlorenzo/moodle 2012-06-06 15:37:43 +12:00
Sam Hemelryk e5b200cd65 Merge branch 'wip-mdl-33367' of git://github.com/rajeshtaneja/moodle 2012-06-06 15:19:49 +12:00
Aparup Banerjee bfcf1a449c Merge branch 'wip-MDL-33527-master' of git://github.com/phalacee/moodle 2012-06-06 11:07:08 +08:00
Dan Poltawski c89331a4ca Merge branch 'MDL-33119' of git://github.com/timhunt/moodle 2012-06-06 10:31:12 +08:00
Frederic Massart 50d24a3c85 MDL-32325 Glossary: Entrylist print version is XHTML compliant 2012-06-06 09:55:36 +08:00
Jason Fowler abaf245f10 MDL-33527 - Database - Fixing the ability to export database entries 2012-06-06 09:13:26 +08:00
Jonathon Fowler 0cc24b8425 MDL-30506 navigation: Hook for local plugins to extend the settings_navigation tree 2012-06-06 10:38:03 +10:00
AMOS bot 4cd6f90eed Automatically generated installer lang files 2012-06-06 00:31:25 +00:00
Sam Hemelryk f064f0fd15 Merge branch 'w23_MDL-33103_m23_dataestrict' of git://github.com/skodak/moodle 2012-06-06 11:50:19 +12:00
Sam Hemelryk 9897974b82 Merge branch 'MDL-33511' of git://github.com/danpoltawski/moodle 2012-06-06 11:43:47 +12:00
Sam Hemelryk 1236d15b0e Merge branch 'MDL-33528' of git://github.com/mouneyrac/moodle 2012-06-06 11:13:32 +12:00
Sam Hemelryk 4744851197 Merge branch 'MDL-30837-master' of https://github.com/FMCorz/moodle 2012-06-06 11:00:20 +12:00
Sam Hemelryk ca774c940e MDL-31520 user-ws: Optimised if statement for email access by moving admin check to the start 2012-06-06 10:35:19 +12:00
Sam Hemelryk fd200bc5e5 Merge branch 'MDL-31520-master' of git://github.com/fabiomsouto/moodle 2012-06-06 10:33:31 +12:00
Sam Hemelryk dd9e2c8d44 Merge branch 'MDL-33503' of git://github.com/stronk7/moodle 2012-06-06 10:18:43 +12:00
Sam Hemelryk 447ebaa90e Merge branch 'MDL-31823_master' of git://github.com/dmonllao/moodle 2012-06-06 10:14:00 +12:00
Sam Hemelryk 4ed1657f3e Merge branch 'MDL-33441' of git://github.com/danpoltawski/moodle 2012-06-06 10:10:05 +12:00
Sam Hemelryk f48de74428 Merge branch 'MDL-33487' of git://github.com/danpoltawski/moodle 2012-06-06 10:06:17 +12:00
Kordan 9ad11a6c70 MDL-32905 theme_formal_white: changed three setting name, some string name and string content
AMOS BEGIN
 MOV [displaylogodesc,theme_formal_white],[headercontentdesc,theme_formal_white]
 MOV [frontpagelogo,theme_formal_white],[frontpagelogourl,theme_formal_white]
 MOV [frontpagelogodesc,theme_formal_white],[frontpagelogourldesc,theme_formal_white]
 MOV [heading,theme_formal_white],[displayheading,theme_formal_white]
 MOV [logo,theme_formal_white],[customlogourl,theme_formal_white]
 MOV [logodesc,theme_formal_white],[customlogourldesc,theme_formal_white]
 CPY [moodlelogo,theme_formal_white],[displaylogo,theme_formal_white]
AMOS END
2012-06-06 10:02:39 +12:00
Sam Hemelryk 238858e362 MDL-26277: Fixed whitespace post integration 2012-06-06 09:15:18 +12:00
Sam Hemelryk e8a20ce85a Merge branch 'MDL-26277-master' of https://github.com/mackensen/moodle 2012-06-06 09:07:34 +12:00
Sam Hemelryk 2c7a72df06 Merge branch 'MDL-33369-master' of git://github.com/ankitagarwal/moodle with changes 2012-06-06 09:05:04 +12:00
Sam Hemelryk b576a97554 Merge branch 'MDL-33031_master' of git://github.com/kordan/moodle 2012-06-06 08:54:38 +12:00
Sam Hemelryk 7df271d9b3 Merge branch 'MDL-27559-master-v2' of https://github.com/mackensen/moodle 2012-06-06 08:51:11 +12:00
Sam Hemelryk 5deaa764ba Merge branch 'MDL-33056_dnd_status_bar' of git://github.com/davosmith/moodle 2012-06-06 08:30:02 +12:00
David Mudrak 0ad654dc8b MDL-33330 Use the referencehash when searching for references
Together with this, refactoring and cleanup of search_references() and
similar methods was done. SQL was improved to use the INNER JOIN instead
of the LEFT JOIN as we are really interested in records that have a
reference. Also, joining the {repository_instances} table assures that
only references with valid repository_instance are returned (the check
against is_external_file() can't be applied to the methods that return
the count of references so I dropped it completely).
2012-06-05 14:07:25 +02:00
David Mudrak 6bbf31c395 MDL-33330 Create new unique index in files_reference
The combination of repositoryid and reference field is supposed to be a
unique identification of an external file. Because the reference is a
TEXT field, we can't use it to compose the index. So we use the
referencehash instead and the file API is responsible to keep it
up-to-date.
2012-06-05 14:07:24 +02:00
David Mudrak 8f47a60e4e MDL-33330 Remap all instances of an external file to a single record in files_reference 2012-06-05 14:07:24 +02:00
David Mudrak dccba8bcc9 MDL-33330 Populate referencehash field values 2012-06-05 14:07:24 +02:00
David Mudrak 5100365347 MDL-33330 Add referencehash field to the files_reference table 2012-06-05 14:07:19 +02:00
David Mudrak d83ce95322 MDL-33330 improved {files_reference} records creation
This patch unifies the way how records in {files_reference} get created.
Previously, each reference file (i.e. a file with referencefileid set)
created its own record in {files_reference}. This patch makes sure that
existing record is reused if possible.

Bye bye 1:1 relationships, you suck!
2012-06-05 13:39:09 +02:00
David Mudrak e28fbdba61 MDL-33330 introducing new file_reference_exception
This replaces the previously defined external_file_exception that was
not used anywhere in the code. The new exception will be thrown in
situations where there is some unexpected problem detected with the
records in the {files_reference} table (e.g. unable to find a record
referenced by some file from {file}, invalid reference value etc.)
2012-06-05 13:29:48 +02:00
Dan Poltawski 7f88c42608 MDL-33441 course/lib.php prevent fatal error when no visible categories 2012-06-05 16:40:40 +08:00
Dan Poltawski 469f4078c5 Merge branch 'MDL-33019-master-2' of git://git.luns.net.uk/moodle 2012-06-05 15:32:45 +08:00
Dan Poltawski 2812b87bab Merge branch 'MDL-32581' of git://github.com/mouneyrac/moodle 2012-06-05 15:23:28 +08:00
Aparup Banerjee 2330cf7af1 Merge branch 'wip-mdl-33455' of git://github.com/rajeshtaneja/moodle 2012-06-05 15:15:26 +08:00
Dan Poltawski c770311367 Merge branch 'wip-MDL-33409-master' of git://github.com/marinaglancy/moodle 2012-06-05 14:30:40 +08:00
Marina Glancy 6546a73dbb MDL-33445 reverted file size check for files inserted by reference 2012-06-05 13:57:16 +08:00
Jerome Mouneyrac 9615b623c6 MDL-33528 fix create_categories warnings + default parent parameter 2012-06-05 13:40:12 +08:00
Marina Glancy efa28f30f2 MDL-33391 Files API, Repository : mimetype should be determined from file extension when possible 2012-06-05 13:29:07 +08:00
Dan Poltawski 66726f61d0 Merge branch 'MDL-33502' of git://github.com/stronk7/moodle 2012-06-05 13:10:28 +08:00
Dan Poltawski a16757ed9c Merge branch 'MDL-33042-master-1' of git://git.luns.net.uk/moodle 2012-06-05 12:52:39 +08:00
Dan Poltawski 8e9e62fd8e Merge branch 'MDL-29103' of git://github.com/mouneyrac/moodle 2012-06-05 12:42:30 +08:00
Dan Poltawski 29304b6c7d Merge branch 'MDL-33401-master' of git://github.com/ankitagarwal/moodle 2012-06-05 12:34:29 +08:00
Dan Poltawski 820b845415 Merge branch 'MDL-33476' of git://github.com/esqueeze/moodle 2012-06-05 12:15:47 +08:00
Dan Poltawski 490ef89365 Merge branch 'wip-MDL-33409-master' of git://github.com/marinaglancy/moodle 2012-06-05 12:09:44 +08:00
Dan Poltawski ac0ad29c6f Merge branch 'MDL-33319' of git://github.com/netspotau/moodle-mod_assign 2012-06-05 12:03:56 +08:00
Dan Poltawski d54020bf4c Merge branch 'MDL-30880_feedback_property' of git://github.com/andyjdavis/moodle 2012-06-05 11:58:32 +08:00
nread e3e4ca5ae9 MDL-32117 equella: owner field in JSON maps back to author 2012-06-05 13:45:25 +10:00
Tim Barker 8de9272c6c MDL-33476 repositories: Added instructions to assist with setting up Dropbox keys 2012-06-05 10:19:06 +08:00
Dan Poltawski f7091beef4 Merge branch 'MDL-33485' of git://github.com/timhunt/moodle 2012-06-05 10:16:44 +08:00
Dan Poltawski 7e5789c12c Merge branch 'wip-tablelib' of git://github.com/marinaglancy/moodle 2012-06-05 10:10:21 +08:00
Rajesh Taneja a1a2cc5994 MDL-33455 gradebook: Grade will not be inserted for unknown user 2012-06-05 09:46:40 +08:00
nread 826b34836a MDL-32117 equella: pass through course shortname too 2012-06-05 11:45:24 +10:00
Rajesh Taneja ac5f641465 MDL-33367 course: Deprecated message added to move_section, so it can be removed in 2.5 2012-06-05 09:34:36 +08:00
Dan Poltawski 92c1f40445 MDL-31460 mod_forum: fix trailing whitespace 2012-06-05 09:34:26 +08:00
Rajesh Taneja eb01aa2c34 MDL-33367 course: move_section reuse move_section_to function
Conflicts:

	course/lib.php
2012-06-05 09:34:14 +08:00
Ankit Agarwal 336d8c49f4 MDL-33465 course: 'Course view section' logs should use sectionid instead of section number to generate action urls' 2012-06-05 09:33:45 +08:00
Dan Poltawski 50bc155cce Merge branch 'MDL-31460_unsubscribe' of git://github.com/andyjdavis/moodle 2012-06-05 09:33:38 +08:00
Marina Glancy 2ea47082f0 MDL-33479 removed legacy constructor causing strict notice in php5 2012-06-05 09:27:32 +08:00
Marina Glancy 9945ec5e13 MDL-33445 Added file size check to files inserted by reference 2012-06-05 09:26:26 +08:00
Marina Glancy 2dfa16ef8a MDL-33409 Newly copied files should take on the userid of the current user, and dates reset
- changed function repository::copy_to_area so it accepts more file attributes, pass changed attributes to it
- changed file_info::copy_to_storage and file_info_stored::copy_to_storage to accept more file attributes
- simplified file size check for moodle files in repository/repository_ajax.php
- removed unused code in repository/repository_ajax.php
2012-06-05 09:26:26 +08:00
Frederic Massart 775fe70093 MDL-30837 Accessibility: removed navigation icons default alt text 2012-06-05 09:11:46 +08:00
Helen Foster 3c97ce2461 MDL-31803 lang - make the mooch registration message more descriptive 2012-06-05 09:09:52 +08:00
Ankit Agarwal 5249ba7405 MDL-33369 course: Adding support for sectionid parameter for section view pages 2012-06-05 08:53:04 +08:00
Ankit Agarwal 586e797689 MDL-33401 blocks: Allow managers to have block:edit capability by default 2012-06-05 08:50:43 +08:00
Eloy Lafuente (stronk7) 0b1f477618 Merge branch 'MDL-32649_ratings_sort' of git://github.com/andyjdavis/moodle 2012-06-05 02:22:33 +02:00
Eloy Lafuente (stronk7) aa12ec984c MDL-32985 cron: prevent notices on "new" sites. 2012-06-05 02:14:13 +02:00
Eloy Lafuente (stronk7) 4baa746eae Merge branch 'MDL-32985' of git://github.com/merrill-oakland/moodle 2012-06-05 02:02:12 +02:00
Eloy Lafuente (stronk7) f61194e387 MDL-33080 IMSCC: look for imsmanifest.xml @ root dir 2012-06-05 01:04:29 +02:00
Eloy Lafuente (stronk7) d291dfd0aa Merge branch 'MDL-32107-master' of git://github.com/sammarshallou/moodle 2012-06-05 00:42:59 +02:00
Eloy Lafuente (stronk7) c76bd30885 Merge branch 'MDL-33133-master' of git://github.com/sammarshallou/moodle 2012-06-05 00:38:04 +02:00
Yang Yang 03d3451d62 Merge branch 'master' of https://github.com/moodle/moodle 2012-06-05 09:08:16 +12:00
Eloy Lafuente (stronk7) 080f585f39 Merge branch 'MDL-33507' of git://github.com/danpoltawski/moodle 2012-06-04 21:47:14 +02:00
Eloy Lafuente (stronk7) 0b702fca0b Merge branch 'w23_MDL-33436_m23_testprinter' of git://github.com/skodak/moodle 2012-06-04 19:55:21 +02:00
Dan Poltawski b3245b758c Merge branch 'MD-31803' of git://github.com/mouneyrac/moodle
Conflicts:
	admin/index.php
	admin/renderer.php
	version.php
2012-06-04 19:25:58 +08:00
Eloy Lafuente (stronk7) a301675101 Merge branch 'w23_MDL-33007_m23_buggyiconv' of git://github.com/skodak/moodle 2012-06-04 11:33:47 +02:00
Dan Poltawski 1cf840074b Merge branch 'wip-MDL-33218-master' of git://github.com/barbararamiro/moodle 2012-06-04 17:13:35 +08:00
Dan Poltawski f27735e470 Merge branch 'MDL-33480' of git://github.com/stronk7/moodle 2012-06-04 16:59:49 +08:00
Petr Skoda 03f0cd1039 MDL-33007 fix incorrect min_fix_utf8() tests
Credit goest to Eloy Lafuente.
2012-06-04 10:45:44 +02:00
David Monllaó d7eb773047 MDL-31823 - Remote hosts users created via mnet enrolments marked as confirmed 2012-06-04 10:39:41 +02:00
Dan Poltawski 1cbaf803d0 MDL-29173 - fix whitespace error 2012-06-04 16:32:25 +08:00
Dan Poltawski 6f337ea935 Merge branch 'MDL-29173_calc' of git://github.com/andyjdavis/moodle 2012-06-04 15:55:54 +08:00
Dan Poltawski 095b8c5818 MDL-32117 equella: Add validation rules to instance form
Also change equella_action to hardcoded value
2012-06-04 15:29:46 +08:00
Dan Poltawski e3e691cc6e MDL-32117 equella: die after redirection
To make it clear that nothing else happens.
2012-06-04 15:29:46 +08:00
Dan Poltawski 2e47347c88 MDL-32117 equella: callback.php params
* Properly cleaned and filtered
* Add utf8 content type

(Thanks Petr Škoda)
2012-06-04 15:29:45 +08:00
Dan Poltawski c1e688bba4 MDL-32117 equella: Moodle style checker issues
* Whitespace around control statements
* DOS formated version.php
2012-06-04 15:29:45 +08:00
Dan Poltawski 1256d67102 MDL-32117 equella: remove unused full_url() method 2012-06-04 15:29:45 +08:00
Dan Poltawski dcd51551d2 MDL-32117 equella: improve version.php
* Include component name
* Include requires version

(Thanks Petr Škoda)
2012-06-04 15:29:12 +08:00
Dan Poltawski bf4b1698a5 MDL-32117 equella: remove another unused global 2012-06-04 15:29:11 +08:00
Dan Poltawski d1546151e3 MDL-33511 admin/repositoryinstance.php: incorrect url 2012-06-04 15:26:21 +08: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
Dan Poltawski e38919c070 MDL-32117 equella: Make private functions private
Match mimetype function name to moodle coding style.
2012-06-04 12:32:15 +08:00
Dan Poltawski 7406ee9f57 MDL-32117 equella: Switch get_all_editing_roles to get_users_with_capability
This is the core function to do the same thing
2012-06-04 12:32:15 +08:00
Dan Poltawski 32f7f85862 MDL-32117 equella: Remove custom 'context tree' handling.
user_has_role_assignment will check parent contexts itself so there is
no need to do this manally
2012-06-04 12:32:10 +08:00
Dan Poltawski 3e3910a58d MDL-32117 equella: Remove unusused globals 2012-06-04 12:30:40 +08:00
Dan Poltawski 130b3f8c4f MDL-32117 equella: various E_STRICT fixes
* Make send_file compatible with its parent
* mktime -> time()
* callback.php: fix pass by reference warnings
2012-06-04 12:29:15 +08:00
Dongsheng Cai e88aa1e34c MDL-32117 Removed dots from language key names 2012-06-04 11:46:03 +08:00
Dongsheng Cai da1f4aee95 MDL-32117 EQUELLA plugin: Added some TODO comments in callback.php and changed variable names to conform moodle coding style 2012-06-04 11:46:03 +08:00
Dongsheng Cai 36f8060a6b MDL-32117 EQUELLA plugin: Fixed file downloading redirect issue 2012-06-04 11:46:02 +08:00
Dongsheng Cai 9225747e11 MDL-32117 EQUELLA plugin: Fixed callback parameters 2012-06-04 11:46:02 +08:00
nread 7283bb95ae MDL-32117 EQUELLA plugin: EQUELLA only support references, not external files 2012-06-04 11:46:02 +08:00
nread a3fde71746 MDL-32117 EQUELLA plugin: Remove warning when 'mimetypes' option is not set 2012-06-04 11:46:02 +08:00
nread 205f169edf MDL-32117 EQUELLA plugin: Turn off the login, refresh buttons and the search box 2012-06-04 11:46:02 +08:00
nread 1b4e7fbc37 MDL-32117 EQUELLA plugin: else if -> elseif 2012-06-04 11:46:02 +08:00
nread 11a55b46ff MDL-32117 EQUELLA plugin: Enforce selection restriction settings, but override if Moodle wants to restrict to specific MIME types as it is always going to be for resources only 2012-06-04 11:46:01 +08:00
nread cb1871a829 MDL-32117 EQUELLA plugin: Don't restrict to MIME types if '*' is used, as user should be able to select any type at this point 2012-06-04 11:46:01 +08:00
nread 1be875bab7 MDL-32117 EQUELLA plugin: Don't include the 'mimeTypes' option if it's empty or we get the wrong stuff 2012-06-04 11:46:01 +08:00
nread d3376ba684 MDL-32117 EQUELLA plugin: Spelling error in variable name 2012-06-04 11:46:01 +08:00
Dongsheng Cai 36bf3ff825 MDL-32117 EQUELLA plugin: Fixed the checking roles code when using filepicker in user context. Also format the SQL to use moodle coding style 2012-06-04 11:46:01 +08:00
nread 9c6d6c0eeb MDL-32117 EQUELLA plugin: Dynamic configuration for roles, and use 'write' tokens when selecting stuff 2012-06-04 11:46:01 +08:00
nread b709660fb2 MDL-32117 EQUELLA plugin: Don't show close icons or cancel links in EQUELLA because we're inside the File Picker dialog which has its own close button. Also, always return URLs for selected resources in the '?attachment.uuid=abcd' format so that URLs work if filenames are changed 2012-06-04 11:46:00 +08:00
Dongsheng Cai 27bb724f16 MDL-32117 EQUELLA plugin: initial commit 2012-06-04 11:46:00 +08:00
Dan Poltawski 7b61ac39d2 MDL-33507 - oauth2lib: switch 'code' to oauth2code
To avoid param collisions in future.
2012-06-04 11:25:19 +08:00
Dan Poltawski 5df1b73748 MDL-33501 - oauth2lib: enforce sesskey in oauth2callback.php
The sesskey needs to be embeded in the local url returned as this is the
only parameter we have control of.
2012-06-04 11:11:38 +08:00
Dan Poltawski db7602af7c MDL-33501 - oauth2lib: improve redirect url handling
Only accept PARAM_LOCALURL for state params and enforce
use of moodle_url param in oauthlib to facilitate that.
2012-06-04 10:57:39 +08:00
Andrew Davis c84d86e0b7 MDL-30880 grade: added a check for the feedback property existing before it is used 2012-06-04 09:17:06 +07:00
Andrew Davis 74a37e1deb MDL-31460 mod_forum: added some controls to mod/forum/unsubscribeall.php to prevent the removal of subscriptions the user shouldnt be able to delete 2012-06-04 09:16:21 +07:00
Andrew Davis 94e40193a4 MDL-32649 rating: fixed the sorting in /rating/index.php 2012-06-04 09:13:26 +07:00
Eloy Lafuente (stronk7) d57e6d531f MDL-33503 backup: Bump internal release and version information. 2012-06-04 02:35:51 +02:00
Eloy Lafuente (stronk7) f4624b6b0b MDL-33502 restore: there are no files with itemid based on section numbers. 2012-06-04 02:15:57 +02:00
Eloy Lafuente (stronk7) 34570f86bc MDL-33480 book print tool: display intro images properly 2012-06-04 01:46:53 +02:00
Petr Skoda bd672f7830 MDL-33436 include phpunit printer file from our lib.php
The problem is that the phpunit.xml does not support relative links.
2012-06-02 21:48:26 +02:00
Petr Skoda b208ded6cf MDL-33103 fix mod_data E_STRICT issue in import 2012-06-02 21:39:18 +02:00
Dan Poltawski 578d7f3dbd MDL-33487 - mod_forum: incorrect param ordering
Thanks to Garret Gengler for spotting it.
2012-06-01 23:35:26 +08:00
Tim Hunt 9378c99b02 MDL-33119 quiz complete report: fix placeholders in attempt string. 2012-06-01 08:45:41 -06:00
Tim Hunt fc86f69b52 MDL-33485 quiz manual grading report: fix SQL typo. 2012-06-01 08:11:48 -06:00
sam marshall 38d06fea66 MDL-32107 Activity completion: should use get_enrolled_sql instead of reinventing wheel 2012-06-01 12:25:59 +01:00
Davo Smith 6c0ae99b69 MDL-33056 Course dnd upload - improved status box styling and added fade in/out 2012-06-01 11:27:42 +01:00
Petr Skoda 63d59875b5 MDL-32632 fix date formatting on Windows 2012-06-01 12:24:33 +02:00
Petr Skoda 0aff15c2c9 MDL-33007 add workaround for broken iconv //IGNORE
This patch adds mbstring utf-8 cleanup fallback and admin warning if no utf-8 cleanup possible in user submitted data.
2012-06-01 12:23:09 +02:00
Petr Skoda 3681e78429 MDL-33007 add buggy iconv workaround to configonlylib, add tests and fix minor issues 2012-06-01 12:23:09 +02:00
Dan Poltawski 4db061680e on-demand release 2.3dev 2012-06-01 17:03:32 +08:00
Dan Poltawski fe591d0d24 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-01 17:01:41 +08:00
Koen Roggemans 61935d8ed0 MDL-29103 web service strings improvement 2012-06-01 11:36:37 +08:00
Marina Glancy 3c693ff4d2 MDL-33322: fixed strict standards 2012-06-01 10:53:10 +08:00
Sam Hemelryk 84ec16a861 Merge branch 'MDL-29857-3' of git://github.com/danpoltawski/moodle 2012-06-01 13:42:01 +12:00
Eloy Lafuente (stronk7) 5669b28d59 Merge branch 'MDL-33326' of git://github.com/stronk7/moodle 2012-06-01 00:58:08 +02:00
Eloy Lafuente (stronk7) dac01a7444 Merge branch 'MDL-33389_master' of git://github.com/kordan/moodle 2012-05-31 16:14:57 +02:00
Dan Poltawski c9bd018825 Merge branch 'MDL-33434' of git://github.com/stronk7/moodle 2012-05-31 16:59:23 +08:00
Aparup Banerjee 267080d4ea Merge branch 'MDL-33040-master-1' of git://git.luns.net.uk/moodle 2012-05-31 15:20:53 +08:00
Aparup Banerjee ffbe29a6bd Merge branch 'MDL-33140' of git://github.com/timhunt/moodle 2012-05-31 14:15:19 +08:00
Frederic Massart ccc604a24d MDL-33398 Cron: fix wrong variable type in completion criterias 2012-05-31 12:50:38 +08:00
Jerome Mouneyrac 93ce0e8296 MDL-32581 support additional format field with all text field in extrnal lib function + new possible ws params to decide how format is returned (which are stored in a singleton) 2012-05-31 12:31:27 +08:00
Rossiani Wijaya 4239150a60 MDL-33322 Filepicker: fix filepicker for recent file with JS turned of 2012-05-31 12:06:32 +08:00
Dan Poltawski 9c6e153888 Merge branch 'MDL-33397-master' of https://github.com/FMCorz/moodle 2012-05-31 10:35:50 +08:00
AMOS bot e1041a38ca Automatically generated installer lang files 2012-05-31 00:31:19 +00:00
Eloy Lafuente (stronk7) a3fa993212 MDL-33434 mssql: Improve handling of returned ids on insert.
This commit moves from the batch SCOPE_IDENTITY() way to return
the inserted ids to the OUTPUT alternative (supported and
recommended since 2005). Also the handling of possible return
values is improved, with all the alternatives leading to expected results.
2012-05-31 01:01:14 +02:00
Eloy Lafuente (stronk7) cbdcdd4734 MDL-33434 dml: define expected results when unique constraint is violated on insert. 2012-05-31 01:00:07 +02:00
Tim Hunt 602a76d86a MDL-33140 quiz browser security: block copy/paste more 2012-05-30 14:48:39 -06:00
Dan Poltawski b7acfd645b MDL-29857 google apis: OAuth 2.0 portfolio plugins upgrade
We are disabling the plugins if not configured. As part of
this upgrade we will emailing admins about this change
if they have a plugin configured.

This is required because OAuth 2 credentials are now required
in the plugin configuration.

NOTE: These strings are temporary and need to be improved.
2012-05-31 00:19:30 +08:00
Dan Poltawski ce30ff5df0 MDL-29857 google apis: OAuth 2.0 repository plugins upgrade
We are disabling the plugins on upgrade and emailing admins
about this if they have a plugin configured.

This is required because OAuth 2 credentials are now required
in the plugin configuration.

NOTE: These strings are temporary and need to be improved.
2012-05-31 00:19:30 +08:00
Dan Poltawski 4560fd1b66 MDL-29857 - google apis: Convert to OAuth 2.0
Updated the various plugins to use OAuth 2.0 for authentication
against google apis. Google are phasing out AuthSub and pushing OAuth as
the replacement.

This changes repository_googledocs, repository_picasa,
portfolio_googledocs and portfolio_picasa

The token for requests is now stored in session rather than a user
prefence and it persists less but doesn't bother the user more than
necessary.

The google docs portfolio plugin is converted to use resumable upload
API as this appears to be what Google have replaced this with.

Unfortunately unlike authsub OAuth will require some setup by admins,
this is linked as a docs page.
2012-05-31 00:00:25 +08:00
Dan Poltawski 469fb5d672 MDL-29857 - lib: Add an OAuth 2.0 client
A generic OAuth 2.0 for the web application flow, tested against
microsoft and google apis.

Added a callback endpoint for requests so that clients can use a single
endpoint (without GET params). I put this in /admin/ as I expect some
sites will have .htaccess denying access to /lib/.
2012-05-31 00:00:23 +08:00
Aparup Banerjee 1adb060a87 Merge branch 'MDL-32329-all-plugins-ok' of git://github.com/mudrd8mz/moodle 2012-05-30 16:48:23 +08:00
David Mudrak e937c5456e MDL-32329 fixed missing phpdoc and improved coding style
Credit goes to Aparup Banerjee for spotting this during the integration
review.
2012-05-30 10:35:28 +02:00
David Mudrak ead8ba3b63 MDL-32329 improved plugin dependencies check on upgrade
Previously, it was the renderer method that actually called
all_plugins_ok(). I believe that renderer methods should not be
responsible for such an important step in the install/upgrade code flow.
So dependencies are now checked by admin/index.php on upgrade, too.
2012-05-30 10:35:28 +02:00
David Mudrak 39f15cc712 MDL-32329 check for plugin dependencies during the pre-install checking
This follows the same path as we have in CLI installers. Plugin
dependencies are checked right after the environment checks and the
install can't continue unless all dependencies are fixed.
2012-05-30 10:35:28 +02:00
David Mudrak 3a2300f552 MDL-32329 new plugininfo_base::is_core_dependency_satisfied() method
The method's logic was previously implemented in all_plugins_ok() but we
will need to call it separately. Also make the code cleaner.
2012-05-30 10:35:28 +02:00
David Mudrak f1753a5b10 MDL-32329 CLI install and upgrade scripts display plugins with unsatisfied dependencies 2012-05-30 10:35:28 +02:00
David Mudrak 927cb51166 MDL-32329 plugin manager returns plugins with unsatisfied dependencies 2012-05-30 10:35:28 +02:00
Aparup Banerjee e4b5455738 Merge branch 'MDL-33184-master' of https://github.com/FMCorz/moodle 2012-05-30 15:18:59 +08:00
Aparup Banerjee 380d472314 Merge branch 'wip-mdl-27120' of git://github.com/rajeshtaneja/moodle 2012-05-30 14:22:34 +08:00
Dan Poltawski 2605112e0b Merge branch 'MDL-33045-master-2' of git://git.luns.net.uk/moodle 2012-05-30 14:14:50 +08:00
Barbara Ramiro 7c3e665289 MDL-33218 Filepicker repository and toolbar aligned for IE 2012-05-30 13:56:34 +08:00
Sam Hemelryk 378eb6f6a2 Revert "Merge branch 'MDL-27675_master_wip' of git://github.com/grabs/moodle"
This reverts commit a09a9be812, reversing
changes made to 08e0aaa173.
2012-05-30 16:34:11 +12:00
Dan Poltawski d88f1a51fc Merge branch 'MDL-33414' of git://github.com/netspotau/moodle-mod_assign 2012-05-30 11:45:32 +08:00
Rossiani Wijaya 6b0e5f4d6d MDL-32766 course view section log: fixed the forth param for restore rule specification to use course_section 2012-05-30 15:41:07 +12:00
Dan Poltawski 7fd264b0d1 Merge branch 'MDL-33398b' of git://github.com/srynot4sale/moodle 2012-05-30 11:35:56 +08:00
Sam Hemelryk 6fbe06e530 Merge branch 'MDL-33385' of git://github.com/netspotau/moodle-mod_assign 2012-05-30 15:26:27 +12:00
Dan Poltawski 0a16fa45ec Merge branch 'wip-MDL-33373-master' of git://github.com/marinaglancy/moodle 2012-05-30 11:03:11 +08:00
Marina Glancy f1bd371c79 MDL-33373 fixed bug in backup of files as a regression from MDL-28666 2012-05-30 10:11:41 +08:00
Frederic Massart 322945e9ca MDL-33184 Filepicker: rephrased drag and drop sentence 2012-05-30 10:05:10 +08:00
Dan Poltawski 7e82553331 Merge branch 'MDL-33404_resource_dnd_defaults' of https://github.com/moodler/moodle 2012-05-30 09:38:22 +08:00
Aaron Barnes 28e0c239ec MDL-33398 completion: Fix coding error (should be arrays not objects) 2012-05-30 13:27:51 +12:00
Damyon Wiese 0047693f09 MDL-33385: Assignment plugin settings not visible in admin tree.
* Also fixes a regression where file_submissions were not set to default for new installs.
2012-05-30 09:01:11 +08:00
Damyon Wiese 7ee1548acb MDL-33414: The setting $showviewlink needs to be passed by reference
This was preventing the view full submission/feedback link from appearing
everywhere in the assignment when the submission/feedback content had been
truncated in the summary because it was too long (or too many files)
2012-05-30 08:37:56 +08:00
AMOS bot 64f812f924 Automatically generated installer lang files 2012-05-30 00:31:17 +00:00
Eloy Lafuente (stronk7) 294d976e28 MDL-33326 filestorage tests: Coding style fixes 2012-05-30 02:26:57 +02:00
Dan Poltawski 996f8b6442 MDL-33326 filestorage tests: Add more coverage 2012-05-30 02:26:46 +02:00
Dan Poltawski 7c89a18fca MDL-33326 filestorage tests: Actually verify results
Rather than the placeholder tests which were added before to trigger
DB incompatibilities
2012-05-30 02:26:36 +02:00
kordan 311300e208 MDL-3389 mod_book: changed "Summary" to "Description" in mod_form 2012-05-29 19:23:33 +02:00
Andrew Davis eb9f06f9c1 MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php 2012-05-29 16:38:42 +07:00
Aparup Banerjee 7df02eacf7 Merge branch 'MDL-32779' of git://github.com/danpoltawski/moodle 2012-05-29 17:11:11 +08:00
Aparup Banerjee 4fe0673c48 Merge branch 'MDL-33375' of git://github.com/danpoltawski/moodle 2012-05-29 17:06:19 +08:00
Dan Poltawski 2bb9e53106 MDL-32779 course/format: Return to correct section
When editing a single section mode item
2012-05-29 16:54:04 +08:00
Aparup Banerjee 5eb80ab73d Merge branch 'MDL-33382-cli-install' of git://github.com/mudrd8mz/moodle 2012-05-29 16:43:39 +08:00
Aparup Banerjee 95a8956884 Merge branch 'w22_MDL-33089_m23_phpunitrecover' of git://github.com/skodak/moodle 2012-05-29 16:31:26 +08:00
Rajesh Taneja e7b24943e6 MDL-27120 backup: fixed docblock and code cleanup 2012-05-29 16:22:45 +08:00
Dan Poltawski 076fbeb136 Merge branch 'MDL-30905-master' of git://github.com/FMCorz/moodle 2012-05-29 16:20:21 +08:00
Dan Poltawski 038c47f6e7 Merge branch 'wip-mdl-33102' of git://github.com/rajeshtaneja/moodle 2012-05-29 16:10:59 +08:00
Dan Poltawski 96601152f2 Merge branch 'w22_MDL-33001_m23_innodb' of git://github.com/skodak/moodle 2012-05-29 15:56:28 +08:00
Dan Poltawski 02796eab69 Merge branch 'wip-MDL-33377-master' of git://github.com/marinaglancy/moodle 2012-05-29 15:40:36 +08:00
Dan Poltawski 786cd60ee3 Merge branch 'MDL-32824-master-2' of git://git.luns.net.uk/moodle
Conflicts:
	course/format/weeks/format.js
	course/format/weeks/lib.php
2012-05-29 15:21:55 +08:00
Dan Poltawski 05d80ae6cd Merge branch 'MDL-30888-master' of git://github.com/FMCorz/moodle 2012-05-29 15:12:38 +08:00
Dan Poltawski 0ed8a933d6 Merge branch 'MDL-33212-master' of git://github.com/sammarshallou/moodle 2012-05-29 15:08:46 +08:00
Dan Poltawski 9856d05c26 Merge branch 'MDL-33378-tiff-thumb' of git://github.com/mudrd8mz/moodle 2012-05-29 15:00:21 +08:00
Frederic Massart a960dfa900 MDL-33397 Filepicker: cancel button always present in private files 2012-05-29 15:00:19 +08:00
Dan Poltawski fa31bfc181 Merge branch 'wip-MDL-33026-master' of git://github.com/marinaglancy/moodle 2012-05-29 14:58:31 +08:00
Dan Poltawski e73b42ca57 Merge branch 'wip-MDL-33399-m23' of git://github.com/samhemelryk/moodle 2012-05-29 14:57:05 +08:00
Tony Levi 7f98b12f91 MDL-27120: Cache DB operations in restore_dbops 2012-05-29 14:44:07 +08:00
Tony Levi 066af1bbc7 MDL-27120: Cache dirname transformations in progressive_parser::dirname 2012-05-29 14:44:07 +08:00
Adam Olley 28729e23a4 mdl-27120 Fix static cache for backup_xml_transformer::register_link_encoders() 2012-05-29 14:44:07 +08:00
Jason Ilicic ec404105ae mdl-27120 Fixed incorrect variable in parameter when adding form dependencies. 2012-05-29 14:44:07 +08:00
Ashley Holman d729ef29cf MDL-27120 Add global cache to backup_xml_transformer::register_link_encoders() 2012-05-29 14:44:07 +08:00
Ashley Holman 631764ea2f MDL-27120 More efficient use of QuickForms in backup UI 2012-05-29 14:44:06 +08:00
Ashley Holman f213bbd77a MDL-27120 backup: replace sequential scan search with hash-based lookup. 2012-05-29 14:44:06 +08:00
Aparup Banerjee 7f1fcda5ad Revert "Merge branch 'wip-mdl-27120' of git://github.com/rajeshtaneja/moodle"
MDL-27120 backup: reverting due to phpunit failure at backup/converter/moodle1/tests/fixtures/lib_test.php test_stash_storage()

This reverts commit c70b7fd81f, reversing
changes made to e6f5528585.
2012-05-29 14:29:09 +08:00
Martin Dougiamas 5fece0f28d MDL-33404 Fix defaults for ordinary files that are drag/dropped into the course page 2012-05-29 12:58:24 +08:00
Sam Hemelryk 849b9a6af7 MDL-33399 mixed: Fixed up calls to get_area_files that used empty sorts 2012-05-29 16:44:28 +12:00
Sam Hemelryk 9f4789b842 MDL-33399 files: Fixed up handling of empty sort in File API methods.
The following three methods of file_storage have been patched:
* get_external_files
* get_area_files
* get_directory_files
2012-05-29 16:38:47 +12:00
Aparup Banerjee c70b7fd81f Merge branch 'wip-mdl-27120' of git://github.com/rajeshtaneja/moodle 2012-05-29 10:26:21 +08:00
Aaron Barnes 46eca1f77e MDL-32119 course completion: Removed unused database structure 2012-05-29 14:17:22 +12:00
Dan Poltawski f40f6c14b1 MDL-32221 - googledocs: Add support for all file types.
Now google supports 'file' as well as converted formats.
2012-05-29 10:13:21 +08:00
Dan Poltawski 9b27ffa042 MDL-29857 - portfolio: Fix E_STRICT errors 2012-05-29 10:13:20 +08:00
Sam Hemelryk e6f5528585 MDL-28949 upgrade: Split course completion upgrade into smaller chunks 2012-05-29 08:50:45 +12:00
Sam Hemelryk bd633dda9a Merge branch 'MDL-28949d' of git://github.com/srynot4sale/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-05-29 08:49:29 +12:00
Eloy Lafuente (stronk7) b3520a4ae7 Merge branch 'MDL-33359' of git://github.com/danpoltawski/moodle 2012-05-28 21:25:01 +02:00
sam marshall 540f89d7d4 MDL-33212 Course page: Eye icon should override other conditions 2012-05-28 16:17:39 +01:00
Ruslan Kabalin c1d09c6fa3 MDL-33042: Assign: get rid of email statements in messaging functions 2012-05-28 11:48:18 +01:00
David Mudrak 77a439336f MDL-33378 file thumbnail falls back to the default mimetype icon
If for some reason the thumbnail generation fails, the default core
mimetype icon for the given file is sent to the browser.
2012-05-28 12:19:05 +02:00
Ruslan Kabalin 599f7a279c MDL-33045: Assign: remove references to old assignment in URLs 2012-05-28 10:53:40 +01:00
Ruslan Kabalin f5b32abe57 MDL-33045: Assign: Make get_module_name() return something 2012-05-28 10:52:11 +01:00
Marina Glancy 140669a9dd MDL-33026 set default author and license in drag-n-drop upload 2012-05-28 17:05:25 +08:00
David Mudrak 2da7fbc0c2 MDL-33382 CLI install and upgrade scripts display hint on --allow-unstable in non-interactive mode 2012-05-28 10:59:22 +02:00
Dan Poltawski 6bea694b6c Revert "MDL-33212 Course page: Eye icon should override other conditions"
This reverts commit 5d0d373733.
2012-05-28 16:57:41 +08:00
Marina Glancy f92b65e5a6 MDL-33377 Do not allow to link to course files since reference is preferable 2012-05-28 16:27:22 +08:00
Petr Skoda 716b50dc2c MDL-33001 improve error handling in mysql engine conversion tool and add listing of engines 2012-05-28 10:25:58 +02:00
Petr Skoda b7c5627f5b MDL-33089 flag test database as soon as possible in PHPUnit init 2012-05-28 10:10:32 +02:00
Petr Skoda 17b60e9d98 MDL-33089 detect more problems when initialising PHPUnit test environment 2012-05-28 10:10:32 +02:00
Dan Poltawski f18dd15d3e Merge branch 'wip-MDL-33321-master' of git://github.com/kwiliarty/moodle 2012-05-28 16:10:16 +08:00
Dan Poltawski da5cd8cee8 Merge branch 'MDL-33212-master' of git://github.com/sammarshallou/moodle 2012-05-28 16:03:03 +08:00
Dan Poltawski 995e479067 Merge branch 'wip-MDL-33338-master' of git://github.com/marinaglancy/moodle 2012-05-28 15:43:33 +08:00
Dan Poltawski 830fdc8ce8 Merge branch 'wip-MDL-33356-master' of git://github.com/marinaglancy/moodle 2012-05-28 15:37:31 +08:00
Dan Poltawski ffec9bc70f Merge branch 'MDL-31393' of git://github.com/timhunt/moodle 2012-05-28 15:23:01 +08:00
Marina Glancy 4c2fcbfc85 MDL-33338 recognising the mimetype for uploaded files
- when file is uploaded in php, the tmpname does not have initial extension and mimetype recognition by extension fails
- another issue is that import form for questions fails with fatal error when it should just say that field is required
2012-05-28 15:19:41 +08:00
Dan Poltawski 5ab310d5d3 Merge branch 'wip-MDL-32199-master' of git://github.com/abgreeve/moodle 2012-05-28 15:18:51 +08:00
Dan Poltawski 0fe4db6dd1 Merge branch 'MDL-33194-master' of https://github.com/mackensen/moodle 2012-05-28 14:58:56 +08:00
Dan Poltawski c865e08fab Merge branch 'MDL-32860_user_iterator' of git://github.com/andyjdavis/moodle 2012-05-28 14:56:48 +08:00
Dan Poltawski d079d6d8c1 Merge branch 'MDL-33110_master' of git://github.com/lazydaisy/moodle 2012-05-28 14:54:23 +08:00
Dan Poltawski 54495fe41d MDL-33375 course: set anchor after changing sections
So scrolling isn't required
2012-05-28 14:44:23 +08:00
Dan Poltawski 3f1bca9d56 Merge branch 'master_MDL-27368' of git://github.com/danmarsden/moodle
Conflicts:
	version.php
    lib/db/upgrade.php
2012-05-28 14:32:16 +08:00
Marina Glancy 6adb5f1363 MDL-33356 fixed a regression after function form_filemanager_redner() was deleted 2012-05-28 13:52:32 +08:00
Adrian Greeve 17ec4bf045 Alteration to the code to hide the body of the post / discussion 2012-05-28 13:09:23 +08:00
Andrew Robert Nicols 7ea78d9f28 MDL-32199 Ensure that forum RSS feeds don't leak posts and discussions 2012-05-28 13:09:22 +08:00
Sam Hemelryk bdb315cca2 Merge branch 'w21_MDL-32972_m23_avatargifs' of git://github.com/skodak/moodle 2012-05-28 17:05:10 +12:00
Dan Poltawski 193198187c Merge branch 'wip-mdl-33347' of git://github.com/rajeshtaneja/moodle 2012-05-28 13:01:44 +08:00
Sam Hemelryk c67b08828c MDL-18763 Fixed up typo in comments of new pic size 2012-05-28 16:52:53 +12:00
Sam Hemelryk a2aba3f612 Merge branch 'w21_MDL-18763_m23_avatar512' of git://github.com/skodak/moodle 2012-05-28 16:50:46 +12:00
Rossiani Wijaya 8d5745fa92 MDL-32766: course view section log: fixed typo for course_sections table
Conflicts:

	version.php
2012-05-28 16:46:29 +12:00
Dan Poltawski 287451dcd4 Revert "MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php"
Breaking unit tests.

This reverts commit 4be0947bbe.
2012-05-28 12:37:50 +08:00
Dan Poltawski 83ae05f620 Merge branch 'MDL-29173_calc' of git://github.com/andyjdavis/moodle 2012-05-28 12:16:12 +08:00
Aaron Barnes 424a19b106 MDL-28949 course completion: Database structure fixes 2012-05-28 16:13:25 +12:00
Marina Glancy 5e11746696 MDL-33218 fixing filemanager/filepicker look in IE
now all YUI dialogues are under the div with id #filesskin. This way we can avoid using !important in CSS and use #filesskin instead. It will have priority over YUI skin in all browswers including IE (!important does not work in IE).

Conflicts:

	files/renderer.php
	theme/base/style/filemanager.css
2012-05-28 11:54:33 +08:00
Dan Poltawski 131bd2f68f Merge branch 'MDL-33192-master-1' of git://git.luns.net.uk/moodle 2012-05-28 11:47:22 +08:00
Barbara Ramiro 6077e3813c MDL-33218 Filemanager and Filepicker IE issue 2012-05-28 11:44:51 +08:00
Damyon Wiese 2c6a3dbfca MDL-33319: Support quickgrading in feedback plugins 2012-05-28 11:10:09 +08:00
Sam Hemelryk d8a05d83b5 Merge branch 'MDL-32752-master-1' of git://git.luns.net.uk/moodle 2012-05-28 14:56:06 +12:00
Sam Hemelryk 681789b4c1 Merge branch 'MDL-33331-master' of git://github.com/micaherne/moodle 2012-05-28 14:52:47 +12:00
Sam Hemelryk bb0eaec490 Merge branch 'MDL-32879' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/magazine/config.php
2012-05-28 14:49:12 +12:00
Sam Hemelryk 9757d47ebf Merge branch 'MDL-33084_strict_calc' of git://github.com/andyjdavis/moodle 2012-05-28 14:07:59 +12:00
Sam Hemelryk d9ce6f6442 Merge branch 'MDL-32380_master' of git://github.com/kordan/moodle 2012-05-28 14:03:20 +12:00
Rajesh Taneja 33fcc04082 MDL-33347 course: section move is visible without ajax 2012-05-28 09:59:48 +08:00
Sam Hemelryk 48cb6e0b1c Merge branch 'MDL-33364' of git://github.com/stronk7/moodle 2012-05-28 13:51:22 +12:00
Sam Hemelryk 064cac7866 MDL-27675 mod_feedback: Tidy up of phpdocs and scope within feedback mod 2012-05-28 13:38:36 +12:00
Sam Hemelryk a09a9be812 Merge branch 'MDL-27675_master_wip' of git://github.com/grabs/moodle 2012-05-28 13:37:59 +12:00
Dan Poltawski 4ad85bd857 MDL-33359 - mtrace: dont output to STDOUT in unit tests
This allows us to use phpunit output buffering functions
2012-05-28 09:36:12 +08:00
Eloy Lafuente (stronk7) fde4c60911 MDL-33364 automated backup: return and log each course result correctly 2012-05-28 02:44:24 +02:00
Sam Hemelryk 08e0aaa173 Merge branch 'MDL-33191' of git://github.com/lazydaisy/moodle 2012-05-28 11:22:12 +12:00
Sam Hemelryk c31081d0a4 Merge branch 'MDL-32766' of git://github.com/rwijaya/moodle
Conflicts:
	version.php
2012-05-28 11:19:06 +12:00
Sam Hemelryk c994797ea9 Merge branch 'MDL-33120' of git://github.com/stronk7/moodle 2012-05-28 11:12:36 +12:00
Sam Hemelryk 63f2813497 Merge branch 'dev_MDL-33147_transaction' of git://github.com/dongsheng/moodle 2012-05-28 11:04:43 +12:00
Sam Hemelryk 7824c9d820 Merge branch 'MDL-33325-master' of git://github.com/ankitagarwal/moodle 2012-05-28 10:52:24 +12:00
eLeDia GmbH (Andreas Grabs) 1cb73662b2 MDL-27675 - Feedback module abuses data_submitted 2012-05-28 00:40:05 +02:00
Andreas Grabs 9a2c4dbd00 MDL-27675 - Feedback module abuses data_submitted 2012-05-28 00:40:04 +02:00
Dan Marsden d2e3a1b4f9 MDL-27368 Clean up invalid course completion records
keep oldest timestamps from all records
2012-05-28 08:55:57 +12:00
Eloy Lafuente (stronk7) a60d964abc MDL-33120 book: changes in code based on amended strings
- Replace numberingoptions_help by numberingoptions_desc.
- Delete the faq code and related styles.
- Bump version to force lang/style refresh.
2012-05-27 17:42:53 +02:00
Helen Foster 9e302b63b9 MDL-33120 book: Amend module strings
Al the changes are fixes but numberingoptions_help
that is one change of string key too, hence we instruct AMOS to move it.

AMOS BEGIN
 MOV [numberingoptions_help,mod_book],[numberingoptions_desc,mod_book]
AMOS END
2012-05-27 17:31:31 +02:00
Charles Fulton 80c27aab8c MDL-27559 opendir: validate directory pointer on open 2012-05-25 08:52:12 -07:00
Ruslan Kabalin a252a14835 MDL-33192: Prevent global DDM conflicting with others drag-drop instances. 2012-05-25 16:33:39 +01:00
Ruslan Kabalin 9f3015ecf8 MDL-32824: Make dragdrop work correctly with section titles/links
Initially, the default section title was swapped within the course format
javascript functions. Though some section titles may be custom and does not
require swapping, in addition they may have links to single section view. This
introduces some callback functions for define what needs to be done in
sections libs and js files.
2012-05-25 11:39:44 +01:00
Dan Poltawski 4631e39533 on-demand release 2.3dev 2012-05-25 18:07:10 +08:00
Dan Poltawski cc8801e33d Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-25 18:04:43 +08:00
Dan Poltawski e7b7cd5b98 Merge branch 'w21_MDL-33075_m23_phpunitclassreflex' of git://github.com/skodak/moodle 2012-05-25 15:25:30 +08:00
Aparup Banerjee 66905a4cf7 Merge branch 'MDL-33196' of git://github.com/rwijaya/moodle 2012-05-25 14:13:21 +08:00
Aparup Banerjee b74ad708b1 Merge branch 'MDL-33307' of git://github.com/danpoltawski/moodle 2012-05-25 12:08:03 +08:00
Aparup Banerjee 09cb95f861 MDL-33324 Filepicker : fixed syntax. 2012-05-25 11:44:04 +08:00
Aparup Banerjee 0479a2873e MDL-33324 Filepicker : removed redundant parantheses. 2012-05-25 11:25:57 +08:00
Aparup Banerjee 708738cd73 Merge branch 'wip-MDL-33324-master' of git://github.com/marinaglancy/moodle 2012-05-25 11:25:25 +08:00
Dan Poltawski c86d6be226 Merge branch 'MDL-29924-master' of git://github.com/FMCorz/moodle 2012-05-25 11:14:22 +08:00
Dan Poltawski c46da75917 MDL-28557 - calendar: fix trivial whitespace issue 2012-05-25 11:08:14 +08:00
Dan Poltawski ccee3cd67f Merge branch 'MDL-28557' of git://github.com/bostelm/moodle 2012-05-25 11:07:14 +08:00
Dan Poltawski 9a16bd1798 Merge branch 'w22_MDL-33114_m23_tinymce3511' of git://github.com/skodak/moodle 2012-05-25 11:00:53 +08:00
Dan Poltawski 588d3a7e1f Merge branch 'MDL-33135-master-3' of git://git.luns.net.uk/moodle 2012-05-25 10:55:49 +08:00
Dan Poltawski ada7dbd93a Merge branch 'w21_MDL-27575_m23_skype' of git://github.com/skodak/moodle 2012-05-25 10:44:47 +08:00
Dan Poltawski 10a9d27d74 Merge branch 'w21_MDL-33034_m23_roletests' of git://github.com/skodak/moodle 2012-05-25 10:37:48 +08:00
Dan Poltawski 488656491d MDL-29836 webservice: version bump to pickup new string 2012-05-25 10:36:43 +08:00
Vadim Dvorovenko 5e963820a5 MDL-29836 webservices: use individual string
To allow accurate transalation
2012-05-25 10:33:02 +08:00
Dan Poltawski 8cba2bb747 Merge branch 'MDL-33028' of git://github.com/mouneyrac/moodle 2012-05-25 10:22:35 +08:00
Dan Poltawski 2ffd7f1824 Merge branch 'MDL-33060' of git://github.com/mouneyrac/moodle 2012-05-25 10:16:12 +08:00
Dan Poltawski 8119141b91 Merge branch 'MDL-33020' of git://github.com/timhunt/moodle 2012-05-25 10:14:17 +08:00
Dan Poltawski 494573dc43 Merge branch 'MDL-32339-css-updates' of git://github.com/mudrd8mz/moodle 2012-05-25 10:13:19 +08:00
Dan Poltawski 2528e8e52f MDL-33139 mod_forum: fix minor whitespace problem 2012-05-25 10:09:09 +08:00
Dan Poltawski 1e448fed27 Merge branch 'MDL-33139-master' of https://github.com/mackensen/moodle 2012-05-25 10:08:33 +08:00
Dan Poltawski f5a68663db MDL-33173 files: correct @package name 2012-05-25 10:03:33 +08:00
Dan Poltawski 753199ba63 Merge branch 'MDL-33173-master' of git://github.com/FMCorz/moodle 2012-05-25 09:57:35 +08:00
Frederic Massart 4c88645920 MDL-33173 Filepicker: renamed private files edit page to main page 2012-05-25 09:24:39 +08:00
AMOS bot c291e996c8 Automatically generated installer lang files 2012-05-25 00:31:16 +00:00
Sam Hemelryk 6347a6216d MDL-33172: Fixed whitespace 2012-05-25 11:37:07 +12:00
Dan Poltawski 3447100cdb MDL-33172 - filestorage: Fix oracle incompatibilites
Fixes the following problems:

* When we select from two tables with the same named fields (id)
  and ask to sort by that field, Oracle doesn't know which table to
  sort frm unless that field is named in the SELECT. Here we do that
  by explicitly naming the fields. This keeps compatibility with before
  the reference table was added.

* Text comparisong without sql_compare_text
2012-05-25 11:17:56 +12:00
Dan Poltawski ac29403e39 MDL-33172 - filestorage: Add unit test for breaking oracle functions 2012-05-25 11:17:56 +12:00
Petr Skoda 798f0dece2 MDL-33114 import TinyMCE 3.5.1.1 and fix preview 2012-05-24 23:15:52 +02:00
Dan Poltawski 4b0992ca19 Merge branch 'wip-MDL-33329-master' of git://github.com/marinaglancy/moodle 2012-05-24 23:30:23 +08:00
Dan Poltawski b6283a4970 MDL-33307 format_weeks - sort out week date display
* Introduce function format_weeks_get_section_dates which is used
  as the consistent place to calculate the current section start and
  end date

* Rework callback_weeks_get_section_name to not use the above function
  rather than do crazy needless looping through all sections to work
  out the current week title.

* Change the just introduced is_current renderer function to share
  the format_weeks_get_section_dates function to ensure both the title
  and 'current week' are using the same dates to do their job
2012-05-24 23:10:28 +08:00
Dan Poltawski 2ea6533a36 MDL-33307 format_weeks - highlight current week 2012-05-24 23:10:27 +08:00
Charles Fulton c2c071a274 MDL-33139 forum: indicate which user's post was edited 2012-05-24 06:14:21 -07:00
Dan Poltawski 5744ea3682 Revert "MDL-33063 course: Reuse get_all_sections()"
This reverts commit 66b494771f.
2012-05-24 20:42:58 +08:00
Dan Poltawski 108526897d Merge branch 'MDL-33063' of git://github.com/srynot4sale/moodle 2012-05-24 20:32:31 +08:00
Michael Aherne 7dfe4b92d0 MDL-33331 Strict warning in Shibboleth auth 2012-05-24 13:04:21 +01:00
David Mudrak 5536f2fccf MDL-32339 improving the layout for narrow screens 2012-05-24 11:49:36 +02:00
Dan Poltawski cf36df4316 Merge branch 'MDL-33315_blog_rss' of git://github.com/andyjdavis/moodle 2012-05-24 16:49:28 +08:00
Dan Poltawski 0fb13aa3d8 Merge branch 'dev_MDL-33127_draft_storing' of git://github.com/dongsheng/moodle 2012-05-24 16:34:32 +08:00
Dan Poltawski 2625d99b52 Merge branch 'wip-MDL-33144-master' of git://github.com/marinaglancy/moodle 2012-05-24 16:32:32 +08:00
Marina Glancy 2d7c111734 MDL-33329 Filepicker form element can not link by reference. Also better handling of maxbytes 2012-05-24 16:14:02 +08:00
Dan Poltawski 505978801f MDL-33162 filepicker: fix trailingw hitespace 2012-05-24 16:12:15 +08:00
Dan Poltawski 77cb9b6ce6 Merge branch 'wip-MDL-33162-master' of git://github.com/barbararamiro/moodle 2012-05-24 16:10:06 +08:00
Dan Poltawski 5c44b03559 Merge branch 'wip-MDL-33146-master' of git://github.com/abgreeve/moodle 2012-05-24 16:05:25 +08:00
Dan Poltawski ab1c1571a3 Merge branch 'MDL-33186-master-1' of git://git.luns.net.uk/moodle 2012-05-24 15:53:39 +08:00
Aparup Banerjee a91b4aa661 MDL-33318 lib : code style fix 2012-05-24 15:40:06 +08:00
Ankit Agarwal 6a9949a489 MDL-33325 folder: 'set as main file' option removed, from filepicker when editing a file in a folder resource 2012-05-24 15:13:22 +08:00
Kevin Wiliarty ee45a48b9c turning off the hspace attribute on move icon image... 2012-05-24 03:07:46 -04:00
Barbara Ramiro a9352f1f3c MDL-33162, MDL-33183, MDL-33150 Adjusted styles filemanager, file picker and file picker form element
- MDL-33162 Vertical align text to the middle of 24px icon for table view and tree view both on filemanager and filepicker
- MDL-33183 Layout file picker on form element on edit profile for drag and drop with dashed border and animated arrow consistent with filemanager (outputrenderers.php)
- MDL-33150 Added more space in between tool buttons both for file manager and filepicker
2012-05-24 15:02:52 +08:00
Aparup Banerjee b9dade0c65 Merge branch 'master_MDL-33318' of git://github.com/danmarsden/moodle 2012-05-24 14:46:38 +08:00
Dan Poltawski 20005a0ed8 Merge branch 'wip-MDL-33152-master' of git://github.com/abgreeve/moodle 2012-05-24 14:39:58 +08:00
Marina Glancy 9213f5476f MDL-33324 fixed bugs with icons in filepicker/filemanager treeview
- in treeview the icons for parent folders did not appear
- in treeview after refreshing (expanding subtrees) the image previews were replaced back to filetype icons
- also fixed a mistype in icon url in repository_local
2012-05-24 14:10:40 +08:00
Frederic Massart 7eea889b76 MDL-30905 Accessibility: recent activity list is XHTML compliant 2012-05-24 13:49:51 +08:00
Rossiani Wijaya 1e98e05f03 MDL-33196 filepicker: fixed link output error 2012-05-24 13:43:01 +08:00
Dan Poltawski 313514ec9b Merge branch 'w22_MDL-33293_m23_revisions' of git://github.com/skodak/moodle 2012-05-24 11:26:35 +08:00
Andrew Davis c53a64449a MDL-33315 blog: fixed up the navigation for when youre viewing another users blog 2012-05-24 09:40:59 +07:00
Frederic Massart d17ba1e1a5 MDL-30903 Accessibility: user profile page uses table headers 2012-05-24 10:18:14 +08:00
Dan Marsden eef67fe8c5 MDL-33318 use $CFG->admin in path correctly - thanks to Clarence Prudhoe for report/fix 2012-05-24 14:08:01 +12:00
Frederic Massart 6534a90b2c MDL-30888 Accessibility: small calendars summary does not display 'Data table' 2012-05-24 09:35:23 +08:00
AMOS bot f208652438 Automatically generated installer lang files 2012-05-24 00:31:26 +00:00
Sam Hemelryk cd7963eabd Merge branch 'MDL-32203c' of git://github.com/srynot4sale/moodle 2012-05-24 11:42:39 +12:00
Sam Hemelryk 8dd37f1f69 Merge branch 'MDL-33189-master-1' of git://git.luns.net.uk/moodle 2012-05-24 11:11:13 +12:00
Sam Hemelryk 119e228621 Merge branch 'MDL-26562-23' of git://github.com/vadimonus/moodle 2012-05-24 11:00:09 +12:00
sam marshall 5d0d373733 MDL-33212 Course page: Eye icon should override other conditions 2012-05-23 13:46:51 +01:00
Ruslan Kabalin 7fcd3c30fd MDL-33019: Check that message providers' plugins are enabled and exist 2012-05-23 10:47:08 +01:00
Petr Skoda 1635da56cd MDL-33293 init JS and theme revisions to timestamps in install to match new reset code 2012-05-23 11:28:10 +02:00
Petr Skoda f11db1a602 MDL-33293 use time() instead of counter for theme and JS revisions
This should help on sites that reset database, reinstall or switch databases.
2012-05-23 11:11:13 +02:00
Aparup Banerjee 04b66cb43c Merge branch 'wip-mdl-33143' of git://github.com/rajeshtaneja/moodle 2012-05-23 16:44:00 +08:00
Adrian Greeve 9ec5ee5168 MDL-33146 - course - Changed weekdates to sectionname to fix a JavaScript error 2012-05-23 16:13:32 +08:00
Marina Glancy ae7f35b934 MDL-33144 display filetype icon and mimetype based on extension
- use finfo to determine mimetype of a file only when it is unknown from file extension
- display filetype icon and mimetype in filemanager based on file extension
- fixed a small issue with specifying extension instead of group in file_get_typegroup()
- allow only web-compartible image types when embedding into editor or using in database field
- created new groups web_video and web_audio to use in resource module
2012-05-23 14:51:55 +08:00
Damyon Wiese 56ff1300d9 MDL-31414: Add sendlatenotifications support to the mod_assign upgrade tool
Prevents an SQL error on upgrade from mod_assignment to mod_assign
2012-05-23 14:05:35 +08:00
Dan Poltawski 419c47c74a Merge branch 'wip-mdl-32155' of git://github.com/rajeshtaneja/moodle 2012-05-23 13:28:01 +08:00
Rajesh Taneja 34b455fc98 MDL-32155 blocks: User can't access file, if block is hidden or doesn't have block:view capability 2012-05-23 12:52:27 +08:00
Rajesh Taneja d598040a98 MDL-33143 wiki-2.0 : wiki edit form will have mform1 as id for JS to work 2012-05-23 12:50:45 +08:00
Sam Hemelryk c831400563 MDL-31414 mod_assign: Fixed issue with assign cron when there was nothing to process 2012-05-23 16:23:53 +12:00
Dan Poltawski d9038d715b Merge branch 'MDL-32338' of git://github.com/nebgor/moodle 2012-05-23 11:27:54 +08:00
Dan Poltawski de424071ca MDL-32895 tool_assignmentupgrade: fix trailing whitespace 2012-05-23 11:20:23 +08:00
Dan Poltawski f310b16d80 Merge branch 'MDL-32895' of git://github.com/netspotau/moodle-mod_assign 2012-05-23 11:13:03 +08:00
Dan Poltawski 91b24de2e5 Merge branch 'wip-MDL-31414-m23' of git://github.com/samhemelryk/moodle 2012-05-23 10:39:16 +08:00
Dan Poltawski c14cad3167 Merge branch 'MDL-33074_groupmode_button' of git://github.com/davosmith/moodle 2012-05-23 10:26:40 +08:00
Andrew Davis 8c222e1768 MDL-33084 grade: made localize() and unlocalize() in lib/mathslib.php static as they are used as if they were static 2012-05-23 07:19:01 +07:00
Sam Hemelryk 3f7b501e66 MDL-31414 mod_assign: Code cleanup for notification improvements
* No need to manually call update of providers that happens automatically.
* Added upgrade code for the new sendlatenotifications field.
* Added AMOS syntax for the two renamed strings
* Refactored assign::cron to use half as many DB queries
* Cleaned up unused vars and globals, coding style and phpdocs.
* Removed string notifications added previously but never used.

AMOS BEGIN
   MOV [emailgradermail,mod_assign],[gradersubmissionupdatedtext,mod_assign]
   MOV [emailgradermailhtml,mod_assign],[gradersubmissionupdatedhtml,mod_assign]
AMOS END
2012-05-23 09:34:23 +12:00
Damyon Wiese 75f87a5795 MDL-31414: Separate settings to control notifications for submissions, late submissions and submission receipts
This adds separate controls for the sending of notifications from the mod_assign.

The separate notifications are: student submission receipt (for students), feedback available (for students)
and submission updated (for graders). The grader notifications can be enabled for all submissions or just late ones.

Added code to reset the message providers on upgrade (only applies for a 2.3 dev version)
2012-05-23 08:29:22 +12:00
Charles Fulton 4cd5ae4f00 MDL-33194 forum: correct number of parameters for get_record() 2012-05-22 11:33:21 -07:00
Eloy Lafuente (stronk7) 5a5cdaf92e on-demand release 2.3dev 2012-05-22 18:07:42 +02:00
Eloy Lafuente (stronk7) 2575871e5a Fix permissions 2012-05-22 18:06:52 +02:00
Mary Evans 5f73d19ddd MDL-33191 theme_magazine: changes to magazine/config.php fixes $THEME->layouts for Base & Standard 2012-05-22 16:54:00 +01:00
Ruslan Kabalin 7d84dfe704 MDL-33189: Make checkboxcontroller functionable 2012-05-22 14:26:09 +01:00
Sun Zhigang 4714f5323a MDL-33035 workshop: typo in strings 2012-05-22 19:22:12 +08:00
Andrew Robert Nicols 088258c160 MDL-33186 Ensure that the comment textarea exists before toggling it 2012-05-22 11:24:24 +01:00
Dan Poltawski 198244e2d9 Merge branch 'dev_MDL-33177_restore_warning' of git://github.com/dongsheng/moodle 2012-05-22 17:14:43 +08:00
Dan Poltawski 37eba7d5d6 Merge branch 'dev_MDL-33149_stored_file_access' of git://github.com/dongsheng/moodle 2012-05-22 16:51:33 +08:00
Dongsheng Cai 291a3d1fb6 MDL-33149 stored_file::repository should be private 2012-05-22 15:00:49 +08:00
Dongsheng Cai 65fead53fb MDL-33127 Fixed the problem when storing draft files 2012-05-22 14:50:47 +08:00
Dongsheng Cai ac0628e913 MDL-33177 Fixed restore warning when backup has external contents 2012-05-22 14:43:06 +08:00
Dan Poltawski 21878be7c8 Merge branch 'wip-files23-fixes' of git://github.com/marinaglancy/moodle 2012-05-22 14:32:35 +08:00
Barbara Ramiro 67fab8a534 MDL-33160 new filetype icons 2012-05-22 14:25:23 +08:00
Marina Glancy e563582760 MDL-33158 fixed bugs with restricting file typs in filepicker
- extension was returned without leading dot which resulted in improper validation
- fixed human-readable mime type in error message
- fixed youtube repository to support video files and pass filetype validation
2012-05-22 14:24:11 +08:00
Marina Glancy ca9875db1b MDL-33160 fixed some icons and groups for file types 2012-05-22 14:18:06 +08:00
Rossiani Wijaya 34b84d45b6 MDL-32766 course view section log: update patch 2012-05-22 14:02:48 +08:00
Dan Poltawski afe23ae76a Merge branch 'dev_MDL-33154_sesskey_error' of git://github.com/dongsheng/moodle 2012-05-22 13:57:51 +08:00
Dongsheng Cai e3c0211879 MDL-33147 Added transaction support for some Files APIs 2012-05-22 13:51:04 +08:00
Rossiani Wijaya 15a848ba90 MDL-32766 course log: specify log for viewing course section 2012-05-22 13:50:40 +08:00
Dan Poltawski d106cf1d7d Merge branch 'w21_MDL-32564_m23_timezonecontext' of git://github.com/skodak/moodle 2012-05-22 13:34:18 +08:00
Dan Poltawski b8644958e3 Merge branch 'w21_MDL-32379_m23_forumcron' of git://github.com/skodak/moodle 2012-05-22 13:05:28 +08:00
Adrian Greeve f5d0c2a69f MDL-33152 - themes - Moved the action buttons more to the right, inline with the rest of the form. 2012-05-22 12:51:48 +08:00
Dan Poltawski 49f6790323 Merge branch 'MDL-33116-master' of git://github.com/sammarshallou/moodle 2012-05-22 12:51:45 +08:00
Dan Poltawski f4e9103a95 Merge branch 'MDL-32744-master-3' of git://git.luns.net.uk/moodle 2012-05-22 12:28:37 +08:00
Dongsheng Cai 7992b93686 MDL-33154 added missing sesskey to navgation nodes 2012-05-22 12:14:59 +08:00
Dan Poltawski c1e1560843 Merge branch 'wip-mdl-33027' of git://github.com/rajeshtaneja/moodle 2012-05-22 11:54:30 +08:00
Dan Poltawski 2a3ff9e8df Merge branch 'MDL-33153-master-integration' of github.com:FMCorz/moodle 2012-05-22 11:44:23 +08:00
Rajesh Taneja bcf7175f4e MDL-33027 theme: Hidden section link will be displayed dimmed in section navigation 2012-05-22 11:31:35 +08:00
Rajesh Taneja c129f430bb MDL-33027 themes: Modified heading to be displayed for section in all themes 2012-05-22 11:31:34 +08:00
Dan Poltawski 3e832fe3e5 Merge branch 'MDL-32981-master' of github.com:FMCorz/moodle 2012-05-22 11:14:12 +08:00
Frederic Massart c598ea55fe MDL-32981 Filepicker: my private files uses edit page instead of view 2012-05-22 10:56:11 +08:00
Sam Hemelryk cba59b3d83 Merge branch 'MDL-32204-mnet-auth' of git://github.com/mudrd8mz/moodle 2012-05-22 14:49:35 +12:00
Sam Hemelryk 0b02faa076 Merge branch 'MDL-33051' of git://github.com/danpoltawski/moodle 2012-05-22 14:40:31 +12:00
Sam Hemelryk 4f4476081f Merge branch 'MDL-33055_master' of git://github.com/kordan/moodle 2012-05-22 14:31:59 +12:00
Dan Poltawski c8f0f2cd85 Merge branch 'wip-MDL-33066-m23' of git://github.com/samhemelryk/moodle 2012-05-22 10:30:36 +08:00
Sam Hemelryk 2a4fbc327c MDL-32932 mod_assign: Coding style clean up and security improvement 2012-05-22 14:21:47 +12:00
Sam Hemelryk c5b8ae0eb7 Merge branch 'MDL-32932' of git://github.com/netspotau/moodle-mod_assign
Conflicts:
	mod/assign/gradingtable.php
2012-05-22 14:21:41 +12:00
Dan Poltawski 5d6e603e1f Merge branch 'MDL-33167' of git://github.com/lazydaisy/moodle 2012-05-22 10:18:45 +08:00
Mary Evans 228408475c MDL-33167 theme_afterburner: added z-index to fix issue with yui3-widget when adding activity or resourse using new feature dialogue box 2012-05-22 03:05:42 +01:00
Rajesh Taneja 2b1b897271 MDL-33102 blogs: userid will be added during blog visibility upgrade 2012-05-22 09:49:27 +08:00
Frederic Massart 50fb4c8fd9 MDL-33153 Resource: rename submit button to 'save changes' in folder resource 2012-05-22 09:36:29 +08:00
Andrew Davis 4be0947bbe MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php 2012-05-22 08:30:39 +07:00
Sam Hemelryk ad5d189c93 Merge branch 'MDL-33118' of git://github.com/lazydaisy/moodle 2012-05-22 11:38:03 +12:00
Sam Hemelryk ac12e3b42e MDL-33122 Coding style cleanup during integration 2012-05-22 11:33:52 +12:00
Sam Hemelryk 4c32b79957 Merge branch 'MDL-33122-master' of git://github.com/ankitagarwal/moodle 2012-05-22 10:54:48 +12:00
Sam Hemelryk 25bea62d33 Merge branch 'MDL-33137-master-2' of git://git.luns.net.uk/moodle 2012-05-22 10:49:59 +12: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
Davo Smith 82d2a84002 MDL-33074 Course drag and drop upload - fixed incorrect group mode button 2012-05-21 22:11:38 +01:00
Andrew Robert Nicols 35e1abcde7 MDL-33137 Add styling to activity chooser buttons 2012-05-21 17:02:13 +01:00
Andrew Robert Nicols d9bd472bee MDL-33135 Prevent duplicate form submission on the course activity chooser 2012-05-21 16:55:47 +01:00
sam marshall a3c17aed9f MDL-33116 Media filter broken with slasharguments off 2012-05-21 14:24:42 +01:00
Ruslan Kabalin 243e9bf984 MDL-32752: Drag-drop: Follow the ghost note if the drop target is missed.
Simulate drop_hit and substitute target of where ghost node was dropped last
time.
2012-05-21 13:59:44 +01:00
sam marshall 52e9dfc58f MDL-33133 Conditional section: restore to existing course fix 2012-05-21 13:59:00 +01:00
Ruslan Kabalin 405eaac272 MDL-32744: Maintain format specific CSS selectors in the format configuration.
This updates existing core formats and introduce a configuration function.
2012-05-21 13:53:04 +01:00
Dan Poltawski f7290156ad Merge branch 'MDL-33126-master' of git://github.com/sammarshallou/moodle 2012-05-21 20:17:12 +08:00
Dan Poltawski b99065be04 MDL-33032 - dont require repository/lib.php until necessary
This is an ugly fix to a broken installer only.
2012-05-21 20:04:42 +08:00
Dan Poltawski 1082e7daf7 MDL-31901: Fix trailing whitespace 2012-05-21 19:18:44 +08:00
sam marshall 57a42a24ad MDL-33126 Fix error on first view of new course page 2012-05-21 12:05:30 +01:00
Dan Poltawski 6a0d7194f7 MDL-31901: filemanager/picker.js - match coding style
* No inline ifs
* Spacing between ternary operators
* Missing ;'s
2012-05-21 18:25:56 +08:00
Dan Poltawski 7d44f9c2a2 MDL-28666: filelib - remove unusused globals 2012-05-21 18:21:36 +08:00
Dan Poltawski f8e74b20f9 MDL-28666 repository - Switch usefilereference to PARAM_BOOL 2012-05-21 18:21:31 +08:00
Dan Poltawski 49957d3858 MDL-28666 admin/repository: use PARAM_BOOL for booleans. 2012-05-21 18:21:25 +08:00
Dan Poltawski 2b4f1cbc32 Merge branch 'wip-files23' of git://github.com/marinaglancy/moodle 2012-05-21 18:19:32 +08:00
Marina Glancy 55711b0a0d Merge pull request #4 from mudrd8mz/wip-files23-fixes
Changing the tinyicon size to 24x24
2012-05-21 03:17:25 -07:00
Andrew Robert Nicols 48a5e55ee2 MDL-33128 Swap Activities and Resources in the module chooser 2012-05-21 11:08:32 +01:00
David Mudrak 10f0978bff MDL-32471 redefining the tinyicon thumbnail size to 24x24
As requested by the Files 2.3 UI team.
2012-05-21 11:37:29 +02:00
Fábio Souto 90e30b965f Allow admin to consult user email address
Currently the admin user cannot check the user email using this function. This fix allows the admin user to retrieve the email in any situation.
2012-05-21 10:32:21 +01:00
Dan Poltawski 5c50d45b79 Merge branch 'MDL-22504_drag_and_drop_upload_integration' of git://github.com/davosmith/moodle 2012-05-21 17:22:13 +08:00
Marina Glancy a8d6dda4f2 MDL-32247 fixed bug with displaying icon for unknown filetype, fixed merge mistakes 2012-05-21 17:12:55 +08:00
Davo Smith 1ddc3d1f4c MDL-22504 Course drag and drop upload - experimental setting is now a checkbox 2012-05-21 10:03:55 +01:00
Kordan e201eff9cc MDL-32380 theme_formal_white: just a new style class for wrong config parameters 2012-05-21 10:41:26 +02:00
Dongsheng Cai 70c1bc843a MDL-33127 stored_file::update should use get_content_file_location because it tried to update file_record 2012-05-21 16:37:53 +08:00
Barbara Ramiro 0f1bdd0d2c MDL-32900 Change Icons to FileTypesIcons 2012-05-21 16:37:14 +08:00
Marina Glancy 559276b153 MDL-32247,MDL-32831,MDL-32900 Use correct url building of file type icons
- function get_mimetypes_array() now contains also information about filetype groups and language strings
- use 'smart' human-readable mimetype description
- never determine filetype group based on filetype icon image! remove function mimeinfo_from_icon()
- get rid of class filetype_parser and file lib/filestorage/file_types.mm, replaced with functions file_get_typegroup(), file_extension_in_typegroup() and file_mimetype_in_typegroup()
- support multiple icon sizes, not only 16 and 32
- retrieve filetype icon only using proper functions file_..._icon() from lib/filelib.php throughout the code
- increase size of repository thumbnails to 90 and icons to 24 (will take effect when new icons exist)
2012-05-21 16:01:04 +08:00
Kordan c19d6d1b97 collapsed margin around header logo a increased the margin around header menu 2012-05-21 09:57:29 +02:00
Davo Smith f684250bda MDL-22504 Course drag and drop upload - removed browser specific content hacks, made 'text and link' dragging an experimental feature 2012-05-21 08:34:50 +01:00
Kordan 5ac3b1c0ba MDL-33055 theme_formal_white: changed "general" to "standard" in $theme->layouts array index 2012-05-21 09:26:52 +02:00
Dongsheng Cai 8177b7b9f0 MDL-33082 Detecting mimetype based on content bytes 2012-05-21 15:26:39 +08:00
Barbara Ramiro b456271028 MDL-31901 filemanager and filepicker styling
- Swaped tool buttons and view buttons sequence for keyboard access both on filemanager and filepicker
- Added "new folder name" label and "cancel" button on create a folder dialogue
- Added href="#" and resized fonts on confirmation  and message dialogue
2012-05-21 15:25:20 +08:00
Ankit Agarwal 55e25598e7 MDL-33122 repositories: Enable youtube,url and wikimedia repositories by default 2012-05-21 13:32:02 +08:00
Dan Poltawski 04acd26663 Merge branch 'MDL-33079' of git://github.com/stronk7/moodle 2012-05-21 13:26:36 +08:00
Dan Poltawski 78de004483 MDL-33051 - topics format: remove section number from section column
We don't think its necessary anymore
2012-05-21 12:12:44 +08:00
David Mudrak f653c9d830 MDL-33096 update the file's timemodified if it was changed in the draft area
Previously up to 2.2, new file records were created for all files that
were modified in the draft area - see file_save_draft_area_files().
The commit aba1e17dd7ffa5e42d309fb2efe7945aeb3b3d39 introduced a new way
of re-using the previous file's record. We need to transfer the
timemodified of the file in the draft area into the file in the real
area when saving the draft area to achieve the same behaviour now in 2.3.

Note this may eventually lead to kinda weird situation when the file was
created say on a certain timecreated but then was replaced with another file
that has timemodified set to a lower value (in other words, the file
will look as if it was firstly modified and then created). This case
should be handled by the filepicker if it is seen as the issue.
2012-05-21 11:57:56 +08:00
David Mudrak 3333e7e20c MDL-33093 invalidate the thumbnail in the local browser's cache on update
This adds &oid= parameter to the URL of file preview images. The
parameter is supposed to be ignored by draftfile.php and pluginfile.php.
It just holds some unique identification of the original file's
revision. Currently, we use the timestamp of the most recent
modification of the original file.
2012-05-21 11:57:56 +08:00
David Mudrak b53fad1e8b MDL-33098 filemanager now stores the new author field correctly 2012-05-21 11:57:56 +08:00
Dongsheng Cai 61506a0af9 MDL-33032 Fixed issues for file integration
1. Added tracker issue number in comment
2. Fixed stored_file::delete_reference()
3. repository::send_file() will throw exception if not implemented by subclass
4. Fixed renaming unit test, added one unit test for deleting original file
5. Fixed copyright statement for googledoc and picasa repository plugin
6. Implemented stored_file::set_filesize()
2012-05-21 11:57:56 +08:00
Dongsheng Cai 4712676dfa MDL-28666, Fixed source field when download a file using filepicker 2012-05-21 11:57:56 +08:00
Barbara Ramiro 0f0d10c5be MDL-31901 filemanager and filepicker styling
- Thumbnail for Private files, Server file and Recent file restyled
- Thumbnail for Context menu made flexible
- Filenames on hover made all text visible
- Drag and drop arrow hidden for unsupported browsers
- Drag and drop styled applied on edit profile
- Yui3 panel focused removed
2012-05-21 11:57:55 +08:00
Marina Glancy 16dfd717f7 MDL-31901 fixed forgotten overwrite dialogue in filepicker 2012-05-21 11:57:55 +08:00
Dongsheng Cai fc4e8034fc MDL-32867 filemanager and repository
1. Allowing "." as filename, so filemanager can rename folder
2. Fixed import_external_file method
3. Disallow recent repository to list file references
2012-05-21 11:57:55 +08:00
Marina Glancy 55e868053c MDL-32867: changed renaming of folders to the new API (function 'rename'), removed unused code 2012-05-21 11:57:55 +08:00
Petr Skoda 9bd553b7b8 MDL-33015 fix invalid PAGE->url in repo instance config pages
Conflicts:

	admin/repositoryinstance.php
2012-05-21 11:57:55 +08:00
Petr Skoda a38a17a12a MDL-33015 revert form actions to default back to FULLME
This is a temporary workaround until we fix all admin pages to set up actual url properly in admin_externalpage_setup().
2012-05-21 11:57:55 +08:00
Marina Glancy 469a53a053 MDL-31901 Implemented lazy loading of thumbnails in filemanager 2012-05-21 11:57:55 +08:00
Dongsheng Cai 04e3b007c2 MDL-28666 phpdoc improvements 2012-05-21 11:57:54 +08:00
Marina Glancy 9dbdf31f8c MDL-32867 Display a list of references pointing to the file in filemanager 2012-05-21 11:57:54 +08:00
Barbara Ramiro 420e7bb27b MDL-31901 Styled File Manager Icon view, Table view and Tree view 2012-05-21 11:57:54 +08:00
Dongsheng Cai 462c4955f4 MDL-28666 file_storage::get_directory_files() supports references 2012-05-21 11:57:54 +08:00
Dongsheng Cai 7051415cca MDL-28666 Files API and db changes
1. Fix db regression
2. Unit tests for is_external_file() and rename exception
3. Searching reference method exclude draft files
2012-05-21 11:57:54 +08:00
Marina Glancy 6dd299befa MDL-31901, MDL-28666 merged files API changes 2012-05-21 11:57:53 +08:00
David Mudrak dafe129637 MDL-31901 draft files manager supports realthumbnail, realicon and dimensions for images 2012-05-21 11:57:53 +08:00
David Mudrak 9d19777234 MDL-31901 draftfile.php supports the preview parameter 2012-05-21 11:57:53 +08:00
David Mudrak 97b603c621 MDL-31901 fixed the name of user draft file serving handler
Files stored in user context, draft are must be served by draftfile.php,
not the pluginfile.php.
2012-05-21 11:57:53 +08:00
David Mudrak dfad252c9e MDL-31901 repositories serving images from the filepool now provide preview details 2012-05-21 11:57:53 +08:00
David Mudrak 0dbf6c88bb MDL-31901 file_info_stored now provides access to the wrapped stored_file's get_imageinfo() method 2012-05-21 11:57:53 +08:00
Marina Glancy b7725e30c2 MDL-32914 fixed function get_imageinfo() to get rid of notice messages 2012-05-21 11:57:53 +08:00
Marina Glancy 9a62f7799b MDL-32867 Working with external references in filemanager
- Files that are references to external resources have special shortcut icon in filemanager
- When user selects a REF file in filemanager, he can see the 'Original' of the file in the way that original repository wants to show it, it is loaded dynamically via AJAX request
- Files that are themselves the source of references of other files in the system have 'link' icon in filemanager. When user tries to remove/rename/overwrite SRC file he is warned that all ## existing references will be updated/converted to copies.
- Changed confirmation messages for deleting, moving/renaming of the folders
- confirmation dialog in filemanager is using YUI3 now
2012-05-21 11:57:53 +08:00
Marina Glancy dd1f051e4a MDL-31901 filepicker interface changes:
- fixed displaying and dragging of dialog popups;
- fixed error when repository results are filtered;
- added string for image dimensions
2012-05-21 11:57:53 +08:00
Marina Glancy 55089a9d01 MDL-31901: moved select-file panel outside of filepicker/filemanager for better UI 2012-05-21 11:57:53 +08:00
Marina Glancy 5cf44c1f1f MDL-31901,MDL-28666: add support for external references in new filepicker design 2012-05-21 11:57:53 +08:00
Marina Glancy 1908ae06fb MDL-31901: filemanger: fixed bug with switching to treeview in empty folder 2012-05-21 11:57:52 +08:00
Marina Glancy e0ff0867bd MDL-31901: filemanager: fixed 'Original' label, and small bug in treeview navigation 2012-05-21 11:57:52 +08:00
Marina Glancy 4325db53ab MDL-31901: Filemanager and Filepicker, cleaned up requirements and strings 2012-05-21 11:57:52 +08:00
Marina Glancy 6c2367ccf1 MDL-31901: Highlighting main file in FileManager 2012-05-21 11:57:52 +08:00
Marina Glancy c092681b4b MDL-31901: Updating/moving files in FileManager
- added new functions to the backend (repository/draftfiles_ajax.php) to allow changing of file name, location, license and author in one request
- enabled changing file properties using JS UI (lib/form/filemanager.js)
2012-05-21 11:57:52 +08:00
Marina Glancy 694beb548c MDL-31901: FileManager uses more YUI3 windows and more renderers
- Add folder dialog in FileManager now uses YUI3 and renderer;
- Fixed bug with remembering current folder in Tree view;
- Display error messages in FileManager using YUI3 and not using 'alert'
2012-05-21 11:57:52 +08:00
Marina Glancy 23b830091a MDL-31901: FileManager, added image for accessing right-click action 2012-05-21 11:57:52 +08:00
Marina Glancy acd78d9d82 MDL-31901: removed accidentally commited testing code 2012-05-21 11:57:52 +08:00
Barbara Ramiro e88d564186 MDL-31901: Change the UI in filepicker CSS rendered and images 2012-05-21 11:57:52 +08:00
Marina Glancy e709ddd29c MDL-31901: Allow FileManager to re-use FilePicker JS code for view modes:
- when loading core_filepicker we extend the Node element with functions necessary to display files list in different view modes;
- repository/filepicker.js is changed to use those functions;
- FileManager now has three different view modes (icon view, tree view and table view), JS code is re-used from FilePicker;
- files in FileManager no longer have context menu, they have one popup Widget with different actions instead;
- Added more templates for JS code to FileManager, use similar CSS class names as FilePicker;
- lib/filelib.php : fixed double slashes in path, return more data about files;
- lib/form/filemanager.php : pass information to FileManager about available licenses and default author;
- repository/draftfiles_ajax.php : return information about directory tree for file moving UI in FileManager, return formatted information;
- repository/lib.php : function repository::prepare_listing() now can work also with draftarea files listing;
2012-05-21 11:57:52 +08:00
Marina Glancy d1d186917c MDL-31901: moved filepicker html to files/renderer.php, pass templates once per page 2012-05-21 11:57:52 +08:00
Marina Glancy 906e7d89a5 MDL-31901: user renderer for filemanager, decrease html generation in filemanager.js and dndupload.js 2012-05-21 11:57:52 +08:00
Marina Glancy 830acea6c1 MDL-31901: show shorttile instead of title where applicable 2012-05-21 11:57:52 +08:00
Marina Glancy ce3eeb98f1 MDL-32473,MDL-32471: Lazy loading of next page and image thumbnails when scrolling 2012-05-21 11:57:52 +08:00
Marina Glancy 7ccf18a629 MDL-31901: Simple loading of the next page, migrating to YUI 3.5.0
- instead of using paging bar and navigating between pages, there is a link 'more' in the bottom of the list that loads the files from the next page and adds them to the bottom of the list;
- DataTable is updated to YUI 3.5.0, sorting is done properly
2012-05-21 11:57:52 +08:00
Marina Glancy b92241f280 MDL-31901: Changing interface of file picker, use renderers:
- Filepicker window is now resizable and draggable;
- filepicker&renderer: removed id substitution from renderer, replaced it with classes (better readability);
- filepicker: allowed tree and table view for search results;
- filepicker: fixed small bug with displaying external link checkbox
- filepicker: display additional information about file in select window, repository returns more formatted information
2012-05-21 11:57:51 +08:00
Marina Glancy 5bdf63cce0 MDL-14636: Support table view in Filepicker, provide more info about files
- Added table view in Filepicker where for each file we show Name, Last modified, Size and Type. Sortable by column
- Preprocess list of files returned from repositories to include formatted size, dates, type and also add filetype icon
- Make sure that local repositories (coursefiles, filesystem, local, recent, user) return information about file size, datemodified, datecreated, author, license
2012-05-21 11:57:51 +08:00
Marina Glancy 2f6749f4bf MDL-32083: Filepicker tree view should display folders starting from top
- path bar is not displayed in tree view mode
 - display (and load) hierarchy of folders above the current - take it from path and load siblings
 - make sure the current folder is remembered when navigating between folders in tree view so it remains when switching to other view mode
 - fix couple of small bugs caused by previous changes in MDL-31901
2012-05-21 11:57:51 +08:00
Marina Glancy 3a1e425b7f MDL-31901: Modifying filepicker to use renderers
- fixed some small errors and made cosmetic changes to the code
- added 'loading' icon when selecting a file
- finished population of login form, added support for radio elements there
2012-05-21 11:57:51 +08:00
Marina Glancy 5ce13292b5 MDL-31901: Filepicker: Moved HTML for loginform into renderer 2012-05-21 11:57:51 +08:00
Marina Glancy b5e7b6385e MDL-31901: Introducing renderers for filepicker:
- create repository renderer, implement functions for returning HTML templates used in filepicker
- let filepicker use HTML from templates
- move CSS for filemanager and filepicker to the separate css file in base theme
- use only YUI3 in filepicker (get rid of YUI2)
- add button for 'View details' in filepicker (though this view mode is still not ready)
2012-05-21 11:57:51 +08:00
Marina Glancy 4adecd7beb MDL-31901: brushing the filepicker code
- use the same function for displaying request result for list/search/login/logout commands since sometimes we can not predict what kind of result is going to be returned
- prevent default behaviour for links, so ### does not appear in URL
- use flag issearchresult as received in the response from repository because we can't guess it right sometimes
- do not make excessive AJAX request when user switches to list view
2012-05-21 11:57:51 +08:00
Dongsheng Cai 6723372514 MDL-28666 Extends repository to support references
1. Allow repository to create references to external contents
2. Extends files API to handle file references
3. Generic file caching
4. Backup/restore file references
5. Download external contents if repository uninstalled
6. Allow filepicker to display iframe
7. PHPUnit test suits
2012-05-21 11:57:51 +08:00
Rajesh Taneja f2bfe26aea MDL-27120 backup: fixed docblock and code cleanup 2012-05-21 11:02:16 +08:00
Tony Levi 0c99b72299 MDL-27120: Cache DB operations in restore_dbops 2012-05-21 11:02:16 +08:00
Tony Levi 55f6d9d378 MDL-27120: Cache dirname transformations in progressive_parser::dirname 2012-05-21 11:02:16 +08:00
Adam Olley 16bf868513 mdl-27120 Fix static cache for backup_xml_transformer::register_link_encoders() 2012-05-21 11:02:16 +08:00
Jason Ilicic 67bf69416e mdl-27120 Fixed incorrect variable in parameter when adding form dependencies. 2012-05-21 11:02:16 +08:00
Ashley Holman 588605efa6 MDL-27120 Add global cache to backup_xml_transformer::register_link_encoders() 2012-05-21 11:02:16 +08:00
Ashley Holman 01ab87feda MDL-27120 More efficient use of QuickForms in backup UI 2012-05-21 11:02:16 +08:00
Ashley Holman 9e4b9a00cc MDL-27120 backup: replace sequential scan search with hash-based lookup. 2012-05-21 11:02:16 +08:00
Andrew Davis 728ff21b9f MDL-32860 grade: refactored graded_users_iterator 2012-05-21 09:11:25 +07:00
Sam Hemelryk 2cd972c1c6 MDL-32709 Pre-integration trivial clean up
* Added a comment for the BOOK_NUM_* defines.
* Fixed broken redirects in tool/importhtml/index.php
* Fixed typo in book_preload_chapters [subchpaters => subchapters]
* Fixed copy paste docblock error in tool/print/locallib.php
* Removed the .gitignore file as Eloy had previously mentioned that.
2012-05-21 14:06:00 +12:00
Eloy Lafuente (stronk7) 079be74dd5 MDL-32709 book: finish coding style review (errors only) 2012-05-21 01:50:20 +02:00
Eloy Lafuente (stronk7) a1448fc012 MDL-32709 book: fix send_stored_file() call 2012-05-21 01:27:40 +02:00
Eloy Lafuente (stronk7) 9717aa2ddd MDL-32709 book: delete some not needed stuff 2012-05-21 01:26:52 +02:00
Eloy Lafuente (stronk7) f7e6dd4d41 MDL-32709 book: now standard module + new strings added
Note the lang file is completely disordered yet
2012-05-21 00:54:53 +02:00
Eloy Lafuente (stronk7) a87aa28d51 MDL-32709 book: Fix logs handling 2012-05-21 00:33:58 +02:00
Mary Evans fc11586b03 MDL-33118 theme_mymobile: changed MAIN_CONTENT_TOKEN in layout/embedded.php to new format 2012-05-20 22:37:54 +01:00
Eloy Lafuente (stronk7) b9a363548d MDL-32709 book: DB definition & upgrade cleanup 2012-05-20 21:48:07 +02:00
Eloy Lafuente (stronk7) 29656fe24b MDL-32709 book: coding style, deprecated and minor fixes 2012-05-20 21:47:58 +02:00
Eloy Lafuente (stronk7) 1fc9e895ef MDL-32709 book: replace some deprecated stuff. Some pending yet, blame $PAGE 2012-05-20 21:47:50 +02:00
Eloy Lafuente (stronk7) 98cef39d28 MDL-32709 book: Add some missing MOODLE_INTERNALs 2012-05-20 21:47:38 +02:00
Eloy Lafuente (stronk7) 3542c4f4a9 MDL-32709 book: general comments and phpdocs cleanup 2012-05-20 21:47:29 +02:00
Eloy Lafuente (stronk7) e81c01b676 Subtree merged git://github.com/skodak/moodle-mod_book.git (master branch) into mod/book 2012-05-20 21:43:40 +02:00
Vadim Dvorovenko 5429460127 MDL-26562 2012-05-20 19:44:32 +07:00
Rex Lorenzo ae11631886 MDL-33090 - Missing strings in XMLDB editor - added in missing strings 2012-05-19 21:27:38 -07:00
Mary Evans b3d5a51a8d MDL-33110 themes: removed redundent boilerplate.css from Boxxie and all layout files from Serenity. 2012-05-20 01:15:25 +01:00
Petr Skoda 65f78adf42 MDL-27575 use new skype call URI
As described in official Skype page at http://www.skype.com/intl/en-us/tell-a-friend/get-a-skype-button/
2012-05-19 20:48:48 +02:00
Petr Skoda 103f34d88d MDL-32379 fix forum cron user caching 2012-05-19 18:56:19 +02:00
Petr Skoda fb1ec806c5 MDL-32564 fix admin/timezone.php page setup 2012-05-19 18:52:58 +02:00
Petr Skoda 8b5d2864ab MDL-32972 keep gif transparency when processing user avatar images 2012-05-19 18:47:23 +02:00
Petr Skoda 33d9f44bc6 MDL-18763 add 512x512px user avatar support 2012-05-19 18:47:23 +02:00
Petr Skoda dfa6a34638 MDL-33034 some more accesslib tests
It is not complete yet, but it should be enough to verify patch in MDL-8249 works properly.
2012-05-19 18:40:32 +02:00
Petr Skoda f32ecd2fbe MDL-33075 find correct location of failed test case classes 2012-05-19 18:38:51 +02:00
Eloy Lafuente (stronk7) 4f7f2a8828 weekly release 2.3dev 2012-05-19 12:24:31 +02:00
Eloy Lafuente (stronk7) 5204c07bd4 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-19 12:17:09 +02:00
AMOS bot f348b9dac6 Automatically generated installer lang files 2012-05-19 00:31:42 +00:00
Eloy Lafuente (stronk7) 128af10645 MDL-32005 Avoid some notices restoring old backup files without idnumber 2012-05-18 13:36:03 +02:00
Dan Poltawski 4a3d07972c Merge branch 'MDL-30617-master-patches' of git://git.luns.net.uk/moodle 2012-05-18 17:40:33 +08:00
Adrian Greeve 0a498686c0 MDL-32126 replaced _order with sortorder to make sorting work in oracle 2012-05-18 11:37:21 +02:00
Andrew Robert Nicols 2d1151817f MDL-30617 Center dialogue title 2012-05-18 10:28:53 +01:00
Andrew Robert Nicols af75421c54 MDL-30617 Adjustments to styling of module chooser
These changes fix several points and suggested changes:
* increase the size of the help popup to 800x600
* fix issues with centering of the dialogue
* swap next/cancel buttons
* convert next button to use string for 'Add'
* convert add text to 'Add an activity or resource'
2012-05-18 10:10:20 +01:00
Dan Poltawski eeba64d02e MDL-32727 - quiz: fix incorrect variable name in upgrade 2012-05-18 15:08:07 +08:00
Dan Poltawski 5316007e08 MDL-24419 section availability: display availability info to teachers 2012-05-18 14:56:00 +08:00
Jerome Mouneyrac 96d3b93ba3 MDL-33060 remove some get_string from exceptions 2012-05-18 14:45:15 +08:00
Dan Poltawski 1edff8c7ed MDL-30617 lang: improve mod chooser strings 2012-05-18 12:46:13 +08:00
Dan Poltawski ad10c481e1 Merge branch 'MDL-33048' of git://github.com/timhunt/moodle 2012-05-18 12:12:51 +08:00
Sam Hemelryk d5e6fe3ecc Merge branch 'MDL-32727' of git://github.com/timhunt/moodle
Conflicts:
	mod/quiz/db/upgrade.php
2012-05-18 16:07:20 +12:00
Dan Poltawski 82258830b7 Merge branch 'MDL-32933' of git://github.com/netspotau/moodle-mod_assign 2012-05-18 11:23:47 +08:00
Dan Poltawski a4d0f6f06a Merge branch 'w20_MDL-32868_m23_iplookup' of git://github.com/skodak/moodle 2012-05-18 11:05:28 +08:00
Dan Poltawski 7e89cbe0ac Merge branch 'MDL-31675-file-browsing' of git://github.com/mudrd8mz/moodle 2012-05-18 10:30:22 +08:00
Dan Poltawski 79f3d0e027 Merge branch 'MDL-32535-master' of git://github.com/sammarshallou/moodle 2012-05-18 10:28:19 +08:00
Dan Poltawski 33e693b5e1 Merge branch 'MDL-32909' of git://github.com/netspotau/moodle-mod_assign 2012-05-18 10:05:32 +08:00
AMOS bot 2f7bd55c0c Automatically generated installer lang files 2012-05-18 00:31:47 +00:00
Eloy Lafuente (stronk7) ad4dc7d265 MDL-33079 Enable IMS-CC export (backup converter) 2012-05-18 01:35:07 +02:00
Sam Hemelryk 67cfce0245 Merge branch 'MDL-33069' of git://github.com/danpoltawski/moodle 2012-05-18 10:48:23 +12:00
Sam Hemelryk 957983b702 MDL-33066 navigation: Fixed ambiguously defined columns in DB queries for Oracle 2012-05-18 10:37:44 +12:00
Eloy Lafuente (stronk7) f823158b07 MDL-32941 Add transaction support to delete_categories 2012-05-18 00:06:42 +02:00
Eloy Lafuente (stronk7) 3ec163ddf1 MDL-32941 Reorganise functions a bit 2012-05-17 23:45:41 +02:00
Eloy Lafuente (stronk7) 754c2deab6 Merge branch 'MDL-32941' of git://github.com/mouneyrac/moodle
Conflicts:
	course/externallib.php
	lib/db/services.php
	version.php
2012-05-17 22:35:57 +02:00
Davo Smith 5a4decbc2d MDL-22504 Course drag and drop upload - (mostly) fixed the dragging of text between Firefox <==> Chrome 2012-05-17 21:19:52 +01:00
Dan Poltawski 46e046b7b3 MDL-30617 modchoser: minor tweaks
* Change markup way from 'activity module style' to its own markup
* Remove 'a new' from the 'add an activity' string
* Remove the 'personalisation' from the nohelp lang string
2012-05-18 00:27:42 +08:00
Andrew Robert Nicols 01e0e7044a MDL-30617 Add a javascript interface for adding modules to a course
This interface allows for additional metadata, such as the module's help
and icon, to be displayed.
2012-05-18 00:27:16 +08:00
Helen Foster 2e6b68f4a8 MDL-32925 lang: Add extended help texts for all modules
Thanks to Mary Cooch & Martin Dougiamas who contributed to this
rewording.

AMOS BEGIN
   REM These module help texts are going to be displayed more prominently in the Moodle interface
AMOS END
2012-05-18 00:27:04 +08:00
Tim Hunt 36e48cb82f MDL-33048 quiz / my moodle: fatal error due to missing include. 2012-05-17 16:06:41 +01:00
Dan Poltawski bc449b18a6 Merge branch 'MDL-33025-master-1' of git://git.luns.net.uk/moodle 2012-05-17 21:19:37 +08:00
Dan Poltawski 03ba9dac94 Merge branch 'MDL-33073-master-1' of git://git.luns.net.uk/moodle 2012-05-17 21:04:30 +08:00
Davo Smith b64300fc42 MDL-22504 Improved drag and drop status message, fixed text dragged from firefox, fix icon 2012-05-17 13:59:54 +01:00
Dan Poltawski 1ed2dc6f96 Merge branch 'MDL-24419' of git://github.com/danpoltawski/moodle 2012-05-17 20:46:21 +08:00
Dan Poltawski 6e0d176934 Merge branch 'MDL-24419-master' of git://github.com/sammarshallou/moodle 2012-05-17 20:45:37 +08:00
sam marshall 52f1406101 MDL-24419 Fix bug with section creation for new courses 2012-05-17 13:37:33 +01:00
Andrew Robert Nicols 537194ffc5 MDL-33073 Fix application of toolbox JS for drag/dropped content 2012-05-17 11:49:53 +01:00
Dan Poltawski d6c94cf4eb MDL-33069 assignment: change pluralname to (2.2) 2012-05-17 17:28:26 +08:00
Aparup Banerjee ffa7d1cda0 Merge branch 'MDL-32087' of git://github.com/timhunt/moodle 2012-05-17 17:17:37 +08:00
Aparup Banerjee 8280dec6fa Merge branch 'w20_MDL-33016_m23_hubperf' of git://github.com/skodak/moodle 2012-05-17 16:57:01 +08:00
Aparup Banerjee defd2dcc13 Merge branch 'wip-mdl-32866' of git://github.com/rajeshtaneja/moodle 2012-05-17 16:48:07 +08:00
Frederic Massart 096d4d8767 MDL-29924 Glossary: Entry attachments displayed in Moodle dialogue 2012-05-17 15:12:22 +08:00
Aparup Banerjee 7ded1e29f9 Merge branch 'w20_MDL-32907_m23_like' of git://github.com/skodak/moodle 2012-05-17 14:47:44 +08:00
Dan Poltawski 331a8feecf Merge branch 'w20_MDL-29054_m23_sqlsrvdbt' of git://github.com/skodak/moodle 2012-05-17 14:33:42 +08:00
Dan Poltawski 5a0a64661c Merge branch 'w20_MDL-32967_m23_sqlsrvstrings' of git://github.com/skodak/moodle 2012-05-17 14:30:30 +08:00
Dan Poltawski aa141671a3 Merge branch 'MDL-31814' of git://github.com/timhunt/moodle 2012-05-17 14:11:14 +08:00
Jerome Mouneyrac 8c507544d4 MDL-32941 fix criteriaerror exception code + wrong phpdoc scope 2012-05-17 13:36:40 +08:00
Dan Poltawski b5378c1113 Merge branch 'w20_MDL-32961_m23_phpunitperf' of git://github.com/skodak/moodle 2012-05-17 12:35:45 +08:00
Dan Poltawski b24d1dbbad MDL-24419: redirect_if_major_upgrade_required version update
The conditional topics changes need users to go to /admin/index.php
2012-05-17 11:57:12 +08:00
Aaron Barnes 66b494771f MDL-33063 course: Reuse get_all_sections() 2012-05-17 15:40:03 +12:00
Dan Poltawski 65d0d4b654 Merge branch 'w20_MDL-32961_m23_phpunitperf' of git://github.com/skodak/moodle 2012-05-17 11:29:04 +08:00
Dan Poltawski 12ba24a8f8 Merge branch 'MDL-24419' of git://github.com/stronk7/moodle 2012-05-17 11:19:02 +08:00
Sam Hemelryk 2bdafb867a Merge branch 'MDL-32337-uptodate' of git://github.com/mudrd8mz/moodle 2012-05-17 14:55:21 +12:00
Sam Hemelryk b945325339 Merge branch 'MDL-31850-master' of https://github.com/mackensen/moodle 2012-05-17 14:49:03 +12:00
Jerome Mouneyrac d6ebe011b6 Fix codecheck/moodlechecker errors 2012-05-17 10:35:05 +08:00
Jerome Mouneyrac d7238d0839 MDL-32941 change category name limit from 30 to 255 2012-05-17 10:35:02 +08:00
Fábio Souto f2229c6895 MDL-32941 Implement core_course_update_categories, add webform and unittests
Conflicts:

	admin/webservice/testclient_forms.php
	course/externallib.php
	lib/db/services.php
2012-05-17 10:34:59 +08:00
Jerome Mouneyrac 6c6ec1d6b7 MDL-32941 use + operator instead array merge to avoid duplicate. Sort resulting array for better display to the client and for entring in the excluding algo. Exception reformatting. Minor formatting fixes. 2012-05-17 10:34:57 +08:00
Eloy Lafuente (stronk7) 20854c75f1 MDL-32941 external: core_course_get_categories() fixing.
This includes:

- Multiple coding violations.
- Better detection of criteria, avoiding troublemaker 0 != ''
- Minor formatting.
- Ordering by path always to cause excludes to work ok.
2012-05-17 10:34:14 +08:00
jleyva d4a17894ef MDL-32941 Some changes to the core_course_get_categories functions. Adding key parameters 2012-05-17 10:34:12 +08:00
Jerome Mouneyrac dd5e31f3cb MDL-32941 parameters moved on top level, little performance improvement, filter and format the description, browse all sub categories level and adjust checks 2012-05-17 10:34:09 +08:00
Fábio Souto d4a246bc3b MDL-32941 Add implementation for core_course_get_categories() 2012-05-17 10:34:06 +08:00
Fábio Souto 2f951d866a MDL-32941 Added service definition and implementation for core_course_delete_categories()
Included is a bug correction to categories_delete_move() which does not
respect showfeedback parameter, printing feedback even when not wanted
(this breaks the webservice output)

Conflicts:

	admin/webservice/testclient_forms.php
	lib/db/services.php
2012-05-17 10:34:03 +08:00
Fábio Souto be05180890 MDL-32941 complete unit tests and webform 2012-05-17 10:33:56 +08:00
Jerome Mouneyrac 95693c43aa MDL-32941 improve create_categories() web service function (wip) 2012-05-17 10:33:53 +08:00
Fábio Souto 479a5db197 MDL-32941 Create service definition and implementation for
core_course_create_categories()
2012-05-17 10:33:51 +08:00
Sam Hemelryk 72f1957393 Merge branch 'MDL-32903' of git://github.com/netspotau/moodle-mod_assign 2012-05-17 14:24:40 +12:00
Eloy Lafuente (stronk7) 71cbb2516b MDL-24419 (6): Backup and restore fixes and improvements
- annotate used grouping
- reorganize restore methods
- roll availability dates
- observe $CFG->enableavailability
- observe $CFG->enablegroupmembersonly
- TODO: 2 TODOs
2012-05-17 03:58:51 +02:00
Damyon Wiese d37ec15ca1 MDL-32903: Remove unused variable $tempsettings from mod_assign
This was left over from when I removed all the pass by reference calls.
2012-05-17 08:30:54 +08:00
Sam Hemelryk 1220843c02 Merge branch 'MDL-32610-hide-updates' of git://github.com/mudrd8mz/moodle 2012-05-17 12:30:44 +12:00
Sam Hemelryk bcc52e748a Merge branch 'master_MDL-32794' of git://github.com/danmarsden/moodle 2012-05-17 12:27:50 +12:00
Sam Hemelryk 536e3203e7 Merge branch 'MDL-32904' of git://github.com/netspotau/moodle-mod_assign 2012-05-17 11:54:07 +12:00
Sam Hemelryk 333127136a Merge branch 'MDL-23016c' of git://github.com/srynot4sale/moodle 2012-05-17 11:53:08 +12:00
Sam Hemelryk a0a06d05fa MDL-22504 course-dndupload: Fixed up a couple of minor bugs 2012-05-17 11:29:38 +12:00
Sam Hemelryk 7b06151288 Merge branch 'MDL-22504_drag_and_drop_upload_final' of https://github.com/davosmith/moodle
Conflicts:
	course/lib.php
	theme/base/style/course.css
2012-05-17 10:55:35 +12:00
Eloy Lafuente (stronk7) 94dc3c7d1e MDL-24419 (5): Coding style cleanup 2012-05-17 00:51:50 +02:00
Sam Hemelryk fbb4c959b5 MDL-32881 Prevent course/view.php from being cached
This should prevent browser caching which will ensure that changes made
using the course javascript (e.g. drag/drop, show/hide) will not be 'lost'
by using the browser back button.

This reverts commit 3aaa184399.
2012-05-17 10:12:29 +12:00
Eloy Lafuente (stronk7) dd420abadf Merge branch 'MDL-24419-master' of git://github.com/sammarshallou/moodle
Conflicts:
	lib/db/upgrade.php
	lib/phpunit/lib.php
	version.php

Fixed:
    lib/db/upgrade.php - duplicate course->sectioncache add code
    lib/db/install.xml - cleanup needed because xmldb editor was not used
    lib/phpunit/classes/util.php - cleanup $GROUPLIB_CACHE on test reset
2012-05-16 23:53:47 +02:00
Eloy Lafuente (stronk7) 0c408f5a3d NOBUG: Minibump to get latest WS installed 2012-05-16 16:28:59 +02:00
Eloy Lafuente (stronk7) ea01d3c601 Merge branch 'MDL-32233-core_course_duplicate_course-usersdata' of git://github.com/jleyva/moodle 2012-05-16 16:23:00 +02:00
Juan Leyva d7f465d497 MDL-32233 core_course_duplicate_course: Forcing backup and restore in MODE_SAMESITE always as suggested by Eloy. 2012-05-16 16:10:47 +02:00
Andrew Robert Nicols eb7b030a8b MDL-33040 Validate dates correctly on log page 2012-05-16 13:52:11 +01:00
Juho Viitasalo e566bfa1ae MDL-31850 wiki: extra whitespace removed from form 2012-05-16 03:43:17 -07:00
Juan Leyva 6c7d3e3100 MDL-32233 core_course_duplicate_course: Fixed integrator review details described here http://tracker.moodle.org/browse/MDL-32233?focusedCommentId=157707&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-157707 2012-05-16 12:10:09 +02:00
Andrew Robert Nicols c9cbb5a9bf MDL-33025 Ensure that hitting cancel clears the resource title editor 2012-05-16 10:56:45 +01:00
Andrew Robert Nicols e0319e7be7 MDL-33025 Ensure that popups aren't triggered when editing resource titles 2012-05-16 10:46:09 +01:00
Eloy Lafuente (stronk7) 6b4769bc8b Merge branch 'MDL-32662-core_course_groups_xxx_groupings' of git://github.com/jleyva/moodle 2012-05-16 11:41:48 +02:00
Juan Leyva 2c8ad38eff MDL-32662 core_group_xxx_groupings: Fixed integrator review potential problem detected in update_groupings. More info: http://tracker.moodle.org/browse/MDL-32662?focusedCommentId=157706&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-157706 2012-05-16 10:45:40 +02:00
Aparup Banerjee 485e67982c Merge branch 'MDL-32633' of git://github.com/timhunt/moodle 2012-05-16 15:59:07 +08:00
Davo Smith 33b24bdd99 MDL-22504 Course drag and drop upload - moved file locations 2012-05-16 08:25:22 +01:00
Aparup Banerjee 9e66e96049 Merge branch 'MDL-31657' of git://github.com/scriby/moodle 2012-05-16 14:32:51 +08:00
Aparup Banerjee 7585ac89bd Merge branch 'MDL-32988-master' of git://github.com/sammarshallou/moodle 2012-05-16 14:03:56 +08:00
Aparup Banerjee ca91bdcdf7 MDL-32921 lti : reused a moodle_url. 2012-05-16 13:49:32 +08:00
Aparup Banerjee 184287f0ce Merge branch 'MDL-32921' of git://github.com/scriby/moodle 2012-05-16 13:48:42 +08:00
Jerome Mouneyrac 3a68419430 MDL-33028 display debuginfo when server die at developer mode 2012-05-16 12:04:13 +08:00
Aparup Banerjee e7ebfb8058 Merge branch 'MDL-32005-master-10' of git://git.luns.net.uk/moodle
- fixed up comments (was phpdoc blocks)
2012-05-16 10:39:48 +08:00
Sam Hemelryk 19d1525f6b Merge branch 'MDL-32641-master-1' of git://git.luns.net.uk/moodle 2012-05-16 13:14:59 +12:00
Sam Hemelryk ba94f1d503 Merge branch 'MDL-32889-master' of https://github.com/mackensen/moodle 2012-05-16 13:09:32 +12:00
AMOS bot bbbb140065 Automatically generated installer lang files 2012-05-16 00:31:32 +00:00
Aaron Barnes 1d09e12936 MDL-32016 unit tests: Remove hard coded file hash and calculate dynamically 2012-05-16 11:55:39 +12:00
Sam Hemelryk a5bf3c520f Merge branch 'MDL-31215-master-11' of git://git.luns.net.uk/moodle
Conflicts:
	course/lib.php
2012-05-16 09:59:45 +12:00
Sam Hemelryk fdbd219b33 Merge branch 'MDL-30434_debug_exception' of git://github.com/andyjdavis/moodle 2012-05-16 09:51:48 +12:00
Henning Bostelmann 7fd5786e6f MDL-28557 Calendar filters: show all group events in course to teacher 2012-05-15 22:21:43 +01:00
Sam Hemelryk 3cb5b9ccf6 Merge branch 'MDL-31458' of git://github.com/danpoltawski/moodle 2012-05-16 09:12:17 +12:00
Tim Hunt 5ef18d8250 MDL-33020 qtype unit tests: improve failure messages. 2012-05-15 17:55:29 +01:00
David Mudrak cb1c329186 MDL-32337 admin notifications page checks for the recent updates fetch timestamp
Now the message 'Your Moodle code is up-to-date!' is displayed only if
the fetch was done within the last hour. Otherwise, just the button
'Check for available updates' is displayed.
2012-05-15 16:59:45 +02:00
Tim Hunt 4267fc5272 MDL-32727 quiz upgrade: sort out potential unique key violations
... before trying to create the unique index that should be there.
The violations may come from old buggy code.

We do two things.
1. First we delete all previews.
2. Then, if there are still problems, we renumber attempts to eliminate
the duplicates.
2012-05-15 15:23:53 +01:00
Petr Skoda 13f18ae197 MDL-33016 eliminate unnecessary DB query on /index.php 2012-05-15 15:40:22 +02:00
Petr Skoda 1d4d115ae1 MDL-32868 document PHPUNIT_LONGTEST in phpunit.xml.dist 2012-05-15 15:35:48 +02:00
Wiktor Wandachowicz 5bd2824a79 MDL-32204 MNet: set auth method to mnet for users enrolled remotely 2012-05-15 15:33:53 +02:00
David Mudrak fef693c858 MDL-32610 cron based fetch of available updates can be disabled from config.php 2012-05-15 14:32:55 +02:00
David Mudrak 4db58f5fc7 MDL-32610 available updates info at the admin Notifications page can be hidden 2012-05-15 14:30:47 +02:00
David Mudrak fa1d403f2e MDL-32610 available updates info at the Plugins check upgrade page can be hidden 2012-05-15 14:23:48 +02:00
David Mudrak 7716057f7d MDL-32610 available updates info at the Plugins overview admin page can be hidden 2012-05-15 13:43:08 +02:00
Eloy Lafuente (stronk7) 3e632cf4e6 Merge branch 'MDL-32998' of git://github.com/mouneyrac/moodle 2012-05-15 13:14:13 +02:00
Eloy Lafuente (stronk7) 5b0800d30e MDL-32949 ws: minor comments cleanup 2012-05-15 13:10:50 +02:00
sam marshall a7d09b7008 MDL-32988 Lib: Course delete does availability/completion in wrong order
When deleting modules that failed to delete using normal method, it deleted
the course-modules table first and then the availability/completion,
which depend on the entries in course-modules table. This commit switches
the order.
2012-05-15 12:02:00 +01:00
Eloy Lafuente (stronk7) 4617939723 Merge branch 'MDL-32949' of git://github.com/mouneyrac/moodle 2012-05-15 12:59:18 +02:00
Jerome Mouneyrac 50f9449faa MDL-32998 add warnings structure 2012-05-15 18:40:06 +08:00
Jerome Mouneyrac 506df9acbf MDL-32949 return exception errorcode from the REST/SOAP/XMLRPC servers 2012-05-15 18:23:43 +08:00
David Mudrak 4fb3a06821 MDL-32610 site administration > server > update notifications section can be hidden 2012-05-15 11:39:04 +02:00
David Mudrak 5aab24ef17 MDL-32610 config-dist.php has info about $CFG->disableupdatenotifications flag 2012-05-15 11:37:59 +02:00
Aparup Banerjee 154128a50f Merge branch 'wip-mdl-32770' of git://github.com/rajeshtaneja/moodle 2012-05-15 16:41:54 +08:00
Andrew Robert Nicols 74b714df7e MDL-32005 Add idnumber field to groups and groupings 2012-05-15 09:38:51 +01:00
Dan Poltawski 61bb4184a7 Merge branch 'w20_MDL-25197_m23_innodb' of git://github.com/skodak/moodle 2012-05-15 15:41:46 +08:00
Dan Poltawski b60b839d31 Merge branch 'MDL-32869_master' of git://github.com/kordan/moodle 2012-05-15 15:32:03 +08:00
Dan Poltawski 0a6202232c Merge branch 'MDL-32321_master' of git://github.com/kordan/moodle 2012-05-15 15:30:28 +08:00
Dan Poltawski 1e1931a797 Merge branch 'MDL-32978-master-integration' of git://github.com/FMCorz/moodle 2012-05-15 14:43:31 +08:00
Yang 03d38b9207 MDL-32998 add warnings structure 2012-05-15 13:40:58 +08:00
Damyon Wiese bf78ebd650 MDL-32932: Add quickgrading support to mod_assign 2012-05-15 13:33:59 +08:00
Damyon Wiese a769a00157 MDL-32933: Add outcomes to mod_assign and upgrade tool 2012-05-15 12:27:27 +08:00
Aparup Banerjee c459e91789 Merge branch 'MDL-25695-master' of https://github.com/mackensen/moodle 2012-05-15 11:03:07 +08:00
AMOS bot fecd0c95ab Automatically generated installer lang files 2012-05-15 00:31:35 +00:00
Dan Marsden 0ae299769c MDL-32794 SCORM prevent items in tree that have no navigation from triggering a navigation change. 2012-05-15 09:36:35 +12:00
Yang Yang e891c68aa9 Merge branch 'master' of https://github.com/moodle/moodle 2012-05-15 09:16:56 +12:00
Tim Hunt 18056cd8dd MDL-32087 question preview: add a help icon to the technical info. 2012-05-14 19:26:06 +01:00
Tim Hunt 05a7d15511 MDL-32087 question preview: update the code to use html_writer. 2012-05-14 19:26:05 +01:00
Tim Hunt a2b4d8968c MDL-32087 question preview: add a Save button.
Without this, there are some interactions with the question that could
only be tested by adding the question to a quiz, which was a pain.
2012-05-14 19:26:04 +01:00
Tim Hunt 802f8d2af4 MDL-32087 question preview: make more technical info available.
... but hide it in a collapsible region.
2012-05-14 19:26:04 +01:00
Tim Hunt fc6b4c1b4d MDL-31393 qtype_essay upgrade: save old question_answers.feebdack 2012-05-14 16:34:24 +01:00
Eric Merrill 192a8e13c3 MDL-32985 cron: don't execute notify_login_failures unnecessarily 2012-05-14 11:21:14 -04:00
Andrew Robert Nicols 7a9a07d24a MDL-31215 Add the ability to change activity titles using AJAX calls 2012-05-14 14:22:02 +01:00
Dan Poltawski 7a76aad7b7 Merge branch 'MDL-32930' of git://github.com/tmuras/moodle 2012-05-14 20:57:14 +08:00
Dan Poltawski 095de3cee6 Merge branch 'MDL-32863' of git://github.com/jonof/moodle 2012-05-14 20:49:05 +08:00
Dan Poltawski eca95b639d Merge branch 'MDL-32375' of git://github.com/timhunt/moodle 2012-05-14 20:42:12 +08:00
sam marshall ce4dfd2703 MDL-24419 (4): Add conditional availability support to sections; section cache
Credit: original version done by Kirill Astashov of NetSpot (netspot.com.au),
finished and tweaked by sam.

This change adds conditional availability support for sections analagous to
that already available for activities. (Backend, UI, backup/restore.)

In order that this feature does not reduce performance, section cacheing has
also been added using a new course 'sectioncache' field analagous to modinfo.

The new feature integrates with activity availability so that activities
inside sections which are not available are automatically not available
themselves (meaning it works to restrict access).
2012-05-14 11:19:25 +01:00
sam marshall 637da99edb MDL-24419 (3): Add new parameter to format_float for shorter display 2012-05-14 11:15:16 +01:00
sam marshall ae3fbf7b06 MDL-24419 (2): Moved groupings cache to get_all_groupings function
There was a static cache inside course/lib.php. I need to access this
information in other places, so to avoid making two queries, I am
moving the cache into the groups_get_all_groupings function instead.
2012-05-14 11:15:15 +01:00
sam marshall 1cf121e1d2 MDL-24419 (1): Core restore steps should have after_restore function
At present core restore steps cannot have an after_restore function,
even though plugin restore steps can. Technically it would be possible
to just override the launch_after_restore_methods function but this
is not very neat. Instead, I added code to call after_restore function
(exactly the same way after_execute works).
2012-05-14 11:15:14 +01:00
sam marshall cfa722c9c1 MDL-32535 Completion lang string incorrect use, text 2012-05-14 11:13:54 +01:00
Dan Poltawski bdd773d565 Merge branch 'MDL-30291' of git://github.com/rwijaya/moodle 2012-05-14 18:08:30 +08:00
Dan Poltawski 36e686a07e MDL-32923 phpunit: make copy/paste easier 2012-05-14 17:38:58 +08:00
Davo Smith 5103b5e667 MDL-22504 Course drag and drop upload - now correctly ignores disabled modules and allows upload to orphaned sections 2012-05-14 09:48:04 +01:00
Dan Poltawski 225097f75a Merge branch 'MDL-31719_master' of git://github.com/lazydaisy/moodle 2012-05-14 15:53:19 +08:00
Dan Poltawski 7e86180956 MDL-32923 phpunit: be a bit more verbose about re-run cmmand 2012-05-14 15:48:26 +08:00
Dan Poltawski a5fefe0bbd Merge branch 'w20_MDL-32923_m23_phpunithint' of git://github.com/skodak/moodle 2012-05-14 15:46:23 +08:00
Dan Poltawski cf037ba049 Merge branch 'w20_MDL-26901_m23_tinymceoptions' of git://github.com/skodak/moodle 2012-05-14 14:44:04 +08:00
Dan Poltawski bf9b08dd5e Merge branch 'wip-mdl-31941' of git://github.com/rajeshtaneja/moodle 2012-05-14 14:26:29 +08:00
Dan Poltawski ec3f19bddb Merge branch 'MDL-31951' of git://github.com/rwijaya/moodle 2012-05-14 14:23:41 +08:00
Dan Poltawski 8715472b1d Merge branch 'MDL-32742-master-1' of git://git.luns.net.uk/moodle 2012-05-14 14:21:57 +08:00
Dan Poltawski 1af542ed67 Merge branch 'MDL-31804_ambiguous_sql' of git://github.com/andyjdavis/moodle 2012-05-14 14:20:05 +08:00
Dan Poltawski a225149c9a Merge branch 'MDL-24401' of git://github.com/rwijaya/moodle 2012-05-14 14:12:30 +08:00
Dan Poltawski b728070f5d Merge branch 'MDL-32902' of git://github.com/netspotau/moodle-mod_assign 2012-05-14 14:08:27 +08:00
Dan Poltawski 77acdb26f2 Merge branch 'w20_MDL-32915_m23_chatdiv' of git://github.com/skodak/moodle 2012-05-14 14:06:37 +08:00
Dan Poltawski 783669b96b Merge branch 'wip-MDL-32872-m23' of git://github.com/samhemelryk/moodle 2012-05-14 14:00:51 +08:00
Dan Poltawski 3359a6fe07 Merge branch 'w20_MDL-32926_m23_phpunitevil' of git://github.com/skodak/moodle 2012-05-14 13:36:11 +08:00
Dan Poltawski ae745307ef Merge branch 'w20_MDL-32960_m23_phpunitref' of git://github.com/skodak/moodle 2012-05-14 13:32:18 +08:00
Frederic Massart 6189c7b4d3 MDL-32978 Gradebook: Fix strict standards notices 2012-05-14 13:27:06 +08:00
Dan Poltawski a271c57af8 Merge branch 'wip-MDL-32611-m23' of git://github.com/samhemelryk/moodle 2012-05-14 13:12:53 +08:00
Dan Poltawski 950632673b Merge branch 'MDL-32875-master-1' of git://git.luns.net.uk/moodle 2012-05-14 13:08:40 +08:00
Damyon Wiese 5b12114476 MDL-32895: Improvements to assignment upgrade tool for large numbers of assignments.
* Form to control the perpage variable for the upgradable assignments table.
    * Set timeout and increase memory limit for batch upgrades
    * Output/renderer pages to the upgrade progress is progressively displayed
    * Cleanup of relative includes in assignmentupgrade tool
    * More verbose errors reported for failed upgrades
2012-05-14 12:53:21 +08:00
Jonathon Fowler ef8c793d74 MDL-31804 duplicated columns cause Oracle error in grader report 2012-05-14 11:00:29 +07:00
Damyon Wiese 3b6bbd767b MDL-32902: Remove 70% width stylesheet rule for tables on the mod_assign submission screen. 2012-05-14 11:39:42 +08:00
Sam Hemelryk dfb597b447 Merge branch 'MDL-31134-master' of git://github.com/ankitagarwal/moodle 2012-05-14 15:36:55 +12:00
Damyon Wiese 12945803b8 MDL-32904: Fix incorrect call to update_record (not causing an error) 2012-05-14 11:34:08 +08:00
Damyon Wiese b11808c7d6 MDL-32909: assign_user_get_grades does not need to lookup context and was doing it wrong
cmidnumber is not the same as coursemodule->id
2012-05-14 11:29:43 +08:00
Damyon Wiese c45261df97 MDL-32933: Add outcomes to mod_assign and upgrade tool 2012-05-14 11:23:40 +08:00
Jonathon Fowler 0eefca3b66 MDL-32863 question: fix for Oracle ambiguous column error 2012-05-14 12:52:58 +10:00
Sam Hemelryk 86558590a4 Merge branch 'MDL-31944' of git://github.com/ankitagarwal/moodle 2012-05-14 14:52:10 +12:00
Dan Poltawski bb30328fe1 Merge branch 'w20_MDL-26553_m23_sqlsrvconfig' of git://github.com/skodak/moodle 2012-05-14 10:49:52 +08:00
Sam Hemelryk edd25271c4 Merge branch 'MDL-30305-master-1' of git://git.luns.net.uk/moodle 2012-05-14 14:48:31 +12:00
Dan Poltawski e87a7c65f1 Merge branch 'MDL-32714-rubric' of git://github.com/mudrd8mz/moodle 2012-05-14 10:41:46 +08:00
Sam Hemelryk f98a3833b9 Merge branch 'w20_MDL-32659_m23_navcourses' of git://github.com/skodak/moodle 2012-05-14 14:37:51 +12:00
Dan Poltawski 41ea0d3cc2 Merge branch 'MDL-31902-master' of git://github.com/ankitagarwal/moodle 2012-05-14 10:28:05 +08:00
Rossiani Wijaya 1dedecf260 MDL-30291 outputrenderers: fixed typo for 2012-05-14 10:25:05 +08:00
Dan Poltawski 85c85b8102 Merge branch 'MDL-27322_export' of git://github.com/andyjdavis/moodle 2012-05-14 10:22:21 +08:00
Dan Poltawski 2edce32ad4 Merge branch 'MDL-32910' of git://github.com/timhunt/moodle 2012-05-14 10:10:03 +08:00
Sam Hemelryk 04d7103804 Merge branch 'MDL-32340-master-2' of git://git.luns.net.uk/moodle 2012-05-14 14:04:21 +12:00
Sam Hemelryk 924c34df8c MDL-32873 course: Fixed up unused global + phpdocs 2012-05-14 13:41:15 +12:00
Sam Hemelryk 1c0441bd6a Merge branch 'MDL-32873-master-1' of git://git.luns.net.uk/moodle
Conflicts:
	course/lib.php
2012-05-14 13:39:55 +12:00
Sam Hemelryk 8ec7c2cfd9 Merge branch 'MDL-32881-master-2' of git://git.luns.net.uk/moodle 2012-05-14 13:30:16 +12:00
Sam Hemelryk c96e613c66 Merge branch 'wip-MDL-32126-master' of git://github.com/abgreeve/moodle 2012-05-14 13:20:07 +12:00
Adrian Greeve 0ba303e85f MDL-32126 - data - Fix of an error when sorting by other criteria. 2012-05-14 07:27:01 +08:00
Sam Hemelryk fe579c15b7 MDL-32611 editcategory: Fixed up navigation error. 2012-05-14 09:16:43 +12:00
Sam Hemelryk 6669b8e91e MDL-32872 tool_roles: Fixed up navigation on user roles page 2012-05-14 08:54:50 +12:00
Mary Evans b87ac3867e MDL-31719 lang/en/admin.php: changed text in $string['configallowthemechangeonurl'] to make less ambiguous 2012-05-13 14:40:30 +01:00
Petr Skoda 246c8d497c MDL-26553 add sqlsrv to list of available db types in config-dist.php 2012-05-13 14:28:25 +02:00
Petr Skoda c1592e514f MDL-25197 add existing InnoDB engine detection in conversion tool 2012-05-13 13:54:35 +02:00
Petr Skoda 99a5cd78ec MDL-29054 add sqlsrv to list dbtransfer targets, remove unfinished sqlite support 2012-05-13 12:28:19 +02:00
Petr Skoda 0739e690ee MDL-32967 add diagnostic strings for missing Microsoft drivers for SQL Server 2012-05-13 12:21:04 +02:00
Petr Skoda 7edfd54fcf MDL-32915 fix bogus open div in basic chat ui 2012-05-13 10:24:43 +02:00
Petr Skoda ed7259d112 MDL-32923 on failure print hint how to execute the failed test case 2012-05-13 09:56:57 +02:00
Petr Skoda b136a25b16 MDL-32961 try to use native grep when searching for DONOT...COMMIT tags 2012-05-12 23:05:42 +02:00
Petr Skoda d59ef9c5ab MDL-32926 exorcise setUser(2) evil from phpunit 2012-05-12 21:42:07 +02:00
Petr Skoda 08ad325702 MDL-32960 put phpunit integration tests to one test suite and execute them first 2012-05-12 21:33:23 +02:00
Petr Skoda 7e7cfe7a03 MDL-32960 refactor phpunit integration to one class per file structure 2012-05-12 20:53:48 +02:00
Petr Skoda db990d3a47 MDL-32830 add new hidden yuidebug setting for module backtraces 2012-05-12 17:06:45 +02:00
Petr Skoda ed63f7f883 MDL-32907 prevent sql_like() backslash quoting problems in PostgreSQL 2012-05-12 16:40:11 +02:00
Petr Skoda 64b0f3ab68 MDL-32868 fix iplookup inconsistencies and add missing unit tests
Please note you need to define PHPUNIT_LONGTEST in config.php or phpunit.xml to get the tests to execute because it takes long time to fetch the geoip data and we do not want to DDOS geoPlugin server.
2012-05-12 14:25:01 +02:00
Petr Skoda fca2d3d754 MDL-32659 potential navigation course loading improvements
The idea is to not use inequalities in SQL queries for loading of courses in navigation because ti seems some SQL query optimiser have problems with that.
2012-05-12 13:20:11 +02:00
David Mudrak d20bffa2fd MDL-32714 workshop: fixed SQL to load assessment form fields
Obvious problems emerged once there were some records in the
workshopform_rubric table with no workshopform_rubric_levels. As l.id
(empty in that case) was used as the key of the returned array, they all
were collapsed into a single one.
2012-05-12 10:27:34 +02:00
Mary Evans 96e0e914ce MDL-32879 changes default region from side-post to side-pre for most CORE themes (Afterburner,Anomally, Arialist, Base, Boxxie, Canvas, Formal White, Formfactor, Leatherbound, Magazine,Splash and Standard Old) 2012-05-12 02:09:31 +01:00
Petr Skoda 1fea5537d4 MDL-26901 add new option to specify list of available fonts in TinyMCE
Also modified the list of languages appearance, textarea is more suitable for entry of long texts. It is now also possible to specify empty list of languages and fonts which removes the button from the editor toolbar. Includes release name fix.
2012-05-11 22:12:32 +02:00
Tim Hunt 62a3bfb37e MDL-32633 quiz editing: recreate grade item when max changed from 0 2012-05-11 20:23:37 +01:00
Tim Hunt 6cdef715df MDL-32375 question unit tests: fix breakage from phpunit coversion.
Three things:

1. Fixes to select expectation.

2. Fixes to match walkthrough tests (No idea how these managed to pass
under Simpletest!)

3. Fix expected values for multianswer upgrade tests.
2012-05-11 14:59:58 +01:00
Eloy Lafuente (stronk7) 71d7bc34a8 weekly release 2.3dev 2012-05-11 12:18:06 +02:00
Eloy Lafuente (stronk7) 28f7bbb0c8 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-11 12:10:16 +02:00
Dan Poltawski 93f11331e4 MDL-31458 forum: email subjects containing ampersand are sent as &amp; 2012-05-11 15:25:26 +08:00
Tomasz Muras 04bfa67c41 MDL-32930 Add escaping for '_' character 2012-05-11 08:56:01 +02:00
Andrew Davis fb71453ddc MDL-30434 core: modified get_exception_info() to provide more debug information 2012-05-11 12:40:46 +07:00
Aparup Banerjee 429f2bd096 MDL-32707 Moved fix to make youtube videos use transparent wmode setting into medialib.php
(this should have gone in with the previous merge. oops)
2012-05-11 12:57:55 +08:00
Aparup Banerjee ddd492ad7f Merge branch 'MDL-32707-master-1' of git://git.luns.net.uk/moodle
fix moved into medialib.php

Conflicts:
	filter/mediaplugin/filter.php
2012-05-11 12:40:38 +08:00
Frederic Massart 50a8374ef8 MDL-30649 Glossary : Fixed floating element breaking HTML 2012-05-11 10:53:22 +08:00
Ankit Agarwal 3afe75a79c MDL-31902 general: Removing deprecated functions 2012-05-11 10:30:40 +08:00
Rajesh Taneja 5d8215ccf4 MDL-31941 chat: removed chat_get_participants, deprecated function 2012-05-11 09:21:04 +08:00
Eloy Lafuente (stronk7) 6265a43af7 Merge branch 'MDL-32924' of git://github.com/timhunt/moodle 2012-05-11 03:13:00 +02:00
Tomasz Muras c92e462b04 MDL-32930 Improve the performance of get_tables 2012-05-10 23:35:18 +02:00
Chris Scribner bc2a92aeda MDL-32921: Fixing an issue with adding LTI tool providers from the admin UI 2012-05-10 12:07:13 -04:00
Tim Hunt 667c090728 MDL-32924 improve unit test performance. 2012-05-10 16:22:09 +01:00
Andrew Robert Nicols d083084a23 MDL-32340 Improve performance of calendar selection 2012-05-10 16:05:37 +01:00
Chris Scribner 66c1441213 MDL-31657: Remove some unused LTI localization strings 2012-05-10 09:43:23 -04:00
Andrew Robert Nicols b286fcdfdc MDL-30305 Automatically hide the dateselector after choosing a date 2012-05-10 14:11:19 +01:00
Andrew Robert Nicols 96c8f933fd MDL-32641 Ensure that the form change protector does not kick in when adding/editing feedback questions 2012-05-10 12:15:24 +01:00
Andrew Robert Nicols 3aaa184399 MDL-32881 Prevent course/view.php from being cached
This should prevent browser caching which will ensure that changes made
using the course javascript (e.g. drag/drop, show/hide) will not be 'lost'
by using the browser back button.
2012-05-10 11:38:42 +01:00
Tim Hunt 1921d47b0a MDL-32910 MDL-32569 broke unit tests in third-party qtypes 2012-05-10 11:16:06 +01:00
Juan Leyva 67aa60f9b7 MDL-32662 Fixed review problems 2012-05-10 11:41:46 +02:00
Juan Leyva 7ce235909a MDL-32662 Added new groupings methods to services file 2012-05-10 11:41:03 +02:00
Juan Leyva fb3f5d3173 MDL-32662 Added unassign_grouping method 2012-05-10 11:40:57 +02:00
Juan Leyva 20053b8c3d MDL-32662 Added assign_grouping method 2012-05-10 11:40:51 +02:00
Juan Leyva a531136e98 MDL-32662 Added delete_groupings method 2012-05-10 11:40:46 +02:00
Juan Leyva 85e42d2218 MDL-32662 Added get_course_groupings method 2012-05-10 11:40:40 +02:00
Juan Leyva ed849fbace MDL-32662 Added get_groupings method 2012-05-10 11:40:35 +02:00
Juan Leyva 87e959f33b MDL-32662 Added update_groupings method 2012-05-10 11:40:29 +02:00
Juan Leyva 882bac854f MDL-32662 Added method create_groupings 2012-05-10 11:40:23 +02:00
Aparup Banerjee 1c7eb3df38 Merge branch 'MDL-31133-master' of git://github.com/ankitagarwal/moodle 2012-05-10 16:54:35 +08:00
Dan Poltawski 702cb399b2 Merge branch 'MDL-28134_branch' of git://github.com/nebgor/moodle 2012-05-10 16:51:12 +08:00
Andrew Robert Nicols 314eae407f MDL-32873 Separate out course ajax enabled detection into new function 2012-05-10 09:34:27 +01:00
Andrew Robert Nicols d4365c0364 MDL-32837 Add style to allow for js elements to be shown only if js is enabled 2012-05-10 09:34:18 +01:00
Rajesh Taneja 36be7e1453 MDL-32770 course: fixed section title and footer 2012-05-10 16:23:17 +08:00
Juan Leyva 9aa84e9168 MDL-32233 Added usersdata support in WS method core_course_duplicate_course 2012-05-10 09:57:09 +02:00
Aparup Banerjee ad394588db MDL-28134 General : fixed CFG->branch notice during web/cli installation 2012-05-10 15:43:52 +08:00
Juan Leyva 3dc1d76e06 MDL-32233 Added WS method core_course_duplicate_course 2012-05-10 09:38:04 +02:00
Ankit Agarwal 99c4dcd3e2 MDL-31944 feedback: remove deprecated function feedback_get_participants() 2012-05-10 15:16:47 +08:00
Dan Poltawski b84eb3cf20 Merge branch 'MDL-32901' of git://github.com/netspotau/moodle-mod_assign 2012-05-10 14:24:20 +08:00
Damyon Wiese 755bfecae9 MDL-32901: Default feedback plugin for gradebook was using incorrect component name
This fix allows this setting to be set to the default correctly and prevents it showing on the
front page settings screen for a new install.
2012-05-10 14:16:18 +08:00
Damyon Wiese d82bb44d74 MDL-32899: Assignment upgrade tool fails to upgrade some online text submissions
This is a fix for onlinetext assignments with submissions that have feedback but no
actual submission (data1 and data2 are NULL)
2012-05-10 14:00:23 +08:00
Dan Poltawski 3388649065 Merge branch 'MDL-28134_branch' of git://github.com/nebgor/moodle 2012-05-10 13:44:03 +08:00
Sam Hemelryk c56d266a58 MDL-31763 mod_data: Fixed array iteration reference issue 2012-05-10 17:31:42 +12:00
Rossiani Wijaya 50eac7e07c MDL-31300 formslib: Removed deprecated set_upload_manager() function 2012-05-10 11:13:17 +08:00
Aparup Banerjee 83c9d449e0 MDL-29624 Media embedding system : phpdoc tweaks. 2012-05-10 10:52:41 +08:00
Aparup Banerjee e1e3fa217f Merge branch 'MDL-29624-master' of git://github.com/sammarshallou/moodle 2012-05-10 10:52:32 +08:00
Rossiani Wijaya 6176184bcc MDL-31951 Lesson module: Removed deprecated lesson_get_participants() function 2012-05-10 10:51:05 +08:00
Ankit Agarwal e2ec154ec1 MDL-31134 calendar: Deleting deprecated function calendar_get_link_tag() 2012-05-10 10:48:25 +08:00
Sam Hemelryk 5ba2e3150f Merge branch 'wip-MDL-31763-master' of git://github.com/abgreeve/moodle 2012-05-10 14:11:24 +12:00
Adrian Greeve 541685ec20 MDL-31763 - data - users can only override their own presets unless they have manage presets permission. 2012-05-10 10:04:30 +08:00
Sam Hemelryk 3c611a360e Merge branch 'MDL-32780-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-10 14:04:14 +12:00
Sam Hemelryk 137467f5b4 Merge branch 'master_MDL-32507' of git://github.com/danmarsden/moodle 2012-05-10 13:58:12 +12:00
Sam Hemelryk 6bfa88103d Merge branch 'master-MDL-31028_2' of git://github.com/chtombleson/moodle 2012-05-10 13:52:31 +12:00
Andrew Davis 78ab98bc5e MDL-27322 grade: added the ability to not have suspended students included in a grade export 2012-05-10 08:34:51 +07:00
AMOS bot c670c3a3f6 Automatically generated installer lang files 2012-05-10 00:31:40 +00:00
Sam Hemelryk 78ed2ec79f Merge branch 'MDL-32857' of git://github.com/danpoltawski/moodle 2012-05-10 12:15:50 +12:00
Sam Hemelryk 60301632b9 Merge branch 'wip-mdl-27562' of git://github.com/rajeshtaneja/moodle 2012-05-10 12:00:54 +12:00
Sam Hemelryk efd412dda9 MDL-30649 Fixed up whitespace 2012-05-10 11:57:59 +12:00
Sam Hemelryk 320b4deb6a Merge branch 'wip-MDL-30649-master' of git://github.com/phalacee/moodle 2012-05-10 11:56:58 +12:00
Charles Fulton 66969d5004 MDL-32889 lib: escape filename in Content-Disposition header 2012-05-09 16:03:33 -04:00
Eloy Lafuente (stronk7) 5c7b68f25a Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-09 19:31:03 +02:00
sam marshall 8b7d95b625 MDL-29624 Media embedding system, part 3: resource module (and URL, lesson)
This change makes the resource module use the new API when it embeds media
files (audio/video/Flash), and removes the resourcelib library functions
which were previously used for this.

The old API is still used for embedding non-media files such as PDFs and
HTML.

The URL and Lesson module both used copy/paste duplicates of a section of
resource module code which called the removed functions. I have changed
these too. As a bonus this significantly reduces the duplication involved.
2012-05-09 18:29:31 +01:00
sam marshall f4e7ba5ea8 MDL-29624 Media embedding system, part 2: preview in file picker
The JavaScript file picker API shows a preview of the media file you have chosen.
This preview facility now uses an iframe, in order not to duplicate the embed code
in JavaScript. The iframe uses the standard embed API.
2012-05-09 18:29:30 +01:00
sam marshall daefd6eb97 MDL-29624 Media embedding system, part 1: new API and filter changes
Includes new API in medialib.php and core_media_renderer in outputrenderers.php.
Enable/disable settings moved from filter to systemwide appearance page.
Filter changed to use new API.

AMOS BEGIN
 MOV [flashanimation,filter_mediaplugin],[flashanimation,core_media]
 MOV [flashanimation_help,filter_mediaplugin],[flashanimation_desc,core_media]
 MOV [flashvideo,filter_mediaplugin],[flashvideo,core_media]
 MOV [flashvideo_help,filter_mediaplugin],[flashvideo_desc,core_media]
 MOV [html5audio,filter_mediaplugin],[html5audio,core_media]
 MOV [html5audio_help,filter_mediaplugin],[html5audio_desc,core_media]
 MOV [html5video,filter_mediaplugin],[html5video,core_media]
 MOV [html5video_help,filter_mediaplugin],[html5video_desc,core_media]
 MOV [mp3audio,filter_mediaplugin],[mp3audio,core_media]
 MOV [mp3audio_help,filter_mediaplugin],[mp3audio_desc,core_media]
 MOV [legacyquicktime,filter_mediaplugin],[legacyquicktime,core_media]
 MOV [legacyquicktime_help,filter_mediaplugin],[legacyquicktime_desc,core_media]
 MOV [legacyreal,filter_mediaplugin],[legacyreal,core_media]
 MOV [legacyreal_help,filter_mediaplugin],[legacyreal_desc,core_media]
 MOV [legacywmp,filter_mediaplugin],[legacywmp,core_media]
 MOV [legacywmp_help,filter_mediaplugin],[legacywmp_desc,core_media]
 MOV [legacyheading,filter_mediaplugin],[legacyheading,core_media]
 MOV [legacyheading_help,filter_mediaplugin],[legacyheading_desc,core_media]
 MOV [sitevimeo,filter_mediaplugin],[sitevimeo,core_media]
 MOV [sitevimeo_help,filter_mediaplugin],[sitevimeo_desc,core_media]
 MOV [siteyoutube,filter_mediaplugin],[siteyoutube,core_media]
 MOV [siteyoutube_help,filter_mediaplugin],[siteyoutube_desc,core_media]
AMOS END
2012-05-09 18:29:29 +01:00
sam marshall ffe4de973b MDL-29624 Media embedding system, part 0: Add get_path() to moodle_url
(It may not seem directly related, but this function is needed for the
media embedding system.
2012-05-09 18:22:12 +01:00
Andrew Robert Nicols 5720019d91 MDL-32873 Separate out course ajax enabled detection into new function 2012-05-09 16:19:01 +01:00
Ruslan Kabalin a7d0e1fdb5 MDL-32742: Remove right div swapping
Swapping div.right is not required, as toolboxes determine section id on each toggle event.
2012-05-09 13:50:03 +01:00
Ruslan Kabalin e7b6e6b9f7 MDL-32875: Fix highlighted section drag-drop issue 2012-05-09 11:25:08 +01:00
Rajesh Taneja 1826cf12de MDL-32866 filemanager: Fixed Page url typo 2012-05-09 17:45:10 +08:00
Kordan bfc241a452 MDL-32869 theme_formal_white: reduced the height or rows in admin filter table 2012-05-09 11:26:15 +02:00
Ankit Agarwal 064f0c8ac3 MDL-31133 calendar: Deleting the deprecated function calendar_get_events() 2012-05-09 14:24:11 +08:00
Rajesh Taneja 04de8f35d1 MDL-27562 formslib: Added unit test for dateselector and datetimeselector 2012-05-09 14:23:46 +08:00
Ankit Agarwal f468956988 MDL-31133 calendar: Replace the deprecated function usage with core_calendar_renderer class 2012-05-09 14:23:27 +08:00
Rossiani Wijaya 272bc0a6ed MDL-24401: fixed string for adding content page 2012-05-09 14:19:49 +08:00
Dan Poltawski 7cb8bfdb5c MDL-32857 course: single topic summary rewriting pluginfile urls 2012-05-09 10:06:40 +08:00
David Mudrak 386b67d100 MDL-31675 File browsing support for the Database module
AMOS BEGIN
 CPY [fields,mod_data],[areacontent,mod_data]
AMOS END
2012-05-09 04:03:34 +02:00
Christopher Tombleson 4447223b38 MDL-31028: Added pathname hashes to eventdata
Also fix strict standard warning
2012-05-09 13:46:20 +12:00
David Mudrak 7978d5dc31 MDL-31675 File browsing support for the Glossary module
AMOS BEGIN
 CPY [attachments,mod_forum],[areaattachment,mod_glossary]
 CPY [definitions,mod_glossary],[areaentry,mod_glossary]
AMOS END
2012-05-09 03:01:46 +02:00
David Mudrak 9a1c075119 MDL-31675 File browsing support for the Forum module
AMOS BEGIN
 CPY [attachments,mod_forum],[areaattachment,mod_forum]
AMOS END
2012-05-09 03:00:16 +02:00
David Mudrak b75ec1040e MDL-32853 Forum: fixed serving files from posts in a visible group
The previous code was copied from the part where emails are being sent.
In that case, we do not want to send copies of posts from other groups.
But in terms of access control, the user has full read access to posts
in any visible group.
2012-05-08 17:04:27 +02:00
Kordan 27912e600b MDL-32321 theme_formal_white: added autolink and adminwarning.maturityinfo.maturity* classes 2012-05-08 10:47:29 +02:00
AMOS bot 4d09f9f2d3 Automatically generated installer lang files 2012-05-08 00:31:40 +00:00
Yang Yang 87d46d187e merge 2012-05-08 09:43:21 +12:00
Dan Marsden 37ca1722cd MDL-32507 SCORM fix some strict standard errors 2012-05-08 09:00:46 +12:00
Rajesh Taneja c106a9bff0 MDL-27562 formslib: applydst should be always true, hence option removed from dateselector and datetimeselector form elements 2012-05-07 15:23:45 +08:00
Rajesh Taneja fa70f63522 MDL-27562 formslib: Timezone option is passed to usergetdate for dateselector and datetimeselector form element 2012-05-07 15:23:44 +08:00
Charles Fulton 280b223d84 MDL-26277 grade import: validate file pointer before reading 2012-05-06 20:14:55 -07:00
Damyon Wiese 5d81b754be MDL-32780: Use Moodle functions for building SQL in assignment upgrade tool
Fixed functions:
tool_assignmentupgrade_load_all_upgradable_assignmentids() and
tool_assignmentupgrade_any_upgradable_assignments()
2012-05-07 10:54:24 +08:00
Tim Hunt ad3b37cf87 MDL-31814 question bank: fix possible error with sort columns. 2012-05-04 17:29:04 +01:00
Davo Smith abed5d655f MDL-22504 Fixed issues raised by Sam Hemelryk 2012-05-04 12:12:52 +01:00
Eloy Lafuente (stronk7) e16e2300c5 weekly release 2.3dev 2012-05-04 13:10:40 +02:00
Eloy Lafuente (stronk7) f8e293008d Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-04 13:06:42 +02:00
Dan Marsden abf0c875bb MDL-31731 gradeing form: Fix module name 2012-05-04 16:20:58 +08:00
Dan Marsden cfc73aa790 MDL-31731 Advanced Grading: Marking Guide - prevent negative scores when marking users 2012-05-04 16:20:50 +08:00
Eloy Lafuente (stronk7) bea7f96c87 Merge branch 'MDL-32754' of git://github.com/netspotau/moodle-mod_assign 2012-05-04 10:01:07 +02:00
Dan Poltawski 9fdbd69e22 MDL-31731 gradeing form: Fix hardcoded module name 2012-05-04 14:02:39 +08:00
Andrew Robert Nicols 0c053c5368 MDL-32508 Add error when trying to access an unknown course section 2012-05-04 13:41:59 +08:00
Sam Hemelryk 3df72f8ce7 MDL-32508 Trivial whitespace cleanup 2012-05-04 17:13:36 +12:00
Damyon Wiese b843e2b747 MDL-32754: Add missing string for assign:addinstance capability
AMOS BEGIN
    CPY [assignment:addinstance,mod_assignment],[assign:addinstance,mod_assign]
AMOS END
2012-05-04 12:05:58 +08:00
Aparup Banerjee fd87d0bf78 MDL-32338 Libraries : made pluginlib.php cron_execute handle the exceptions it faces. 2012-05-04 11:25:42 +08:00
Dan Poltawski 637bc17400 MDL-32508 backup: coursedisplay now included in backup 2012-05-04 11:00:53 +08:00
Aaron Barnes dbfcf440fa MDL-32203 completion: Fix issues with data object where clauses 2012-05-04 14:58:32 +12:00
Andrew Robert Nicols 575826c730 MDL-32508 Close the topic/week ul before showing the add section link 2012-05-04 10:53:06 +08:00
Dan Poltawski cbf449972f MDL-32508 course formats: make renderer methods protected
The renderer isn't a public API yet, its just reducing code duplication
and tidying things up. So not making the methods public for other plugins
to abuse. We hope to solve this properly in 2.4
2012-05-04 10:53:06 +08:00
Dan Poltawski a8f02a3462 MDL-32508 course_formats: change format_renderer_base to format_section_renderer_base
Make it clear that this isn't a golden supported API
2012-05-04 10:53:05 +08:00
Dan Poltawski 2db66a9319 MDL-32505 course_formats: introduce upgrade.txt 2012-05-04 10:53:05 +08:00
Dan Poltawski 96e1285162 MDL-32508 course_format: fix up some minor style issues
Noticed whilst reviewing again
2012-05-04 10:53:05 +08:00
Dan Poltawski 10cdacfecb MDL-32508 Remove debuggign warning about callback_format_get_section_url
It is not the time to deprecate this callback as we may be doing
major changes in 2.4 so removing the warning about it.
2012-05-04 10:53:04 +08:00
Dan Poltawski 2c3d986894 MDL-32505 lib/tests: fix unit test using removed table 2012-05-04 10:53:04 +08:00
Dan Poltawski 3246428b95 MDL-32505/MDL-32508 course: fix section_links block
Now course_display has gone
2012-05-04 10:53:03 +08:00
Dan Poltawski fe221dd583 MDL-32508 navigation: show empty sections 2012-05-04 10:53:03 +08:00
Dan Poltawski 243b7003e3 MDL-32508 course/format: Display general section above title 2012-05-04 10:53:03 +08:00
Dan Poltawski 803e36e105 MDL-32508 course/format: Hide 'format outline' titles
It is now hidden for for accessibility only
2012-05-04 10:53:02 +08:00
Dan Poltawski a830d86673 MDL-32508 course/format: Only display topic number in topic format 2012-05-04 10:53:02 +08:00
Dan Poltawski d628215d49 MDL-32508 course: turn editting on/off stays on current page
Rather than always going to the index page, we can edit on section page
2012-05-04 10:53:01 +08:00
Dan Poltawski 1abf12532d MDL-32508 course: Add basic 'add a section' button at the bottom of the course page
With thanks to LUNS who provided this code from when I did it working
there.
2012-05-04 10:53:01 +08:00
Dan Poltawski 1804b7c1bc MDL-32508 course/formats: Respect single page course display mode
Topics and weeks have been converted to use a shared renderer to output
their content.

Note, I started with good intentions but this renderer has mixed
paradgims due to fast and cheap winning out on the trinity.

AMOS BEGIN
   MOV [currenttopic,access],[currentsection,format_topics]
   MOV [currentweek,access],[currentsection,format_weeks]
AMOS END
2012-05-04 10:53:01 +08:00
Dan Poltawski 143d743743 MDL-32508 course: make_editting_buttons now takes optionally returns to section 2012-05-04 10:53:00 +08:00
Dan Poltawski 838d013bb2 MDL-32508 course/mod.php: Use $sectionreturn param
This param is now used so that users are returned to the
page they started at
2012-05-04 10:53:00 +08:00
Dan Poltawski a5a38c9473 MDL-32508 course/editsection: add a sectionreturn param
This is used so that when editing on a section page you
are returned to the section in question.
2012-05-04 10:53:00 +08:00
Dan Poltawski d9e1326536 MDL-32508 course: deprecate get_section_url format callback 2012-05-04 10:52:59 +08:00
Dan Poltawski f755868314 MDL-32508 course formats: Remove key callback
This was used by course formats but now there is a standardised
'section' param
2012-05-04 10:52:59 +08:00
Dan Poltawski 5218b9bb7d MDL-32508 course: Introduce course_get_url() 2012-05-04 10:52:58 +08:00
Dan Poltawski 45774bddf7 MDL-32508 course: Switch to 'section' URL param
This is a course format independent url param and replaces weekly/topic specific params.
By using a standardised param we are able to use this url consistenly across the codebase
and reduce the risk of param collision
2012-05-04 10:52:58 +08:00
Dan Poltawski e3c171e19b MDL-32508 course/view.php: action cleanup
After doing actions redirect back to the 'real url' in order to
prevent problems with caching/bookmarking bad urls
2012-05-04 10:52:58 +08:00
Dan Poltawski 599a52fec7 MDL-32508 course/view.php: moderise with MUST_EXIST 2012-05-04 10:52:57 +08:00
Dan Poltawski 3fe600aacf MDL-32505 course formats: zooming feature be gone! 2012-05-04 10:52:57 +08:00
Dan Poltawski b9bcdb54da MDL-32505 course: drop course_display table and settings 2012-05-04 10:52:56 +08:00
Dan Poltawski 1156d38d94 MDL-32504 course: Add coursedisplay setting to course table
This will replace the course_display database table
2012-05-04 10:49:52 +08:00
Jason Fowler 486a138bf1 MDL-30649 - Glossary - Adding functions so recent glossary activity shows up in the activity reports 2012-05-04 10:11:50 +08:00
Dan Poltawski 4d6206ce67 MDL-32628 lib/filelib.php: Set user profile image expires to 1 year
This is to reduce the performance impact of user profile images
requests. Pictures are now referenced by a revision counter so
any changes in picture will not be badly cached any longer.
2012-05-04 09:36:11 +08:00
Dan Poltawski 0dda790c05 Merge branch 'w18_MDL-32628_m23_avatarperf2' of git://github.com/skodak/moodle
Conflicts:
    lib/db/upgrade.php
	version.php
2012-05-04 09:28:41 +08:00
Dan Poltawski 313cdd4fe4 Merge branch 'MDL-32757' of git://github.com/timhunt/moodle 2012-05-04 07:30:45 +08:00
Dan Poltawski fcbd37e38a Merge branch 'master_MDL-31731' of git://github.com/danmarsden/moodle 2012-05-04 07:28:29 +08:00
Dan Marsden 6c20925827 MDL-31731 Advanced Grading: Marking Guide display scale warning for higher max grade as well as lower. 2012-05-04 09:33:30 +12:00
Dan Marsden b4b1d49044 MDL-31731 Advanced Grading: Marking Guide: fix bug with check to display warning about discrepency between module maxgrade and number of marks in Marking Guide. 2012-05-04 09:12:29 +12:00
Tim Hunt 070511062a MDL-32757 / MDL-3030 quiz: SQL typo breaks quiz editing. 2012-05-03 19:45:18 +01:00
Dan Poltawski e50de8764b Merge branch 'MDL-32738' of git://github.com/timhunt/moodle 2012-05-04 01:09:53 +08:00
Tim Hunt f59f85717e MDL-32738 quiz overdue handling cron: appease MySQL.
Thanks to sam marshall for giving my the idea of using a subquery to
make the SQL work on all DBs.
2012-05-03 18:07:59 +01:00
Dan Poltawski 59e430718a Merge branch 'MDL-32740' of git://github.com/timhunt/moodle 2012-05-04 00:58:00 +08:00
Eloy Lafuente (stronk7) 97101a0397 Merge branch 'MDL-32693' of git://github.com/danpoltawski/moodle 2012-05-03 18:22:05 +02:00
Petr Skoda 3690955e65 MDL-32680 import latest TinyMCE 3.5 2012-05-03 15:49:23 +02:00
Dan Poltawski f1e8e6adce Merge branch 'MDL-32739' of git://github.com/timhunt/moodle 2012-05-03 21:23:19 +08:00
Dan Poltawski 9b06d97381 Merge branch 'master_MDL-31731' of git://github.com/danmarsden/moodle 2012-05-03 20:43:28 +08:00
Tim Hunt 96e5168c7e MDL-32740 / MDL-3030 quiz summary: no Return to attempt for overdue. 2012-05-03 12:16:43 +01:00
Tim Hunt a558acf93f MDL-32739 quiz reports: process_actions broken. Regression from MDL-3030 2012-05-03 12:02:29 +01:00
Eloy Lafuente (stronk7) f171c37dda Merge branch 'w18_MDL-32697_m23_oci' of git://github.com/skodak/moodle 2012-05-03 12:22:22 +02:00
Dan Marsden e529ec8c09 MDL-31731 Grading form Marking Guide - fix for test 6.2, checkboxes not saving state when clearing both. 2012-05-03 22:12:34 +12:00
Dan Poltawski 1619a38b9b MDL-31270 pluginlib: Add assign subplugins as standard modules 2012-05-03 17:22:34 +08:00
Dan Poltawski 10ef48fc1e MDL-31270 mod_assign: now added to the standard plugin list 2012-05-03 17:13:09 +08:00
Petr Skoda 8d741d4dfc MDL-32697 use current database sequences instead of global scope
Credit goes to Eloy, thanks!
2012-05-03 10:52:19 +02:00
Dan Poltawski e6236edebf MDL-31270 mod_assign: version dump
Introduce depdency from assignmentupgrade to mod_assign
2012-05-03 16:46:06 +08:00
Dan Poltawski c06b2127bc MDL-31270 mod_assign: Fix another whitespace issue.
Seems I didn't catch them all :(
2012-05-03 16:46:06 +08:00
Aparup Banerjee ed01233ace MDL-28134 General : added branch variable to version.php for reliable docs versioned links. 2012-05-03 16:30:20 +08:00
Dan Poltawski 08b5ac5aae Merge branch 'w18_MDL-32587_m23_phpunitindividual' of git://github.com/skodak/moodle 2012-05-03 16:11:00 +08:00
Dan Poltawski 1ca059ee88 MDL-31270 mod_assign: fix another whitespace issue 2012-05-03 16:10:16 +08:00
Dan Poltawski 9682626eec MDL-31270: mod_assign fix whitespace issues 2012-05-03 16:05:58 +08:00
Petr Skoda 62f9a5c4b6 MDL-32587 fix --buildcomponentconfigs compatibility with Windows 2012-05-03 09:34:35 +02:00
Damyon Wiese bbd0e548c3 MDL-31270 mod_assign: introducing the assignment module
* Includes an assignment upgrade tool to convert from the old mod_assignment.
* Hides mod_assignment on new installs
2012-05-03 14:44:06 +08:00
Dan Poltawski 875f2e459e Merge branch 'wip-mdl-31498-default' of git://github.com/rajeshtaneja/moodle 2012-05-03 13:26:33 +08:00
Dan Poltawski d5bf8f0ba3 Merge branch 'MDL-32689' of git://github.com/jrchamp/moodle 2012-05-03 13:10:56 +08:00
Andrew Davis 184ec2d68f MDL-31488 admin: made admin_externalpage_setup() try to guess the reason why the requested section couldnt be found 2012-05-09 11:58:02 +08:00
Dan Poltawski 96fdfb4486 Merge branch 'w19_MDL-32843_m23_yui351' of git://github.com/skodak/moodle 2012-05-09 11:24:40 +08:00
Dan Poltawski bc5a657bfb MDL-32813 - fix trailing whitespace 2012-05-09 11:17:57 +08:00
Dan Poltawski b7e4b76536 Merge branch 'MDL-32813' of github.com:netspotau/moodle-mod_assign 2012-05-09 11:13:09 +08:00
Dan Poltawski 096c68b585 Merge branch 'w19_MDL-32733_m23_authorizemessage' of git://github.com/skodak/moodle 2012-05-09 10:28:48 +08:00
Dan Poltawski 0f1513be80 Merge branch 'w19_MDL-32775_m23_searchpix' of git://github.com/skodak/moodle 2012-05-09 10:22:48 +08:00
Dan Poltawski e5214ea13b Merge branch 'w19_MDL-32793_m23_iplookup' of git://github.com/skodak/moodle 2012-05-09 10:17:50 +08:00
Sam Hemelryk 86e62f9223 Merge branch 'wip-MDL-31147-master' of git://github.com/phalacee/moodle 2012-05-09 11:50:17 +12:00
Sam Hemelryk 303cb36b18 Merge branch 'wip-MDL-31948-master' of git://github.com/phalacee/moodle 2012-05-09 11:49:33 +12:00
Sam Hemelryk a8f127950e Merge branch 'wip-MDL-31950-master' of git://github.com/phalacee/moodle 2012-05-09 11:49:23 +12:00
Sam Hemelryk d779cd65a9 Merge branch 'wip-MDL-31952-master' of git://github.com/phalacee/moodle 2012-05-09 11:49:14 +12:00
Sam Hemelryk b370716f7b Merge branch 'wip-MDL-31953-master' of git://github.com/phalacee/moodle 2012-05-09 11:48:35 +12:00
Sam Hemelryk 09d64cadee Merge branch 'MDL-32164-master-2' of git://git.luns.net.uk/moodle 2012-05-09 11:47:00 +12:00
Sam Hemelryk 55a8b2eefc Merge branch 'MDL-31940-master' of git://github.com/ankitagarwal/moodle 2012-05-09 11:43:27 +12:00
Sam Hemelryk a6c1f5a4cc Merge branch 'MDL-31943-master' of git://github.com/ankitagarwal/moodle 2012-05-09 11:39:02 +12:00
Sam Hemelryk d7e6345c11 Merge branch 'MDL-31945-master' of git://github.com/ankitagarwal/moodle 2012-05-09 11:37:29 +12:00
Sam Hemelryk b1851f4639 Merge branch 'MDL-31946-master' of git://github.com/ankitagarwal/moodle 2012-05-09 11:35:38 +12:00
Sam Hemelryk 3803b4706a Merge branch 'MDL-18095-master-2' of git://git.luns.net.uk/moodle 2012-05-09 11:31:58 +12:00
Sam Hemelryk 70ebfcee6f Merge branch 'w19_MDL-32178_m23_dbenrolignore' of git://github.com/skodak/moodle 2012-05-09 11:17:39 +12:00
Sam Hemelryk b11afed8cd Merge branch 'w19_MDL-32807_m23_navref' of git://github.com/skodak/moodle 2012-05-09 11:01:31 +12:00
Sam Hemelryk b3c35188b0 MDL-32654 course-toolbox: Fixed up JS issue caused by incorrect selector 2012-05-09 10:55:17 +12:00
Sam Hemelryk 45d79572b5 Merge branch 'w19_MDL-32849_m23_urlrewriting' of git://github.com/skodak/moodle 2012-05-09 10:41:58 +12:00
Sam Hemelryk 9eb54eb4d7 Merge branch 'w19_MDL-32846_m23_syncyui2' of git://github.com/skodak/moodle 2012-05-09 10:27:46 +12:00
Petr Skoda 8c6136a879 MDL-32793 use geoLookup for IP address lookup by default 2012-05-08 23:45:28 +02:00
Sam Hemelryk 73002f1992 Merge branch 'MDL-32654-master-2' of git://git.luns.net.uk/moodle
Conflicts:
	course/yui/toolboxes/toolboxes.js
2012-05-09 09:32:01 +12:00
Sam Hemelryk b34e00c197 Merge branch 'MDL-32771-2' of git://github.com/danpoltawski/moodle 2012-05-09 09:14:20 +12:00
Petr Skoda 18ac11b730 MDL-32849 add support for url rewriting in min_get_slash_argument() and combo loader
This helps especially IIS servers using ^([^\?]+?\.php)(\/.+)$ rewrite rule.
2012-05-08 20:11:44 +02:00
Dan Poltawski f7ae27e887 Merge branch 'w19_MDL-32683_m23_publiccache' of git://github.com/skodak/moodle 2012-05-08 21:10:49 +08:00
Petr Skoda acc165aac7 MDL-32846 do not forget to create dir for bogus image file placeholders 2012-05-08 14:44:50 +02:00
Petr Skoda 1c6d3af542 MDL-32683 fix sloppy copy/pasting from yui_combo 2012-05-08 14:31:23 +02:00
Petr Skoda 0dbe494b39 MDL-32846 force async loading of all YUI2 modules 2012-05-08 14:16:48 +02:00
Ruslan Kabalin c5883e7994 MDL-18095 gradebook: Make sure grade override flag is cleared whenever required
The check for feedback and grade equality between recorded values and the current
form ones before removing override flag is not really required.
2012-05-08 11:53:31 +01:00
Dan Poltawski cd41392c83 Merge branch 'w19_MDL-32825_m23_caches' of git://github.com/skodak/moodle 2012-05-08 17:46:39 +08:00
Andrew Robert Nicols b003b556cc MDL-32683 M.util.image_url shouldn't require the component 2012-05-08 10:25:58 +01:00
Andrew Robert Nicols 45b364b92c MDL-32654 Improve course javascript status spinner 2012-05-08 09:12:15 +01:00
Frederic Massart 114dd080e1 MDL-32718 Fixed typo in column name 2012-05-08 15:54:11 +08:00
Petr Skoda 353efa008d MDL-32843 import YUI 3.5.1 2012-05-08 09:21:27 +02:00
Ankit Agarwal d5f7468eca MDL-31940 data: Removing deprecated function data_get_participants 2012-05-08 15:04:53 +08:00
Dan Poltawski 3a35a9ff8b MDL-32771 - course: add ability to increase/reduce number of sections
* addsection.php is renamed to changenumsections.php to reflect new purpose
* The add button is changed to a +- toggle rahter than big 'add section'
2012-05-08 15:00:46 +08:00
Ankit Agarwal 8bb7fb7008 MDL-31940 assignment: Removing deprecated function assignment_get_participants 2012-05-08 14:59:23 +08:00
Jason Fowler ce5f042b82 MDL-31948 - IMC-CP - Removing the deprecated imscp_get_participants function 2012-05-08 14:58:02 +08:00
Jason Fowler 3edf380de6 MDL-31950 - Label - Removing the deprecated label_get_participants function 2012-05-08 14:53:54 +08:00
Ankit Agarwal ecb6b25b0d MDL-31946 forum: Removing deprecated function folder_get_participants 2012-05-08 14:50:22 +08:00
Ankit Agarwal c1413e22e2 MDL-31945 folder: Removing deprecated function folder_get_participants 2012-05-08 14:44:47 +08:00
Jason Fowler dd6ae1784c MDL-31952 - Resource - Removing the deprecated page_get_participants function 2012-05-08 14:40:53 +08:00
Jason Fowler c72c01b184 MDL-31953 - Resource - Removing the deprecated resource_get_participants function 2012-05-08 14:37:43 +08:00
Jason Fowler 58cc51ee15 MDL-31947 - Glossary - Removing the deprecated glossary_get_participants function 2012-05-08 14:33:42 +08:00
Sam Hemelryk bbb0a6eb02 Merge branch 'MDL-32509' of git://github.com/danpoltawski/moodle 2012-05-08 18:12:28 +12:00
Sam Hemelryk cd6b62c849 Merge branch 'MDL-32670' of git://github.com/rlorenzo/moodle 2012-05-08 18:07:07 +12:00
Sam Hemelryk d7013dba20 Merge branch 'MDL-32777' of git://github.com/danpoltawski/moodle 2012-05-08 17:49:44 +12:00
Sam Hemelryk 301cf946a6 Merge branch 'MDL-31671-master2' of git://github.com/ankitagarwal/moodle 2012-05-08 17:42:03 +12:00
Dan Poltawski 4022860ea8 Merge branch 'w19_MDL-31691_m23_cohortidnumber' of git://github.com/skodak/moodle 2012-05-08 12:40:33 +08:00
Dan Poltawski 1fb26160f2 Merge branch 'MDL-32718-sql-typo' of git://github.com/mudrd8mz/moodle 2012-05-08 12:35:49 +08:00
Dan Poltawski 92e1ae5447 Merge branch 'MDL-31854' of git://github.com/timhunt/moodle 2012-05-08 12:33:45 +08:00
Dan Poltawski 35c5e46d88 Merge branch 'master-MDL-30598' of git://github.com/danmarsden/moodle 2012-05-08 12:22:30 +08:00
Dan Poltawski 8243bc686b Merge branch 'MDL-32768-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-08 11:24:43 +08:00
Damyon Wiese 3ec209133d MDL-32768: Remove unused function count_files from mod_assign
This is implemented in the plugins and is not used in the base assign class.
This was also using a constant from the assignsubmission_file plugin which is
bad form.
2012-05-08 11:02:25 +08:00
Sam Hemelryk 4ecbd65d32 Merge branch 'MDL-32681-master-2' of git://git.luns.net.uk/moodle 2012-05-08 11:14:12 +12:00
Sam Hemelryk 42708cbeb1 Merge branch 'MDL-32743-master-2' of git://git.luns.net.uk/moodle 2012-05-08 11:05:53 +12:00
Petr Skoda 979d320722 MDL-32825 try to improve atomicity of cache file operations in themes and javascript 2012-05-07 18:45:13 +02:00
Dan Poltawski 4dd63b6d70 Merge branch 'w19_MDL-32683_m23_publiccache' of git://github.com/skodak/moodle 2012-05-07 19:17:40 +08:00
Petr Skoda 3db67789a1 MDL-32683 assert $CFG->slasharguments is enabled in new installs
Thanks Dan Poltawski for spotting it.
2012-05-07 13:05:42 +02:00
Petr Skoda fcc4f23d0d MDL-32683 fix outdated tests 2012-05-07 12:49:26 +02:00
Dan Poltawski a84b57e603 Merge branch 'w19_MDL-32683_m23_publiccache' of git://github.com/skodak/moodle 2012-05-07 17:55:31 +08:00
Dan Marsden 3cc7515843 MDL-30598 SCORM fix a few coding guideline issues, tidy up phpdocs 2012-05-07 21:08:53 +12:00
David Mudrak 6c09cb4a64 MDL-32718 fixing an SQL typo in workshop_get_recent_mod_activity() 2012-05-07 10:02:41 +02:00
Dan Poltawski 96a241736e Merge branch 'MDL-18335' of git://github.com/rwijaya/moodle 2012-05-07 15:32:24 +08:00
Dan Poltawski 63313eca72 Merge branch 'w19_MDL-32762_m23_forumstrict' of git://github.com/skodak/moodle 2012-05-07 15:27:51 +08:00
Dan Poltawski c3c70f09d6 Merge branch 'w19_MDL-32735_m23_feedbackstrict' of git://github.com/skodak/moodle 2012-05-07 15:08:21 +08:00
Ankit Agarwal 5ff114adae MDL-31671 calendar: update_event hook should be triggered when updating event 2012-05-07 15:01:50 +08:00
Ankit Agarwal ff284fac9e MDL-31671 calendar: Fixing error when trying to delete parent of a repeated event series 2012-05-07 15:01:49 +08:00
Dan Poltawski 5c46aee8fd Revert "MDL-32379: Fix memory leak in session_set_user"
This reverts commit 22dc32042a.

This integrator didn't properly read the diff, sorry.
2012-05-07 14:39:43 +08:00
Dan Poltawski 74bf5cb999 Merge branch 'MDL-32781' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 13:17:07 +08:00
Dan Poltawski 57417ab1ec Merge branch 'MDL-32684' of git://github.com/lazydaisy/moodle 2012-05-07 13:03:50 +08:00
Dan Poltawski 007fe3f775 Merge branch 'w19_MDL-32719_m23_enrolstrict' of git://github.com/skodak/moodle 2012-05-07 12:58:40 +08:00
Dan Poltawski 73c670423d Merge branch 'w19_MDL-31617_m23_coursesortorder' of git://github.com/skodak/moodle 2012-05-07 12:51:20 +08:00
Dan Poltawski efff2ab77f Merge branch 'MDL-32430' of git://github.com/timhunt/moodle 2012-05-07 12:48:18 +08:00
Dan Poltawski 9af52f493a Merge branch 'MDL-32786' of git://github.com/stronk7/moodle 2012-05-07 12:44:19 +08:00
Dan Poltawski deda57ae1a Merge branch 'MDL-32768-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 12:37:09 +08:00
Dan Poltawski defbe24610 Merge branch 'MDL-32772-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 12:34:06 +08:00
Dan Poltawski 7e6d3880b4 Merge branch 'MDL-32774-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 12:28:34 +08:00
Damyon Wiese 9f91316495 MDL-32781: assignfeedback_comments plugin not loading previous comments
Was setting the wrong field names in the form.
2012-05-07 12:15:08 +08:00
Dan Poltawski 33e71140bb Merge branch 'MDL-32698_questionengine_typos' of git://github.com/davosmith/moodle 2012-05-07 12:05:43 +08:00
Damyon Wiese cfc81f03c5 MDL-32813: Change mod_assign settings to use plugin settings table.
Also move the 'default' setting for each plugin into it's own settings file
so that it is handled properly on new installs.
(ensure the plugin is available at setting time)
Also make the file submission plugin on by default
2012-05-07 11:49:15 +08:00
Dan Poltawski 35be447cda Merge branch 'wip-MDL-32267-m23' of git://github.com/samhemelryk/moodle 2012-05-07 11:35:26 +08:00
Dan Poltawski 11a4313109 Merge branch 'mdl32379_23' of git://github.com/tlevi/moodle 2012-05-07 11:29:01 +08:00
Dan Poltawski 11c33d32be Merge branch 'MDL-32788' of git://github.com/timhunt/moodle 2012-05-07 11:16:22 +08:00
Dan Poltawski b2344ab366 Merge branch 'MDL-32009-master-3' of git://git.luns.net.uk/moodle 2012-05-07 11:07:28 +08:00
Damyon Wiese 8ab7bb9f56 MDL-32768: mod_assign - Change plugin constants to use correct prefix for component 2012-05-07 10:59:07 +08:00
Damyon Wiese ee225061dc MDL-32774: Require sesskey for all actions in the assignment upgrade tool 2012-05-07 10:51:05 +08:00
Damyon Wiese a3dbdc2c03 MDL-32772: Change SQL for mod_assign gradingtable to use named query parameters
This makes it consistent with the built in filtering in flexible_table.

Fix additional issue with SQL for grading table when there are no enrolled users

Change SQL for mod_assign grading table to use get_in_or_equal
As Suggested by Andrew Nicols in tracker
2012-05-07 10:45:23 +08:00
Christopher Tombleson 1273dde9f7 MDL-30598 SCORM api.php moved to loaddatamodel.php
Merged api.php into loaddatamodel.php. Changed all references to api.php
to point at loaddatamodel.php
2012-05-07 14:41:57 +12:00
Dan Poltawski dafea445db Merge branch 'MDL-32782' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 10:20:46 +08:00
Dan Poltawski b766edea0a Merge branch 'MDL-32745-master-1' of git://git.luns.net.uk/moodle 2012-05-07 10:18:06 +08:00
Sam Hemelryk 98556b23c7 MDL-28967 navigation: PHPdoc and coding style cleanup 2012-05-07 13:00:29 +12:00
Sam Hemelryk 80c695228e MDL-28967 navigation: courses branch is only shown if all courses are loaded or you're not enrolled in any course 2012-05-07 13:00:28 +12:00
Sam Hemelryk f7ee4baaee MDL-28967 navigation: Removed buggy caching of course loading information 2012-05-07 13:00:28 +12:00
Sam Hemelryk d4bb6462fc MDL-28967 navigation: Fixed up AJAX loading of categories 2012-05-07 13:00:28 +12:00
Sam Hemelryk 176b75b59c MDL-28967 navigation: Optimised load_all_categories to load preload contexts to greatly reduce database queries 2012-05-07 13:00:23 +12:00
Sam Hemelryk ee03fe79ef MDL-28967 navigation: Fixed up front page generation when showing categories and no enrolled courses 2012-05-07 12:42:24 +12:00
Sam Hemelryk 8e8de15f6c MDL-28967 navigation: Several navigation fixes
* Fixed implementation of navigation settings navshowcategories, navshowallcourses, and navcourselimit
    * Improved performance associated with loading all, or a collection of courses
    * Fixed duplicate calls to loading functions when we had the information required to know it had already occurred
2012-05-07 12:42:24 +12:00
Petr Skoda 3c8d3d4df2 MDL-31691 treat cohort idnumbers as plain text 2012-05-06 21:37:57 +02:00
Petr Skoda bc8926e34b MDL-32178 ignore duplicates in enroL_database external course table 2012-05-06 15:51:25 +02:00
Petr Skoda cc8cc1df80 MDL-32645 fix enrol_database tests 2012-05-06 14:46:14 +02:00
Petr Skoda 082513badf MDL-32807 remove PHP4 object reference coding style 2012-05-06 13:31:55 +02:00
Petr Skoda c859433c3d MDL-32735 add missing message provider info for unmaintained enrol_authorize 2012-05-06 12:10:47 +02:00
Petr Skoda 411fd747cf MDL-32735 fix multiple E_STRICT feedback issues 2012-05-06 12:02:54 +02:00
Petr Skoda 0209f96485 MDL-32762 fix E_STRICT issue in forum 2012-05-06 10:54:37 +02:00
Petr Skoda 869b12554d MDL-32683 minor css related refactoring 2012-05-05 18:46:00 +02:00
Petr Skoda 8ab2974341 MDL-32683 improve and standardise JS serving 2012-05-05 18:16:50 +02:00
Petr Skoda dbe14f39c0 MDL-32683 fine tune yui resource caching 2012-05-05 17:25:27 +02:00
Petr Skoda 2c61e7cc4a MDL-32683 fine tune theme style sheet caching 2012-05-05 17:06:58 +02:00
Petr Skoda 8475b9704f MDL-32683 fine tune theme javascript caching 2012-05-05 16:54:06 +02:00
Petr Skoda 71d4c60389 MDL-32683 fine tune theme image caching 2012-05-05 16:53:45 +02:00
Petr Skoda d5222fae5f MDL-32683 use slashargument urls for yui images 2012-05-05 16:14:48 +02:00
Petr Skoda 6e7b46018e MDL-32683 use slashargument urls for yui combo loader 2012-05-05 16:13:35 +02:00
Petr Skoda ecbad2ad1c MDL-32683 use slashargument urls for theme javascript files 2012-05-05 15:31:27 +02:00
Petr Skoda 7070b7f261 MDL-32683 use slashargument urls for theme style sheets 2012-05-05 15:26:24 +02:00
Petr Skoda 9d473266a7 MDL-32683 use slashargument urls for theme images 2012-05-05 15:23:59 +02:00
Petr Skoda 8c672cf9f3 MDL-32683 explicitly allow more caching of static content 2012-05-05 14:09:31 +02:00
Petr Skoda c119a2eeb5 MDL-31617 add course sortorder index to improve perf 2012-05-05 10:55:57 +02:00
Petr Skoda 47bd498f6a MDL-32719 fix old enrol UI E_STRICT issue 2012-05-05 10:45:39 +02:00
Petr Skoda bc81191a09 MDL-32775 fix invalid url in mediaplugin CSS 2012-05-05 10:31:51 +02:00
Dan Poltawski 9fa74379dc MDL-32509 enablecourseajax: remove setting from DB 2012-05-05 11:00:47 +08:00
Dan Poltawski 7aaed66901 MDL-32509 course: remove enablecourseajax setting
We just have the single enableajax setting
2012-05-05 10:56:06 +08:00
Dan Poltawski a60cc6e174 MDL-32777 format_topics/weeks: section-summary CSS
Ensure there isn't list-style like bullets
2012-05-05 10:37:38 +08:00
Tim Hunt 26d9ee4ee9 MDL-31854 quiz grades report: move total grade closer to names. 2012-05-04 17:41:25 +01:00
Tim Hunt 8180ee2360 MDL-32430 quiz calendar events: fix pluginfile URLs in the description. 2012-05-04 15:17:23 +01:00
Tim Hunt 9e83f3d11d MDL-32788 quiz: clean up codechecker issues before the 2.3 release. 2012-05-04 15:12:23 +01:00
Eloy Lafuente (stronk7) 75c386d4b2 MDL-32786 E_STRICT: fix warning when creating a new service. 2012-05-04 12:44:10 +02:00
Damyon Wiese 01e5ce8781 MDL-32782: Remove unused source file from assignment upgrade tool (lib.php) 2012-05-04 16:01:41 +08:00
Andrew Robert Nicols 5bd03e12fa MDL-32743 Set resource anchor correctly following course ajax changes 2012-05-03 16:25:56 +01:00
Andrew Robert Nicols 178f351480 MDL-32745 Don't apply course ajax to site_main_menu block 2012-05-03 14:27:43 +01:00
Aparup Banerjee b21a1d4086 Merge branch 'wip-MDL-32416-master' of git://github.com/marinaglancy/moodle 2012-05-03 11:33:55 +08:00
Marina Glancy 169709383a MDL-32416: Picasa repository now returns path, also fixed album title retrieval 2012-05-03 11:30:08 +08:00
Rex Lorenzo 4ff8dccccc MDL-32670 mod/chat: also added missing call to ->set_heading in report.php 2012-05-02 19:09:43 -07:00
AMOS bot d3e43d13a9 Automatically generated installer lang files 2012-05-03 00:31:27 +00:00
Eloy Lafuente (stronk7) 03764014af MDL-32234 Library: usergetdate tests moved to assertSame()
(to check both type and value)
2012-05-03 00:52:25 +02:00
Eloy Lafuente (stronk7) 150166d371 Merge branch 'wip-mdl-32234' of git://github.com/rajeshtaneja/moodle 2012-05-03 00:35:34 +02:00
Jonathan Champ 0885166fcc MDL-32689 Allow Blocks to decide whether they are collapsible. 2012-05-02 10:23:07 -04:00
Ruslan Kabalin 0872ee1dd0 MDL-32717: Fix strict standards warning on uninstall 2012-05-02 11:58:37 +01:00
Dan Poltawski 307621dfce Merge branch 'MDL-32638-workshop-files' of git://github.com/mudrd8mz/moodle 2012-05-02 18:01:40 +08:00
David Mudrak f08c15685b MDL-32638 fixing the area names and file_browser::get_file_info() API call
These two bug made the file browsing non-working in workshop 2.x
2012-05-02 11:39:30 +02:00
Dan Poltawski 0c38671095 Merge branch 'MDL-32657-master-2' of git://git.luns.net.uk/moodle 2012-05-02 16:54:54 +08:00
Ruslan Kabalin d95b77bdb7 MDL-32657: Add format.js for topics format and remove default
Using topics format as default is not a great idea, as we can end up
half-working dragdrop for some formats. With the current soiution, drag-drop
will not work for format, unless required js functions have been created in
format.js
2012-05-02 09:42:06 +01:00
Tim Hunt 9ab9f9feb7 MDL-32721 quiz: missing message provider lang string from MDL-3030 2012-05-02 08:19:10 +01:00
Aparup Banerjee 648baa788c Merge branch 'MDL-28657-master' of https://github.com/mackensen/moodle 2012-05-02 13:55:39 +08:00
Sam Hemelryk ab45e3b491 Merge branch 'MDL-31762' of git://github.com/mouneyrac/moodle 2012-05-02 17:52:13 +12:00
Sam Hemelryk 1470c0f46e Merge branch 'MDL-26275_large_grader' of git://github.com/andyjdavis/moodle 2012-05-02 17:44:35 +12:00
Rajesh Taneja 86b600d67a MDL-31498 formslib: repeat_elements will now set default for group elements 2012-05-02 13:20:40 +08:00
Sam Hemelryk 398e6932b0 Merge branch 'MDL-32657-master-1' of git://git.luns.net.uk/moodle 2012-05-02 14:41:11 +12:00
Mary Evans c6e8b3b235 MDL-32684 lib/pagelib: adds break; statements to theme order in lib/pagelib.php 2012-05-02 01:20:04 +01:00
Sam Hemelryk fe9693df87 Merge branch 'w18_MDL-26028_m23_xsendfile' of git://github.com/skodak/moodle 2012-05-02 11:48:24 +12:00
Sam Hemelryk a6d2cf82dc Merge branch 'w18_MDL-32595_m23_unsignedandlob' of git://github.com/skodak/moodle 2012-05-02 10:25:09 +12:00
Andrew Robert Nicols 185d90ad27 MDL-32707 Make youtube videos use the transparent wmode setting 2012-05-01 14:54:56 +01:00
Petr Skoda a090587234 MDL-32697 improve MySQL and Oracle test reset performance 2012-05-01 14:35:23 +02:00
Davo Smith d50e8a1bda MDL-32698 Question - Fixed typos in load_question_attempt 2012-05-01 10:17:08 +01:00
Andrew Robert Nicols 19d041bf2b MDL-32681 Only add drag/drop icons if moveup/movedown icons are present 2012-05-01 09:52:46 +01:00
Juan Leyva 63a85dc7a3 MDL-13130 webservices: Implementation of core_course_delete_courses 2012-05-01 15:23:50 +08:00
Dan Poltawski 1cba46c793 MDL-32693 webservice: fix typo in URL 2012-05-01 12:27:43 +08:00
Andrew Davis 1e2698f6fa MDL-26275 grade: made some equality checks more strict and added some explanatory comments 2012-05-01 10:43:09 +07:00
Dan Poltawski 6b445cb17a Merge branch 'w18_MDL-30686_m23_guessurl' of git://github.com/skodak/moodle 2012-05-01 11:27:16 +08:00
Dan Poltawski 35a1c03448 Merge branch 'MDL-27508-workshop-groups' of git://github.com/mudrd8mz/moodle 2012-05-01 11:16:20 +08:00
Dan Poltawski 3869858d3e Merge branch 'MDL-30986-attempt2' of git://github.com/mouneyrac/moodle 2012-05-01 10:59:06 +08:00
Dan Poltawski 73d595faf3 Merge branch 'MDL-32181' of https://github.com/ppichet/moodle 2012-05-01 10:30:43 +08:00
Dan Poltawski a4c9412b15 Merge branch 'w18_MDL-19071_m23_unicode' of git://github.com/skodak/moodle 2012-05-01 10:19:17 +08:00
Dan Poltawski 94b9d44f28 Merge branch 'w18_MDL-32586_m23_glibciconv' of git://github.com/skodak/moodle 2012-05-01 10:00:01 +08:00
Sam Hemelryk 7c30505be8 Merge branch 'MDL-32009-master-3' of git://git.luns.net.uk/moodle 2012-05-01 13:43:07 +12:00
Sam Hemelryk 75c9c54be4 Merge branch 'w18_MDL-32587_m23_phpunitindividual' of git://github.com/skodak/moodle 2012-05-01 13:41:37 +12:00
Sam Hemelryk 3a4b0d0bc0 Merge branch 'w18_MDL-32607_m23_upgrade2' of git://github.com/skodak/moodle 2012-05-01 13:34:08 +12:00
Sam Hemelryk 46847c220c Merge branch 'w18_MDL-32612_m23_debug' of git://github.com/skodak/moodle 2012-05-01 13:29:39 +12:00
Sam Hemelryk 4bbefa1c19 Merge branch 'w18_MDL-32640_m23_forumstrict' of git://github.com/skodak/moodle 2012-05-01 13:26:53 +12:00
Sam Hemelryk ea7cc40eda Merge branch 'MDL-28955_master' of git://github.com/lazydaisy/moodle 2012-05-01 13:17:33 +12:00
Sam Hemelryk 16fd605208 MDL-32012 Fixed white space 2012-05-01 12:38:37 +12:00
Sam Hemelryk 2dcc93644f Merge branch 'MDL-32012' of git://github.com/merrill-oakland/moodle 2012-05-01 12:37:59 +12:00
AMOS bot f4b668393f Automatically generated installer lang files 2012-05-01 00:31:38 +00:00
Petr Skoda 4d254790c4 MDL-32628 add revision for user avatar images
This should finally resolve all avatar caching issues and should also help with performance.
2012-04-30 23:36:47 +02:00
Sam Hemelryk 1ad903ea8b Merge branch 'MDL-29264_zindex' of git://github.com/andyjdavis/moodle 2012-05-01 08:23:52 +12:00
Petr Skoda e61f888d36 MDL-26028 fix invalid separator constant and support root dirs in aliases
Credit goes to Loic Jeannin, thanks.
2012-04-30 18:08:37 +02:00
Petr Skoda f7d26a0545 MDL-26028 implement Nginx X-Sendfile directory aliases setting 2012-04-30 15:52:42 +02:00
Tim Hunt 59d14f31bd Improve the wording of overdue messages. Thanks Phil. 2012-04-30 13:46:02 +01:00
Rossiani Wijaya 3c0ea9b284 MDL-18335 calendar event: fixed role capability checking to create new event 2012-04-30 17:41:54 +08:00
Ruslan Kabalin c9e34994cb MDL-32009 messaging: Fix using message processor term inconsistency. 2012-04-30 10:34:39 +01:00
Ruslan Kabalin 3f9d9e2856 MDL-32009 messaging: Add message processor uninstall functionality 2012-04-30 10:34:39 +01:00
Ruslan Kabalin bede23f7bc MDL-32009 messaging: Add is_enabled method to plugintype_message 2012-04-30 10:34:37 +01:00
Ruslan Kabalin bc795b98e9 MDL-32009 messaging: Refator get_settings_url plugintype method
No need to duplicate checks since we have them in one place.
2012-04-30 10:34:37 +01:00
Dan Poltawski 06dcb573c4 Merge branch 'w18_MDL-32589_m23_proxytest' of git://github.com/skodak/moodle 2012-04-30 17:00:23 +08:00
Davo Smith 32528f94e4 MDL-22504 Drag and drop upload course - enables upload of files, text and urls to a course page 2012-04-30 09:53:25 +01:00
Jerome Mouneyrac 4615817d1c MDL-30986 external API, check and update DocBlock
Conflicts:

	group/externallib.php
2012-04-30 15:11:56 +08:00
Petr Skoda 46cb5d9ace MDL-32589 remove bogus webproxy whitelisting
Thanks Dan Poltawski!
2012-04-30 08:35:16 +02:00
Dan Poltawski bc24339e00 Merge branch 'MDL-32357' of git://github.com/timhunt/moodle 2012-04-30 14:29:40 +08:00
Dan Poltawski b53cb1294a Merge branch 'master_MDL-31731' of git://github.com/danmarsden/moodle 2012-04-30 12:54:22 +08:00
Dan Poltawski fdf26a0ec0 MDL-3030 mod_quiz: fix training whitespace 2012-04-30 11:05:29 +08:00
Dan Poltawski c1bb7a6f39 Merge branch 'MDL-3030' of git://github.com/timhunt/moodle 2012-04-30 11:05:19 +08:00
Rajesh Taneja 4a9c429b0c MDL-32234 Library: usergetdate return different values when timezone is set
usergetdate should return consistent values for different timezone. There are
two return path
1. If timezone is servertime, it returns getdate
2. If timezone other then servertime, it use gmstrftime, which returns string and
   values with leading zero.
In second case, leading zero's are removed and values are type casted. One major fix
is with yday, getdate returns 0 through 365, whereas %j returns 001 through 366. This
has been fixed as well.
2012-04-30 10:59:01 +08:00
Andrew Davis a740a0ad98 MDL-26257 grade: fixed the grader report edit mode ajax and fixed a spot in the grader report that should be using get_students_per_page() 2012-04-30 08:56:27 +07:00
Andrew Davis 8233747e0e MDL-26275 grade: made the grader report retrieve the existing grades from the DB rather than sending them to the client which then returns them to the server 2012-04-30 08:56:26 +07:00
Andrew Davis d3b698a46e MDL-26275 grade: added a safety check to avoid hitting PHP's max_input_var by reducing the number of students per page if necessary 2012-04-30 08:56:26 +07:00
Dan Poltawski e669ee3a96 Merge branch 'w18_MDL-32627_m23_userajax' of git://github.com/skodak/moodle 2012-04-30 09:50:04 +08:00
Dan Poltawski 008655ca04 Merge branch 'MDL-32613' of git://github.com/timhunt/moodle 2012-04-30 09:30:24 +08:00
Sam Hemelryk 21f7b01d19 Merge branch 'MDL-32638-workshop-files' of git://github.com/mudrd8mz/moodle 2012-04-30 13:26:38 +12:00
Sam Hemelryk ac3f3571a5 Merge branch 'master_MDL-32597' of git://github.com/danmarsden/moodle 2012-04-30 13:21:54 +12:00
Sam Hemelryk cc2ae468d2 Merge branch 'MDL-28735-master' of git://github.com/ankitagarwal/moodle 2012-04-30 13:19:56 +12:00
Dan Poltawski 81ea734992 Merge branch 'w18_MDL-32651_m23_phpunit6' of git://github.com/skodak/moodle 2012-04-30 09:16:24 +08:00
Sam Hemelryk 6caa86747f Merge branch 'MDL-29044-master-3' of git://git.luns.net.uk/moodle 2012-04-30 12:50:38 +12:00
Sam Hemelryk 446326ab67 Merge branch 'MDL-26523_grader' of git://github.com/andyjdavis/moodle 2012-04-30 12:46:48 +12:00
Sam Hemelryk 3d173c1d38 Merge branch 'MDL-31429_paypal_messages' of git://github.com/andyjdavis/moodle 2012-04-30 12:33:05 +12:00
Sam Hemelryk fd8335c90e Merge branch 'w18_MDL-32676_m23_yuibootstrap' of git://github.com/skodak/moodle 2012-04-30 12:26:07 +12:00
Sam Hemelryk bc0be2fb80 Merge branch 'MDL-19391-master-1' of git://git.luns.net.uk/moodle 2012-04-30 12:16:35 +12:00
Sam Hemelryk 49ddf4195c MDL-31510 grader report: Fixed whitespace 2012-04-30 12:13:00 +12:00
Sam Hemelryk e074f9763b Merge branch 'MDL-31510_group_activities' of git://github.com/andyjdavis/moodle 2012-04-30 12:11:23 +12:00
Sam Hemelryk b5aa51419a Merge branch 'MDL-32238-master' of git://github.com/ankitagarwal/moodle 2012-04-30 12:03:01 +12:00
Sam Hemelryk c547c7c784 Merge branch 'MDL-32624_master_wip' of git://github.com/grabs/moodle 2012-04-30 11:57:40 +12:00
Yang Yang d0eab62ad5 Merge branch 'master' of https://github.com/moodle/moodle 2012-04-30 10:25:26 +12:00
Dan Marsden 77143217f2 MDL-31731 - new grading form - Marking Guide 2012-04-30 08:44:43 +12:00
Petr Skoda 0be17303c0 MDL-32676 improve YUI init performance via combo loader caching 2012-04-29 19:00:51 +02:00
Petr Skoda 7e9f1b63e5 MDL-26028 use X-Sendfile for theme images and javascript 2012-04-29 18:59:08 +02:00
Petr Skoda d5dd0540c2 MDL-26028 send_file performance improvements
Includes X-Sendfile support, ETags for stored_files and general cleanup.
2012-04-29 18:27:23 +02:00
Tim Hunt df710f84d0 MDL-32357 Try to fix unread post notification for blog-style forums.
I know that showing unread posts is not 100% blog-style, but I think
it is useful functionality, therefore, I chose to fix it, rather than,
say, disable it completely.

I think this fix will only affect blog-style forums since
forum_print_latest_discussions is only called with mode 'plain' in
three places:
1. Blog-style forums - the case we want to fix,
2. Site news forum, and
3. Social course format.

In all cases, having read tracking work properly seems like the
right thing to do.
2012-04-28 18:57:05 +01:00
Petr Skoda 99302c5e96 MDL-26028 cleanup all IE6 gzip hacks 2012-04-28 18:00:06 +02:00
Petr Skoda 5d234a34ef MDL-32612 prevent dir creation race condition notices in theme images 2012-04-28 17:14:38 +02:00
Petr Skoda ee891dacc7 MDL-32612 disable error displaying in theme files and javascript
The correct place to write errors and notices is log, we can let Javascript and binary files to be randomly modified.
2012-04-28 17:14:38 +02:00
Petr Skoda 463a9874ef MDL-32612 respect NO_DEBUG_DISPLAY in scripts that need only config.php 2012-04-28 17:14:37 +02:00
Dan Poltawski 1f43065d95 MDL-32673 ajax: remove legacy debugging info 2012-04-28 15:00:37 +08:00
Mary Evans 18e5c3332f MDL-28955 theme_nimble: added css rules to display horizontal/vertical-menu-submenu-indicator 2012-04-28 02:48:26 +01:00
Rex Lorenzo a9ce6b1f8d MDL-32670 mod/chat: added missing call to $PAGE->set_heading 2012-04-27 15:58:16 -07:00
Eric Merrill 4eef1c2e14 MDL-32012 resource: flaw in restore from moodle 1.9 backups 2012-04-27 16:16:00 -04:00
ppichet 0cba6a8d5e MDL-32181 question/calculatedmulti validate multianswers
restructuring the validation function of edit_calculatedmulti_form.php
correcting attempt
defining = new stdClass() before using them : Strict standards
2012-04-27 14:30:36 -04:00
Tim Hunt 75733895bb MDL-32613 qbank: improve print_choose_qtype_to_add_form for contrib modules. 2012-04-27 15:08:28 +01:00
Tim Hunt b640e6815a MDL-3030 quiz overdue handling: allow access to summary during grace period 2012-04-27 15:07:43 +01:00
Tim Hunt 2512341872 MDL-3030 quiz statistics: fix stict syntax problem. 2012-04-27 15:07:42 +01:00
Tim Hunt e1bf1619e1 MDL-3030 quiz overdue handling: cron to update overdue attempts. 2012-04-27 15:07:41 +01:00
Tim Hunt be18f589e2 MDL-3030 quiz overdue handling: test state, not timefinish where applicable. 2012-04-27 15:07:40 +01:00
Tim Hunt 3e77b60f36 MDL-3030 quiz overdue handling: ignore responses received much too late. 2012-04-27 15:07:38 +01:00
Tim Hunt fd0537ce36 MDL-3030 quiz overdue handling: catch the overdue event and send message. 2012-04-27 15:07:37 +01:00
Tim Hunt a403bce0bd MDL-3030 quiz overdue handling: back-end code for the new transitions 2012-04-27 15:07:36 +01:00
Tim Hunt 34b7d8383d MDL-3030 quiz overdue handling: trigger automatic state transitions.
Here, we catch all the places where a student might be accessing their
own attempts, and make sure any automatic state transitions that
should happen, do happen, before the student sees the attempt.

The places where we need to check this are view.php, startattempt.php
and processattempt.php.

We do not really need to check attempt.php or summary.php, because if
the student is on one of those pages, the JavaScript timer will
auto-submit when time expires, taking them to processattempt.php,
which will do the acutal work.

We intentionally do not trigger state transition when a teacher is
looking at a student's quiz attemp. We will trigger state transitions
on cron, but that is still to do.

Also, the body of the process_... methods still needs to be written.
2012-04-27 15:07:35 +01:00
Tim Hunt 863872e3e7 MDL-3030 quiz overdue handling: show the attempt state in the reports. 2012-04-27 15:07:33 +01:00
Tim Hunt 2cdd2df92d MDL-3030 quiz overdue handling: only finished attempts in stats. 2012-04-27 15:07:32 +01:00
Tim Hunt c547514a9e MDL-3030 quiz overdue handling: show attempt state in the reports. 2012-04-27 15:07:31 +01:00
Tim Hunt b39b5d77c3 MDL-3030 quiz overdue handling: show attempt state on the review page. 2012-04-27 15:07:30 +01:00
Tim Hunt 2b2b645842 MDL-3030 quiz overdue handling: display message on the summary page.
This change also includes a clean-up of how we display and initialise the countdown timer.
2012-04-27 15:07:29 +01:00
Tim Hunt 2de9be52aa MDL-3030 quiz overdue handling: show attempt state on the view page 2012-04-27 15:07:27 +01:00
Tim Hunt fd55f4bf49 MDL-3030 quiz overdue handling: backup and restore new settings. 2012-04-27 15:07:26 +01:00
Tim Hunt 18efef384b MDL-3030 quiz overdue handling: new capability 2012-04-27 15:07:25 +01:00
Tim Hunt 87427d9c7c MDL-3030 quiz overdue handling: new settings on quiz form and admin. 2012-04-27 15:07:23 +01:00
Tim Hunt 84da4788fd MDL-3030 quiz settings: reorganise form before adding new fields. 2012-04-27 15:07:22 +01:00
Tim Hunt c761b7757d MDL-3030 quiz db: add comments to many colums, and reorder more logically. 2012-04-27 15:07:21 +01:00
Tim Hunt 20b77578d0 MDL-3030 quiz overdue handling: new DB columns. 2012-04-27 15:07:19 +01:00
Ruslan Kabalin c77582fe42 MDL-32657: course dragdrop: define elements changes within the format
It allows to define M.course.format.swap_sections and
M.course.format.get_section_selector in the course format javascript file, so
that course dragdrop is aware about perculiar layout and changes that need to
be done when sections are swapped.
2012-04-27 15:01:02 +01:00
Petr Skoda 80705c1000 MDL-32628 add user_picture->get_url() tests 2012-04-27 15:03:24 +02:00
David Mudrak 7528e238e0 MDL-32638 workshop_pluginfile() checks for access rights to get the submission files 2012-04-27 14:58:59 +02:00
David Mudrak 92039f1cb4 MDL-32638 fixed capability checks for instructauthors and instructreviewers
The workshop_pluginfile() can't be more restrictive than the code that
actually displays the text with the embedded images. To view both
instructions fields in view.php, the capability to view the workshop is
enough. So the same level of access control is applied here by
require_login() at the top of the function.
2012-04-27 14:56:15 +02:00
David Mudrak b7a5e3d603 MDL-32638 improved file browser access to submission_content and submission_attachment areas
The user has to have viewallsubmissions capability to be able to see the
submission files in the browser. Additionally, in the separate groups
mode, the user has to have accessallgroups or share at least one group
with the submission author to view their files.
2012-04-27 14:56:14 +02:00
David Mudrak 76966a0058 MDL-32638 fixed workshop file info library comments 2012-04-27 14:56:14 +02:00
Petr Skoda fa5306878b MDL-32628 fix all deleted users to not have picture flag 2012-04-27 14:44:18 +02:00
David Mudrak a1df59bea9 MDL-27508 workshop does not use get_users_by_capability() any more
This is a big win, we are now taking enrolment fully into account.
Also, no need to fetch big data from DB just to get their count. Should
have much better performance now.
2012-04-27 14:41:59 +02:00
David Mudrak 74f54102dc MDL-27508 display submission link at the manual allocator page 2012-04-27 14:41:59 +02:00
David Mudrak 25bae250ee MDL-27508 workshop manual allocator supports groups
Pagination support improved, too.
2012-04-27 14:41:59 +02:00
David Mudrak 079219bf07 MDL-27508 introducing workshop::count_participants() 2012-04-27 14:41:59 +02:00
David Mudrak c90a88bfb7 MDL-27508 improving the docs for workshopallocation_manual_allocations class 2012-04-27 14:41:59 +02:00
David Mudrak ec1bf0f23d MDL-27508 workshop manual allocator supports configurable page size for items pagination 2012-04-27 14:41:59 +02:00
David Mudrak dda42a19cd MDL-27508 workshop::prepare_grading_report_data() accepts $groupid
Workshop grades reports in all three last phases were fixed to support
the group selection. They layout of the report has been unified to be
consistent across all phases.
2012-04-27 14:41:59 +02:00
David Mudrak 8741ebb0bd MDL-27508 introducing workshop::get_participants() and workshop::is_participant()
Note how the participant is defined: it is a user that (1) can submit or
assess or both and (2) is actively enrolled in the course. This means
that usually admins or managers won't be considered as workshop
participants, for example.
2012-04-27 14:41:59 +02:00
David Mudrak 11a97e66e8 MDL-27508 workshop supports configurable page size for items pagination 2012-04-27 14:41:59 +02:00
David Mudrak 5547b0dce1 MDL-27508 introducing mod_workshop_renderer::perpage_selector() 2012-04-27 14:41:58 +02:00
David Mudrak 0d2331cce3 MDL-27508 workshop supports pagination at the submissions list in the submission phase 2012-04-27 14:41:58 +02:00
David Mudrak 8a23733753 MDL-27508 common pagination and sorting interface across all phases in view.php 2012-04-27 14:41:58 +02:00
David Mudrak cd57f558d9 MDL-27508 introducing workshop::count_submissions() and pagination support for get_submissions() 2012-04-27 14:41:58 +02:00
David Mudrak 9326a2aa84 MDL-27508 fixing the description of groups related behaviour of some capabilities 2012-04-27 14:41:58 +02:00
David Mudrak 3f5e99153c MDL-27508 workshop checks separate groups membership when displaying an assessment 2012-04-27 14:41:58 +02:00
David Mudrak f65bc55fcd MDL-27508 workshop checks separate groups membership when displaying a submission 2012-04-27 14:41:58 +02:00
David Mudrak a4e848360d MDL-27508 workshop_user_complete() checks group membership in separate groups mode 2012-04-27 14:41:58 +02:00
David Mudrak 1c0c3ef5ee MDL-27508 workshop shows submissions per group in the submission phase 2012-04-27 14:41:58 +02:00
David Mudrak 872ed8591e MDL-27508 workshop::get_submissions() now accepts optional $groupid 2012-04-27 14:41:58 +02:00
David Mudrak 9691e2b10e MDL-27508 workshop::get_users_with_capability_sql() supports groupmembersonly
If the method is called with $groupid set to 0 and the workshop is in
the groupmembersonly mode, a recursive call is used to populate the
fragments of SQL code that fetch users from all relevant groups. These
fragments are then concatenated using UNION statement.
2012-04-27 14:41:58 +02:00
David Mudrak 21f58287d7 MDL-27508 workshop: improved getting of potential authors and reviewers
This patch reimplements get_potential_authors() and get_potential_reviewers()
so that get_enrolled_sql() is used instead of get_users_by_capability().
This excludes non-enrolled users (or users with suspended enrolment)
from the list of potential users.

The patch also extends the returned user structure. Objects in the
returned collection are now suitable for user_picture renderer.
2012-04-27 14:41:58 +02:00
Petr Skoda faa328c385 MDL-32628 fix user_picture performance 2012-04-27 13:56:08 +02:00
Petr Skoda 32962961a8 MDL-32651 increase memory limit to 2G when running phpunit tests
This should help when running tests with coverage reports.
2012-04-27 13:54:38 +02:00
Petr Skoda fffd3703cf MDL-32640 fix E_STRCIT issue when editing somebody post of other user 2012-04-27 13:53:35 +02:00
Petr Skoda 789df20f64 MDL-32627 enable ajax by default in new user form
This change makes the new user form consistent with install.xml default. I do not think we should discourage ajax any more.
2012-04-27 13:52:38 +02:00
Petr Skoda b814d1b4b2 MDL-32607 prevent upgrade_set_timeout abort in CLI scripts
Credit goes to Michael Aherne, thanks.
2012-04-27 13:51:38 +02:00
Petr Skoda e427ad302f MDL-32595 fix mysql int and lob defaults during conversion
Integer columns can not have empty string default, lobs fields handle empty strings defaults automatically too if null not allowed.
2012-04-27 13:45:10 +02:00
Petr Skoda 366c6adba3 MDL-32589 phpunit: allow proxy server specification via config.php 2012-04-27 13:43:21 +02:00
Petr Skoda 8e5c963e6b MDL-32587 improve component phpunit config building and make the util.php help fit 80char screens 2012-04-27 13:42:18 +02:00
Eloy Lafuente (stronk7) cb48174266 MDL-32587 phpunit: new option to create distributed phpunit.xml files 2012-04-27 13:42:17 +02:00
Petr Skoda 51b7297b7e MDL-32586 silence buggy glibc when fixing utf-8 strings 2012-04-27 13:41:12 +02:00
Petr Skoda bd319d12c2 MDL-30686 fix typo
Thanks Dan Poltawski!
2012-04-27 13:39:18 +02:00
Petr Skoda f0202ae9a2 MDL-30686 improve accuracy of qualified_me() by trying PAGE->url first
This should help SSL proxies and returning to current page after require_login().
2012-04-27 13:39:18 +02:00
Petr Skoda 6c0e5cd193 MDL-19071 test PCRE compatibility with unicode characters 2012-04-27 13:37:54 +02:00
Eloy Lafuente (stronk7) aa753ac24f weekly release 2.3dev 2012-04-27 12:46:57 +02:00
Eloy Lafuente (stronk7) cb6de349e4 Fix permissions 2012-04-27 12:45:22 +02:00
Eloy Lafuente (stronk7) cef0090c51 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-04-27 12:38:28 +02:00
Eloy Lafuente (stronk7) 291e168894 Revert "MDL-32249 completion: Round course grades and remove hardcoded string"
This reverts commit 412cecc32b.
2012-04-27 12:03:26 +02:00
Petr Skoda dcb83c348f fix use of legacy object class 2012-04-27 11:09:53 +02:00
Petr Skoda 41ee480a9b fix bogus post action params 2012-04-27 10:51:47 +02:00
Petr Skoda 2975523afb CONTRIB-3616 Book module do not display icon for book and chapter print
Credit goes to Peter Svec, thanks.
2012-04-27 10:49:59 +02:00
Andrew Davis bd3238e611 MDL-29264 course: removed the z-index from course css for course completion elements 2012-04-27 10:49:29 +07:00
Andrew Davis 692e4f7b4d MDL-26523 grade: fixed a called to addHelpButton() that was asking for a non-existent string 2012-04-27 09:13:36 +07:00
Eloy Lafuente (stronk7) 7c0d3f4c1d Merge branch 'wip-MDL-26014-master' of git://github.com/phalacee/moodle 2012-04-27 03:15:51 +02:00
AMOS bot 66cf7bcbe9 Automatically generated installer lang files 2012-04-27 00:31:39 +00:00
Andrew Robert Nicols 95ef704d7d MDL-31096 Handle addition/removal of mod-indent-huge to match non-ajax display 2012-04-26 11:02:39 +01:00
Andrew Robert Nicols eac3ed52c7 MDL-31096 Add hiding of activity descriptions 2012-04-26 10:40:32 +01:00
Andrew Davis aee748d32c MDL-31510 grade: made the user report observe $cm->uservisible so that activities not available to a student because of groups do not appear on their user report 2012-04-26 16:31:56 +07:00
Andrew Robert Nicols 9d40f585da Revert MDL-31215 Add the ability to change activity titles using AJAX calls
This *partially* reverts commit 6a14c4ffdd.

Note however parts of that commit were unrelated and haven't been
reverted.
2012-04-26 17:25:06 +08:00
Jason Fowler 06aad19cc7 MDL-26014 - blog - improving the label for the URL of an external blog feed 2012-04-26 11:09:44 +08:00
Dan Poltawski 70b36b488b MDL-31263 lib/ajax/blocks.php fix nonsensical url 2012-04-26 11:03:05 +08:00
Eloy Lafuente (stronk7) ee5855687e Merge branch 'MDL-31052-js-rewrite' of git://github.com/danpoltawski/moodle 2012-04-26 03:32:08 +02:00
Eloy Lafuente (stronk7) e97eefd8c8 Merge branch 'MDL-19263-master' of https://github.com/mackensen/moodle 2012-04-26 02:46:21 +02:00
Eloy Lafuente (stronk7) 0529f63373 Merge branch 'MDL-32630-workshop-calendar' of git://github.com/mudrd8mz/moodle 2012-04-26 02:17:00 +02:00
David Mudrak de7daa8333 MDL-32630 workshop_calendar_update() does not check for calendar permissions
As discussed in MDL-32631, calendar_event::update() should not do
capability checks at all. Until that issue is fixed, we just explicitly
declare that no capability checks should be done.

The function workshop_calendar_update() is executed when adding or
updating a workshop instance (where permissions to modify the instance
were already checked and are sufficient) and in the upgrade code (where
no check should be performed anyway).
2012-04-25 15:35:59 +02:00
Eloy Lafuente (stronk7) d7f84a2962 Merge branch 'MDL-32471-thumbnails' of git://github.com/mudrd8mz/moodle 2012-04-25 15:14:27 +02:00
David Mudrak b861b60932 MDL-32471 fixed strict standards in the declaration of send_file() in assignment types
All subtypes declaration should be compatible with that of assignment_base::send_file()
2012-04-25 13:48:12 +02:00
David Mudrak f7eec6ce79 MDL-32471 improved SQL to prevent potential full table scans 2012-04-25 13:44:36 +02:00
Eloy Lafuente (stronk7) e69ac1546b Merge branch 'MDL-32192_rename_string' of git://github.com/andyjdavis/moodle 2012-04-25 13:07:48 +02:00
David Mudrak 94d104172e MDL-32471 just a trivial change to prevent eventual issues with various preview modes 2012-04-25 11:53:57 +02:00
David Mudrak 8f110835c1 MDL-32471 adding preview generation unit tests
The test image is a public domain file from
http://commons.wikimedia.org/wiki/File:Easter_eggs_-_onion_decoration.jpg
2012-04-25 11:42:17 +02:00
Eloy Lafuente (stronk7) 9c51f675fa Merge branch 'wip-MDL-32417-master' of git://github.com/marinaglancy/moodle 2012-04-25 03:40:53 +02:00
Eloy Lafuente (stronk7) 344c07c3de Merge branch 'wip-MDL-26959-master' of git://github.com/phalacee/moodle 2012-04-25 03:20:23 +02:00
Eloy Lafuente (stronk7) 2360f60fd8 MDL-32322 tests: apply changes in simpletests (now deleted) to phpunit ones. 2012-04-25 03:09:42 +02:00
Eloy Lafuente (stronk7) d3cb25dfef Merge branch 'MDL-32322' of git://github.com/timhunt/moodle
Conflicts:
	mod/quiz/report/simpletest/testreportlib.php
	mod/quiz/report/statistics/simpletest/test_qstats.php
2012-04-25 03:02:14 +02:00
Eloy Lafuente (stronk7) 2c6dbf4a54 MDL-32490 Offline assignment: phpdocs and whitespace fixes 2012-04-25 02:40:35 +02:00
AMOS bot 10686a150c Automatically generated installer lang files 2012-04-25 00:31:34 +00:00
Eloy Lafuente (stronk7) 2ae4f3849a Merge branch 'MDL-32490' of git://github.com/bostelm/moodle 2012-04-25 02:28:50 +02:00
Eloy Lafuente (stronk7) cb626376c1 Merge branch 'MDL-32566_master' of git://github.com/kordan/moodle 2012-04-25 02:05:09 +02:00
Eloy Lafuente (stronk7) 0317b8d4b3 Merge branch 'MDL-32082_messaging_readability' of git://github.com/andyjdavis/moodle 2012-04-25 01:55:24 +02:00
Eloy Lafuente (stronk7) ee35fa43de Merge branch 'wip-MDL-30478-master' of git://github.com/abgreeve/moodle 2012-04-25 01:11:38 +02:00
Eloy Lafuente (stronk7) 795558d3e5 Merge branch 'MDL-31548-master' of git://github.com/ankitagarwal/moodle 2012-04-24 21:56:57 +02:00
Andreas Grabs 7e5dc9f3bb MDL-32624 - initialbars disappears 2012-04-24 21:26:56 +02:00
Petr Skoda bcb4958e2a fix invalid function name in legacy file migration
Credit goes to t6nis. Closes issue #25.
2012-04-24 17:53:29 +02:00
Aparup Banerjee aed560a197 MDL-19391 Database : fixed icon size 2012-04-24 16:00:38 +01:00
David Mudrak fe68aac7d9 MDL-32471 using === for string comparison
Thanks to Petr Skoda for spotting this during the peer-review.
2012-04-24 16:10:46 +02:00
David Mudrak 9120a46257 MDL-32471 remove orphaned preview files via cron 2012-04-24 15:14:09 +02:00
David Mudrak 7a00d4385d MDL-32471 preview thumbnails support for other component types
This commit affects mostly qtypes. Other standard components either do
not have pluginfile handler or have been already updated to the new API.
2012-04-24 14:29:44 +02:00
David Mudrak 957fc845b6 MDL-32471 preview thumbnails support for blocks
block_xxx_pluginfile() now accepts the $options parameter that is to be passed
to the send_stored_file() function.
2012-04-24 14:01:53 +02:00
Eloy Lafuente (stronk7) 2ea2549e13 MDL-31914 db fix - cannot use table aliases on DELETE statements. Credit goes to Andrew Nicols (LUNS). 2012-04-24 13:07:11 +02:00
Eloy Lafuente (stronk7) c833026b24 Merge branch 'MDL-32249' of github.com:srynot4sale/moodle 2012-04-24 12:56:30 +02:00
Andrew Robert Nicols ede323e2b3 MDL-31914 Ensure that completion criteria are deleted when removing a course module
Conflicts:

	lib/db/upgrade.php
	version.php
2012-04-24 12:25:53 +02:00
David Mudrak 261cbbacc1 MDL-32471 preview thumbnails support for activity modules
Activity module's xxx_pluginfile() now accepts the $options parameter
that is to be passed to the send_stored_file() function.
2012-04-24 12:09:45 +02:00
David Mudrak 82c224ee7a MDL-32471 send_stored_file() now supports the preview option
If for any reason the preview image can't be generated for the given
file (eg we do not support its mimetype yet), the function will send
404 Not Found HTTP header. This will be useful for the lazy loading of
the file thumbnails as the JavaScript will simply ignore such response
and will not replace the default icon for the file.

In the future, a fallback thumbnail generator can be implemented that
would generate some sort of default preview for all files (eg using
the mimetype icon like some desktop OS do).
2012-04-24 12:09:45 +02:00
David Mudrak c4d19c5a07 MDL-32471 introducing file_storage::get_file_preview() method 2012-04-24 12:09:45 +02:00
David Mudrak f0a23f5322 MDL-32471 introducing generate_image_thumbnail() function
This helper function uses GD library to generate a thumbnail of the
given image file.
2012-04-24 12:09:45 +02:00
David Mudrak f0f4fff900 MDL-32471 fixing the coding style in lib/gdlib.php
The GD functions are listed in lowercase in the PHP manual. So they
should be using this case in our code, too (otherwise, doc autolinking
tools may not work). I did not remove the underscore from the parameters
names intentionally to have the function interface compatible with the
one documented in the PHP manual.

See http://www.php.net/manual/en/ref.image.php
<
2012-04-24 12:09:44 +02:00
David Mudrak 796495fed2 MDL-32471 changing the interface of the send_stored_file() 2012-04-24 12:09:44 +02:00
David Mudrak b071498f1b MDL-32471 pluginfile.php accepts optional parameter 'preview' 2012-04-24 12:09:44 +02:00
Andrew Robert Nicols b1a8aa73b5 MDL-29044: Move course category creation to a separate function 2012-04-24 10:57:12 +01:00
Eloy Lafuente (stronk7) 14ffb91959 Merge branch 'w17_MDL-32574_m23_adodb' of git://github.com/skodak/moodle 2012-04-24 10:37:13 +02:00
Petr Skoda 3932d474e3 MDL-32574 fi sqlsrv adodb test 2012-04-24 09:22:26 +02:00
Dan Poltawski e5055d3e5e Merge branch 'master_MDL-32102' of git://github.com/danmarsden/moodle 2012-04-24 15:17:43 +08:00
Jerome Mouneyrac 45b4464c76 MDL-31762 username should be lowercase and check against PARAM_USERNAME when creating/updating user by web service 2012-04-24 15:09:37 +08:00
Ruslan Kabalin ff92b71140 MDL-31720 Refactor course/rest.php
This removes duplicates and block actions remains. It also makes it
possible to include course/rest.php in such a way that it could be extended
by non-core modules wishing to overide parts of its functionality (e.g.
mod_subpage)
2012-04-24 13:25:49 +08:00
Andrew Robert Nicols 6a14c4ffdd MDL-31215 Add the ability to change activity titles using AJAX calls 2012-04-24 13:25:49 +08:00
Ruslan Kabalin 5683815612 MDL-31263 Rewrite block drag/drop using YUI3 2012-04-24 13:25:43 +08:00
Dan Poltawski 06f29d7d76 Merge branch 'wip-MDL-31928-master' of git://github.com/marinaglancy/moodle 2012-04-24 10:32:18 +08:00
Dan Poltawski 8e8f247f2c Merge branch 'w17_MDL-32427_m23_protocols' of git://github.com/skodak/moodle 2012-04-24 10:27:15 +08:00
Dan Poltawski 1e77ca296d Merge branch 'w17_MDL-25407_m23_innodb' of git://github.com/skodak/moodle 2012-04-24 10:23:14 +08:00
Ankit Agarwal 7ca52615d1 MDL-32238 course: Timemodifed should be updated when a course's visible status is toggled from the category page 2012-04-24 10:08:23 +08:00
Eloy Lafuente (stronk7) 434fc13dbe Merge branch 'MDL-32454-master-1' of git://git.luns.net.uk/moodle 2012-04-24 01:47:14 +02:00
Eloy Lafuente (stronk7) 55a0c2d787 Merge branch 'MDL-32514-master-1' of git://git.luns.net.uk/moodle 2012-04-24 01:42:28 +02:00
Dan Marsden b5a64b112c MDL-32597 typo in path to version.php file for local plugins 2012-04-24 11:12:01 +12:00
Eloy Lafuente (stronk7) 5989454498 Merge branch 'MDL-19549' of git://github.com/danpoltawski/moodle 2012-04-24 01:00:16 +02:00
Eloy Lafuente (stronk7) 9614e54bfc Merge branch 'MDL-28176' of git://github.com/danpoltawski/moodle 2012-04-24 00:30:50 +02:00
Eloy Lafuente (stronk7) f24628a290 Merge branch 'MDL-32134' of git://github.com/danpoltawski/moodle 2012-04-24 00:07:23 +02:00
Eloy Lafuente (stronk7) 3e0b0ae59b Merge branch 'wip-MDL-26500' of git://github.com/danpoltawski/moodle 2012-04-24 00:03:36 +02:00
Ruslan Kabalin 15e2552f00 MDL-31216 Create dragdrop course module 2012-04-23 21:28:39 +01:00
Ruslan Kabalin ae2afddcd6 MDL-31222 Create a core YUI3 Module for drag-drop 2012-04-23 21:28:39 +01:00
Andrew Robert Nicols ebaa29d107 MDL-31096 Convert course resource/section javascript to YUI3 Module
AMOS BEGIN
  MOV [hideweekfromothers,moodle],[hidefromothers,format_week]
  MOV [showweekfromothers,moodle],[showfromothers,format_week]
  MOV [hidetopicfromothers,moodle],[hidefromothers,format_topics]
  MOV [showtopicfromothers,moodle],[showfromothers,format_topics]
AMOS END
2012-04-23 21:28:39 +01:00
Andrew Robert Nicols cd6081f558 MDL-31096 Create generic coursemodule javascript library
This library handles registration and invocation of calls for other
libraries. It allows us to register javascript modules containing functions
which may called dynamically later on, for example when adding a resource
or section dynamically
2012-04-23 21:18:17 +01:00
Ruslan Kabalin d8feba6ce7 MDL-31052 Add generic lightbox spinner to indicate progress to user 2012-04-23 21:17:50 +01:00
Petr Skoda e498621a95 MDL-25407 ignore errors in CLI mysql engine conversion script 2012-04-23 19:19:19 +02:00
kordan 011c24fbe9 MDL-32566 theme_formal_white: restyling of login block 2012-04-23 15:13:13 +02:00
Eloy Lafuente (stronk7) 93f9755c74 MDL-29262 phpunit: fix forgotten mock objects to avoid strict notices 2012-04-23 15:01:14 +02:00
Dan Poltawski a0a87e85f0 Merge branch 'w17_MDL-32477_m23_cloneperm' of git://github.com/skodak/moodle 2012-04-23 16:35:26 +08:00
Petr Skoda d72bb48662 MDL-32427 add HTML Purifier allowed scheme tests 2012-04-23 10:30:00 +02:00
Petr Skoda 590abcf801 MDL-32427 fix suport for extra schemes in links in HTML Purifier 2012-04-23 10:29:43 +02:00
Dan Poltawski 3bbfe7d636 Merge branch 'w17_MDL-32449_m23_tinymce' of git://github.com/skodak/moodle 2012-04-23 15:37:34 +08:00
Dan Poltawski 98fc9c8363 Merge branch 'w17_MDL-31553_m23_clitimeout' of git://github.com/skodak/moodle 2012-04-23 15:25:42 +08:00
kordan 25d4221200 MDL-32578 theme_formal_white: modified two lang strings 2012-04-23 15:20:34 +08:00
Ankit Agarwal 05f9d136a8 MDL-28735 calendar: Fixing issues with course selection dropdown 2012-04-23 15:10:35 +08:00
Dan Poltawski be7358bc18 Merge branch 'wip-MDL-32497-master' of git://github.com/marinaglancy/moodle 2012-04-23 14:25:59 +08:00
Dan Poltawski 4e25e4696b Merge branch 'wip_mdl-31540-master' of https://github.com/iarenaza/moodle
Conflicts:
	auth/ldap/auth.php
2012-04-23 13:55:00 +08:00
Dan Poltawski b68eef5e0b Merge branch 'MDL-32462' of git://github.com/timhunt/moodle 2012-04-23 12:54:01 +08:00
Dan Poltawski 544cfe962e Merge branch 'MDL-32104-master' of git://github.com/ankitagarwal/moodle 2012-04-23 12:49:56 +08:00
Dan Poltawski e0ed91ba39 Merge branch 'MDL-29262' of git://github.com/stronk7/moodle
Conflicts:
	version.php
2012-04-23 12:42:16 +08:00
Dan Poltawski fb1b14299a Merge branch 'w17_MDL-25407_m23_innodb' of git://github.com/skodak/moodle 2012-04-23 12:24:39 +08:00
Dan Poltawski e7e0f8d27f Merge branch 'MDL-32215-master' of git://github.com/sammarshallou/moodle
Conflicts:
	course/simpletest/testcourselib.php
    lib/db/upgrade.php
	version.php
2012-04-23 12:20:57 +08:00
Dan Poltawski bebf083159 Merge branch 'w17_MDL-31607_m23_login' of git://github.com/skodak/moodle 2012-04-23 11:47:11 +08:00
Jerome Mouneyrac e1f9702056 MDL-31431 webservices: improve user pic docs
Explain how to retrieve profile picture when forcelogin is set to NO and guestaccess to Yes
2012-04-23 11:42:30 +08:00
Dan Poltawski f488088109 Merge branch 'w17_MDL-32569_m23_phpunit5' of git://github.com/skodak/moodle 2012-04-23 11:21:06 +08:00
Dan Poltawski eadff47811 Merge branch 'master_MDL-29975' of git://github.com/danmarsden/moodle 2012-04-23 10:59:17 +08:00
Dan Poltawski 0439fed4d3 Merge branch 'MDL-30187-master-2' of git://git.luns.net.uk/moodle 2012-04-23 10:51:02 +08:00
Dan Poltawski 42b206e47a Merge branch 'MDL-32459-master-1' of git://git.luns.net.uk/moodle 2012-04-23 10:42:42 +08:00
Dan Poltawski 75285aa03a Merge branch 'wip_mdl-16646_master' of https://github.com/iarenaza/moodle 2012-04-23 10:32:37 +08:00
Dan Poltawski c6d2dca7a0 Merge branch 'MDL-23647_master' of git://github.com/lazydaisy/moodle 2012-04-23 10:27:44 +08:00
Dan Poltawski d6dd4f40e1 Merge branch 'w17_MDL-32451_m23_wikistrict' of git://github.com/skodak/moodle 2012-04-23 10:25:54 +08:00
Dan Poltawski a50a1b5dbf Merge branch 'w17_MDL-32512_m23_estrict' of git://github.com/skodak/moodle 2012-04-23 10:22:04 +08:00
Dan Poltawski 1d99324f38 Merge branch 'w17_MDL-32451_m23_blockstrict' of git://github.com/skodak/moodle 2012-04-23 10:16:27 +08:00
Dan Poltawski c4974b077a Merge branch 'w17_MDL-32576_m23_markdown' of git://github.com/skodak/moodle 2012-04-23 10:09:02 +08:00
Dan Poltawski 242c26e063 Merge branch 'w17_MDL-32575_m23_typo3' of git://github.com/skodak/moodle 2012-04-23 10:07:07 +08:00
Dan Poltawski 1c8be0eb7f Merge branch 'w17_MDL-32574_m23_adodb' of git://github.com/skodak/moodle 2012-04-23 10:00:24 +08:00
Chris Follin 895e76ea51 MDL-32492 auth/cas: respect https login links 2012-04-23 09:49:19 +08:00
Marina Glancy dc571f3010 MDL-32497: WebDAV repository need to return more information and work correctly with subdirs 2012-04-23 09:34:08 +08:00
Marina Glancy 6819c4287d MDL-32417: Fixed pagination bug in Flickr search results, also return thumbnail sizes 2012-04-23 09:33:58 +08:00
Marina Glancy 8685679a2a MDL-31928: Fixing bugs in repository_url
- if the same image occurs several times on the page list it only once
- resolve image path correctly if it has a query string
- show images included in CSS
- non-JS file picker ignores thumbnail width and height attributes (this is a temp fix until renderers are implemented)
2012-04-23 09:33:27 +08:00
Aaron Barnes 412cecc32b MDL-32249 completion: Round course grades and remove hardcoded string 2012-04-23 12:18:44 +12:00
Jason Fowler f77f2406fe MDL-26959 - Blog - changing wording of the entry delete confirmation string to make it more appropriate 2012-04-23 08:01:22 +08:00
Dan Marsden cbed6472b4 MDL-32102 Course completion - only restore user completion if not adding to existing course 2012-04-23 11:30:11 +12:00
Petr Skoda b29487664d MDL32575 make sure typo3 is not confused by non-string data types 2012-04-23 00:20:47 +02:00
Eloy Lafuente (stronk7) 749fd68cbb MDL-29262 restore: Clean controller obj form DB once finished ok 2012-04-23 00:14:32 +02:00
Eloy Lafuente (stronk7) 6e803b9fe4 MDL-29262 backup: Clean controller obj form DB once finished ok 2012-04-23 00:03:37 +02:00
Eloy Lafuente (stronk7) 14e2704ad4 MDL-29262 backup: new setting to control the ttl of backup logs
Add one new backup setting, moving from the general CFG->loglifetime,
to be able to delete backup logged information often.
2012-04-22 21:23:55 +02:00
Petr Skoda 5563f5fbbb MDL-31553 do not timeout CLI upgrade scripts
Credit goes to Michael Aherne.
2012-04-22 17:51:06 +02:00
Petr Skoda cdbea7eed1 MDL-31607 use full course object for require_login() if already available
This eliminates 1 db query.
2012-04-22 17:41:47 +02:00
Petr Skoda fb8e3faba2 MDL-32569 always set $CFG->wwwroot to http://www.example.com/moodle in test environment 2012-04-22 17:23:20 +02:00
Petr Skoda bcecc9ba68 MDL-32574 basic addodb connection tests + improved connection handling in enrol_database
This should allow us to allow connection via dsn which will allow a lot more options in the future.
2012-04-22 11:03:32 +02:00
AMOS bot 49e87823c6 Automatically generated installer lang files 2012-04-22 00:31:37 +00:00
Petr Skoda e4ba066f1d MDL-32576 import Markdown 1.2.5 2012-04-21 22:17:41 +02:00
Petr Skoda bc5c10f69e MDL-32575 import latest Typo3 libs for textlib and other improvements
Includes new textlib reset, new test for faulty integer lower/upper casing.
2012-04-21 21:31:03 +02:00
Petr Skoda ee97a3adbb MDL-32574 import adodb 5.16 2012-04-21 20:02:29 +02:00
Petr Skoda d88b0f9c29 MDL-32569 remove unittestprefix from config-dist.php, do not link other pages from old UI 2012-04-21 17:50:40 +02:00
Petr Skoda 37ba2528c1 MDL-32569 convert the remaining tests 2012-04-21 17:47:30 +02:00
Petr Skoda 4ca04fb58b MDL-32569 remove remaining references to simpletest and improve events test 2012-04-21 17:08:30 +02:00
Petr Skoda f596005b6c MDL-32569 drop migrated module tests 2012-04-21 16:58:07 +02:00
Petr Skoda 2338458ac5 MDL-32569 drop all migrated question simpletests 2012-04-21 16:43:34 +02:00
Petr Skoda 5c3d290d75 MDL-32569 drop outdated webservice tests - it will be replaced by new tests soon 2012-04-21 16:37:45 +02:00
Petr Skoda 7a636d6e7f MDL-32569 drop migrated core simpletests 2012-04-21 16:36:37 +02:00
Petr Skoda 05d531a5fb MDL-32569 drop old functional DB tests 2012-04-21 16:32:14 +02:00
Petr Skoda f59f03ad2d MDL-32569 drop more core simpletests that were already migrated 2012-04-21 16:27:30 +02:00
Petr Skoda bb7898c6ab MDL-32569 convert remaining backup tests and drop old simpletests 2012-04-21 16:24:33 +02:00
Petr Skoda 10156165ae MDL-32569 hide old SimpleTest UI 2012-04-21 16:13:38 +02:00
Petr Skoda b38d2ce7f8 MDL-32569 move other test related files to new tests directory 2012-04-21 16:11:36 +02:00
Petr Skoda f2c648edc3 MDL-25407 ignore errors when converting to InnoDB and ignore timeout
This should help resolve problems with table views and other unsupported stuff.
2012-04-21 11:50:43 +02:00
Petr Skoda 7e41a08d7a MDL-32512 remove deprecated table_sql constructor breaking E_STRICT 2012-04-21 11:26:14 +02:00
Petr Skoda b3aad0a25a MDL-32451 fix block edit strict issue 2012-04-21 11:21:21 +02:00
Petr Skoda dde4368ffc MDL-32451 fix remaining E_STRICT issues in wiki 2012-04-21 11:15:39 +02:00
Petr Skoda c8bd9402ea MDL-32449 import latest version of TinyMCE 3.5dev 2012-04-21 11:04:54 +02:00
Petr Skoda 0e83167422 addinstance support in book 2012-04-21 09:39:25 +02:00
Andrew Davis babc03f400 MDL-32082 message: added a function to make user checks more readable 2012-04-21 10:45:10 +07:00
Petr Skoda 6e9f0fd15d MDL-32569 improve SimpleTest emulation 2012-04-20 22:20:43 +02:00
Charles Fulton 2f8b49d569 MDL-25695 wiki: enable anchor tags 2012-04-20 12:47:23 -07:00
Charles Fulton 66150286b5 MDL-28657 backup: make automated backup filenames site admin-configurable 2012-04-20 08:52:56 -07:00
Charles Fulton d402ee1c56 MDL-19263 assignment: only notify users enrolled in course 2012-04-20 06:10:33 -07:00
Tim Hunt 9d58dae33b MDL-32322 quiz reports: fix PHPdoc comments. Thanks Smurf. 2012-04-20 11:34:56 +01:00
Tim Hunt 33af12eb8c MDL-32462 accesslib: fix context_user::build_paths performance
The problem was that the query was updating every row whether it needed
it or not. This turns out to be a really bad thing to do on Postgres,
because it then triggers a long expensive vacuum, which lock the context
table for a long time a really bad thing to do.
2012-04-20 10:09:44 +01:00
Tim Hunt c0270961a8 MDL-32322 more changes to make the code more similar before refactoring. 2012-04-20 10:07:28 +01:00
Tim Hunt 361cf27d7f MDL-32322 quiz reports: refactor processing actions. 2012-04-20 10:07:26 +01:00
Tim Hunt e97d60adce MDL-32322 quiz reports: pass options object -> table, not separate args. 2012-04-20 10:07:25 +01:00
Tim Hunt 9e67e357eb MDL-32322 quiz_reports: move some more options into the options class. 2012-04-20 10:07:23 +01:00
Tim Hunt ac4d91575a MDL-32322 quiz reports: name improvement attempt_report -> attempts_report. 2012-04-20 10:07:22 +01:00
Tim Hunt dcd65f1b4f MDL-32322 quiz reports: extract a mod_quiz_attempt_report_options class.
More clean-ups are possible in the reports after this, but I am committing now, having got the code back to a working state.
2012-04-20 10:07:21 +01:00
Tim Hunt 303aa3b8d0 MDL-32322 quiz reports: killing more duplication. 2012-04-20 10:07:19 +01:00
Tim Hunt 5ca45fddab MDL-32322 quiz reports: eliminate more duplication. 2012-04-20 10:07:18 +01:00
Tim Hunt 5bf8a1695d MDL-32322 quiz reports: defines -> class constants. 2012-04-20 10:07:17 +01:00
Tim Hunt 2639a68ad5 MDL-32322 quiz reports: refactor the settings forms to eliminate duplication. 2012-04-20 10:07:15 +01:00
Tim Hunt 4747c788c0 MDL-32322 quiz reports: edit to increase duplication, before refactoring. 2012-04-20 10:07:14 +01:00
Tim Hunt 768a758854 MDL-32322 quiz reports: Appease the great god codechecker. 2012-04-20 10:07:12 +01:00
Tim Hunt 90fbad644b MDL-32322 quiz reports: fix more strict syntax issues. 2012-04-20 10:07:11 +01:00
Tim Hunt 8d76124c5b MDL-32322 quiz reports: fix up PHP doc comments. 2012-04-20 10:07:09 +01:00
Tim Hunt 6b4e2d76a3 MDL-32322 quiz reports: rename classes, and fix one strict syntax. 2012-04-20 10:07:08 +01:00
Tim Hunt f5e42695bd MDL-32322 quiz reports: split attemptsrepor.php into one file per class. 2012-04-20 10:07:06 +01:00
Tim Hunt 26aded5581 MDL-32322 quiz reports: get_context_instance -> new classes.
Also, eliminate unnecessary use of global $COURSE.
2012-04-20 10:07:05 +01:00
Tim Hunt e66c9c077b MDL-32519 completio: Fix spelling of Enrolled. 2012-04-20 09:47:43 +01:00
Andrew Davis af4f61720d MDL-32191 grade:renamed a mis-spelled string name
AMOS BEGIN
 MOV [invalidgradeitmeid,error],[invalidgradeitemid,error]
AMOS END
2012-04-20 12:03:34 +07:00
Andrew Davis 1218879656 MDL-31429 enrol: added db/messages.php for enrolment plugins and added some smarts to messaging so it won't display message settings for disabled enrolment plugins 2012-04-20 11:48:46 +07:00
Chris Follin b804a56d2c MDL-31429 enrol: Add missing string for PayPal enrolment messages.
Signed-off-by: Andrew Davis <andrew@moodle.com>
2012-04-20 10:47:00 +07:00
Ankit Agarwal 33c5202ba2 MDL-32104 forum: Fixing issue with logs during restore 2012-04-20 08:55:40 +08:00
Ankit Agarwal 9ffd29ceb3 MDL-31548 enrollments: Introducing new api enrol_get_all_users_courses() that returns all user courses without any checks 2012-04-20 08:54:06 +08:00
AMOS bot 68fe261e4b Automatically generated installer lang files 2012-04-20 00:32:25 +00:00
Adrian Greeve 5dedd64d58 MDL-30478 - wiki - Fixing up group problems when viewing and creating wiki pages.
Thanks to Matt Kolb for his contribution.
2012-04-20 07:27:50 +08:00
Dan Marsden d5159fb8d3 MDL-29975 SCORM improve pop-up generation 2012-04-20 10:28:12 +12:00
Petr Skoda 9a251f1884 MDL-32477 tests for cloning of permissions 2012-04-19 22:09:32 +02:00
Petr Skoda a36e170f7c MDL-32477 allow cloning of plugin permissions from core
Please note it is discouraged to clone from different plugin type because the upgrade order is not guaranteed.
2012-04-19 22:09:32 +02:00
Henning Bostelmann 2159c1eaed MDL-32490 Offline assignment: do not display lateness information 2012-04-19 19:27:11 +01:00
sam marshall cf76b3353c MDL-32215 Course: Ensure section entries are unique on course, section 2012-04-19 15:16:56 +01:00
Dan Poltawski ead4f180a0 weekly release 2.3dev 2012-04-19 17:47:01 +08:00
Dan Poltawski d10a9ee4df Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-04-19 17:37:38 +08:00
Iñaki Arenaza 7cac2608ae MDL-16646 auth/cas CAS configuration page mis-spellings
Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2012-04-18 18:42:05 +02:00
Andrew Robert Nicols 2e83961018 MDL-32514 Remove onclick for the group delete button 2012-04-18 11:52:00 +01:00
Dan Poltawski f0ab3a05e3 Merge branch 'w16_MDL-32377_m23_strcache' of git://github.com/skodak/moodle 2012-04-18 18:30:03 +08:00
Tim Hunt 34b037dec6 MDL-32396 more quiz strict syntax problems. 2012-04-18 16:05:13 +08:00
Jerome Mouneyrac b449d3b7a2 MDL-30225 add some phpdoc mentioning to avoid to use broken get_user_capabilities ws lib function 2012-04-18 14:03:54 +08:00
Eloy Lafuente (stronk7) 099aaa8d51 Merge branch 'MDL-32061-master-2' of git://git.luns.net.uk/moodle 2012-04-18 02:31:47 +02:00
Eloy Lafuente (stronk7) 80695b2d51 MDL-32448 import YUI 3.5.0: update readme 2012-04-17 18:15:16 +02:00
Dan Poltawski a161888254 Merge branch 'MDL-30225' of git://github.com/mouneyrac/moodle 2012-04-17 18:53:32 +08:00
Jerome Mouneyrac fbf6cfe6fc MDL-30225 Creating new web service tokens create error 2012-04-17 18:08:55 +08:00
Dan Poltawski 285665550d MDL-26500 blog: Rewrite pluginfile urls in RSS 2012-04-17 17:47:11 +08:00
Dan Poltawski 20d1c739dd MDL-26500 mod/glossary: Rewrite pluginfile urls in RSS 2012-04-17 17:47:11 +08:00
Dan Poltawski af89cdd43b MDL-26500 mod/forum: Rewrite pluginfile urls in RSS 2012-04-17 17:47:11 +08:00
Dan Poltawski ec0a11285d MDL-19549 lang: make a string less scary 2012-04-17 17:14:25 +08:00
Dan Poltawski bb0bd8cb58 Merge branch 'MDL-25660-workshop-calendar' of git://github.com/mudrd8mz/moodle
Conflicts:
	mod/workshop/lang/en/workshop.php
	mod/workshop/version.php
    mod/workshop/db/upgrade.php
2012-04-17 16:31:41 +08:00
Dan Poltawski d3272039b2 MDL-28176 lang - rephrase conditional access description 2012-04-17 13:37:06 +08:00
Dan Poltawski f7b16c4220 MDL-32134 lang: Add missing PNG string 2012-04-17 10:58:39 +08: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
AMOS bot 68c6444c9a Automatically generated installer lang files 2012-04-17 00:31:44 +00:00
Eloy Lafuente (stronk7) 2a1f43a1db Merge branch 'w16_MDL-32448_m23_yui350' of git://github.com/skodak/moodle 2012-04-17 00:29:35 +02:00
Eloy Lafuente (stronk7) bf8086623d Merge branch 'MDL-32359' of git://github.com/timhunt/moodle 2012-04-17 00:16:28 +02:00
Petr Skoda d7b44d5e95 MDL-32377 do not rewrite on-disk string cache when double checking if string really does not exist in get_string()
This should help with performance on production sites and may indirectly resolve race condition problems in MDL-31904.
2012-04-16 23:58:50 +02:00
Petr Skoda ea7d4b0972 MDL-32377 do not store incomplete component strings without local packs in on-disk string cache 2012-04-16 23:55:35 +02:00
Dan Poltawski 74c7692265 Merge branch 'w16_MDL-32437_m23_tablename' of git://github.com/skodak/moodle 2012-04-16 20:50:21 +08:00
Andrew Robert Nicols 38a8779d81 MDL-32061 Use old lesson_answer ID and correct when restoring lesson attempts 2012-04-16 13:39:43 +01:00
Andrew Robert Nicols b1d45bbbac MDL-32459 Adjust order of remote enrolment help text to suit form order 2012-04-16 11:50:16 +01:00
Petr Skoda 36902e062e MDL-32448 import YUI 3.5.0 2012-04-16 11:59:43 +02:00
Andrew Robert Nicols 8219502369 MDL-32454 Fix issues highlighted by strict warnings in MNet code 2012-04-16 09:34:41 +01:00
Dan Poltawski 54e4d1b3a1 Merge branch 'w16_MDL-32400_m23_phpunit4' of git://github.com/skodak/moodle 2012-04-16 16:12:35 +08:00
Andrew Robert Nicols f50633a5c7 MDL-30187 Make mahara network logo transparent
With thanks to Roshan Kumar for supplying this fix
2012-04-16 09:10:47 +01:00
Dan Poltawski aa4ebbe5f7 Merge branch 'MDL-32358' of https://github.com/ppichet/moodle 2012-04-16 14:31:07 +08:00
Dan Poltawski db27798502 Merge branch 'MDL-31694' of git://github.com/mouneyrac/moodle 2012-04-16 14:27:18 +08:00
Dan Poltawski ef4965afe4 Merge branch 'MDL-32396' of git://github.com/timhunt/moodle 2012-04-16 13:55:25 +08:00
Dan Poltawski 71504afc99 Merge branch 'w16_MDL-32392_m23_minversion' of git://github.com/skodak/moodle 2012-04-16 13:52:50 +08:00
Dan Poltawski 5599620feb Merge branch 'MDL-32438-master' of git://github.com/micaherne/moodle 2012-04-16 13:46:03 +08:00
Dan Poltawski 04b16edb6d Merge branch 'w16_MDL-32434_m23_droptemp' of git://github.com/skodak/moodle 2012-04-16 13:40:32 +08:00
Sam Hemelryk 6669669fdb Merge branch 'MDL-29174-master' of git://github.com/raymanuk/moodle 2012-04-16 17:37:06 +12:00
Dan Poltawski 2e70e457bd Merge branch 'w16_MDL-32423_m23_flowplayer' of git://github.com/skodak/moodle 2012-04-16 13:32:40 +08:00
Sam Hemelryk a02e2eafa4 Merge branch 'w16_MDL-32405_m23_estrict4' of git://github.com/skodak/moodle 2012-04-16 17:31:45 +12:00
Dan Poltawski 788c5164aa Merge branch 'wip-MDL-32393-m23' of git://github.com/samhemelryk/moodle 2012-04-16 13:29:04 +08:00
Sam Hemelryk 9f31cf9f33 Merge branch 'w16_MDL-32447_m23_tcpdf' of git://github.com/skodak/moodle 2012-04-16 17:25:27 +12:00
Dan Poltawski a096a21ef3 MDL-32443 queupgradehelper cli: fix path & whitespace 2012-04-16 13:22:53 +08:00
Eric Merrill 8767142576 MDL-32443 qeupgradehelper: Add cli tool to execute qeupgrade helper 2012-04-16 13:16:17 +08:00
Sam Hemelryk 0064f3cfbb MDL-32393 navigation: Fixed up issue when rendering action_link instances for the navigation 2012-04-16 17:12:48 +12:00
Sam Hemelryk fa3671d49f Merge branch 'MDL-32385_master' of git://github.com/lazydaisy/moodle 2012-04-16 17:06:15 +12:00
Dan Poltawski 31aec26c18 Merge branch 'MDL-32404' of git://github.com/timhunt/moodle 2012-04-16 13:01:48 +08:00
Sam Hemelryk 52bb02020d Merge branch 'MDL-32444_master' of git://github.com/lazydaisy/moodle 2012-04-16 15:59:55 +12:00
Sam Hemelryk d4e2d9463e MDL-32353 fixed up very minor whitespace 2012-04-16 15:23:05 +12:00
Sam Hemelryk cb4b46f45c Merge branch 'MDL-32353' of git://github.com/merrill-oakland/moodle 2012-04-16 15:14:45 +12:00
Sam Hemelryk e3d34313ab Merge branch 'MDL-26099-workshop-phase-switch' of git://github.com/mudrd8mz/moodle 2012-04-16 15:00:20 +12:00
Dan Poltawski 20dcbbf26a Merge branch 'MDL-32442' of git://github.com/merrill-oakland/moodle 2012-04-16 10:45:02 +08:00
Dan Poltawski 570d76c456 Merge branch 'wip-MDL-32381-master' of git://github.com/marinaglancy/moodle 2012-04-16 10:35:56 +08:00
Dan Poltawski 85b0540605 Merge branch 'wip-MDL-32395-m23' of git://github.com/samhemelryk/moodle 2012-04-16 10:32:09 +08:00
ppichet c9340ac145 MDL-32358 : numerical question: validation messages errors
The selected unit parameter is added answer paramter when renderer call
 $question->get_validation_error() so that it mimics the
is_complete_response(array $response) structure.
2012-04-15 22:11:10 -04:00
Sam Hemelryk 448cebee57 Merge branch 'master_MDL-32388' of git://github.com/danmarsden/moodle 2012-04-16 12:23:23 +12:00
Kordan 8b83e36e60 MDL-32355 theme_formal_white: changed the order of parent themes 2012-04-16 12:06:13 +12:00
Kordan 71e5d66642 MDL-32355 formal_white: improved reliability e maintainability 2012-04-16 12:04:56 +12:00
Sam Hemelryk d8b09e5eb2 Merge branch 'MDL-32356_master' of git://github.com/kordan/moodle 2012-04-16 12:00:55 +12:00
Sam Hemelryk 885d208283 Merge branch 'MDL-32433_master' of git://github.com/kordan/moodle 2012-04-16 11:58:17 +12:00
Sam Hemelryk 2a535174c0 MDL-32426 phpunit: Fixed up phpdocs for generator changes 2012-04-16 11:52:56 +12:00
Sam Hemelryk e3a660a2e7 Merge branch 'MDL-32426-master-1' of git://git.luns.net.uk/moodle 2012-04-16 11:52:12 +12:00
Sam Hemelryk f295ffebd0 Merge branch 'MDL-30819_grader_col_highlight' of git://github.com/andyjdavis/moodle 2012-04-16 11:45:55 +12:00
Sam Hemelryk be58371e4e Merge branch 'MDL-30955_forum_ratings' of git://github.com/andyjdavis/moodle 2012-04-16 11:34:39 +12:00
Mary Evans cbeb231f05 MDL-23647 theme_anomaly: Removed margin + added padding to current week main content to give it more definition. 2012-04-16 00:27:32 +01:00
Sam Hemelryk b9afb90b7f Merge branch 'MDL-32316_master_wip' of git://github.com/grabs/moodle 2012-04-16 11:00:43 +12:00
Sam Hemelryk 68c7673088 Merge branch 'MDL-27547' of git://github.com/mouneyrac/moodle 2012-04-16 10:48:15 +12:00
Petr Skoda 54c5b1ad35 MDL32392 delete unused is_min_version() in some DB drivers 2012-04-15 19:40:07 +02:00
Petr Skoda c990e4bfcb MDL-32405 fix PHP4isms and other E_STRICT issues in custom profile fields 2012-04-15 17:15:50 +02:00
Petr Skoda 66b3302dec MDL-32405 workaround for non-static PEAR::raise_error() and fixed -1 debug support 2012-04-15 17:02:26 +02:00
Petr Skoda 585ae3d949 MDL-32447 import latest tcpdf and point cache to tcpdf subdirectory of moodle cache dir 2012-04-15 16:08:46 +02:00
Petr Skoda afd1c47c10 MDL32423 import latest flowplayer 2012-04-15 15:59:07 +02:00
Petr Skoda 7467f4c911 MDL-32437 add gradebook querylib tests 2012-04-15 14:23:07 +02:00
Petr Skoda f41741e7ba MDL-32437 fix invalid gradebook query sql 2012-04-15 14:20:14 +02:00
Petr Skoda 6b04fdc0b6 MDL-32400 improve module generators
Module generators are using standard *_add_instance() methods which helps with testing, it also updates grades and calendar events if used.
2012-04-15 14:16:59 +02:00
Petr Skoda 322cf28415 MDL-32400 fix PHPUnit configuration file paths on windows 2012-04-15 12:23:42 +02:00
Petr Skoda 0684ea9972 MDL-32400 do not silence diagnostic PHPUnit includes 2012-04-15 12:23:42 +02:00
Petr Skoda 0d8e51a65f MDL-32400 rework phpunit exit codes, use only php based init 2012-04-15 12:23:42 +02:00
Petr Skoda 589376d385 MDL-32400 ignore outdated config settings in future upgrades 2012-04-15 12:23:41 +02:00
Petr Skoda e2b8630b5c MDL-32400 store version hash also in database
This prevents problems when switching databases in config.php and keeping the same test dataroot.
2012-04-15 12:23:41 +02:00
Petr Skoda 4059b64510 MDL-32400 convert completion tests 2012-04-15 12:23:41 +02:00
Petr Skoda a66b2ae4f4 MDL-32434 deprecate drop_temp_table() in favour of drop_table() 2012-04-15 12:23:15 +02:00
Mary Evans 3689a8599b MDL-32444 theme_afterburner: adds 5px margin to the left of #loginbtn, input, button, select in /style/afterburner_styles.css 2012-04-15 01:37:55 +01:00
Tim Hunt b8a70832be MDL-32404 question export: missing error message when exporting an empty category. 2012-04-14 15:58:54 +01:00
Tim Hunt c691f2f513 MDL-32396 quiz: Strict syntax notice on the quiz attempt page. 2012-04-14 15:58:47 +01:00
Tim Hunt f9e41d206d MDL-32359 Forum usability: reduce accidental clicks on mark thread read
I hope this little CSS change does not break anybody's theme. I is a big
usability win, at least as far as I am concerned.
2012-04-14 15:58:39 +01:00
Mary Evans 0465dd3e01 MDL-32385 theme_base: adds line-height:normal in style/course.css for section summary 2012-04-14 14:40:09 +01:00
Eric Merrill 288893f3a7 MDL-32442 questionupgrade: error in SQL from postgres systems 2012-04-14 09:05:12 -04:00
AMOS bot 32b2d5e7dc Automatically generated installer lang files 2012-04-14 00:31:53 +00:00
Petr Skoda 9b3323b8be MDL-32434 allow database_manager->drop_table() for temporary tables 2012-04-13 16:58:17 +02:00
Michael Aherne b09912f8ab MDL-32438 choice: fix fatal error on making choice 2012-04-13 15:16:12 +01:00
David Mudrak 2fc04a4b9b MDL-26099 fixing the strict standards warning
The signature of mod_workshop_mod_form::validation() is now compatible
with that of moodleform_mod::validation() even though the parent's
declaration sucks. No one can choose their parents.
2012-04-13 14:04:43 +02:00
kordan 275526d27a MDL-32433_master theme_formal_white: increased the line spacing in plugin list page 2012-04-13 13:24:05 +02:00
David Mudrak 33d0cb3ce1 MDL-25660 workshop removes its calendar events on instance deletion 2012-04-13 13:10:04 +02:00
David Mudrak cb48a42ada MDL-25660 recreate all workshop calendar events
Due to complex workshop upgrade path from 1.9 and missing calendar events
support in 2.x, the only safe way to get rid of potentially invalid
calendar events (such as those reported in MDL-26687) is to remove all
current workshop events and recreate them from scratch.
2012-04-13 04:58:10 +02:00
David Mudrak ac069aeb9d MDL-25660 workshop registers events in the calendar 2012-04-13 04:52:40 +02:00
David Mudrak 9260bb3c48 MDL-26099 workshop can be switched into the assessment phase automatically 2012-04-13 04:49:46 +02:00
David Mudrak 3fe6d62289 MDL-26099 workshop planner tool displays info about the automatic phase switching 2012-04-13 04:49:46 +02:00
David Mudrak 40ff3ce33c MDL-26099 New i/scheduled icon
Based on http://commons.wikimedia.org/wiki/File:Appointment-new.svg
(public domain Tango! Desktop Project icon)
2012-04-13 04:49:46 +02:00
David Mudrak 3ff0805726 MDL-26099 new workshop DB field phaseswitchassessment
Note that most line changes in the patch are caused by the recent
changes in the XMLDB TEXT fields handling (no size specified now) and by
the change in the indentation.
2012-04-13 04:49:46 +02:00
David Mudrak df558765a4 MDL-26099 validate the phases open dates and deadlines 2012-04-13 04:49:46 +02:00
David Mudrak a80b772864 MDL-32235 scheduled allocation settings form displays the execution status
AMOS BEGIN
 CPY [allocationsettings,workshopallocation_random],[randomallocationsettings,workshopallocation_scheduled]
AMOS END
2012-04-13 04:49:46 +02:00
David Mudrak 2a3aac40e4 MDL-32235 execute scheduled allocation by cron 2012-04-13 04:49:46 +02:00
David Mudrak 782a35e225 MDL-32235 fixing DB schema
Removing the table "scheduled" created by the XMLDB by default (it's a
bug in XMLDB, I'm just too lazy now to fix it). Adding new fields to
hold the result of the most recent execution.
2012-04-13 04:49:46 +02:00
David Mudrak f6bc60cbe4 MDL-32235 workshop cron support
On every invocation, the workshop will give its subplugins a chance to
to something useful. For now, we know that the scheduled allocator will
use it, no need to load other plugin types yet (until there will be a
real reason for it).
2012-04-13 04:49:46 +02:00
David Mudrak 9f8f380832 MDL-32235 the allocation settings form can be saved and edited 2012-04-13 04:49:46 +02:00
David Mudrak 9862128087 MDL-32235 introducing new workshop scheduled allocation plugin
The idea is to build a plugin that will internally call the random
allocator when the submissions deadline is reached. The teacher is able
to pre-define the configuration for the random allocator.
2012-04-13 04:49:45 +02:00
David Mudrak b7cd6736e8 MDL-32235 workshop random allocator now uses the new workshop_allocation_result class 2012-04-13 04:49:45 +02:00
David Mudrak 8a62500fd5 MDL-32235 workshop manual allocator now uses the new workshop_allocation_result class 2012-04-13 04:49:45 +02:00
David Mudrak 31cea236af MDL-32235 improving the allocation results rendering
The new renderable class workshop_allocation_result provides a cleaner
interface between the allocator's init() method and the allocation.php
script.
2012-04-13 04:49:45 +02:00
David Mudrak 0ee608e99d MDL-32235 preparing the random allocator's API
The random allocator's init() method was split into two logical
parts. The init() now handles data from the form and executes the new
execute() method to do the actual job. The execute() method will be
called by the future scheduled allocator, too.
2012-04-13 04:49:45 +02: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
Eric Merrill eba9236cea MDL-32353 backup: Flaw in settings logic for user info and anonymise 2012-04-12 11:01:08 -04:00
Kordan c9aeac6299 MDL-32356_master theme_formal_white: swapped style and color in css border style 2012-04-12 16:40:37 +02:00
Andrew Robert Nicols f15d451549 MDL-32426 Add unit test generators for groups and groupings 2012-04-12 15:32:19 +01:00
Marina Glancy 061eeed5df MDL-32381: Fixed Accessing non-static methods in repository class as static (causing php notices) 2012-04-12 15:05:20 +08:00
Jerome Mouneyrac 803ed74166 MDL-31694 Fix XSS security issue with service name accepting javascript 2012-04-12 14:44:16 +08:00
Dan Poltawski 668a499d89 weekly release 2.3dev 2012-04-12 13:29:01 +08:00
Dan Poltawski 86be24f5a6 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-04-12 12:59:33 +08:00
AMOS bot 5e937e8da1 Automatically generated installer lang files 2012-04-12 00:31:23 +00:00
Eloy Lafuente (stronk7) 7823af0994 MDL-32323 tests: check both deletion with truncate and with delete 2012-04-12 00:13:38 +02:00
Petr Skoda 5a798e7eac MDL-32323 improve SQL Server test reset performance 2012-04-11 23:21:05 +02:00
Petr Skoda bd42a2657e MDL-32323 do try to fetch all other grade objects with existing test fields 2012-04-11 22:56:27 +02:00
Petr Skoda 15db9f7d66 MDL-32323 do try to fetch grades with existing test fields 2012-04-11 22:41:37 +02:00
Petr Skoda 8eaa21e195 MDL-32323 fix issues breaking phpunit tests for sqlsrv driver 2012-04-11 22:14:18 +02:00
Kordan e78356a095 MDL-32356_master theme_formal_white: fixed a typo in a comment 2012-04-11 13:56:59 +02:00
Dan Marsden b952d27517 MDL-32388 SCORM: Fix chrome pop-ups 2012-04-11 20:46:53 +12:00
Jerome Mouneyrac bc81eadb19 MDL-27547 When deleting a local plugin containing a built-in service, the built-in service is not deleted 2012-04-11 14:49:14 +08:00
Sam Hemelryk 3211569a6a Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
This reverts commit f9f281b8fe.
2012-04-11 17:18:58 +12:00
Dan Poltawski 7a1ed64587 Merge branch 'w15_MDL-32323_m23_phpunit3' of git://github.com/skodak/moodle 2012-04-11 09:32:58 +08:00
Dan Poltawski 4a59665b9f Merge branch 'MDL-32217' of git://github.com/ppichet/moodle 2012-04-11 09:27:29 +08: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
Eloy Lafuente (stronk7) 6565d55a34 MDL-22895 backup: minor fixes 2012-04-11 01:47:53 +02:00
Eloy Lafuente (stronk7) f229d83c11 Merge branch 'MDL-22895-master' of git://github.com/ankitagarwal/moodle 2012-04-11 01:44:39 +02:00
Sam Hemelryk 9315a5fb59 MDL-32395 dml: Minor phpdoc fixes 2012-04-11 09:47:50 +12:00
Sam Hemelryk e19dc11e51 MDL-30843 editor: Fixed up out of place if 2012-04-11 09:22:14 +12:00
Eloy Lafuente (stronk7) 97d00c9f51 MDL-32368 pgsql: bytea_output only available in 9.0 and upwards 2012-04-10 21:32:56 +02:00
Eloy Lafuente (stronk7) 7b74fb7071 MDL-32392 cleanup: adding @todo about unused is_min_version() method 2012-04-10 21:26:00 +02:00
Petr Skoda 4e5ff72ea7 MDL-32323 always verify that database PHPUnit extension is available 2012-04-10 21:15:33 +02:00
Petr Skoda c691274bf9 MDL-32323 use new loadDataSet in mod_data and fix typos in last commit 2012-04-10 21:07:56 +02:00
Eloy Lafuente (stronk7) 7475638c2a Merge branch 'w15_MDL-32368_m23_bytea' of git://github.com/skodak/moodle 2012-04-10 20:59:34 +02:00
Petr Skoda e396e8ed5f MDL-32323 implement data set loader support in advanced_testcase 2012-04-10 20:58:27 +02:00
Eloy Lafuente (stronk7) 7f3f024d48 MDL-32365 mssql and sqlsrv: introspect metainfo to look for identities 2012-04-10 20:24:05 +02:00
Eloy Lafuente (stronk7) 55edb9416b MDL-32365 oracle: ensure table has 'before each row' trigger to
determine if the 'id' column is sequence based or no
2012-04-10 19:49:34 +02:00
Petr Skoda d2999716aa MDL-32323 all our base test case classes should be abstract 2012-04-10 19:03:24 +02:00
Eloy Lafuente (stronk7) b331269687 Merge branch 'w15_MDL-32365_m23_id' of git://github.com/skodak/moodle 2012-04-10 18:55:33 +02:00
Petr Skoda a4d53e4b26 MDL-32323 make base test case classes abstract to prevent empty testcase warnings, fix property access 2012-04-10 18:51:34 +02:00
Petr Skoda 351f4bc248 MDL-32323 allow specification of test class in webrunner and add some explanation of parameters 2012-04-10 15:27:15 +02:00
Petr Skoda d5d096d0db MDL-32323 add php version of all-in-one phpunit init script 2012-04-10 15:27:14 +02:00
Petr Skoda 39e2e9c41f MDL-32323 prevent modification of our heavily modified runBare() methods
This should help with compatibility of future PHPUnit and it also allows us to improve test reset without breaking existing moodle test cases.
2012-04-10 15:27:14 +02:00
Petr Skoda 920f4efe51 MDL-32323 improve inline docs 2012-04-10 15:27:14 +02:00
Petr Skoda 9571db04d8 MDL_32323 improve test readme 2012-04-10 15:27:14 +02:00
Petr Skoda 95dcf96559 MDL-32323 allow mocking of global $DB 2012-04-10 15:27:13 +02:00
Petr Skoda ce9f3beb53 MDL-32323 automate transaction handling in test reset 2012-04-10 15:27:13 +02:00
Petr Skoda 3124abe213 MDL-32323 simplify phpunit integration readme 2012-04-10 15:27:13 +02:00
Petr Skoda 5b8d5c19fd MDL-32323 convert mod_data search test 2012-04-10 15:27:13 +02:00
Petr Skoda 713d20918f MDL-32323 reset state after failed test 2012-04-10 15:27:12 +02:00
Petr Skoda 9bb2b515ce MDL-32323 fix generator file name typos 2012-04-10 15:27:12 +02:00
Petr Skoda 603bd00112 MDL-32323 convert question tests
1/ type/match/tests/walkthrough_test.php - tests are failing randomly, looks like some weird randomisation is going on there - see TODOs

2/ type/multianswer/tests/upgradelibnewqe_test.php contains invalid expected value - see TODO
2012-04-10 15:27:11 +02:00
Petr Skoda 4594a381e5 MDL-32323 add list of common first and last names + long text
Random users now get proper first and last names, course and category descriptions contains longer text. The names can be also used as source of random complex utf-8 strings.
2012-04-10 15:27:11 +02:00
Petr Skoda b5b10866e2 MDL-32323 require at least PHPUnit 3.6.0 2012-04-10 15:27:11 +02:00
Petr Skoda cbdf52baa5 MDL-32323 add basic mod_data data generator 2012-04-10 15:27:10 +02:00
Petr Skoda c06563c845 MDL-32323 do not pollution config-dist.php with settings that only DML driver devs use 2012-04-10 15:27:10 +02:00
Petr Skoda 7620602cc2 MDL-32323 improve transaction handling in PHPUnit test cases 2012-04-10 15:27:10 +02:00
Petr Skoda 948d46da34 MDL-32323 add grade tests 2012-04-10 15:27:10 +02:00
Petr Skoda b0429d0073 MDL-32323 add basic mod_assignment data generator 2012-04-10 15:27:09 +02:00
Petr Skoda f8965a3d30 MDL-32323 add basic mod_forum data generator 2012-04-10 15:27:09 +02:00
Petr Skoda de3d1590ee MDL-32323 fix PHPUnit diag regression 2012-04-10 15:27:09 +02:00
Petr Skoda b6b8a19316 MDL-32323 improve PHPUnit related diagnotic messages 2012-04-10 15:27:08 +02:00
Petr Skoda e10736b3cc MDL-32323 improve mysql test reset performance 2012-04-10 15:27:08 +02:00
Petr Skoda 27f27eb4f4 MDL-32323 add windows test database init script 2012-04-10 15:27:08 +02:00
Petr Skoda e370154157 MDL-32323 make test locking win compatible 2012-04-10 15:27:08 +02:00
Petr Skoda 3f1e87973f MDL-32323 always create test dirs using standard functions and close handles before delete 2012-04-10 15:27:07 +02:00
Petr Skoda bd4d412a10 MDL-32323 do not write to system /tmp/ in tests 2012-04-10 15:27:07 +02:00
Petr Skoda 31fb8724f6 MDL-32323 undo path mangling, we have to trust admins 2012-04-10 15:27:07 +02:00
Petr Skoda 6c583c75f9 MDL-32323 do lot try to acquire lock before dataroot init 2012-04-10 15:27:07 +02:00
Petr Skoda 4787e466d6 MDL-32323 make sure DDL libs are loaded before starting function db tests 2012-04-10 15:27:06 +02:00
Petr Skoda 2fde539255 MDL-32323 fix PHPUNIT_UTIL constant usage 2012-04-10 15:27:06 +02:00
Petr Skoda 94a994b4fc MDL-32323 fix installer warning 2012-04-10 15:27:06 +02:00
Petr Skoda 812013b1c1 MDL-32323 reset event handlers in phpunit test reset 2012-04-10 15:27:06 +02:00
Petr Skoda a0c5affee6 MDL-32323 test detection of changes and improve coding style 2012-04-10 15:27:05 +02:00
Petr Skoda ab483c0a07 MDL-32323 use auto_increment instead of primary_key for sequence detection and improve coding style 2012-04-10 15:27:05 +02:00
Petr Skoda 219d1a4e72 MDL-32323 improve self-diagnostic messages 2012-04-10 15:27:05 +02:00
Petr Skoda 8b5413ccf2 MDL-32323 rework db reset once more, now with tests 2012-04-10 15:27:05 +02:00
Petr Skoda 50be93d1d7 MDL-32323 add fast transaction based database reset for PostgreSQL 2012-04-10 15:27:04 +02:00
Petr Skoda fe11e694d1 MDL-32323 test database first, if DML/DDL fails everything else will too 2012-04-10 15:27:04 +02:00
Petr Skoda 714f3998a8 MDL-32323 rework buggy database reset optimisation and fix blog tests 2012-04-10 15:27:04 +02:00
Petr Skoda 0b9251e330 MDL-32323 cache structure of all tables and reset sequences only in table where id is primary key 2012-04-10 15:27:04 +02:00
Petr Skoda fe35ccafe3 MDL-32323 fix recently borked detection of DB changes and improve coding style 2012-04-10 15:27:03 +02:00
Petr Skoda 61d3013c8b MDL-32323 fix concurrent run collision caused by setup reset 2012-04-10 15:27:03 +02:00
Petr Skoda 4be2ad3660 MDL-32323 prevent concurrent execution of unit tests 2012-04-10 15:27:03 +02:00
Petr Skoda 3604563c79 MDL-32323 allow execution of tests through util.php and add option to include alternative phpunit files (for testing only!) 2012-04-10 15:27:02 +02:00
Petr Skoda 5987e6932c MDL-32323 more magic to allow init.sh symlinks
from http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
2012-04-10 15:27:02 +02:00
Petr Skoda 3c4c51891c MDL-32323 improve phpunit data generators 2012-04-10 15:27:02 +02:00
Petr Skoda 93c4ee56c7 MDL-32323 fix skipped config rebuild in init script 2012-04-10 15:27:02 +02:00
Petr Skoda 6e2cff2d81 MDL-32323 minor phpunit related improvements and cleanup 2012-04-10 15:27:01 +02:00
Petr Skoda 7b0ff21385 MDL-32323 experimental web UI for execution of PHPUnit tests
It is not localised intentionally because only developers should use it…
2012-04-10 15:27:01 +02:00
Petr Skoda 4b17369567 MDL-32323 all-in-one PHPUnit init script 2012-04-10 15:27:01 +02:00
Petr Skoda 6aaae357c9 MDL-32323 add schema for phpunit.xml configuration file
Credit goes to https://github.com/gooh/phpunit-schema, thanks Gordon Oheim!
2012-04-10 15:27:01 +02:00
Petr Skoda d2b357b923 MDL-32368 fix pg to always use old bytea encoding 2012-04-10 15:25:20 +02:00
Petr Skoda 4bf855771f MDL-32365 fix hardcoded auto-increment on id columns 2012-04-10 15:22:16 +02:00
Petr Skoda 3b4f7338a7 MDL-32365 fix invalid checking for returned id when custom sequence used 2012-04-10 15:22:15 +02:00
Dan Poltawski 3d83a9f504 Merge branch 'MDL-32300' of git://github.com/timhunt/moodle 2012-04-10 17:42:28 +08:00
Sam Hemelryk 9e98c4053a MDL-32124 mod_feedback: Cleanup post-integration of unused var 2012-04-10 17:21:37 +12:00
Sam Hemelryk 9f8662a528 Merge branch 'MDL-32124_master_wip' of git://github.com/grabs/moodle 2012-04-10 17:21:00 +12:00
Andrew Davis 08f06b1c24 MDL-30955 rating: corrected /rating/index.php as it was determining the maximum rating incorrectly for custom scales 2012-04-10 12:01:52 +07:00
Tony Levi 22dc32042a MDL-32379: Fix memory leak in session_set_user
session_set_user mistakingly sets the session user to be a reference to the passed object.

This is a problem when alot of data is attached to the session user object,
as any process holding a list of these users will use more memory each time it changes user.
2012-04-10 14:07:59 +09:30
Dan Poltawski a98ff41f1a Merge branch 'wip-MDL-27427-master' of git://github.com/phalacee/moodle 2012-04-10 12:04:06 +08:00
Dan Poltawski f4bd3cd6c9 Merge branch 'MDL-32347' of git://github.com/timhunt/moodle 2012-04-10 11:34:12 +08:00
Dan Poltawski 44d70cc753 MDL-32299 quiz mod_form: fix help string typo 2012-04-10 11:29:57 +08:00
Dan Poltawski 26932315f1 Merge branch 'MDL-32299' of git://github.com/timhunt/moodle 2012-04-10 11:25:09 +08:00
Dan Poltawski 098312b149 Merge branch 'wip-mdl-30051' of git://github.com/rajeshtaneja/moodle 2012-04-10 11:05:59 +08:00
Dan Poltawski 2d74d8a612 Merge branch 'MDL-32318' of git://github.com/timhunt/moodle 2012-04-10 10:26:49 +08:00
Tim Hunt 59ea81767e MDL-32300 quiz reports: proper frankenstyle prefixes on class names. 2012-04-10 10:04:55 +08:00
Dan Poltawski 4c8ec44828 Merge branch 'MDL-25801' of git://github.com/timhunt/moodle 2012-04-10 09:11:38 +08:00
Sam Hemelryk 0ccb4dcce0 Merge branch 'MDL-32349-master' of git://github.com/sammarshallou/moodle 2012-04-10 12:38:40 +12:00
Sam Hemelryk 50f7bbf95c MDL-30843 admin: Fixed up label for attribute 2012-04-10 12:35:26 +12:00
Sam Hemelryk 5bfeb5ffd3 Merge branch 'MDL-30843_b' of git://github.com/rwijaya/moodle 2012-04-10 12:34:37 +12:00
Sam Hemelryk 859a181627 Merge branch 'wip-mdl-32270' of git://github.com/rajeshtaneja/moodle 2012-04-10 10:53:34 +12:00
Sam Hemelryk aef4aafa0b Merge branch 'w15_MDL-32263_m23_enroladmin' of git://github.com/skodak/moodle 2012-04-10 10:48:34 +12:00
Sam Hemelryk 93068559b7 Merge branch 'w15_MDL-32293_m23_timeout' of git://github.com/skodak/moodle 2012-04-10 10:43:08 +12:00
Sam Hemelryk 756d5f7610 Merge branch 'w15_MDL-32308_m23_sharing' of git://github.com/skodak/moodle 2012-04-10 10:37:45 +12:00
Andreas Grabs bf4fb3b317 MDL-32316 feedback: fix tem type label does honor trusted text 2012-04-10 00:26:08 +02:00
Petr Skoda bcb368d988 MDL-32263 remove broken admin test in enrol_check_plugins() 2012-04-09 19:59:19 +02:00
Hugh Davenport 5b244e2bb0 MDL-32308 Fix error when testing id of guest user 2012-04-09 19:03:45 +02:00
Petr Skoda 0c5406ca93 MDL-32293 move the upgrade_set_timeout() function to lib/upgradelib.php
Credit goes to Eloy Lafuente.
2012-04-09 18:14:27 +02:00
Andrew Davis 13aa8f0e09 MDL-30819 grade: fixed column highlighting on the grader report 2012-04-09 12:28:00 +07:00
Andreas Grabs 31ff56202a MDL-32124 - mails to non respondents are sent as plain text with html-tags 2012-04-07 17:29:52 +02:00
ppichet 57239949ac MDL-32217 Setting options->unitgradingtype 2012-04-06 11:02:13 -04:00
Kordan f0a8c9192b MDL-32356 theme_formal_white: added blockpadding setting 2012-04-06 10:05:59 +02:00
sam marshall ebb98bf53c MDL-32349 Installing can time out with large number of plugins 2012-04-05 18:29:00 +01:00
Tim Hunt a031b0f334 MDL-32347 questions: API improvement for the benefit of strict syntax. 2012-04-05 17:26:44 +01:00
Tim Hunt b9832f2b87 MDL-32318 question preview: fix php stric syntax error
Also, cheating, and committing a whitespace fix in the same commit.

Conflicts:

	question/engine/questionusage.php
2012-04-05 16:42:23 +01:00
Tim Hunt ce74dcc3b6 MDL-32299 quiz mod_form: help icons for the review options 2012-04-05 16:25:32 +01:00
Tim Hunt 7e3ac96cbe MDL-32300 quiz manual grading report: also do some other cleanup. 2012-04-05 15:33:09 +01:00
Tim Hunt d42b8ac2f3 MDL-32300 quiz reports: proper frankenstyle prefixes on class names. 2012-04-05 15:33:07 +01:00
Tim Hunt 5127e52df7 MDL-25801 quiz editing: fix inconsistent grade-related terminology
AMOS BEGIN
 MOV [totalpointsx,mod_quiz],[totalmarksx,mod_quiz]
AMOS END
2012-04-05 15:29:57 +01:00
Eric Merrill f930cf6b41 MDL-32143 output lib: Add ability have override core icons in dataroot
Searches dataroot/pix/ and dataroot/pix_plugins/type/plugin for icons
to override base install
2012-04-05 08:50:16 -04:00
Aparup Banerjee 9ad535c550 weekly release 2.3dev 2012-04-05 16:39:52 +08:00
Aparup Banerjee 5ea892f8c9 fix permissions 2012-04-05 16:36:10 +08:00
Aparup Banerjee 69b101f811 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-04-05 16:19:27 +08:00
Dan Poltawski 8411c24ec1 MDL-20438 pluginlib: Don't run update checker on install
This is unlikely to be the long term solution and so MDL-32329 has been
created to address that
2012-04-04 21:02:07 +08:00
Dan Poltawski 86cfd9966a MDL-32220 question import: readquestions arguments change
Removed the context parameter for blackboard and blackboard_six formats.

This parameter was removed in 4d188926
2012-04-04 14:46:54 +08:00
Aparup Banerjee 5661f7b454 Merge branch 'wip-MDL-31631-m23' of git://github.com/samhemelryk/moodle 2012-04-04 13:40:58 +08:00
Dan Poltawski da859ecf46 MDL-20438 Upgrade version number to triger /admin/ upgrade 2012-04-04 11:18:43 +08:00
Dan Poltawski 660c4d4643 MDL-20438 pluginlib: Fix trivial whitespace issues issues
Also fixed a comment typo I spotted whilst reviewing
2012-04-04 11:18:09 +08:00
Dan Poltawski a973d320f1 Merge branch 'MDL-20438-update-notification' of git://github.com/mudrd8mz/moodle 2012-04-04 11:17:43 +08:00
Sam Hemelryk b8f452165a MDL-32009 reverting changes as they break installation 2012-04-04 14:37:37 +12:00
Sam Hemelryk e96b10b121 MDL-32009 message: Small changes before integration 2012-04-04 14:20:07 +12:00
Sam Hemelryk f1b06f6d54 Merge branch 'MDL-32009-master-1' of git://git.luns.net.uk/moodle 2012-04-04 14:19:32 +12:00
Eloy Lafuente (stronk7) 97e84c80b0 MDL-32149 remove some now breaking expectError() uses.
I've tested that unit with debug developer, debug notices and
debug none and it passes always. So, as far as I cannot find
any reason to have those expectError() there... they are out now.
2012-04-04 03:44:10 +02:00
Eloy Lafuente (stronk7) a3e7cca432 MDL-32149 Delete two more portfolio leftovers preventing simpletests to run
(b60d21747f is where
all the portfolio testing stuff was deleted)
2012-04-04 03:22:05 +02:00
Eloy Lafuente (stronk7) 2000cd85da Merge branch 'w14_MDL-32149_m23_phpunit2' of git://github.com/skodak/moodle 2012-04-04 01:32:15 +02:00
Petr Skoda d78e33488a MDL-32149 adding test changes from MDL-32081 2012-04-04 01:31:43 +02:00
Eloy Lafuente (stronk7) 959a709ebe Merge branch 'MDL-32240' of git://github.com/timhunt/moodle 2012-04-04 00:10:37 +02:00
Eloy Lafuente (stronk7) eeb3295fd8 Merge branch 'wip-MDL-32265-m23' of git://github.com/samhemelryk/moodle 2012-04-03 23:59:07 +02:00
Eloy Lafuente (stronk7) 6643e10f39 Merge branch 'wip-MDL-29678-m23' of git://github.com/samhemelryk/moodle 2012-04-03 23:52:10 +02:00
Petr Skoda 6761e62d6d MDL-32149 link wiki docs and tracker from phpunit readme file 2012-04-03 23:08:25 +02:00
Petr Skoda ce80640051 MDL-32149 final readme cleanup for stage 2 of PHPUnit integration 2012-04-03 22:50:45 +02:00
Petr Skoda 5073880583 MDL-32149 grade related tests 2012-04-03 22:31:03 +02:00
Petr Skoda 0348088621 MDL-32149 tests for conditional activities 2012-04-03 22:31:03 +02:00
Petr Skoda b60d21747f MDL-32149 remove empty tests and outdated/disabled portfolio tests 2012-04-03 22:31:02 +02:00
Petr Skoda 7fe8aac1a7 MDL-32149 add quiz unit tests 2012-04-03 22:31:02 +02:00
Petr Skoda e72ea4a5e4 MDL-32149 add basic file picker test and new way to set current user via int
Please note that testing of individual plugins should not be done in repositorylib_test.php.
2012-04-03 22:31:01 +02:00
Petr Skoda f4fd0a13d1 MDL-32149 navigation tests 2012-04-03 22:31:01 +02:00
Petr Skoda b0e980d77f MDL-32149 prevent accidental overriding of testcase constructors, use setUpBeforeClass() instead 2012-04-03 22:31:01 +02:00
Petr Skoda 4c6062ea65 MDL-32149 scale generator and workshop tests 2012-04-03 22:31:00 +02:00
Petr Skoda 03c2d04d0a MDL-32149 make complete PHPUnit test time 2s faster 2012-04-03 22:31:00 +02:00
Petr Skoda 7514f9c243 MDL-32149 allow defining of PHPUNIT_LONGTEST from /config.php and improve acceslib tests 2012-04-03 22:30:59 +02:00
Petr Skoda ba0c484308 MDL-32149 tests for mod_wiki, mod_lti and mod_scorm 2012-04-03 22:30:59 +02:00
Petr Skoda 78d6314daa MDL-32149 add rating tests 2012-04-03 22:30:58 +02:00
Petr Skoda 2a7ace1193 MDL-32149 add filter tests 2012-04-03 22:30:58 +02:00
Petr Skoda 354b214c9f MDL-32149 courselib tests and support for generation of course sections 2012-04-03 22:30:57 +02:00
Petr Skoda 4b02743182 MDL-32149 improve testcase naming and list in config file 2012-04-03 22:30:57 +02:00
Petr Skoda 7ddef99455 MDL-32149 some more cleanup and testing of PHPUnit asserts 2012-04-03 22:30:56 +02:00
Petr Skoda 1cbf2a20ca MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase 2012-04-03 22:30:56 +02:00
Petr Skoda 814a96edfb MDL-32149 add blog tests 2012-04-03 22:30:55 +02:00
Petr Skoda 4ac88d6d10 MDL-32149 remaining phpunit tests for backup/restore 2012-04-03 22:30:55 +02:00
Petr Skoda 728eadac78 MDL-32149 significantly faster database reset, "util.php --drop" can now be interrupted at any time 2012-04-03 22:30:54 +02:00
Petr Skoda dbf5a44798 MDL-32149 add backup tests and dropping of extra tables 2012-04-03 22:30:54 +02:00
Petr Skoda 458b33866d MDL-32149 reset all globals in PHPUnit tests, fix setting of $USER 2012-04-03 22:30:54 +02:00
Petr Skoda a3d5830a0a MDL-32149 PHPUnit test support - part 2
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Sam Hemelryk cad96a8a36 Merge branch 'MDL-32137-master-1' of git://git.luns.net.uk/moodle 2012-04-04 08:22:16 +12:00
Eloy Lafuente (stronk7) c9d1f4338b MDL-32251 Two more E_STRICT detected on tests execution 2012-04-03 21:59:25 +02:00
Eloy Lafuente (stronk7) 46ed2f8b7f Merge branch 'w14_MDL-32251_m23_strict3' of git://github.com/skodak/moodle 2012-04-03 21:17:58 +02:00
Eloy Lafuente (stronk7) 6c51c08b13 Merge branch 'wip-MDL-32018-m23' of git://github.com/samhemelryk/moodle 2012-04-03 21:04:36 +02:00
Ray Guo 8e6530d897 MDL-29174 Remove the empty modulename_extend_navigation() stub from 7
modules.
2012-04-03 14:38:47 +01:00
Aparup Banerjee c82745d016 Merge branch 'wip-MDL-30784-master' of git://github.com/phalacee/moodle 2012-04-03 17:00:47 +08:00
Aparup Banerjee 82d5042a73 Merge branch 'wip-MDL-31789-master' of git://github.com/marinaglancy/moodle 2012-04-03 16:31:53 +08:00
Aparup Banerjee 9cafd9c6e0 Merge branch 'wip-MDL-32081-m23' of git://github.com/samhemelryk/moodle 2012-04-03 16:08:18 +08:00
Aparup Banerjee 91596e2211 Merge branch 'MDL-31867-master' of git://github.com/ankitagarwal/moodle 2012-04-03 15:55:12 +08:00
Aparup Banerjee c197d5f028 MDL-17327 database : fixed comparisions in sql to be cross db compatible in data_get_advanced_search_sql()
This was failing under the MSSQL database drivers.
2012-04-03 15:06:09 +08:00
Aparup Banerjee 31b6200263 Merge branch 'wip-MDL-17327-master' of git://github.com/abgreeve/moodle 2012-04-03 14:58:27 +08:00
Petr Skoda 4218d813bf MDL-32251 add missing spikephpcoverage modification info, improve coding style in competionlib 2012-04-03 07:59:39 +02:00
Jason Fowler 4def8463fe MDL-27427 - Blog - Adding ability to delete entries from external blogs 2012-04-03 12:54:25 +08:00
Aparup Banerjee bc706271c8 Merge branch 'wip-MDL-32171-master' of git://github.com/marinaglancy/moodle 2012-04-03 11:42:58 +08:00
Dan Poltawski 4fe5849b72 Merge branch 'wip-mdl-30904' of git://github.com/rajeshtaneja/moodle 2012-04-03 11:39:14 +08:00
Rajesh Taneja ab6ec58a2e MDL-32270 Library: ->defaulthomepage is checked before used 2012-04-03 11:28:07 +08:00
Dan Poltawski 1d40f283ce Merge branch 'MDL-32220' of git://github.com/timhunt/moodle 2012-04-03 11:09:31 +08:00
Aparup Banerjee cc6c84373a Merge branch 'wip-MDL-32269-master' of git://github.com/marinaglancy/moodle 2012-04-03 10:18:19 +08:00
Sam Hemelryk 7b98a1dfd8 Merge branch 'wip-mdl-32150' of git://github.com/rajeshtaneja/moodle 2012-04-03 10:33:06 +12:00
Dan Poltawski aefc7e28ff Merge branch 'MDL-32213_manual_grade_question_upgrade' of git://github.com/davosmith/moodle 2012-04-02 16:59:10 +08:00
Dan Poltawski 8408d23c99 Merge branch 'w14_MDL-32250_m23_simpletest110' of git://github.com/skodak/moodle 2012-04-02 16:15:35 +08:00
Petr Skoda 97621c33c9 MDL-32250 fixed case typo
Thanks Dan!
2012-04-02 09:21:14 +02:00
Ankit Agarwal 8331a159c5 MDL-22895 backup: Adding the feature to support backing up and restoring calendar events 2012-04-02 13:58:33 +08: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
Dan Poltawski 6461e1482e Merge branch 'MDL-32039' of git://github.com/timhunt/moodle 2012-04-02 11:49:20 +08:00
Andreas Grabs abd2899cad MDL-31768 - it is not possible to add a picture to the thanks page in feedback 2012-04-02 11:16:32 +08:00
M Kassaei 011187104f MDL-32214 quiz regrading: with many attempts, PHP runs out of memory 2012-04-02 11:04:05 +08:00
Sam Hemelryk 530eecc0f9 Merge branch 'MDL-32239' of git://github.com/timhunt/moodle 2012-04-02 14:31:30 +12:00
Dan Poltawski 69f4556602 Merge branch 'wip-MDL-32264-m23' of git://github.com/samhemelryk/moodle 2012-04-02 10:17:35 +08:00
Dan Poltawski 6e83ae36a8 Merge branch 'MDL-32246' of git://github.com/timhunt/moodle 2012-04-02 10:03:10 +08:00
Dan Poltawski bec21793d2 Merge branch 'MDL-32201' of git://github.com/timhunt/moodle 2012-04-02 09:40:09 +08:00
Sam Hemelryk f9488a6f73 MDL-30981 upgrade: Fixed a couple of phpdoc typos 2012-04-02 12:27:23 +12:00
Sam Hemelryk ea6805f009 Merge branch 'MDL-30981' of git://github.com/stronk7/moodle 2012-04-02 12:26:41 +12:00
Sam Hemelryk 880a40c5b1 Merge branch 'MDL-32256-cron-return' of git://github.com/mudrd8mz/moodle 2012-04-02 11:28:09 +12:00
Sam Hemelryk 4958b6f224 Merge branch 'MDL-32258-data-cron' of git://github.com/mudrd8mz/moodle 2012-04-02 11:24:54 +12:00
Sam Hemelryk 90ad4ed589 Merge branch 'master_MDL-31908_glossary_entrylist_print_version_not_showing_content' of git://github.com/kanikagoyal/moodle 2012-04-02 11:19:58 +12:00
Eloy Lafuente (stronk7) 39b90b5152 MDL-30981 Upgrade API: Added related phpdocs 2012-04-02 00:40:13 +02:00
Sam Hemelryk 3279dd4253 Merge branch 'MDL-31711' of git://github.com/nebgor/moodle 2012-04-02 10:22:22 +12:00
Sam Hemelryk 6b8e99dd87 Merge branch 'MDL-32289' of git://github.com/lazydaisy/moodle 2012-04-02 10:16:52 +12:00
Petr Skoda c9c2027332 MDL-32251 E_STRICT fix 2012-04-01 15:22:42 +02:00
Petr Skoda 324d210fe4 MDL-32251 one more E_STRICT fix 2012-04-01 12:23:07 +02:00
Mary Evans 76002f94f5 MDL-32289 theme_afterburner: added lang menu to frontpage layout in config.php 2012-04-01 01:05:14 +01:00
Mary Evans d0760eac6c MDL-32262 theme_afterburner: fixed missing comma in afterburner_styles.css 2012-04-01 00:31:23 +01:00
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
Petr Skoda d9d61fa340 MDL-32251 use standard PHP debug levels instead of original 38911 2012-03-30 19:19:06 +02:00
Petr Skoda 54352ac979 MDL-32251 more E_STRICT fixes 2012-03-30 19:02:58 +02:00
David Mudrak 5a08e363f0 MDL-20438 removing sesskey checks from places where there is no sesskey support guaranteed yet
Thanks Petr Skoda for spotting this during the peer-review.
2012-03-30 11:08:48 +02:00
David Mudrak cd89994d88 MDL-20438 getting rid of left to-do notes 2012-03-30 11:05:42 +02:00
David Mudrak 8342171b52 MDL-20438 reintroducing plugin_management_page renderer method
See http://moodle.org/local/chatlogs/index.php?conversationid=9784#c340340
for the whole saga.
2012-03-30 11:05:42 +02:00
David Mudrak a687fcac7a MDL-20438 added a link to toggle the plugins check page back to the shorter list 2012-03-30 11:05:42 +02:00
David Mudrak 5344ddd116 MDL-20438 warn the admin that we are just showing available updates
This warning is displayed so that folks do not expect any sort of
auto-update ala Wordpress (yet).
2012-03-30 11:05:42 +02:00
David Mudrak 18e55c294d MDL-20438 removing the word 'extension'
It was suggested not to use this term as in moodleverse, non-standard
plugins have always been referred to as 'contributed plugins'.
2012-03-30 11:05:42 +02:00
David Mudrak 718eb2a59f MDL-20438 small fixes spotted during various testing 2012-03-30 11:05:42 +02:00
David Mudrak 4442cc8036 MDL-20438 finishing the updatenotifybuilds feature
Unit tests say that all.
2012-03-30 11:05:42 +02:00
David Mudrak 21cde6ac14 MDL-20438 fixing the message_send() docblock
This is not directly relevant to the issue. I just spotted it while
working on the messaging API. Consider it as a well meant Trojan horse
on this branch ;-)
2012-03-30 11:05:42 +02:00
David Mudrak a77141a7dc MDL-20438 send notifications via messaging API 2012-03-30 11:05:42 +02:00
David Mudrak 19d11b3b34 MDL-20438 introducing the cron_notifications() method
This method accepts all detected changes in cron-based fetch and picks
those the site admins want to be informed about (based on the maturity
level etc).
2012-03-30 11:05:42 +02:00
David Mudrak c6f008e747 MDL-20438 dropping get_core_update_info() method
There is now a single method get_update_info() used for both core and
plugins.
2012-03-30 11:05:41 +02:00
David Mudrak 7b35553b9b MDL-20438 Introducing new compare_responses() method 2012-03-30 11:05:41 +02:00
David Mudrak be37888050 MDL-20438 Initial support for cron based notifications
If enabled, Moodle sites will check for updates every night sometimes
between 01:00 AM and 06:00 AM local time. The actual offset will be
generated randomly at the beginning and used consistently since then.
This way, the queries against the server are supposed to be spread in
time.

Serious site admins should not try to upgrade their sites later than
01:00 AM as they are too tired already. Neither should they do it before
06:00 AM as they did not have a morning coffee yet and are too tired yet
:-)
2012-03-30 11:05:41 +02:00
David Mudrak 96dd92376f MDL-20438 display available updates during the upgrade, too
We are displaying available updates for installed plugins only. It was
decided (by me and Eloy) that we will not display info about available
Moodle update during the upgrade. It seems to be redundant as the admin
just uploaded a new version of Moodle so they probably chose what they
wanted.
2012-03-30 11:05:41 +02:00
David Mudrak bc06cbc36b MDL-20438 rewording confusing status_uptodate
The status_uptodate is a flag that the plugin's on-disk version and the
in-db version are in sync, that is no upgrade will be performed.
However, there can be a newer version of the plugin available. So using
the term "up-to-date" may be confusing.
2012-03-30 11:05:41 +02:00
David Mudrak f9286139d9 MDL-20438 make sure that the curl class has been included
The filelib is usually loaded already. However, during some steps of the
upgrade the curl class must be available to perform fetches of updates
and the library does not need to be loaded yet.
2012-03-30 11:05:41 +02:00
David Mudrak 9bdedf322a MDL-20438 admin/plugins.php now respects required maturity setting 2012-03-30 11:05:41 +02:00
David Mudrak d8f18e5dd0 MDL-20438 admin/index.php now respects required maturity setting 2012-03-30 11:05:41 +02:00
David Mudrak 2f5904d920 MDL-20438 new administration settings for the update notifications machinery 2012-03-30 11:05:41 +02:00
David Mudrak 55585f3ac0 MDL-20438 initial support for checking available core update
In case of Moodle code itself, there is no plugin_manager like class
available so the checker class itself must be aware of versions and
actually do the checks. On the other hand, we can always rely that
version, release and maturity are always returned by the remote server.
2012-03-30 11:05:41 +02:00
David Mudrak e761138997 MDL-20438 colorize available updates for a plugin based on the update's maturity level 2012-03-30 11:05:41 +02:00
David Mudrak 37f75ad459 MDL-20438 colorize the maturity warning at the admin notifications page 2012-03-30 11:05:41 +02:00
David Mudrak 00ea11f82e MDL-20438 sesskey check to execute fetch() 2012-03-30 11:05:40 +02:00
David Mudrak c7f3ab4381 MDL-20438 moodle code maturity must be always defined in version.php now
This code was a temporary solution used during the development of the
maturity checks feature.
2012-03-30 11:05:40 +02:00
David Mudrak 7d8de6d84a MDL-20438 updated response format support
Multiple component updates are supported now. Code cleanup and
refactoring.
2012-03-30 11:05:40 +02:00
David Mudrak 3204daeae3 MDL-20438 The Plugins overview admin page now provides a way to check for updates 2012-03-30 11:05:40 +02:00
David Mudrak 2b47947ef5 MDL-20438 A set of unittests to illustrate the update checking integration in the plugin_manager 2012-03-30 11:05:40 +02:00
David Mudrak dd119e21fa MDL-20438 Let plugin_manager class use the service provided by the new available_update_checker
All plugininfo classes now have new property that holds their remote
status information.
2012-03-30 11:05:40 +02:00
David Mudrak cd0bb55f84 MDL-20438 Introducing new available_update_checker class
The purpose of the class is to fetch the information about available
updates for the Moodle core and/or Moodle components from a remote site
and cache it locally.
2012-03-30 11:05:40 +02:00
David Mudrak 00ef3c3ed1 MDL-20438 Introducing plugininfo classes factory and plugin manager unit tests 2012-03-30 11:05:40 +02:00
David Mudrak 9c26cf7060 MDL-20438 New moodle_major_version() function
We will need to know our major version to fetch the relevant data from remote
servers. This patch also fixes yet another place where the version used
to be hard-coded.
2012-03-30 11:05:40 +02:00
David Mudrak 2b135b05d8 MDL-20438 Making the plugins overview page space-friendly 2012-03-30 11:05:40 +02:00
David Mudrak 4ed266809c MDL-20438 Change the order of plugin types at the overview pages 2012-03-30 11:05:40 +02:00
David Mudrak d26f3ddde7 MDL-20438 New plugins overview panel displaying some stats 2012-03-30 11:05:39 +02:00
David Mudrak b6ad85946d MDL-20438 Refactoring pluginlib before adding anything new
These changes are motivated by feedback from Tim Hunt (17 October 2011
in the developers chat room). The combination of using an interface, but
then putting all the useful information in public fields, was not good
design of this library. So I am merging the plugin_information interface
and the plugintype_base class into a new abstract class plugininfo_base.
This new class defines the basic API of all information holding
subclasses. This does not change the code, just puts the documentation
closer to the methods they are actually implemented.
2012-03-30 11:05:39 +02:00
Rajesh Taneja a415ecc21c MDL-30051 cron: login error sql is now cross db 2012-03-30 16:48:31 +08:00
Rossiani Wijaya f9f281b8fe MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 16:26:58 +08:00
adrian@moodle.com db546510a1 MDL-17327 - data - improved the sql query for very large advanced searches 2012-03-30 13:18:23 +08:00
Rajesh Taneja 91f7f8c1c1 MDL-32150 Libraries: checkbox controller will not check or uncheck freezed checkboxes 2012-03-30 13:04:04 +08:00
Rajesh Taneja af8def57f6 MDL-32150 Libraries: checkall and uncheckall will not select disabled or readonly checkboxes 2012-03-30 13:04:04 +08:00
Rajesh Taneja 675715a78e MDL-30904 Calendar: Event links are descriptive with hidden event name, for screen readers 2012-03-30 13:01:11 +08:00
unknown a7e558bc5a Merge branch 'master' of github.com:Lightwork-Marking/moodle 2012-03-30 17:16:44 +13:00
Sam Hemelryk 0b4f925c2e MDL-31867 tags: Improve performance of course_get_tagged_courses() 2012-03-30 09:42:43 +08:00
Marina Glancy bde16d799a MDL-32269: undoing changes from MDL-32095 causing fatal error when using wikimedia 2012-03-30 09:11:57 +08:00
unknown 404238ae51 Merge branch 'master' of https://github.com/moodle/moodle 2012-03-30 13:37:54 +13:00
Marina Glancy a45e65206a MDL-32171: add 'Manage' link to Picasa repository 2012-03-30 08:33:28 +08:00
AMOS bot 41606cffaf Automatically generated installer lang files 2012-03-30 00:33:06 +00:00
Marina Glancy b2cb00c2e9 MDL-31789: Allowing context object to be passed to JS using json_encode()
Classes with magic properties such as context do not pass through json_encode().
The solution is to implement iterator in such classes and convert what we
feed to json_encode to array using 'foreach' before we pass it to json_encode():
- class context implements IteratorAggregate
- added function convert_to_array() that converts anything to array
- before calling json_encode we convert the argument to array
2012-03-30 08:27:53 +08:00
Jason Fowler 27c3b8d8c7 MDL-30784 - lib - Patch provided by Jason Hardin to provide detection for Android Tablets to allow the theme engine to provide the tablet theme 2012-03-30 08:16:38 +08:00
Sam Hemelryk aa4a6566a5 MDL-29678 lib: Require login now overrides to false for AJAX scripts 2012-03-30 10:23:46 +13:00
Sam Hemelryk 04bcd1ce39 MDL-29678 navigation: Navigation AJAX require_login calls no longer set wantsurl or redirect 2012-03-30 10:23:46 +13:00
Sam Hemelryk c18facf2eb MDL-31631 navigation: Removed caching of activities and sections arrays in favour of relying on cminfo caching 2012-03-30 10:22:45 +13:00
Sam Hemelryk 4ae89dfea7 MDL-32018 mod_wiki: Fixed up whitespace after peer-review 2012-03-30 10:21:23 +13:00
Sam Hemelryk 4c4e659173 MDL-32018 mod_wiki: Fixed formatting of the page title so that is is consistent and secure 2012-03-30 10:21:23 +13:00
Sam Hemelryk 0c700cc48d MDL-32018 mod_wiki: Improved form definitions to ensure they consistent and secure 2012-03-30 10:21:23 +13:00
Sam Hemelryk 50e49c917d MDL-32081 csslib: Improved handling of parentheses when processing styles 2012-03-30 10:20:59 +13:00
Sam Hemelryk 897ad664e4 MDL-32081 csslib: Added unit tests for complex background images 2012-03-30 10:20:59 +13:00
Sam Hemelryk c74863b19e MDL-32264 theme_standard: Fixed multi-day calendar event border issue 2012-03-30 10:19:20 +13:00
Sam Hemelryk dd57a4de08 MDL-32265 moodlelib: Improved performance of moodle_needs_upgrading 2012-03-30 10:19:12 +13:00
Tim Hunt 9e4598293b MDL-32039 qeupgradehelper: fix typos in the lang strings 2012-03-29 21:20:04 +01:00
Petr Skoda 9aa09d8fed MDL-32251 more E_STRCT fixes 2012-03-29 16:29:29 +02:00
David Mudrak ac381d0381 MDL-32258 database module does not have any data_cron() function to execute 2012-03-29 15:59:45 +02:00
David Mudrak 7b0f4a3711 MDL-32256 quiz_cron() now returns true as expected by the current API 2012-03-29 15:45:45 +02:00
Petr Skoda caee6e6c26 MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
Tim Hunt 87b564df81 MDL-32246 question export: should cope with unrecognised qtypes.
If a question is of an unrecognised type, then we just omit it from the export.
2012-03-29 14:14:32 +01:00
Tim Hunt 76cf77e4d3 MDL-32240 quiz editing: check permissions questions are added.
We also check permissions when removing questions from the quiz, so that
we do not let users make mistakes they cannot immediately undo.
2012-03-29 14:14:12 +01:00
Tim Hunt 51c5e6057c MDL-32239 question bank: wrong cap checks editing/viewing quesitions
None of these problems affect the default roles. They only occur when
the permissions have been edited to allow restricted subsets of the
question capabilities.

In some cases, things that the restriced subset of capabilities should
have allowed were blocked by errors. In other cases, users were allowed
to do more than they should bave been due to failures to check the
right capabilities in the right places.

For full details, see the bug report.

Two of the bugs were previously reported separately as MDL-26395 and
MDL-27232.
2012-03-29 14:14:10 +01:00
Tim Hunt 4d18892676 MDL-32220 question import: files sometimes stored in the wrong context.
Sadly, this involves a small API change, but I don't believe anyone was
using the argument I had to remove (because we were sometimes passing a
wrong value, and there is not way to compute the right value at that
point in the code.)

Also sadly, the code to compute the context we are importing into is now
rather spaghetti-like, but it works.
2012-03-29 14:13:28 +01:00
Tim Hunt 04fcd1f5a8 MDL-32201 question export: use qformat_xml::write_answer in base class
Without this, images in answers were not being written to the export
file for questions using extra_answer_fields.
2012-03-29 14:12:58 +01:00
Petr Skoda 0bb48cc2a1 MDL-32250 import latest SimpleTest 1.1.0 2012-03-29 15:07:53 +02:00
Eloy Lafuente (stronk7) a280078197 weekly release 2.3dev 2012-03-29 13:25:53 +02:00
Eloy Lafuente (stronk7) db5d8b66c0 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-29 13:19:59 +02:00
Dan Poltawski a4051353d1 Revert "Merge branch 'MDL-31914-master-4' of git://git.luns.net.uk/moodle"
This reverts commit 296c0247c6, reversing
changes made to 2511b0742a.

Conflicts:

	lib/db/upgrade.php
	version.php
2012-03-29 16:07:30 +08:00
AMOS bot 0f78e4911c Automatically generated installer lang files 2012-03-29 00:31:42 +00:00
Eloy Lafuente (stronk7) 3f0cb423b2 Merge branch 'w13_MDL-32095_m23_strict2' of git://github.com/skodak/moodle 2012-03-28 22:49:38 +02:00
Petr Skoda 17854cb92c MDL-32095 last E_STRICT fix for now 2012-03-28 22:48:18 +02:00
Petr Skoda b137739b5e MDL-32095 fix outputlib test to setup debug level properly 2012-03-28 22:47:57 +02:00
Petr Skoda e63f95d7c1 MDL-12730 new debug levels (support strict) + upgrade from old ones 2012-03-28 16:39:42 +02:00
Davo Smith 1892a35625 MDL-32213 Question upgrade now correctly handles non-core manually-graded question types 2012-03-27 13:44:07 +01:00
Dan Poltawski 0094c90c79 MDL-31775 lesson: fix undefined variable warnings 2012-03-27 20:01:06 +08:00
Eloy Lafuente (stronk7) 296c0247c6 Merge branch 'MDL-31914-master-4' of git://git.luns.net.uk/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-03-27 10:10:17 +02:00
Aparup Banerjee 1469dee12f MDL-31711 Documentation : changed usages of @property to @var for non-magic variables. 2012-03-27 16:01:14 +08:00
Dan Poltawski 2511b0742a Merge branch 'MDL-32028' of git://github.com/nebgor/moodle 2012-03-27 14:46:52 +08:00
Aparup Banerjee c2bc042330 Merge branch 'wip-mdl-31654' of git://github.com/rajeshtaneja/moodle 2012-03-27 13:22:01 +08:00
Dan Poltawski 4767d32611 Merge branch 'MDL-30235' of git://github.com/lazydaisy/moodle 2012-03-27 12:37:08 +08:00
Aparup Banerjee 5eee9f7ade Merge branch 'w13_MDL-32109_m23_fastpurify' of git://github.com/skodak/moodle 2012-03-27 10:15:18 +08:00
Aparup Banerjee f3810b2ee2 Merge branch 'wip-MDL-32106-master' of git://github.com/marinaglancy/moodle 2012-03-27 10:10:05 +08:00
Aparup Banerjee 1cc4412c89 Merge branch 'MDL-31869_message_search_roles' of git://github.com/andyjdavis/moodle 2012-03-27 09:58:44 +08:00
Sam Hemelryk a7cd1f5a53 Merge branch 'MDL-22510-master' of git://github.com/ankitagarwal/moodle 2012-03-27 11:03:19 +13:00
Sam Hemelryk 5dc1a544ea Merge branch 'MDL-11378-master-2' of git://git.luns.net.uk/moodle 2012-03-27 10:05:43 +13:00
Sam Hemelryk c194925278 Merge branch 'master_MDL-32147' of git://github.com/danmarsden/moodle 2012-03-27 09:51:40 +13:00
Eloy Lafuente (stronk7) a176999cc5 Merge branch 'MDL-32202' of git://github.com/stronk7/moodle 2012-03-26 21:36:08 +02:00
Eloy Lafuente (stronk7) 704f82e2bf MDL-32202 scorm: fix 2 invalid default="null" definitions
Note the whole file has been changed because its previous
(manual!) commit leaded to incorrect indentation, but really
only 2 definitions have been changed:

scorm->completionstatusrequired
scorm->completionscorerequired
2012-03-26 21:27:47 +02:00
Eloy Lafuente (stronk7) 9ee910e69c MDL-32112 mysql: change rename sql generator to pass validation 2012-03-26 19:57:58 +02:00
Eloy Lafuente (stronk7) 43616f61f1 Merge branch 'w13_MDL-32112_m23_dbman' of git://github.com/skodak/moodle 2012-03-26 19:40:58 +02:00
Petr Skoda e807c0be4f MDL-32095 fix event handler classes to be E_STRICT compatible 2012-03-26 16:04:47 +02:00
Petr Skoda 748e96512b MDL-32095 fix backup API to be E_STRICT compatible 2012-03-26 16:04:16 +02:00
Petr Skoda 5ec6c45fd4 MDL-32095 fix backup API to be E_STRICT 2012-03-26 15:30:04 +02:00
Petr Skoda 68a7c9a696 MDL-32095 some more E_STRICT fixes 2012-03-26 11:47:15 +02:00
Dan Poltawski 9e1a4be29d Merge branch 'MDL-31775' of git://github.com/rwijaya/moodle 2012-03-26 14:39:10 +08:00
Dan Poltawski 113022e559 Merge branch 'MDL-32172' of git://github.com/rwijaya/moodle 2012-03-26 12:23:15 +08:00
Dan Poltawski a05c669af0 Merge branch 'master_MDL-31856_choice_responses_inconsistently_displayed' of git://github.com/kanikagoyal/moodle 2012-03-26 12:09:32 +08:00
Dan Poltawski 91216d5095 Merge branch 'MDL-27710' of git://github.com/rwijaya/moodle 2012-03-26 11:28:21 +08:00
Dan Poltawski 2ce1efb8ac Merge branch 'master_MDL-32080' of git://github.com/danmarsden/moodle 2012-03-26 10:51:38 +08:00
Marina Glancy 400d228e51 MDL-32106: fixed JS bug - when html element did not exist the script stopped 2012-03-26 09:52:01 +08:00
Dan Poltawski 9efaab4949 Merge branch 'MDL-32176' of git://github.com/timhunt/moodle 2012-03-26 09:35:49 +08:00
Dan Poltawski fdecfdb3d3 Merge branch 'MDL-32177' of git://github.com/timhunt/moodle 2012-03-26 09:26:21 +08:00
Iurii Kucherov f38792ef05 MDL-31513 rename 'Edit service' to 'Save changes' 2012-03-26 12:11:53 +13:00
Sam Hemelryk 9491f60e44 Merge branch 'MDL-32142-master-1' of git://git.luns.net.uk/moodle 2012-03-26 12:01:29 +13:00
Sam Hemelryk 3e17de5ead Merge branch 'wip-mdl-29331' of git://github.com/rajeshtaneja/moodle 2012-03-26 11:57:39 +13:00
Rajesh Taneja 4d6f9478ed MDL-31903 course: Title on highlight and hide icon should be only added in ie 2012-03-26 11:44:50 +13:00
Rajesh Taneja 618c155a24 MDL-31903 course: Highlight icon will get iniatlised properly 2012-03-26 11:44:50 +13:00
Rajesh Taneja f753887155 MDL-31903 course: update patch to fix course highlight icon and title toggle 2012-03-26 11:44:50 +13:00
Juho Viitasalo 730477a878 MDL-31903 course: Fixed course highlight icon and title toggle 2012-03-26 11:44:16 +13:00
Dan Poltawski 17e2b27d31 MDL-29400 assignment: Require a file to be uploaded in form
Don't display 'File uploaded successfully' when no file uploaded for
both upload and uploadsingle
2012-03-26 11:19:57 +13:00
Sam Hemelryk 991b3a3a9b Merge branch 'MDL-32026-master-2' of git://git.luns.net.uk/moodle 2012-03-26 11:13:54 +13:00
Sam Hemelryk ef288bd4d3 Merge branch 'MDL-32027-master-1' of git://git.luns.net.uk/moodle 2012-03-26 11:06:34 +13:00
Sam Hemelryk 75e5bd51ea Merge branch 'w13_MDL-31685_m23_filelocking' of git://github.com/skodak/moodle 2012-03-26 10:35:48 +13:00
Sam Hemelryk 0a5bc5dd47 Merge branch 'w13_MDL-32029_m23_extdb' of git://github.com/skodak/moodle 2012-03-26 10:31:36 +13:00
Kanika Goyal 0c758f8200 MDL-31908 Glossary: entry list format- printable version does not show content 2012-03-26 00:00:24 +05:30
Mary Evans 32837a27ca MDL-30019 theme_fusion: fix for mod-assignment-submission page by reducing font-size and page wapper padding 2012-03-25 08:16:11 +01:00
Petr Skoda 436b961381 MDL-32112 use constants for field and table limits
For now using the same JS hardcoding trick Eloy did the last time...
2012-03-24 11:45:36 +01:00
Petr Skoda 7fd31fe86c MDL-32112 horrible hack that ignores invalid size for XMLDB_TYPE_NUMBER in numerical question type
The easies fix could be to use VARCHAR instead because this field is used only for reading and writing, no selects on this field it seems.
2012-03-24 11:40:15 +01:00
Petr Skoda d3232735ee MDL-32112 validate float definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda 54e71a43ba MDL-32112 validate number definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda 720d605e61 MDL-32112 validate integer definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda f9090b195b MDL-32112 validate table name restrictions in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda 6cfade8f5a MDL-32112 validate field name restrictions in sql_generator 2012-03-24 11:40:14 +01:00
Petr Skoda f0bf9ffeaa MDL-31685 new setting for prevention of file based locking
Please note that this setting can not be stored in database because some scripts use ABORT_AFTER_CONFIG.
2012-03-24 11:37:13 +01:00
Petr Skoda 62cd8cd9f5 MDL-32029 fix get_tables() when prefix empty in external database 2012-03-24 11:36:01 +01:00
Petr Skoda 3f0fe2b820 MDL-32109 migrate tests to PHPUnit 2012-03-24 11:33:59 +01:00
Petr Skoda 986f8ea285 MDL-32109 do not use HTMLPurifier for some safe and valid html fragments 2012-03-24 11:29:59 +01:00
Tim Hunt 1a2de1c7ce MDL-32177 questions: allow default questiontext in the editing form. 2012-03-23 15:36:17 +00:00
Tim Hunt 1851b00b07 MDL-32176 formslib: allow {no} in repeat_element default values. 2012-03-23 15:22:41 +00:00
Ruslan Kabalin de132c20f8 MDL-32137 Fix message preference settings.
When a messaging output is set to forced, users should not be able to change
that. Regression intoroduced in bb3546f3 made possible to change checkboxes
(but not avoid forced settings). This fix replace checkboxes for 'forced'
settings with the corresponding message, similar to how it worked for
disallowed before.
2012-03-23 11:55:30 +00:00
Andrew Robert Nicols a7026767bf MDL-32164 Add string for file encoding
AMOS BEGIN
  CPY [encoding,tool_uploaduser],[fileencoding,mod_data]
AMOS END
2012-03-23 09:38:25 +00:00
Rossiani Wijaya 0f6e2f02aa MDL-32172 Lesson Module: add variable initialization for 2012-03-23 15:36:39 +08:00
Ankit Agarwal af572078cf MDL-22510 libraries: Set wantsurl only when $setwantsurltome is set in
require_login
2012-03-23 14:40:35 +08:00
Rajesh Taneja 1366a7fab8 MDL-29331 Users: Participants list with user_details now show check box for bluk operation 2012-03-23 11:28:20 +08:00
Kanika Goyal d84e5f43d1 MDL-31856 Choice: if choice not open, responses inconsistently displayed 2012-03-23 08:56:13 +05:30
Rossiani Wijaya 639818fc94 MDL-27710 lesson module: add the following jump options: unseen branch page, random page and random branch 2012-03-23 10:20:52 +08:00
Rajesh Taneja 1b4d2d56d9 MDL-31654 users: Added check for custom profile fields, if wrong data is passed then user will not be able to proceed 2012-03-23 10:13:37 +08:00
Rajesh Taneja bd8dc9ba0a MDL-31654 users: removed hardcoding and added docblock on top of tim's patch 2012-03-23 10:13:37 +08:00
tim@netspot.com.au d6aea4cc34 MDL-31654 users: custom profile menu fields will convert values to keys, so it can be processed 2012-03-23 10:13:37 +08:00
Sam Hemelryk c856a1f60b weekly release 2.3dev 2012-03-23 12:19:47 +13:00
Sam Hemelryk 117bd705f3 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-23 12:11:57 +13:00
Dan Marsden dbdc735559 MDL-32147 - use correct 404 for server type 2012-03-23 10:01:04 +13:00
Ruslan Kabalin 70ad827c6c MDL-11378 Add SMTP security protocol setting to email configuration 2012-03-22 15:29:17 +00:00
Ruslan Kabalin 43798a4efa MDL-32026 messaging: Fix non-existing variable in the error output 2012-03-22 15:12:40 +00:00
Andrew Robert Nicols 8d1f386385 MDL-32142 Add missing langstring for section backups 2012-03-22 14:52:28 +00:00
Jason Fowler bcab2b21b3 MDL-30482 - Glossary - Fixing the capability controls for the recent activity block 2012-03-22 16:19:38 +08:00
Dan Marsden 6ceef54c6e MDL-32147 SCORM improve performance of 404s for files inside SCORM packages. 2012-03-22 20:05:59 +13:00
Aparup Banerjee a72996fe71 Revert "MDL-17327 - data - improved the sql query for very large advanced searches"
This reverts commit 72d4340a0e.

Testing cross db compatibility failed.
2012-03-22 09:21:25 +08:00
Sam Hemelryk 7aea08e1b0 MDL-31857 phpunit: PHPDoc and typo fixes during integration 2012-03-22 10:45:17 +13:00
Sam Hemelryk 3222f6eca1 Merge branch 'w12_MDL-31857_m23_phpunit' of git://github.com/skodak/moodle 2012-03-22 10:44:04 +13:00
Sam Hemelryk 7a3a0a301b MDL-31528 categories: Fixed up typo 2012-03-22 09:45:56 +13:00
Petr Skoda 5bd4040866 MDL-31857basic phpunit support
Thanks Eloy Lafuente, Tim Hunt and Sam Hemelryk for valuable feedback and ideas.
2012-03-21 10:31:37 +01:00
Dan Poltawski 727dac2f34 Merge branch 'wip-MDL-27236-master' of git://github.com/marinaglancy/moodle 2012-03-21 14:51:40 +08:00
Marina Glancy e2652f1a31 MDL-27236: Server files, improve tree view
- Removed 'Private files' from 'Server files' repository;
- Show only non-empty directories (taking into account filetype filter);
- If there is only one non-empty filearea within a module, do not show it and skip the extra subdirectory level;
- If the user is not admin (does not have 'moodle/course:update' capability in system context), do not show course categories, just list available courses;
- Also when retrieving the course files capability to managefiles is checked before retrieving the modules list for performance tuning on sites with a lot of courses
2012-03-21 13:55:22 +08:00
Dan Poltawski 0a4660484c Merge branch 'master_MDL-27469' of git://github.com/danmarsden/moodle
Conflicts:
	mod/scorm/version.php
    mod/scorm/db/upgrade.php
2012-03-21 11:38:09 +08:00
Aparup Banerjee 5599f2062c Merge branch git://github.com/phalacee/moodle.git wip-MDL-30482-master
- resolved conflicts
 - fixed up tab --> spaces
2012-03-21 10:50:51 +08:00
Jason Fowler c3963fbd9b MDL-30482 - Glossary - Adding capability to other areas using glossary 2012-03-21 10:22:53 +08:00
Aparup Banerjee d7de3f2682 Merge branch 'wip-MDL-17327-master-v2' of git://github.com/abgreeve/moodle 2012-03-21 10:02:18 +08:00
adrian@moodle.com 72d4340a0e MDL-17327 - data - improved the sql query for very large advanced searches 2012-03-21 09:41:48 +08:00
Dan Poltawski 19526d915a MDL-29515 lib/upgrade.txt: add a note about removed methods 2012-03-21 09:31:38 +08:00
Dan Poltawski d68c62fe12 Merge branch 'w12_MDL-29515_m23_deprdb' of git://github.com/skodak/moodle 2012-03-21 09:25:47 +08:00
Sam Hemelryk f520dcd9ba MDL-31640 course search: Coding style clean up 2012-03-21 09:49:38 +13:00
Aaron Barnes 94db27498d MDL-27469 scorm: Add extra activity completion conditions 2012-03-21 09:48:38 +13:00
Sam Hemelryk 1a381535e6 Merge branch 'wip-mdl-31640-new' of git://github.com/rajeshtaneja/moodle 2012-03-21 09:41:32 +13:00
Sam Hemelryk 333b9ac765 Merge branch 'MDL-28952-master' of git://github.com/ankitagarwal/moodle 2012-03-21 09:29:24 +13:00
Sam Hemelryk bc4340ca9c Merge branch 'MDL-32065-master-1' of git://git.luns.net.uk/moodle 2012-03-21 09:24:58 +13:00
Sam Hemelryk 23dfb50687 Merge branch 'w12_MDL-32094_integration_fix' of git://github.com/skodak/moodle 2012-03-21 09:20:29 +13:00
Rossiani Wijaya e053583fc7 MDL-31266 Lesson module: Improve feedback so that the responses are concatenated instead of overwritten 2012-03-20 21:56:18 +08:00
Rossiani Wijaya 49ef5d4c7f MDL-31775 Lesson Module: fixed start at last page seen bug 2012-03-20 17:32:58 +08:00
Dan Poltawski 149da7724b Merge branch 'w12_MDL-29894_m23_objectparams' of git://github.com/skodak/moodle 2012-03-20 16:40:28 +08:00
Petr Skoda c2daa41a2e MDL-32094 fix duration test 2012-03-20 09:22:29 +01:00
Aparup Banerjee 0e5c50e29a MDL-29848 glossary: fixed whitespace 2012-03-20 16:12:02 +08:00
Aparup Banerjee aa4edcf614 Merge branch 'MDL-29848-master' of https://github.com/mackensen/moodle 2012-03-20 16:06:40 +08:00
Aparup Banerjee 7d2b2e808f Merge branch 'MDL-31818_grader_paging' of git://github.com/andyjdavis/moodle 2012-03-20 13:20:03 +08:00
Sam Hemelryk ef844d0a15 Merge branch 'w12_MDL-32094_m23_phpstrict' of git://github.com/skodak/moodle 2012-03-20 16:47:17 +13:00
Sam Hemelryk 0ca579f2cd MDL-11047 mod_quiz: bumped version in upgrade after conflict resolution 2012-03-20 16:46:19 +13:00
Ankit Agarwal efd6defecb MDL-28592 blocks: changing the arguments to moodle_url::out() 2012-03-20 10:57:12 +08:00
Aparup Banerjee b36135b66a Merge branch 'wip-MDL-31528-m23' of git://github.com/samhemelryk/moodle 2012-03-20 10:09:43 +08:00
Sam Hemelryk 270bdf5265 Merge branch 'MDL-11047' of git://github.com/mackensen/moodle
Conflicts:
	mod/quiz/version.php
2012-03-20 14:04:04 +13:00
Sam Hemelryk 62cf6937f6 Merge branch 'wip-MDL-32037-master' of git://github.com/marinaglancy/moodle 2012-03-20 13:33:30 +13:00
Sam Hemelryk 9340d834f3 Merge branch 'w12_MDL-32050_m23_minify' of git://github.com/skodak/moodle 2012-03-20 12:50:21 +13:00
Sam Hemelryk e2edc82058 Merge branch 'w12_MDL-32043_m23_webserver' of git://github.com/skodak/moodle 2012-03-20 12:12:44 +13:00
Sam Hemelryk f40400b91e Merge branch 'w12_MDL-32045_m23_resetnorole' of git://github.com/skodak/moodle 2012-03-20 12:06:07 +13:00
Sam Hemelryk ef3b34ccc7 Merge branch 'w12_MDL-32052_m23_authtype' of git://github.com/skodak/moodle 2012-03-20 12:02:05 +13:00
Sam Hemelryk fab344f54b Merge branch 'w12_MDL-32071_m23_dbfamily' of git://github.com/skodak/moodle 2012-03-20 11:46:00 +13:00
Sam Hemelryk b896c12bca Merge branch 'w12_MDL-32079_m23_folderrev' of git://github.com/skodak/moodle 2012-03-20 11:34:21 +13:00
M Kassaei e6208ec604 MDL-32053 question: Question bank table displayed inconsistently 2012-03-20 11:00:16 +13:00
M Kassaei d1a80dd2b2 MDL-32048 mod_quiz: Question bank select/deselect all shows strange behaviour in IE 2012-03-20 10:55:01 +13:00
Sam Hemelryk f7dbc2814c Merge branch 'MDL-32064' of git://github.com/timhunt/moodle 2012-03-20 10:37:38 +13:00
Sam Hemelryk 6f3570ffec MDL-19125 upgrade: Fixed assignment typo 2012-03-20 10:34:30 +13:00
Mary Evans 4c67628cea MDL-30235 theme_anomaly: change anomaly theme to use san-serif fonts 2012-03-19 13:05:53 +00:00
Sam Hemelryk 2525cee573 Merge branch 'MDL-32084_master' of git://github.com/lazydaisy/moodle 2012-03-19 20:38:28 +13:00
Sam Hemelryk b31865ce2a Merge branch 'w12_MDL-32090_m23_groupui' of git://github.com/skodak/moodle 2012-03-19 20:33:48 +13:00
Sam Hemelryk ae89dd8de9 Merge branch 'w12_MDL-32046_m23_lastdbuser' of git://github.com/skodak/moodle 2012-03-19 20:29:39 +13:00
Petr Skoda 0f75e1e627 MDL-27553 admin: Fixed override bug 2012-03-19 20:21:33 +13:00
Sam Hemelryk 2cd97ff3c5 Merge branch 'w12_MDL-31703_m23_rootdirroot' of git://github.com/skodak/moodle 2012-03-19 20:16:34 +13:00
Rajesh Taneja fdfe706489 MDL-31640 course: removed extra error message, perpage is set properly, modulelink hidden field, and new context call is used. 2012-03-19 15:15:06 +08:00
Sam Hemelryk 47def74bb8 Merge branch 'wip-mdl-26674' of git://github.com/rajeshtaneja/moodle 2012-03-19 20:06:40 +13:00
Sam Hemelryk 96e7855298 MDL-31528 navigation: Fixed up missing break and optimised category.php 2012-03-19 19:32:15 +13:00
Sam Hemelryk 11c0eccee4 MDL-31984 Fixed whitespace during integration 2012-03-19 19:12:40 +13:00
Brian Jorgensen 6fc267a07d MDL-31984: add debugging message if theme renderer file is missnamed 2012-03-19 19:12:39 +13:00
Rajesh Taneja 506cbfd749 MDL-31640 course: Move to, edit and search functionality in search.php is fixed with proper permission check 2012-03-19 12:02:02 +08:00
Rajesh Taneja 476aea8d8b MDL-26674 wiki2.0: cleaned wiki event logging patch 2012-03-19 11:15:06 +08:00
Sam Hemelryk f359fd6fcc Merge branch 'wip-MDL-27064-master' of git://github.com/phalacee/moodle 2012-03-19 15:49:05 +13:00
Tim Lock 186fc53401 MDL-31869: Searching for users in messaging with multiple roles generates a warning 2012-03-19 09:31:46 +07:00
Diane Villemure b7921fc458 MDL-26674 wiki2.0: Fixed wiki activity log 2012-03-19 10:20:18 +08:00
Sam Hemelryk 1a8ea682ef Merge branch 'MDL-32004-master-2' of git://git.luns.net.uk/moodle 2012-03-19 14:37:49 +13:00
Sam Hemelryk 55652c87a8 Merge branch 'MDL-32008-master-2' of git://git.luns.net.uk/moodle 2012-03-19 14:28:06 +13:00
Sam Hemelryk 6972a9b7b7 Merge branch 'MDL-28187_messaging_nav' of git://github.com/andyjdavis/moodle 2012-03-19 14:14:28 +13:00
Sam Hemelryk 223d02a468 Merge branch 'MDL-31835_recent_conversations' of git://github.com/andyjdavis/moodle 2012-03-19 14:10:37 +13:00
Sam Hemelryk 4354486d30 MDL-19125 upgrade: Fixed typo 2012-03-19 11:01:50 +13:00
Sam Hemelryk fb1d0388ff Merge branch 'MDL-30890' of git://github.com/rwijaya/moodle 2012-03-19 10:28:14 +13:00
Sam Hemelryk 8149d6240a MDL-19125 lib: Fixed up inline comments during integration 2012-03-19 10:08:47 +13:00
Sam Hemelryk 264743baaf Merge branch 'MDL-19125_module_security' of git://github.com/timhunt/moodle 2012-03-19 10:07:57 +13:00
Petr Skoda e2bb3c9275 MDL-32094 some more E_STRICT fixes 2012-03-18 20:40:20 +01:00
Petr Skoda 990e4b0ee9 MDL-32094 do not show html markup in cron errors 2012-03-18 18:43:56 +01:00
Petr Skoda fabbf4398b MDL-32094 some nasty quickforms hacks that should help with E_STRICT
Note: we have stopped tracking our QuickForms hacks long ago.
2012-03-18 18:39:37 +01:00
Petr Skoda f4b8586a26 MDL-32094 our ageing SimpleTest integration is not going to be compatible with E_STRICT 2012-03-18 18:38:08 +01:00
Petr Skoda f20edd5208 MDL-32094 fix various E_STRICT compatibility problems 2012-03-18 18:37:24 +01:00
Petr Skoda 0ed6f71232 MDL-32094 fix E_STRICT issues in lesson API
It is not possible to change method signatures in PHP...
2012-03-18 18:36:04 +01:00
Petr Skoda 072db71c90 MDL-32094 fix question related E_STRICT problems 2012-03-18 18:33:54 +01:00
Petr Skoda e7755fc627 MDL-32094 fix E_STRICT issues in assignment 2012-03-18 18:32:17 +01:00
Petr Skoda 58eb9b9f2a MDL-32094 fix E_STRICT problems in repository API 2012-03-18 18:31:32 +01:00
Petr Skoda 3c548abf1b MDL-32094 fix E_STRICT warning caused by changing of init() parameters in css style classes 2012-03-18 18:29:46 +01:00
Petr Skoda 265b1434b0 MDL-31703 allow serving of JavaScript from unsupported '/' dirroot 2012-03-18 17:28:59 +01:00
Mary Evans e3e4ca6895 MDL-32084 theme_fusion: removed default tagline in frontpage.php and changed configtextarea to configtext 2012-03-17 21:33:59 +00:00
Petr Skoda 8ef42632d2 MDL-29515 finally drop 1.9 DML and DDL from deprecatedlib.php 2012-03-17 19:31:36 +01:00
Petr Skoda e763c273eb MDL-29515 drop 1.9 xmldb classes and methods (deprecated since 2.0) 2012-03-17 19:27:13 +01:00
Petr Skoda de640a2d3f MDL-29515 remove deprecated $DB->sql_ilike() and fix debug messages 2012-03-17 19:20:39 +01:00
Petr Skoda e618cdf3f6 MDL-29894 forbid objects in DML parameters
Objects with __toString we never fully supported as parameters in DML layer, this finally brings consistent behaviour.
2012-03-17 18:44:12 +01:00
Petr Skoda 88c48bbfda MDL-32052 use $this->authtype in auth config, this may help with sib classing of plugins 2012-03-17 10:58:43 +01:00
Petr Skoda 351d55b372 MDL-32052 simplify subclassing of auth_email 2012-03-17 10:52:09 +01:00
Andrew Davis ff038e4bae MDL-28187 message: fixed up $PAGE->set_url() in /message/index.php so the nav highlighted properly 2012-03-17 11:41:06 +07:00
Andrew Davis 4a29d2912c MDL-31818 grade: removed some broken code to do with overriding students per page, added a post variable so the page isnt lost when submitting grades 2012-03-17 09:51:21 +07:00
AMOS bot e97de27f3a Automatically generated installer lang files 2012-03-17 00:31:38 +00:00
Petr Skoda 0ac9d19a23 MDL-32090 fix invalid group members url
Credit goes to Jean-Philippe Gaudreau.
2012-03-16 20:11:23 +01:00
Petr Skoda 37d729777c MDL-32050 import Minify 2.1.5 2012-03-16 20:03:03 +01:00
Andrew Robert Nicols cac06a034d MDL-31914 Ensure that completion criteria are deleted when removing a course module 2012-03-16 16:07:05 +00:00
Tim Hunt ff3b7c85db MDL-32064 quiz navigation: JS form submit must fire submit event handlers. 2012-03-16 14:55:16 +00:00
Andrew Robert Nicols cab03a03b4 MDL-32008 Remove old group deletion code 2012-03-16 12:05:54 +00:00
AMOS bot 2064994d6b Automatically generated installer lang files 2012-03-16 12:05:53 +00:00
Petr Skoda a12f9825dd MDL-32046 show warning that unenrolment of all users is not allowed in non-verbose mode 2012-03-16 11:03:31 +01:00
Petr Skoda 2e15b12b81 MDL-32045 allow unenrolment of users without role via course reset 2012-03-16 10:55:30 +01:00
Petr Skoda a2a4344910 MDL-32071 fix fatal problems in experimental forum_usetextsearches 2012-03-16 10:29:19 +01:00
Petr Skoda 60791f18cf MDL-32079 folder revision must be incremented after any file change 2012-03-16 10:11:07 +01:00
Ankit Agarwal db4ac453c3 MDL-28952 blocks: Fixing the extra escaping issue with profile links 2012-03-16 14:27:05 +08:00
Andrew Davis 178ba8bc36 MDL-31835 message: added a view conversation type link after each conversation on the recent conversation screen 2012-03-16 13:19:50 +07:00
Marina Glancy a5159b864d MDL-32037: MDL-32037: After displaying error message filepicker could not send proper request to server
We need to make sure that code executed on error does not create more requests and
especially does not create the same request that resulted with error. So now by default
filepicker will clear the right side of the window if repository_ajax.php returned an
error.
Also fixed an 'invalidsesskey' error string.
2012-03-16 09:38:33 +08:00
Dan Marsden c1b81ff623 MDL-32080 SCORM - remove old css 2012-03-16 13:16:05 +13:00
Sam Hemelryk e141bc8109 MDL-31528 navigation: Replaced calls to deprecated context_instance_preload 2012-03-16 10:36:00 +13:00
Sam Hemelryk f73cea5418 MDL-31528 navigation: Tidied up page for viewing and managing categories 2012-03-16 10:36:00 +13:00
Sam Hemelryk 8486f20713 MDL-31528 navigation: Fixed up navbar generation when editing categories 2012-03-16 10:36:00 +13:00
Sam Hemelryk 6a16e1367a MDL-31528 navigation: Fixed up generation for category contexts 2012-03-16 10:36:00 +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
Tim Hunt 8cb7a6d512 MDL-31594 question manual grading: did not handle comma as decimal. 2012-03-15 18:46:43 +00:00
Tim Hunt 0f0c0228b0 MDL-19125 module restrictions: document change in mod/upgrade.txt 2012-03-15 17:13:54 +00:00
Tim Hunt 88eca3cd26 MDL-19125 module restrictions: addinstance capabilities for all mods 2012-03-15 17:13:43 +00:00
Tim Hunt 9665ecd275 MDL-19125 module restrictions: use a capability
1. This used to use a complex legacy system which was buggy.

2. It now relies on a new mod/...:addinstance capability for each module.

3. All the legacy code has been stripped out.

4. Old restriction data is upgraded by creating the necessary permission
overrides. Similarly, when old backups are restored, the old settings
are converted to be overrides.

5. The required addinstance capabilities will be added as a separate
commit.

6. There is a developer debug warning about modules that are missing the
addinstance capability, unless they are MOD_ARCHETYPE_SYSTEM mods.
2012-03-15 17:11:27 +00:00
Charles Fulton 33c8d37b6f MDL-11047 quiz: enable sequential navigation 2012-03-15 10:09:27 -07:00
Andrew Robert Nicols 536328fb0a MDL-32065 Allow feedback images to be themed 2012-03-15 11:48:21 +00:00
Petr Skoda d860f1ad28 MDL-32043 add support for built-in PHP Development Server 2012-03-15 12:26:10 +01:00
Eloy Lafuente (stronk7) a2b30aa852 weekly release 2.3dev 2012-03-15 11:44:35 +01:00
Eloy Lafuente (stronk7) ef5d54ffbf Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-15 11:41:55 +01:00
Rossiani Wijaya 89c7c7a999 MDL-30890 accessibility compliance: add summary to calendar table 2012-03-15 16:55:59 +08:00
Aparup Banerjee 78e05ba53e MDL-32028 Documentation : removed legacy 1.x documentation 2012-03-15 15:19:32 +08:00
Jason Fowler ec21eaba2e MDL-27064 - Blog - Changing the link text for different levels of blog entries 2012-03-15 08:46:38 +08:00
AMOS bot 11bccdfd51 Automatically generated installer lang files 2012-03-15 00:31:47 +00:00
Eloy Lafuente (stronk7) 3e59bbdbb7 Merge branch 'MDL-26243-master' of https://github.com/mackensen/moodle 2012-03-15 00:39:17 +01:00
Jenny Gray b33e6d8e8b MDL-31911 admin tools: moved loop after tools admin category created 2012-03-15 00:29:15 +01:00
Eloy Lafuente (stronk7) 7142a75563 MDL-30995 completion: switch one type & name for correctness 2012-03-14 18:14:36 +01:00
Eloy Lafuente (stronk7) f7acd639a5 MDL-28972 formslib: whitespace fixes 2012-03-14 18:10:24 +01:00
Eloy Lafuente (stronk7) 956d55e638 Merge branch 'MDL-30995' of git://github.com/ankitagarwal/moodle 2012-03-14 18:07:21 +01:00
Ankit Agarwal f55ff38a1b MDL-30995 completion: updating PHPdocs as suggested by little smurfs 2012-03-14 14:39:36 +08:00
Sam Hemelryk 4dd2af1270 MDL-28972 formslib: Fixed up variable naming 2012-03-14 14:40:12 +13:00
Sam Hemelryk 00efe93759 Merge branch 'wip-mdl-28972' of git://github.com/rajeshtaneja/moodle 2012-03-14 14:40:07 +13:00
Aparup Banerjee 12b8995749 Merge branch 'MDL-31853_admin_externalpage_setup' of git://github.com/davosmith/moodle 2012-03-14 09:16:27 +08:00
Sam Hemelryk 772685e983 MDl-30616 course: Fixed bug with module subtype links 2012-03-14 13:56:22 +13:00
Sam Hemelryk 652d49ab35 Merge branch 'MDL-29147_insertElementBefore_warning' of git://github.com/davosmith/moodle 2012-03-14 11:52:38 +13:00
Eloy Lafuente (stronk7) 9767526f88 Merge branch 'MDL-30616-master-7' of git://git.luns.net.uk/moodle 2012-03-13 23:40:39 +01:00
Sam Hemelryk dfcf582c43 Merge branch 'MDL-29440-master' of git://github.com/danpoltawski/moodle 2012-03-14 11:29:52 +13:00
Sam Hemelryk 29a225040c Merge branch 'MDL-31975_master' of git://github.com/kordan/moodle 2012-03-14 11:23:39 +13:00
Sam Hemelryk 1c1cb8cd9a Merge branch 'MDL-31169_master' of git://github.com/lazydaisy/moodle 2012-03-14 11:15:13 +13:00
Eloy Lafuente (stronk7) 8ebbe295ab MDL-31929 minor fixup (the file is plenty, but avoid introducing new ones) 2012-03-13 23:01:59 +01:00
Eloy Lafuente (stronk7) 4c31dfd14a Merge branch 'wip-MDL-31929-master' of git://github.com/marinaglancy/moodle 2012-03-13 23:01:11 +01:00
Ankit Agarwal c862e2f450 MDL-28998 libraries: Using default value of 0 for userid during login 2012-03-14 10:51:52 +13:00
Eloy Lafuente (stronk7) f02702760a Merge branch 'wip-MDL-27405-m23' of git://github.com/samhemelryk/moodle 2012-03-13 22:35:04 +01:00
Sam Hemelryk bc40124bfe MDL-27405 navigation: Fixed up buggy array_merge call 2012-03-14 10:16:34 +13:00
Eloy Lafuente (stronk7) b39877ef10 Merge branch 'w11_MDL-31790_m23_resetunenrol' of git://github.com/skodak/moodle 2012-03-13 18:13:52 +01:00
Eloy Lafuente (stronk7) 9b89dc4f7d Merge branch 'MDL-31981' of git://github.com/timhunt/moodle 2012-03-13 18:08:40 +01:00
Andrew Davis 48e03792ca MDL-31834 message: fixed up some not quite correct usage of moodle/site:readallmessages 2012-03-13 16:44:19 +01:00
Eloy Lafuente (stronk7) e4db653e3a Merge branch 'wip-MDL-31175-m23' of git://github.com/samhemelryk/moodle 2012-03-13 16:15:02 +01:00
Eloy Lafuente (stronk7) 65fc03100d Merge branch 'w11_MDL-31845_m23_dbenrolcat' of git://github.com/skodak/moodle 2012-03-13 13:36:48 +01:00
Eloy Lafuente (stronk7) 7ca5dd85dc MDL-31718 add a few more tests to check that lens and tags are properly handled 2012-03-13 13:13:31 +01:00
Eloy Lafuente (stronk7) 45c41bdc06 Merge branch 'w11_MDL-31718_m23_shortentext' of git://github.com/skodak/moodle 2012-03-13 12:51:41 +01:00
Petr Skoda 5b8a9d1329 MDL-31790 prevent removing of protected role assignments from subcontexts 2012-03-13 12:30:13 +01:00
Ruslan Kabalin 0ea0a175da MDL-32027 messaging: Remove remains of old installation method
Since MDL-17457 installation is done using db/install.php
2012-03-13 11:17:35 +00:00
Aparup Banerjee fed36d5077 Merge branch 'MDL-31709_message_get_participants' of git://github.com/andyjdavis/moodle 2012-03-13 16:54:08 +08:00
Aparup Banerjee 66da1ab0ce Merge branch 'wip-MDL-31838-master' of git://github.com/marinaglancy/moodle 2012-03-13 16:10:19 +08:00
Petr Skoda 35c89e5e87 MDL-31790 fix incorrect capability 2012-03-13 09:09:04 +01:00
Aparup Banerjee 42c8e4d66d Merge branch 'master_MDL-31942' of git://github.com/danmarsden/moodle 2012-03-13 15:51:53 +08:00
Aparup Banerjee 387fb66fd9 Merge branch 'wip-mdl-27862' of git://github.com/rajeshtaneja/moodle 2012-03-13 15:16:30 +08:00
Aparup Banerjee 1fdd48c37f MDL-31008 themes : fixed up incorrect css typo 2012-03-13 15:10:41 +08:00
Aparup Banerjee c20cb1bab1 Merge branch 'wip-mdl-30817' of git://github.com/rajeshtaneja/moodle 2012-03-13 11:45:28 +08:00
Sam Hemelryk c8c00cee80 MDL-29745 Fixed white space 2012-03-13 16:36:37 +13:00
Sam Hemelryk a28c6b40fe Merge branch 'scorm_graph_report' of git://github.com/ankitagarwal/moodle 2012-03-13 16:35:15 +13:00
Aparup Banerjee f3c5d3102d Merge branch 'MDL-30867' of git://github.com/rwijaya/moodle 2012-03-13 11:26:42 +08:00
Mary Evans 5e5ebb39cf MDL-31008 themes : (base theme) reversed MDL-26712 by making dimmed objects grey and added new rule for dimmed activity label text to give 50% transparancy instead 2012-03-13 10:57:16 +08:00
Aparup Banerjee 6a0d8209d1 MDL-31910 Quiz : fixed whitespace 2012-03-13 10:15:05 +08:00
M Kassaei 137d60b66f MDL-31910 Quiz : Error on Manual Grading report 2012-03-13 10:13:27 +08:00
Aparup Banerjee e281281b84 Merge branch 'MDL-31935_search_restore_link' of git://github.com/davosmith/moodle 2012-03-13 10:00:33 +08:00
Ankit Agarwal e2f6cb436a MDL-22895 scorm: Fixed up issues with graph report 2012-03-13 09:31:01 +08:00
Sam Hemelryk db6d54c337 Merge branch 'MDL-31808-master-1' of git://git.luns.net.uk/moodle 2012-03-13 14:10:00 +13:00
Sam Hemelryk fd9dbadb15 Merge branch 'MDL-31917-master-1' of git://git.luns.net.uk/moodle 2012-03-13 14:04:44 +13:00
Sam Hemelryk 595dc849dd Merge branch 'MDL-31919-master-2' of git://git.luns.net.uk/moodle 2012-03-13 14:00:41 +13:00
Eloy Lafuente (stronk7) b20bb8454a Merge branch 'w11_MDL-31985_m23_lobsizes' of git://github.com/skodak/moodle 2012-03-13 00:15:59 +01:00
Sam Hemelryk 820a80f903 Merge branch 'w11_MDL-27457_m23_enrolnorecover' of git://github.com/skodak/moodle 2012-03-13 12:00:08 +13:00
Sam Hemelryk 397ee19727 Merge branch 'MDL-30298_master' of git://github.com/lazydaisy/moodle 2012-03-13 11:55:54 +13:00
Eloy Lafuente (stronk7) 403ff1b8ff Merge branch 'w11_MDL-31899_m23_mysqlcolumns' of git://github.com/skodak/moodle 2012-03-12 23:16:27 +01:00
Sam Hemelryk 80fa598515 Merge branch 'MDL-31702' of git://github.com/timhunt/moodle 2012-03-13 10:34:03 +13:00
Sam Hemelryk 3108b6412c Merge branch 'MDL-31362_unused_constant' of git://github.com/andyjdavis/moodle 2012-03-13 10:10:36 +13:00
Eloy Lafuente (stronk7) e4ccd85f3a Merge branch 'w11_MDL-31956_m23_paypal' of git://github.com/skodak/moodle 2012-03-12 21:36:36 +01:00
Eloy Lafuente (stronk7) 649fd88d8f MDL-31805 html2text - change tests acordingly with the new version
With the new version in place, both <th> and <a> contents are
being handled by the conversion. Accomodate existing tests to
that change.
2012-03-12 21:17:22 +01:00
Eloy Lafuente (stronk7) 39115a4fee Merge branch 'MDL-31979-master' of git://github.com/micaherne/moodle 2012-03-12 20:18:09 +01:00
Eloy Lafuente (stronk7) 89a47fcc4e Merge branch 'w11_MDL-31805_m23_html2text' of git://github.com/skodak/moodle 2012-03-12 18:04:55 +01:00
Eloy Lafuente (stronk7) f0131f57d9 Merge branch 'w11_MDL-31595_m23_enrolme' of git://github.com/skodak/moodle 2012-03-12 18:00:23 +01:00
Ruslan Kabalin 0210ce1007 MDL-32009 messaging: Add message processor uninstall functionality 2012-03-12 16:39:51 +00:00
Ruslan Kabalin 6f4f0b5228 MDL-32009 messaging: Add is_enabled method to plugintype_message 2012-03-12 16:39:35 +00:00
Ruslan Kabalin 26d859e0ec MDL-32009 messaging: Refator get_settings_url plugintype method
No need to duplicate checks since we have them in one place.
2012-03-12 16:39:04 +00:00
Petr Skoda b226ef619f MDL-31805 migrate html2text tests from web lib to new location
Note: the handling of <p> seems to have changed, it does double newlines only between paragraphs now (this makes sense to me).
2012-03-12 17:18:55 +01:00
Petr Skoda 39ec18db5b MDL-31595 improve enrol link comments 2012-03-12 16:47:28 +01:00
Eloy Lafuente (stronk7) c9a16202d7 Merge branch 'w11_MDL-31815_m23_confirmemail' of git://github.com/skodak/moodle 2012-03-12 16:33:27 +01:00
Eloy Lafuente (stronk7) ccd7a793ee Merge branch 'w11_MDL-31534_m23_pageinitroot' of git://github.com/skodak/moodle 2012-03-12 15:49:04 +01:00
Andrew Robert Nicols 950a11e8df MDL-32004 Set the defaultrequestcategory correctly when deleting/creating the default category 2012-03-12 13:15:25 +00:00
Petr Skoda 98054db10b MDL-31534 init PAGE before require_login() 2012-03-12 13:58:01 +01:00
Eloy Lafuente (stronk7) bf0233fb7b Merge branch 'w11_MDL-31494_m23_adodblink' of git://github.com/skodak/moodle 2012-03-12 13:38:30 +01:00
Eloy Lafuente (stronk7) 05386929de Merge branch 'w11_MDL-29514_m23_enum' of git://github.com/skodak/moodle 2012-03-12 12:47:56 +01:00
Mary Evans 180bf7d494 MDL-30298 report_progress: adds outer wrapper with class no-overflow to report table so as to enable horizontal scroll bar 2012-03-12 10:37:35 +00:00
Michael Aherne d8a30af8be MDL-31979 Typo in config-dist.php 2012-03-12 09:43:31 +00:00
Ankit Agarwal 95dd54eea3 MDL-30995 Completion Fixedup some more PHP DOC issues 2012-03-12 16:13:35 +08:00
Sam Hemelryk 836375ec8a MDL-30995 completion: Fixed up PHPdocs for activity completion 2012-03-12 15:27:21 +08:00
Ankit Kumar Agarwal e61a71379c MDL-29745 SCORM Introducing new Graphs report for scorm module 2012-03-12 15:02:26 +08:00
Sam Hemelryk fe0979ea3d Merge branch 'master_MDL-31888' of git://github.com/danmarsden/moodle
Conflicts:
	mod/scorm/styles.css
2012-03-12 17:29:39 +13:00
Sam Hemelryk 52cbd9cbd2 MDL-27304 mod_wiki: Fixed up phpdocs for globals 2012-03-12 17:20:37 +13:00
Sam Hemelryk 2774a46792 Merge branch 'MDL-27304-master' of https://github.com/mackensen/moodle 2012-03-12 17:20:01 +13:00
Charles Fulton 2d20d5488a MDL-31664 fix invalid boolean to string comparison 2012-03-12 17:02:38 +13:00
Sam Hemelryk c257dfc5ff MDL-27212 Fixed up whitespace after integration 2012-03-12 16:36:29 +13:00
Marina Glancy 20ee508499 MDL-31929: Repositories wikimedia and youtube lack paging
repositories wikimedia and youtube:
- save last search in
- process parameter 'page'
- remove buttons 'Refresh', 'Search' and 'Logout' since they don't have meaning
filepicker:
- allow unknown number of pages (['pages'] = -1), show one 'Next' page after the current (both JS and non-JS modes)
repository wikimedia:
- add non-AJAX search form to make it work with JS disabled
2012-03-12 11:35:50 +08:00
Marina Glancy 7f9358fcc0 MDL-31838: Allow caching static responses from repositories in file picker 2012-03-12 11:35:35 +08:00
Sam Hemelryk f0fe35bbbd Merge branch 'MDL-27212-master' of git://github.com/ankitagarwal/moodle 2012-03-12 16:28:16 +13:00
Rajesh Taneja 7f850b23d7 MDL-28972 formslib: orignalvalue is considered and checkboxes are updated depending on orignalvalue of controller 2012-03-12 10:25:21 +08:00
Rajesh Taneja c14584f206 MDL-28972 formslib: Checkbox controller will use yui to select and unselect checkboxes 2012-03-12 10:25:21 +08:00
Sam Hemelryk 401f929515 Merge branch 'MDL-28998-master' of git://github.com/ankitagarwal/moodle 2012-03-12 15:19:20 +13:00
Rajesh Taneja c069c01755 MDL-27862 Themes: Device name first letter is capital and font is made similar to theme name font 2012-03-12 10:18:28 +08:00
Rajesh Taneja df46b9b40d MDL-27862 Themes: clear theme cache button will redirect to the page on which it was pressed 2012-03-12 10:18:28 +08:00
Rajesh Taneja 36ff8d05de MDL-27862 Themes: replaced disabled use theme button with unset theme button 2012-03-12 10:18:28 +08:00
Rajesh Taneja bff67f4904 MDL-27862 Themes: Added button to un-select theme for devices, except default device 2012-03-12 10:18:28 +08:00
Rajesh Taneja 604cb17920 MDL-27862 Themes: Strings updated on theme selection pages 2012-03-12 10:18:27 +08:00
Rajesh Taneja 9e4baaf96f MDL-30817 activity_completion: Fixed title and alt string (on checkbox) to have module name prefixed 2012-03-12 10:16:31 +08:00
Sam Hemelryk d9fc82157b Merge branch 'MDL-31811-master-2' of git://git.luns.net.uk/moodle 2012-03-12 15:15:23 +13:00
Sam Hemelryk 6bf6e113bb Merge branch 'MDL-31877-master-1' of git://git.luns.net.uk/moodle 2012-03-12 14:57:11 +13:00
Sam Hemelryk 100875efdb Merge branch 'MDL-31918-master-2' of git://git.luns.net.uk/moodle 2012-03-12 14:54:42 +13:00
Dan Poltawski 35b7dd7b6a MDL-29440 calendar: iCal export don't allow html in description export 2012-03-12 09:51:43 +08:00
Sam Hemelryk 8dd4ccfbb3 Merge branch 'MDL-31923-master-6' of git://git.luns.net.uk/moodle 2012-03-12 14:33:42 +13:00
Sam Hemelryk 44f24f1351 Merge branch 'MDL-31841_feedback_align' of git://github.com/andyjdavis/moodle 2012-03-12 14:22:20 +13:00
Sam Hemelryk 2b824233ad Merge branch 'wip-MDL-30906-master' of git://github.com/abgreeve/moodle 2012-03-12 14:20:02 +13:00
Sam Hemelryk 00f286ed7b MDL-31175 backup: Fixed undefined in register_dependency 2012-03-12 09:42:50 +13:00
Sam Hemelryk aad30b6a39 MDL-27405 navigation: Improved checking when fetching all parent categories 2012-03-12 09:42:41 +13:00
Sam Hemelryk b0712163e6 MDL-27405 navigation: My courses branch now shows categories if navshowcategories is enabled 2012-03-12 09:42:41 +13:00
Petr Skoda e235f2a36e MDL-31718 utf-8 support in shorten_text() 2012-03-11 21:31:33 +01:00
Petr Skoda bb88a54d06 MDL-31985 remove text sizes from all install.xml files 2012-03-11 15:55:37 +01:00
Petr Skoda 436650b075 MDL-31985 convert all existing LOBs 2012-03-11 15:51:49 +01:00
Mary Evans a5ba7c3654 MDL-30298 report_completion: adds outer wrapper with class no-overflow to report table so as to enable horizontal scroll bar 2012-03-11 14:09:37 +00:00
Petr Skoda f13489df50 MDL-31985 remove LOB sizes from code and UI 2012-03-11 13:42:37 +01:00
Mary Evans 87993dca90 MDL-30298 theme_binarius: adds horizontal scroll to report layout 2012-03-11 01:25:25 +00:00
Mary Evans aa030baca2 MDL-31169 theme_base: adds clearfix to page layouts so body height is not zero 2012-03-10 22:05:04 +00:00
Petr Skoda bc09aa158b MDL-31899 use information_schema for normal db tables in get_columns()
This change is based on patch by Charles Fulton.
2012-03-10 21:41:44 +01:00
Petr Skoda f886a2cf79 MDL-31899 add extra text size unit tests 2012-03-10 21:38:57 +01:00
Petr Skoda 05aae0a571 MDL-29514 drop support for enum data types 2012-03-10 21:36:48 +01:00
Petr Skoda dcc27dd143 MDL-31790 add more support for user unenrolments in course reset 2012-03-10 15:25:53 +01:00
Petr Skoda b6f7dbe3a2 MDL-31845 fix not-null constraint on idnumber 2012-03-10 14:25:28 +01:00
Petr Skoda e042c58df1 MDL-31845 add "Local category field" option in database enrol plugin
This patch uses code from the original patch by Michael Aherne, most of the credit goes to him.
2012-03-10 14:19:49 +01:00
Petr Skoda f619fcdae1 MDL-31956 fix enrol string components
Credit goes to Mark Nelson
2012-03-10 13:01:19 +01:00
Petr Skoda e60ba0c919 MDL-31805 test invalid html processing in html2text 2012-03-10 12:46:11 +01:00
Petr Skoda 3d6b5d37b2 MDL-31805 import html2text revision 5886 with our customisations
snapshot from https://github.com/moodle/custom-html2text/tree/MOODLE_5886_1
2012-03-10 12:40:04 +01:00
Petr Skoda 04673aee32 MDL-31805 add tests for our html2text tweaks 2012-03-10 12:38:52 +01:00
Petr Skoda 63900cc51e MDL-31494 fix link to adodb driver docs
target="_bank" is valid again in html5, it does help a lot here no matter what legacy accessibility guides say…
2012-03-10 11:04:51 +01:00
Petr Skoda 3d951178fc MDL-31815 encode dots in confirm url which helps email clients with url highlighting 2012-03-10 10:46:36 +01:00
Petr Skoda f2ab2436b5 MDL-27457 fix JS error on enrol when grade history disabled 2012-03-10 09:59:25 +01:00
Petr Skoda 6813cdf73a MDL-31595 do not show enrolee link to guest account 2012-03-10 09:40:42 +01: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
Tim Hunt 9eb62b33b9 MDL-31981 shortanswer qtype does not handle \* in correct response. 2012-03-09 18:54:20 +00:00
Kordan f49b78f0fa MDL-31975 theme_formal_white: minor css cleanup 2012-03-09 14:20:53 +01:00
Tim Hunt ba3fedfb49 MDL-31702 quiz: clarify error message that has been confusing people. 2012-03-09 11:28:20 +00:00
Eloy Lafuente (stronk7) 23778a4dfa Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-09 11:56:22 +01:00
AMOS bot 80a0272a1d Automatically generated installer lang files 2012-03-09 11:54:12 +01:00
Eloy Lafuente (stronk7) 3a016edc0b weekly release 2.3dev 2012-03-09 11:13:09 +01:00
Eloy Lafuente (stronk7) c5d5d911a0 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-09 11:03:53 +01:00
Rossiani Wijaya d3254cebfc MDL-30867 Lesson module: fix lesson essay question formtting to be consistent with user selection 2012-03-09 17:32:18 +08:00
Eloy Lafuente (stronk7) e45cad3e5e Merge branch 'wip-MDL-31248-master-v3' of git://github.com/abgreeve/moodle 2012-03-09 09:44:30 +01:00
Eloy Lafuente (stronk7) a0808e8eda Revert "MDL-31248 - lib - Alteration to the rc4encrypt function to allow for old password use."
This reverts commit 6aa13eb36b.
2012-03-09 09:37:06 +01:00
Ankit Agarwal 5c333af0c0 MDL-2712 tags: removing the anchor links when there are no results 2012-03-09 15:02:10 +08:00
Ankit Agarwal 9247265b81 MDL-28998 libraries: Adding validation to customisable profile fields during signup 2012-03-09 14:48:36 +08:00
Adrian Greeve 40fe364713 MDL-31248 - lib - Retaining the old password key and creating a new cookie prefix. 2012-03-09 13:38:51 +08:00
Eloy Lafuente (stronk7) d395ad7042 Revert "[MDL-31708] - wiki 2.0 non-group member can see edit option in navigation block."
This reverts commit ebadb9b9a6.
2012-03-09 01:58:09 +01:00
Eloy Lafuente (stronk7) 61b0512c44 Revert "MDL-31708 wiki groups: whitespace fix"
This reverts commit 6273fb8377.
2012-03-09 01:58:01 +01:00
Iñaki Arenaza ca769fa7f8 MDL-31540 Try to remove duplicates before storing LDAP search contexts
If the user specifies the same LDAP search context more than once,
when we sync users we retrieve the same set of users twice. When we
try to insert the "duplicated" user in the temp table again, the db
barfs and the db layer aborts the whole transaction.

So we try to detect and remove duplicates. This is a bit tricky (LDAP
is such a complex and wonderful protocol) as the contexts are
distinguished names and the matching/comparison rules are complex. But
assuming that we only use the attribute types used in 99.999% of the
distinguished names used for contexts out there (that is: dc, ou, cn,
o, l and c), and also assuming that the user is not using different
encodings/escapings for the same context, we can lower case the
contexts to compare them (and remove duplicates).

This is safe according to RFC-4517 (section 4.2.15. distinguishedNameMatch)
and RFC-4519 (where the EQUAILITY property is defined for the
different user application attribute types).

This shouldn't break any configuration that wasn't broken before :)

Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2012-03-08 21:57:59 +01:00
Charles Fulton eb5947bcca MDL-26243 calendar: display correct number of repeated events 2012-03-08 06:47:07 -08:00
Andrew Robert Nicols ce13ea6ceb MDL-31923 Correctly respect hiddenfields and capabilities 2012-03-08 10:05:14 +00:00
Andrew Davis 62a966ada0 MDL-31841 grade: prevented the feedback column on the user report from being centered 2012-03-08 15:19:17 +07:00
Dan Marsden eb3a62d293 MDL-31942 Choice - remove deprec func 2012-03-08 20:37:17 +13:00
Eloy Lafuente (stronk7) 2583b7d22f Merge branch 'wip-MDL-31248-master-v2' of git://github.com/abgreeve/moodle 2012-03-08 02:27:55 +01:00
AMOS bot d30b5d8f16 Automatically generated installer lang files 2012-03-08 00:31:35 +00:00
Adrian Greeve 6aa13eb36b MDL-31248 - lib - Alteration to the rc4encrypt function to allow for old password use. 2012-03-08 08:09:39 +08:00
Eloy Lafuente (stronk7) 427ad4d3c3 Merge branch 'wip-MDL-29086-master' of git://github.com/abgreeve/moodle 2012-03-08 00:48:04 +01:00
Eloy Lafuente (stronk7) e233175df1 Merge branch 'wip-MDL-30991-master' of git://github.com/phalacee/moodle 2012-03-07 21:41:36 +01:00
Andrew Robert Nicols ccb8d546e3 MDL-31918 Use cached module info for activity completion report 2012-03-07 15:25:38 +00:00
Eloy Lafuente (stronk7) f1662409a0 Merge branch 'MDL-31712_master' of git://github.com/kordan/moodle 2012-03-07 15:39:01 +01:00
Davo Smith 87bef8f6d5 MDL-31935 Fixed restore backup link in course search 2012-03-07 13:38:29 +00:00
Petr Skoda a681b6c0a9 MDL-31689 fix moodle_database:execute() description 2012-03-07 12:36:40 +01:00
Eloy Lafuente (stronk7) daf714ef12 MDL-31832 CLI upgrade will return 0 exit status if no upgrade is needed
Discussed with David, both points were valid but finally
we agreed about to consider the "no upgrade needed" exit
a normal/succesful one, mainly because it keeps previous
behavior the same (exit non-zero only for real errors).
2012-03-07 10:58:56 +01:00
David Mudrak 91c038f932 MDL-31832 CLI upgrade checks if the upgrade is actually needed 2012-03-07 10:58:07 +01:00
Eloy Lafuente (stronk7) a1ef8c6d3c MDL-28364 whitespace fixes 2012-03-07 04:00:39 +01:00
Eloy Lafuente (stronk7) 12c5685a50 Merge branch 'MDL-28364' of git://github.com/jonof/moodle 2012-03-07 03:55:53 +01:00
Eloy Lafuente (stronk7) 47ee3c5569 MDL-30976 whitespace fixes 2012-03-07 02:19:59 +01:00
Eloy Lafuente (stronk7) 4651c2d214 Merge branch 'MDL-30996-master' of git://github.com/ankitagarwal/moodle 2012-03-07 02:10:40 +01:00
Eloy Lafuente (stronk7) 0b56e99431 MDL-23787 data: Init 2 arrays (global scope) that may conflict with other global scope code 2012-03-07 01:47:31 +01:00
AMOS bot f0fc15edd3 Automatically generated installer lang files 2012-03-07 00:31:41 +00:00
Eloy Lafuente (stronk7) 8650e13f9b Merge branch 'wip-MDL-23787-master' of git://github.com/marinaglancy/moodle 2012-03-07 01:22:54 +01:00
Eloy Lafuente (stronk7) bb77ead0a4 Merge branch 'MDL-31255-master-3' of git://git.luns.net.uk/moodle 2012-03-07 00:18:27 +01:00
Sam Hemelryk c607258ae4 Merge branch 'MDL-28387-master' of git://github.com/ankitagarwal/moodle 2012-03-07 11:46:42 +13:00
Eloy Lafuente (stronk7) 7a4eb4ad3a Merge branch 'MDL-31876-question_has_capability_on-memory-bloat' of git://github.com/dhg-atarplpl/moodle 2012-03-06 21:30:25 +01:00
Eloy Lafuente (stronk7) f1fbdbea33 Merge branch 'MDL-31829' of git://github.com/timhunt/moodle 2012-03-06 21:18:04 +01:00
Eloy Lafuente (stronk7) 55957253d2 Merge branch 'w10_MDL-31079_m23_minifydebug' of git://github.com/skodak/moodle 2012-03-06 21:10:02 +01:00
Dan Marsden 85a2d566e2 MDL-31888 SCORM prevent scrollbars on yui div 2012-03-07 09:01:45 +13:00
Ruslan Kabalin 8ef93c7029 MDL-31919 Fix assignment overview output to respect gradebook grading.
Currenly, if assigment has been graded in gradebook only, in the assigment
overview it is listed as not graded.
2012-03-06 16:55:29 +00:00
Charles Fulton 537c237b18 MDL-27304 wiki: link to user's course profile 2012-03-06 08:33:12 -08:00
Ruslan Kabalin 7761e7b39a MDL-31917 Improve assigment submission usability
Say 'View' if assignment has been graded via gradebook and changing
grades via submissions interface is not possible.
2012-03-06 15:43:07 +00:00
Eloy Lafuente (stronk7) 21013a39fd MDL-31301 textlib: fix deprecated initial version 2012-03-06 16:18:58 +01:00
Eloy Lafuente (stronk7) 2ed7cc2730 Merge branch 'w10_MDL-31301_m23_textlibcleanup' of git://github.com/skodak/moodle 2012-03-06 16:06:53 +01:00
Eloy Lafuente (stronk7) 050bce5f0c Merge branch 'w10_MDL-31361_m23_dbunenrol' of git://github.com/skodak/moodle 2012-03-06 15:38:29 +01:00
Eloy Lafuente (stronk7) c5e3e165b1 Merge branch 'w10_MDL-30636_m23_tinymce' of git://github.com/skodak/moodle 2012-03-06 13:35:40 +01:00
Eloy Lafuente (stronk7) ea5740a821 Merge branch 'w10_MDL-31785_m23_htmlpurifier' of git://github.com/skodak/moodle 2012-03-06 13:01:39 +01:00
Petr Skoda 7385cc000e MDL-27982 add unsigned removal for mysql 2012-03-06 12:04:48 +01:00
Petr Skoda e9e4a4a672 MDL-27982 convert all signed to unsigned and prevent adding of new unsigned columns
Conflicts, amended to use .02 versions:

	lib/db/upgrade.php, version.php
2012-03-06 12:03:59 +01:00
Petr Skoda 7e522ccbc8 MDL-27982 remove unsigned support from all UIs and APIs, keep only public API for BC 2012-03-06 12:02:11 +01:00
Petr Skoda c3dd6b01fe MDL-27982 drop UNSIGNED attributes from all install.xml files 2012-03-06 12:01:10 +01:00
Petr Skoda 10c5c29c02 MDL-27982 keep testing UNSIGNED in ddl tests for now 2012-03-06 12:00:29 +01:00
Eloy Lafuente (stronk7) 6273fb8377 MDL-31708 wiki groups: whitespace fix 2012-03-06 11:45:34 +01:00
Andrew Robert Nicols e8027a40cd MDL-31811 Add/Correct checks on activity read-only periods 2012-03-06 09:30:32 +00:00
Adrian Greeve 551028dfd4 MDL-30906 - course - Changed the <hx> tags to follow a sequential order 2012-03-06 14:50:09 +08:00
Gilles-Philippe Leblanc ebadb9b9a6 [MDL-31708] - wiki 2.0 non-group member can see edit option in navigation block. 2012-03-06 10:20:42 +08:00
Sam Hemelryk cb0a069019 Merge branch 'MDL-27764' of git://github.com/stronk7/moodle 2012-03-06 10:19:28 +13:00
Sam Hemelryk 22e5ef529d Merge branch 'MDL-31328_master' of git://github.com/lazydaisy/moodle 2012-03-06 09:57:06 +13:00
Andrew Robert Nicols cdca666bbb MDL-31877 Correct get_users exception 2012-03-05 13:48:55 +00:00
Gootvilig David Hai fe0fbfae31 MDL-31876 questionlib: fix question_has_capability_on memory bloat 2012-03-05 14:40:28 +02:00
Sam Hemelryk 1392fd114a Merge branch 'MDL-31828' of git://github.com/timhunt/moodle 2012-03-05 17:03:34 +13:00
Sam Hemelryk 0d4f9805ef Merge branch 'w10_MDL-31807_m23_cohort' of git://github.com/skodak/moodle 2012-03-05 16:56:30 +13:00
Sam Hemelryk 0d077cef06 Merge branch 'MDL-31821_master' of git://github.com/lazydaisy/moodle 2012-03-05 16:45:31 +13:00
Sam Hemelryk 41b542d96d Merge branch 'MDL-29347' of git://github.com/mouneyrac/moodle 2012-03-05 16:12:38 +13:00
Sam Hemelryk 48c6ebebbf MDL-30724 mod_assignment: Minor fixes during integration 2012-03-05 16:09:55 +13:00
Sam Hemelryk 29747783e2 Merge branch 'm_MDL-30724_count_real_submissions_eloy_suggests' of git://github.com/gerrywastaken/moodle 2012-03-05 16:08:19 +13:00
Tony Levi a7c9609ba5 MDL-31819: admin: allow install to proceed when multiple admins exist already 2012-03-05 15:42:08 +13:00
Sam Hemelryk 48e529c932 MDL-31794 theme_formalwhite: Fixed up tabs 2012-03-05 15:29:15 +13:00
Sam Hemelryk 8576f705f7 Merge branch 'MDL-31707' of git://github.com/stronk7/moodle 2012-03-05 15:21:29 +13:00
Kordan c18b6f6c50 MDL-29367 theme_formalwhite: Lines between RSS and upcoming events 2012-03-05 15:14:14 +13:00
Kordan f1f04a5a06 MDL-31786 theme_formalwhite: bigger userid and password fields size in login page 2012-03-05 15:04:43 +13:00
kordan 7547184df1 MDL-31794 theme_formalwhite: let tab-bar give evidence of the current tab and page 2012-03-05 15:01:15 +13:00
Eloy Lafuente (stronk7) b904130b5b MDL-27764 restore - always restore as much info as possible (1.9 approach)
In 2.0 we had reduced the types of restore operations where we allow
to load the section names and section descriptions, only proceeding
when restoring to new course or to existing course, deleting.

With this patch, we change to the old 1.9 way, that was to restore
the section information always, no matter of the type of restore
operation (course restore, import, to new or to existing course,
deleting or adding). The only exception is that it's always checked that
the target section names and descriptions are empty.
2012-03-05 02:41:33 +01:00
Sam Hemelryk 9394d86367 Merge branch 'MDL-26037' of git://github.com/stronk7/moodle 2012-03-05 14:03:34 +13:00
Sam Hemelryk 37b6e7a03c Merge branch 'MDL-29248' of git://github.com/stronk7/moodle 2012-03-05 13:54:46 +13:00
Sam Hemelryk b04d5217bf Merge branch 'MDL-31710' of git://github.com/stronk7/moodle 2012-03-05 13:36:34 +13:00
Sam Hemelryk 36d1d23179 Merge branch 'MDL-31642_dndupload_filemanager_notification_text' of git://github.com/davosmith/moodle 2012-03-05 13:31:08 +13:00
Sam Hemelryk 9b0e5e9d0d Merge branch 'MDL-31643_dndupload_reject_all_files' of git://github.com/davosmith/moodle 2012-03-05 13:22:04 +13:00
Kordan 686e10ce43 MDL-29127 theme_formalwhite: highlight for unread forum post 2012-03-05 12:38:12 +13:00
Sam Hemelryk 272853aec9 Merge branch 'master_MDL-31749' of git://github.com/danmarsden/moodle 2012-03-05 12:30:36 +13:00
kordan 43b64c9763 MDL-31866 theme_formalwhite: increased the line heigth for courses in category page 2012-03-05 12:27:44 +13:00
Sam Hemelryk 26f76c9c6c Merge branch 'MDL-24235-master' of https://github.com/mackensen/moodle 2012-03-05 12:22:34 +13:00
Sam Hemelryk a45621394b Merge branch 'MDL-31806-master' of https://github.com/mackensen/moodle 2012-03-05 12:05:53 +13:00
Sam Hemelryk 0170ada63b Merge branch 'MDL-30893-master' of git://github.com/ankitagarwal/moodle 2012-03-05 11:52:59 +13:00
Sam Hemelryk 936deb7e68 Merge branch 'MDL-31466-master' of git://github.com/ankitagarwal/moodle 2012-03-05 11:35:18 +13:00
Sam Hemelryk 63ecec3c37 Merge branch 'MDL-31655-master-3' of git://git.luns.net.uk/moodle 2012-03-05 11:28:38 +13:00
Sam Hemelryk 8498e630af Merge branch 'MDL-31656-master-3' of git://git.luns.net.uk/moodle 2012-03-05 11:09:29 +13:00
Sam Hemelryk a5dd1f4fb7 MDL-31660 forms: Added checks for form change detection 2012-03-05 11:00:14 +13:00
Sam Hemelryk f788011045 Merge branch 'MDL-31660-master-3' of git://git.luns.net.uk/moodle 2012-03-05 10:59:22 +13:00
Sam Hemelryk 06422b0a22 Merge branch 'MDL-31353_grader_io' of git://github.com/andyjdavis/moodle 2012-03-05 10:46:07 +13:00
AMOS bot ac4f3f330e Automatically generated installer lang files 2012-03-04 00:31:44 +00:00
Petr Skoda d1f582d99c MDL-31079 detect js and css minimisation failures 2012-03-03 11:53:53 +01:00
Petr Skoda 3fed29a792 MDL-31301 move textlib_get_instance() to deprecatedlib 2012-03-03 11:46:33 +01:00
Petr Skoda 6f3451e540 MDL-31301 remove all uses of moodle_strtolower() and deprecated it 2012-03-03 11:46:26 +01:00
Petr Skoda f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Petr Skoda 4a63589000 MDL-31361 allow unenrolling of suspended users in enrol/database 2012-03-03 11:37:51 +01:00
Petr Skoda 51a1c153d2 MDL-31785 fix and improve htmlpurifier tests 2012-03-03 11:23:36 +01:00
Petr Skoda e9df54952c MDL-31785 import HTMLPurifier 4.4.0+
Includes one extra fix for _blank 8c9d461a6259d7b8ac4ae5c9c9e95ab176cfcda3 compared to 4.4.0 release.
2012-03-03 11:11:48 +01:00
Petr Skoda 081003b685 MDL-31807 fix invalid nulls in cohort components
Credit goes to Stephen.
2012-03-03 10:56:31 +01:00
Petr Skoda 866e1112c5 MDL-30636 switch to new TinyMCE 3.4.9 2012-03-03 10:46:39 +01:00
Petr Skoda 6500eefec2 MDL-30636 add TinyMCE 3.4.9 2012-03-03 10:44:15 +01:00
Andrew Davis ca540697f1 MDL-31362 grade: removed GRADE_UPDATE_ITEM_DELETED as it is not genuinely being used anywhere 2012-03-03 10:00:01 +07:00
Mary Evans a897af2d2c MDL-31821_master theme_splash: added color white to h1 welcome text and a:link in userdetails 2012-03-03 00:39:45 +00:00
Davo Smith f4a46019ca MDL-31853 Fix pagelayout problem with admin_externalpage_setup 2012-03-02 16:12:45 +00:00
Charles Fulton be90ed23b5 MDL-24235 bennu: remove dependency on mbstring from library 2012-03-02 08:01:30 -08:00
Charles Fulton 464ee7577d MDL-29848 glossary: get proper context for comments on exported entry 2012-03-02 07:46:51 -08:00
Eloy Lafuente (stronk7) 4c000e8481 MDL-31710 webservice unit test: cleanup
This commit:

- fixes some missing (public|private) scope in methods.
- fixes whitespace
- fixes inline comments
- fixes other codechecker warnings/errors
2012-03-02 12:17:58 +01:00
Adrian Greeve 901d58dfd3 MDL-29086 - data - Fix for allowing the deletion of database activity presets.
Thank you to Matthias Hunstock for providing the patch for this.
2012-03-02 14:18:32 +08:00
Andrew Davis 8075c843ce MDL-31709 message: removed get_message_participants() as it is deprecated and should have been removed in 2.2 2012-03-02 12:49:38 +07:00
Ankit Agarwal cc4e04798e MDL-30893 Accessibility Submit button in forgot password page now have separate ids 2012-03-02 11:25:13 +08:00
Ankit Kumar Agarwal 9ccadad391 MDL-30976 Docs Documenting Conditional APIs 2012-03-02 10:22:46 +08:00
Jerome Mouneyrac a0a07014c2 MDL-30994 webservice API, check and update DocBlock 2012-03-02 09:49:41 +08:00
Jason Fowler 8c335cffc4 MDL-30990 - Docblock cleanup for Ratings API 2012-03-02 07:47:08 +08:00
Dan Marsden 1a27cb5da7 MDL-31749 - remove extra space from scorm pop-up - especially for afterburner theme 2012-03-02 09:13:07 +13:00
Wirianto Djunaidi bccdff582f Merge branch 'master' of https://github.com/moodle/moodle 2012-03-02 08:45:49 +13:00
Tim Hunt 296e1e9782 MDL-31829 question engine SQL typo breaks some regrades.
Also, some MySQL-only code had not been updated.

This problem only affected a small minority of question attempts, like
this:
1. Suppose you have a shortanswer question with correct answer 'Toad'
and some hints.
2. Suppose a student attempts this using the interactive behaviour and
on the first try responds 'Frog', and on the second try responds 'Toad'.
3. Then suppose the teacher edits the question to make 'Frog' correct.
4. Then, when the quiz is regraded, the question_attempt_step for the
second try will need to be deleted. That is where the buggy code was.
2012-03-01 12:33:14 +00:00
Eloy Lafuente (stronk7) cb7fc350cb MDL-26037 restore: fixes for mssql, php 5.4 and small improvs 2012-03-01 13:18:45 +01:00
Tony Levi a4df8560cc MDL-26037: import: display search box even when no courses are currently displayed 2012-03-01 13:18:45 +01:00
Tony Levi d0c94a1e84 MDL-26037: restore/import: check through all courses instead of only first 250 2012-03-01 13:18:45 +01:00
Tim Hunt 7a26403fc9 MDL-31828 attachements to essay questions do not work on Oracle. 2012-03-01 12:10:39 +00:00
Eloy Lafuente (stronk7) ac6dc09c26 MDL-29248 backup: take rid of the setting and code handling the 'private' user filearea 2012-03-01 13:09:47 +01:00
Eloy Lafuente (stronk7) f88224624d MDL-29248 backup: delete user_files settings, lang strings and uses 2012-03-01 13:09:47 +01:00
Davo Smith adce023069 MDL-31642 added 'max attachments' to filemanager and 'drag and drop' message inside the box 2012-03-01 11:57:32 +00:00
Davo Smith 2561d6346c MDL-31643 dndupload - prevent file upload when total file count would exceed the specified limit 2012-03-01 11:56:53 +00:00
Eloy Lafuente (stronk7) db1475ddb0 MDL-31707 environment - add check for the hash extension 2012-03-01 12:51:51 +01:00
Eloy Lafuente (stronk7) 5bbf3cb72b weekly release 2.3dev 2012-03-01 11:29:59 +01:00
Eloy Lafuente (stronk7) 8b4485c386 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-01 11:25:29 +01:00
Aparup Banerjee 6131c668d9 MDL-27793 themes : anomaly theme rtl+ltr login box element widths fixed to be acceptable for IE and FF. 2012-03-01 09:19:59 +01:00
Sam Hemelryk 887fd0e4c7 Merge branch 'MDL-31831' of git://github.com/stronk7/moodle 2012-03-01 14:34:09 +13:00
Eloy Lafuente (stronk7) 5dbfbacc49 MDL-31831 whitespace clean - take2 2012-03-01 02:20:35 +01:00
Eloy Lafuente (stronk7) eaf7533fc1 Merge branch 'wip-MDL-30985-m23' of git://github.com/samhemelryk/moodle 2012-03-01 01:07:33 +01:00
Eloy Lafuente (stronk7) 4ab641eeaa MDL-30973 Files API: Whitespace fixes 2012-03-01 00:56:23 +01:00
Eloy Lafuente (stronk7) 5d7bbc22dc MDL-30973 Files API: fix packages for workshopform subplugin 2012-03-01 00:41:58 +01:00
Eloy Lafuente (stronk7) d8c9ff403b Merge branch 's17_MDL-30973_file_docblock_master' of git://github.com/dongsheng/moodle 2012-03-01 00:25:18 +01:00
Andrew Robert Nicols 9188a9a037 MDL-31655 Warn users of unblurred but modified fields 2012-02-29 15:04:31 +00:00
Andrew Robert Nicols 88939271a1 MDL-31660 Rename form change detection javascript file 2012-02-29 14:50:52 +00:00
Charles Fulton e56cd67d2f MDL-31806 tags: remove second occurrence of id in query string 2012-02-29 05:07:47 -08:00
Ruslan Kabalin 93d46f4802 MDL-31255 Fix move of highlighted section when JS is off 2012-02-29 09:08:58 +00:00
Aparup Banerjee 615abdda9f MDL-25027 web service: moved validation to before changes to DB transaction. 2012-02-29 09:56:08 +01:00
Ankit Agarwal bf9f1bbd5e MDL-28387 logs: Rearranging the log record for readability 2012-02-29 14:16:45 +08:00
Ankit Agarwal 20a2f7596c MDL-28387 logs: Log data when a user is deleted 2012-02-29 14:15:59 +08:00
Eloy Lafuente (stronk7) 38a9c86fcb MDL-30982 fix one incorrect defined() 2012-02-29 02:41:17 +01:00
Eloy Lafuente (stronk7) d5d9d96ab4 Merge branch 'wip-mdl-29274' of git://github.com/rajeshtaneja/moodle 2012-02-29 02:13:46 +01:00
Eloy Lafuente (stronk7) 70bdf17ea2 Merge branch 'MDL-31748_master' of git://github.com/lazydaisy/moodle 2012-02-29 02:09:43 +01:00
Eloy Lafuente (stronk7) c3592ba7fa Merge branch 'MDL-26496' of git://github.com/rwijaya/moodle 2012-02-29 02:04:59 +01:00
Eloy Lafuente (stronk7) 62c68ed0cf MDL-31351 splash theme: fixed some @package tags 2012-02-29 01:52:23 +01:00
Eloy Lafuente (stronk7) 86c4c9e8f8 Merge branch 'MDL-31351_master' of git://github.com/lazydaisy/moodle 2012-02-29 01:47:10 +01:00
AMOS bot c9486c4123 Automatically generated installer lang files 2012-02-29 00:31:13 +00:00
Eloy Lafuente (stronk7) 93123b170d MDL-30976 navigation: fix a bunch of incorrect inline @see phpdoc tags 2012-02-29 00:56:41 +01:00
Eloy Lafuente (stronk7) d0d5fd36e6 Merge branch 'wip-MDL-30976-master' of git://github.com/abgreeve/moodle 2012-02-29 00:52:51 +01:00
Eloy Lafuente (stronk7) 1f256ec5ca Merge branch 'MDL-30982-docblock-backup' of git://github.com/mudrd8mz/moodle 2012-02-29 00:47:10 +01:00
Eloy Lafuente (stronk7) 24ff971106 Merge branch 'wip-MDL-31738-master' of git://github.com/marinaglancy/moodle 2012-02-29 00:29:23 +01:00
Eloy Lafuente (stronk7) 309d7a0c1b Merge branch 'wip_m_MDL-29178_fix_block_naming_inconsistencies' of git://github.com/gerrywastaken/moodle 2012-02-28 21:14:20 +01:00
Eloy Lafuente (stronk7) 64f0293fe2 Merge branch 'MDL-25027_stable_consistency_fix' of git://github.com/nebgor/moodle 2012-02-28 17:33:56 +01:00
Sam Hemelryk 34223e03e6 MDL-30964 Fixed up phpdocs during integration review 2012-02-28 15:53:59 +01:00
Andrew Robert Nicols 59155a3fb3 MDL-30616 Move module metadata retrieval to new function 2012-02-28 13:44:42 +00:00
Eloy Lafuente (stronk7) dde82858b8 Merge branch 'w09_MDL-30964_m23_access' of git://github.com/skodak/moodle 2012-02-28 12:44:03 +01:00
Eloy Lafuente (stronk7) cee44e2d96 Merge branch 'MDL-31363_grade_constants' of git://github.com/andyjdavis/moodle
Conflicts:
	lib/grade/constants.php
2012-02-28 12:37:44 +01:00
Ruslan Kabalin 2ce6d12f58 MDL-31808 Upload assignment: fix user feedback display 2012-02-28 11:15:03 +00:00
Aparup Banerjee ecb4c3f0ed Merge branch 'MDL-14837_show-time-on-no-duration-events' of https://github.com/ncsu-delta/moodle 2012-02-28 16:40:44 +08:00
Aparup Banerjee e2afa730f6 Merge branch 'm_MDL-31419_fix_auth_typo' of git://github.com/gerrywastaken/moodle 2012-02-28 16:22:19 +08:00
Aparup Banerjee 092d444dfb Merge branch 'MDL-30878' of git://github.com/mouneyrac/moodle 2012-02-28 15:35:45 +08:00
Aparup Banerjee 56658249c6 Merge branch 'MDL-28386-master' of git://github.com/ankitagarwal/moodle 2012-02-28 14:41:48 +08:00
Dan Marsden 0ec75d9ffe MDL-31086 Calendar : fix sql to get distinct list of courses 2012-02-28 14:20:38 +08:00
Aparup Banerjee 20a903c34f Merge branch 'MDL-31335_mtrace_email' of git://github.com/andyjdavis/moodle 2012-02-28 14:15:28 +08:00
Aparup Banerjee dcfd468dff Merge branch 'MDL-31739_forum_docblock' of git://github.com/andyjdavis/moodle 2012-02-28 14:12:26 +08:00
Ankit Agarwal ba184c9f76 MDL-31466 Tags Adding a capability check to make sure hidden courses are not displayed in tag search results 2012-02-28 14:03:32 +08:00
Aparup Banerjee 2ac18d9261 Merge branch 'wip-mdl-22896' of git://github.com/rajeshtaneja/moodle 2012-02-28 13:48:34 +08:00
Aparup Banerjee 0f0eca4299 Merge branch 'MDL-31399' of git://github.com/rwijaya/moodle 2012-02-28 12:04:47 +08:00
Gerard (Gerry) Caulfield 2640cba30d MDL-31419 Fixing "Suspended acount" typo in auth.php 2012-02-28 11:27:05 +08:00
Eloy Lafuente (stronk7) 96eccb7517 Merge branch 'MDL-27793' of git://github.com/nebgor/moodle 2012-02-28 03:29:33 +01:00
Jonathon Fowler 7da7bfa17d MDL-28364 handle question formats that support multiple file types 2012-02-28 09:39:06 +10:00
Eloy Lafuente (stronk7) 9f733c98a1 MDL-29161 weblib: added one more test about un-keyed array params 2012-02-27 22:20:34 +01:00
Eloy Lafuente (stronk7) 6c941fc10f Merge branch 'MDL-29161' of git://github.com/timhunt/moodle 2012-02-27 22:10:47 +01:00
Eloy Lafuente (stronk7) bea0a6f5eb Merge branch 'MDL-31721' of git://github.com/timhunt/moodle 2012-02-27 22:05:56 +01:00
Davo Smith 9f9c794733 MDL-29147 Quickform fixed insertElementBefore to ignore duplicate unnamed elements 2012-02-27 20:05:39 +00:00
Eloy Lafuente (stronk7) 869f80e4f3 Merge branch 'MDL-31729' of git://github.com/timhunt/moodle 2012-02-27 19:01:34 +01:00
Eloy Lafuente (stronk7) 516b956a28 Merge branch 'MDL-29256-resource-format' of git://github.com/mudrd8mz/moodle 2012-02-27 18:53:03 +01:00
Eloy Lafuente (stronk7) 92f901158f Merge branch 'MDL-29199-master' of git://github.com/danpoltawski/moodle 2012-02-27 18:47:12 +01:00
Adam Olley 369f61c113 MDL-29229 message: Set contactlist pull-down width to not exceed parent columns width 2012-02-27 17:07:44 +01:00
Eloy Lafuente (stronk7) ec1956655a Merge branch 'MDL-29523-master' of git://github.com/danpoltawski/moodle 2012-02-27 16:51:44 +01:00
Dan Poltawski 5dad45912c MDL-29592 weblib: prevent warnings when $USER not set 2012-02-27 16:11:36 +01:00
Dan Poltawski b4355cfb22 MDL-31348 calendar: event links not using user timezone
thanks to Ben Thomas for the patch
2012-02-27 15:58:25 +01:00
Eloy Lafuente (stronk7) 4c5c7b1301 Merge branch 'MDL-31546-master' of git://github.com/danpoltawski/moodle 2012-02-27 15:44:11 +01:00
Dan Poltawski bba67fcb31 MDL-31651 course/info: Fix hardcoded string 2012-02-27 15:32:55 +01:00
David Mudrak c1d4413e20 MDL-30982 Fixing invalid @example tag usage 2012-02-27 12:06:24 +01:00
David Mudrak a75af402af MDL-30982 Activity module stepslib - API documentation 2012-02-27 11:59:43 +01:00
David Mudrak 85aad2ef97 MDL-30982 Documenting some parts of backup settings machinery 2012-02-27 11:59:43 +01:00
David Mudrak f9dab4bed2 MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
David Mudrak 58b322cfd2 MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
David Mudrak 63baccbc54 MDL-30982 Improving phpDocs for the classes that extend backup_activity_task 2012-02-27 11:59:42 +01:00
David Mudrak cfab878c5d MDL-30982 Improving phpDocs for the class backup_activity_task 2012-02-27 11:59:42 +01:00
Paul Charsley 035c81c7bb Merge branch 'master' of github.com:Lightwork-Marking/moodle 2012-02-27 23:19:23 +13:00
Petr Skoda e67bc2a410 MDL-30964 fix phpdocs in access.php files in all plugins 2012-02-27 07:23:10 +01:00
Marina Glancy 00ecac7295 MDL-31738: added functions mod_xxx_get_file_info() to glossary and data modules 2012-02-27 14:20:00 +08:00
Petr Skoda f76249cc25 MDL30964 fix core_access API docs 2012-02-27 07:19:03 +01:00
Marina Glancy 292077063e MDL-23787 added possibility to embed images into textarea fields in database activity 2012-02-27 14:17:11 +08:00
Gerard (Gerry) Caulfield 8caba22968 MDL-30724 Limit assignment_count_real_submissions() to only select real
submissions

I've also refactored some code so that it is more structured and allows
for easier overriding of function associated with counting submissions
and updated associated doc blocks.
2012-02-27 12:24:48 +08:00
Dongsheng Cai 3ed74dd1d6 MDL-29347 core_enrol_get_enrolled_users web service should limit the number of participants - Jerome/Dongsheng 2012-02-27 11:39:01 +08:00
Sun Zhigang 1ab8cd2e1c MDL-29523 filemanager: Fix a hardcode string 2012-02-27 09:35:11 +08:00
Sam Hemelryk ef6cf871de MDl-30985 events: Fixed up phpdocs after review 2012-02-27 14:34:06 +13:00
Sam Hemelryk 1d1719f5dd MDL-30985 Fixed up event API phpdocs 2012-02-27 14:34:06 +13:00
AMOS bot 4da638d342 Automatically generated installer lang files 2012-02-27 00:31:14 +00:00
Adrian Greeve 31fde54fbc MDL-30976 - navigation - Updating the api block documentation. 2012-02-27 08:14:54 +08: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
Mary Evans 5e8984c106 MDL-31748_master theme_afterburner: added min-width to fix missing horizontal scroll bar when page is reduced in browser window 2012-02-25 17:56:24 +00:00
Mary Evans 5ae5b8e7ad MDL-31328_master theme_sky_high: fixed report layout and related files + updated css + added horizontal scroll 2012-02-25 02:44:53 +00:00
Mary Evans 3b2064e0bf MDL-31351_master theme_splash: add new menu-arrow.gif + deleted 33 obsolete images 2012-02-24 14:42:51 +00:00
Glenn Ansley 2af268a1f3 MDL-14837 Calendar: Display start time on calendar events with no duration 2012-02-24 08:58:31 -05:00
Gerard (Gerry) Caulfield bc9cc60191 MDL-29178 Fix block naming inconsistencies 2012-02-24 16:28:17 +08:00
Rajesh Taneja 44cbe13aea MDL-29274 blocks: people block will use course context for making url and not module context 2012-02-24 15:20:59 +08:00
Dan Poltawski 6ad22bb164 MDL-29199 dml: fix query logging on Oracle
thanks to Jonathon Fowler for the fix
2012-02-24 11:57:18 +08:00
Andrew Davis 8260050dbd MDL-31739 mod_forum: added phpdocs for forum_get_email_message_id() 2012-02-24 10:48:24 +07:00
Dan Poltawski 92b145dc81 MDL-31546 wiki: remove stray semicolon
causing errors on oracle

Thanks to Jonathon Fowler for the patch
2012-02-24 11:41:54 +08:00
Mary Evans 7ee84637bb MDL-31351_master theme_splash: added some new css files and embedded.php 2012-02-24 02:13:01 +00:00
Rajesh Taneja 59c81169ef MDL-22896 libraries: Updated regular expression in html2text, for replacing unknown/unhandled entities 2012-02-24 10:08:56 +08:00
Mary Evans 0170739a7d MDL-31351_master theme_splash: updated version 2012-02-24 01:53:46 +00:00
Aparup Banerjee 7842fba0d7 MDL-27793 Themes : review changes - removed .dir-rtl from .loginbox selector rule to be default css rule. made them same width too. 2012-02-24 09:52:21 +08:00
Aparup Banerjee c5f2853d82 MDL-27793 Themes : fixed "remember username" wrapping unnecessarily. 2012-02-24 09:52:21 +08:00
Aparup Banerjee 5c5a30fa79 MDL-27793 Themes : fixed base (and other themes) theme's loginbox
- fixed translated lengthy terms were being clipped
 - fixed clipping and positioning of loginbox in rtl and ltr languages both
2012-02-24 09:52:21 +08:00
Tim Hunt d44480f60f MDL-31729 questions: files for hints are not moved or deleted.
The files that belong to the question hints are neither moved when the
question is moved to another context, nor deleted when the question is
deleted.

Oops! How come no one noticed that until today.
2012-02-23 12:37:26 +00:00
Tim Hunt d5ffb7896b MDL-31721 question editing: improve working for Show num correct
AMOS BEGIN
 CPY [shownumpartscorrect,question],[shownumpartscorrectwhenfinished,question]
AMOS END
2012-02-23 12:37:02 +00:00
Tim Hunt ab82976f92 MDL-29161 weblib: moodle_ulr::out does not cope with array params. 2012-02-23 12:07:28 +00:00
Eloy Lafuente (stronk7) c4a12afaf9 weekly release 2.3dev 2012-02-23 11:38:14 +01:00
Eloy Lafuente (stronk7) 5e6e0a1123 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-02-23 11:34:35 +01:00
Rossiani Wijaya 7b4495b3b3 MDL-31399 Lesson Module: Fixed horizontal scroll bar issue when using rtl language format (eg: arabic) 2012-02-23 15:34:57 +08:00
Eduardo Pinto dd30ae41d0 MDL-26496 Lesson Module: removed warning when no answer is selected from single choice question 2012-02-23 14:10:18 +08:00
Andrew Davis 227e9023e2 MDL-31353 grade: added a missing YUI requires 2012-02-23 10:20:11 +07:00
Andrew Davis 0e7f31b42b MDL-31363 grade: removed 3 constants that are not being used anywhere 2012-02-23 08:51:19 +07:00
Sam Hemelryk 4a3ecbb25e MDL-30988 ajax: Fixed up phpdocs package in ajax scripts 2012-02-23 14:38:52 +13:00
AMOS bot 32556d5d12 Automatically generated installer lang files 2012-02-23 00:31:05 +00:00
Eloy Lafuente (stronk7) e757f51864 MDL-30997 - group - trailing whitespace + comment alignment fixes 2012-02-22 13:23:11 +01:00
Eloy Lafuente (stronk7) 202c72c997 Merge branch 'wip-MDL-30997-master' of git://github.com/abgreeve/moodle 2012-02-22 13:09:54 +01:00
AMOS bot 22993f3d12 Automatically generated installer lang files 2012-02-22 00:31:10 +00:00
Sam Hemelryk 75e4f98c0d MDL-30987 message: Minor phpdoc fix ups 2012-02-22 11:15:42 +13:00
Sam Hemelryk a513048a00 Merge branch 'MDL-30987_message_docs2' of git://github.com/andyjdavis/moodle 2012-02-22 10:58:06 +13:00
Sam Hemelryk 2caf3f9bee Merge branch 'MDL-30910' of git://github.com/rwijaya/moodle 2012-02-22 10:22:06 +13:00
Eloy Lafuente (stronk7) af7ee420f4 Merge branch 'wip-MDL-30830-m23' of git://github.com/samhemelryk/moodle 2012-02-21 21:11:15 +01:00
David Mudrak cb3ef22065 MDL-29256 Fixed incorrect calculation of contentformat
Legacy Resource modules of the type Web page force the HTML format for
their content. The format stored in the reference field is valid only
for legacy resources of the type Plain text page. See page_20_migrate()
function.
2012-02-21 11:19:57 +01:00
Eloy Lafuente (stronk7) 25f51decae Merge branch 'm_MDL-25996_making_language_editing_terms_user_friendly' of git://github.com/gerrywastaken/moodle 2012-02-21 10:47:37 +01:00
Aparup Banerjee 25eb90908e MDL-25027 Web Service: added email validation to create_users() - just like GUI 2012-02-21 15:23:57 +08:00
Aparup Banerjee 99b1e292fe MDL-25027 Web Service: removed user info(firstname,lastname) truncation for GUI-WS consistency.
Currently there is no validation on user info (firstname/lastname) in user/editadvanced_form.php
2012-02-21 15:08:15 +08:00
Kordan de78fa7922 accessibility colors for formal_white master 2012-02-21 06:15:58 +01:00
Rossiani Wijaya af4de0a2c2 MDL-30910: Lesson Module: fix lesson progress bar for screen readers
AMOS BEGIN
   CPY [progresscompleted, mod_lesson]
AMOS END
2012-02-21 12:31:35 +08:00
Andrew Davis 6fbd60ef57 MDL-30987 message: updated phpdocs for /lib/messagelib.php and /message 2012-02-21 10:57:55 +07:00
Wirianto Djunaidi c0c175e6c8 Merge branch 'master' of https://github.com/moodle/moodle 2012-02-21 16:32:23 +13:00
Adrian Greeve 4d8e241742 MDL-30997 - group - update of the api block documentation. 2012-02-21 11:17:27 +08:00
Sam Hemelryk 44e59a587c Merge branch 'MDL-30249' of git://github.com/mouneyrac/moodle 2012-02-21 14:55:56 +13:00
Sam Hemelryk aad1a1f7ce MDL-31158 enrol_manual: Fixed whitespace 2012-02-21 14:46:04 +13:00
Sam Hemelryk 4ddd465a2a Merge branch 'MDL-31158_grade_recovery' of git://github.com/andyjdavis/moodle 2012-02-21 14:44:50 +13:00
Eloy Lafuente (stronk7) 8c4988cd3b Merge branch 'MDL-31561' of git://github.com/kiklop74/moodle 2012-02-21 02:30:14 +01:00
Eloy Lafuente (stronk7) a96fb50192 Merge branch 'MDL-31562' of git://github.com/kiklop74/moodle 2012-02-21 02:28:14 +01:00
Andrew Davis de80da61e8 MDL-31158 grade: altered the help string for recovergradesdefault 2012-02-21 08:27:09 +07:00
Eloy Lafuente (stronk7) f4319f8531 Merge branch 'wip-mdl-25432' of git://github.com/rajeshtaneja/moodle 2012-02-21 02:10:10 +01:00
Eloy Lafuente (stronk7) c3ca963d81 Merge branch 'MDL-30698_multiple_emails' of git://github.com/andyjdavis/moodle 2012-02-21 01:43:53 +01:00
AMOS bot ae5ed89004 Automatically generated installer lang files 2012-02-21 00:31:12 +00:00
Sam Hemelryk 58b7d48f9a MDL-30974 forms: Last minute phpdoc fixes 2012-02-21 12:39:35 +13:00
Sam Hemelryk ceaad88222 Merge branch 'wip-mdl-30974' of git://github.com/rajeshtaneja/moodle 2012-02-21 12:07:30 +13:00
Sam Hemelryk 56588dfbee MDL-30988 Fixed phpdocs during integration review 2012-02-21 12:01:00 +13:00
Sam Hemelryk 26aca872ca Merge branch 'm_MDL-30988_adding_preference_api_phpdocs' of git://github.com/gerrywastaken/moodle 2012-02-21 11:59:48 +13:00
Sam Hemelryk e6e4fe4f43 Merge branch 'MDL-29402-master' of https://github.com/mackensen/moodle 2012-02-21 10:44:00 +13:00
Sam Hemelryk da3ec93275 Merged branch 'MDL-31014-master-4' of git://git.luns.net.uk/moodle.git with conflict resolution 2012-02-21 10:33:00 +13:00
Eloy Lafuente (stronk7) 6ff5994b49 Merge branch 'MDL-19421-master-3' of git://git.luns.net.uk/moodle 2012-02-20 17:11:22 +01:00
Andrew Robert Nicols ab48e73159 MDL-19421 Correct lesson dependency mapping on restore 2012-02-20 14:56:02 +00:00
Eloy Lafuente (stronk7) 9cd8e48ca6 Merge branch 'MDL-31345_master' of git://github.com/lazydaisy/moodle 2012-02-20 15:34:31 +01:00
Andrew Robert Nicols bca2b1c157 MDL-31014 Allow for selection of a different displayformat when approving glossary entries 2012-02-20 12:28:52 +00:00
Eloy Lafuente (stronk7) d03a130455 Merge branch 'wip-MDL-25299-m23' of git://github.com/samhemelryk/moodle 2012-02-20 12:58:54 +01:00
Eloy Lafuente (stronk7) 11ce79b05d MDL-30999 whitespace fix 2012-02-20 12:17:33 +01:00
Eloy Lafuente (stronk7) a4d7604977 MDL-30999 grade phpdocs - change some inline @see by correct @link 2012-02-20 12:09:50 +01:00
Eloy Lafuente (stronk7) 2a5fa9e64a Merge branch 'MDL-30999_grade_phpdocs' of git://github.com/andyjdavis/moodle 2012-02-20 12:02:18 +01:00
Andrew Robert Nicols f0a163ed6d MDL-31656 Open files in a new window when downloading with the filemanager
We need to open files in a new window rather than the existing window  to
prevent warning messages when files are uploaded and then downloaded
without the form being saved first.
2012-02-20 10:50:16 +00:00
Eloy Lafuente (stronk7) a0fbb0a270 Merge branch 'wip-MDL-30979-m23' of git://github.com/samhemelryk/moodle 2012-02-20 11:38:20 +01:00
Eloy Lafuente (stronk7) 47e5997851 MDL-30977 page phpdocs: 2 minor fixes in 2 functions 2012-02-20 11:28:08 +01:00
Eloy Lafuente (stronk7) 7dca125be4 Merge branch 'wip-MDL-30977-m23' of git://github.com/samhemelryk/moodle 2012-02-20 11:25:01 +01:00
Eloy Lafuente (stronk7) ad360e66ae Merge branch 'MDL-30972_final' of git://github.com/nebgor/moodle 2012-02-20 11:20:21 +01:00
Sam Hemelryk e76eba8111 Merge branch 'wip-mdl-29967' of git://github.com/rajeshtaneja/moodle 2012-02-20 18:20:37 +13:00
Sam Hemelryk 5f5ee19125 MDL-29254 Fixed whitespace 2012-02-20 18:08:33 +13:00
Sam Hemelryk fcd6bdd4fa Merged MDL-29254 with conflict resolution 2012-02-20 18:07:13 +13:00
Sam Hemelryk c2627cf429 Merge branch 'MDL-31483_master' of git://github.com/lazydaisy/moodle 2012-02-20 17:34:58 +13:00
Sam Hemelryk 5128ef6b45 Merge branch 'wip-MDL-30780-master' of git://github.com/marinaglancy/moodle 2012-02-20 17:29:47 +13:00
EVAN Irving-Pease 44ef537d8a MDL-28386 Authentication Fixing user id issue with logs when a new user is added 2012-02-20 09:56:31 +05:30
Sam Hemelryk 8e1b1b270b Merge branch 'wip-MDL-31627-master' of git://github.com/marinaglancy/moodle 2012-02-20 17:25:48 +13:00
Sam Hemelryk b91c364ef3 Merge branch 'm_MDL-31388_fix_enrol_LDAP_typo' of git://github.com/gerrywastaken/moodle 2012-02-20 17:13:36 +13:00
Sam Hemelryk 841fcd871b Merge branch 'MDL-31532' of git://github.com/stronk7/moodle 2012-02-20 17:10:52 +13:00
Sam Hemelryk 6007f8d8d8 Merge branch 'master_MDL-31381' of git://github.com/danmarsden/moodle 2012-02-20 17:04:45 +13:00
Sam Hemelryk a77fbf44da Merge branch 'MDL-31432_messaging_popup' of git://github.com/andyjdavis/moodle 2012-02-20 16:58:36 +13:00
Sam Hemelryk 52b2afa553 Merge branch 'm_MDL-30957_adding_assignment_completion_status_method_and_call' of git://github.com/gerrywastaken/moodle 2012-02-20 16:53:21 +13:00
Gerard (Gerry) Caulfield ad2d5eba0b MDL-30957 Adding a new method "is_complete" to assignment lib for
testing if a submission has actually been submitted and then adding a
call to it before displaying the the assignment submission date header

As recommended I've simplified the functions and split the logic out into appropriate upload classes.
2012-02-20 11:34:38 +08:00
Andrew Davis fc28177f4d MDL-31335 message: wrapped calls to mtrace() in email_to_user() within a check to make sure its a CLI script 2012-02-20 10:30:02 +07:00
Sam Hemelryk 22fbfa3b2f Merge branch 'master_MDL-31397' of git://github.com/danmarsden/moodle 2012-02-20 16:03:19 +13:00
Sam Hemelryk 26fad611da Merge branch 'master_MDL-31652' of git://github.com/danmarsden/moodle 2012-02-20 15:57:12 +13:00
Sam Hemelryk 9405721002 Merge branch 'master_MDL-31659' of git://github.com/danmarsden/moodle 2012-02-20 15:49:41 +13:00
Sam Hemelryk 3cb4c1e594 Merge branch 'MDL-30965-master' of git://github.com/ankitagarwal/moodle 2012-02-20 15:46:46 +13:00
Sam Hemelryk 398f16fe0f MDL-31014 Integrated 2012-02-20 15:39:11 +13:00
Sam Hemelryk 284814724b Merge branch 'MDL-31014-master-3' of git://git.luns.net.uk/moodle 2012-02-20 15:38:32 +13:00
Sam Hemelryk 8f9c818604 Merge branch 'MDL-31589-master-2' of git://git.luns.net.uk/moodle 2012-02-20 15:17:39 +13:00
Sam Hemelryk 1498035f37 Merge branch 'MDL-31590-master-1' of git://git.luns.net.uk/moodle 2012-02-20 15:01:19 +13:00
Rajesh Taneja aa803ceba2 MDL-29254 blog: added check in upgrade for summary and content to be null fields 2012-02-20 09:33:20 +08:00
Rajesh Taneja 5f1f726e68 MDL-25432 backup: Catching exception for orphan course modules and it's block (if any), and logging them, no exception will be thrown for this now. 2012-02-20 09:28:55 +08:00
Eloy Lafuente (stronk7) ee1dc83574 MDL-31532 restore: avoid null course->hiddensections problems. Credit goes to Petri Asikainen. Thanks! 2012-02-20 01:34:25 +01:00
AMOS bot 87e59a8f7d Automatically generated installer lang files 2012-02-20 00:31:15 +00:00
Sam Hemelryk 22bd2b93e5 Merge branch 'MDL-31556' of git://github.com/rwijaya/moodle 2012-02-20 12:39:12 +13:00
Sam Hemelryk 6dce4aa1ba Merge branch 'MDL-31647-master' of git://github.com/sammarshallou/moodle 2012-02-20 12:03:32 +13:00
Sam Hemelryk 06749fde07 Merge branch 'MDL-30495' of git://github.com/mouneyrac/moodle 2012-02-20 11:50:56 +13:00
Sam Hemelryk 9fdd4f7dc8 Merge branch 'wip-MDL-30971-master' of git://github.com/phalacee/moodle 2012-02-20 11:37:59 +13:00
Sam Hemelryk bc5fbbb3cd Merged branch wip-MDL-30521 with conflict resolutions 2012-02-20 10:32:08 +13:00
Mary Evans 55a573e5b0 MDL-31483_master theme_standard: Removed padding in custommenu item content and added line-height 2012-02-19 19:11:16 +00:00
AMOS bot 5db3b10bab Automatically generated installer lang files 2012-02-18 00:31:24 +00:00
sam marshall f5f19eb70e MDL-31647 Glossary: Links to glossary entries from glossary main page should not be popups 2012-02-17 10:36:18 +00:00
sam marshall d9498b3805 MDL-31514 Lib: Time format to remove unwanted zeros caused errors on Windows servers 2012-02-17 10:33:07 +00:00
Jerome Mouneyrac c78e11338a MDL-30249 Display warning when downloading/uploading a file 2012-02-17 17:02:40 +08:00
Gerard (Gerry) Caulfield 9e61bf63e1 MDL-25996 Updating languaged editing interface terms to make them user
friendly
2012-02-17 13:00:54 +08:00
Gerard (Gerry) Caulfield 7d169e53f4 MDL-31388 Fixing typo in enrol_ldap 2012-02-17 12:52:17 +08:00
Dan Marsden 1c6df63d5c SCORM MDL-31381 decrease max width of TOC to prevent SCORM content from being hidden, remove padding from pop-up and improve maxheight calculation 2012-02-17 17:14:12 +13:00
Sam Hemelryk 4460312d08 MDL-25299 mnet: Fixed validation when no public key is provided 2012-02-17 16:47:15 +13:00
Ankit Agarwal d6ae6816d0 MDL-30965 SCORM Removing unused variable ->head 2012-02-17 08:46:45 +05:30
Marina Glancy 001cdd04c2 MDL-31627: Arialist theme do not resize content when there are no blocks 2012-02-17 10:59:15 +08:00
Marina Glancy 4f9e66168a MDL-30780: fixing the disappearance of right part of the very wide rubric 2012-02-17 10:56:50 +08:00
Dan Marsden 6a3f2ad229 MDL-31659 SCORM remove old file and reference to it - it hasn't been used since the rework of SCORM player in MDL-22951 2012-02-17 15:29:36 +13:00
Charles Fulton dbe93bc7c7 MDL-31158 make grade recovery site-configurable 2012-02-17 09:25:24 +07:00
Andrew Davis 762677611a MDL-31432 message: prevent messaging popups while viewing messages 2012-02-17 09:23:48 +07:00
Dan Marsden 9e93f995dc SCORM MDL-31397 - add slashes to js string 2012-02-17 15:22:52 +13:00
Andrew Davis e54816bcf8 MDL-30698 message: changed message ID to be a hash 2012-02-17 09:21:02 +07:00
Andrew Davis 1376b0ddf8 MDL-30698 forum: made message ID genuinely unique to prevent mail servers dropping emails the look like duplicates 2012-02-17 09:21:02 +07:00
Sam Hemelryk f8129210d2 MDL-30979 output: Further changes are validation 2012-02-17 14:53:11 +13:00
Sam Hemelryk 3d3fae7259 MDL-30979 output: Changes after peer-review 2012-02-17 14:53:10 +13:00
Sam Hemelryk 76be40ccf9 MDL-30979 output: Adjustments to match recent changes in coding style doc 2012-02-17 14:53:10 +13:00
Sam Hemelryk 48d4fad10c MDL-30979 output: Fixed up phpdocs for page requirements code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 7a3c215b7a MDL-30979 output: Fixed up phpdocs for renderers code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 473dd81118 MDL-30979 output: Fixed up phpdocs for output code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 35a191a1b3 MDL-30979 output: Fixed up phpdocs for output factories code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 9678c7b845 MDL-30979 output: Fixed up phpdocs for output components code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 4d176f4e64 MDL-30979 output: Fixed up phpdocs for output actions code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 670b098b3d MDL-30977 moodle_page: Changes as required after further validation 2012-02-17 14:53:06 +13:00
Sam Hemelryk 5edb0fb8bf MDL-30977 moodle_page: Made changes noted in peer-review 2012-02-17 14:53:06 +13:00
Sam Hemelryk cd4ee5ea0c MDL-30977 moodle_page: Adjustments to match recent changes in coding style doc 2012-02-17 14:53:06 +13:00
Sam Hemelryk 0a0034f8ed MDL-30977 moodle_page: Tidied up and completed phpdocs 2012-02-17 14:53:05 +13:00
Sam Hemelryk de67c572e4 MDL-30830 dock: Added the title using accesshide for screen readers 2012-02-17 14:52:49 +13:00
Eloy Lafuente (stronk7) 0dde394db5 weekly release 2.3dev 2012-02-17 01:47:10 +01:00
Eloy Lafuente (stronk7) d764c275f2 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-02-17 01:43:19 +01:00
AMOS bot a97d4da684 Automatically generated installer lang files 2012-02-17 00:31:10 +00:00
Eloy Lafuente (stronk7) 3360b13bac MDL-31251 documentation : fix incorrect docs 2012-02-16 17:59:02 +01:00
Joseph Rezeau 608ba9fffb MDL-31556 Lesson Module: fixed missing 'lesson closes' event in calendar 2012-02-16 16:08:15 +08:00
Sam Hemelryk 889860576a Merge branch 'm_MDL-30935_lti_change_instructor_role_to_teacher' of git://github.com/gerrywastaken/moodle 2012-02-16 15:38:05 +13:00
Sam Hemelryk 1609f3cf7c Revert "MDL-30935_in_lti_change_role_from_instructor_to_teacher"
This reverts commit 0758f991b3.
2012-02-16 15:37:57 +13:00
Aparup Banerjee dafa20e85c MDL-30972 Documentation : improved @see as well as added appropriate uses of inline @link. 2012-02-16 10:29:45 +08:00
Gerard (Gerry) Caulfield 72ed614c74 MDL-30935_in_lti_change_role_from_instructor_to_teacher 2012-02-16 10:23:22 +08:00
Eloy Lafuente (stronk7) ec93cd94e8 Merge branch 's17_MDL-30984_comment_docblock_master' of git://github.com/dongsheng/moodle 2012-02-16 02:07:48 +01:00
Dan Marsden 8aba9cda72 MDL-31652 SCORM - hide updatefreq setting and remove it if not required. 2012-02-16 12:16:02 +13:00
Jason Fowler 13d1c9ed55 MDL-30991 - RSS - Doc-block clean up 2012-02-15 15:19:59 +08:00
Rajesh Taneja 6c1fd30484 MDL-30974 form: Checked and updated docblock for form library 2012-02-15 12:55:06 +08:00
Dongsheng Cai d2b7803e5a MDL-30973 Files API, check and update DocBlock 2012-02-15 12:48:57 +08:00
Jerome Mouneyrac dcd902a0f6 MDL-30495 HTML5 apps cannot call Webservices functions if a HTTP resource is retrieved from the Moodle installation 2012-02-15 11:33:11 +08:00
Aparup Banerjee 9906cf41ab Merge branch 'MDL-31114_dnd_ui_improvements' of https://github.com/davosmith/moodle 2012-02-15 11:32:32 +08:00
Sam Hemelryk be09c3f392 MDL-30888 course-search: Fixed typo 2012-02-15 16:28:44 +13:00
Sam Hemelryk 051806b2ee Merge branch 'wip-mdl-30388' of git://github.com/rajeshtaneja/moodle 2012-02-15 16:23:57 +13:00
Dongsheng Cai 35453657a2 MDL-30984 comment API, check and update DocBlock 2012-02-15 11:21:35 +08:00
Gerard (Gerry) Caulfield 4d6b40a020 Updating phpdoc comments to Rajesh's specifications. 2012-02-15 11:07:38 +08:00
Sam Hemelryk 18cdcdbf89 MDL-30989 portfolio: Fixed up phpdocs 2012-02-15 15:33:06 +13:00
Sam Hemelryk 9e7ff1476c Merge branch 'MDL-30989' of git://github.com/rwijaya/moodle 2012-02-15 15:32:16 +13:00
Eloy Lafuente (stronk7) 1991f37f55 Merge branch 'm_MDL-31552_change_add_to_log_exception_to_add_exception_information' of git://github.com/gerrywastaken/moodle 2012-02-15 03:19:44 +01:00
Eloy Lafuente (stronk7) 746aa0ba16 Merge branch 'MDL-31386-master-1' of git://git.luns.net.uk/moodle 2012-02-15 03:14:58 +01:00
Rajesh Taneja f53f582dc6 MDL-30388 Blocks: navigation block is visible on block search page 2012-02-15 10:14:50 +08:00
Rajesh Taneja cf5b731c9c MDL-30388 Blocks: Search view for block instances fixed, with proper page url and pagination 2012-02-15 10:14:49 +08:00
AMOS bot 8150fd9fa5 Automatically generated installer lang files 2012-02-15 00:31:12 +00:00
Sam Hemelryk 1ddb08084b MDL-31112 repository: Fixed phpdocs on new function 2012-02-15 12:44:32 +13:00
Sam Hemelryk f820701286 Merge branch 'MDL-31112_dndupload_folder_detection' of git://github.com/davosmith/moodle 2012-02-15 12:41:47 +13:00
Sam Hemelryk e4082c4bad MDL-30709 mod_assignment: Renamed callback to mod_assignment_get_file_info 2012-02-15 11:26:49 +13:00
Gerard (Gerry) Caulfield 709dfc0687 MDL-31552 Change add_to_log() so that it's exception handling throws a useful message when there is a problem. 2012-02-15 00:11:24 +08:00
Andrew Robert Nicols 1628fd3bb5 MDL-31590 Correct title of error dialogue on filepicker
Thanks to Gilles-Philippe Leblanc for this patch
2012-02-14 15:42:02 +00:00
Charles Fulton 1e966b8ae3 MDL-29402 QandA forum questions should be emailed 2012-02-14 06:01:05 -08:00
Eloy Lafuente (stronk7) 8ea8291f93 Merge branch 'MDL-30126' of git://github.com/mouneyrac/moodle 2012-02-14 13:12:07 +01:00
Eloy Lafuente (stronk7) 3210eeef50 Merge branch 'MDL-31527_xmldb_table_names' of git://github.com/davosmith/moodle 2012-02-14 12:11:49 +01:00
Davo Smith 7d44996c2a MDL-31114 Filemanager drag and drop upload - displays 'drop here' message when dragging over page / highlights when over element 2012-02-14 10:12:58 +00:00
Davo Smith 36dc50336e MDL-31114 Alert when max files reached 2012-02-14 09:49:49 +00:00
Jerome Mouneyrac adfb459c9e MDL-30878 core_user_update_users user password is reset if not specified 2012-02-14 16:49:36 +08:00
Davo Smith 87ed3a5c39 MDL-31112 Repository upload - check for completely null files (likely to be folders uploaded by mistake via drag and drop) 2012-02-14 08:25:04 +00:00
Iñaki Arenaza d5d181f5e9 MDL-29667 Plugins overview shows incorrect availability for auth & enrol plugins
We store the enabled plugins as array values but later look them up as array
keys. Just flip the array when we build it.
2012-02-14 15:47:39 +08:00
Aparup Banerjee aad69d8b1a Merge branch 'wip-mdl-28101' of git://github.com/rajeshtaneja/moodle 2012-02-14 15:38:43 +08:00
Andrew Davis a153c9f2fe MDL-30999 grade: updated Grade API phpdocs 2012-02-14 14:04:19 +07:00
Aparup Banerjee 21a7f3d27a Merge branch 'MDL-31321_dndupload_multiple_elements' of https://github.com/davosmith/moodle 2012-02-14 14:47:23 +08:00
Rajesh Taneja 669bdcabc9 MDL-30521 blog: Updated uniquehash field preceision to 255 in post table 2012-02-14 14:18:55 +08:00
Aparup Banerjee 9e31e848da Merge branch 'MDL-31541_multiple_repository_instances' of git://github.com/davosmith/moodle 2012-02-14 13:30:11 +08:00
Sam Hemelryk b7bf2c3a19 Merge branch 'MDL-30911' of git://github.com/rwijaya/moodle 2012-02-14 17:41:55 +13:00
Sam Hemelryk 49414a7746 MDL-30709 mod_assignment Fixed phpdocs for assignment_get_file_info 2012-02-14 17:15:17 +13:00
Sam Hemelryk d88f6dafdc Merge branch 'wip-MDL-30709-master' of git://github.com/marinaglancy/moodle 2012-02-14 17:14:05 +13:00
Fábio Souto 9e63c0ff71 Updated bugfix according to Jerome suggestions
password check is done at lib.php instead of externallib.php

Conflicts:

	user/lib.php
2012-02-14 12:04:15 +08:00
Jerome Mouneyrac db7c80d9e3 MDL-30126 rest client should be updated fo json support 2012-02-14 12:01:54 +08:00
Sam Hemelryk 1fa82cc153 Merge branch 'wip-MDL-30771-master' of git://github.com/marinaglancy/moodle 2012-02-14 17:00:41 +13:00
Aparup Banerjee 2114555ced Merge branch 'MDL-31495-master' of git://github.com/micaherne/moodle 2012-02-14 11:56:25 +08:00
Aparup Banerjee cfb35d826c Merge branch 'MDL-29471' of git://github.com/mouneyrac/moodle 2012-02-14 11:36:53 +08:00
Aparup Banerjee a49d83ba4e Merge branch 'm_MDL-30971_adding_tag_api_phpdocs_2' of git://github.com/gerrywastaken/moodle 2012-02-14 11:28:37 +08:00
Sam Hemelryk ba611bc025 Merge branch 'MDL-30688' of git://github.com/mouneyrac/moodle 2012-02-14 15:54:00 +13:00
Sam Hemelryk ec22386a40 Merge branch 'MDL-31604-attempt3' of git://github.com/mouneyrac/moodle 2012-02-14 15:48:51 +13:00
Sam Hemelryk 37ee40dc16 Merge branch 'm_MDL-26807_remove_withselectedusers_strings_and_references' of git://github.com/gerrywastaken/moodle 2012-02-14 15:32:12 +13:00
Sam Hemelryk 928c3d54e6 Merge branch 'm_MDL-27285_fixing_grammar_on_wiki_links_page' of git://github.com/gerrywastaken/moodle 2012-02-14 15:29:17 +13:00
Sam Hemelryk 2c4f43e1e7 Merge branch 'm_MDL-27654_add_space_to_somefieldrequired_string' of git://github.com/gerrywastaken/moodle 2012-02-14 15:21:20 +13:00
Sam Hemelryk 9fd088b792 Merge branch 'm_MDL-30935_lti_change_instructor_role_to_teacher' of git://github.com/gerrywastaken/moodle 2012-02-14 15:12:09 +13:00
Sam Hemelryk 24768e4658 Merge branch 'm_MDL-31107_fixing_below_typos' of git://github.com/gerrywastaken/moodle 2012-02-14 15:07:57 +13:00
Mary Evans dacbb36011 MDL-31345_master theme_afterburner: adds horizontal scroll bar to pagelayout-report 2012-02-14 01:41:29 +00:00
Sam Hemelryk f2e8a66d86 Merge branch 'MDL-28283-master' of git://github.com/ankitagarwal/moodle 2012-02-14 13:57:30 +13:00
Sam Hemelryk 0b07d7d4b8 Merge branch 'MDL-30815-master' of git://github.com/ankitagarwal/moodle 2012-02-14 13:45:04 +13:00
Sam Hemelryk a7986c15ce Merge branch 'MDL-31315-master-6' of git://git.luns.net.uk/moodle 2012-02-14 13:12:01 +13:00
Eloy Lafuente (stronk7) 70a4e462ab MDL-30975 Docs - whitespace fixes 2012-02-14 01:10:40 +01:00
Eloy Lafuente (stronk7) 277c811f08 MDL-30975 Docs - add phpdocs @param to report_log_print_graph() 2012-02-14 00:59:02 +01:00
Eloy Lafuente (stronk7) 35d8759a05 Merge branch 'MDL-30975' of git://github.com/ankitagarwal/moodle 2012-02-14 00:53:09 +01:00
Eloy Lafuente (stronk7) 29b6a3e8c3 MDL-31251 documentation : whitespace fixes 2012-02-14 00:36:12 +01:00
Eloy Lafuente (stronk7) 88e959afe5 Merge branch 'MDL-31251' of git://github.com/nebgor/moodle 2012-02-13 23:37:34 +01:00
Sam Hemelryk caec8e44c0 Merge branch 'MDL-31515-master-1' of git://git.luns.net.uk/moodle 2012-02-14 10:56:27 +13:00
Sam Hemelryk 66f5d0ea13 Merge branch 'MDL-29080_export_hidden2' of git://github.com/andyjdavis/moodle 2012-02-14 10:47:12 +13:00
Andrew Robert Nicols b9e7d8925e MDL-31589 Sort order of lesson answers before restoring them 2012-02-13 10:12:08 +00:00
Gerard (Gerry) Caulfield bcdcee903c MDL-30992 Updating Tag API DocBlocks 2012-02-13 16:42:59 +08:00
Jerome Mouneyrac 069fe36008 MDL-30688 REST simpleserver does not accept the moodlewsrestformat parameter 2012-02-13 16:39:50 +08:00
Ankit Kumar Agarwal 04252d3a13 MDL-30975 Docs Adding correct pacakge information 2012-02-13 11:06:47 +05:30
Ankit Kumar Agarwal a5fa03eebc MDL-30975 Docs Documenting report/livelogs 2012-02-13 11:06:44 +05:30
Ankit Kumar Agarwal f82de750bf MDL-30975 Docs Documenting report/logs 2012-02-13 11:06:43 +05:30
Ankit Kumar Agarwal fcf64900e6 MDL-30975 Docs Documenting Logs API 2012-02-13 11:06:42 +05:30
Sam Hemelryk 2ac8cf7a20 Merge branch 'm_MDL-29153_fix_typo_in_resource' of git://github.com/gerrywastaken/moodle 2012-02-13 18:04:18 +13:00
Sam Hemelryk 76ef8d80f6 Merge branch 'm_MDL-30723_fixing_several_english_typos' of git://github.com/gerrywastaken/moodle 2012-02-13 18:00:35 +13:00
Sam Hemelryk bcce1ec140 Merge branch 'master_MDL-31085' of git://github.com/danmarsden/moodle 2012-02-13 17:52:48 +13:00
Sam Hemelryk c282f2aebd Merge branch 'MDL-31502-master-2' of git://git.luns.net.uk/moodle 2012-02-13 17:48:12 +13:00
Sam Hemelryk ac87f25829 Merge branch 'wip-MDL-25185-master' of git://github.com/abgreeve/moodle 2012-02-13 17:34:50 +13:00
Sam Hemelryk f9fea1dbc4 Merge branch 'wip-MDL-31396-master' of git://github.com/abgreeve/moodle 2012-02-13 17:15:56 +13:00
Sam Hemelryk 114824a6b9 Merge branch 'wip-MDL-31463-master' of git://github.com/abgreeve/moodle 2012-02-13 17:02:45 +13:00
Anita Viglinoe a1b9872209 MDL-28283-master Completion Future dates can now be set as completion criteria 2012-02-13 09:05:10 +05:30
Rossiani Wijaya e481859f6b MDL-30911: mod_lesson: fix sub-heading level to be lower than lesson title. This issue is an improvement of accessibility compliance 2012-02-13 11:26:27 +08:00
Ankit Agarwal 546a3f8130 MDL-30815 Choice Labels are now explicitly tied with input elements 2012-02-13 08:26:45 +05:30
Eloy Lafuente 6b7f1717e9 MDL-31604 Fix capabilities displayed without spaces causing text going out of the screen 2012-02-13 10:43:30 +08:00
Sam Hemelryk f53b63481f Merge branch 'wip-mdl-31576' of git://github.com/rajeshtaneja/moodle 2012-02-13 15:29:43 +13:00
Sam Hemelryk 6cf1f978b2 Merge branch 'wip-mdl-31529' of git://github.com/rajeshtaneja/moodle 2012-02-13 15:28:26 +13:00
Rajesh Taneja b7c3ab01c4 MDL-28101 wiki2.0: escape bold and italics for NWIKI formatting 2012-02-13 10:28:07 +08:00
Sam Hemelryk ea5ce02579 Merge branch 'MDL-31554' of git://github.com/timhunt/moodle 2012-02-13 15:26:06 +13:00
Rajesh Taneja 7e08c95fd8 MDL-31529 csslib: third param passed to css_store_css fixed 2012-02-13 10:23:51 +08:00
Rajesh Taneja 147db691cf MDL-31576 core: Duplicate message definition removed from get_core_subsystem 2012-02-13 10:22:05 +08:00
Sam Hemelryk 645573cab3 Merge branch 'MDL-25883-master' of https://github.com/mackensen/moodle 2012-02-13 14:35:19 +13:00
Eloy Lafuente (stronk7) 5fc420e2ed weekly release 2.3dev 2012-02-13 01:17:41 +01:00
Eloy Lafuente (stronk7) 01f3b0aaf1 Revert "MDL-31345 theme_afterburner fixes pagelayout-report overflow"
This reverts commit 5d24254a9d.
2012-02-12 23:19:20 +01:00
Michael Aherne 2af7d0d8d0 MDL-31495 Performance improvement in question engine upgrade SQL 2012-02-10 15:24:43 +00:00
Gerard (Gerry) Caulfield ce8df92df1 MDL-31107 Fixing instaces of below where it is written as bellow (two L's) 2012-02-10 15:40:04 +08:00
Marina Glancy 577c89644f MDL-30771: Enable students to view rubric definition prior to submission
Also allow advanced grading plugin to extend course module navigation, it is not necessary only definition previewing
Added option to rubric whether to show it to the students before submission and option to view description
2012-02-10 13:03:55 +08:00
Paul Charsley 32bf9b8eac Merge branch 'master' of https://github.com/moodle/moodle 2012-02-10 17:50:30 +13:00
Aparup Banerjee 83a4ee1ea0 MDL-31251 documentation : improved core ddl API phpdocs. (used moodlecheck plugin) 2012-02-10 12:42:46 +08: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
Gerard (Gerry) Caulfield 0758f991b3 MDL-30935_in_lti_change_role_from_instructor_to_teacher 2012-02-10 10:23:42 +08:00
Gerard (Gerry) Caulfield c80a486866 MDL-27285 Updating string grammar on the wiki module's links page 2012-02-10 07:55:29 +08:00
Gerard (Gerry) Caulfield 592aa64ac5 MDL-26807 Updating the withselectedusers_help string 2012-02-10 02:16:38 +08:00
Gerard (Gerry) Caulfield ee02742473 MDL-30723 Fixing English typo(s) 2012-02-10 01:47:21 +08:00
Gerard (Gerry) Caulfield b31cf5d973 MDL-27654 Insert a space into the somefieldrequired string 2012-02-10 01:24:16 +08:00
Gerard (Gerry) Caulfield 725a2fed22 MDL-29153 Fixing typo, "Bellow" should be "Below" 2012-02-10 00:40:07 +08:00
Andrew Robert Nicols 00e8d08dba MDL-31315 Ask before moving away from a modified form 2012-02-09 14:55:18 +00:00
Marina Glancy 7d3ebf4c19 MDL-30709: Fixed bug with inserting files from Recent files repository
Two parts of changes: in assignment module function assignment_get_file_info was missing
and when populating the list of recent files the function get_file_info was not called, which caused populating the list of recent files with the files that could not later be inserted
2012-02-09 13:55:41 +08:00
Aparup Banerjee 096880eb7c MDL-30972 More phpdocs changes after Jenkins review. 2012-02-09 10:07:48 +08:00
Aparup Banerjee a0eb2e97f9 MDL-30972 Documentation : Renamed DB engine drivers to "@package core" but moodle_*.php are "@subpackage dml_driver", all other dml/*.php are "@subpackage dml". 2012-02-09 10:01:42 +08:00
Aparup Banerjee ae1e17c25b MDL-30972 Documentation : fixed up phpdocs for dmllib.php 2012-02-09 10:01:42 +08:00
Aparup Banerjee 6df260107c MDL-30972 Documentation : clarified phpdocs for main public APIs in DML layer and touched up on some drivers 2012-02-09 10:01:42 +08:00
Adrian Greeve 76565fa102 MDL-31463 - navigation - added a context check in the navigation for fullname permission. 2012-02-09 09:46:37 +08:00
Aparup Banerjee d749f1dd50 Merge branch 'wip-MDL-31417-master' of git://github.com/marinaglancy/moodle 2012-02-09 09:43:54 +08:00
Adrian Greeve 834686037c MDL-25185 - data - Allowing data from the database to be exported according to group roles. 2012-02-09 09:26:08 +08:00
Darko Miletic 5b6d8a05f4 MDL-31562: Implemented support for exporting labels, minor additional
cleanups
2012-02-08 16:11:59 -03:00
Darko Miletic 5758596b95 MDL-31561: Implemented fix for honoring correct number of course
sections
2012-02-08 16:01:55 -03:00
Eloy Lafuente (stronk7) f3fb0e775e Merge branch 'MDL-30983' of git://github.com/rwijaya/moodle 2012-02-08 17:04:53 +01:00
Tim Hunt 5837df9267 MDL-31554 quiz view.php notices when guest / no enroled. 2012-02-08 15:39:26 +00:00
Eloy Lafuente (stronk7) 722b55dd16 Merge branch 'wip-mdl-30980' of git://github.com/rajeshtaneja/moodle 2012-02-08 13:18:49 +01:00
Eloy Lafuente (stronk7) 9e751fdbe3 MDL-27891 tag logs: minibump version 2012-02-08 11:43:40 +01:00
Eloy Lafuente (stronk7) fd1981aea7 Merge branch 'MDL-27891-master' of git://github.com/ankitagarwal/moodle 2012-02-08 11:36:21 +01:00
Eloy Lafuente (stronk7) 4b192ea039 Merge branch 'MDL-31345_master' of git://github.com/lazydaisy/moodle 2012-02-08 11:13:53 +01:00
Eloy Lafuente (stronk7) 82b07ee7d3 Merge branch 'MDL-31316-master-4' of git://git.luns.net.uk/moodle 2012-02-08 11:07:55 +01:00
Ruslan Kabalin 29b9b464d8 MDL-31316 Fix block controls when default home is My Moodle 2012-02-08 09:46:36 +00:00
Davo Smith fdb0322d72 MDL-31541 Repositories - make sure all repository instances have unique 'sortorder' values when retrieved 2012-02-08 09:35:39 +00:00
Davo Smith 1cdadf5140 MDL-31527 XMLDB Editor - make sure default tables are created with correct plugin prefix 2012-02-08 08:24:18 +00:00
Andrew Davis 8887fd9a77 MDL-29080 grade: simplified bug fix to prevent users without the required capabilities from being able to export hidden grade items 2012-02-08 13:45:43 +07:00
Mary Evans 5d24254a9d MDL-31345 theme_afterburner fixes pagelayout-report overflow 2012-02-08 03:52:15 +00:00
Aparup Banerjee 90c34a1b3c Merge branch 'MDL-31407' of git://github.com/timhunt/moodle 2012-02-08 11:25:44 +08:00
Eloy Lafuente (stronk7) 24775c922c Merge branch 'MDL-29892_overview_hidden' of git://github.com/andyjdavis/moodle 2012-02-08 03:38:36 +01:00
Ankit Agarwal e11b8b160c MDL-27891 Tags Flagging tags is now logged 2012-02-08 07:50:47 +05:30
Aparup Banerjee 50ea492bc5 Merge branch 'master_MDL-31461' of git://github.com/danmarsden/moodle 2012-02-08 10:12:20 +08:00
Aparup Banerjee 1dd9848042 Merge branch 'MDL-31482-master' of git://github.com/sammarshallou/moodle 2012-02-08 09:57:55 +08:00
Eloy Lafuente (stronk7) f380b7a80b Merge branch 'MDL-30722_forum_unsubscribe' of git://github.com/andyjdavis/moodle 2012-02-08 02:37:11 +01:00
Eloy Lafuente (stronk7) ae8c201905 Merge branch 'wip-MDL-30540-master' of git://github.com/phalacee/moodle 2012-02-08 01:17:51 +01:00
Eloy Lafuente (stronk7) e80898b525 Merge branch 'MDL-26384-master' of git://github.com/ankitagarwal/moodle 2012-02-08 00:48:32 +01:00
Eloy Lafuente (stronk7) 1208c6bb72 Merge branch 'MDL-27360' of git://github.com/mouneyrac/moodle 2012-02-07 23:49:01 +01:00
sam marshall edcf82d5a3 MDL-31482 Lib: IE8/IE7 (even with stupid user agent) should not be 'legacy' device type 2012-02-07 17:41:13 +00:00
Andrew Robert Nicols 3754f4f3ee MDL-31502 Check whether a category has subcategories or courses within it before using those variables 2012-02-07 09:30:04 +00:00
Davo Smith 6d9121d3a8 MDL-31321 Drag and drop upload - can now cope with multiple filemanager/filepickers on a page 2012-02-07 07:45:41 +00:00
Aparup Banerjee d2fea85219 Merge branch 'MDL-31469' of git://github.com/timhunt/moodle 2012-02-07 15:11:43 +08:00
Aparup Banerjee 74bad523ff Merge branch 'MDL-31445' of git://github.com/timhunt/moodle 2012-02-07 15:02:32 +08:00
Rajesh Taneja 55d1f2727c MDL-30980 core: Php document updated for string api 2012-02-07 14:35:47 +08:00
Aparup Banerjee 74126453c5 Merge branch 'MDL-31491_master' of git://github.com/kordan/moodle 2012-02-07 14:10:26 +08:00
Dan Marsden 896405146d MDL-31985 - fix quotes in filter 2012-02-07 09:52:31 +13:00
Andrew Robert Nicols f0f41c5e57 MDL-31515 Allow for subsequent files to overwrite old files in database activity records 2012-02-06 15:19:11 +00:00
Marina Glancy ef5c6a5784 MDL-31417: updated list of world currencies
Some countries do not exist any more, some currencies do not exist. Some countries (and currencies) started to exist recently. Some currency codes are changed (mistype or result of denomination).

Also I tried to keep the moodle formation of the name of the currencies. The first word is not the country name but the 'belonging-to-country', i.e. not 'Sweden Krona' but 'Swedish Krona'. For some countries it was not so easy to find the correct spelling.

And finally there were some mistakes in the list, like 'Schilling' instead of 'Shilling', 'Riyal' instead of 'Rial', etc. I used currencies spelling from ISO.
2012-02-06 09:57:26 +08:00
Adrian Greeve c6c15daf81 wip-MDL-31396 - data - Exporting a preset as a zip code changed to remove errors. 2012-02-06 09:46:20 +08:00
Kordan 214381bfc1 added mandatory lines to formal_white report layout 2012-02-03 08:24:29 +01:00
Ankit Agarwal 7525825648 MDL-26384 Tags Fixed redirect issue when editing is toggled 2012-02-03 09:39:13 +05:30
Jason Fowler ae6313d4a7 MDL-30540 - BLOG - Fixing context problems for single blog entries - Thanks Aparup and Sam for the help 2012-02-03 10:49:52 +08:00
Andrew Davis 31eae0eb17 MDL-29892 grade: added a check to prevent hidden courses appearing on student overview reports 2012-02-03 08:46:54 +07:00
Dan Marsden 266540eb23 MDL-31461 Plagiarism - adjust api functions to allow better support for renderers 2012-02-03 11:37:51 +13:00
Tim Hunt 3bbac90b2a MDL-31469 formslib: fix invalid for="" attributes on optional dates 2012-02-02 18:38:01 +00:00
Anthony Forth 0f3f6fed69 MDL-31445 formslib: add a nice id and class to the wrapper div for CSS 2012-02-02 18:37:34 +00:00
Tim Hunt cef18275b3 MDL-31407 quiz: review all uses of global $USER 2012-02-02 18:37:08 +00:00
Kyle Temkin 704f062b87 MDL-31407 quiz: finish_attempt method should not rely on $USER 2012-02-02 18:37:05 +00:00
Eloy Lafuente (stronk7) baa5cd8240 weekly release 2.3dev 2012-02-02 12:12:25 +01:00
Jerome Mouneyrac 2214c4a2e8 MDL-27360 Web service tokens are displayed for deleted users 2012-02-02 15:34:05 +08:00
Aparup Banerjee b0ce209054 Merge branch 'master_MDL-31360' of git://github.com/danmarsden/moodle 2012-02-02 11:22:58 +08:00
Eloy Lafuente (stronk7) 26ed4e73eb Merge branch 'MDL-29615_control_override_email2' of git://github.com/andyjdavis/moodle 2012-02-01 13:17:08 +01:00
Dan Marsden 2be99ddee8 MDL-31360 use extra param in get_in_or_equal - one less line of code... 2012-02-01 23:11:03 +13:00
Dan Marsden 03a6727b6c MDL-28522 Choice : View reports now correctly shows unanswered column - thanks to Marcus Boon for the patch 2012-02-01 11:24:54 +08:00
Andrew Davis 8900213b92 MDL-29615 message: reversed the default for messagingallowemailoverride and added upgrade code so upgraded sites maintain consistent behaviour 2012-02-01 09:26:53 +07:00
Eloy Lafuente (stronk7) e691a270a9 Merge branch 'MDL-31267' of git://github.com/epsd/moodle 2012-02-01 01:03:21 +01:00
Eloy Lafuente (stronk7) 6ad5968d68 Merge branch 'wip-MDL-31160-m23' of git://github.com/samhemelryk/moodle 2012-02-01 00:53:16 +01:00
Eloy Lafuente (stronk7) 9a7e63128a Merge branch 'wip-MDL-31197-m23' of git://github.com/samhemelryk/moodle 2012-02-01 00:48:47 +01:00
Eloy Lafuente (stronk7) 94a0c97464 Merge branch 'master_MDL-31039' of git://github.com/danmarsden/moodle 2012-02-01 00:41:25 +01:00
Eloy Lafuente (stronk7) 8aac56c6be Merge branch 'MDL-31000-master-3' of git://git.luns.net.uk/moodle 2012-02-01 00:25:05 +01:00
Eloy Lafuente (stronk7) a14e3f274e Merge branch 'MDL-31448_incorrect-comment' of https://github.com/ncsu-delta/moodle 2012-01-31 23:57:32 +01:00
Eloy Lafuente (stronk7) f31e83015d MDL-30714 theme_afterburner: better, output the information, LOL 2012-01-31 23:37:19 +01:00
Mary Evans 250633ebe3 MDL-30714 theme_afterburner: logo link to home page 2012-01-31 23:19:21 +01:00
Glenn Ansley 7493a4bb3b MDL-31448 Replaced incorrect PHP comment 2012-01-31 14:39:23 -05:00
Eloy Lafuente (stronk7) 008bf7f0ac Merge branch 'MDL-31015-master' of git://github.com/sammarshallou/moodle 2012-01-31 19:44:21 +01:00
Eloy Lafuente (stronk7) ba353742ce Merge branch 'MDL-30854' of git://github.com/timhunt/moodle 2012-01-31 19:30:58 +01:00
Eloy Lafuente (stronk7) 7ce92ac1ad Merge branch 'MDL-30484' of git://github.com/timhunt/moodle 2012-01-31 17:16:04 +01:00
Eloy Lafuente (stronk7) ade31f5f4f Merge branch 'MDL-31314' of git://github.com/timhunt/moodle 2012-01-31 17:06:01 +01:00
Aparup Banerjee d7da31228e Merge branch 'MDL-30828_feedback_sort' of git://github.com/andyjdavis/moodle 2012-01-31 16:48:59 +08:00
Aparup Banerjee 42edf34d43 Merge branch 'MDL-30707_forum_log' of git://github.com/andyjdavis/moodle 2012-01-31 16:43:28 +08:00
Aparup Banerjee df71b4d72f Merge branch 'MDL-29097_mod_update_create' of git://github.com/andyjdavis/moodle 2012-01-31 14:21:14 +08:00
Aparup Banerjee 640d4d9563 Merge branch 'MDL-31426' of git://github.com/stronk7/moodle 2012-01-31 11:51:14 +08:00
Aparup Banerjee 6342696140 Merge branch 'MDL-31428' of git://github.com/stronk7/moodle 2012-01-31 11:15:26 +08:00
Andrew Davis 02c34fe143 MDL-30707 mod_forum: fixed a add_to_log() call that was causing invalid URLs to be added to the log 2012-01-31 09:06:01 +07:00
Andrew Davis a5448b3f6b MDL-30828 mod_feedback: fixed sorting when viewing responses 2012-01-31 09:05:09 +07:00
Andrew Davis 088cc24ccd MDL-30722 mod_forum: prevented users being auto-logged in as guest when they access /mod/forum/unsubscribeall.php 2012-01-31 09:03:40 +07:00
Andrew Davis 84f533b3c3 MDL-29615 message: added the ability for admins to restrict users ability to set where their email message notifications go 2012-01-31 09:02:20 +07:00
Andrew Davis c85cf7df5c MDL-29097 course: refactored to avoid having two seperate calls to events_trigger() 2012-01-31 09:00:53 +07:00
Eloy Lafuente (stronk7) ecabd5b039 MDL-31428 forum: prevent some warnings with debug enabled 2012-01-31 00:22:32 +01:00
Eloy Lafuente (stronk7) b688c44907 MDL-31426 forum: don't show/allow any subscription to not enrolled users 2012-01-30 23:20:03 +01:00
Tim Hunt 94815ccfa0 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-01-30 16:57:23 +00:00
Tim Hunt 72553162ba 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-01-30 12:32:12 +00:00
Tim Hunt a60835c721 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-01-30 12:31:43 +00:00
Aparup Banerjee 1fac035503 Merge branch 'MDL-26260' of git://github.com/timhunt/moodle 2012-01-30 16:23:54 +08:00
Aparup Banerjee 627618e140 Merge branch 'MDL-31311-Fix_iframe_titles' of git://github.com/ncsu-delta/moodle 2012-01-30 15:52:50 +08:00
Rossiani Wijaya 08b4a4e16f MDL-30983 calendar: updated phpdocs for calendar/lib.php 2012-01-30 15:38:25 +08:00
Rossiani Wijaya 93dd2725e8 MDL-30989 portfolio: updated portfolio phpdocs. 2012-01-30 15:37:46 +08:00
Aparup Banerjee 44983c3f3d Merge branch 'MDL-31319' of git://github.com/mackensen/moodle 2012-01-30 15:01:53 +08:00
Aparup Banerjee fd174542e3 Merge branch 'MDL-31392' of git://github.com/timhunt/moodle 2012-01-30 14:24:31 +08:00
sam marshall 68828cc431 MDL-31015 File/URL resource 'Open' and 'Force download' options should work consistently 2012-01-27 16:01:19 +00:00
Glenn Ansley 4d7e89d72c MDL-31311 Enhance unhelpful iframe title attributes 2012-01-27 10:22:59 -05:00
Jerome Mouneyrac e1cf6b4be2 MDL-29471 php warning when adding function to a new web service 2012-01-27 16:10:05 +08:00
David Mudrak 10d7dac528 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-01-27 08:48:37 +01:00
Kordan 372a0cf82e Merge branch 'master' of git://github.com/moodle/moodle 2012-01-27 08:25:02 +01:00
Dan Marsden 047b4e83ab SCORM AICC MDL-31039 update external AICC url correctly - thanks to Albert Rhemrev for report/fix 2012-01-27 19:41:59 +13:00
Dan Marsden d14c00e239 MDL-31360 Don't use get_in_or_equal if array is empty, tidy up structure of $extracaps array 2012-01-27 19:35:38 +13:00
Eloy Lafuente (stronk7) 216f6d8e9d weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-27 02:27:25 +01:00
Eloy Lafuente (stronk7) 6f20a79104 fix permissions 2012-01-27 02:19:54 +01:00
Eloy Lafuente (stronk7) cba018a30b Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-01-27 02:19:05 +01:00
AMOS bot 9c82a7cd39 Automatically generated installer lang files 2012-01-27 00:31:13 +00:00
Tim Hunt 6401b3c5bb MDL-31392 qeupgradehelper partial upgrade support broken since 2.2 2012-01-26 16:31:44 +00:00
Andrew Robert Nicols a731d18ce5 [MDL-31386] Correctly order answers in a lesson backup 2012-01-26 12:41:54 +00:00
Sam Hemelryk dff66010be Merge branch 'wip-mdl-30993' of git://github.com/rajeshtaneja/moodle 2012-01-25 13:53:56 +08:00
Rajesh Taneja 9df12115a7 MDL-30993 time api: Php document updated for time api 2012-01-25 11:15:27 +08:00
Eloy Lafuente (stronk7) f8b8abcc55 Merge branch 'MDL-31122-master' of git://github.com/sammarshallou/moodle 2012-01-25 01:52:25 +01:00
Eloy Lafuente (stronk7) 8300d8894c Merge branch 'MDL-31121-master' of git://github.com/sammarshallou/moodle 2012-01-25 01:40:20 +01:00
Eloy Lafuente (stronk7) 00a4543c5b Merge branch 'MDL-29896-master' of git://github.com/sammarshallou/moodle 2012-01-25 01:16:49 +01:00
Eloy Lafuente (stronk7) 478ba353b0 Merge branch 'MDL-31113_multiple_files_file_manager' of https://github.com/davosmith/moodle 2012-01-25 01:06:00 +01:00
Eloy Lafuente (stronk7) 897e14e263 Merge branch 'MDL-31110_loading_animation' of git://github.com/davosmith/moodle 2012-01-25 01:02:30 +01:00
Eloy Lafuente (stronk7) 28f7043f61 Merge branch 'MDL-31153-master' of git://github.com/sammarshallou/moodle 2012-01-25 00:57:25 +01:00
Eloy Lafuente (stronk7) 2def471913 Merge branch 'MDL-30120' of git://github.com/timhunt/moodle 2012-01-25 00:47:10 +01:00
Eloy Lafuente (stronk7) 9a50502acc Merge branch 'w04_MDL-31238_m23_php54' of git://github.com/skodak/moodle 2012-01-24 23:54:44 +01:00
Eloy Lafuente (stronk7) 5f67e1f395 Merge branch 'MDL-31245-master-1' of git://git.luns.net.uk/moodle 2012-01-24 18:45:29 +01:00
Aparup Banerjee f37b3defb1 Merge branch 'wip-MDL-31224-m23' of git://github.com/samhemelryk/moodle 2012-01-24 22:57:24 +08:00
Aparup Banerjee 3dd00d7030 Merge branch 'wip-MDL-29941-master' of git://github.com/samhemelryk/moodle 2012-01-24 20:23:05 +08:00
Eloy Lafuente (stronk7) df31835a44 MDL-31189 whitespace fixes 2012-01-24 13:12:25 +01:00
Eloy Lafuente (stronk7) 42906f4657 MDL-29614 whitespace fixes 2012-01-24 12:55:23 +01:00
Eloy Lafuente (stronk7) a464253f15 Merge branch 'w04_MDL-31183_m23_gloscounts' of git://github.com/skodak/moodle 2012-01-24 12:24:46 +01:00
M Kassaei da22c0127b MDL-31306 question preview: disable 'Fill correct' for qtypes that can't 2012-01-24 13:26:44 +08:00
Kordan 1bc47427f0 MDL-29614 theme_formal_white: Change the way Formal White theme shrinks pages 2012-01-24 13:11:38 +08:00
Sam Hemelryk 8d624631c5 Merge branch 'MDL-31205' of git://github.com/timhunt/moodle 2012-01-24 11:29:08 +08:00
Sam Hemelryk 9e63f744c1 Merge branch 'MDL-31189' of git://github.com/lazydaisy/moodle 2012-01-24 11:07:22 +08:00
Sam Hemelryk a04385870b Merge branch 'MDL-31231' of git://github.com/lazydaisy/moodle 2012-01-24 11:03:22 +08:00
Eloy Lafuente (stronk7) 72efa49721 Merge branch 'w04_MDL-31176_m23_groupcontext' of git://github.com/skodak/moodle 2012-01-24 01:28:56 +01:00
Aparup Banerjee 9c690979c2 Merge branch 'wip-MDL-28352-master' of git://github.com/marinaglancy/moodle 2012-01-24 07:15:15 +08:00
Eloy Lafuente (stronk7) 9bceddfa2b Merge branch 'MDL-30033' of git://github.com/timhunt/moodle 2012-01-24 00:09:12 +01:00
Eloy Lafuente (stronk7) 697cd1963b Merge branch 'MDL-31065' of git://github.com/timhunt/moodle 2012-01-24 00:07:18 +01:00
Aparup Banerjee 5b80391fde Merge branch 'w04_MDL-31184_m23_glosreset' of git://github.com/skodak/moodle 2012-01-24 06:57:57 +08:00
Eloy Lafuente (stronk7) dee8d39f4d Merge branch 'w04_MDL-31081_m23_forumindex' of git://github.com/skodak/moodle 2012-01-23 21:17:54 +01:00
stabijoh d4f1e1f326 MDL-31267 update mymobile login page 2012-01-23 10:10:59 -05:00
Charles Fulton 7ea638e48a MDL-31319 quiz attempts: include currentpage in backup 2012-01-23 05:12:44 -08:00
Sam Hemelryk 235fcb6632 Merge branch 'w04_MDL-31172_m23_fullpath' of git://github.com/skodak/moodle 2012-01-23 16:09:41 +08:00
Sam Hemelryk d6c2f4639f Merge branch 'w04_MDL-31173_m23_restore' of git://github.com/skodak/moodle 2012-01-23 16:06:47 +08:00
Sam Hemelryk d66223ea8d Merge branch 'w04_MDL-31177_m23_odsexport' of git://github.com/skodak/moodle 2012-01-23 15:38:06 +08:00
Sam Hemelryk a56272cfc7 Merge branch 'w04_MDL-31178_m23_enrolledws' of git://github.com/skodak/moodle 2012-01-23 15:27:43 +08:00
Sam Hemelryk 86e73f8981 Merge branch 'w04_MDL-31182_m23_messprefs' of git://github.com/skodak/moodle 2012-01-23 14:46:05 +08:00
Sam Hemelryk 458e91d8ca Merge branch 'w04_MDL-31186_m23_extprofiles' of git://github.com/skodak/moodle 2012-01-23 14:35:26 +08:00
Sam Hemelryk e24baafefc Merge branch 'w04_MDL-31202_m23_emailvalidation' of git://github.com/skodak/moodle 2012-01-23 14:23:25 +08:00
Mary Evans 59784b75fa MDL-31269 theme_magazine: fixes login pagelayout in theme_magazine 2012-01-23 13:26:51 +08:00
Sam Hemelryk 8ce9718239 Merge branch 'MDL-31324' of git://github.com/lazydaisy/moodle 2012-01-23 13:13:10 +08:00
Sam Hemelryk 1a20b3494b Merge branch 'MDL-31077' of git://github.com/mouneyrac/moodle 2012-01-23 11:48:59 +08:00
Sam Hemelryk be9974120e Merge branch 'MDL-31329' of git://github.com/stronk7/moodle 2012-01-23 11:28:17 +08:00
Sam Hemelryk 2bea3cd8d1 Merge branch 'MDL-31333' of git://github.com/stronk7/moodle 2012-01-23 11:22:08 +08:00
Sam Hemelryk d4de3f22c1 Merge branch 'MDL-31013-master-1' of git://git.luns.net.uk/moodle 2012-01-23 11:08:22 +08:00
Eloy Lafuente (stronk7) 7ef4949d9f MDL-31333 backup: reintroduce missing function lost by MDL-30610 2012-01-23 01:56:43 +01:00
Mary Evans 739efc85f8 MDL-31189 fixes performance info in theme_sky_high footer 2012-01-23 00:55:59 +00:00
Eloy Lafuente (stronk7) b10d13e016 Merge branch 'wip-MDL-31179-master' of github.com:marinaglancy/moodle 2012-01-23 01:19:18 +01:00
Eloy Lafuente (stronk7) 14926a50c7 Merge branch 'w04_MDL-31180_m23_closedproperty' of git://github.com/skodak/moodle 2012-01-23 01:10:38 +01:00
Eloy Lafuente (stronk7) 02cb385844 Merge branch 'w04_MDL-31181_m23_fitlertestcfg' of git://github.com/skodak/moodle 2012-01-23 01:04:00 +01:00
Eloy Lafuente (stronk7) ebf552ca89 Merge branch 'MDL-31058' of git://github.com/timhunt/moodle 2012-01-23 00:56:08 +01:00
Eloy Lafuente (stronk7) e0f6a239fc Merge branch 'w04_MDL-31185_m23_postscfg' of git://github.com/skodak/moodle 2012-01-23 00:28:08 +01:00
Eloy Lafuente (stronk7) 14f349cb78 MDL-31329 timezones: updated to 2011n 2012-01-22 21:30:06 +01:00
Petr Skoda 73eaccf60a MDL-31081 limit query to one course in forum_get_subscribed_forums()
This improves performance on the forum index page. Credit goes to Mark Nielsen.
2012-01-22 14:54:43 +01:00
Mary Evans 8f45b69692 MDL-31324 fixes custom css settings in theme_afterburner 2012-01-22 01:43:24 +00:00
Mary Evans 8e31a9b984 MDL-31231 fixes docked navigation menu in theme_afterburner 2012-01-22 00:44:38 +00:00
Petr Skoda 64cec5b2b0 MDL-31172 fix variable name typo in backup file logger 2012-01-21 20:19:34 +01:00
Petr Skoda 46f0e774f3 MDL-31173 fix variable name typo when throwing invalid $rule param exception in restore decode processor 2012-01-21 20:14:58 +01:00
Petr Skoda 025d82e0ed MDL-31176 add missing global $DB when looking for group related context in calendar 2012-01-21 19:57:01 +01:00
Petr Skoda dc76704067 MDL-31177 fix notices when exporting logs to ods 2012-01-21 19:51:28 +01:00
Petr Skoda d5b68e28b3 MDL-31178 fix broken core_enrol_external::get_enrolled_users() 2012-01-21 17:58:47 +01:00
Petr Skoda 4ae40aa577 MDL-31180 fix coding error in fake_recordset iterator 2012-01-21 17:13:39 +01:00
Petr Skoda aeacb7b128 MDL-31181 fix missing global $CFG that was breaking unit test teardown 2012-01-21 17:07:59 +01:00
Petr Skoda 681570b429 MDL-31182 fix fatal error when problem detected in finding messaging defaults 2012-01-21 16:59:16 +01:00
Petr Skoda 2e099772d9 MDL-31183 fix non-functional glossary_count_unrated_entries() 2012-01-21 16:47:03 +01:00
Petr Skoda b310a86e49 MDL-31184 fix multiple problems when reseting individual glossary types 2012-01-21 16:31:04 +01:00
Petr Skoda b1693caebc MDL-31185 fix missing CFG in forum_get_posts_by_user() 2012-01-21 16:17:06 +01:00
Petr Skoda ecfc06d88a MDL-31186 fix wrong context preloading sql 2012-01-21 16:08:25 +01:00
Petr Skoda 1c199e29b1 MDL-31202 do not try sending emails to invalid addresses
The use of mtrace() in email_to_user() is most probably incorrect, I am going to use it only in CLI scripts (which includes cron). This should not be considered a security issue because we should be already validating emails when accepting them from untrusted users.
2012-01-21 15:21:08 +01:00
Petr Skoda daac3835dc MDL-31208 fix obsolete get_record_sql() parameter
Credit goes to Rajesh Taneja.
2012-01-21 11:36:10 +01:00
Petr Skoda 820a8188ec MDL-31238 remove now unnecessary null to stdClass conversion for plugin settings 2012-01-21 11:15:30 +01:00
Petr Skoda 268b6709ec MDL-31238 always return object for plugin settings from get_config()
This prevents multiple creations of objects from NULL which is note a warnings in php54
2012-01-21 11:14:37 +01:00
Tim Hunt 0b94d6bff3 MDL-30120 questions: remove support for legacy qtype string names. 2012-01-20 19:42:42 +00:00
Tim Hunt 24400682a0 MDL-31065 question stats: fix analysis of responses not matching a given answer
When shortanswer, numerical, calculated and calculatedsimple questions
did not have a '*' match-anything answer, then any student response that
did not match any of the teacher-given answers were classified as
'[No response]', which was not right.

This patch fixes that. Such responses are now classified as
[Did not match any answer].

While I was doing this, I noticed that the display of tolerance
intervals for numerical questions in the response analysis was horrible,
so I improved it.
2012-01-20 17:44:22 +00:00
Tim Hunt ee664a16f2 MDL-31205 quiz 'secure' window: scrollbars missing.
Embarrassing type in the arguments to openpopup
2012-01-20 17:28:26 +00:00
Tim Hunt 3159bf92e0 MDL-31065 qtype shortanswer: refactor the unit tests to use a proper helper. 2012-01-20 17:27:55 +00:00
Tim Hunt c9b8a56f58 MDL-31058 qtype match 1.9 restore: fix restore of dodgy questions. 2012-01-20 17:27:23 +00:00
Tim Hunt b7ab57f3af MDL-30033 quiz overall feedback not show for attempts with a -ve grade
This can happen, for example, if a student does really badly on a CBM quiz.
2012-01-20 17:12:43 +00:00
Tim Hunt 71ece27e49 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-01-20 17:12:15 +00:00
sam marshall 5ad40d0e19 MDL-29896 Navigation: Make links, files clickable in nav block 2012-01-20 10:36:53 +00:00
Kordan c00207c0bb Merge branch 'master' of github.com:kordan/moodle 2012-01-20 11:19:38 +01:00
Marina Glancy 0387e003ad MDL-28352: Fixed bug in html_writer::select_time causing not autoselecting month 2012-01-20 16:04:59 +08:00
Sam Hemelryk a0a39b0dcb MDL-31197 navigation: Fixed issue withing require_login for courses that are hidden or unavailable 2012-01-20 12:51:24 +08:00
Sam Hemelryk 13915f89d4 MDL-31224 block_navigation: Fixed display of icons for node with an action_link action 2012-01-20 11:19:25 +08:00
David Penner a0cc337bdb MDL-31160 block_navigation: Fixed incorrect thrid arg to substr. 2012-01-20 11:14:38 +08:00
Sam Hemelryk ff8e5d47f8 MDL-29941 csslib: Improved PHPdocs and fixed up 4 and 5 char colour handling plus unittests 2012-01-20 11:05:38 +08:00
Sam Hemelryk f37f608e75 MDL-29941 csslib: Peer-review documentation changes 2012-01-20 11:02:06 +08:00
Sam Hemelryk 6bbd4858b7 MDL-29941 csslib: Last minute cleanup before integration review
* Fixed reversed border styles.
* Added support for out of order background styles.
* Added more CSS tests again.
* Added better validation of CSS widths
2012-01-20 11:02:06 +08:00
Sam Hemelryk 0abd4846a0 MDL-29941 csslib: Improved PHPdocs 2012-01-20 11:02:06 +08:00
Sam Hemelryk 50836f26ca MDL-29941 csslib: Improved unit tests and fixed bugs with background and border partial style optimisation 2012-01-20 11:02:06 +08:00
Sam Hemelryk 1d1d807ea6 MDL-29941 csslib: Made optimisation an experimental option 2012-01-20 11:02:05 +08:00
Sam Hemelryk 8589a4a52e MDL-29941 csslib: Improved the stats generation and output 2012-01-20 11:02:05 +08:00
Sam Hemelryk 0e641c7437 MDL-29941 csslib: A CSS optimiser has been added to process our mountain of CSS 2012-01-20 11:02:05 +08:00
Marina Glancy 776d75b9a6 MDL-31179: added missing global 2012-01-20 10:33:27 +08:00
AMOS bot f4d80b1a05 Automatically generated installer lang files 2012-01-20 00:31:19 +00:00
Davo Smith 910e1ecdaa MDL-31113 filemanager element - refresh file list from server on load and prevent revertion to browser drag and drop behaviour when max files reached 2012-01-19 19:28:16 +00:00
Davo Smith 4069ae323d MDL-31110 Filemanager drag and drop upload - always hide spinner, even when errors occur 2012-01-19 19:21:27 +00:00
Eloy Lafuente (stronk7) 564b858220 weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-19 18:35:40 +01:00
Andrew Robert Nicols 73c932022f MDL-31242 Prevent redefinition of MOODLE_INTERNAL when loading multiple YUI modules from Moodle 2012-01-19 18:35:39 +01:00
Eloy Lafuente (stronk7) fe0bc2e0be MDL-31006 revert partially @ get_config()
The change from null to stdClass() in get_config() was leading to:

1) unit tests not passing.
2) non-equivalent evaluation in conditions (null evals false,
   stdClassi() evals true)
2012-01-19 18:35:39 +01:00
AMOS bot 63abec4487 Automatically generated installer lang files 2012-01-19 18:35:39 +01:00
Petr Skoda 53a18ea433 MDL-31006 some more PHP54 notices
PHP54 compatibility - PhpStorm IDE is the best tool for this kind of work!!
2012-01-19 18:35:39 +01:00
Petr Skoda d76b718d84 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-19 18:35:39 +01:00
Petr Skoda a289d672b6 MDL-31213 fix incorrect modifications of quickforms attributes 2012-01-19 18:35:38 +01:00
AMOS bot 983342b0df Automatically generated installer lang files 2012-01-19 18:35:38 +01:00
Eloy Lafuente (stronk7) 2293fcb099 MDL-31196 quiz stats - fix version out of sync introduced recently
Pointing to current master version as requirement (2012020200)
2012-01-19 18:35:38 +01:00
Aparup Banerjee f389db4bc8 MDL-3054 quiz : correcting currentpage to unsigned 2012-01-19 18:35:38 +01:00
Aparup Banerjee 605d75a07d MDL-30929 fixed spelling mistake in string. 2012-01-19 18:35:38 +01:00
Petr Skoda 25af2aa663 MDL-31142 fix textlib::substr() performance, invalid length in iconv_substr; use mbstring by default 2012-01-19 18:35:38 +01:00
Petr Skoda c12210514b MDL-30929 detect incorrect major version upgrades 2012-01-19 18:35:38 +01:00
Sam Hemelryk 17f15e2053 MDL-31011 course: Fixed typo in comment 2012-01-19 18:35:38 +01:00
Mary Evans fb5bbc1d42 MDL-29724-update login page layout for all themes 2012-01-19 18:35:38 +01:00
Aparup Banerjee b645d61910 MDL-3054 quiz : cleaned whitespaces. 2012-01-19 18:35:38 +01:00
Mayank Gupa 66fa04fca2 MDL-30578, Updating CMILongIdentifer read comments at tracker 2012-01-19 18:35:37 +01:00
Mayank Gupa 4bc60a5b80 MDL-30578, Updating CMILongIdentifer to check for valid URI (RFC 3986 [6]) and URN syntax as per RFC 2141 [3] 2012-01-19 18:35:37 +01:00
Petr Skoda d8488e27ac MDL-29102 fix notice when auto-creating groups in existing grouping 2012-01-19 18:35:37 +01:00
Petr Skoda 90876da7fa MDL-31171 fix blog attachment serving in BLOG_USER_LEVEL 2012-01-19 18:35:37 +01:00
Petr Skoda 6dd4f20261 MDL-31011 fix report links in logs 2012-01-19 18:35:37 +01:00
Petr Skoda 11323017d5 MDL-31035 fix showuseridentity notice before settings upgrade 2012-01-19 18:35:37 +01:00
Petr Skoda 8aaa2370bc MDL-21992 fix custom scripts on https pages and CLI 2012-01-19 18:35:37 +01:00
Petr Skoda 716cd6b507 MDL-31161 fix notice when checking plugin requirements
Credit goes to Joseph Rézeau, thanks.
2012-01-19 18:35:36 +01:00
Petr Skoda 27630d8b5b MDL-30958 do not use Yahoo CDN on https sites
Browsers do not like mixing of ssl and non-use content on one page. Unfortunately YAHOO does not provide the files over SSL yet - see http://yuilibrary.com/yui/docs/tutorials/faq/#does-yahoos-cdn-support-ssl
2012-01-19 18:35:36 +01:00
Petr Skoda 9627c1cd1b MDL-31170 fix automatic blog blocks hiding/unhiding after blog level change 2012-01-19 18:35:36 +01:00
Petr Skoda 36650bdb43 MDL-31092 send localised new account emails 2012-01-19 18:35:36 +01:00
Petr Skoda 401dc2429f MDL-31166 do not try to cleanup data root paths in CLI install script
PARAM_TYPE can not be used for full OS paths. Admins have to enter correct data there, if not they get directory creation error.
2012-01-19 18:35:36 +01:00
Petr Skoda 11f06bd7f6 MDL-31165 fix InnoDB conversion query to use ENGINE parameter instead of legacy TYPE 2012-01-19 18:35:36 +01:00
AMOS bot fab02dd630 Automatically generated installer lang files 2012-01-19 18:35:36 +01:00
Mary Evans cd2e6b2050 MDL-31164-Fixes Sky High theme truncates report-Part2 2012-01-19 18:35:36 +01:00
Petr Skoda 19df6d4fae MDL-31109 fix maintenance link value in get_string() 2012-01-19 18:35:36 +01:00
Petr Skoda 3a652da73a MDL-31117 delete obsolete TODO
This TODO was added when we were still using moodledata folder for group images, it is not relevant any more because group images are in new file API which supports DB transaction rollbacks.
2012-01-19 18:35:36 +01:00
Petr Skoda bbb2879217 MDL-31127 init USER->access when switching roles
Only admins were affected by this problem because has_capability() does not init USER->access for them.
2012-01-19 18:35:35 +01:00
Petr Skoda fded199e57 MDL-27165 fix broken confirmed user filtering 2012-01-19 18:35:35 +01:00
Petr Skoda 929fbc701b MDL-30891 fix invalid hardcoded capability check when disable legacy files repo 2012-01-19 18:35:35 +01:00
Petr Skoda 5c2abc463f MDL-31053 fix invalid context preloading in get_user_capability_course() 2012-01-19 18:35:35 +01:00
Petr Skoda a75386fba6 MDL-31124 reinstroduce accidentally removed restore code for 1.9 backups 2012-01-19 18:35:35 +01:00
Mary Evans 7a00d6cbc6 MDL-31144-fixes hidden Navigation block menu items when docked 2012-01-19 18:35:35 +01:00
Dan Poltawski 8e41bae41e MDL-29091 quiz - switch to use moodle_url::out_as_local_url 2012-01-19 18:35:35 +01:00
Dan Poltawski 34c0d46e94 MDL-29091 weblib - Introduce out_as_local_url() method to moodle_url
This can be used for passing around PARAM_LOCALURL's where necessary
stripping the wwwroot
2012-01-19 18:35:34 +01:00
Marina Glancy a519d915bf MDL-31072: Added indexes to table role_assignments to speed up work in many-users-many-contexts environments 2012-01-19 18:35:34 +01:00
Marina Glancy 037ef684a3 MDL-31072: Fixed bug causing memory overflow for many-user systems:
when function find_users was supposed to be used for user validation but no userids were passed to it, it retrieved all users in the system.
This caused memory overflow on systems with too many users (like moodle.org).
Now we make sure that find_users is not called for validation if there is nobody to validate.

Also improved query inside find_users to make it work faster
2012-01-19 18:35:34 +01:00
Marina Glancy 41fb628f93 MDL-31060: removed unnecessary fields from query which also caused problems in MSSQL 2012-01-19 18:35:34 +01:00
Sam Hemelryk 702cb900c3 MDL-31025 navigation: When calling load_section_activities you must provide an array of activities not course_modinfo 2012-01-19 18:35:34 +01:00
sam marshall 90021290ee MDL-30408 Allow modules the choice to not appear on 'Add a...' lists
This is useful for modules which are created by the system and are not supposed to be created by users. There are various reasons for doing this in third-party modules.
2012-01-19 18:35:34 +01:00
Charles Fulton 4e2f2faf9f MDL-3054 record the current page of a quiz attempt 2012-01-19 18:35:34 +01:00
Tim Hunt abd738223c MDL-31143 quiz reports: average grade of null causes php error. 2012-01-19 18:35:34 +01:00
Tim Hunt f572ec93af MDL-31135 question instances report: 'All' option broken 2012-01-19 18:35:33 +01:00
Jonathon Fowler 00f265c4d9 MDL-31130 question bank: toggling show all / 20 per page broken. 2012-01-19 18:35:33 +01:00
Tim Hunt 425342ced4 MDL-31102 question preview: fix HTML validation errors. 2012-01-19 18:35:33 +01:00
Tim Hunt 92a5f438a7 MDL-31100 unit tests: don't mangle UTF-8 in failure messages. 2012-01-19 18:35:33 +01:00
Tim Hunt 45a81b1b10 MDL-31095 quiz editing: only set quiz->grade to 0 if really necessary.
It is only necessary when there are (non-preview) attempts. However,
after making this change we have to ensure users cannot start attempts
when ->grade > 0 and ->sumgrades = 0.

Display ->grade on the order and paging tab of edit.php, so it is clear
what is going on when you are using that tab.

Finally, improve the error message a student gets if they try to start a
quiz with no questions.
2012-01-19 18:35:33 +01:00
Tim Hunt d20b34c726 MDL-31095 quiz: fix bug in quiz::has_questions. 2012-01-19 18:35:33 +01:00
Tim Hunt 31c5521442 MDL-31080 quiz editing, must be able to see and delete missing questions 2012-01-19 18:35:33 +01:00
Andrew Robert Nicols 8cbccb71da MDL-31040 Correct LTR language issue and inconsistency in display 2012-01-19 18:35:32 +01:00
Andrew Robert Nicols a1dfe33a6e MDL-31018 Improve consistency of horizontal alignment across grade reports 2012-01-19 18:35:32 +01:00
sam marshall ea47046689 MDL-31153 File manager drag and drop English text improvement 2012-01-19 14:49:21 +00:00
sam marshall d67e4821ab MDL-31122 Navigation: Do not show week in navigation if it contains only labels 2012-01-19 14:46:03 +00:00
sam marshall a2c5766674 MDL-31121 File resource: add options to display file type and size 2012-01-19 12:52:38 +00:00
Eloy Lafuente (stronk7) f6b4ec2b4a weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-19 13:34:40 +01:00
Eloy Lafuente (stronk7) aae1ebe999 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-01-19 13:28:00 +01:00
Andrew Robert Nicols c042fc819d MDL-31014 Allow for selection of a different displayformat when approving glossary entries 2012-01-19 09:39:46 +00:00
Andrew Robert Nicols 2f76f1019e MDL-31242 Prevent redefinition of MOODLE_INTERNAL when loading multiple YUI modules from Moodle 2012-01-18 15:38:55 +01:00
Andrew Robert Nicols 7aefaa91c9 MDL-31245 Add missing 'icon' class to highlight button in topics format 2012-01-18 14:12:09 +00:00
Eloy Lafuente (stronk7) 7fb7e9835a MDL-31006 revert partially @ get_config()
The change from null to stdClass() in get_config() was leading to:

1) unit tests not passing.
2) non-equivalent evaluation in conditions (null evals false,
   stdClassi() evals true)
2012-01-18 02:09:46 +01:00
AMOS bot 3e2c9a037f Automatically generated installer lang files 2012-01-18 00:31:32 +00:00
Petr Skoda 927010240f MDL-31006 some more PHP54 notices
PHP54 compatibility - PhpStorm IDE is the best tool for this kind of work!!
2012-01-18 01:17:25 +01:00
Petr Skoda b85b25ebb8 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-18 01:03:20 +01:00
Eloy Lafuente (stronk7) ae924874d7 Merge branch 'w03_MDL-31213_m23_attributesmess' of git://github.com/skodak/moodle 2012-01-17 12:32:47 +01:00
Petr Skoda 48cbe43ded MDL-31213 fix incorrect modifications of quickforms attributes 2012-01-17 11:18:56 +01:00
Jerome Mouneyrac 2ada59b759 MDL-31077 REST server should return null if nothing fail and if the description function return null. 2012-01-17 15:37:27 +08:00
Eloy Lafuente (stronk7) dc978ceb99 Merge branch 'w03_MDL-31053_m23_contextpreloading' of git://github.com/skodak/moodle 2012-01-17 02:18:46 +01:00
Eloy Lafuente (stronk7) 5f39437ae0 Merge branch 'w03_MDL-31127_m23_switchaccessinit' of git://github.com/skodak/moodle 2012-01-17 02:10:41 +01:00
Eloy Lafuente (stronk7) 679f37e5fe Merge branch 'w03_MDL-31161_m23_reqpluginnotice' of git://github.com/skodak/moodle 2012-01-17 02:05:53 +01:00
Eloy Lafuente (stronk7) 2176ed55e9 Merge branch 'MDL-31080' of git://github.com/timhunt/moodle 2012-01-17 01:58:51 +01:00
Eloy Lafuente (stronk7) ec43e2267c Merge branch 'MDL-30408-master' of git://github.com/sammarshallou/moodle 2012-01-17 01:43:19 +01:00
Eloy Lafuente (stronk7) 4374d03158 Merge branch 'w03_MDL-31142_m23_slowiconv' of git://github.com/skodak/moodle 2012-01-17 01:36:03 +01:00
Eloy Lafuente (stronk7) f58e09cbce Merge branch 'w03_MDL-31171_m23_blogattachment' of git://github.com/skodak/moodle 2012-01-17 01:31:59 +01:00
AMOS bot c09ca45e96 Automatically generated installer lang files 2012-01-17 00:31:09 +00:00
Eloy Lafuente (stronk7) 479932c132 Merge branch 'w03_MDL-31170_m23_blogblocks' of git://github.com/skodak/moodle 2012-01-17 00:55:31 +01:00
Eloy Lafuente (stronk7) 325f3addf2 Merge branch 'MDL-3054' of git://github.com/nebgor/moodle 2012-01-16 12:24:35 +01:00
Eloy Lafuente (stronk7) b3bc81893e Merge branch 'MDL-31196' of git://github.com/stronk7/moodle 2012-01-16 12:16:42 +01:00
Eloy Lafuente (stronk7) 273a432956 MDL-31196 quiz stats - fix version out of sync introduced recently
Pointing to current master version as requirement (2012020200)
2012-01-16 11:16:59 +01:00
Aparup Banerjee b3f8559ebc MDL-3054 quiz : correcting currentpage to unsigned 2012-01-16 17:35:57 +08:00
Sam Hemelryk d36b5d1177 Merge branch 'MDL-31095' of git://github.com/timhunt/moodle 2012-01-16 16:58:32 +08:00
Sam Hemelryk 99eec460d7 Merge branch 'MDL-31135' of https://github.com/timhunt/moodle 2012-01-16 16:40:33 +08:00
Sam Hemelryk b1baa8a2f2 Merge branch 'MDL-31102' of git://github.com/timhunt/moodle 2012-01-16 16:30:48 +08:00
Aparup Banerjee 12fd545a01 MDL-30929 fixed spelling mistake in string. 2012-01-16 16:24:22 +08:00
Sam Hemelryk 3c7aef3492 Merge remote-tracking branch 'skodak/w03_MDL-27165_m23_confirmed' 2012-01-16 16:17:28 +08:00
Petr Skoda ca281c51bb MDL-31142 fix textlib::substr() performance, invalid length in iconv_substr; use mbstring by default 2012-01-16 09:16:14 +01:00
Aparup Banerjee c8be518100 Merge branch 'w03_MDL-30929_m23_stalefiles' of https://github.com/skodak/moodle 2012-01-16 16:15:04 +08:00
Petr Skoda 9008ec1654 MDL-30929 detect incorrect major version upgrades 2012-01-16 09:08:36 +01:00
Aparup Banerjee 025ce406e7 Merge branch 'MDL-31143' of https://github.com/timhunt/moodle 2012-01-16 15:29:05 +08:00
Sam Hemelryk e9d2492833 Merge remote-tracking branch 'skodak/w03_MDL-29102_m23_autogrouping' 2012-01-16 15:12:02 +08:00
Sam Hemelryk 69136724f6 Merge remote-tracking branch 'skodak/w03_MDL-30891_m23_repository' 2012-01-16 15:01:36 +08:00
Sam Hemelryk 0cfedcbba7 Merge remote-tracking branch 'skodak/w03_MDL-30958_m23_yuissl' 2012-01-16 14:55:52 +08:00
Aparup Banerjee 9208714315 Merge branch 'w03_MDL-31166_m23_clipath' of https://github.com/skodak/moodle 2012-01-16 14:52:23 +08:00
Sam Hemelryk 3ce3bb8861 MDL-31011 course: Fixed typo in comment 2012-01-16 14:49:56 +08:00
Sam Hemelryk 371fa34ecc Merge remote-tracking branch 'skodak/w03_MDL-31011_m23_loglinks' 2012-01-16 14:49:55 +08:00
Aparup Banerjee cd70d3c4a8 Merge branch 'w03_MDL-21992_m23_customscripts' of https://github.com/skodak/moodle 2012-01-16 14:46:39 +08:00
Aparup Banerjee 9e32834827 Merge branch 'wip-MDL-31025-m23' of https://github.com/samhemelryk/moodle 2012-01-16 14:40:46 +08:00
Sam Hemelryk 6a57cb0cb0 Merge remote-tracking branch 'skodak/w03_MDL-31035_m23_identitynotice' 2012-01-16 14:38:47 +08:00
Sam Hemelryk 1b81892765 Merge remote-tracking branch 'skodak/w03_MDL-31117_m23_grouptodo' 2012-01-16 14:35:30 +08:00
Sam Hemelryk a2734ca8d1 Merge remote-tracking branch 'skodak/w03_MDL-31109_m23_maintenance' 2012-01-16 14:33:40 +08:00
Sam Hemelryk 7255250c2c Merge remote-tracking branch 'skodak/w03_MDL-31092_m23_emailpass' 2012-01-16 14:30:43 +08:00
Mary Evans e52c36ddf8 MDL-29724-update login page layout for all themes 2012-01-16 14:02:25 +08:00
Aparup Banerjee c5fd16826a MDL-3054 quiz : cleaned whitespaces. 2012-01-16 13:41:12 +08:00
Aparup Banerjee 8e9e623e79 Merge branch 'MDL-3054' of git://github.com/mackensen/moodle 2012-01-16 13:38:49 +08:00
Sam Hemelryk 8a4c5170a5 Merge branch 'MDL-31144' of git://github.com/lazydaisy/moodle 2012-01-16 13:16:44 +08:00
Sam Hemelryk fbdc155360 Merge branch 'MDL-31164' of git://github.com/lazydaisy/moodle 2012-01-16 13:08:39 +08:00
Sam Hemelryk 55cf5f8e75 Merge branch 'wip-MDL-31060-master' of git://github.com/marinaglancy/moodle 2012-01-16 11:58:16 +08:00
Sam Hemelryk 864777cb73 Merge branch 'MDL-31130' of git://github.com/timhunt/moodle 2012-01-16 11:49:33 +08:00
Aparup Banerjee 7ed8dc999f Merge branch 'wip-MDL-31072-master' of github.com:marinaglancy/moodle 2012-01-16 11:39:05 +08:00
Sam Hemelryk d37d6e2a8e Merge branch 'moodleurl_out_as_local_url' of git://git.luns.net.uk/moodle 2012-01-16 11:31:24 +08:00
Sam Hemelryk 5ba0697050 Merge branch 'MDL-31018-master-1' of git://git.luns.net.uk/moodle 2012-01-16 11:11:17 +08:00
Sam Hemelryk 66fe8d59c8 Merge branch 'MDL-31040-master-2' of git://git.luns.net.uk/moodle 2012-01-16 10:54:08 +08:00
Aparup Banerjee 89aac2b3cd Merge branch 'master_MDL-30578' of git://github.com/mayankgupta/moodle 2012-01-16 10:14:23 +08:00
Eloy Lafuente (stronk7) 41c3a6f004 Merge branch 'w03_MDL-31165_m23_innodbconv' of git://github.com/skodak/moodle 2012-01-16 02:06:27 +01:00
Eloy Lafuente (stronk7) fd684bda5a Merge branch 'MDL-31100' of git://github.com/timhunt/moodle 2012-01-16 01:02:29 +01:00
Mayank Gupa d6296b71cc MDL-30578, Updating CMILongIdentifer read comments at tracker 2012-01-16 00:10:22 +05:30
Mayank Gupa c9e7d6eb81 MDL-30578, Updating CMILongIdentifer to check for valid URI (RFC 3986 [6]) and URN syntax as per RFC 2141 [3] 2012-01-16 00:10:20 +05:30
Charles Fulton abf639be01 MDL-25883 correct element name for wiki comments editor 2012-01-15 10:35:58 -08:00
Petr Skoda ca50186f73 MDL-29102 fix notice when auto-creating groups in existing grouping 2012-01-15 19:26:43 +01:00
Petr Skoda 58a435f6cf MDL-31171 fix blog attachment serving in BLOG_USER_LEVEL 2012-01-15 19:11:16 +01:00
Petr Skoda d48f6068e0 MDL-31011 fix report links in logs 2012-01-15 19:02:08 +01:00
Petr Skoda 33e5ac269e MDL-31035 fix showuseridentity notice before settings upgrade 2012-01-15 17:12:35 +01:00
Petr Skoda 7858b5212c MDL-21992 fix custom scripts on https pages and CLI 2012-01-15 15:59:06 +01:00
Petr Skoda 499ff0a95e MDL-31161 fix notice when checking plugin requirements
Credit goes to Joseph Rézeau, thanks.
2012-01-15 15:34:56 +01:00
Petr Skoda 47932f4967 MDL-30958 do not use Yahoo CDN on https sites
Browsers do not like mixing of ssl and non-use content on one page. Unfortunately YAHOO does not provide the files over SSL yet - see http://yuilibrary.com/yui/docs/tutorials/faq/#does-yahoos-cdn-support-ssl
2012-01-15 15:24:34 +01:00
Petr Skoda 00b9c582d8 MDL-31170 fix automatic blog blocks hiding/unhiding after blog level change 2012-01-15 13:40:12 +01:00
Petr Skoda 5e1e0d7fe5 MDL-31092 send localised new account emails 2012-01-15 11:45:50 +01:00
Petr Skoda ad72df401f MDL-31166 do not try to cleanup data root paths in CLI install script
PARAM_TYPE can not be used for full OS paths. Admins have to enter correct data there, if not they get directory creation error.
2012-01-15 11:05:00 +01:00
Petr Skoda 5f0456ef27 MDL-31165 fix InnoDB conversion query to use ENGINE parameter instead of legacy TYPE 2012-01-15 10:32:08 +01:00
AMOS bot 1b677b8647 Automatically generated installer lang files 2012-01-15 00:31:08 +00:00
Mary Evans 3922c906b9 MDL-31164-Fixes Sky High theme truncates report-Part2 2012-01-15 00:09:20 +00:00
Petr Skoda ecc2897c85 MDL-31109 fix maintenance link value in get_string() 2012-01-15 00:56:01 +01:00
Petr Skoda c5eeccbec9 MDL-31117 delete obsolete TODO
This TODO was added when we were still using moodledata folder for group images, it is not relevant any more because group images are in new file API which supports DB transaction rollbacks.
2012-01-15 00:43:28 +01:00
Petr Skoda 843ca76111 MDL-31127 init USER->access when switching roles
Only admins were affected by this problem because has_capability() does not init USER->access for them.
2012-01-15 00:14:44 +01:00
Petr Skoda a019ffcd23 MDL-27165 fix broken confirmed user filtering 2012-01-14 22:14:26 +01:00
Petr Skoda 1fbbf89349 MDL-30891 fix invalid hardcoded capability check when disable legacy files repo 2012-01-14 21:57:47 +01:00
Petr Skoda 8ab5c8ec0a MDL-31053 fix invalid context preloading in get_user_capability_course() 2012-01-14 21:36:02 +01:00
Petr Skoda ad8c5aee72 MDL-31124 reinstroduce accidentally removed restore code for 1.9 backups 2012-01-14 21:24:15 +01:00
Mary Evans 08be319445 MDL-31144-fixes hidden Navigation block menu items when docked 2012-01-14 01:16:29 +00:00
Andrew Robert Nicols 36ef66430e MDL-31000 Respect sortorder of repositories when displaying the filepicker 2012-01-13 15:52:04 +00:00
Dan Poltawski a530d4a93b MDL-29091 quiz - switch to use moodle_url::out_as_local_url 2012-01-13 10:16:52 +00:00
Dan Poltawski 48ddc9bfd6 MDL-29091 weblib - Introduce out_as_local_url() method to moodle_url
This can be used for passing around PARAM_LOCALURL's where necessary
stripping the wwwroot
2012-01-13 10:16:52 +00:00
Marina Glancy 91331b6b96 MDL-31072: Added indexes to table role_assignments to speed up work in many-users-many-contexts environments 2012-01-13 10:12:17 +08:00
Marina Glancy 3c2ed2d7ce MDL-31072: Fixed bug causing memory overflow for many-user systems:
when function find_users was supposed to be used for user validation but no userids were passed to it, it retrieved all users in the system.
This caused memory overflow on systems with too many users (like moodle.org).
Now we make sure that find_users is not called for validation if there is nobody to validate.

Also improved query inside find_users to make it work faster
2012-01-13 10:12:17 +08:00
Marina Glancy 96ef951d5f MDL-31060: removed unnecessary fields from query which also caused problems in MSSQL 2012-01-13 10:12:10 +08:00
Sam Hemelryk 1580cfdbf7 MDL-31025 navigation: When calling load_section_activities you must provide an array of activities not course_modinfo 2012-01-13 13:00:54 +13:00
sam marshall 5813c7f7dc MDL-30408 Allow modules the choice to not appear on 'Add a...' lists
This is useful for modules which are created by the system and are not supposed to be created by users. There are various reasons for doing this in third-party modules.
2012-01-12 17:29:54 +00:00
Charles Fulton 5db8294940 MDL-3054 record the current page of a quiz attempt 2012-01-12 09:15:37 -08:00
Tim Hunt 1be875b877 MDL-31143 quiz reports: average grade of null causes php error. 2012-01-12 16:42:19 +00:00
Tim Hunt 574a5e53f5 MDL-31135 question instances report: 'All' option broken 2012-01-12 12:43:22 +00:00
Jonathon Fowler 2902edb4ec MDL-31130 question bank: toggling show all / 20 per page broken. 2012-01-12 12:41:25 +00:00
Tim Hunt 079caafc16 MDL-31102 question preview: fix HTML validation errors. 2012-01-12 12:10:54 +00:00
Tim Hunt aad1b6ee64 MDL-31100 unit tests: don't mangle UTF-8 in failure messages. 2012-01-12 12:10:33 +00:00
Tim Hunt 18dff75754 MDL-31095 quiz editing: only set quiz->grade to 0 if really necessary.
It is only necessary when there are (non-preview) attempts. However,
after making this change we have to ensure users cannot start attempts
when ->grade > 0 and ->sumgrades = 0.

Display ->grade on the order and paging tab of edit.php, so it is clear
what is going on when you are using that tab.

Finally, improve the error message a student gets if they try to start a
quiz with no questions.
2012-01-12 12:10:08 +00:00
Tim Hunt 389cb58948 MDL-31095 quiz: fix bug in quiz::has_questions. 2012-01-12 12:10:06 +00:00
Tim Hunt 068384ce65 MDL-31080 quiz editing, must be able to see and delete missing questions 2012-01-12 12:09:45 +00:00
Eloy Lafuente (stronk7) 60e99097e4 weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-12 11:34:20 +01:00
Eloy Lafuente (stronk7) 96f32207b6 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-01-12 11:24:39 +01:00
Eloy Lafuente (stronk7) bdbe8f278e Merge branch 'w02_MDL-29684_m23_metaenrol' of git://github.com/skodak/moodle 2012-01-11 23:48:06 +01:00
Tim Hunt ff05bb3166 MDL-26469 upgrade: cope with modules that do not set $module->cron. 2012-01-11 15:42:23 +00:00
Tim Hunt 3412cb4386 MDL-26469 upgrade: module cron setting not updated. 2012-01-11 14:04:09 +00:00
Tim Hunt 26756d9c6f MDL-30635 quiz cron: fixup - enable in version.php & fn name quiz_statistics_cron 2012-01-11 14:02:57 +00:00
Andrew Robert Nicols 6dc5908ef7 MDL-31040 Correct LTR language issue and inconsistency in display 2012-01-11 10:58:23 +00:00
AMOS bot d7a6956444 Automatically generated installer lang files 2012-01-11 00:31:15 +00:00
Eloy Lafuente (stronk7) 4cd2b394ac Merge branch 'MDL-31101' of git://github.com/timhunt/moodle 2012-01-10 23:34:56 +01:00
Tim Hunt d07f7be890 MDL-31101 format_string: Don't mangle < and > in strings like x < 1. 2012-01-10 14:52:19 +00:00
Rajesh Taneja 246c2cb8e5 MDL-30452 Repositories: Changed default capability on repos - Thanks Michael 2012-01-10 11:10:43 +01:00
Sam Hemelryk 7dd813b948 Merge branch 'MDL-24394' of git://github.com/timhunt/moodle 2012-01-10 14:30:32 +13:00
Sam Hemelryk 44577c96d0 Merge branch 'MDL-31019' of git://github.com/timhunt/moodle 2012-01-10 14:26:08 +13:00
Sam Hemelryk 6b37c2b093 MDL-31000 Added comment about the importance of repository array keys and hardened new dnd repository lookup 2012-01-10 12:21:24 +13:00
Sam Hemelryk b098581488 Revert "MDL-31000 Respect sortorder of repositories when displaying the filepicker"
This change was reverted because the array keys need to be the id, existing code relies on this.
This reverts commit ef72c7942e.
2012-01-10 12:18:34 +13:00
Sam Hemelryk 7d1655a580 Merge branch 'dragdrop-for-master' of git://git.luns.net.uk/moodle 2012-01-10 11:52:09 +13:00
Eloy Lafuente (stronk7) 0a87f07a9b Merge branch 'wip-mdl-30608' of git://github.com/rajeshtaneja/moodle 2012-01-09 22:18:50 +01:00
Eloy Lafuente (stronk7) 528dbf2f7d Merge branch 'MDL-6102-master' of git://github.com/sammarshallou/moodle 2012-01-09 22:02:10 +01:00
Eloy Lafuente (stronk7) fb051bf072 Merge branch 'MDL-30783_t2' of git://github.com/kiklop74/moodle 2012-01-09 21:47:16 +01:00
Tim Hunt e73af46d4c MDL-24394 qtype_match: should be able to use multilang for the choices. 2012-01-09 18:05:06 +00:00
Davo Smith f08fac7c89 MDL-29766 Add drag and drop upload to filemanager / filepicker elements 2012-01-09 17:27:32 +00:00
Tim Hunt d89eb938fd MDL-31019 quiz secure mode. Fix typo that breaks submit. 2012-01-09 17:09:11 +00:00
sam marshall 487de67c48 MDL-6102 Default time format incorrectly has leading zeros on 12-hour times (e.g. 03:57 PM) 2012-01-09 11:38:59 +00:00
Aparup Banerjee 0970ac7dfa MDL-30583 Navigation : fixed string. 2012-01-09 14:35:38 +08:00
Aparup Banerjee bb9546d0c7 Merge branch 'wip-MDL-30583-master' of git://github.com/samhemelryk/moodle 2012-01-09 13:44:36 +08:00
Aparup Banerjee fcad996aab Merge branch 'w02_MDL-30718_m23_usertimedb' of git://github.com/skodak/moodle 2012-01-09 12:18:36 +08:00
Sam Hemelryk 2e40a94cff Merge branch 'w02_MDL-31005_m23_contextlevelname' of git://github.com/skodak/moodle 2012-01-09 16:12:24 +13:00
Sam Hemelryk 3506dfa22f MDL-30608 Blocks: Fixed block disappering from search page 2012-01-09 11:04:10 +08:00
Sam Hemelryk 7adf214012 Merge branch 'w02_MDL-30944_m23_cohortenrol' of git://github.com/skodak/moodle 2012-01-09 14:58:57 +13:00
Eloy Lafuente (stronk7) 7a9a12aa05 Merge branch 'w02_MDL-29046_m23_clidistrolib' of git://github.com/skodak/moodle 2012-01-09 02:31:02 +01:00
Eloy Lafuente (stronk7) 30c99be2f0 Merge branch 'MDL-30031' of git://github.com/bostelm/moodle 2012-01-09 02:14:20 +01:00
Sam Hemelryk 0e743da2b4 Merge branch 'w02_MDL-30717_m23_usercreated' of git://github.com/skodak/moodle 2012-01-09 14:03:10 +13:00
Sam Hemelryk b07646fcf7 MDL-30928 lib: Fixed whitespace 2012-01-09 13:57:06 +13:00
Sam Hemelryk 1bec282c06 Merge branch 'w02_MDL-30928_m23_deletetimes' of git://github.com/skodak/moodle 2012-01-09 13:52:37 +13:00
Sam Hemelryk 9b1ab84743 Merge branch 'w02_MDL-30969_m23_suspendedcsv' of git://github.com/skodak/moodle 2012-01-09 13:02:31 +13:00
Eloy Lafuente (stronk7) 3c4500f5c7 Merge branch 'MDL-30778_t2' of git://github.com/kiklop74/moodle 2012-01-09 00:41:55 +01:00
Eloy Lafuente (stronk7) 4b89edd948 Merge branch 'MDL-30966-print-object' of git://github.com/mudrd8mz/moodle 2012-01-09 00:33:02 +01:00
Sam Hemelryk df121fb287 Merge branch 'master_MDL-31043' of git://github.com/danmarsden/moodle 2012-01-09 12:23:11 +13:00
Eloy Lafuente (stronk7) 94d59c9b23 Merge branch 'MDL-30635' of git://github.com/timhunt/moodle 2012-01-09 00:15:21 +01:00
Sam Hemelryk 9b69f4a9c9 Merge branch 'MDL-30652-master' of git://github.com/ankitagarwal/moodle 2012-01-09 12:02:41 +13:00
Sam Hemelryk 94a2296a8e Merge branch 'MDL-31000-master-1' of git://git.luns.net.uk/moodle 2012-01-09 11:52:29 +13:00
Sam Hemelryk 4037098eba MDL-30583 navigation: Added setting to control display of front page activities on the navigation 2012-01-09 09:49:34 +13:00
Petr Skoda 9fcbc4640d MDL-31005 fix strict coding style warning in context_helper
PHP54 compatibility
2012-01-08 15:39:03 +01:00
Aleksey Avdeev b1d533652b MDL-29046 use of install/distrolib.php in the CLI installer
Signed-off-by: Aleksey Avdeev <solo@altlinux.ru>
2012-01-08 15:14:15 +01:00
Petr Skoda ad68ed7402 MDL-29684 improve enrol_meta plugin
List of changes:
* configurable unenrol action
* new setting for synchronisation of all enrolled users or users with at least one role
* cron period increased to 1 hour in order to lower server load, courses should not get out of sync often
* CLI sync script for debugging or manual sync
* phpdocs fixes
* when plugin is disabled all roles are removed, enrollments are kept
* uninstall script
* other bugfixing
2012-01-08 15:07:49 +01:00
Petr Skoda 1fb6f5ab67 MDL-30717 update user->timemodified in update_user_record() 2012-01-08 15:03:53 +01:00
Petr Skoda 549a8b74b3 MDL-30717 add missing time created info in create_user_record()
Credit goes to Luis Gustavo Mueller de Alcantara.
2012-01-08 15:03:52 +01:00
Petr Skoda a4d25731df MDL-30718 add missing timecraeted and timeupdated, fix user undeleting 2012-01-08 14:51:00 +01:00
Petr Skoda e7157a0054 MDL-30928 include course and user deletion time in event
Credit goes to Luis Gustavo Mueller de Alcantara.
2012-01-08 14:29:18 +01:00
Petr Skoda 7cfe640499 MDL-30944 improve enrol_cohort plugin
List of changes:
* configurable unenrol action
* cron period increased to 1 hour in order to lower server load, courses should not get out of sync often
* CLI sync script for debugging or manual sync after configuration change
* phpdocs fixes
* when plugin is disabled all roles are removed, enrollments are kept
* uninstall script
* other bugfixing and performance improvements
2012-01-08 14:06:05 +01:00
Petr Skoda 08157bfe76 MDL-30969 add support for suspending in uploaduser admin tool 2012-01-08 14:01:10 +01:00
AMOS bot feff40c220 Automatically generated installer lang files 2012-01-07 00:31:13 +00:00
David Mudrak 68e550e6b2 MDL-30966 print_object() output made CLI-friendly 2012-01-06 22:48:12 +01:00
Tim Hunt f8a3a3fb9a MDL-30757 questions: kill legacy global $QUESTION_EDITTABCAPS 2012-01-06 18:43:03 +00:00
Tim Hunt c2f5e2ab81 MDL-30635 enable standard cron for all question and quiz plugin types.
* Support for old non-standard cron for quiz reports dropped. (Standard
cron support was added in 2.2

* Cron support added for qbehaviour, qformat and quizacces plugins.

* qtypes were already supported in the standard way.
2012-01-06 18:42:35 +00:00
Dan Marsden 0f6d934941 MDL-31043 allow themes to set custommenu instead of using global settings 2012-01-06 12:48:01 +13:00
Eloy Lafuente (stronk7) 0e84b1664d weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-05 15:02:23 +01:00
Sam Hemelryk cf6d069afd Merge branch 'MDL-31017' of git://github.com/stronk7/moodle 2012-01-05 11:17:31 +13:00
Andrew Robert Nicols feaae39dfb MDL-31018 Improve consistency of horizontal alignment across grade reports 2012-01-04 16:19:16 +00:00
Eloy Lafuente (stronk7) fb95ef9ecd MDL-31017 whitespace clean - take1 2012-01-04 16:27:32 +01:00
Andrew Robert Nicols 696c748da7 MDL-31013 Add iconsmall class to 'Export to portfolio' icon 2012-01-04 10:27:08 +00:00
Eloy Lafuente (stronk7) 45ad2d871c Merge branch 'wip-MDL-26869-m23-after-MDL-26155' of git://github.com/samhemelryk/moodle 2012-01-04 03:08:24 +01:00
David Mudrak a1373126eb MDL-30865 Workshop method aggregate_grading_grades_process() accepts explicit aggregation timestamp 2012-01-04 02:20:06 +01:00
Eloy Lafuente (stronk7) 5d25ef18c5 Merge branch 'MDL-30879-master' of git://github.com/sammarshallou/moodle 2012-01-04 02:14:18 +01:00
Eloy Lafuente (stronk7) a46eb101b3 Merge branch 'w52_MDL-30945_m23_unenrol' of git://github.com/skodak/moodle 2012-01-04 01:51:10 +01:00
Eloy Lafuente (stronk7) 96f888506c Merge branch 'w52_MDL-30948_m23_messagesuspended' of git://github.com/skodak/moodle 2012-01-04 00:47:48 +01:00
Eloy Lafuente (stronk7) 792182713a Merge branch 'w52_MDL-30951_m23_catsync' of git://github.com/skodak/moodle 2012-01-04 00:39:51 +01:00
Sam Hemelryk 3b53b85b47 Merge branch 'w52_MDL-29917_m23_autocomplete' of git://github.com/skodak/moodle 2012-01-04 10:58:03 +13:00
Sam Hemelryk 44d5c138a2 Merged branch 'w52_MDL-30548_m23_suspenduser' of git://github.com/skodak/moodle.git with conflict resolution 2012-01-04 10:50:20 +13:00
Eloy Lafuente (stronk7) 831e48be01 Merge branch 'w52_MDL-30950_m23_adminblock' of git://github.com/skodak/moodle 2012-01-03 22:33:11 +01:00
Eloy Lafuente (stronk7) bb2308a33a Merge branch 'wip-MDL-26155-m23' of git://github.com/samhemelryk/moodle
Conflicts:
	admin/settings/security.php
2012-01-03 17:26:31 +01:00
Andrew Robert Nicols ef72c7942e MDL-31000 Respect sortorder of repositories when displaying the filepicker 2012-01-03 15:58:58 +00:00
Petr Skoda daa8b1ac06 MDL-30948 do not generate new passwords for suspended accounts because they would not get any emails 2012-01-03 16:48:15 +01:00
Petr Skoda 4ad72c284d MDL-30548 support user suspended flag in admin UI
This patch includes:
* user management suspend UI tweaks and other coding style improvements
* suspended info in user profiles
* suspend option in advanced edit form
* suspended user filtering
* hidden user fields option for suspended field

Thanks Sam Hemelryk for valuable feedback.
2012-01-03 16:35:21 +01:00
sam marshall ce2a7a9186 MDL-30879 Course page: missing space after class for new 'description on course page' feature 2012-01-03 12:40:09 +00:00
Aparup Banerjee 2482570b9f Merge branch 'MDL-30600b' of git://github.com/rwijaya/moodle 2012-01-03 17:54:14 +08:00
Ankit Kumar Agarwal 85e976e514 MDL-30652 SCORM Fixing report prefrences display for interactions report 2012-01-03 10:38:41 +05:30
Ankit Kumar Agarwal 2af0e47259 MDL-30652 SCORM Fixing report prefrences display issue for basic report 2012-01-03 10:38:37 +05:30
Ankit Kumar Agarwal e12459baa2 MDL-30652 Scorm adding proper comments 2012-01-03 10:38:07 +05:30
Rossiani Wijaya 0c97dc1a72 MDL-30600 Fix mymobile theme choice renderer 2012-01-03 13:05:55 +08:00
Aparup Banerjee d7ca9b68ca Merge branch 'wip-mdl-29844' of git://github.com/rajeshtaneja/moodle.git - resolved conflict 2012-01-03 12:29:12 +08:00
Eloy Lafuente 90911c4ff9 MDL-29844 Administration: Added new config for users to login for viewing profile image 2012-01-03 11:53:49 +08:00
Sam Hemelryk 44141b1881 Merge branch 'w52_MDL-30786_m23_todelete' of git://github.com/skodak/moodle 2012-01-03 16:35:36 +13:00
Sam Hemelryk a187c1394e Merge branch 'w52_MDL-30673_m23_loginautocomplete' of git://github.com/skodak/moodle 2012-01-03 14:08:50 +13:00
Sam Hemelryk b19f834ada Merge branch 'w52_MDL-30809_m23_guestinstance' of git://github.com/skodak/moodle 2012-01-03 13:05:22 +13:00
Sam Hemelryk eacb470338 Merge branch 'w52_MDL-30924_m23_pspell' of git://github.com/skodak/moodle 2012-01-03 12:49:06 +13:00
Sam Hemelryk 03edfee475 Merge branch 'w52_MDL-30926_m23_blogassoc' of git://github.com/skodak/moodle 2012-01-03 12:38:51 +13:00
Sam Hemelryk 466973a143 Merge branch 'w52_MDL-30934_m23_modules' of git://github.com/skodak/moodle 2012-01-03 12:26:14 +13:00
Sam Hemelryk 19c6ff514e Merge branch 'w52_MDL-30943_m23_adminreport' of git://github.com/skodak/moodle 2012-01-03 12:22:44 +13:00
Sam Hemelryk d0a8d04551 Merge branch 'MDL-30802' of git://github.com/timhunt/moodle 2012-01-03 11:26:02 +13:00
Sam Hemelryk 929ea9ed6b Merge branch 'MDL-30766' of git://github.com/timhunt/moodle 2012-01-03 11:23:13 +13:00
Sam Hemelryk 221dd28b65 Merge branch 'MDL-30168_tim2' of git://github.com/timhunt/moodle 2012-01-03 11:15:04 +13:00
Sam Hemelryk a46fe43ba2 Merge branch 'MDL-27200' of git://github.com/timhunt/moodle 2012-01-03 11:12:14 +13:00
Sam Hemelryk f6b2946a06 Merge branch 'MDL-29266' of git://github.com/bostelm/moodle 2012-01-03 11:09:19 +13:00
Sam Hemelryk 62ff78e6de Merge branch 'w52_MDL-13572_m23_messaging' of git://github.com/skodak/moodle 2012-01-03 11:00:42 +13:00
Petr Skoda 1f6d1ebf0a MDL-13572 fix incorrect value printing 2012-01-02 22:52:04 +01:00
Petr Skoda 36a5396417 MDL-13572 fix incorrect value printing 2012-01-02 22:51:38 +01:00
Sam Hemelryk fe4abbe180 Merge branch 'MDL-30868' of git://github.com/lazydaisy/moodle 2012-01-03 10:38:04 +13:00
Petr Skoda 9a3e8a1fa7 MDL-13572 do not send emails to invalid addresses 2012-01-02 22:36:37 +01:00
Sam Hemelryk e525c992ca Merge branch 'MDL-30601' of git://github.com/rwijaya/moodle 2012-01-03 10:30:41 +13:00
Sam Hemelryk 03273b5357 Merge branch 'MDL-29821' of git://github.com/bostelm/moodle 2012-01-03 10:11:58 +13:00
Sam Hemelryk ed569481a3 Merge branch 'MDL-30706' of git://git.luns.net.uk/moodle 2012-01-03 10:09:11 +13:00
Sam Hemelryk 01dcafd8d5 Merge branch 'MDL-30804-master-1' of git://git.luns.net.uk/moodle 2012-01-03 10:06:20 +13:00
Sam Hemelryk 2fa7c29c06 Merge branch 'MDL-30805-master-1' of git://git.luns.net.uk/moodle 2012-01-03 10:02:18 +13:00
Sam Hemelryk 4b8ae84cd0 Merge branch 'MDL-13572_validate_email' of git://github.com/andyjdavis/moodle 2012-01-03 09:57:00 +13:00
Sam Hemelryk 83f78f8dac MDL-26869 admin: Added page to view admin categories and included in navigation with a new setting 2012-01-03 09:39:10 +13:00
Sam Hemelryk 2ad2ad0915 MDL-26155 admin: Rebased, fixed conflicts, and fixed final admin string 2012-01-03 09:12:33 +13:00
Sam Hemelryk d79883ab7f MDL-26155 string: Improved validation when constructing lang_strings if debugging is enabled 2012-01-03 09:09:40 +13:00
Sam Hemelryk e106013f34 MDL-26155 admin: Converted admin settings to use new lang_string 2012-01-03 09:09:40 +13:00
Sam Hemelryk e6d40f8ac2 MDL-26155 string: Implemented moodle_string class 2012-01-03 09:04:58 +13:00
Eloy Lafuente (stronk7) c31d7ca2e0 Merge branch 'MDL-30851_master_wip' of git://github.com/grabs/moodle 2012-01-02 20:23:11 +01:00
Eloy Lafuente (stronk7) 6f68eabb7e Merge branch 'w52_MDL-30953_m23_pspell' of git://github.com/skodak/moodle 2012-01-02 20:19:43 +01:00
Eloy Lafuente (stronk7) 2a297e537d Merge branch 'MDL-30873' of git://github.com/timhunt/moodle 2012-01-02 20:16:02 +01:00
Eloy Lafuente (stronk7) ae95489d68 MDL-30610 add missing savepoint to get the upgrade checks passing.
Note the savepoint is 100% unreachable, because of the exit() call.
But it's needed to have all the upgrade checks (CI) balanced and
passing.
2012-01-02 19:48:33 +01:00
Eloy Lafuente (stronk7) 5f7d519ecf MDL-30610 Version bump. Time to diverge!
Once all the pre 2.2 upgrade code has been deleted, we bump
main version.php to start diverging in master after the
initial 3-4 weeks of on-sync with 22_STABLE.
2012-01-02 19:31:49 +01:00
Petr Skoda 8b19cf4fc7 MDL-30953 fix utf-8 support in PSpell class
Credit for discover and proposed fix goes to David Hai Gootvilig, this patch is part of https://github.com/moodle/custom-tinymce_spellchecker_php/tree/MOODLE_22_2.0.6b which will be used in the next tinymce import. It was reported upstream as https://github.com/tinymce/tinymce_spellchecker_php/pull/5
2012-01-02 12:49:09 +01:00
Petr Skoda c2d6b4f9ce MDL-30951 prevent fatal error when category sync enrolment not configured 2012-01-01 13:41:32 +01:00
Darko Miletic afd2700f26 MDL-30783: Implemented fix 2011-12-30 12:33:57 -03:00
Darko Miletic 7db3d6216d MDL-30778: Implemented intendeduserrole support 2011-12-30 12:16:59 -03:00
Petr Skoda 4eaee2c85c MDL-30673 fix login autocompletion protection 2011-12-30 16:04:56 +01:00
Petr Skoda 6e9989dbd3 MDL-29917 prevent form autocompletion in most Moodle forms
The password autocompletion in case of Moodle makes sense only on the login page, the form autocompletion in general is most probably useful only on the user signup page.

This patch is compatible with html 5, unfortunately we have to ignore strict warnings in legacy xhtml 1.0 standard.
2011-12-30 14:38:52 +01:00
Petr Skoda 9574c2ef0d MDL-30950 remove references to removed admin block
Credit goes to Ralf Hilgenstock.
2011-12-30 12:04:41 +01:00
Petr Skoda ca8fe0b00a MDL-30948 stop messaging suspended and deleted users 2011-12-29 17:01:10 +01:00
Petr Skoda ff53a58b65 MDL-30926 fix course and module blog associations 2011-12-28 20:18:10 +01:00
Petr Skoda daca599ff1 MDL-30943 fix forgotten admin/report/ references 2011-12-28 19:36:23 +01:00
Henning Bostelmann 096c30165b MDL-30031 Adaptive question behaviour: ignore invalid answers without penalty 2011-12-28 17:17:52 +00:00
Petr Skoda 282b5cc7e3 MDL-30945 add support for unenrolling of individual users + code cleanup 2011-12-28 16:56:46 +01:00
Petr Skoda 089fdbedf3 MDL-30809 do not add guest info to add course form if default instance prevented 2011-12-27 19:15:05 +01:00
Petr Skoda a0fee9c07e MDL-30934 fix module delete cleanup
Credit goes to Rajiv Navada.
2011-12-27 14:59:45 +01:00
Petr Skoda 72f2318b83 MDL-30924 merge upstream pspell fix
See https://github.com/moodle/custom-tinymce_spellchecker_php/tree/MOODLE_22_2.0.6a
2011-12-27 14:01:05 +01:00
Mary Evans 9bb15cf956 MDL-30868 Fix for assignment view in theme_boxxie 2011-12-24 00:54:25 +00:00
Andreas Grabs 0f61fb72d8 MDL-30851 - Syntax error in analysis_course.php 2011-12-23 17:40:07 +01:00
Tim Hunt ce70117bba MDL-30873 quiz: display an overall grade for preview users.
Also, don't display an overall grade unless there is at least one finished attempt.
2011-12-23 12:54:50 +00:00
Tim Hunt 35c37afc12 MDL-30802 question nav: fix questions link in front page course. 2011-12-23 12:54:29 +00:00
Tim Hunt 0c5abe6c3e MDL-30766 mod_quiz: fix edge cases of repaginate function. 2011-12-23 12:54:08 +00:00
Tim Hunt 820b41e34f MDL-30168 formslib: untangle automatic id generation.
Previously, we had overridden the _generateId method in almost all
subclasses; and then we mostly, but not always; ignored the value that
was generated there, and instead generated new (nicer) values in
MoodleQuickForm_Renderer::renderElement. Of course, that is not really a
logical place to (re)generate ids.

I have fixed the code so that the _generateId method now uses the 'nice
id' algorithm from renderElement. This should make the whole code flow
more logical.

This make all our overriding of _generateId unnecessary.

We do need a special _generateId for radio buttons, because you often
have different radio buttons with the same name but different values.

This change should only change the ids on radio, checkbox and
advcheckbox elements. Previously, those were essentially random, so I
don't think anyone could have been relying on the particular values.

This commit also has new unit tests, first to test the basic _generateId
algorithm, and then to create and render an example form (including some
tricky things like repeat_elements) and chech the acutal ids in the
generated HTML.
2011-12-23 11:51:45 +00:00
Tim Hunt 658ad69fa0 MDL-27200 missing {} in various lang strings. 2011-12-23 11:51:24 +00:00
Petr Skoda 5c79b8ed91 MDL-30610 prevent upgrades from pre2.2.0 2011-12-23 10:42:25 +01:00
Petr Skoda 527c8239a2 MDL-30610 remove outdated question upgrade code 2011-12-23 10:39:34 +01:00
Petr Skoda 4034485eb7 MDL-30610 remove outdated quiz upgrade code 2011-12-23 10:38:13 +01:00
Petr Skoda a2f5eaca6a MDL-30610 remove outdated theme upgrade code 2011-12-23 10:38:13 +01:00
Petr Skoda 2e210163ee MDL-30610 remove outdated main upgrade code 2011-12-23 10:38:13 +01:00
Petr Skoda 17510ff0fe MDL-30610 remove outdated workshop upgrade code 2011-12-23 10:38:12 +01:00
Petr Skoda 7c58c19fa3 MDL-30610 remove outdated admin tool upgrade code 2011-12-23 10:38:12 +01:00
Petr Skoda ce5e39e6c7 MDL-30610 remove outdated report upgrade code 2011-12-23 10:38:12 +01:00
Petr Skoda 40e4cd435b MDL-30610 remove outdated mod upgrade code 2011-12-23 10:38:11 +01:00
Petr Skoda 8ef9da055a MDL-30610 standardise empty upgrade script content 2011-12-23 10:38:11 +01:00
Petr Skoda c5fb8b27b8 MDL-30610 remove outdated filter upgrade code 2011-12-23 10:38:11 +01:00
Petr Skoda 3751e28f1c MDL-30610 remove outdated enrol upgrade code 2011-12-23 10:38:11 +01:00
Petr Skoda 612d65d037 MDL-30610 remove outdated block upgrade code 2011-12-23 10:38:10 +01:00
Petr Skoda 5ea41be1b3 MDL-30610 remove outdated auth upgrade code 2011-12-23 10:38:10 +01:00
Petr Skoda 34c7280375 MDL-30786 no need for 1.9-2.2 upgrade info in 2.3 2011-12-23 10:35:32 +01:00
Petr Skoda ec8935f576 MDL-30786 fix overview status of standard plugins to be deleted 2011-12-23 10:35:32 +01:00
Eloy Lafuente (stronk7) 2117dcb591 weekly release 2.3dev (on-sync version 22_STABLE) 2011-12-23 03:01:27 +01:00
Eloy Lafuente (stronk7) 4e25a9dbf1 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-12-23 02:52:54 +01:00
AMOS bot b756f24c22 Automatically generated installer lang files 2011-12-23 00:31:16 +00:00
Eloy Lafuente (stronk7) 63637e9dd8 MDL-30760 question engine: reduce summary max size
MySQL only accepts 65536 (aprox) bytes in default TEXT
columns. So we define the max allowed as 32000 to allow
99.9% of utf-8 contents to fit. If some day MDL-19603 is
implemented and all current TEXTs are moved (MySQL) to
the BIG counterparts, this restriction can be out (MDL-19603).
2011-12-23 01:16:25 +01:00
Eloy Lafuente (stronk7) 91c10ddfa0 Merge branch 'MDL-29400_misleading_file_upload_status' of git://github.com/gerrywastaken/moodle 2011-12-22 09:48:23 +01:00
Gerard (Gerry) Caulfield 229278a71b MDL-29400 Fixing unset object bug encountered by Rajesh during testing 2011-12-22 14:00:44 +08:00
Sam Hemelryk 01856bf75e Merge branch 'wip-MDL-18128-master-version3' of git://github.com/abgreeve/moodle 2011-12-22 11:44:11 +13:00
Sam Hemelryk 21cd532f68 MDL-30639 mod_lesson: Used a consistent format for users display of answer 2011-12-22 11:22:59 +13:00
Sam Hemelryk 365b567f71 Merge branch 'MDL-30639' of git://github.com/rwijaya/moodle 2011-12-22 11:21:22 +13:00
Tim Hunt 9f0f486935 MDL-30704 quiz_overview: fixup, add missing rescaling.
Thanks Micheal de Raadt for catching this in testing.
2011-12-21 18:33:18 +01:00
Eloy Lafuente (stronk7) cb21d040f4 MDL-20245 grade: added tests for set_user_preference() and the 1333 limit
Added to tests to check that both the "limit" case of using 1333
chars is allowed and 1334 causes coding exception to happen
2011-12-21 16:28:22 +01:00
Eloy Lafuente (stronk7) 52a2306386 MDL-20245 grade: fix version numbers
This commit puts the 22_STABLE and master main
versions back to "on-sync" mode (very first
weeks after major release).
2011-12-21 12:17:22 +01:00
Andrew Davis 8e54ce9717 MDL-20245 grade: increased the length of the user_preferences::value column and added an exception to set_user_preference() is this new length is exceeded
Conflicts:

	lib/db/upgrade.php
	version.php
2011-12-21 12:13:33 +01:00
adrian@moodle.com 2edcf21abf MDL-18128 - forum - Addition of group editing for forums. 2011-12-21 15:25:44 +08:00
Aparup Banerjee c42346aa63 Merge branch 'wip-MDL-30541-master' of git://github.com/phalacee/moodle 2011-12-21 14:15:54 +08:00
Sam Hemelryk bbcde38b33 Merged MDL-28126 with cleanup 2011-12-21 17:03:25 +13:00
Aparup Banerjee 3f14cf7f4e MDL-28126 webservice : resolved integration conflicts 2011-12-21 11:20:50 +08:00
Sam Hemelryk cc688de44f Merge branch 'MDL-29239' of git://github.com/rwijaya/moodle 2011-12-21 14:59:54 +13:00
Jason Fowler 43c4f4d103 MDL-30541 - Blog - Fixing the context for RSS Feed headers on the single blog entry pages 2011-12-21 09:30:26 +08:00
Sam Hemelryk aaee11b85d Merge branch 'MDL-30704' of git://github.com/timhunt/moodle 2011-12-21 14:30:15 +13:00
Eloy Lafuente (stronk7) 765d97c8a1 MDL-30777: whitespace fix 2011-12-21 00:40:25 +01:00
Eloy Lafuente (stronk7) 90022d184e Merge branch 'MDL-30777_t2' of git://github.com/kiklop74/moodle 2011-12-21 00:38:48 +01:00
Eloy Lafuente (stronk7) bccb64f172 Merge branch 'MDL-30170-mnet-undelete' of git://github.com/mudrd8mz/moodle 2011-12-20 23:23:37 +01:00
Eloy Lafuente (stronk7) 1af989f758 Merge branch 'MDL-29400_misleading_file_upload_status' of git://github.com/gerrywastaken/moodle 2011-12-20 22:53:12 +01:00
Eloy Lafuente (stronk7) e968c5f910 MDL-30761 make it work under Oracle. To revisit after MDL-29765 is done. 2011-12-20 22:36:31 +01:00
Eloy Lafuente (stronk7) 311b953168 Merge branch 'w51_MDL-30761_m23_slowmysql' of git://github.com/skodak/moodle 2011-12-20 22:17:21 +01:00
Eloy Lafuente (stronk7) bda8c9c92f Merge branch 'MDL-30631' of git://github.com/kiklop74/moodle 2011-12-20 22:02:11 +01:00
Eloy Lafuente (stronk7) 6920a61669 Merge branch 'MDL-30603_m23' of https://github.com/nebgor/moodle 2011-12-20 19:49:19 +01:00
Eloy Lafuente (stronk7) e2ec1ebdf6 Merge branch 'MDL-29048-master' of git://github.com/ankitagarwal/moodle 2011-12-20 18:55:31 +01:00
Eloy Lafuente (stronk7) 2cf28daa90 Merge branch 'wip-MDL-30733-master' of github.com:marinaglancy/moodle 2011-12-20 18:51:09 +01:00
Darko Miletic 75c95c8b02 MDL-30777: Properly implemented error message 2011-12-20 11:06:50 -03:00
Dan Poltawski b35bf95853 MDL-30706 mymobile: don't send login pages through ajax
By doing 'real requests' we can allow external authentication to happen
(e.g. apache module which does a redirect to external SSO system)
2011-12-20 09:37:23 +00:00
Aparup Banerjee e59a1dd670 MDL-25561 Gradebook : fixed whitespaces 2011-12-20 16:02:55 +08:00
Aparup Banerjee 8f43b3990d Merge branch 'MDL-25561_user_report_name_clickable' of git://github.com/andyjdavis/moodle 2011-12-20 15:52:38 +08:00
Rossiani Wijaya e09c5a59a9 MDL-30601: mymobile theme: remove trailing whitespaces 2011-12-20 15:13:47 +08:00
Aparup Banerjee 50c59551c6 Merge branch 'MDL-30627-master-1' of git://git.luns.net.uk/moodle 2011-12-20 13:38:21 +08:00
Aparup Banerjee 21be45b46d Merge branch 'MDL-30641-master-1' of git://git.luns.net.uk/moodle 2011-12-20 11:54:23 +08:00
Rossiani Wijaya d85c839928 MDL-30636 Lesson Module: fixed essay answer display format 2011-12-20 11:53:55 +08:00
Aparup Banerjee 74f0b72254 Merge branch 'MDL-30569-master' of git://github.com/ankitagarwal/moodle 2011-12-20 11:08:42 +08:00
Eloy Lafuente (stronk7) b37a5a000f Merge branch 'wip-mdl-29067' of git://github.com/rajeshtaneja/moodle 2011-12-20 03:07:43 +01:00
Eloy Lafuente (stronk7) c557dbdbfe Merge branch 'wip-MDL-30770-m23' of git://github.com/samhemelryk/moodle 2011-12-20 02:26:03 +01:00
Eloy Lafuente (stronk7) 2dee0aaf2e Merge branch 'MDL-30739' of git://github.com/stronk7/moodle 2011-12-20 02:23:09 +01:00
Eloy Lafuente (stronk7) 80472947dc Merge branch 'MDL-30739' of git://github.com/timhunt/moodle 2011-12-20 02:21:00 +01:00
Sam Hemelryk 54a4d23d43 Merge branch 'MDL-30764-master' of git://github.com/sammarshallou/moodle 2011-12-20 14:15:47 +13:00
Eloy Lafuente (stronk7) 3ed2e334d8 Merge branch 'MDL-30738' of git://github.com/kiklop74/moodle 2011-12-20 01:59:46 +01:00
Sam Hemelryk f67911b6ac Merge branch 'MDL-30760' of git://github.com/timhunt/moodle 2011-12-20 13:39:54 +13:00
AMOS bot bbacecda15 Automatically generated installer lang files 2011-12-20 00:31:14 +00:00
Sam Hemelryk eae0b9a9e3 Merge branch 'MDL-30646' of git://github.com/timhunt/moodle 2011-12-20 13:23:45 +13:00
Sam Hemelryk 22c3690b9d Merge branch 'MDL-29846' of git://github.com/timhunt/moodle 2011-12-20 13:16:03 +13:00
Sam Hemelryk f8882018f2 Merge branch 'w51_MDL-30787_m23_coursemodedit' of git://github.com/skodak/moodle 2011-12-20 12:08:23 +13:00
Eloy Lafuente (stronk7) 961e8f9457 Merge branch 'MDL-30741_master' of git://github.com/jfilip/moodle 2011-12-19 23:59:33 +01:00
Sam Hemelryk fc0d8f77f2 Merge branch 'wip-MDL-28948-master' of git://github.com/abgreeve/moodle 2011-12-20 10:44:41 +13:00
Sam Hemelryk 5e928f2e7e Merge branch 'w51_MDL-30779_m23_dbtransfer' of git://github.com/skodak/moodle 2011-12-20 10:24:16 +13:00
Sam Hemelryk 1a73fc9a24 Merge branch 'w51_MDL-30765_m23_context' of git://github.com/skodak/moodle 2011-12-20 10:21:35 +13:00
Sam Hemelryk 136d4c09f3 Merge branch 'w51_MDL-30697_m23_roleslink' of git://github.com/skodak/moodle 2011-12-20 10:04:33 +13:00
Tim Hunt 7ddfd168ac MDL-30704 Quiz grades report shows inconsistent averages.
Previously, for the overall grade, we averaged the final marks for each
student; while for the individual question grades, we averaged all
grades.

The report now works consistently on the principle that the averages
should include exactly what is currenlty being shown in the report. This
is more logical, and so should be easier for users to understand.

If you want to see the averages that are currently shown (e.g. just the
average of each student's highers grade) then the report options let you
do that.
2011-12-19 14:59:36 +00:00
Tim Hunt 8c52a5ce72 MDL-29846 qbehaviours admin: correct $needed logic.
Also, fix a notice.
2011-12-19 14:31:11 +00:00
Andrew Robert Nicols 2ee40a7018 MDL-30805 Require HTML content for the HTML block configuration 2011-12-19 12:00:54 +00:00
Andrew Robert Nicols 986bd83585 MDL-30804 Rename the 'onthispage' fieldset for block configuration 2011-12-19 11:46:23 +00:00
Rossiani Wijaya de2e165a3a MDL-30636 Lesson Module: fixed essay answer display format 2011-12-19 15:08:15 +08:00
Aparup Banerjee 26b85f89bc Merge branch 'w51_MDL-30735_m23_cron' of git://github.com/skodak/moodle 2011-12-19 11:52:33 +08:00
Sam Hemelryk 042efe1aa7 Merge branch 'w51_MDL-30789_m23_enrolupdatestatus' of git://github.com/skodak/moodle 2011-12-19 16:22:42 +13:00
Sam Hemelryk 7554371cd9 Merge branch 'MDL-30500' of git://github.com/lazydaisy/moodle 2011-12-19 15:21:56 +13:00
Sam Hemelryk c3f90a5722 Merge branch 'MDL-37049' of git://github.com/jamiepratt/moodle 2011-12-19 15:06:01 +13:00
Sam Hemelryk 92e72b0a86 Merge branch 'MDL-30683' of git://github.com/timhunt/moodle 2011-12-19 14:17:20 +13:00
Mary Evans e580c65962 MDL-30500 Fix for Sky High report & print layout 2011-12-19 00:06:10 +00:00
Sam Hemelryk d0fe873623 Merge branch 'MDL-29176' of git://github.com/timhunt/moodle 2011-12-19 12:28:52 +13:00
Sam Hemelryk 90179a5093 Merge branch 'MDL-30734' of git://github.com/timhunt/moodle 2011-12-19 11:52:49 +13:00
Sam Hemelryk 6ccf06637f Merge branch 'MDL-30742' of git://github.com/timhunt/moodle 2011-12-19 11:37:10 +13:00
Sam Hemelryk 09608abe56 Merge branch 'MDL-30744' of git://github.com/timhunt/moodle 2011-12-19 10:21:11 +13:00
Sam Hemelryk b53bea8167 Merge branch 'MDL-30758' of git://github.com/timhunt/moodle 2011-12-19 09:27:48 +13:00
Petr Skoda af7177dbcb MDL-30789 add new update_status() method to enrol plugins and improve enrol cache invalidation 2011-12-18 17:30:17 +01:00
Petr Skoda af18993548 MDL-30787 fix use of module and section edit capabilities 2011-12-18 13:54:38 +01:00
AMOS bot 2fd64b7b11 Automatically generated installer lang files 2011-12-18 00:31:14 +00:00
Petr Skoda 21db6da150 MDL-30697 fix incorrect capability for role assign button
Credit goes to Alexander Bias.
2011-12-17 14:46:47 +01:00
Petr Skoda e3258164c6 MDL-30735 fix cron maintenancerun detection
Credit goes to Rodrigo Belluomini Cardilli.
2011-12-17 14:17:19 +01:00
Petr Skoda 58a9e8f3de MDL-30765 fix invalid context variable 2011-12-16 23:02:50 +01:00
Tim Hunt c83ed025ef MDL-30760 question engine: question summary can be longer than 64k!
1. So we will truncate the question summary to 65000 chars if necessary.

2. Also, fix one minor error in mutlianswer save_question_options.

question_bank::MAX_SUMMARY_LENGTH is not the most logical class to add
the constant to, but it needs to be accessible during upgrade, so I was
lazy and put it there.
2011-12-16 15:56:23 +00:00
Petr Skoda e7f2c2cc9f MDL-30761 improve get_user_access_sitewide() performance 2011-12-16 16:27:01 +01:00
Petr Skoda 8a238aee75 MDL-30761 fix simpletest regression caused by rubrics 2011-12-16 14:22:20 +01:00
Petr Skoda 47651a4d8c MDL-30779 add port and socket to dbtansfer tool 2011-12-16 14:18:51 +01:00
Sam Hemelryk 6be4afb1ad MDL-30770 admin: Fixed notice about missing variable 2011-12-16 17:16:47 +13:00
Aparup Banerjee 441088d647 Merge branch 'master_MDL-28728' of git://github.com/danmarsden/moodle 2011-12-16 11:36:47 +08:00
Rajesh Taneja e45b444e63 MDL-29067 Admin: Added spam checking on comments, messages and forum posts 2011-12-16 11:19:21 +08:00
adrian@moodle.com 98456628a2 MDL-28948 - lib - removed the hard coded key for the rc4encryt function. 2011-12-16 09:17:24 +08:00
AMOS bot 475fcd7566 Automatically generated installer lang files 2011-12-16 00:31:14 +00:00
Dan Marsden 1a50148e8b MDL-28728 SCORM Add missing string 2011-12-16 11:22:39 +13:00
David Mudrak 1322a56df3 MDL-30170 MNet peers administration - various usability improvements
While fixing MDL-30170, the following tiny usability details were
improved along the way:

* the maximum length of the peer site title and the hostname is now
  validated (this was actually a real bug as the default value is pre-loaded
  from the peer) so the admin gets a nice validation error instead of
  the database write exception when trying to register a host with a
  longer site title.
* hard-coded English string 'All Hosts' is now localized
* the hostname link in the list of MNet peers leads to the peer itself
2011-12-15 21:51:33 +01:00
David Mudrak 8a6f2291f2 MDL-30170 MNet peers administration - highlight the undelete widget
The patch highlights the undelete radio selector at the host edit form.
It moves it to the end of the form (near the submit button) and displays
an explanation above the radio selector.

Also, the list of deleted hosts is now displayed below the table of
active peers at the Manage peers page.

The data returned by mnet_get_hosts() function now contain the deleted
status, too. It is possible to obtain deleted hosts from that function
now.
2011-12-15 21:51:31 +01:00
Darko Miletic 986dc51a72 MDL-30631: Fixed the default grade import for the question for both CC
1.0 and 1.1
2011-12-15 17:14:10 -03:00
Tim Hunt 800944b015 MDL-29176 quiz editing: can't move questions onto a new page. 2011-12-15 19:32:37 +00:00
Tim Hunt 29ded2d68a MDL-30646 default qbank sort should only use visible columns. 2011-12-15 18:39:21 +00:00
Henning Bostelmann 3367f14b0a MDL-29266 Assignment grading: save state of "send notifications" box 2011-12-15 17:17:37 +00:00
sam marshall 6d02b26578 MDL-30764 Activity settings: do not disable grouping dropdown if it is already set 2011-12-15 16:43:12 +00:00
Justin Filip 9d6fd25a05 MDL-30741 Adding a new test to check for incorrect parsing of complicate HTML with a PRE tag. 2011-12-15 11:11:35 -05:00
Justin Filip 11ec8c0412 MDL-30741 Fix the handling of PRE tags with the latest code from upstream: http://trac.roundcube.net/browser/trunk/roundcubemail/program/lib/html2text.php?rev=5497 2011-12-15 11:11:31 -05:00
Tim Hunt 41d5cbc1cd MDL-30758 quiz_statistics report fails if all 1st attempts require grading 2011-12-15 12:51:20 +00:00
Tim Hunt 732793f1a5 MDL-30739 qtype numerical: upgrade script uses SQL that is not cross-DB. 2011-12-15 12:22:00 +00:00
Eloy Lafuente (stronk7) 5cff28cfa1 MDL-30739 add one test to confirm the solution is cross-db 2011-12-15 13:14:26 +01:00
Tim Hunt 6f4c71f5fe MDL-30744 question editing permissions. Update to new accessslib.php code.
I don't believe this will actually fix the reported problem, which I
cannot reproduce, but it should give us much better error messages, at
which point we can fix it.
2011-12-15 11:54:58 +00:00
Tim Hunt 490668bbe1 MDL-30592 / MDL-27183 quiz statistics: fix merge problem.
These two fixes changes the same file in different ways, causing breakage.
2011-12-15 11:21:56 +00:00
Aparup Banerjee 47c3dfd5a4 MDL-28126 webservice : string fixed. 2011-12-15 18:06:04 +08:00
Marina Glancy d021e5b40c MDL-30733: synchronizing view_feedback with parent function to work with advanced grading
assignment_upload::view_feedback was overriden. It is altered the same way as parent function was to work with advanced grading and so it is displayed correctly in user complete report
2011-12-15 16:44:14 +08:00
Jamie Pratt a24e35701f MDL-30749 fixing typo referring to question instead of answer object 2011-12-15 15:06:45 +07:00
Aparup Banerjee 73c0d46416 Revert "MDL-30482 create new capability for viewing glossary entries"
This reverts commit b92ac8c079.
2011-12-15 15:49:55 +08:00
Aparup Banerjee 22154a3187 Revert "MDL-30482 - Glossary - Adding capability to other areas using glossary" (test failed)
This reverts commit aa423bd0e6.
2011-12-15 15:47:46 +08:00
Ankit Kumar Agarwal ad96cc524b MDL-30569 Administration Fixing the redirect after editting is toggeled on the front page 2011-12-15 08:23:15 +05:30
Eloy Lafuente (stronk7) 5c5ea474c4 MDL-30592 moodlelib: minor phpdocs/debug tweaks 2011-12-14 22:37:40 +01:00
Eloy Lafuente (stronk7) 12727710d4 Merge branch 'MDL-30592' of git://github.com/timhunt/moodle 2011-12-14 22:03:26 +01:00
Tim Lock 10be5e22f3 MDL-30419: IMS package content missing when using Blackboard packages 2011-12-14 21:36:20 +01:00
Darko Miletic ae8e1645b6 MDL-30738: There was an incorrect parameter in $PAGE->set_url
after swithing courseid to id everything started working as it should.
2011-12-14 14:38:02 -03:00
Tim Hunt b5f65ba14c MDL-30742 restoring 1.9 backups with missing question data should be robust 2011-12-14 17:17:07 +00:00
Jerome Mouneyrac 94b9dad79d MDL-28126 webservices : should not able to create token if user is deleted,unconfirmed,suspended or guest. 2011-12-15 00:46:21 +08:00
Tim Hunt ad73a2cb4e MDL-30734 question engine: sum_usage_marks_subquery edge-case.
When all qas in a useage are 'gaveup' state, it gives NULL, not 0.0, for the total.
2011-12-14 14:29:00 +00:00
Jason Fowler aa423bd0e6 MDL-30482 - Glossary - Adding capability to other areas using glossary 2011-12-14 15:00:30 +08:00
Aparup Banerjee d4f2755206 Revert "MDL-30482 - Glossary - Adding capability to other areas using glossary"
This reverts commit d79de196c9.
2011-12-14 14:59:16 +08:00
Aparup Banerjee 2faa009fa1 Merge branch 'master_MDL-28728' of git://github.com/danmarsden/moodle 2011-12-14 13:35:38 +08:00
Aparup Banerjee d2861a7b47 MDL-29325 fixed typo - camelcasing. 2011-12-14 13:12:57 +08:00
Sam Hemelryk 0142e3eec1 Merge branch 'master_MDL-30576' of git://github.com/mayankgupta/moodle 2011-12-14 17:22:26 +13:00
Sam Hemelryk cd3061294a Merge branch 'MDL-27183' of git://github.com/timhunt/moodle 2011-12-14 17:17:10 +13:00
Eloy Lafuente (stronk7) f477e8c1ce Merge branch 'wip-MDL-27767-master' of git://github.com/samhemelryk/moodle 2011-12-14 03:16:20 +01:00
Eloy Lafuente (stronk7) 5019c8ebb5 Merge branch 'w51_MDL-30605_m23_env23' of git://github.com/skodak/moodle 2011-12-14 02:37:04 +01:00
Sam Hemelryk 5c1c0900a5 Merge branch 'MDL-30463' of git://github.com/rwijaya/moodle 2011-12-14 14:26:42 +13:00
Sam Hemelryk cd6ad1c1d3 Merge branch 'MDL-30140' of git://github.com/mouneyrac/moodle 2011-12-14 14:08:37 +13:00
Gerard (Gerry) Caulfield d6d8c49432 MDL-29400 Update the upload and uploadsingle assignment classes to so
that they only display the assignment submitted status when it has
actually been submitted.
2011-12-14 05:54:10 +08:00
Henning Bostelmann 41eae0d9f3 MDL-29821 Navigation tree: fix link to course notes page 2011-12-13 21:32:55 +00:00
Tim Hunt 6d54b0f77f MDL-30683 don't show overall feedback in the quiz grades report.
The grades are small, while the feedback can be big, which breaks the table layout.
2011-12-13 16:50:19 +00:00
Aparup Banerjee 0ef92d976c Merge branch 'MDL-29772' of git://github.com/bostelm/moodle 2011-12-13 16:51:23 +08:00
Aparup Banerjee 952a77d1a8 MDL-29325 Enrol : reduced isset calls and improved readability 2011-12-13 16:37:00 +08:00
Andrew Davis dbd634ff2e MDL-13572 message: added validation of the email address in the messaging preferences 2011-12-13 15:53:15 +08:00
Aparup Banerjee d919bd00b3 Merge branch 'master_MDL-29325' of git://github.com/danmarsden/moodle 2011-12-13 14:59:22 +08:00
Aparup Banerjee 981661f745 Merge branch 'master_MDL-30577' of git://github.com/mayankgupta/moodle 2011-12-13 14:45:35 +08:00
Aparup Banerjee c35d38161e Merge branch 'MDL-30472-master' of git://github.com/ankitagarwal/moodle 2011-12-13 14:34:42 +08:00
Aparup Banerjee 036e9c7cbf Merge branch 'MDL-30362-master-1' of git://git.luns.net.uk/moodle 2011-12-13 14:29:25 +08:00
Aparup Banerjee 1ff57577da Merge branch 'MDL-30562' of git://github.com/timhunt/moodle 2011-12-13 13:48:43 +08:00
Aparup Banerjee c4378f125b Merge branch 'MDL-30655-master' of git://github.com/sammarshallou/moodle 2011-12-13 13:20:21 +08:00
Alexnader Bias 1b80a50418 MDL-30472 Course Making user lists sortable when lastacess field is hidden 2011-12-13 10:47:43 +05:30
Aparup Banerjee 9b91efe5bc Merge branch 'MDL-30559' of git://github.com/timhunt/moodle 2011-12-13 12:02:05 +08:00
Aparup Banerjee 099f23b7d7 Merge branch 'wip-MDL-30482-master' of git://github.com/phalacee/moodle 2011-12-13 11:11:47 +08:00
Petr Skoda 62988bf0bb MDL-30575 more mail header cleanup 2011-12-13 10:23:41 +08:00
Mayank Gupa a16abd537d MDL-30645, Fixing evaluation of default value of CMI elements. 2011-12-13 10:12:27 +08:00
Sam Hemelryk 302991ba37 Merge branch 'MDL-30653-master-2' of git://git.luns.net.uk/moodle 2011-12-13 12:08:12 +13:00
Sam Hemelryk 746e7c4a5e Merge branch 'MDL-30677' of git://github.com/timhunt/moodle 2011-12-13 11:20:22 +13:00
Sam Hemelryk 6508fbc37d Merge branch 'MDL-30532' of git://github.com/timhunt/moodle 2011-12-13 11:15:27 +13:00
Sam Hemelryk de3e5df24f Merge branch 'MDL-30498a' of git://github.com/timhunt/moodle 2011-12-13 11:11:33 +13:00
Sam Hemelryk 0ebb6ff5b8 Merge branch 'MDL-27143' of git://github.com/timhunt/moodle 2011-12-13 10:25:29 +13:00
Sam Hemelryk 2b9131991f Merge branch 'w51_MDL-30621_m23_protectdir' of git://github.com/skodak/moodle 2011-12-13 10:17:45 +13:00
Petr Skoda 7a7edd21f2 MDL-30621 more dataroot protection 2011-12-12 15:06:47 +01:00
Andrew Robert Nicols 6b3a341a95 MDL-30653 Remove duplicate Participants link from navbar 2011-12-12 10:42:42 +00:00
Rossiani Wijaya 7349495160 MDL-30463 lesson module: add space between yes and no options on start last attempt page 2011-12-12 17:14:45 +08:00
Andrew Davis 5625d33d17 MDL-25561 grade: made the student names clickable on the user report 2011-12-12 15:57:04 +08:00
Rossiani Wijaya 8367651ee4 MDL-29239 fixed edit course setting for moodle/course:changesummary permission is set to prevent. 2011-12-12 15:52:13 +08:00
Mayank Gupa 3cf721bf23 Merge branch 'master' of git://github.com/moodle/moodle into master_MDL-30577 2011-12-12 13:20:44 +05:30
Mark Nielsen 8fbb55ac8b MDL-29048 Glossary Force glossary type to secondary while trying to duplicate a mail glossary 2011-12-12 12:33:56 +05:30
Aparup Banerjee c45c1e1f20 Merge branch 'w51_MDL-30613_m23_FULLME' of git://github.com/skodak/moodle 2011-12-12 14:36:59 +08:00
Aparup Banerjee 9f26a481ae MDL-30603 synced and renamed incorrect ZF 1.10.6 file and name 2011-12-12 14:21:52 +08:00
Mayank Gupa 7ec0b1a936 Merge branch 'master' of git://github.com/moodle/moodle into master_MDL-30576 2011-12-12 10:53:23 +05:30
Sam Hemelryk 9997c057a2 Merge branch 'w51_MDL-29117_m23_enrolnewcourse' of git://github.com/skodak/moodle 2011-12-12 17:57:00 +13:00
Sam Hemelryk 82da6c5c5f Merge branch 'w51_MDL-30292_m23_health' of git://github.com/skodak/moodle 2011-12-12 17:40:47 +13:00
Sam Hemelryk 94db939f7c Merge branch 'w51_MDL-30364_m23_report' of git://github.com/skodak/moodle 2011-12-12 17:37:27 +13:00
Sam Hemelryk 0e3e2c82dd Merge branch 'w51_MDL-30415_m23_yui2rollups' of git://github.com/skodak/moodle 2011-12-12 17:29:11 +13:00
Sam Hemelryk bbf9358c49 Merge branch 'w51_MDL-30502_m23_ldapenrol' of git://github.com/skodak/moodle 2011-12-12 17:24:14 +13:00
Sam Hemelryk 07ae3349fc Merge branch 'w51_MDL-30588_m23_switchrole' of git://github.com/skodak/moodle 2011-12-12 17:10:58 +13:00
Sam Hemelryk 16fdb8d070 Merge branch 'w51_MDL-30659_m23_yuidebug' of git://github.com/skodak/moodle 2011-12-12 16:36:51 +13:00
Sam Hemelryk 3a6e1e2b78 Merge branch 'w51_MDL-30687_m23_ldapnewcourse' of git://github.com/skodak/moodle 2011-12-12 16:10:05 +13:00
Jason Fowler d79de196c9 MDL-30482 - Glossary - Adding capability to other areas using glossary 2011-12-12 10:46:10 +08:00
Sam Hemelryk 0669a9e9ae Merge branch 'MDL-29942' of git://github.com/mouneyrac/moodle 2011-12-12 15:12:42 +13:00
Charles Fulton b92ac8c079 MDL-30482 create new capability for viewing glossary entries 2011-12-12 09:59:41 +08:00
Sam Hemelryk 273e24ffa4 Merge branch 'MDL-28180' of git://github.com/stronk7/moodle 2011-12-12 14:54:35 +13:00
Sam Hemelryk d35fc666d6 Merge branch 'MDL-30198-master' of git://github.com/ankitagarwal/moodle 2011-12-12 13:54:48 +13:00
Sam Hemelryk ffdbcf3998 Merge branch 'MDL-29195-master-1' of git://git.luns.net.uk/moodle 2011-12-12 13:50:42 +13:00
Eloy Lafuente (stronk7) 4d856332e4 MDL-28180 backup - on restore always prevent completion_aggr_methd dupes
This covers the last case where dupes could be happening in the
completion_aggr_methd table: Restoring one complete course into
an existing one, adding information. Now we always check if the
aggr_method exists before inserting it.
2011-12-12 00:31:44 +01:00
Eloy Lafuente (stronk7) 43cf3165f1 MDL-28180 backup - take rid of dupes in course_completion_aggr_methd
Conflicts:

	version.php
2011-12-12 00:31:29 +01:00
Eloy Lafuente (stronk7) 184acafab6 MDL-28180 backup - set excluded activities for any non-course operation 2011-12-12 00:30:58 +01:00
Petr Skoda 433150f6cf MDL-30687 use course defaults when template not set in ldap enrol 2011-12-11 11:06:29 +01:00
Petr Skoda 9f38ba6860 MDL-29117 use default course settings when template not set in db enrol 2011-12-11 10:57:44 +01:00
Dan Marsden a12b1d751d MDL-28728 SCORM - only show delete button if data exists for this user in this scorm 2011-12-11 19:10:28 +13:00
Dan Marsden d32e353e35 MDL-28728 SCORM - add capability to allow users to delete own attempts - given to no-one by default. 2011-12-11 19:10:28 +13:00
Dan Marsden b47316cded MDL-29325 imsenterprise enrolment - allow more flexible naming of courses - thanks to Adam Barbary for patch 2011-12-11 19:07:23 +13:00
Petr Skoda 14074ef7c6 MDL-30292 rework trailing whitespace test
Now compatible with zlib compression.
2011-12-10 20:33:51 +01:00
Petr Skoda a0b15989e7 MDL-30364 fix user report regressions 2011-12-10 20:18:44 +01:00
Petr Skoda a1dd2a54e3 MDL-30415 prevent yui2 rollups in debug mode 2011-12-10 19:11:58 +01:00
Petr Skoda 0c79e389f8 MDL-30502 remove bogus role name param
Credit goes to Michael J Litzkow.
2011-12-10 18:34:08 +01:00
Petr Skoda adf0fc0e42 MDL-30621 prevent warnings when creating temp and cache dirs 2011-12-10 17:35:22 +01:00
Petr Skoda cb664c3a0d MDL-30659 fix use of yui filters 2011-12-10 13:46:15 +01:00
Petr Skoda 7edf3f7e82 MDL-30659 fix phpdocs problems 2011-12-10 13:16:18 +01:00
Petr Skoda dbd7282ca3 DML-30588 do not require enrollment after switching of roles 2011-12-10 12:44:32 +01:00
AMOS bot fc458b4cda Automatically generated installer lang files 2011-12-10 00:31:20 +00:00
Petr Skoda 0126413171 MDL-30610 dev versions should not satisfy version requirements 2011-12-09 21:50:58 +01:00
Petr Skoda 9676c7399b MDL-30610 new environment requirements for 2.3 2011-12-09 21:50:58 +01:00
Petr Skoda 33dca15616 MDL-30613 use standard https checks 2011-12-09 21:28:04 +01:00
Tim Hunt 0019a9b7aa MDL-30592 question_bank: make files in qtext work in the question list. 2011-12-09 19:23:53 +00:00
Tim Hunt fdb5bc03f5 MDL-30592 quiz statistics, ensure images in the question text appear. 2011-12-09 19:23:46 +00:00
Tim Hunt 8c03be8c71 MDL-30592 moodlelib: new helper component_callback
I chose to be slighly inconsistent with plugin_callback in order to make a nicer API.
2011-12-09 19:23:36 +00:00
Tim Hunt 3f11d7f923 MDL-30677 quiz: fix attempt counts when a student is in several groups. 2011-12-09 18:46:47 +00:00
Valeriy Streltsov 56565037dd MDL-30562 qtypes: extra_answer_fields & questionid_column_name public
Will let us make more of qtype backup and restore work automatically.
2011-12-09 18:38:38 +00:00
Tim Hunt af4e440888 MDL-30559 conditional availability: missing validation of grade rules. 2011-12-09 18:38:02 +00:00
Tim Hunt 8a058b758c MDL-30532 qeupgradehelper has broken links to quizzes. 2011-12-09 18:37:27 +00:00
Tim Hunt bea2086c95 MDL-30498 user name can overlap user report icon. 2011-12-09 18:36:56 +00:00
Tim Hunt e4977ba5c6 MDL-27183 quiz reports: don't show data to users not in any group
if the quiz is set to separate groups, and the user does not have access all groups.
2011-12-09 18:04:22 +00:00
Tim Hunt 9d0ac0ffbb MDL-27143 question bank: questions not saved when deleting a category.
Based on a fix by Nikhil Gupta.
2011-12-09 18:03:52 +00:00
sam marshall 7728860ae5 MDL-30655 Blocks: Moving block to top of list can cause (harmless) PHP warnings 2011-12-09 17:45:23 +00:00
Eloy Lafuente (stronk7) f89a83b87b weekly release 2.3dev (on-sync version 22_STABLE) 2011-12-09 16:25:08 +01:00
Eloy Lafuente (stronk7) fef739423a Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-12-09 16:09:10 +01:00
Tim Hunt 511b4cf82c MDL-30660 javascript-static: another yui3/ticket/2531561 work-around. 2011-12-09 12:40:57 +01:00
Eloy Lafuente (stronk7) d6b380a364 Merge branch 'w50_MDL-30625_m23_adminorder' of git://github.com/skodak/moodle 2011-12-09 10:57:18 +01:00
Aparup Banerjee 675e402a55 MDL-30542 simple string improvement. 2011-12-09 17:14:30 +08:00
Petr Skoda b8d13becf9 MDL-30625 fail gracefully when admins not defined 2011-12-09 09:04:43 +01:00
Mitsuhiro ac4e8c3387 MDL-30198 Glossary Changing string during imports 2011-12-09 10:01:33 +05:30
Jerome Mouneyrac f1f31c1d06 MDL-30140 alternative way to select user when adding a token. When more than 500 users we display a text box instead of a select box 2011-12-09 11:57:28 +08:00
Aparup Banerjee 70a7b8e1cd Merge branch 'w50_MDL-27364_m23_recaptchahttps' of git://github.com/skodak/moodle 2011-12-09 11:07:20 +08:00
Aparup Banerjee 29459d8e15 Merge branch 'MDL-30558' of git://github.com/timhunt/moodle 2011-12-09 10:46:23 +08:00
Aparup Banerjee 4000fce1a3 Merge branch 'master_MDL-26974' of git://github.com/danmarsden/moodle 2011-12-09 10:19:22 +08:00
Aparup Banerjee ce78f1d6f5 Merge branch 'master_MDL-30579' of git://github.com/mayankgupta/moodle 2011-12-09 10:13:22 +08:00
Tim Hunt 554de0d73a MDL-27314 quiz reports: fix JS confirmation before deleting attempts. 2011-12-09 02:33:47 +01:00
Eloy Lafuente (stronk7) 08416e72e3 MDL-30604 Added 2 missing messages andd deleting an incorrect one 2011-12-09 02:01:02 +01:00
Aparup Banerjee 46f2a9366a MDL-30604 Added upgrade lines to upgrade.php(s) 2011-12-09 01:28:59 +01:00
Eloy Lafuente (stronk7) 20405d1b44 Merge branch 'w50_MDL-30625_m23_adminorder' of git://github.com/skodak/moodle 2011-12-09 00:11:01 +01:00
Sam Hemelryk f8b2e5458d Merge branch 'MDL-30660' of git://github.com/timhunt/moodle 2011-12-09 11:46:09 +13:00
Eloy Lafuente (stronk7) bc4869a828 Merge branch 'MDL-29579' of git://github.com/timhunt/moodle 2011-12-08 23:36:49 +01:00
Tim Hunt e16c0b9da6 MDL-30660 javascript-static: M.util.show_confirm_dialog fixes 2011-12-08 17:50:11 +00:00
Andrew Robert Nicols 93e1d182e5 MDL-29195 Remove duplicate Participants -> Notes from navbar 2011-12-08 12:07:50 +00:00
Aparup Banerjee 1f8c6a9012 Merge branch 'master_MDL-30028' of git://github.com/danmarsden/moodle 2011-12-08 17:00:37 +08:00
Aparup Banerjee 80923958d1 Merge branch 'wip-MDL-30336-master' of git://github.com/abgreeve/moodle 2011-12-08 16:04:30 +08:00
Aparup Banerjee 5ac06899c7 Merge branch 'wip-mdl-30560' of git://github.com/rajeshtaneja/moodle 2011-12-08 15:51:27 +08:00
Jerome Mouneyrac b6dcb7d984 MDL-29942 trigger user events in web service calls 2011-12-08 14:40:57 +08:00
Aparup Banerjee cd8805448d Merge branch 'MDL-30350-master-1' of git://git.luns.net.uk/moodle 2011-12-08 14:19:46 +08:00
Aparup Banerjee 357317fb6e Merge branch 'MDL-27432_gd_error' of git://github.com/andyjdavis/moodle 2011-12-08 13:56:51 +08:00
Aparup Banerjee 983fb3f4aa Merge branch 'MDL-28710_rating_classes' of git://github.com/andyjdavis/moodle 2011-12-08 13:43:55 +08:00
Aparup Banerjee a92365080d Merge branch 'MDL-30607_override_email' of git://github.com/andyjdavis/moodle 2011-12-08 13:38:54 +08:00
Sam Hemelryk 9c6b40c614 Merge branch 'MDL-30518' of git://github.com/mackensen/moodle 2011-12-08 16:05:26 +13:00
Sam Hemelryk 4bd1fc7ef7 Merge branch 'w50_MDL-30528_m23_enrolroleid' of git://github.com/skodak/moodle 2011-12-08 15:50:42 +13:00
Sam Hemelryk 8e0169ebc2 Merge branch 'w50_MDL-30623_m23_guest' of git://github.com/skodak/moodle 2011-12-08 13:49:39 +13:00
Eloy Lafuente (stronk7) 08f2d600c1 Merge branch 'wip-MDL-30582-master' of git://github.com/samhemelryk/moodle 2011-12-08 01:36:44 +01:00
AMOS bot 36101938ff Automatically generated installer lang files 2011-12-08 00:31:13 +00:00
Eloy Lafuente (stronk7) a8c3a5673f Merge branch 'MDL-26522_user_report_menu' of git://github.com/andyjdavis/moodle 2011-12-08 00:58:42 +01:00
Eloy Lafuente (stronk7) 01783c46d4 Merge branch 'MDL-27314' of git://github.com/timhunt/moodle 2011-12-08 00:45:15 +01:00
Sam Hemelryk 073b19a281 Merge branch 'MDL-29712' of git://github.com/mouneyrac/moodle 2011-12-08 12:41:21 +13:00
Eloy Lafuente (stronk7) 98cd882603 Merge branch 'wip-MDL-30222-m23' of git://github.com/samhemelryk/moodle 2011-12-08 00:39:25 +01:00
Sam Hemelryk 871c2e15c7 Merge branch 'master_MDL-30211' of git://github.com/danmarsden/moodle 2011-12-08 10:44:47 +13:00
Sam Hemelryk b6965b11fc Merge branch 'master_MDL-30536' of git://github.com/danmarsden/moodle 2011-12-08 10:39:02 +13:00
Sam Hemelryk 74482042ac Merge branch 'MDL-28282-master' of git://github.com/ankitagarwal/moodle 2011-12-08 10:22:34 +13:00
Sam Hemelryk c629cfae58 Merge branch 'MDL28588' of git://github.com/ankitagarwal/moodle 2011-12-08 10:19:53 +13:00
Andrew Robert Nicols 37461af103 MDL-30641 Stop italicising and underlining folder names in the filepicker 2011-12-07 17:14:25 +00:00
Andrew Robert Nicols 75cd9d2ab6 MDL-30362 Change icon class for editsection icons in course formats 2011-12-07 14:58:10 +00:00
Andrew Robert Nicols bc6b1799d7 MDL-30627 Ensure that the dialogue is always shown in the current view window 2011-12-07 11:48:39 +00:00
Petr Skoda bb6ccfa53d MDL-30625 full support for main admin 2011-12-07 11:18:10 +01:00
Petr Skoda 66fe9746ba MDL-30623 fix null guest passwords in existing 2.2 sites 2011-12-07 09:13:34 +01:00
Petr Skoda df05b844f6 MDL-30623 make sure guest password field is not null 2011-12-07 08:58:18 +01:00
Rajesh Taneja 51070abc78 MDL-30560 Forms Lib: 'type' key for repeat_elements is restored 2011-12-07 11:56:34 +08:00
Sam Hemelryk 5199434619 Merge branch 'wip-MDL-19147-master' of git://github.com/abgreeve/moodle 2011-12-07 14:20:48 +13:00
AMOS bot 8d582fd101 Automatically generated installer lang files 2011-12-07 00:31:14 +00:00
stabijoh fa5ddf6685 MDL-30601, update MyMobile theme to use latest release of Jquery Mobile 2011-12-06 08:04:48 -05:00
Petr Skoda b608b227ba MDL-27364 use https for recaptcha when site runs via https
Based on solution by Rajesh Taneja.
2011-12-06 12:00:32 +01:00
Henning Bostelmann 4c0b36283a MDL-29772 Adaptive question behaviour: improve penalty information
also fixes MDL-29780: suppress penalty information if question penalty is 0
2011-12-06 10:46:50 +00:00
adrian@moodle.com aa30d3e8ce MDL-30336 - login - Added a setting in security that allows auto complete to be set to off in password fields. 2011-12-06 15:50:26 +08:00
Petr Skoda 629303c1c8 MDL-30528 stop recreating role_assignments on every login attempt for each user
Credit goes to Luis Gustavo Mueller de Alcantara.
2011-12-06 08:48:38 +01:00
Ankit Kumar Agarwal f17d78cac1 MDL-28588 Removing IN from SQL statments 2011-12-06 10:59:02 +05:30
Andrew Davis 492b00b7ba MDL-30607 message: removed an if condition that prevented you from clearing an overrident email address 2011-12-06 11:09:14 +08:00
Ankit Kumar Agarwal 6073fcbe16 MDL-28282 Scorm Restorting Groups support in Scomr reports 2011-12-06 07:20:51 +05:30
Sam Hemelryk e52a5d3ab2 MDL-30582 navigation: Fixed regression in generation of front page modules 2011-12-06 13:32:59 +13:00
Sam Hemelryk 3912cdd1de MDL-27767 install: Shows notifications rather than throwing exceptions when installation encounters unexpected id for guest or admin 2011-12-06 12:21:57 +13:00
Sam Hemelryk ecb731cb03 MDL-30222 Fixed home page redirection madness. Thank you Julien Boulen for providing the solution 2011-12-06 12:09:01 +13:00
AMOS bot 2096f007e3 Automatically generated installer lang files 2011-12-05 18:36:36 +01:00
AMOS bot a539bd0a8e Automatically generated installer lang files 2011-12-05 18:19:29 +01:00
Tim Hunt edfa0d800f MDL-29579 quiz statistics, include qtext in full XHTML export. 2011-12-05 15:44:01 +00:00
Eloy Lafuente (stronk7) 42f6b3f1d7 weekly release 2.3dev 2011-12-05 12:17:37 +01:00
Dan Marsden 62169a677d MDL-26974 - add extra logging information all the time - not just when debugging is on. 2011-12-05 21:38:27 +13:00
Andrew Davis 6278ce451f MDL-28710 rating: added some more classes to the html for entering ratings 2011-12-05 14:57:36 +08:00
Mayank Gupa 75638e0ab0 MDL-30579, fixing Data Model Elements are being initialized with an empty string 2011-12-05 05:17:40 +05:30
Mayank Gupa ab94be6bd1 MDL-30577, fixing cmi.credit, cmi.mode are not evaluated correctly 2011-12-05 04:44:28 +05:30
Mayank Gupa b5a26fe11a MDL-30576, Fixing cmi.completion_threshold and default value of minProgressMeasure to be saved correctly in the database. 2011-12-05 04:06:10 +05:30
Tim Hunt 0030db53d8 MDL-30558 question bank, missing string with obscure permissions.
AMOS BEGIN
 MOV [selectcategoryabove,mod_quiz],[selectcategoryabove,question]
AMOS END
2011-12-02 14:52:01 +00:00
Dan Marsden c72c635689 MDL-30211 imsenterprise enrolment - set up default enrolment methods in new courses 2011-12-02 22:41:51 +13:00
Dan Marsden aff3a5d60c MDL-30536 Choice - remove setType so that validation works when JS is disabled 2011-12-02 21:16:21 +13:00
Dan Marsden b27917eea4 MDL-30028 - use page pref correctly when pagination or re-ordering 2011-12-02 21:07:59 +13:00
Jerome Mouneyrac d2f127e65c MDL-29712 REST-XML server was translating too many HTML characters. use htmlspecialchars instead of htmlentities. Translated characters by htmlspecialchars are compatible with XML validation, and so XML parsers for javascript, java... 2011-12-02 11:26:48 +08:00
Andrew Davis 97451e029b MDL-26522 grade: made the user selection drop down on the user report behave more sensibly 2011-12-02 09:48:36 +08:00
Igor Sazonov 21beddafa8 MDL-27314 quiz attempts cannot be deleted in separate groups mode. 2011-12-01 16:22:43 +00:00
Charles Fulton 5fad08b4a4 MDL-19147 - forum - Removed single discussions from the pull down menu for moving posts to different forums. 2011-12-01 08:54:46 +08:00
Charles Fulton 59c1a98c05 MDL-30518 get_context_instance takes one parameter at the SYSTEM level 2011-11-30 05:47:50 -08:00
Andrew Davis 6b2f218473 MDL-27432 mod_data: improved handling of the absence of the GD php extension 2011-11-28 12:58:44 +08:00
Andrew Robert Nicols d50645ebca MDL-30350 Highlight late submissions in the submission overview page 2011-11-18 14:10:33 +00:00
Petr Skoda d4fa91564d fix requires, originally plugins database did not allow proper version there 2011-11-05 12:59:33 +01:00
Petr Skoda 61d821821a stable mod_book release for Moodle 2.1
No more development planned, I am looking for a new maintainer.
2011-11-05 12:54:31 +01:00
Petr Skoda 0b7fc76a9c Fix errors in book module during stats execution
closes skodak/moodle-mod_book#20
2011-11-03 11:38:39 +01:00
Petr Skoda e2ddc5318f bump up subplugins too and mark as beta2 2011-10-14 19:57:22 +02:00
Petr Skoda 82ebcbc855 bump up version 2011-10-14 19:52:57 +02:00
Petr Skoda 26c6ba6c72 do not try to export when no chapters present yet 2011-10-14 19:50:36 +02:00
Petr Skoda 327f9184c5 fix return link on the frontpage
credit goes to mauno, closes #18
2011-10-14 19:45:37 +02:00
Petr Skoda 8ad39e4f38 explain zip archive is required when importing html
closes #19
2011-10-14 19:36:08 +02:00
Petr Skoda fe9820e8a7 fix required Moodle version 2011-10-09 16:27:42 +02:00
Petr Skoda bc66f1c0e3 fix readme 2011-10-09 16:05:44 +02:00
Petr Skoda d816304377 annoy users with MDL-28019
closes #17, it should be no ready for beta testing
2011-10-09 15:53:53 +02:00
Petr Skoda 6992de4fda normalise copyright links 2011-10-09 15:29:20 +02:00
Petr Skoda 74979715a4 standardised includes 2011-10-09 15:26:33 +02:00
Petr Skoda d4f5642057 highlight more authors 2011-10-09 15:21:48 +02:00
Petr Skoda 890e146f45 add missing moodle.org link 2011-10-09 15:20:09 +02:00
Petr Skoda f3d91d521f fixed imscp export support
closes #12
2011-10-09 15:18:15 +02:00
Petr Skoda 0c9f18642f add basic revision tracking support 2011-10-09 13:40:20 +02:00
Petr Skoda 34660c5979 rewritten html import
hopefully there are not many bugs, closes #13
2011-10-09 12:55:54 +02:00
Petr Skoda 22d3a77a52 oops, it is 10th month already 2011-10-08 22:24:23 +02:00
Petr Skoda 2ecc0ff5d0 add proper deleting of chapter files 2011-10-08 22:13:12 +02:00
Petr Skoda df78099aee remove old hack 2011-10-08 20:45:34 +02:00
Petr Skoda e145338300 fix indentation 2011-10-08 20:44:13 +02:00
Petr Skoda a22a82822d migrate all legacy book files - yay!
closes #7
2011-10-08 19:03:03 +02:00
Petr Skoda 00328eb344 fix borked backup and restore
credit for the amp problem discovery goes to Davo Smith, closes #16
2011-10-08 15:44:02 +02:00
Petr Skoda bd4a960f36 add full 1.9 restore support
#15
2011-10-08 14:40:42 +02:00
Petr Skoda 21496cd86b new markdown formatted readme
release notes will be released separately
2011-10-08 14:17:00 +02:00
Petr Skoda dd9b772bb6 add file browser support
closes #14
2011-10-08 13:25:55 +02:00
Petr Skoda 920fd2c6a4 add support for page types 2011-10-08 12:59:39 +02:00
Petr Skoda b962f03009 more refactoring 2011-10-08 12:55:04 +02:00
Petr Skoda 45573d5ad1 move book specific stuff to locallib.php 2011-10-08 12:35:59 +02:00
Petr Skoda 3f24450df2 fix php docs, abstract view and post actions 2011-10-08 12:33:28 +02:00
Petr Skoda e08764150a add missing extra caps 2011-10-08 12:23:08 +02:00
Petr Skoda b6931b14bd use png instead of legacy gif format
fixes #11
2011-10-08 11:58:15 +02:00
Petr Skoda 3325a1891f convert html import to new booktool plugin
fixes #5

AMOS BEGIN
 MOV [doimport,mod_book],[doimport,booktool_importhtml]
 MOV [import,mod_book],[import,booktool_importhtml]
 MOV [book:importhtml,mod_book],[importhtml:import,booktool_importhtml]
 MOV [importinfo,mod_book],[importinfo,booktool_importhtml]
 MOV [importing,mod_book],[importing,booktool_importhtml]
 MOV [importingchapters,mod_book],[importingchapters,booktool_importhtml]
 MOV [import_help,mod_book],[import_help,booktool_importhtml]
 MOV [maindirectory,mod_book],[maindirectory,booktool_importhtml]
 MOV [relinking,mod_book],[relinking,booktool_importhtml]
AMOS END
2011-10-08 11:41:13 +02:00
Petr Skoda 4bc75ecc3f convert imscp export to new booktool plugin
fixed #4

AMOS BEGIN
 MOV [book:exportimscp,mod_book],[exportimscp:export,booktool_exportimscp]
 MOV [generateimscp,mod_book],[generateimscp,booktool_exportimscp]
AMOS END
2011-10-08 11:17:00 +02:00
Petr Skoda 7927cab1b1 convert printing support to new booktool plugin
fixed #6

AMOS BEGIN
 MOV [pluginname,mod_book],[pluginname,booktool_print]
 MOV [printbook,mod_book],[printbook,booktool_print]
 MOV [printchapter,mod_book],[printchapter,booktool_print]
 MOV [printdate,mod_book],[printdate,booktool_print]
 MOV [printedby,mod_book],[printedby,booktool_print]
 MOV [book:print,mod_book],[print:print,booktool_print]
AMOS END
2011-10-08 10:59:32 +02:00
Petr Skoda 3c6239ee58 use plugin_supports for module resource type information
closes #10
2011-10-08 10:08:30 +02:00
Petr Skoda b2617f0b99 future versions of mod_book are going to require at least Moodle 2.1.0 2011-10-08 10:00:22 +02:00
Petr Skoda 389392486d remove deprecated enum info 2011-09-25 20:38:59 +02:00
Petr Skoda 61e36b9649 fix maturity info 2011-09-25 20:36:27 +02:00
Petr Skoda f6aa1830f1 copying more restore logic from glossary 2011-07-11 18:47:12 +02:00
Petr Skoda 252256fe3f use the same intro upgrade logic as the rest of modules 2011-07-11 18:02:43 +02:00
Tõnis Tartes 8c5ff185df CONTRIB-3023 basic 1.x restore support for 2.x 2011-07-11 17:52:32 +02:00
Petr Skoda 337b43a7f8 CONTRIB-2970 header printed too early
Credit goes to Sam Chaffee.
2011-06-27 11:28:17 +02:00
Petr Škoda 311d8d7277 Merge pull request #3 from mylescarrick/4b76ec61c07401bfa784cf1e62c622cad6cb1ce6
Pull request as at http://tracker.moodle.org/browse/CONTRIB-2916
2011-06-21 00:42:13 -07:00
Myles Carrick 4b76ec61c0 backup - fixed typo to correctly backup contentformat setting 2011-05-05 14:41:23 +10:00
Myles Carrick 49ed0a2697 MDL-26708 fix typo - custom titles 2011-04-28 14:40:04 +08:00
David Mudrák 33b8e0f06d Fixed missing 'throw' keyword 2011-04-24 14:37:21 +08:00
Petr Skoda 5aeca1e2ec translations are now maintained in AMOS 2011-03-21 10:09:36 +01:00
Petr Skoda 4bfe07d088 legacy files TODO 2011-03-20 19:16:10 +01:00
Petr Skoda 35b1833b2a bump up version 2011-03-20 11:34:23 +01:00
Petr Skoda 02f884216d fix file restore 2011-03-20 11:33:26 +01:00
Petr Skoda 1d5b62b76f book 2.0RC 2011-03-19 12:53:30 +01:00
Petr Skoda c194a4953c legacy is not used any more 2011-03-19 12:49:38 +01:00
Petr Skoda 06844f1322 fix whitespace 2011-03-19 12:46:24 +01:00
Petr Skoda ed89ac66fe CONTRIB-2805 fix incomplete book backup 2011-03-19 12:42:51 +01:00
Petr Skoda ed04f7c0bf add print popups 2011-02-14 09:03:04 +01:00
Petr Skoda 2d3a0d0f0f version bump 2011-02-08 23:18:53 +01:00
John Kelsh 8c554c2784 Fixing backup encode and restore decode rule names. 2011-02-07 14:32:02 +10:30
Petr Skoda bd0945240c more css cleanup 2011-01-26 13:15:33 +01:00
Petr Skoda 8cb50b2a87 CSS improvements 2011-01-26 12:55:40 +01:00
Petr Skoda 73491f5a6e CONTRIB-2723 let all frontpage users view and print books 2011-01-25 10:01:22 +01:00
Petr Skoda b0333d3cf1 new component info that helps with borked installs/upgrades 2011-01-23 15:22:40 +01:00
Petr Skoda ffe9d57ff4 tell ppl that outdate book can not be upgraded from 1.9->2.0 2011-01-23 15:22:20 +01:00
Petr Skoda 652517cedb more room for edit form
btw it is a sloppy hack to use admin layout just to get rid of the block on one side, ideally this should be hadnled by forms automatically!!
2011-01-23 12:44:59 +01:00
Petr Skoda 2890e4c1fb implement completion tracking 2011-01-16 23:15:56 +01:00
Petr Skoda 2e9dead56d bump version before snapshot 2011-01-16 23:03:02 +01:00
Petr Skoda 4cd51b08dd fix frankenstype git_string component 2011-01-16 23:02:31 +01:00
Petr Skoda ee952cbbb4 refactor chapter printing TOC 2011-01-16 23:01:05 +01:00
Petr Skoda b1a9b01ee2 refactor chapter title proccessing 2011-01-16 22:36:55 +01:00
Petr Skoda 97619eddbd add numbering default setting 2011-01-16 14:42:51 +01:00
Petr Skoda c5832d6b54 fix recent edit mode bug 2011-01-16 14:13:05 +01:00
Petr Skoda b52247a581 get rid of the table layout 2011-01-16 14:09:47 +01:00
Petr Skoda 2cdbd448b7 fix old style pix url 2011-01-16 14:03:54 +01:00
Petr Skoda 86f6bb2612 fix navigation links 2011-01-16 14:02:00 +01:00
Petr Skoda ad1c11bdfd move toc to fake block, remove toc width and add new mod settings 2011-01-16 13:46:13 +01:00
Petr Skoda 065f5c4c33 fix recent typo 2011-01-16 11:34:52 +01:00
Petr Skoda 56e7577e1d set page url 2011-01-16 11:31:11 +01:00
Petr Skoda 1cc316b762 use new frankenstyle for string components 2011-01-16 11:28:12 +01:00
Petr Skoda bc953600b3 improve coding style in book structure check 2011-01-16 11:22:32 +01:00
Petr Skoda 23b02c4fb1 improve performance when fixing book structure 2011-01-16 11:17:51 +01:00
Petr Skoda 459478b7f1 fix release info 2011-01-16 11:02:22 +01:00
Petr Skoda 1c4a973a1c updated readme 2011-01-16 11:01:41 +01:00
Petr Skoda 5dc5d03548 remove obsole disableprinting - use capabilities instead 2011-01-16 11:00:29 +01:00
Petr Skoda e2790e4bf7 improt conversion and other cleanup 2011-01-16 10:51:22 +01:00
Petr Skoda 7a395b898e conversion todo 2011-01-15 23:45:51 +01:00
Petr Skoda 3223060316 fix charset 2011-01-15 23:45:42 +01:00
Petr Skoda c60d3ab331 fix error detected by code inspeaction 2011-01-15 23:42:15 +01:00
Petr Skoda db4d90886f fix missing ) 2011-01-15 23:42:00 +01:00
Petr Skoda ad1e18e209 fix old style format_string and text + errors detected by code inspection 2011-01-15 23:41:36 +01:00
Petr Skoda 8e277fe5fc fix overriding of CSS 2011-01-15 23:41:10 +01:00
Petr Skoda 75b38e9864 completion todo 2011-01-15 22:34:40 +01:00
Petr Skoda 758f7dde80 move print and other functions to the settings block 2011-01-15 22:33:33 +01:00
Petr Skoda 9221a71122 fix case 2011-01-15 22:33:08 +01:00
Petr Skoda dc888a311c fix multilang suppport in chapter titles 2011-01-15 21:58:04 +01:00
Petr Skoda f6ca19aed0 locallib cleanup 2011-01-15 21:55:37 +01:00
Petr Skoda 608826922a fix extra height attribute 2011-01-15 21:51:38 +01:00
Petr Skoda 4171f20dbf refactor toc to locallib function 2011-01-15 21:46:45 +01:00
Petr Skoda 7c6c37466f update book index page 2011-01-15 21:28:43 +01:00
Petr Skoda dcf3a920d1 fixed lib.php typo 2011-01-15 16:42:29 +01:00
Petr Skoda 5572147bc1 standard gitignore 2011-01-15 12:52:36 +01:00
Petr Skoda 7c44a1a206 fixed release info and copyrights 2011-01-15 12:22:10 +01:00
Petr Skoda 8ecb96add3 CONTRIB-2154 add user outline 2011-01-15 11:44:02 +01:00
Petr Skoda 74b6860a78 CONTRIB-2656 fix disabling of printing 2011-01-15 11:31:34 +01:00
Petr Skoda 292a46eb1b fixed toc allignment 2011-01-02 21:20:12 +01:00
Petr Skoda 58aa4b5718 recover from previous error 2010-12-10 15:54:37 +01:00
Petr Skoda 22b8fa4dda fixed upgrade typo 2010-12-10 15:52:36 +01:00
Petr Skoda 5c0ff68d51 backup/restore support 2010-12-08 21:39:35 +01:00
Petr Skoda e6bf43cd0e b view.php param support 2010-12-08 21:21:35 +01:00
Petr Skoda f4e1849ed9 new file api support 2010-12-08 20:13:56 +01:00
Petr Skoda 6708d7d430 disable import for now 2010-12-08 19:02:11 +01:00
Petr Skoda 58eda86a66 improved coding style 2010-12-08 19:02:01 +01:00
Petr Skoda 210ed611a8 only print visible pages 2010-12-08 19:00:25 +01:00
Petr Skoda 661b9ea2e8 text formatting 2010-12-08 18:59:03 +01:00
Petr Skoda 8da51a1650 helps converted, import disabled for now 2010-12-08 18:52:50 +01:00
Petr Skoda 4f49e7caec cleaning up old help 2010-12-08 18:50:32 +01:00
Petr Skoda 989af7b328 minor file migration improvements 2010-12-08 18:49:32 +01:00
Petr Skoda be28c4b52a fixed intro upgrade 2010-12-08 18:46:40 +01:00
Petr Skoda 9d2fe17901 conversion 2010-12-08 18:10:21 +01:00
Petr Skoda f19d95175a more help cleanup 2010-12-08 17:33:56 +01:00
Petr Skoda bf9b62ea0a more conversion 2010-12-08 17:20:15 +01:00
Petr Skoda 0834c01692 new help 2010-12-08 17:20:04 +01:00
Petr Skoda 8708eb636f remove old course dir if empty 2010-12-08 17:09:16 +01:00
Petr Skoda 08440ca958 newc capability coding style 2010-12-08 17:08:50 +01:00
Petr Skoda 3eccc86133 adding pluginname string 2010-12-08 17:08:28 +01:00
Petr Skoda bd4eba6716 fixed upgrade path 2010-12-08 17:01:48 +01:00
Petr Skoda 2c1e98e663 conversion to 2.0 2010-12-08 16:45:09 +01:00
Petr Skoda 3c5e59cbac conversion to 2.0 2010-12-08 15:54:17 +01:00
Petr Skoda e355240d59 more upgrades 2010-12-08 15:41:55 +01:00
Petr Skoda 73861c80d5 missing upgrade step info 2010-12-08 15:30:51 +01:00
Petr Skoda f76a94d192 coursefiles not used any more 2010-12-08 15:29:28 +01:00
Petr Skoda e6e946c1d0 licenses and more upgrade 2010-12-08 15:28:32 +01:00
Petr Skoda 0f0ba61167 first part of upgrade 2010-12-08 14:56:55 +01:00
Petr Skoda 28d16c16e3 removing cvs tags and closing php tags 2010-12-08 14:39:43 +01:00
Petr Skoda 7bc1a381cc fixing invalid icon name 2010-12-08 14:28:48 +01:00
Petr Skoda 3543758a9f removing obsolete install files 2010-12-08 14:27:38 +01:00
Petr Skoda b0d99b9384 moving all icons to new locations 2010-12-08 14:27:12 +01:00
Petr Skoda 7d7adc4d3a updated readme 2010-12-08 13:39:46 +01:00
Petr Skoda 1148f9d40e renaming lang dirs 2010-12-08 13:35:08 +01:00
Petr Skoda 31859517a3 renaming lang pack 2010-09-01 12:37:24 +02:00
Petr Skoda 0aff11c5ae cvsimport 2010-08-01 13:10:36 +00:00
Petr Skoda f6140b0751 readme for github 2010-08-01 15:29:02 +02:00
Petr Skoda c008e4aefc getting rid of pesky cvs Id mess 2010-08-01 15:28:51 +02:00
Petr Skoda 8d623d147b CONTRIB-2232 oops, merging all changes from 1.9.x first 2010-08-01 13:10:36 +00:00
Petr Skoda 1b7aed36ff CONTRIB-2232 preparations for git migration - line ending fixes 2010-08-01 12:50:22 +00:00
Petr Skoda 9da8ea22e6 CONTRIB-2232 preparations for git migration 2010-08-01 12:15:46 +00:00
Petr Skoda b58b82c30d fixed regression reported by Miroslav FIkar 2008-08-17 13:04:56 +00:00
Petr Skoda c6d2eda2fb book v1.5beta compatible with 1.9.1 or later, not 2.0dev 2008-08-13 23:21:13 +00:00
Eloy Lafuente 817e3a800e Fix A tag regex searching in book. MDL-15842 ; merged from 19_STABLE 2008-07-26 22:58:27 +00:00
Petr Skoda 7ac78b9277 CONTRIB-500 fixed regression 2008-07-23 14:03:49 +00:00
Petr Skoda bc17b83556 CONTRIB-360 missing lang string for ims packages, credit goes to Ralf Hilgenstock 2008-07-22 15:16:26 +00:00
Petr Skoda 2006381428 CONTRIB-68 missing lang string for ims packages 2008-07-22 15:13:29 +00:00
Petr Skoda 54cdee377a CONTRIB-22 removed outdated installation instructions 2008-07-22 14:59:13 +00:00
Petr Skoda 4b3b18bfcc CONTRIB-22 removed outdated installation instructions 2008-07-22 14:56:49 +00:00
Petr Skoda 4c39c4ae24 CONTRIB-500 causes scales to go *really* slow, use new API credit goes to Alan Trick 2008-07-22 14:40:38 +00:00
Petr Skoda dbdb0676a7 CONTRIB-601 fix groups on book modedit page 2008-07-22 14:36:37 +00:00
Petr Skoda e472fa764b CONTRIB-417 fixed include problem on some server - credit goes to Andreas Grupp 2008-07-22 14:31:02 +00:00
Petr Skoda 71d78d24d5 CONTRIB-417 fixed include problem on some server - credit goes to Andreas Grupp 2008-07-22 14:30:07 +00:00
Dan Poltawski 50c53e2049 CONTRIB-350 - Update book module to use new navigation structure & admin
settings in 1.9
2008-03-25 20:19:49 +00:00
Eloy Lafuente ee7758e565 Second pass. Contrib. Some more default comments are out. MDL-11385 2007-09-24 22:26:30 +00:00
Eloy Lafuente dfb3876a09 First pass. Deleting some default comments. MDL-11385
(plus minor change in NOT NULL default, must not be explicit)
2007-09-24 19:15:38 +00:00
Petr Skoda 7bf645e7e8 incorrect import src fields type fixed 2007-09-24 08:47:34 +00:00
Eloy Lafuente 727fdf1bc5 And h2-ing it 2007-08-27 14:15:43 +00:00
Eloy Lafuente 8d8735e5c6 Fixing some lists and ampersands. 2007-08-27 14:13:01 +00:00
Andrea Bicciolo 51877fd889 Traduzione di Claudio Maggi 2007-07-03 11:42:29 +00:00
Eloy Lafuente a4e28b9b9a Moving the "Export to IMS CP" option from "export" to a new icon. Some
people is having problems locating / understanding it.

Merged from MOODLE_18_STABLE
2007-06-17 10:41:25 +00:00
Petr Skoda dab784a34e book should be now compatible with 1.8 2007-05-20 06:00:26 +00:00
Eloy Lafuente c54440410b Send courseid to print_textarea() just because we know it.
(wasn't being properly guessed sometimes)

Merged from MOODLE_18_STABLE
2007-04-24 19:20:52 +00:00
Petr Skoda 5db9c35d01 book - xml db merged from 17; removing utf migration code 2007-04-06 17:13:31 +00:00
Andrea Bicciolo 2d7c8ee038 Traduzione di Claudio Maggi 2007-02-16 18:47:46 +00:00
Eloy Lafuente fc9479b800 Adding IMS-CP export functionality to the book module.
Metadata interface coming soon.
2007-02-11 12:18:23 +00:00
Petr Skoda 2ced61ebda fixed === comparison that is not compatible with latest adodb 2006-11-21 19:26:36 +00:00
Petr Skoda 0d717a5232 fixed incorrect === in Book mod 2006-11-07 18:32:05 +00:00
Gustav Delius 1f17c197e9 Fixed typo, converting <p> into </p> 2006-10-16 08:05:26 +00:00
Petr Skoda d034a70d6f fixed dates of releases 2006-04-24 19:41:14 +00:00
Petr Skoda e4a0993bde fixed log action inserts 2006-04-24 19:35:48 +00:00
Petr Skoda d9b10a5a91 fixed typo 2006-03-29 06:21:56 +00:00
Petr Skoda 02039379f4 == 1.3alpha - 2003/03/12===
* compatible with 1.6dev only, use previous version for 1.5.x
    * unicode upgrade supported - not much tested
    * backup fixes - from Penny Leach, thanks!
    * all languages converted to utf-8
    * moved to contrib/book_16 directory
    * added proper content encoding conversion during import
2006-03-12 18:39:56 +00:00
9070 changed files with 1176403 additions and 848741 deletions
+5
View File
@@ -25,3 +25,8 @@ CVS
/.project
/.buildpath
/.cache
phpunit.xml
# Composer support - only composer.json is to be in git, the rest is installed in each checkout.
composer.phar
composer.lock
/vendor/
+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
+20 -12
View File
@@ -100,6 +100,7 @@
} else {
uninstall_plugin('block', $block->name);
$a = new stdClass();
$a->block = $strblockname;
$a->directory = $CFG->dirroot.'/blocks/'.$block->name;
notice(get_string('blockdeletefiles', '', $a), 'blocks.php');
@@ -130,12 +131,25 @@
$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;
@@ -150,7 +164,6 @@
$incompatible[] = $block;
continue;
}
$strblockname = get_string('pluginname', 'block_'.$blockname);
}
$delete = '<a href="blocks.php?delete='.$blockid.'&amp;sesskey='.sesskey().'">'.$strdelete.'</a>';
@@ -188,10 +201,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!
}
@@ -206,10 +219,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(
@@ -221,12 +234,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();
+160
View File
@@ -0,0 +1,160 @@
<?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 is used to display a categories sub categories, external pages, and settings.
*
* @since 2.3
* @package admin
* @copyright 2011 Sam Hemelryk
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$category = required_param('category', PARAM_SAFEDIR);
$return = optional_param('return','', PARAM_ALPHA);
$adminediting = optional_param('adminedit', -1, PARAM_BOOL);
/// no guest autologin
require_login(0, false);
$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');
$PAGE->navigation->clear_cache();
$adminroot = admin_get_root(); // need all settings
$settingspage = $adminroot->locate($category, true);
if (empty($settingspage) or !($settingspage instanceof admin_category)) {
print_error('categoryerror', 'admin', "$CFG->wwwroot/$CFG->admin/");
}
if (!($settingspage->check_access())) {
print_error('accessdenied', 'admin');
}
$statusmsg = '';
$errormsg = '';
if ($data = data_submitted() and confirm_sesskey()) {
if (admin_write_settings($data)) {
$statusmsg = get_string('changessaved');
}
if (empty($adminroot->errors)) {
switch ($return) {
case 'site': redirect("$CFG->wwwroot/");
case 'admin': redirect("$CFG->wwwroot/$CFG->admin/");
}
} else {
$errormsg = get_string('errorwithsettings', 'admin');
$firsterror = reset($adminroot->errors);
}
$adminroot = admin_get_root(true); //reload tree
$settingspage = $adminroot->locate($category, true);
}
if ($PAGE->user_allowed_editing() && $adminediting != -1) {
$USER->editing = $adminediting;
}
if ($PAGE->user_allowed_editing()) {
$url = clone($PAGE->url);
if ($PAGE->user_is_editing()) {
$caption = get_string('blockseditoff');
$url->param('adminedit', 'off');
} else {
$caption = get_string('blocksediton');
$url->param('adminedit', 'on');
}
$buttons = $OUTPUT->single_button($url, $caption, 'get');
}
$savebutton = false;
$outputhtml = '';
foreach ($settingspage->children as $childpage) {
if ($childpage->is_hidden()) {
continue;
}
if ($childpage instanceof admin_externalpage) {
$outputhtml .= $OUTPUT->heading(html_writer::link($childpage->url, $childpage->visiblename), 3);
} else if ($childpage instanceof admin_settingpage) {
$outputhtml .= $OUTPUT->heading(html_writer::link(new moodle_url('/'.$CFG->admin.'/settings.php', array('section' => $childpage->name)), $childpage->visiblename), 3);
} else if ($childpage instanceof admin_category) {
$outputhtml .= $OUTPUT->heading(html_writer::link(new moodle_url('/'.$CFG->admin.'/category.php', array('category' => $childpage->name)), get_string('admincategory', 'admin', $childpage->visiblename)), 3);
} else {
continue;
}
if (!empty($childpage->settings)) {
$outputhtml .= html_writer::start_tag('fieldset', array('class' => 'adminsettings'));
foreach ($childpage->settings as $setting) {
if (empty($setting->nosave)) {
$savebutton = true;
}
$fullname = $setting->get_full_name();
if (array_key_exists($fullname, $adminroot->errors)) {
$data = $adminroot->errors[$fullname]->data;
} else {
$data = $setting->get_setting();
}
$outputhtml .= html_writer::tag('div', '<!-- -->', array('class' => 'clearer'));
$outputhtml .= $setting->output_html($data);
}
$outputhtml .= html_writer::end_tag('fieldset');
}
}
if ($savebutton) {
$outputhtml .= html_writer::start_tag('div', array('class' => 'form-buttons'));
$outputhtml .= html_writer::empty_tag('input', array('class' => 'form-submit', 'type' => 'submit', 'value' => get_string('savechanges','admin')));
$outputhtml .= html_writer::end_tag('div');
}
$visiblepathtosection = array_reverse($settingspage->visiblepath);
$PAGE->set_title("$SITE->shortname: " . implode(": ",$visiblepathtosection));
$PAGE->set_heading($SITE->fullname);
$PAGE->set_button($buttons);
echo $OUTPUT->header();
if ($errormsg !== '') {
echo $OUTPUT->notification($errormsg);
} else if ($statusmsg !== '') {
echo $OUTPUT->notification($statusmsg, 'notifysuccess');
}
$path = array_reverse($settingspage->visiblepath);
if (is_array($path)) {
$visiblename = join(' / ', $path);
} else {
$visiblename = $path;
}
echo $OUTPUT->heading(get_string('admincategory', 'admin', $visiblename), 2);
echo html_writer::start_tag('form', array('action' => '', 'method' => 'post', 'id' => 'adminsettings'));
echo html_writer::start_tag('div');
echo html_writer::input_hidden_params(new moodle_url($PAGE->url, array('sesskey' => sesskey(), 'return' => $return)));
echo html_writer::end_tag('div');
echo html_writer::start_tag('fieldset');
echo html_writer::tag('div', '<!-- -->', array('class' => 'clearer'));
echo $outputhtml;
echo html_writer::end_tag('fieldset');
echo html_writer::end_tag('form');
echo $OUTPUT->footer();
+31 -26
View File
@@ -78,6 +78,16 @@ Example:
"; //TODO: localize, mark as needed in install - to be translated later when everything is finished
// distro specific customisation
$distrolibfile = dirname(dirname(dirname(__FILE__))).'/install/distrolib.php';
$distro = null;
if (file_exists($distrolibfile)) {
require_once($distrolibfile);
if (function_exists('distro_get_config')) {
$distro = distro_get_config();
}
}
// Nothing to do if config.php exists
$configfile = dirname(dirname(dirname(__FILE__))).'/config.php';
if (file_exists($configfile)) {
@@ -99,7 +109,7 @@ if (file_exists($configfile)) {
$olddir = getcwd();
// change directory so that includes bellow work properly
// change directory so that includes below work properly
chdir(dirname($_SERVER['argv'][0]));
// Servers should define a default timezone in php.ini, but if they don't then make sure something is defined.
@@ -117,6 +127,9 @@ 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 caching.. just in case.
define('CACHE_DISABLE_ALL', true);
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.3.2") < 0) {
$phpversion = phpversion();
@@ -154,6 +167,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;
@@ -180,14 +194,14 @@ if (empty($databases)) {
// now get cli options
list($options, $unrecognized) = cli_get_params(
array(
'chmod' => '2777',
'chmod' => isset($distro->directorypermissions) ? sprintf('%04o',$distro->directorypermissions) : '2777', // let distros set dir permissions
'lang' => $CFG->lang,
'wwwroot' => '',
'dataroot' => str_replace('\\', '/', dirname(dirname(dirname(dirname(__FILE__)))).'/moodledata'),
'dbtype' => $defaultdb,
'dbhost' => 'localhost',
'dataroot' => empty($distro->dataroot) ? str_replace('\\', '/', dirname(dirname(dirname(dirname(__FILE__)))).'/moodledata'): $distro->dataroot, // initialised later after including libs or by distro
'dbtype' => empty($distro->dbtype) ? $defaultdb : $distro->dbtype, // let distro skip dbtype selection
'dbhost' => empty($distro->dbhost) ? 'localhost' : $distro->dbhost, // let distros set dbhost
'dbname' => 'moodle',
'dbuser' => 'root',
'dbuser' => empty($distro->dbuser) ? 'root' : $distro->dbuser, // let distros set dbuser
'dbpass' => '',
'dbsocket' => false,
'prefix' => 'mdl_',
@@ -230,18 +244,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";
@@ -327,12 +331,7 @@ $CFG->httpswwwroot = $CFG->wwwroot;
//We need dataroot before lang download
$dataroot = clean_param($options['dataroot'], PARAM_PATH);
if ($dataroot !== $options['dataroot']) {
$a = (object)array('option' => 'dataroot', 'value' => $options['dataroot']);
cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
}
$CFG->dataroot = $dataroot;
$CFG->dataroot = $options['dataroot'];
if ($interactive) {
cli_separator();
$i=0;
@@ -420,7 +419,8 @@ if (isset($maturity)) {
exit(1);
}
} else {
cli_error(get_string('maturitycorewarning', 'admin'));
cli_problem(get_string('maturitycorewarning', 'admin', $maturitylevel));
cli_error(get_string('maturityallowunstable', 'admin'));
}
}
}
@@ -523,6 +523,9 @@ if ($interactive) {
}
$CFG->dbpass = cli_input($prompt, $options['dbpass']);
if (function_exists('distro_pre_create_db')) { // Hook for distros needing to do something before DB creation
$distro = distro_pre_create_db($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix, array('dbpersist'=>0, 'dbsocket'=>$options['dbsocket']), $distro);
}
$hint_database = install_db_validate($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix, array('dbpersist'=>0, 'dbsocket'=>$options['dbsocket']));
} while ($hint_database !== '');
@@ -669,7 +672,9 @@ if (!$envstatus) {
// Test plugin dependencies.
require_once($CFG->libdir . '/pluginlib.php');
if (!plugin_manager::instance()->all_plugins_ok($version)) {
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
cli_problem(get_string('pluginscheckfailed', 'admin', array('pluginslist' => implode(', ', array_unique($failed)))));
cli_error(get_string('pluginschecktodo', 'admin'));
}
+3 -1
View File
@@ -161,7 +161,9 @@ if (!$envstatus) {
// Test plugin dependencies.
require_once($CFG->libdir . '/pluginlib.php');
if (!plugin_manager::instance()->all_plugins_ok($version)) {
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
cli_problem(get_string('pluginscheckfailed', 'admin', array('pluginslist' => implode(', ', array_unique($failed)))));
cli_error(get_string('pluginschecktodo', 'admin'));
}
+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;
}
+73 -8
View File
@@ -34,8 +34,8 @@ if ($DB->get_dbfamily() !== 'mysql') {
}
// now get cli options
list($options, $unrecognized) = cli_get_params(array('help'=>false, 'list'=>false, 'engine'=>false),
array('h'=>'help', 'l'=>'list'));
list($options, $unrecognized) = cli_get_params(array('help'=>false, 'list'=>false, 'engine'=>false, 'available'=>false),
array('h'=>'help', 'l'=>'list', 'a'=>'available'));
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
@@ -52,6 +52,7 @@ and does not support transactions.
Options:
--engine=ENGINE Convert MySQL tables to different engine
-l, --list Show table information
-a, --available Show list of available engines
-h, --help Print out this help
Example:
@@ -59,7 +60,11 @@ Example:
";
if (!empty($options['engine'])) {
$engines = mysql_get_engines();
$engine = clean_param($options['engine'], PARAM_ALPHA);
if (!isset($engines[strtoupper($engine)])) {
cli_error("Error: engine '$engine' is not available on this server!");
}
echo "Converting tables to '$engine' for $CFG->wwwroot:\n";
$prefix = $DB->get_prefix();
@@ -68,20 +73,34 @@ if (!empty($options['engine'])) {
$rs = $DB->get_recordset_sql($sql);
$converted = 0;
$skipped = 0;
$errors = 0;
foreach ($rs as $table) {
if ($table->engine === $engine) {
echo str_pad($table->name, 40). " - NO CONVERSION NEEDED\n";
if (strtoupper($table->engine) === strtoupper($engine)) {
$newengine = mysql_get_table_engine($table->name);
echo str_pad($table->name, 40). " - NO CONVERSION NEEDED ($newengine)\n";
$skipped++;
continue;
}
echo str_pad($table->name, 40). " - ";
$DB->change_database_structure("ALTER TABLE {$table->name} TYPE = $engine");
echo "DONE\n";
$converted++;
try {
$DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
$newengine = mysql_get_table_engine($table->name);
if (strtoupper($newengine) !== strtoupper($engine)) {
echo "ERROR ($newengine)\n";
$errors++;
continue;
}
echo "DONE ($newengine)\n";
$converted++;
} catch (moodle_exception $e) {
echo $e->getMessage()."\n";
$errors++;
continue;
}
}
$rs->close();
echo "Converted: $converted, skipped: $skipped\n";
echo "Converted: $converted, skipped: $skipped, errors: $errors\n";
exit(0); // success
} else if (!empty($options['list'])) {
@@ -109,7 +128,53 @@ if (!empty($options['engine'])) {
}
exit(0); // success
} else if (!empty($options['available'])) {
echo "List of available MySQL engines for $CFG->wwwroot:\n";
$engines = mysql_get_engines();
foreach ($engines as $engine) {
echo " $engine\n";
}
die;
} else {
echo $help;
die;
}
// ========== Some functions ==============
function mysql_get_engines() {
global $DB;
$sql = "SHOW Engines";
$rs = $DB->get_recordset_sql($sql);
$engines = array();
foreach ($rs as $engine) {
if (strtoupper($engine->support) !== 'YES' and strtoupper($engine->support) !== 'DEFAULT') {
continue;
}
$engines[strtoupper($engine->engine)] = $engine->engine;
if (strtoupper($engine->support) === 'DEFAULT') {
$engines[strtoupper($engine->engine)] .= ' (default)';
}
}
$rs->close();
return $engines;
}
function mysql_get_table_engine($tablename) {
global $DB;
$engine = null;
$sql = "SHOW TABLE STATUS WHERE Name = '$tablename'"; // no special chars expected here
$rs = $DB->get_recordset_sql($sql);
if ($rs->valid()) {
$record = $rs->current();
$engine = $record->engine;
}
$rs->close();
return $engine;
}
+12 -6
View File
@@ -82,7 +82,7 @@ if (empty($CFG->version)) {
cli_error(get_string('missingconfigversion', 'debug'));
}
require("$CFG->dirroot/version.php"); // defines $version, $release and $maturity
require("$CFG->dirroot/version.php"); // defines $version, $release, $branch and $maturity
$CFG->target_release = $release; // used during installation and upgrades
if ($version < $CFG->version) {
@@ -92,6 +92,10 @@ if ($version < $CFG->version) {
$oldversion = "$CFG->release ($CFG->version)";
$newversion = "$release ($version)";
if (!moodle_needs_upgrading()) {
cli_error(get_string('cliupgradenoneed', 'core_admin', $newversion), 0);
}
// Test environment first.
list($envstatus, $environment_results) = check_moodle_environment(normalize_version($release), ENV_SELECT_RELEASE);
if (!$envstatus) {
@@ -105,7 +109,9 @@ if (!$envstatus) {
}
// Test plugin dependencies.
if (!plugin_manager::instance()->all_plugins_ok($version)) {
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
cli_problem(get_string('pluginscheckfailed', 'admin', array('pluginslist' => implode(', ', array_unique($failed)))));
cli_error(get_string('pluginschecktodo', 'admin'));
}
@@ -128,7 +134,8 @@ if (isset($maturity)) {
echo get_string('morehelp') . ': ' . get_docs_url('admin/versions') . PHP_EOL;
cli_separator();
} else {
cli_error(get_string('maturitycorewarning', 'admin', $maturitylevel));
cli_problem(get_string('maturitycorewarning', 'admin', $maturitylevel));
cli_error(get_string('maturityallowunstable', 'admin'));
}
}
}
@@ -146,14 +153,13 @@ if ($version > $CFG->version) {
upgrade_core($version, true);
}
set_config('release', $release);
set_config('branch', $branch);
// unconditionally upgrade
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);
+131
View File
@@ -0,0 +1,131 @@
<?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'));
$allplugins = plugin_manager::instance()->get_plugins();
$formatplugins = $allplugins['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);
+3
View File
@@ -81,6 +81,9 @@ if (check_browser_version('MSIE')) {
@header('Content-Type: text/plain; charset=utf-8');
}
// we do not want html markup in emulated CLI
@ini_set('html_errors', 'off');
// execute the cron
cron_run();
+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;
}
+49 -10
View File
@@ -23,17 +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);
@@ -93,25 +97,60 @@ 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!!
uninstall_plugin('enrol', $enrol);
$syscontext->mark_dirty(); // resets all enrol caches
} 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.
$a = new stdClass();
$a->plugin = $strplugin;
$a->directory = "$CFG->dirroot/enrol/$enrol";
echo $OUTPUT->notification(get_string('uninstalldeletefiles', 'enrol', $a), 'notifysuccess');
+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();
+235 -15
View File
@@ -214,11 +214,7 @@
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.0.25">
<FEEDBACK>
<ON_ERROR message="mysql416required" />
</FEEDBACK>
</VENDOR>
<VENDOR name="mysql" version="5.0.25" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
@@ -335,11 +331,7 @@
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.0.25">
<FEEDBACK>
<ON_ERROR message="mysql416required" />
</FEEDBACK>
</VENDOR>
<VENDOR name="mysql" version="5.0.25" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
@@ -449,11 +441,7 @@
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.0.25">
<FEEDBACK>
<ON_ERROR message="mysql416required" />
</FEEDBACK>
</VENDOR>
<VENDOR name="mysql" version="5.0.25" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
@@ -556,4 +544,236 @@
</PHP_SETTING>
</PHP_SETTINGS>
</MOODLE>
<MOODLE version="2.3" 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_CHECK 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_CHECK 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_CHECK message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_CHECK 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.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_CHECK 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_CHECK 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_CHECK message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_CHECK 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>
</COMPATIBILITY_MATRIX>
+8 -6
View File
@@ -34,11 +34,11 @@
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->libdir . '/adminlib.php');
$action = optional_param('action', '', PARAM_ACTION);
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
$filterpath = optional_param('filterpath', '', PARAM_PATH);
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";
@@ -68,7 +68,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);
@@ -242,19 +242,20 @@ 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->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;
}
@@ -263,6 +264,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)
// Apply to strings.
$select = new single_select(filters_action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, $applytostrings, null, 'applyto' . basename($filter));
$select->set_label(get_string('applyto', 'filters'), array('class' => 'accesshide'));
$select->disabled = $filterinfo->active == TEXTFILTER_DISABLED;
$row[] = $OUTPUT->render($select);
+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;
+147 -28
View File
@@ -44,17 +44,13 @@ if (!function_exists('iconv')) {
echo 'Moodle requires the iconv PHP extension. Please install or enable the iconv extension.';
die();
}
if (iconv('UTF-8', 'UTF-8//IGNORE', 'abc') !== 'abc') {
// known to be broken in mid-2011 MAMP installations
echo 'Broken iconv PHP extension detected, installation/upgrade can not continue.';
die();
}
define('NO_OUTPUT_BUFFERING', 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
require_once($CFG->libdir.'/pluginlib.php'); // available updates notifications
$id = optional_param('id', '', PARAM_TEXT);
$confirmupgrade = optional_param('confirmupgrade', 0, PARAM_BOOL);
@@ -62,6 +58,7 @@ $confirmrelease = optional_param('confirmrelease', 0, PARAM_BOOL);
$confirmplugins = optional_param('confirmplugincheck', 0, PARAM_BOOL);
$showallplugins = optional_param('showallplugins', 0, PARAM_BOOL);
$agreelicense = optional_param('agreelicense', 0, PARAM_BOOL);
$fetchupdates = optional_param('fetchupdates', 0, PARAM_BOOL);
// Check some PHP server settings
@@ -93,25 +90,20 @@ if (!isset($CFG->release)) {
if (!isset($CFG->version)) {
$CFG->version = '';
}
if (!isset($CFG->branch)) {
$CFG->branch = '';
}
$version = null;
$release = null;
require("$CFG->dirroot/version.php"); // defines $version, $release and $maturity
$branch = null;
require("$CFG->dirroot/version.php"); // defines $version, $release, $branch and $maturity
$CFG->target_release = $release; // used during installation and upgrades
if (!$version or !$release) {
print_error('withoutversion', 'debug'); // without version, stop
}
if (!isset($maturity)) {
// Fallback for now. Should probably be removed in the future.
$maturity = MATURITY_STABLE;
}
// 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);
@@ -151,6 +143,20 @@ if (!core_tables_exist()) {
die();
}
// check plugin dependencies
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
$PAGE->navbar->add(get_string('pluginscheck', 'admin'));
$PAGE->set_title($strinstallation);
$PAGE->set_heading($strinstallation . ' - Moodle ' . $CFG->target_release);
$output = $PAGE->get_renderer('core', 'admin');
$url = new moodle_url('/admin/index.php', array('agreelicense' => 1, 'confirmrelease' => 1, 'lang' => $CFG->lang));
echo $output->unsatisfied_dependencies_page($version, $failed, $url);
die();
}
unset($failed);
//TODO: add a page with list of non-standard plugins here
$strdatabasesetup = get_string('databasesetup');
@@ -179,7 +185,7 @@ 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');
@@ -187,10 +193,21 @@ if (empty($CFG->version)) {
if ($version > $CFG->version) { // upgrade
purge_all_caches();
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
if (upgrade_stale_php_files_present()) {
$PAGE->set_title($stradministration);
$PAGE->set_cacheable(false);
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_stale_php_files_page();
die();
}
if (empty($confirmupgrade)) {
$a = new stdClass();
$a->oldversion = "$CFG->release ($CFG->version)";
$a->newversion = "$release ($version)";
$strdatabasechecking = get_string('databasechecking', '', $a);
@@ -225,9 +242,40 @@ if ($version > $CFG->version) { // upgrade
$PAGE->set_heading($strplugincheck);
$PAGE->set_cacheable(false);
$reloadurl = new moodle_url('/admin/index.php', array('confirmupgrade' => 1, 'confirmrelease' => 1));
// check plugin dependencies first
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
$output = $PAGE->get_renderer('core', 'admin');
echo $output->unsatisfied_dependencies_page($version, $failed, $reloadurl);
die();
}
unset($failed);
if ($fetchupdates) {
// no sesskey support guaranteed here
if (empty($CFG->disableupdatenotifications)) {
available_update_checker::instance()->fetch();
}
redirect($reloadurl);
}
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_plugin_check_page(plugin_manager::instance(), $version, $showallplugins,
new moodle_url('/admin/index.php', array('confirmupgrade' => 1, 'confirmrelease' => 1)),
$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)));
die();
@@ -245,6 +293,10 @@ if ($release <> $CFG->release) { // Update the release version
set_config('release', $release);
}
if ($branch <> $CFG->branch) { // Update the branch
set_config('branch', $branch);
}
if (moodle_needs_upgrading()) {
if (!$PAGE->headerprinted) {
// means core upgrade or installation was not already done
@@ -258,9 +310,37 @@ if (moodle_needs_upgrading()) {
$PAGE->set_heading($strplugincheck);
$PAGE->set_cacheable(false);
if ($fetchupdates) {
// no sesskey support guaranteed here
available_update_checker::instance()->fetch();
redirect($PAGE->url);
}
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_plugin_check_page(plugin_manager::instance(), $version, $showallplugins,
new moodle_url('/admin/index.php'),
$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)) {
echo $output->unsatisfied_dependencies_page($version, $failed, $PAGE->url);
die();
}
unset($failed);
// dependencies check passed, let's rock!
echo $output->upgrade_plugin_check_page(plugin_manager::instance(), available_update_checker::instance(),
$version, $showallplugins,
new moodle_url($PAGE->url),
new moodle_url('/admin/index.php', array('confirmplugincheck'=>1)));
die();
}
@@ -297,8 +377,13 @@ if (during_initial_install()) {
}
}
// at this stage there can be only one admin - users may change username, so do not rely on that
$adminuser = get_complete_user_data('id', $CFG->siteadmins);
// 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));
if ($adminuser->password === 'adminsetuppending') {
// prevent installation hijacking
@@ -319,13 +404,9 @@ if (during_initial_install()) {
upgrade_finished('upgradesettings.php');
}
// Turn xmlstrictheaders back on now.
$CFG->xmlstrictheaders = $origxmlstrictheaders;
unset($origxmlstrictheaders);
// 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
@@ -363,7 +444,45 @@ $cronoverdue = ($lastcron < time() - 3600 * 24);
$dbproblems = $DB->diagnose();
$maintenancemode = !empty($CFG->maintenance_enabled);
// Available updates for Moodle core
$updateschecker = available_update_checker::instance();
$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€');
//check if the site is registered on Moodle.org
$registered = $DB->count_records('registration_hubs', array('huburl' => HUB_MOODLEORGHUBURL, 'confirmed' => 1));
admin_externalpage_setup('adminnotifications');
if ($fetchupdates) {
require_sesskey();
$updateschecker->fetch();
redirect($PAGE->url);
}
$output = $PAGE->get_renderer('core', 'admin');
echo $output->admin_notifications_page($maturity, $insecuredataroot, $errorsdisplayed,
$cronoverdue, $dbproblems, $maintenancemode);
$cronoverdue, $dbproblems, $maintenancemode, $availableupdates, $availableupdatesfetch, $buggyiconvnomb,
$registered);
+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);
////////////////////////////////////////////////////////////////////////////////
+33 -5
View File
@@ -29,11 +29,15 @@ 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);
$enable = optional_param('enable', 0, PARAM_INT);
$uninstall = optional_param('uninstall', 0, PARAM_INT);
$confirm = optional_param('confirm', false, PARAM_BOOL);
$headingtitle = get_string('managemessageoutputs', 'message');
if (!empty($disable) && confirm_sesskey()) {
if (!$processor = $DB->get_record('message_processors', array('id'=>$disable))) {
@@ -42,19 +46,43 @@ if (!empty($disable) && confirm_sesskey()) {
$DB->set_field('message_processors', 'enabled', '0', array('id'=>$processor->id)); // Disable output
}
if (!empty($enable) && confirm_sesskey() ) {
if (!empty($enable) && confirm_sesskey()) {
if (!$processor = $DB->get_record('message_processors', array('id'=>$enable))) {
print_error('outputdoesnotexist', 'message');
}
$DB->set_field('message_processors', 'enabled', '1', array('id'=>$processor->id)); // Enable output
}
if ($disable || $enable) {
if (!empty($uninstall) && confirm_sesskey()) {
echo $OUTPUT->header();
echo $OUTPUT->heading($headingtitle);
if (!$processor = $DB->get_record('message_processors', array('id'=>$uninstall))) {
print_error('outputdoesnotexist', 'message');
}
$processorname = get_string('pluginname', 'message_'.$processor->name);
if (!$confirm) {
echo $OUTPUT->confirm(get_string('processordeleteconfirm', 'message', $processorname), 'message.php?uninstall='.$processor->id.'&confirm=1', 'message.php');
echo $OUTPUT->footer();
exit;
} else {
message_processor_uninstall($processor->name);
$a = new stdClass();
$a->processor = $processorname;
$a->directory = $CFG->dirroot.'/message/output/'.$processor->name;
notice(get_string('processordeletefiles', 'message', $a), 'message.php');
}
}
if ($disable || $enable || $uninstall) {
$url = new moodle_url('message.php');
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');
@@ -65,6 +93,6 @@ $messageoutputs = $renderer->manage_messageoutputs($processors);
// Display the page
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('managemessageoutputs', 'message'));
echo $OUTPUT->heading($headingtitle);
echo $messageoutputs;
echo $OUTPUT->footer();
+6 -5
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();
@@ -103,7 +103,7 @@ if ($form = data_submitted() and confirm_sesskey()) {
$usernames = explode(',', $form->username);
foreach ($usernames as $username) {
$username = trim(moodle_strtolower($username));
$username = trim(textlib::strtolower($username));
if (!empty($username)) {
if (mnet_update_sso_access_control($username, $form->mnet_host_id, $form->accessctrl)) {
if ($form->accessctrl == 'allow') {
@@ -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();
+1 -1
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");
+25 -16
View File
@@ -38,9 +38,10 @@ class mnet_simple_host_form extends moodleform {
$mform = $this->_form;
$mform->addElement('text', 'wwwroot', get_string('hostname', 'mnet'));
$mform->addElement('text', 'wwwroot', get_string('hostname', 'mnet'), array('maxlength' => 255, 'size' => 50));
$mform->setType('wwwroot', PARAM_URL);
$mform->addRule('wwwroot', null, 'required', null, 'client');
$mform->addRule('wwwroot', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$mform->addElement('select', 'applicationid', get_string('applicationtype', 'mnet'),
$DB->get_records_menu('mnet_application', array(), 'id,display_name'));
@@ -49,7 +50,7 @@ class mnet_simple_host_form extends moodleform {
$this->add_action_buttons(false, get_string('addhost', 'mnet'));
}
function validation($data) {
function validation($data, $files) {
global $DB;
$wwwroot = $data['wwwroot'];
@@ -81,11 +82,13 @@ class mnet_review_host_form extends moodleform {
$mform->addElement('hidden', 'applicationid');
$mform->addElement('hidden', 'oldpublickey');
$mform->addElement('text', 'name', get_string('site'));
$mform->addElement('text', 'name', get_string('site'), array('maxlength' => 80, 'size' => 50));
$mform->setType('name', PARAM_NOTAGS);
$mform->addRule('name', get_string('maximumchars', '', 80), 'maxlength', 80, 'client');
$mform->addElement('text', 'wwwroot', get_string('hostname', 'mnet'));
$mform->addElement('text', 'wwwroot', get_string('hostname', 'mnet'), array('maxlength' => 255, 'size' => 50));
$mform->setType('wwwroot', PARAM_URL);
$mform->addRule('wwwroot', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$themes = array('' => get_string('forceno'));
foreach (array_keys(get_plugin_list('theme')) as $themename) {
@@ -95,15 +98,7 @@ class mnet_review_host_form extends moodleform {
$mform->addElement('textarea', 'public_key', get_string('publickey', 'mnet'), array('rows' => 17, 'cols' => 100, 'class' => 'smalltext'));
$mform->setType('public_key', PARAM_PEM);
if ($mnet_peer && !empty($mnet_peer->deleted)) {
$radioarray = array();
$radioarray[] = MoodleQuickForm::createElement('radio', 'deleted', '', get_string('yes'), 1);
$radioarray[] = MoodleQuickForm::createElement('radio', 'deleted', '', get_string('no'), 0);
$mform->addGroup($radioarray, 'radioar', get_string('deleted'), array(' '), false);
} else {
$mform->addElement('hidden', 'deleted');
}
$mform->addRule('public_key', get_string('required'), 'required');
// finished with form controls, now the static informational stuff
if ($mnet_peer && !empty($mnet_peer->bootstrapped)) {
@@ -140,21 +135,35 @@ class mnet_review_host_form extends moodleform {
}
}
$mform->addElement('static', 'certdetails', get_string('certdetails', 'mnet'), $OUTPUT->box('<pre>' . $credstr . '</pre>'));
$mform->addElement('static', 'certdetails', get_string('certdetails', 'mnet'),
$OUTPUT->box('<pre>' . $credstr . '</pre>', 'generalbox certdetails'));
}
if ($mnet_peer && !empty($mnet_peer->deleted)) {
$radioarray = array();
$radioarray[] = $mform->createElement('static', 'deletedinfo', '',
$OUTPUT->container(get_string('deletedhostinfo', 'mnet'), 'deletedhostinfo'));
$radioarray[] = $mform->createElement('radio', 'deleted', '', get_string('yes'), 1);
$radioarray[] = $mform->createElement('radio', 'deleted', '', get_string('no'), 0);
$mform->addGroup($radioarray, 'radioar', get_string('deleted'), array(' ', ' '), false);
} else {
$mform->addElement('hidden', 'deleted');
}
// finished with static stuff, print save button
$this->add_action_buttons(false);
}
function validation($data) {
function validation($data, $files) {
$errors = array();
if ($data['oldpublickey'] == $data['public_key']) {
return;
}
$mnet_peer = new mnet_peer(); // idiotic api
$mnet_peer->wwwroot = $data['wwwroot']; // just hard-set this rather than bootstrap the object
if (!$credentials = $mnet_peer->check_credentials($data['public_key'])) {
if (empty($data['public_key'])) {
$errors['public_key'] = get_string('publickeyrequired', 'mnet');
} else if (!$credentials = $mnet_peer->check_credentials($data['public_key'])) {
$errmsg = '';
foreach ($mnet_peer->error as $err) {
$errmsg .= $err['code'] . ': ' . $err['text'].'<br />';
+21 -6
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.
@@ -190,7 +190,7 @@ if ($formdata = $reviewform->get_data()) {
// normal flow - just display all hosts with links
echo $OUTPUT->header();
$hosts = mnet_get_hosts();
$hosts = mnet_get_hosts(true);
// print the table to display the register all hosts setting
$table = new html_table();
@@ -231,28 +231,43 @@ $table->head = array(
);
$table->wrap = array('nowrap', 'nowrap', 'nowrap', 'nowrap');
$baseurl = new moodle_url('/admin/mnet/peers.php');
$deleted = array();
foreach($hosts as $host) {
$hosturl = new moodle_url($baseurl, array('hostid' => $host->id));
if (trim($host->name) === '') {
// should not happen but...
$host->name = '???';
}
// process all hosts first since it's the easiest
if ($host->id == $CFG->mnet_all_hosts_id) {
$table->data[] = array(html_writer::tag('a', $host->name, array('href'=>$hosturl)), '', '', '');
$table->data[] = array(html_writer::link($hosturl, get_string('allhosts', 'core_mnet')), '*', '', '');
continue;
}
// populate the list of deleted hosts
if ($host->deleted) {
$deleted[] = html_writer::link($hosturl, $host->name);
continue;
}
if ($host->last_connect_time == 0) {
$last_connect = get_string('never');
} else {
$last_connect = date('H:i:s d/m/Y', $host->last_connect_time);
$last_connect = userdate($host->last_connect_time, get_string('strftimedatetime', 'core_langconfig'));
}
$table->data[] = array(
html_writer::link($hosturl, $host->name),
html_writer::link($hosturl, $host->wwwroot),
html_writer::link($host->wwwroot, $host->wwwroot),
$last_connect,
$OUTPUT->single_button(new moodle_url('/admin/mnet/delete.php', array('hostid' => $host->id)), get_string('delete'))
);
}
echo html_writer::table($table);
if ($deleted) {
echo $OUTPUT->box(get_string('deletedhosts', 'core_mnet', join(', ', $deleted)), 'deletedhosts');
}
// finally, print the initial form to add a new host
echo $OUTPUT->box_start();
echo $OUTPUT->heading(get_string('addnewhost', 'mnet'), 3);
+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');
+11 -2
View File
@@ -39,6 +39,15 @@ class mnet_profile_form extends moodleform {
global $CFG;
$mform =& $this->_form;
$mnetprofileimportfields = '';
if (isset($CFG->mnetprofileimportfields)) {
$mnetprofileimportfields = str_replace(',', ', ', $CFG->mnetprofileimportfields);
}
$mnetprofileexportfields = '';
if (isset($CFG->mnetprofileexportfields)) {
$mnetprofileexportfields = str_replace(',', ', ', $CFG->mnetprofileexportfields);
}
$mform->addElement('hidden', 'hostid', $this->_customdata['hostid']);
$fields = mnet_profile_field_options();
@@ -49,7 +58,7 @@ class mnet_profile_form extends moodleform {
$select = $mform->addElement('select', 'importfields', get_string('importfields', 'mnet'), $fields['optional']);
$select->setMultiple(true);
$mform->addElement('checkbox', 'importdefault', get_string('leavedefault', 'mnet'), str_replace(',', ', ', $CFG->mnetprofileimportfields));
$mform->addElement('checkbox', 'importdefault', get_string('leavedefault', 'mnet'), $mnetprofileimportfields);
// Fields to export ----------------------------------------------------
$mform->addElement('header', 'export', get_string('exportfields', 'mnet'));
@@ -57,7 +66,7 @@ class mnet_profile_form extends moodleform {
$select = $mform->addElement('select', 'exportfields', get_string('exportfields', 'mnet'), $fields['optional']);
$select->setMultiple(true);
$mform->addElement('checkbox', 'exportdefault', get_string('leavedefault', 'mnet'), str_replace(',', ', ', $CFG->mnetprofileexportfields));
$mform->addElement('checkbox', 'exportdefault', get_string('leavedefault', 'mnet'), $mnetprofileexportfields);
$this->add_action_buttons();
}
+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);
+1 -1
View File
@@ -36,7 +36,7 @@ class mnet_services_form extends moodleform {
function definition() {
$mform =& $this->_form;
$mnet_peer =& $this->_customdata['peer'];
$myservices =& mnet_get_service_info($mnet_peer);
$myservices = mnet_get_service_info($mnet_peer);
$mform->addElement('hidden', 'hostid', $mnet_peer->id);
+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");
+3 -2
View File
@@ -92,6 +92,7 @@
}
uninstall_plugin('mod', $delete);
$a = new stdClass();
$a->module = $strmodulename;
$a->directory = "$CFG->dirroot/mod/$delete";
echo $OUTPUT->notification(get_string("moduledeletefiles", "", $a), 'notifysuccess');
@@ -160,11 +161,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;
+46
View File
@@ -0,0 +1,46 @@
<?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/>.
/**
* An oauth2 redirection endpoint which can be used for an application:
* http://tools.ietf.org/html/draft-ietf-oauth-v2-26#section-3.1.2
*
* This is used because some oauth servers will not allow a redirect urls
* with get params (like repository callback) and that needs to be called
* using the state param.
*
* @package core
* @copyright 2012 Dan Poltawski
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)).'/config.php');
// The authorization code generated by the authorization server.
$code = required_param('code', PARAM_RAW);
// The state parameter we've given (used in moodle as a redirect url).
$state = required_param('state', PARAM_LOCALURL);
$redirecturl = new moodle_url($state);
$params = $redirecturl->params();
if (isset($params['sesskey']) and confirm_sesskey($params['sesskey'])) {
$redirecturl->param('oauth2code', $code);
redirect($redirecturl);
} else {
print_error('invalidsesskey');
}
+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();
+35 -2
View File
@@ -28,7 +28,40 @@ require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/pluginlib.php');
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
admin_externalpage_setup('pluginsoverview');
$fetchremote = optional_param('fetchremote', false, PARAM_BOOL);
$updatesonly = optional_param('updatesonly', false, PARAM_BOOL);
$contribonly = optional_param('contribonly', false, PARAM_BOOL);
$pluginman = plugin_manager::instance();
$checker = available_update_checker::instance();
// Filtering options.
$options = array(
'updatesonly' => $updatesonly,
'contribonly' => $contribonly,
);
if ($fetchremote) {
require_sesskey();
$checker->fetch();
redirect(new moodle_url($PAGE->url, $options));
}
$output = $PAGE->get_renderer('core', 'admin');
echo $output->plugin_management_page(plugin_manager::instance());
$deployer = available_update_deployer::instance();
if ($deployer->enabled()) {
$myurl = new moodle_url($PAGE->url, array('updatesonly' => $updatesonly, 'contribonly' => $contribonly));
$deployer->initialize($myurl, $myurl);
$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);
+4 -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();
@@ -197,6 +197,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 +219,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), '');
}
}
+1 -1
View File
@@ -31,7 +31,7 @@ $confirm = optional_param('confirm', 0, PARAM_BOOL);
admin_externalpage_setup('purgecaches');
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
require_capability('moodle/site:config', context_system::instance());
if ($confirm) {
require_sesskey();
+12 -11
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');
@@ -52,16 +52,16 @@ foreach ($behaviours as $behaviour => $notused) {
if (!array_key_exists($behaviour, $counts)) {
$counts[$behaviour] = 0;
}
$needed[$behaviour] = ($counts[$behaviour] > 0) &&
$needed[$behaviour] = ($counts[$behaviour] > 0) ||
$pluginmanager->other_plugins_that_require('qbehaviour_' . $behaviour);
$archetypal[$behaviour] = question_engine::is_behaviour_archetypal($behaviour);
}
foreach ($counts as $behaviour => $count) {
if (!array_key_exists($behaviour, $behaviours)) {
$counts['missingtype'] += $count;
$counts['missing'] += $count;
}
}
$needed['missing'] = true;
// Work of the correct sort order.
$config = get_config('question');
@@ -179,7 +179,7 @@ if (($delete = optional_param('delete', '', PARAM_PLUGIN)) && confirm_sesskey())
unset($disabledbehaviours[$key]);
set_config('disabledbehaviours', implode(',', $disabledbehaviours), 'question');
}
$behaviourorder = explode(',', $config->behavioursortorder);
$behaviourorder = array_keys($sortedbehaviours);
if (($key = array_search($delete, $behaviourorder)) !== false) {
unset($behaviourorder[$key]);
set_config('behavioursortorder', implode(',', $behaviourorder), 'question');
@@ -191,6 +191,7 @@ if (($delete = optional_param('delete', '', PARAM_PLUGIN)) && confirm_sesskey())
// Remove event handlers and dequeue pending events
events_uninstall('qbehaviour_' . $delete);
$a = new stdClass();
$a->behaviour = $behaviourname;
$a->directory = get_plugin_directory('qbehaviour', $delete);
echo $OUTPUT->box(get_string('qbehaviourdeletefiles', 'question', $a), 'generalbox', 'notice');
@@ -248,7 +249,7 @@ foreach ($sortedbehaviours as $behaviour => $behaviourname) {
$row[] = '';
}
// Are people allowed to create new questions of this type?
// Are people allowed to select this behaviour?
$rowclass = '';
if ($archetypal[$behaviour]) {
$enabled = array_search($behaviour, $disabledbehaviours) === false;
@@ -257,7 +258,7 @@ foreach ($sortedbehaviours as $behaviour => $behaviourname) {
$rowclass = 'dimmed_text';
}
} else {
$icons = $OUTPUT->spacer() . ' ';
$icons = $OUTPUT->spacer(array('class' => 'iconsmall'));
}
// Move icons.
@@ -283,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'));
}
}
@@ -295,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));
}
+8 -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);
@@ -171,6 +171,7 @@ if (($delete = optional_param('delete', '', PARAM_PLUGIN)) && confirm_sesskey())
// Remove event handlers and dequeue pending events
events_uninstall('qtype_' . $delete);
$a = new stdClass();
$a->qtype = $qtypename;
$a->directory = $qtypes[$delete]->plugin_dir();
echo $OUTPUT->box(get_string('qtypedeletefiles', 'question', $a), 'generalbox', 'notice');
@@ -217,7 +218,7 @@ foreach ($sortedqtypes as $qtypename => $localname) {
$strcount = $counts[$qtypename]->numquestions;
}
if ($canviewreports) {
$row[] = html_writer::link(new moodle_url('/admin/report/questioninstances/index.php',
$row[] = html_writer::link(new moodle_url('/report/questioninstances/index.php',
array('qtype' => $qtypename)), $strcount, array('title' => get_string('showdetails', 'admin')));
} else {
$strcount;
@@ -256,7 +257,7 @@ foreach ($sortedqtypes as $qtypename => $localname) {
$rowclass = 'dimmed_text';
}
} else {
$icons = $OUTPUT->spacer() . ' ';
$icons = $OUTPUT->spacer();
}
// Move icons.
@@ -293,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'));
}
}
@@ -305,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));
}
+1 -1
View File
@@ -44,7 +44,7 @@ $hubname = optional_param('hubname', '', PARAM_TEXT);
$token = optional_param('token', '', PARAM_TEXT);
$error = optional_param('error', '', PARAM_ALPHANUM);
admin_externalpage_setup('registrationindex');
admin_externalpage_setup('registrationhubs');
if (!empty($error) and $error == 'urlalreadyexist') {
throw new moodle_exception('urlalreadyregistered', 'hub',
+16 -14
View File
@@ -203,7 +203,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) {
@@ -236,6 +236,7 @@ class site_registration_form extends moodleform {
$geolocation = get_config('hub', 'site_geolocation_' . $cleanhuburl);
$contactable = get_config('hub', 'site_contactable_' . $cleanhuburl);
$emailalert = get_config('hub', 'site_emailalert_' . $cleanhuburl);
$emailalert = ($emailalert === 0) ? 0 : 1;
$coursesnumber = get_config('hub', 'site_coursesnumber_' . $cleanhuburl);
$usersnumber = get_config('hub', 'site_usersnumber_' . $cleanhuburl);
$roleassignmentsnumber = get_config('hub', 'site_roleassignmentsnumber_' . $cleanhuburl);
@@ -279,9 +280,6 @@ class site_registration_form extends moodleform {
$mform->setType('description', PARAM_TEXT);
$mform->addHelpButton('description', 'sitedesc', 'hub');
$mform->addElement('static', 'urlstring', get_string('siteurl', 'hub'), $CFG->wwwroot);
$mform->addHelpButton('urlstring', 'siteurl', 'hub');
$languages = get_string_manager()->get_list_of_languages();
collatorlib::asort($languages);
$mform->addElement('select', 'language', get_string('sitelang', 'hub'),
@@ -290,16 +288,6 @@ class site_registration_form extends moodleform {
$mform->addHelpButton('language', 'sitelang', 'hub');
$mform->setDefault('language', $language);
$mform->addElement('static', 'versionstring', get_string('siteversion', 'hub'), $CFG->version);
$mform->addElement('hidden', 'moodleversion', $CFG->version);
$mform->setType('moodleversion', PARAM_INT);
$mform->addHelpButton('versionstring', 'siteversion', 'hub');
$mform->addElement('static', 'releasestring', get_string('siterelease', 'hub'), $CFG->release);
$mform->addElement('hidden', 'moodlerelease', $CFG->release);
$mform->setType('moodlerelease', PARAM_TEXT);
$mform->addHelpButton('releasestring', 'siterelease', 'hub');
$mform->addElement('textarea', 'address', get_string('postaladdress', 'hub'),
array('rows' => 4, 'cols' => 41));
$mform->setType('address', PARAM_TEXT);
@@ -360,6 +348,20 @@ class site_registration_form extends moodleform {
//TODO site logo
$mform->addElement('hidden', 'imageurl', ''); //TODO: temporary
$mform->setType('imageurl', PARAM_URL);
$mform->addElement('static', 'urlstring', get_string('siteurl', 'hub'), $CFG->wwwroot);
$mform->addHelpButton('urlstring', 'siteurl', 'hub');
$mform->addElement('static', 'versionstring', get_string('siteversion', 'hub'), $CFG->version);
$mform->addElement('hidden', 'moodleversion', $CFG->version);
$mform->setType('moodleversion', PARAM_INT);
$mform->addHelpButton('versionstring', 'siteversion', 'hub');
$mform->addElement('static', 'releasestring', get_string('siterelease', 'hub'), $CFG->release);
$mform->addElement('hidden', 'moodlerelease', $CFG->release);
$mform->setType('moodlerelease', PARAM_TEXT);
$mform->addHelpButton('releasestring', 'siterelease', 'hub');
/// Display statistic that are going to be retrieve by the hub
$coursecount = $DB->count_records('course') - 1;
$usercount = $DB->count_records('user', array('deleted' => 0));
-68
View File
@@ -1,68 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/*
* @package moodle
* @subpackage registration
* @author Jerome Mouneyrac <jerome@mouneyrac.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*
* Thsi page displays a hub selector or a hub URL + password. Then it will redirect to
* the site registration form (with the selected hub as parameter)
*/
require('../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot.'/' . $CFG->admin . '/registration/forms.php');
admin_externalpage_setup('registrationselector');
$hubselectorform = new hub_selector_form();
$fromform = $hubselectorform->get_data();
//// Redirect to the registration form if an URL has been choosen ////
$selectedhuburl = optional_param('publichub', false, PARAM_URL);
$unlistedhuburl = optional_param('unlistedurl', false, PARAM_TEXT);
$password = optional_param('password', '', PARAM_RAW);
if (!empty($unlistedhuburl)) {
if (clean_param($unlistedhuburl, PARAM_URL) !== '') {
$huburl = $unlistedhuburl;
}
} else if (!empty($selectedhuburl)) {
$huburl = $selectedhuburl;
}
//redirect
if (!empty($huburl) and confirm_sesskey()) {
$hubname = optional_param(clean_param($huburl, PARAM_ALPHANUMEXT), '', PARAM_TEXT);
$params = array('sesskey' => sesskey(), 'huburl' => $huburl,
'password' => $password, 'hubname' => $hubname);
redirect(new moodle_url($CFG->wwwroot."/" . $CFG->admin . "/registration/register.php",
$params));
}
//// OUTPUT ////
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('registeron', 'hub'), 3, 'main');
$hubselectorform->display();
echo $OUTPUT->footer();
+56 -11
View File
@@ -22,8 +22,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*
* On this page the administrator select if he wants to register on Moodle.org or
* a specific hub
* On this page the administrator selects which hub he wants to register,
* except for MOOCH. Admins can register with MOOCH with the top admin menu "Registration" link.
* On this page the administrator can also unregister from any hubs, including MOOCH.
*/
require('../../config.php');
@@ -34,7 +35,7 @@ require_once($CFG->dirroot . '/' . $CFG->admin . '/registration/forms.php');
require_once($CFG->dirroot . '/course/publish/lib.php');
require_once($CFG->dirroot . "/webservice/xmlrpc/lib.php");
admin_externalpage_setup('registrationindex');
admin_externalpage_setup('registrationhubs');
$renderer = $PAGE->get_renderer('core', 'register');
@@ -126,13 +127,15 @@ if (empty($cancel) and $unregistration and $confirm and confirm_sesskey()) {
}
}
echo $OUTPUT->header();
//do not check sesskey if confirm = false because this script is linked into email message
if (!empty($errormessage)) {
echo $OUTPUT->notification(get_string('unregistrationerror', 'hub', $errormessage));
}
if (empty($cancel) and $unregistration and !$confirm) {
echo $OUTPUT->header();
//do not check sesskey if confirm = false because this script is linked into email message
if (!empty($errormessage)) {
echo $OUTPUT->notification(get_string('unregistrationerror', 'hub', $errormessage));
}
$hub = $registrationmanager->get_registeredhub($huburl);
echo $OUTPUT->heading(get_string('unregisterfrom', 'hub', $hub->hubname), 3, 'main');
if ($cleanregdata) {
@@ -142,6 +145,7 @@ if (empty($cancel) and $unregistration and !$confirm) {
$siteunregistrationform = new site_unregistration_form('',
array('huburl' => $huburl, 'hubname' => $hub->hubname));
}
$siteunregistrationform->display();
} else {
$registeredonmoodleorg = false;
@@ -150,8 +154,49 @@ if (empty($cancel) and $unregistration and !$confirm) {
$registeredonmoodleorg = true;
}
echo $OUTPUT->heading(get_string('registeron', 'hub'), 3, 'main');
echo $renderer->registrationselector($registeredonmoodleorg);
// load the hub selector form
$hubselectorform = new hub_selector_form();
$fromform = $hubselectorform->get_data();
$selectedhuburl = optional_param('publichub', false, PARAM_URL);
$unlistedhuburl = optional_param('unlistedurl', false, PARAM_TEXT);
$password = optional_param('password', '', PARAM_RAW);
$registeringhuburl = null;
if (!empty($unlistedhuburl)) {
if (clean_param($unlistedhuburl, PARAM_URL) !== '') {
$registeringhuburl = $unlistedhuburl;
}
} else if (!empty($selectedhuburl)) {
$registeringhuburl = $selectedhuburl;
}
// a hub has been selected, redirect to the hub registration page
if (empty($cancel) and !empty($registeringhuburl) and confirm_sesskey()) {
$hubname = optional_param(clean_param($registeringhuburl, PARAM_ALPHANUMEXT), '', PARAM_TEXT);
$params = array('sesskey' => sesskey(), 'huburl' => $registeringhuburl,
'password' => $password, 'hubname' => $hubname);
redirect(new moodle_url($CFG->wwwroot . "/" . $CFG->admin . "/registration/register.php",
$params));
}
echo $OUTPUT->header();
//check if the site is registered on Moodle.org and display a message about registering on MOOCH
$registered = $DB->count_records('registration_hubs', array('huburl' => HUB_MOODLEORGHUBURL, 'confirmed' => 1));
if (empty($registered)) {
$warningmsg = get_string('registermoochtips', 'hub');
$warningmsg .= $renderer->single_button(new moodle_url('register.php', array('huburl' => HUB_MOODLEORGHUBURL
, 'hubname' => 'Moodle.org')), get_string('register', 'admin'));
echo $renderer->box($warningmsg, 'buttons mdl-align generalbox adminwarning');
}
//do not check sesskey if confirm = false because this script is linked into email message
if (!empty($errormessage)) {
echo $OUTPUT->notification(get_string('unregistrationerror', 'hub', $errormessage));
}
echo $OUTPUT->heading(get_string('registerwith', 'hub'));
$hubselectorform->display();
if (extension_loaded('xmlrpc')) {
$hubs = $registrationmanager->get_registered_on_hubs();
+15 -6
View File
@@ -27,7 +27,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*
* This page displays the site registration form.
* This page displays the site registration form for Moodle.org/MOOCH or for a different hub.
* It handles redirection to the hub to continue the registration workflow process.
* It also handles update operation by web service.
*/
@@ -39,15 +39,17 @@ require_once($CFG->dirroot . '/' . $CFG->admin . '/registration/forms.php');
require_once($CFG->dirroot . '/webservice/lib.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/registration/lib.php');
admin_externalpage_setup('registrationindex');
$huburl = required_param('huburl', PARAM_URL);
$huburl = rtrim($huburl, "/");
if ($huburl == HUB_MOODLEORGHUBURL) { // register to Moodle.org
admin_externalpage_setup('registrationmoodleorg');
} else { //register to a hub
admin_externalpage_setup('registrationhub');
}
$password = optional_param('password', '', PARAM_TEXT);
$hubname = optional_param('hubname', '', PARAM_TEXT);
if (!confirm_sesskey()) {
throw new moodle_exception('missingparameter');
}
$registrationmanager = new registration_manager();
@@ -145,5 +147,12 @@ if (!empty($error)) {
echo $error;
}
//some Moodle.org resitration explanation
if ($huburl == HUB_MOODLEORGHUBURL) {
echo $OUTPUT->heading(get_string('registerwithmoodleorg', 'admin'));
$renderer = $PAGE->get_renderer('core', 'register');
echo $renderer->moodleorg_registration_message();
}
$siteregistrationform->display();
echo $OUTPUT->footer();
+17 -51
View File
@@ -30,6 +30,23 @@
*/
class core_register_renderer extends plugin_renderer_base {
/**
* Display Moodle.org registration message about benefit to register on Moodle.org
*
* @return string
*/
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');
$moodleorgregmsg = get_string('registermoodleorg', 'admin', $moodleorgurl);
$items = array(get_string('registermoodleorgli1', 'admin'),
get_string('registermoodleorgli2', 'admin', $moodleorgstatsurl),
get_string('registermoodleorgli3', 'admin', $moochurl));
$moodleorgregmsg .= html_writer::alist($items);
return $moodleorgregmsg;
}
/**
* Display a box message confirming a site registration (add or update)
* @param string $confirmationmessage
@@ -42,57 +59,6 @@ class core_register_renderer extends plugin_renderer_base {
return $this->output->box($message);
}
/**
* Display the page to register on Moodle.org or on a specific hub
*/
public function registrationselector($updatemoodleorg = false) {
global $CFG;
$table = new html_table();
$table->head = array(get_string('moodleorg', 'hub'), get_string('specifichub', 'hub'));
$table->size = array('50%', '50%');
//$table->attributes['class'] = 'registerindextable';
//Moodle.org information cell
$moodleorgcell = get_string('moodleorgregistrationdetail', 'hub');
$moodleorgcell .= html_writer::empty_tag('br') . html_writer::empty_tag('br');
$moodleorgcell = html_writer::tag('div', $moodleorgcell, array('class' => 'justifytext'));
//Specific hub information cell
$specifichubcell = get_string('specifichubregistrationdetail', 'hub');
$specifichubcell .= html_writer::empty_tag('br') . html_writer::empty_tag('br');
$specifichubcell = html_writer::tag('div', $specifichubcell, array('class' => 'justifytext'));
//add information cells
$cells = array($moodleorgcell, $specifichubcell);
$row = new html_table_row($cells);
$table->data[] = $row;
//Moodle.org button cell
$registeronmoodleorgurl = new moodle_url("/" . $CFG->admin . "/registration/register.php",
array('sesskey' => sesskey(), 'huburl' => HUB_MOODLEORGHUBURL
, 'hubname' => 'Moodle.org'));
$registeronmoodleorgbutton = new single_button($registeronmoodleorgurl,
$updatemoodleorg ? get_string('updatesite', 'hub', 'Moodle.org') : get_string('registeronmoodleorg', 'hub'));
$registeronmoodleorgbutton->class = 'centeredbutton';
$registeronmoodleorgbuttonhtml = $this->output->render($registeronmoodleorgbutton);
$moodleorgcell = $registeronmoodleorgbuttonhtml;
//Specific hub button cell
$registeronspecifichuburl = new moodle_url("/" . $CFG->admin . "/registration/hubselector.php",
array('sesskey' => sesskey()));
$registeronspecifichubbutton = new single_button($registeronspecifichuburl,
get_string('registeronspecifichub', 'hub'));
$registeronspecifichubbutton->class = 'centeredbutton';
$registeronspecifichubbuttonhtml = $this->output->render($registeronspecifichubbutton);
$specifichubcell = $registeronspecifichubbuttonhtml;
//add button cells
$cells = array($moodleorgcell, $specifichubcell);
$row = new html_table_row($cells);
$table->data[] = $row;
return html_writer::table($table);
}
/**
* Display the listing of registered on hub
*/
+1 -1
View File
@@ -39,7 +39,7 @@ $url = optional_param('url', '', PARAM_URL);
$hubname = optional_param('hubname', '', PARAM_TEXT);
$token = optional_param('token', '', PARAM_TEXT);
admin_externalpage_setup('registrationindex');
admin_externalpage_setup('registrationhubs');
//check that we are waiting a confirmation from this hub, and check that the token is correct
$registrationmanager = new registration_manager();
+547 -67
View File
@@ -57,6 +57,26 @@ class core_admin_renderer extends plugin_renderer_base {
return $output;
}
/**
* Display page explaining proper upgrade process,
* there can not be any PHP file leftovers...
*
* @return string HTML to output.
*/
public function upgrade_stale_php_files_page() {
$output = '';
$output .= $this->header();
$output .= $this->heading(get_string('upgradestalefiles', 'admin'));
$output .= $this->box_start('generalbox', 'notice');
$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();
$output .= $this->footer();
return $output;
}
/**
* Display the 'environment check' page that is displayed during install.
* @param int $maturity
@@ -87,6 +107,29 @@ class core_admin_renderer extends plugin_renderer_base {
return $output;
}
/**
* Displays the list of plugins with unsatisfied dependencies
*
* @param double|string|int $version Moodle on-disk version
* @param array $failed list of plugins with unsatisfied dependecies
* @param moodle_url $reloadurl URL of the page to recheck the dependencies
* @return string HTML
*/
public function unsatisfied_dependencies_page($version, array $failed, moodle_url $reloadurl) {
$output = '';
$output .= $this->header();
$output .= $this->heading(get_string('pluginscheck', 'admin'));
$output .= $this->warning(get_string('pluginscheckfailed', 'admin', array('pluginslist' => implode(', ', array_unique($failed)))));
$output .= $this->plugins_check_table(plugin_manager::instance(), $version, array('xdep' => true));
$output .= $this->warning(get_string('pluginschecktodo', 'admin'));
$output .= $this->continue_button($reloadurl);
$output .= $this->footer();
return $output;
}
/**
* Display the 'You are about to upgrade Moodle' page. The first page
* during upgrade.
@@ -145,30 +188,103 @@ class core_admin_renderer extends plugin_renderer_base {
/**
* Display the upgrade page that lists all the plugins that require attention.
* @param plugin_manager $pluginman provides information about the plugins.
* @param available_update_checker $checker provides information about available updates.
* @param int $version the version of the Moodle code from version.php.
* @param bool $showallplugins
* @param moodle_url $reloadurl
* @param moodle_url $continueurl
* @return string HTML to output.
*/
public function upgrade_plugin_check_page(plugin_manager $pluginman, $version, $showallplugins, $reloadurl, $continueurl) {
public function upgrade_plugin_check_page(plugin_manager $pluginman, available_update_checker $checker,
$version, $showallplugins, $reloadurl, $continueurl) {
global $CFG;
$output = '';
$output .= $this->header();
$output .= $this->box_start('generalbox');
$output .= $this->container(get_string('pluginchecknotice', 'core_plugin'), 'generalbox', 'notice');
$output .= $this->container_start('generalbox', 'notice');
$output .= html_writer::tag('p', get_string('pluginchecknotice', 'core_plugin'));
if (empty($CFG->disableupdatenotifications)) {
$output .= $this->container_start('checkforupdates');
$output .= $this->single_button(new moodle_url($reloadurl, array('fetchupdates' => 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'))));
}
$output .= $this->container_end();
}
$output .= $this->container_end();
$output .= $this->plugins_check_table($pluginman, $version, array('full' => $showallplugins));
$output .= $this->box_end();
$output .= $this->upgrade_reload($reloadurl);
if ($pluginman->all_plugins_ok($version)) {
$button = new single_button($continueurl, get_string('upgradestart', 'admin'), 'get');
$button->class = 'continuebutton';
$output .= $this->render($button);
} else {
$output .= $this->box(get_string('pluginschecktodo', 'admin'), 'environmentbox errorbox');
if ($pluginman->some_plugins_updatable()) {
$output .= $this->container_start('upgradepluginsinfo');
$output .= $this->help_icon('upgradepluginsinfo', 'core_admin', get_string('upgradepluginsfirst', 'core_admin'));
$output .= $this->container_end();
}
$button = new single_button($continueurl, get_string('upgradestart', 'admin'), 'get');
$button->class = 'continuebutton';
$output .= $this->render($button);
$output .= $this->footer();
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']);
$output .= $this->output->render($widget);
$output .= $this->output->single_button($data['returnurl'], get_string('cancel', 'core'), 'get');
$output .= $this->container_end();
$output .= $this->footer();
return $output;
@@ -182,19 +298,28 @@ class core_admin_renderer extends plugin_renderer_base {
* @param bool $cronoverdue warn cron not running
* @param bool $dbproblems warn db has problems
* @param bool $maintenancemode warn in maintenance mode
* @param bool $buggyiconvnomb warn iconv problems
* @param array|null $availableupdates array of available_update_info objects or null
* @param int|null $availableupdatesfetch timestamp of the most recent updates fetch or null (unknown)
*
* @return string HTML to output.
*/
public function admin_notifications_page($maturity, $insecuredataroot, $errorsdisplayed,
$cronoverdue, $dbproblems, $maintenancemode) {
$cronoverdue, $dbproblems, $maintenancemode, $availableupdates, $availableupdatesfetch,
$buggyiconvnomb, $registered) {
global $CFG;
$output = '';
$output .= $this->header();
$output .= $this->maturity_info($maturity);
$output .= empty($CFG->disableupdatenotifications) ? $this->available_updates($availableupdates, $availableupdatesfetch) : '';
$output .= $this->insecure_dataroot_warning($insecuredataroot);
$output .= $this->display_errors_warning($errorsdisplayed);
$output .= $this->cron_overdue_warning($errorsdisplayed);
$output .= $this->buggy_iconv_warning($buggyiconvnomb);
$output .= $this->cron_overdue_warning($cronoverdue);
$output .= $this->db_problems($dbproblems);
$output .= $this->maintenance_mode_warning($maintenancemode);
$output .= $this->registration_warning($registered);
//////////////////////////////////////////////////////////////////////////////////////////////////
//// IT IS ILLEGAL AND A VIOLATION OF THE GPL TO HIDE, REMOVE OR MODIFY THIS COPYRIGHT NOTICE ///
@@ -208,17 +333,39 @@ 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) {
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->box_start('generalbox');
$output .= $this->plugins_control_panel($pluginman);
$output .= $this->box_end();
$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_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'))));
}
$output .= $this->container_end();
}
$output .= $this->box($this->plugins_control_panel($pluginman, $options), 'generalbox');
$output .= $this->footer();
return $output;
@@ -302,6 +449,19 @@ class core_admin_renderer extends plugin_renderer_base {
return $this->warning(get_string('displayerrorswarning', 'admin'));
}
/**
* Render an appropriate message if iconv is buggy and mbstring missing.
* @param bool $buggyiconvnomb
* @return string HTML to output.
*/
protected function buggy_iconv_warning($buggyiconvnomb) {
if (!$buggyiconvnomb) {
return '';
}
return $this->warning(get_string('warningiconvbuggy', 'admin'));
}
/**
* Render an appropriate message if cron has not been run recently.
* @param bool $cronoverdue
@@ -339,8 +499,10 @@ class core_admin_renderer extends plugin_renderer_base {
return '';
}
return $this->warning(get_string('sitemaintenancewarning2', 'admin',
new moodle_url('/admin/settings.php', array('section' => 'maintenancemode'))));
$url = new moodle_url('/admin/settings.php', array('section' => 'maintenancemode'));
$url = $url->out(); // get_string() does not support objects in params
return $this->warning(get_string('sitemaintenancewarning2', 'admin', $url));
}
/**
@@ -372,7 +534,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>';
//////////////////////////////////////////////////////////////////////////////////////////////////
@@ -393,7 +555,123 @@ class core_admin_renderer extends plugin_renderer_base {
return $this->box(
get_string('maturitycoreinfo', 'admin', $maturitylevel) . ' ' .
$this->doc_link('admin/versions', get_string('morehelp')),
'generalbox adminwarning maturityinfo');
'generalbox adminwarning maturityinfo maturity'.$maturity);
}
/**
* Displays the info about available Moodle core and plugin updates
*
* 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)) {
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);
}
}
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);
}
}
$updateinfo .= $this->container_start('checkforupdates');
$updateinfo .= $this->single_button(new moodle_url($this->page->url, array('fetchupdates' => 1)), get_string('checkforupdates', 'core_plugin'));
if ($fetch) {
$updateinfo .= $this->container(get_string('checkforupdateslast', 'core_plugin',
userdate($fetch, get_string('strftimedatetime', 'core_langconfig'))));
}
$updateinfo .= $this->container_end();
$updateinfo .= $this->box_end();
return $updateinfo;
}
/**
* Display a warning about not being registered on Moodle.org if necesary.
*
* @param boolean $registered true if the site is registered on Moodle.org
* @return string HTML to output.
*/
protected function registration_warning($registered) {
if (!$registered) {
$registerbutton = $this->single_button(new moodle_url('registration/register.php',
array('huburl' => HUB_MOODLEORGHUBURL, 'hubname' => 'Moodle.org')),
get_string('register', 'admin'));
return $this->warning( get_string('registrationwarning', 'admin')
. '&nbsp;' . $this->help_icon('registration', 'admin') . $registerbutton );
}
return '';
}
/**
* Helper method to render the information about the available Moodle update
*
* @param available_update_info $updateinfo information about the available Moodle core update
*/
protected function moodle_available_update_info(available_update_info $updateinfo) {
$boxclasses = 'moodleupdateinfo';
$info = array();
if (isset($updateinfo->release)) {
$info[] = html_writer::tag('span', get_string('updateavailable_release', 'core_admin', $updateinfo->release),
array('class' => 'info release'));
}
if (isset($updateinfo->version)) {
$info[] = html_writer::tag('span', get_string('updateavailable_version', 'core_admin', $updateinfo->version),
array('class' => 'info version'));
}
if (isset($updateinfo->maturity)) {
$info[] = html_writer::tag('span', get_string('maturity'.$updateinfo->maturity, 'core_admin'),
array('class' => 'info maturity'));
$boxclasses .= ' maturity'.$updateinfo->maturity;
}
if (isset($updateinfo->download)) {
$info[] = html_writer::link($updateinfo->download, get_string('download'), array('class' => 'info download'));
}
if (isset($updateinfo->url)) {
$info[] = html_writer::link($updateinfo->url, get_string('updateavailable_moreinfo', 'core_plugin'),
array('class' => 'info more'));
}
$box = $this->output->box_start($boxclasses);
$box .= $this->output->box(implode(html_writer::tag('span', ' ', array('class' => 'separator')), $info), '');
$box .= $this->output->box_end();
return $box;
}
/**
@@ -413,7 +691,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');
}
@@ -424,24 +702,24 @@ class core_admin_renderer extends plugin_renderer_base {
* This default implementation renders all plugins into one big table. The rendering
* options support:
* (bool)full = false: whether to display up-to-date plugins, too
* (bool)xdep = false: display the plugins with unsatisified dependecies only
*
* @param plugin_manager $pluginman provides information about the plugins.
* @param int $version the version of the Moodle code from version.php.
* @param array $options rendering options
* @return string HTML code
*/
public function plugins_check_table(plugin_manager $pluginman, $version, array $options = null) {
public function plugins_check_table(plugin_manager $pluginman, $version, array $options = array()) {
global $CFG;
$plugininfo = $pluginman->get_plugins();
if (empty($plugininfo)) {
return '';
}
if (empty($options)) {
$options = array(
'full' => false,
);
}
$options['full'] = isset($options['full']) ? (bool)$options['full'] : false;
$options['xdep'] = isset($options['xdep']) ? (bool)$options['xdep'] : false;
$table = new html_table();
$table->id = 'plugins-check';
@@ -487,7 +765,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'));
@@ -510,23 +788,43 @@ class core_admin_renderer extends plugin_renderer_base {
$statuscode = $plugin->get_status();
$row->attributes['class'] .= ' status-' . $statuscode;
$status = get_string('status_' . $statuscode, 'core_plugin');
$status = new html_table_cell(get_string('status_' . $statuscode, 'core_plugin'));
$availableupdates = $plugin->available_updates();
if (!empty($availableupdates) and empty($CFG->disableupdatenotifications)) {
foreach ($availableupdates as $availableupdate) {
$status .= $this->plugin_available_update_info($availableupdate);
}
}
$status = new html_table_cell($status);
$requires = new html_table_cell($this->required_column($plugin, $pluginman, $version));
$statusisboring = in_array($statuscode, array(
plugin_manager::PLUGIN_STATUS_NODB, plugin_manager::PLUGIN_STATUS_UPTODATE));
$dependenciesok = $pluginman->are_dependencies_satisfied(
$plugin->get_other_required_plugins());
if ($isstandard and $statusisboring and $dependenciesok) {
$coredependency = $plugin->is_core_dependency_satisfied($version);
$otherpluginsdependencies = $pluginman->are_dependencies_satisfied($plugin->get_other_required_plugins());
$dependenciesok = $coredependency && $otherpluginsdependencies;
if ($options['xdep']) {
// we want to see only plugins with failed dependencies
if ($dependenciesok) {
continue;
}
} else if ($isstandard and $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'])) {
continue;
}
} else {
$numofhighlighted[$type]++;
}
// ok, the plugin should be displayed
$numofhighlighted[$type]++;
$row->cells = array($displayname, $rootdir, $source,
$versiondb, $versiondisk, $requires, $status);
$plugintyperows[] = $row;
@@ -542,7 +840,11 @@ class core_admin_renderer extends plugin_renderer_base {
$sumofhighlighted = array_sum($numofhighlighted);
if ($sumofhighlighted == 0) {
if ($options['xdep']) {
// we do not want to display no heading and links in this mode
$out = '';
} else if ($sumofhighlighted == 0) {
$out = $this->output->container_start('nonehighlighted', 'plugins-check-info');
$out .= $this->output->heading(get_string('nonehighlighted', 'core_plugin'));
if (empty($options['full'])) {
@@ -559,6 +861,10 @@ class core_admin_renderer extends plugin_renderer_base {
$out .= html_writer::link(new moodle_url('/admin/index.php',
array('confirmupgrade' => 1, 'confirmrelease' => 1, 'showallplugins' => 1)),
get_string('somehighlightedinfo', 'core_plugin'));
} else {
$out .= html_writer::link(new moodle_url('/admin/index.php',
array('confirmupgrade' => 1, 'confirmrelease' => 1, 'showallplugins' => 0)),
get_string('somehighlightedonly', 'core_plugin'));
}
$out .= $this->output->container_end();
}
@@ -572,12 +878,12 @@ class core_admin_renderer extends plugin_renderer_base {
/**
* Formats the information that needs to go in the 'Requires' column.
* @param plugin_information $plugin the plugin we are rendering the row for.
* @param plugininfo_base $plugin the plugin we are rendering the row for.
* @param plugin_manager $pluginman provides data on all the plugins.
* @param string $version
* @return string HTML code
*/
protected function required_column(plugin_information $plugin, plugin_manager $pluginman, $version) {
protected function required_column(plugininfo_base $plugin, plugin_manager $pluginman, $version) {
$requires = array();
if (!empty($plugin->versionrequires)) {
@@ -597,8 +903,7 @@ class core_admin_renderer extends plugin_renderer_base {
if (is_null($otherplugin)) {
$ok = false;
}
if ($requiredversion != ANY_VERSION and $otherplugin->versiondisk < $requiredversion) {
} else if ($requiredversion != ANY_VERSION and $otherplugin->versiondisk < $requiredversion) {
$ok = false;
}
@@ -625,17 +930,127 @@ class core_admin_renderer extends plugin_renderer_base {
return html_writer::tag('ul', implode("\n", $requires));
}
/**
* 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, array $options = array()) {
global $CFG;
$plugininfo = $pluginman->get_plugins();
$numtotal = $numdisabled = $numextension = $numupdatable = 0;
foreach ($plugininfo as $type => $plugins) {
foreach ($plugins as $name => $plugin) {
if ($plugin->get_status() === plugin_manager::PLUGIN_STATUS_MISSING) {
continue;
}
$numtotal++;
if ($plugin->is_enabled() === false) {
$numdisabled++;
}
if (!$plugin->is_standard()) {
$numextension++;
}
if (empty($CFG->disableupdatenotifications) and $plugin->available_updates()) {
$numupdatable++;
}
}
}
$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'));
}
$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;
}
/**
* Displays all known plugins and links to manage them
*
* 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 '';
}
@@ -644,15 +1059,14 @@ class core_admin_renderer extends plugin_renderer_base {
$table->id = 'plugins-control-panel';
$table->head = array(
get_string('displayname', 'core_plugin'),
get_string('systemname', 'core_plugin'),
get_string('source', 'core_plugin'),
get_string('version', 'core_plugin'),
get_string('availability', 'core_plugin'),
get_string('settings', 'core_plugin'),
get_string('uninstall','core_plugin'),
get_string('actions', 'core_plugin'),
get_string('notes','core_plugin'),
);
$table->colclasses = array(
'displayname', 'systemname', 'source', 'version', 'availability', 'settings', 'uninstall',
'pluginname', 'source', 'version', 'availability', 'actions', 'notes'
);
foreach ($plugininfo as $type => $plugins) {
@@ -678,9 +1092,9 @@ 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'));
@@ -688,10 +1102,9 @@ class core_admin_renderer extends plugin_renderer_base {
} else {
$msg = '';
}
$displayname = $icon . ' ' . $plugin->displayname . ' ' . $msg;
$displayname = new html_table_cell($displayname);
$systemname = new html_table_cell($plugin->type . '_' . $plugin->name);
$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);
if ($plugin->is_standard()) {
$row->attributes['class'] .= ' standard';
@@ -708,36 +1121,45 @@ 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)) {
$settings = new html_table_cell('');
} else {
$settings = html_writer::link($settingsurl, get_string('settings', 'core_plugin'));
$settings = new html_table_cell($settings);
if (!is_null($settingsurl)) {
$actions[] = html_writer::link($settingsurl, get_string('settings', 'core_plugin'), array('class' => 'settings'));
}
$uninstallurl = $plugin->get_uninstall_url();
$requriedby = $pluginman->other_plugins_that_require($plugin->component);
if (is_null($uninstallurl)) {
$uninstall = new html_table_cell('');
} else if ($requriedby) {
$uninstall = new html_table_cell(get_string('requiredby', 'core_plugin', implode(', ', $requriedby)));
$uninstall->attributes['class'] = 'requiredby';
} else {
$uninstall = html_writer::link($uninstallurl, get_string('uninstall', 'core_plugin'));
$uninstall = new html_table_cell($uninstall);
if (!is_null($uninstallurl)) {
$actions[] = html_writer::link($uninstallurl, get_string('uninstall', 'core_plugin'), array('class' => 'uninstall'));
}
$actions = new html_table_cell(implode(html_writer::tag('span', ' ', array('class' => 'separator')), $actions));
$requriedby = $pluginman->other_plugins_that_require($plugin->component);
if ($requriedby) {
$requiredby = html_writer::tag('div', get_string('requiredby', 'core_plugin', implode(', ', $requriedby)),
array('class' => 'requiredby'));
} else {
$requiredby = '';
}
$updateinfo = '';
if (empty($CFG->disableupdatenotifications) and is_array($plugin->available_updates())) {
foreach ($plugin->available_updates() as $availableupdate) {
$updateinfo .= $this->plugin_available_update_info($availableupdate);
}
}
$notes = new html_table_cell($requiredby.$updateinfo);
$row->cells = array(
$displayname, $systemname, $source, $version, $availability, $settings, $uninstall
$pluginname, $source, $version, $availability, $actions, $notes
);
$table->data[] = $row;
}
@@ -746,6 +1168,64 @@ class core_admin_renderer extends plugin_renderer_base {
return html_writer::table($table);
}
/**
* Helper method to render the information about the available plugin update
*
* The passed objects always provides at least the 'version' property containing
* the (higher) version of the plugin available.
*
* @param available_update_info $updateinfo information about the available update for the plugin
*/
protected function plugin_available_update_info(available_update_info $updateinfo) {
$boxclasses = 'pluginupdateinfo';
$info = array();
if (isset($updateinfo->release)) {
$info[] = html_writer::tag('span', get_string('updateavailable_release', 'core_plugin', $updateinfo->release),
array('class' => 'info release'));
}
if (isset($updateinfo->maturity)) {
$info[] = html_writer::tag('span', get_string('maturity'.$updateinfo->maturity, 'core_admin'),
array('class' => 'info maturity'));
$boxclasses .= ' maturity'.$updateinfo->maturity;
}
if (isset($updateinfo->download)) {
$info[] = html_writer::link($updateinfo->download, get_string('download'), array('class' => 'info download'));
}
if (isset($updateinfo->url)) {
$info[] = html_writer::link($updateinfo->url, get_string('updateavailable_moreinfo', 'core_plugin'),
array('class' => 'info more'));
}
$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;
}
/**
* This function will render one beautiful table with all the environmental
* configuration and how it suits Moodle needs.
+60 -12
View File
@@ -1,12 +1,27 @@
<?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/>.
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once($CFG->dirroot . '/repository/lib.php');
require_once($CFG->libdir . '/adminlib.php');
$repository = optional_param('repos', '', PARAM_FORMAT);
$action = optional_param('action', '', PARAM_ALPHA);
$sure = optional_param('sure', '', PARAM_ALPHA);
$repository = optional_param('repos', '', PARAM_ALPHANUMEXT);
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
$sure = optional_param('sure', '', PARAM_ALPHA);
$downloadcontents = optional_param('downloadcontents', false, PARAM_BOOL);
$display = true; // fall through to normal display
@@ -32,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();
@@ -42,6 +57,10 @@ $configstr = get_string('manage', 'repository');
$return = true;
if (!empty($action)) {
require_sesskey();
}
/**
* Helper function that generates a moodle_url object
* relevant to the repository
@@ -152,10 +171,10 @@ if (($action == 'edit') || ($action == 'new')) {
// Display instances list and creation form
if ($action == 'edit') {
$instanceoptionnames = repository::static_function($repository, 'get_instance_option_names');
if (!empty($instanceoptionnames)) {
repository::display_instances_list(get_context_instance(CONTEXT_SYSTEM), $repository);
}
$instanceoptionnames = repository::static_function($repository, 'get_instance_option_names');
if (!empty($instanceoptionnames)) {
repository::display_instances_list(context_system::instance(), $repository);
}
}
}
} else if ($action == 'show') {
@@ -185,7 +204,8 @@ if (($action == 'edit') || ($action == 'new')) {
if (!confirm_sesskey()) {
print_error('confirmsesskeybad', '', $baseurl);
}
if ($repositorytype->delete()) {
if ($repositorytype->delete($downloadcontents)) {
redirect($baseurl);
} else {
print_error('instancenotdeleted', 'repository', $baseurl);
@@ -193,7 +213,34 @@ if (($action == 'edit') || ($action == 'new')) {
exit;
} else {
echo $OUTPUT->header();
echo $OUTPUT->confirm(get_string('confirmremove', 'repository', $repositorytype->get_readablename()), $sesskeyurl . '&action=delete&repos=' . $repository . '&sure=yes', $baseurl);
$message = get_string('confirmremove', 'repository', $repositorytype->get_readablename());
$output = $OUTPUT->box_start('generalbox', 'notice');
$output .= html_writer::tag('p', $message);
$removeurl = new moodle_url($sesskeyurl);
$removeurl->params(array(
'action' =>'delete',
'repos' => $repository,
'sure' => 'yes',
));
$removeanddownloadurl = new moodle_url($sesskeyurl);
$removeanddownloadurl->params(array(
'action' =>'delete',
'repos'=> $repository,
'sure' => 'yes',
'downloadcontents' => 1,
));
$output .= $OUTPUT->single_button($removeurl, get_string('continueuninstall', 'repository'));
$output .= $OUTPUT->single_button($removeanddownloadurl, get_string('continueuninstallanddownload', 'repository'));
$output .= $OUTPUT->single_button($baseurl, get_string('cancel'));
$output .= $OUTPUT->box_end();
echo $output;
$return = false;
}
} else if ($action == 'moveup') {
@@ -255,7 +302,7 @@ if (($action == 'edit') || ($action == 'new')) {
// Calculate number of instances in order to display them for the Moodle administrator
if (!empty($instanceoptionnames)) {
$params = array();
$params['context'] = array(get_system_context());
$params['context'] = array(context_system::instance());
$params['onlyvisible'] = false;
$params['type'] = $typename;
$admininstancenumber = count(repository::static_function($typename, 'get_instances', $params));
@@ -305,7 +352,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
@@ -342,6 +389,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), '', '');
}
}
+58 -30
View File
@@ -1,18 +1,35 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once($CFG->dirroot . '/repository/lib.php');
require_once($CFG->libdir . '/adminlib.php');
require_sesskey();
// id of repository
$edit = optional_param('edit', 0, PARAM_INT);
$new = optional_param('new', '', PARAM_FORMAT);
$new = optional_param('new', '', PARAM_PLUGIN);
$hide = optional_param('hide', 0, PARAM_INT);
$delete = optional_param('delete', 0, PARAM_INT);
$sure = optional_param('sure', '', PARAM_ALPHA);
$type = optional_param('type', '', PARAM_PLUGIN);
$downloadcontents = optional_param('downloadcontents', false, PARAM_BOOL);
$context = get_context_instance(CONTEXT_SYSTEM);
$context = context_system::instance();
$pagename = 'repositorycontroller';
@@ -24,16 +41,20 @@ if ($edit){
$pagename = 'repositoryinstancenew';
}
admin_externalpage_setup($pagename);
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
admin_externalpage_setup($pagename, '', null, new moodle_url('/admin/repositoryinstance.php'));
require_capability('moodle/site:config', $context);
$baseurl = new moodle_url("/$CFG->admin/repositoryinstance.php", array('sesskey'=>sesskey()));
$parenturl = new moodle_url("/$CFG->admin/repository.php", array(
'sesskey'=>sesskey(),
'action'=>'edit',
));
$sesskeyurl = "$CFG->wwwroot/$CFG->admin/repositoryinstance.php?sesskey=" . sesskey();
$baseurl = "$CFG->wwwroot/$CFG->admin/repository.php?session=". sesskey() .'&action=edit&repos=';
if ($new) {
$baseurl .= $new;
}
else {
$baseurl .= $type;
$parenturl->param('repos', $new);
} else {
$parenturl->param('repos', $type);
}
$return = true;
@@ -48,7 +69,7 @@ if (!empty($edit) || !empty($new)) {
$typeid = $instance->options['typeid'];
} else {
$plugin = $new;
$typeid = $new;
$typeid = null;
$instance = null;
}
@@ -57,12 +78,9 @@ if (!empty($edit) || !empty($new)) {
// end setup, begin output
if ($mform->is_cancelled()){
redirect($baseurl);
redirect($parenturl);
exit;
} else if ($fromform = $mform->get_data()){
if (!confirm_sesskey()) {
print_error('confirmsesskeybad', '', $baseurl);
}
if ($edit) {
$settings = array();
$settings['name'] = $fromform->name;
@@ -77,13 +95,13 @@ if (!empty($edit) || !empty($new)) {
}
$success = $instance->set_option($settings);
} else {
$success = repository::static_function($plugin, 'create', $plugin, 0, get_system_context(), $fromform);
$success = repository::static_function($plugin, 'create', $plugin, 0, $context, $fromform);
$data = data_submitted();
}
if ($success) {
redirect($baseurl);
redirect($parenturl);
} else {
print_error('instancenotsaved', 'repository', $baseurl);
print_error('instancenotsaved', 'repository', $parenturl);
}
exit;
} else {
@@ -95,9 +113,6 @@ if (!empty($edit) || !empty($new)) {
$return = false;
}
} else if (!empty($hide)) {
if (!confirm_sesskey()) {
print_error('confirmsesskeybad', '', $baseurl);
}
$instance = repository::get_type_by_typename($hide);
$instance->hide();
$return = true;
@@ -108,25 +123,38 @@ if (!empty($edit) || !empty($new)) {
throw new repository_exception('readonlyinstance', 'repository');
}
if ($sure) {
if (!confirm_sesskey()) {
print_error('confirmsesskeybad', '', $baseurl);
}
if ($instance->delete()) {
if ($instance->delete($downloadcontents)) {
$deletedstr = get_string('instancedeleted', 'repository');
redirect($baseurl, $deletedstr, 3);
redirect($parenturl, $deletedstr, 3);
} else {
print_error('instancenotdeleted', 'repository', $baseurl);
print_error('instancenotdeleted', 'repository', $parenturl);
}
exit;
}
echo $OUTPUT->header();
echo $OUTPUT->confirm(get_string('confirmdelete', 'repository', $instance->name), "$sesskeyurl&type=$type'&delete=$delete'&sure=yes", "$CFG->wwwroot/$CFG->admin/repositoryinstance.php?session=". sesskey());
echo $OUTPUT->box_start('generalbox', 'notice');
$continueurl = new moodle_url($baseurl, array(
'type' => $type,
'delete' => $delete,
'sure' => 'yes',
));
$continueanddownloadurl = new moodle_url($continueurl, array(
'downloadcontents' => 1
));
$message = get_string('confirmdelete', 'repository', $instance->name);
echo html_writer::tag('p', $message);
echo $OUTPUT->single_button($continueurl, get_string('continueuninstall', 'repository'));
echo $OUTPUT->single_button($continueanddownloadurl, get_string('continueuninstallanddownload', 'repository'));
echo $OUTPUT->single_button($parenturl, get_string('cancel'));
echo $OUTPUT->box_end();
$return = false;
}
if (!empty($return)) {
redirect($baseurl);
redirect($parenturl);
}
echo $OUTPUT->footer();
+21
View File
@@ -67,6 +67,26 @@ if (optional_param('add', false, PARAM_BOOL) and confirm_sesskey()) {
}
}
} else if (optional_param('main', false, PARAM_BOOL) and confirm_sesskey()) {
if ($newmain = $admisselector->get_selected_users()) {
$newmain = reset($newmain);
$newmain = $newmain->id;
$admins = array();
foreach(explode(',', $CFG->siteadmins) as $admin) {
$admin = (int)$admin;
if ($admin) {
$admins[$admin] = $admin;
}
}
if (isset($admins[$newmain])) {
unset($admins[$newmain]);
array_unshift($admins, $newmain);
set_config('siteadmins', implode(',', $admins));
redirect($PAGE->url);
}
}
} else if ($confirmadd and confirm_sesskey()) {
$admins = array();
foreach(explode(',', $CFG->siteadmins) as $admin) {
@@ -115,6 +135,7 @@ echo $OUTPUT->header();
<p class="arrow_button">
<input name="add" id="add" type="submit" value="<?php echo $OUTPUT->larrow().'&nbsp;'.get_string('add'); ?>" title="<?php print_string('add'); ?>" /><br />
<input name="remove" id="remove" type="submit" value="<?php echo get_string('remove').'&nbsp;'.$OUTPUT->rarrow(); ?>" title="<?php print_string('remove'); ?>" />
<input name="main" id="main" type="submit" value="<?php echo get_string('mainadminset', 'role'); ?>" title="<?php print_string('mainadminset', 'role'); ?>" />
</p>
</td>
<td id='potentialcell'>
+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]();
+1 -1
View File
@@ -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) {
+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);
+218 -63
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,25 +588,13 @@ 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);
if (!is_null($shortname)) {
$this->role->shortname = $shortname;
$this->role->shortname = textlib_get_instance()->specialtoascii($this->role->shortname);
$this->role->shortname = moodle_strtolower(clean_param($this->role->shortname, PARAM_ALPHANUMEXT));
$this->role->shortname = textlib::specialtoascii($this->role->shortname);
$this->role->shortname = textlib::strtolower(clean_param($this->role->shortname, PARAM_ALPHANUMEXT));
if (empty($this->role->shortname)) {
$this->errors['shortname'] = get_string('errorbadroleshortname', 'role');
}
@@ -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)) {
@@ -779,9 +776,9 @@ 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());
echo "</div>";
@@ -862,7 +859,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 +867,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) {
@@ -936,7 +933,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);
}
@@ -999,7 +996,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,18 +1039,16 @@ 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 u.id
FROM {role_assignments} r, {user} u
WHERE r.contextid = :contextid
AND u.id = r.userid
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);
@@ -1063,7 +1058,7 @@ class potential_assignees_below_course extends role_assign_user_selector_base {
}
// 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();
@@ -1079,6 +1074,135 @@ 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 {
const MAX_ENROLLED_PER_PAGE = 100;
const MAX_POTENTIAL_PER_PAGE = 100;
/** @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::MAX_ENROLLED_PER_PAGE) {
$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::MAX_POTENTIAL_PER_PAGE) {
$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
@@ -1096,12 +1220,13 @@ class potential_assignees_course_and_above extends role_assign_user_selector_bas
$sql = " FROM {user}
WHERE $wherecondition
AND id NOT IN (
SELECT u.id
FROM {role_assignments} r, {user} u
SELECT r.userid
FROM {role_assignments} r
WHERE r.contextid = :contextid
AND u.id = r.userid
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;
@@ -1113,7 +1238,7 @@ class potential_assignees_course_and_above extends role_assign_user_selector_bas
}
}
$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();
@@ -1147,6 +1272,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
@@ -1155,7 +1283,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.
@@ -1237,7 +1365,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;
@@ -1275,8 +1403,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);
}
/**
@@ -1485,7 +1612,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));
}
@@ -1503,10 +1630,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) {
@@ -1518,9 +1649,12 @@ 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);
@@ -1529,7 +1663,7 @@ class admins_potential_selector extends user_selector_base {
}
}
$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();
@@ -1557,9 +1691,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) {
@@ -1576,7 +1713,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);
@@ -1584,13 +1724,28 @@ class admins_existing_selector extends user_selector_base {
return array();
}
if ($search) {
$groupname = get_string('extusersmatching', 'role', $search);
} else {
$groupname = get_string('extusers', 'role');
$mainadmin = array();
$mainadminuser = get_admin();
if ($mainadminuser && isset($availableusers[$mainadminuser->id])) {
$mainadmin = array($mainadminuser->id => $availableusers[$mainadminuser->id]);
unset($availableusers[$mainadminuser->id]);
}
return array($groupname => $availableusers);
$result = array();
if ($mainadmin) {
$result[get_string('mainadmin', 'role')] = $mainadmin;
}
if ($availableusers) {
if ($search) {
$groupname = get_string('extusersmatching', 'role', $search);
} else {
$groupname = get_string('extusers', 'role');
}
$result[$groupname] = $availableusers;
}
return $result;
}
protected function get_options() {
+3 -4
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;
@@ -214,7 +213,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),
'',
);
+3 -1
View File
@@ -50,8 +50,10 @@ if ($course) {
// security first
require_login($course, false, $cm);
$safeoverridesonly = false;
if (!has_capability('moodle/role:override', $context)) {
require_capability('moodle/role:safeoverride', $context);
$safeoverridesonly = true;
}
$PAGE->set_url($url);
$PAGE->set_context($context);
@@ -119,7 +121,7 @@ if (empty($overridableroles[$roleid])) {
}
// If we are actually overriding a role, create the table object, and save changes if appropriate.
$overridestable = new override_permissions_table_advanced($context, $roleid, false);
$overridestable = new override_permissions_table_advanced($context, $roleid, $safeoverridesonly);
$overridestable->read_submitted_permissions();
if (optional_param('savechanges', false, PARAM_BOOL) && confirm_sesskey()) {
+26 -22
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));
@@ -54,17 +54,25 @@ if (!$canview) {
print_error('nopermissions', 'error', '', get_string('checkpermissions', 'role'));
}
if ($userid != $USER->id) {
// If its not the current user we need to extend the navigation for that user to ensure
// their navigation is loaded and this page found upon it.
$PAGE->navigation->extend_for_user($user);
}
if ($course->id != $SITE->id || $userid != $USER->id) {
// If we're within a course OR if we're viewing another user then we need to include the
// settings base on the navigation to ensure that the navbar will contain the users name.
$PAGE->navbar->includesettingsbase = true;
}
/// 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*/"
@@ -72,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();
@@ -120,14 +130,9 @@ $title = get_string('xroleassignments', 'role', $fullname);
$PAGE->set_title($title);
if ($courseid != SITEID) {
$PAGE->set_heading($fullname);
if (has_capability('moodle/course:viewparticipants', $coursecontext)) {
$PAGE->navbar->add(get_string('participants'),new moodle_url('/user/index.php', array('id'=>$courseid)));
}
} else {
$PAGE->set_heading($course->fullname);
}
$PAGE->navbar->add($fullname, new moodle_url("$CFG->wwwroot/user/view.php", array('id'=>$userid,'course'=>$courseid)));
$PAGE->navbar->add($straction);
echo $OUTPUT->header();
echo $OUTPUT->heading($title, 3);
echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthnormal');
@@ -136,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.
@@ -160,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;
@@ -183,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);
@@ -204,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>';
+3 -4
View File
@@ -7,8 +7,9 @@ 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_course($SITE);
$PAGE->set_context(context_system::instance());
admin_externalpage_setup('search', '', array('query' => $query)); // now hidden page
$adminroot = admin_get_root(); // need all settings here
$adminroot->search = $query; // So we can reference it in search boxes later in this invocation
@@ -16,8 +17,6 @@ $statusmsg = '';
$errormsg = '';
$focus = '';
admin_externalpage_setup('search', '', array('query' => $query)); // now hidden page
// now we'll deal with the case that the admin has submitted the form with changed settings
if ($data = data_submitted() and confirm_sesskey()) {
if (admin_write_settings($data)) {
+10 -6
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,7 +32,6 @@ if (!($settingspage->check_access())) {
$statusmsg = '';
$errormsg = '';
$focus = '';
if ($data = data_submitted() and confirm_sesskey()) {
if (admin_write_settings($data)) {
@@ -47,7 +46,6 @@ if ($data = data_submitted() and confirm_sesskey()) {
} else {
$errormsg = get_string('errorwithsettings', 'admin');
$firsterror = reset($adminroot->errors);
$focus = $firsterror->id;
}
$adminroot = admin_get_root(true); //reload tree
$settingspage = $adminroot->locate($section, true);
@@ -98,13 +96,13 @@ if (empty($SITE->fullname)) {
$url->param('adminedit', 'on');
}
$buttons = $OUTPUT->single_button($url, $caption, 'get');
$PAGE->set_button($buttons);
}
$visiblepathtosection = array_reverse($settingspage->visiblepath);
$PAGE->set_title("$SITE->shortname: " . implode(": ",$visiblepathtosection));
$PAGE->set_heading($SITE->fullname);
$PAGE->set_button($buttons);
echo $OUTPUT->header();
if ($errormsg !== '') {
@@ -133,6 +131,12 @@ if (empty($SITE->fullname)) {
echo '</form>';
}
$PAGE->requires->yui_module('moodle-core-formchangechecker',
'M.core_formchangechecker.init',
array(array(
'formid' => 'adminsettings'
))
);
$PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle');
echo $OUTPUT->footer();
+129 -83
View File
@@ -4,30 +4,30 @@
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('appearance', new admin_category('themes', get_string('themes')));
$ADMIN->add('appearance', new admin_category('themes', new lang_string('themes')));
// "themesettings" settingpage
$temp = new admin_settingpage('themesettings', get_string('themesettings', 'admin'));
$temp->add(new admin_setting_configtext('themelist', get_string('themelist', 'admin'), get_string('configthemelist','admin'), '', PARAM_NOTAGS));
$setting = new admin_setting_configcheckbox('themedesignermode', get_string('themedesignermode', 'admin'), get_string('configthemedesignermode', 'admin'), 0);
$temp = new admin_settingpage('themesettings', new lang_string('themesettings', 'admin'));
$temp->add(new admin_setting_configtext('themelist', new lang_string('themelist', 'admin'), new lang_string('configthemelist','admin'), '', PARAM_NOTAGS));
$setting = new admin_setting_configcheckbox('themedesignermode', new lang_string('themedesignermode', 'admin'), new lang_string('configthemedesignermode', 'admin'), 0);
$setting->set_updatedcallback('theme_reset_all_caches');
$temp->add($setting);
$temp->add(new admin_setting_configcheckbox('allowuserthemes', get_string('allowuserthemes', 'admin'), get_string('configallowuserthemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowcoursethemes', get_string('allowcoursethemes', 'admin'), get_string('configallowcoursethemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowcategorythemes', get_string('allowcategorythemes', 'admin'), get_string('configallowcategorythemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowthemechangeonurl', get_string('allowthemechangeonurl', 'admin'), get_string('configallowthemechangeonurl', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowuserblockhiding', get_string('allowuserblockhiding', 'admin'), get_string('configallowuserblockhiding', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('allowblockstodock', get_string('allowblockstodock', 'admin'), get_string('configallowblockstodock', 'admin'), 1));
$temp->add(new admin_setting_configtextarea('custommenuitems', get_string('custommenuitems', 'admin'), get_string('configcustommenuitems', 'admin'), '', PARAM_TEXT, '50', '10'));
$temp->add(new admin_setting_configcheckbox('enabledevicedetection', get_string('enabledevicedetection', 'admin'), get_string('configenabledevicedetection', 'admin'), 1));
$temp->add(new admin_setting_devicedetectregex('devicedetectregex', get_string('devicedetectregex', 'admin'), get_string('devicedetectregex_desc', 'admin'), ''));
$temp->add(new admin_setting_configcheckbox('allowuserthemes', new lang_string('allowuserthemes', 'admin'), new lang_string('configallowuserthemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowcoursethemes', new lang_string('allowcoursethemes', 'admin'), new lang_string('configallowcoursethemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowcategorythemes', new lang_string('allowcategorythemes', 'admin'), new lang_string('configallowcategorythemes', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowthemechangeonurl', new lang_string('allowthemechangeonurl', 'admin'), new lang_string('configallowthemechangeonurl', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowuserblockhiding', new lang_string('allowuserblockhiding', 'admin'), new lang_string('configallowuserblockhiding', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('allowblockstodock', new lang_string('allowblockstodock', 'admin'), new lang_string('configallowblockstodock', 'admin'), 1));
$temp->add(new admin_setting_configtextarea('custommenuitems', new lang_string('custommenuitems', 'admin'), new lang_string('configcustommenuitems', 'admin'), '', PARAM_TEXT, '50', '10'));
$temp->add(new admin_setting_configcheckbox('enabledevicedetection', new lang_string('enabledevicedetection', 'admin'), new lang_string('configenabledevicedetection', 'admin'), 1));
$temp->add(new admin_setting_devicedetectregex('devicedetectregex', new lang_string('devicedetectregex', 'admin'), new lang_string('devicedetectregex_desc', 'admin'), ''));
$ADMIN->add('themes', $temp);
$ADMIN->add('themes', new admin_externalpage('themeselector', get_string('themeselector','admin'), $CFG->wwwroot . '/theme/index.php'));
$ADMIN->add('themes', new admin_externalpage('themeselector', new lang_string('themeselector','admin'), $CFG->wwwroot . '/theme/index.php'));
// settings for each theme
foreach (get_plugin_list('theme') as $theme => $themedir) {
$settings_path = "$themedir/settings.php";
if (file_exists($settings_path)) {
$settings = new admin_settingpage('themesetting'.$theme, get_string('pluginname', 'theme_'.$theme));
$settings = new admin_settingpage('themesetting'.$theme, new lang_string('pluginname', 'theme_'.$theme));
include($settings_path);
if ($settings) {
$ADMIN->add('themes', $settings);
@@ -37,121 +37,167 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// calendar
$temp = new admin_settingpage('calendar', get_string('calendarsettings','admin'));
$temp = new admin_settingpage('calendar', new lang_string('calendarsettings','admin'));
$temp->add(new admin_setting_special_adminseesall());
//this is hacky because we do not want to include the stuff from calendar/lib.php
$temp->add(new admin_setting_configselect('calendar_site_timeformat', get_string('pref_timeformat', 'calendar'),
get_string('explain_site_timeformat', 'calendar'), '0',
array('0' => get_string('default', 'calendar'),
'%I:%M %p' => get_string('timeformat_12', 'calendar'),
'%H:%M' => get_string('timeformat_24', 'calendar'))));
$temp->add(new admin_setting_configselect('calendar_startwday', get_string('configstartwday', 'admin'), get_string('helpstartofweek', 'admin'), 0,
$temp->add(new admin_setting_configselect('calendar_site_timeformat', new lang_string('pref_timeformat', 'calendar'),
new lang_string('explain_site_timeformat', 'calendar'), '0',
array('0' => new lang_string('default', 'calendar'),
'%I:%M %p' => new lang_string('timeformat_12', 'calendar'),
'%H:%M' => new lang_string('timeformat_24', 'calendar'))));
$temp->add(new admin_setting_configselect('calendar_startwday', new lang_string('configstartwday', 'admin'), new lang_string('helpstartofweek', 'admin'), 0,
array(
0 => get_string('sunday', 'calendar'),
1 => get_string('monday', 'calendar'),
2 => get_string('tuesday', 'calendar'),
3 => get_string('wednesday', 'calendar'),
4 => get_string('thursday', 'calendar'),
5 => get_string('friday', 'calendar'),
6 => get_string('saturday', 'calendar')
0 => new lang_string('sunday', 'calendar'),
1 => new lang_string('monday', 'calendar'),
2 => new lang_string('tuesday', 'calendar'),
3 => new lang_string('wednesday', 'calendar'),
4 => new lang_string('thursday', 'calendar'),
5 => new lang_string('friday', 'calendar'),
6 => new lang_string('saturday', 'calendar')
)));
$temp->add(new admin_setting_special_calendar_weekend());
$options = array();
for ($i=1; $i<=99; $i++) {
$options[$i] = $i;
}
$temp->add(new admin_setting_configselect('calendar_lookahead',get_string('configlookahead','admin'),get_string('helpupcominglookahead', 'admin'),21,$options));
$temp->add(new admin_setting_configselect('calendar_lookahead',new lang_string('configlookahead','admin'),new lang_string('helpupcominglookahead', 'admin'),21,$options));
$options = array();
for ($i=1; $i<=20; $i++) {
$options[$i] = $i;
}
$temp->add(new admin_setting_configselect('calendar_maxevents',get_string('configmaxevents','admin'),get_string('helpupcomingmaxevents', 'admin'),10,$options));
$temp->add(new admin_setting_configcheckbox('enablecalendarexport', get_string('enablecalendarexport', 'admin'), get_string('configenablecalendarexport','admin'), 1));
$temp->add(new admin_setting_configtext('calendar_exportsalt', get_string('calendarexportsalt','admin'), get_string('configcalendarexportsalt', 'admin'), random_string(60)));
$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));
$temp->add(new admin_setting_configtext('calendar_exportsalt', new lang_string('calendarexportsalt','admin'), new lang_string('configcalendarexportsalt', 'admin'), random_string(60)));
$ADMIN->add('appearance', $temp);
// blog
$temp = new admin_settingpage('blog', get_string('blog','blog'));
$temp->add(new admin_setting_configcheckbox('useblogassociations', get_string('useblogassociations', 'blog'), get_string('configuseblogassociations','blog'), 1));
$temp->add(new admin_setting_bloglevel('bloglevel', get_string('bloglevel', 'admin'), get_string('configbloglevel', 'admin'), 4, array(BLOG_GLOBAL_LEVEL => get_string('worldblogs','blog'),
BLOG_SITE_LEVEL => get_string('siteblogs','blog'),
BLOG_USER_LEVEL => get_string('personalblogs','blog'),
0 => get_string('disableblogs','blog'))));
$temp->add(new admin_setting_configcheckbox('useexternalblogs', get_string('useexternalblogs', 'blog'), get_string('configuseexternalblogs','blog'), 1));
$temp->add(new admin_setting_configselect('externalblogcrontime', get_string('externalblogcrontime', 'blog'), get_string('configexternalblogcrontime', 'blog'), 86400,
array(43200 => get_string('numhours', '', 12),
86400 => get_string('numhours', '', 24),
172800 => get_string('numdays', '', 2),
604800 => get_string('numdays', '', 7))));
$temp->add(new admin_setting_configtext('maxexternalblogsperuser', get_string('maxexternalblogsperuser','blog'), get_string('configmaxexternalblogsperuser', 'blog'), 1));
$temp->add(new admin_setting_configcheckbox('blogusecomments', get_string('enablecomments', 'admin'), get_string('configenablecomments', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('blogshowcommentscount', get_string('showcommentscount', 'admin'), get_string('configshowcommentscount', 'admin'), 1));
$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'))));
$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),
86400 => new lang_string('numhours', '', 24),
172800 => new lang_string('numdays', '', 2),
604800 => new lang_string('numdays', '', 7))));
$temp->add(new admin_setting_configtext('maxexternalblogsperuser', new lang_string('maxexternalblogsperuser','blog'), new lang_string('configmaxexternalblogsperuser', 'blog'), 1));
$temp->add(new admin_setting_configcheckbox('blogusecomments', new lang_string('enablecomments', 'admin'), new lang_string('configenablecomments', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('blogshowcommentscount', new lang_string('showcommentscount', 'admin'), new lang_string('configshowcommentscount', 'admin'), 1));
$ADMIN->add('appearance', $temp);
// Navigation settings
$temp = new admin_settingpage('navigation', get_string('navigation'));
$temp = new admin_settingpage('navigation', new lang_string('navigation'));
$choices = array(
HOMEPAGE_SITE => get_string('site'),
HOMEPAGE_MY => get_string('mymoodle', 'admin'),
HOMEPAGE_USER => get_string('userpreference', 'admin')
HOMEPAGE_SITE => new lang_string('site'),
HOMEPAGE_MY => new lang_string('mymoodle', 'admin'),
HOMEPAGE_USER => new lang_string('userpreference', 'admin')
);
$temp->add(new admin_setting_configselect('defaulthomepage', get_string('defaulthomepage', 'admin'), get_string('configdefaulthomepage', 'admin'), HOMEPAGE_SITE, $choices));
$temp->add(new admin_setting_configcheckbox('navshowcategories', get_string('navshowcategories', 'admin'), get_string('confignavshowcategories', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('navshowallcourses', get_string('navshowallcourses', 'admin'), get_string('confignavshowallcourses', 'admin'), 0));
$temp->add(new admin_setting_configtext('navcourselimit',get_string('navcourselimit','admin'),get_string('confignavcourselimit', 'admin'),20,PARAM_INT));
$temp->add(new admin_setting_configcheckbox('navlinkcoursesections', get_string('navlinkcoursesections', 'admin'), get_string('navlinkcoursesections_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('usesitenameforsitepages', get_string('usesitenameforsitepages', 'admin'), get_string('configusesitenameforsitepages', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('navadduserpostslinks', get_string('navadduserpostslinks', 'admin'), get_string('navadduserpostslinks_help', 'admin'), 1));
$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('navshowcategories', new lang_string('navshowcategories', 'admin'), new lang_string('confignavshowcategories', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('navshowmycoursecategories', new lang_string('navshowmycoursecategories', 'admin'), new lang_string('navshowmycoursecategories_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('navshowallcourses', new lang_string('navshowallcourses', 'admin'), new lang_string('confignavshowallcourses', 'admin'), 0));
$temp->add(new admin_setting_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));
$temp->add(new admin_setting_configcheckbox('navshowfrontpagemods', new lang_string('navshowfrontpagemods', 'admin'), new lang_string('navshowfrontpagemods_help', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('navadduserpostslinks', new lang_string('navadduserpostslinks', 'admin'), new lang_string('navadduserpostslinks_help', 'admin'), 1));
$ADMIN->add('appearance', $temp);
// "htmlsettings" settingpage
$temp = new admin_settingpage('htmlsettings', get_string('htmlsettings', 'admin'));
$temp->add(new admin_setting_configcheckbox('formatstringstriptags', get_string('stripalltitletags', 'admin'), get_string('configstripalltitletags', 'admin'), 1));
$temp = new admin_settingpage('htmlsettings', new lang_string('htmlsettings', 'admin'));
$temp->add(new admin_setting_configcheckbox('formatstringstriptags', new lang_string('stripalltitletags', 'admin'), new lang_string('configstripalltitletags', 'admin'), 1));
$temp->add(new admin_setting_emoticons());
$ADMIN->add('appearance', $temp);
$ADMIN->add('appearance', new admin_externalpage('resetemoticons', get_string('emoticonsreset', 'admin'),
$ADMIN->add('appearance', new admin_externalpage('resetemoticons', new lang_string('emoticonsreset', 'admin'),
new moodle_url('/admin/resetemoticons.php'), 'moodle/site:config', true));
// The "media" subpage.
$temp = new admin_settingpage('mediasettings', get_string('mediasettings', 'core_media'));
$temp->add(new admin_setting_heading('mediaformats', get_string('mediaformats', 'core_media'),
format_text(get_string('mediaformats_desc', 'core_media'), FORMAT_MARKDOWN)));
// External services.
$temp->add(new admin_setting_configcheckbox('core_media_enable_youtube',
get_string('siteyoutube', 'core_media'), get_string('siteyoutube_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_vimeo',
get_string('sitevimeo', 'core_media'), get_string('sitevimeo_desc', 'core_media'), 0));
// Options which require Flash.
$temp->add(new admin_setting_configcheckbox('core_media_enable_mp3',
get_string('mp3audio', 'core_media'), get_string('mp3audio_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_flv',
get_string('flashvideo', 'core_media'), get_string('flashvideo_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_swf',
get_string('flashanimation', 'core_media'), get_string('flashanimation_desc', 'core_media'), 1));
// HTML 5 media.
// Audio now enabled by default so that it can provide a fallback for mp3 on devices without flash.
$temp->add(new admin_setting_configcheckbox('core_media_enable_html5audio',
get_string('html5audio', 'core_media'), get_string('html5audio_desc', 'core_media'), 1));
// Video now enabled by default so it can provide mp4 support.
$temp->add(new admin_setting_configcheckbox('core_media_enable_html5video',
get_string('html5video', 'core_media'), get_string('html5video_desc', 'core_media'), 1));
// Legacy players.
$temp->add(new admin_setting_heading('legacymediaformats',
get_string('legacyheading', 'core_media'), get_string('legacyheading_desc', 'core_media')));
$temp->add(new admin_setting_configcheckbox('core_media_enable_qt',
get_string('legacyquicktime', 'core_media'), get_string('legacyquicktime_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_wmp',
get_string('legacywmp', 'core_media'), get_string('legacywmp_desc', 'core_media'), 1));
$temp->add(new admin_setting_configcheckbox('core_media_enable_rm',
get_string('legacyreal', 'core_media'), get_string('legacyreal_desc', 'core_media'), 1));
$ADMIN->add('appearance', $temp);
// "documentation" settingpage
$temp = new admin_settingpage('documentation', get_string('moodledocs'));
$temp->add(new admin_setting_configtext('docroot', get_string('docroot', 'admin'), get_string('configdocroot', 'admin'), 'http://docs.moodle.org', PARAM_URL));
$temp->add(new admin_setting_configcheckbox('doctonewwindow', get_string('doctonewwindow', 'admin'), get_string('configdoctonewwindow', 'admin'), 0));
$temp = new admin_settingpage('documentation', new lang_string('moodledocs'));
$temp->add(new admin_setting_configtext('docroot', new lang_string('docroot', 'admin'), new lang_string('configdocroot', 'admin'), 'http://docs.moodle.org', PARAM_URL));
$temp->add(new admin_setting_configcheckbox('doctonewwindow', new lang_string('doctonewwindow', 'admin'), new lang_string('configdoctonewwindow', 'admin'), 0));
$ADMIN->add('appearance', $temp);
$temp = new admin_externalpage('mypage', get_string('mypage', 'admin'), $CFG->wwwroot . '/my/indexsys.php');
$temp = new admin_externalpage('mypage', new lang_string('mypage', 'admin'), $CFG->wwwroot . '/my/indexsys.php');
$ADMIN->add('appearance', $temp);
$temp = new admin_externalpage('profilepage', get_string('myprofile', 'admin'), $CFG->wwwroot . '/user/profilesys.php');
$temp = new admin_externalpage('profilepage', new lang_string('myprofile', 'admin'), $CFG->wwwroot . '/user/profilesys.php');
$ADMIN->add('appearance', $temp);
// coursecontact is the person responsible for course - usually manages enrolments, receives notification, etc.
$temp = new admin_settingpage('coursecontact', get_string('courses'));
$temp = new admin_settingpage('coursecontact', new lang_string('courses'));
$temp->add(new admin_setting_special_coursecontact());
$temp->add(new admin_setting_configcheckbox('courselistshortnames',
get_string('courselistshortnames', 'admin'),
get_string('courselistshortnames_desc', 'admin'), 0));
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));
$ADMIN->add('appearance', $temp);
$temp = new admin_settingpage('ajax', get_string('ajaxuse'));
$temp->add(new admin_setting_configcheckbox('enableajax', get_string('enableajax', 'admin'), get_string('configenableajax', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('useexternalyui', get_string('useexternalyui', 'admin'), get_string('configuseexternalyui', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('yuicomboloading', get_string('yuicomboloading', 'admin'), get_string('configyuicomboloading', 'admin'), 1));
$setting = new admin_setting_configcheckbox('cachejs', get_string('cachejs', 'admin'), get_string('cachejs_help', 'admin'), 1);
$temp = new admin_settingpage('ajax', new lang_string('ajaxuse'));
$temp->add(new admin_setting_configcheckbox('enableajax', new lang_string('enableajax', 'admin'), new lang_string('configenableajax', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('useexternalyui', new lang_string('useexternalyui', 'admin'), new lang_string('configuseexternalyui', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('yuicomboloading', new lang_string('yuicomboloading', 'admin'), new lang_string('configyuicomboloading', 'admin'), 1));
$setting = new admin_setting_configcheckbox('cachejs', new lang_string('cachejs', 'admin'), new lang_string('cachejs_help', 'admin'), 1);
$setting->set_updatedcallback('js_reset_all_caches');
$temp->add($setting);
$temp->add(new admin_setting_configcheckbox('enablecourseajax', get_string('enablecourseajax', 'admin'),
get_string('enablecourseajax_desc', 'admin'), 1));
$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
$ADMIN->add('appearance', new admin_externalpage('managetags', get_string('managetags', 'tag'), "$CFG->wwwroot/tag/manage.php"));
$ADMIN->add('appearance', new admin_externalpage('managetags', new lang_string('managetags', 'tag'), "$CFG->wwwroot/tag/manage.php"));
$temp = new admin_settingpage('additionalhtml', get_string('additionalhtml', 'admin'));
$temp->add(new admin_setting_heading('additionalhtml_heading', get_string('additionalhtml_heading', 'admin'), get_string('additionalhtml_desc', 'admin')));
$temp->add(new admin_setting_configtextarea('additionalhtmlhead', get_string('additionalhtmlhead', 'admin'), get_string('additionalhtmlhead_desc', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtextarea('additionalhtmltopofbody', get_string('additionalhtmltopofbody', 'admin'), get_string('additionalhtmltopofbody_desc', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtextarea('additionalhtmlfooter', get_string('additionalhtmlfooter', 'admin'), get_string('additionalhtmlfooter_desc', 'admin'), '', PARAM_RAW));
$temp = new admin_settingpage('additionalhtml', new lang_string('additionalhtml', 'admin'));
$temp->add(new admin_setting_heading('additionalhtml_heading', new lang_string('additionalhtml_heading', 'admin'), new lang_string('additionalhtml_desc', 'admin')));
$temp->add(new admin_setting_configtextarea('additionalhtmlhead', new lang_string('additionalhtmlhead', 'admin'), new lang_string('additionalhtmlhead_desc', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtextarea('additionalhtmltopofbody', new lang_string('additionalhtmltopofbody', 'admin'), new lang_string('additionalhtmltopofbody_desc', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtextarea('additionalhtmlfooter', new lang_string('additionalhtmlfooter', 'admin'), new lang_string('additionalhtmlfooter_desc', 'admin'), '', PARAM_RAW));
$ADMIN->add('appearance', $temp);
} // end of speedup
+135 -86
View File
@@ -8,124 +8,154 @@ 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', get_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/index.php?categoryedit=on',
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
$temp = new admin_settingpage('coursesettings', get_string('coursesettings'));
$courseformats = get_plugin_list('format');
$temp = new admin_settingpage('coursesettings', new lang_string('coursesettings'));
require_once($CFG->dirroot.'/course/lib.php');
$courseformats = get_sorted_course_formats(true);
$formcourseformats = array();
foreach ($courseformats as $courseformat => $courseformatdir) {
$formcourseformats[$courseformat] = get_string('pluginname', "format_$courseformat");
foreach ($courseformats as $courseformat) {
$formcourseformats[$courseformat] = new lang_string('pluginname', "format_$courseformat");
}
$temp->add(new admin_setting_configselect('moodlecourse/format', get_string('format'), get_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', get_string('maxnumberweeks'), get_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', get_string('numberweeks'), get_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'] = get_string('hiddensectionscollapsed');
$choices['1'] = get_string('hiddensectionsinvisible');
$temp->add(new admin_setting_configselect('moodlecourse/hiddensections', get_string('hiddensections'), get_string('coursehelphiddensections'), 0,$choices));
$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', get_string('newsitemsnumber'), get_string('coursehelpnewsitemsnumber'), 5,$options));
$temp->add(new admin_setting_configselect('moodlecourse/showgrades', get_string('showgrades'), get_string('coursehelpshowgrades'), 1,array(0 => get_string('no'), 1 => get_string('yes'))));
$temp->add(new admin_setting_configselect('moodlecourse/showreports', get_string('showreports'), '', 0,array(0 => get_string('no'), 1 => get_string('yes'))));
$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'))));
$currentmaxbytes = get_config('moodlecourse', 'maxbytes');
if (isset($CFG->maxbytes)) {
$choices = get_max_upload_sizes($CFG->maxbytes);
$choices = get_max_upload_sizes($CFG->maxbytes, 0, 0, $currentmaxbytes);
} else {
$choices = get_max_upload_sizes();
$choices = get_max_upload_sizes(0, 0, 0, $currentmaxbytes);
}
$temp->add(new admin_setting_configselect('moodlecourse/maxbytes', get_string('maximumupload'), get_string('coursehelpmaximumupload'), key($choices), $choices));
$temp->add(new admin_setting_configselect('moodlecourse/maxbytes', new lang_string('maximumupload'), new lang_string('coursehelpmaximumupload'), key($choices), $choices));
if (!empty($CFG->legacyfilesinnewcourses)) {
$choices = array('0'=>get_string('no'), '2'=>get_string('yes'));
$temp->add(new admin_setting_configselect('moodlecourse/legacyfiles', get_string('courselegacyfiles'), get_string('courselegacyfiles_help'), key($choices), $choices));
$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_heading('groups', get_string('groups', 'group'), ''));
$choices = array();
$choices[NOGROUPS] = get_string('groupsnone', 'group');
$choices[SEPARATEGROUPS] = get_string('groupsseparate', 'group');
$choices[VISIBLEGROUPS] = get_string('groupsvisible', 'group');
$temp->add(new admin_setting_configselect('moodlecourse/groupmode', get_string('groupmode'), '', key($choices),$choices));
$temp->add(new admin_setting_configselect('moodlecourse/groupmodeforce', get_string('force'), get_string('coursehelpforce'), 0,array(0 => get_string('no'), 1 => get_string('yes'))));
$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));
$temp->add(new admin_setting_heading('availability', get_string('availability'), ''));
$temp->add(new admin_setting_heading('groups', new lang_string('groups', 'group'), ''));
$choices = array();
$choices['0'] = get_string('courseavailablenot');
$choices['1'] = get_string('courseavailable');
$temp->add(new admin_setting_configselect('moodlecourse/visible', get_string('visible'), '', 1,$choices));
$choices[NOGROUPS] = new lang_string('groupsnone', 'group');
$choices[SEPARATEGROUPS] = new lang_string('groupsseparate', 'group');
$choices[VISIBLEGROUPS] = new lang_string('groupsvisible', 'group');
$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('language', get_string('language'), ''));
$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[''] = get_string('forceno');
$languages[''] = new lang_string('forceno');
$languages += get_string_manager()->get_list_of_translations();
$temp->add(new admin_setting_configselect('moodlecourse/lang', get_string('forcelanguage'), '',key($languages),$languages));
$temp->add(new admin_setting_configselect('moodlecourse/lang', new lang_string('forcelanguage'), '',key($languages),$languages));
$temp->add(new admin_setting_heading('progress', get_string('progress','completion'), ''));
$temp->add(new admin_setting_configselect('moodlecourse/enablecompletion', get_string('completion','completion'), '',
0, array(0 => get_string('completiondisabled','completion'), 1 => get_string('completionenabled','completion'))));
$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', get_string('completionstartonenrol','completion'), get_string('completionstartonenrolhelp', 'completion'), 0));
$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
$temp = new admin_settingpage('courserequest', get_string('courserequest'));
$temp->add(new admin_setting_configcheckbox('enablecourserequests', get_string('enablecourserequests', 'admin'), get_string('configenablecourserequests', 'admin'), 0));
$temp->add(new admin_settings_coursecat_select('defaultrequestcategory', get_string('defaultrequestcategory', 'admin'), get_string('configdefaultrequestcategory', 'admin'), 1));
$temp->add(new admin_setting_users_with_capability('courserequestnotify', get_string('courserequestnotify', 'admin'), get_string('configcourserequestnotify2', 'admin'), array(), 'moodle/site:approvecourse'));
$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);
/// Pending course requests.
if (!empty($CFG->enablecourserequests)) {
$ADMIN->add('courses', new admin_externalpage('coursespending', get_string('pendingrequests'),
$ADMIN->add('courses', new admin_externalpage('coursespending', new lang_string('pendingrequests'),
$CFG->wwwroot . '/course/pending.php', array('moodle/site:approvecourse')));
}
// Add a category for backups
$ADMIN->add('courses', new admin_category('backups', get_string('backups','admin')));
$ADMIN->add('courses', new admin_category('backups', new lang_string('backups','admin')));
// Create a page for general backup defaults
$temp = new admin_settingpage('backupgeneralsettings', get_string('generalbackdefaults', 'backup'), 'moodle/backup:backupcourse');
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_users', get_string('generalusers','backup'), get_string('configgeneralusers','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_anonymize', get_string('generalanonymize','backup'), get_string('configgeneralanonymize','backup'), array('value'=>0, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_role_assignments', get_string('generalroleassignments','backup'), get_string('configgeneralroleassignments','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_user_files', get_string('generaluserfiles','backup'), get_string('configgeneraluserfiles','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_activities', get_string('generalactivities','backup'), get_string('configgeneralactivities','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_blocks', get_string('generalblocks','backup'), get_string('configgeneralblocks','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_filters', get_string('generalfilters','backup'), get_string('configgeneralfilters','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_comments', get_string('generalcomments','backup'), get_string('configgeneralcomments','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_userscompletion', get_string('generaluserscompletion','backup'), get_string('configgeneraluserscompletion','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_logs', get_string('generallogs','backup'), get_string('configgenerallogs','backup'), array('value'=>0, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_histories', get_string('generalhistories','backup'), get_string('configgeneralhistories','backup'), array('value'=>0, 'locked'=>0)));
// Create a page for general backups configuration and defaults.
$temp = new admin_settingpage('backupgeneralsettings', new lang_string('generalbackdefaults', 'backup'), 'moodle/backup:backupcourse');
// General configuration section.
$temp->add(new admin_setting_configselect('backup/loglifetime', new lang_string('loglifetime', 'backup'), new lang_string('configloglifetime', 'backup'), 30, array(
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)
)));
// General defaults section.
$temp->add(new admin_setting_heading('generalsettings', new lang_string('generalsettings', 'backup'), ''));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_users', new lang_string('generalusers','backup'), new lang_string('configgeneralusers','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_anonymize', new lang_string('generalanonymize','backup'), new lang_string('configgeneralanonymize','backup'), array('value'=>0, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_role_assignments', new lang_string('generalroleassignments','backup'), new lang_string('configgeneralroleassignments','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_activities', new lang_string('generalactivities','backup'), new lang_string('configgeneralactivities','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_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_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);
/// "backups" settingpage
$temp = new admin_settingpage('automated', get_string('automatedsetup','backup'), 'moodle/backup:backupcourse');
$temp->add(new admin_setting_configselect('backup/backup_auto_active', get_string('active'), get_string('autoactivedescription', 'backup'), 0, array(
0 => get_string('autoactivedisabled', 'backup'),
1 => get_string('autoactiveenabled', 'backup'),
2 => get_string('autoactivemanual', 'backup')
// Create a page for automated backups configuration and defaults.
$temp = new admin_settingpage('automated', new lang_string('automatedsetup','backup'), 'moodle/backup:backupcourse');
// Automated configuration section.
$temp->add(new admin_setting_configselect('backup/backup_auto_active', new lang_string('active'), new lang_string('autoactivedescription', 'backup'), 0, array(
0 => new lang_string('autoactivedisabled', 'backup'),
1 => new lang_string('autoactiveenabled', 'backup'),
2 => new lang_string('autoactivemanual', 'backup')
)));
$temp->add(new admin_setting_special_backupdays());
$temp->add(new admin_setting_configtime('backup/backup_auto_hour', 'backup_auto_minute', get_string('executeat'),
get_string('backupexecuteathelp'), array('h' => 0, 'm' => 0)));
$temp->add(new admin_setting_configtime('backup/backup_auto_hour', 'backup_auto_minute', new lang_string('executeat'),
new lang_string('backupexecuteathelp'), array('h' => 0, 'm' => 0)));
$storageoptions = array(
0 => get_string('storagecourseonly', 'backup'),
1 => get_string('storageexternalonly', 'backup'),
2 => get_string('storagecourseandexternal', 'backup')
0 => new lang_string('storagecourseonly', 'backup'),
1 => new lang_string('storageexternalonly', 'backup'),
2 => new lang_string('storagecourseandexternal', 'backup')
);
$temp->add(new admin_setting_configselect('backup/backup_auto_storage', get_string('automatedstorage', 'backup'), get_string('automatedstoragehelp', 'backup'), 0, $storageoptions));
$temp->add(new admin_setting_configdirectory('backup/backup_auto_destination', get_string('saveto'), get_string('backupsavetohelp'), ''));
$temp->add(new admin_setting_configselect('backup/backup_auto_storage', new lang_string('automatedstorage', 'backup'), new lang_string('automatedstoragehelp', 'backup'), 0, $storageoptions));
$temp->add(new admin_setting_configdirectory('backup/backup_auto_destination', new lang_string('saveto'), new lang_string('backupsavetohelp'), ''));
$keepoptoins = array(
0 => get_string('all'), 1 => '1',
0 => new lang_string('all'), 1 => '1',
2 => '2',
5 => '5',
10 => '10',
@@ -138,24 +168,43 @@ if ($hassiteconfig
300 => '300',
400 => '400',
500 => '500');
$temp->add(new admin_setting_configselect('backup/backup_auto_keep', get_string('keep'), get_string('backupkeephelp'), 1, $keepoptoins));
$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'), ''));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_users', new lang_string('generalusers', 'backup'), new lang_string('configgeneralusers', 'backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_role_assignments', new lang_string('generalroleassignments','backup'), new lang_string('configgeneralroleassignments','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_activities', new lang_string('generalactivities','backup'), new lang_string('configgeneralactivities','backup'), 1));
$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_userscompletion', new lang_string('generaluserscompletion','backup'), new lang_string('configgeneraluserscompletion','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_logs', new lang_string('generallogs', 'backup'), new lang_string('configgenerallogs', 'backup'), 0));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_histories', new lang_string('generalhistories','backup'), new lang_string('configgeneralhistories','backup'), 0));
$temp->add(new admin_setting_heading('automatedsettings', get_string('automatedsettings','backup'), ''));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_users', get_string('generalusers', 'backup'), get_string('configgeneralusers', 'backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_role_assignments', get_string('generalroleassignments','backup'), get_string('configgeneralroleassignments','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_user_files', get_string('generaluserfiles', 'backup'), get_string('configgeneraluserfiles','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_activities', get_string('generalactivities','backup'), get_string('configgeneralactivities','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_blocks', get_string('generalblocks','backup'), get_string('configgeneralblocks','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_filters', get_string('generalfilters','backup'), get_string('configgeneralfilters','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_comments', get_string('generalcomments','backup'), get_string('configgeneralcomments','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_userscompletion', get_string('generaluserscompletion','backup'), get_string('configgeneraluserscompletion','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_logs', get_string('generallogs', 'backup'), get_string('configgenerallogs', 'backup'), 0));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_histories', get_string('generalhistories','backup'), get_string('configgeneralhistories','backup'), 0));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_messages', get_string('messages', 'message'), get_string('backupmessageshelp','message'), 0));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_blogs', get_string('blogs', 'blog'), get_string('backupblogshelp','blog'), 0));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_messages', new lang_string('messages', 'message'), new lang_string('backupmessageshelp','message'), 0));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_blogs', new lang_string('blogs', 'blog'), new lang_string('backupblogshelp','blog'), 0));
$ADMIN->add('backups', $temp);
+43 -38
View File
@@ -5,61 +5,66 @@
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// Experimental settings page
$ADMIN->add('development', new admin_category('experimental', get_string('experimental','admin')));
$ADMIN->add('development', new admin_category('experimental', new lang_string('experimental','admin')));
$temp = new admin_settingpage('experimentalsettings', get_string('experimentalsettings', 'admin'));
$temp = new admin_settingpage('experimentalsettings', new lang_string('experimentalsettings', 'admin'));
//TODO: Re-enable cc-import once re-implemented in 2.0.x
//$temp->add(new admin_setting_configcheckbox('enableimsccimport', get_string('enable_cc_import', 'imscc'), get_string('enable_cc_import_description', 'imscc'), 0));
$temp->add(new admin_setting_configcheckbox('enablesafebrowserintegration', get_string('enablesafebrowserintegration', 'admin'), get_string('configenablesafebrowserintegration', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enablegroupmembersonly', get_string('enablegroupmembersonly', 'admin'), get_string('configenablegroupmembersonly', 'admin'), 0));
//$temp->add(new admin_setting_configcheckbox('enableimsccimport', new lang_string('enable_cc_import', 'imscc'), new lang_string('enable_cc_import_description', 'imscc'), 0));
$temp->add(new admin_setting_configcheckbox('enablesafebrowserintegration', new lang_string('enablesafebrowserintegration', 'admin'), new lang_string('configenablesafebrowserintegration', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enablegroupmembersonly', new lang_string('enablegroupmembersonly', 'admin'), new lang_string('configenablegroupmembersonly', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('dndallowtextandlinks', new lang_string('dndallowtextandlinks', 'admin'), new lang_string('configdndallowtextandlinks', 'admin'), 0));
// The CSS optimiser setting. When changed we need to reset the theme caches in order to ensure they are regenerated through the optimiser.
$enablecssoptimiser = new admin_setting_configcheckbox('enablecssoptimiser', new lang_string('enablecssoptimiser','admin'), new lang_string('enablecssoptimiser_desc','admin'), 0);
$enablecssoptimiser->set_updatedcallback('theme_reset_all_caches');
$temp->add($enablecssoptimiser);
$ADMIN->add('experimental', $temp);
// "debugging" settingpage
$temp = new admin_settingpage('debugging', get_string('debugging', 'admin'));
$temp = new admin_settingpage('debugging', new lang_string('debugging', 'admin'));
$temp->add(new admin_setting_special_debug());
$temp->add(new admin_setting_configcheckbox('debugdisplay', get_string('debugdisplay', 'admin'), get_string('configdebugdisplay', 'admin'), ini_get_bool('display_errors')));
$temp->add(new admin_setting_configcheckbox('xmlstrictheaders', get_string('xmlstrictheaders', 'admin'), get_string('configxmlstrictheaders', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('debugsmtp', get_string('debugsmtp', 'admin'), get_string('configdebugsmtp', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('perfdebug', get_string('perfdebug', 'admin'), get_string('configperfdebug', 'admin'), '7', '15', '7'));
$temp->add(new admin_setting_configcheckbox('debugstringids', get_string('debugstringids', 'admin'), get_string('debugstringids_desc', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('debugvalidators', get_string('debugvalidators', 'admin'), get_string('configdebugvalidators', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('debugpageinfo', get_string('debugpageinfo', 'admin'), get_string('configdebugpageinfo', 'admin'), 0));
$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('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));
$temp->add(new admin_setting_configcheckbox('debugvalidators', new lang_string('debugvalidators', 'admin'), new lang_string('configdebugvalidators', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('debugpageinfo', new lang_string('debugpageinfo', 'admin'), new lang_string('configdebugpageinfo', 'admin'), 0));
$ADMIN->add('development', $temp);
// "profiling" settingpage (conditionally if the 'xhprof' extension is available only)
if (extension_loaded('xhprof') && function_exists('xhprof_enable')) {
$temp = new admin_settingpage('profiling', get_string('profiling', 'admin'));
$temp = new admin_settingpage('profiling', new lang_string('profiling', 'admin'));
// Main profiling switch
$temp->add(new admin_setting_configcheckbox('profilingenabled', get_string('profilingenabled', 'admin'), get_string('profilingenabled_help', 'admin'), false));
$temp->add(new admin_setting_configcheckbox('profilingenabled', new lang_string('profilingenabled', 'admin'), new lang_string('profilingenabled_help', 'admin'), false));
// List of URLs that will be automatically profiled
$temp->add(new admin_setting_configtextarea('profilingincluded', get_string('profilingincluded', 'admin'), get_string('profilingincluded_help', 'admin'), ''));
$temp->add(new admin_setting_configtextarea('profilingincluded', new lang_string('profilingincluded', 'admin'), new lang_string('profilingincluded_help', 'admin'), ''));
// List of URLs that won't be profiled ever
$temp->add(new admin_setting_configtextarea('profilingexcluded', get_string('profilingexcluded', 'admin'), get_string('profilingexcluded_help', 'admin'), ''));
$temp->add(new admin_setting_configtextarea('profilingexcluded', new lang_string('profilingexcluded', 'admin'), new lang_string('profilingexcluded_help', 'admin'), ''));
// Allow random profiling each XX requests
$temp->add(new admin_setting_configtext('profilingautofrec', get_string('profilingautofrec', 'admin'), get_string('profilingautofrec_help', 'admin'), 0, PARAM_INT));
$temp->add(new admin_setting_configtext('profilingautofrec', new lang_string('profilingautofrec', 'admin'), new lang_string('profilingautofrec_help', 'admin'), 0, PARAM_INT));
// Allow PROFILEME/DONTPROFILEME GPC
$temp->add(new admin_setting_configcheckbox('profilingallowme', get_string('profilingallowme', 'admin'), get_string('profilingallowme_help', 'admin'), false));
$temp->add(new admin_setting_configcheckbox('profilingallowme', new lang_string('profilingallowme', 'admin'), new lang_string('profilingallowme_help', 'admin'), false));
// Allow PROFILEALL/PROFILEALLSTOP GPC
$temp->add(new admin_setting_configcheckbox('profilingallowall', get_string('profilingallowall', 'admin'), get_string('profilingallowall_help', 'admin'), false));
$temp->add(new admin_setting_configcheckbox('profilingallowall', new lang_string('profilingallowall', 'admin'), new lang_string('profilingallowall_help', 'admin'), false));
// TODO: Allow to skip PHP functions (XHPROF_FLAGS_NO_BUILTINS)
// TODO: Allow to skip call_user functions (ignored_functions array)
// Specify the life time (in minutes) of profiling runs
$temp->add(new admin_setting_configselect('profilinglifetime', get_string('profilinglifetime', 'admin'), get_string('profilinglifetime_help', 'admin'), 24*60, array(
0 => get_string('neverdeleteruns', 'admin'),
30*24*60 => get_string('numdays', '', 30),
15*24*60 => get_string('numdays', '', 15),
7*24*60 => get_string('numdays', '', 7),
4*24*60 => get_string('numdays', '', 4),
2*24*60 => get_string('numdays', '', 2),
24*60 => get_string('numhours', '', 24),
16*80 => get_string('numhours', '', 16),
8*60 => get_string('numhours', '', 8),
4*60 => get_string('numhours', '', 4),
2*60 => get_string('numhours', '', 2),
60 => get_string('numminutes', '', 60),
30 => get_string('numminutes', '', 30),
15 => get_string('numminutes', '', 15))));
$temp->add(new admin_setting_configselect('profilinglifetime', new lang_string('profilinglifetime', 'admin'), new lang_string('profilinglifetime_help', 'admin'), 24*60, array(
0 => new lang_string('neverdeleteruns', 'admin'),
30*24*60 => new lang_string('numdays', '', 30),
15*24*60 => new lang_string('numdays', '', 15),
7*24*60 => new lang_string('numdays', '', 7),
4*24*60 => new lang_string('numdays', '', 4),
2*24*60 => new lang_string('numdays', '', 2),
24*60 => new lang_string('numhours', '', 24),
16*80 => new lang_string('numhours', '', 16),
8*60 => new lang_string('numhours', '', 8),
4*60 => new lang_string('numhours', '', 4),
2*60 => new lang_string('numhours', '', 2),
60 => new lang_string('numminutes', '', 60),
30 => new lang_string('numminutes', '', 30),
15 => new lang_string('numminutes', '', 15))));
// Add the 'profiling' page to admin block
$ADMIN->add('development', $temp);
@@ -67,12 +72,12 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// Web service test clients DO NOT COMMIT : THE EXTERNAL WEB PAGE IS NOT AN ADMIN PAGE !!!!!
$ADMIN->add('development', new admin_externalpage('testclient', get_string('testclient', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/testclient.php"));
$ADMIN->add('development', new admin_externalpage('testclient', new lang_string('testclient', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/testclient.php"));
if ($CFG->mnet_dispatcher_mode !== 'off') {
$ADMIN->add('development', new admin_externalpage('mnettestclient', get_string('testclient', 'mnet'), "$CFG->wwwroot/$CFG->admin/mnet/testclient.php"));
$ADMIN->add('development', new admin_externalpage('mnettestclient', new lang_string('testclient', 'mnet'), "$CFG->wwwroot/$CFG->admin/mnet/testclient.php"));
}
$ADMIN->add('development', new admin_externalpage('purgecaches', get_string('purgecaches','admin'), "$CFG->wwwroot/$CFG->admin/purgecaches.php"));
$ADMIN->add('development', new admin_externalpage('purgecaches', new lang_string('purgecaches','admin'), "$CFG->wwwroot/$CFG->admin/purgecaches.php"));
} // end of speedup
+20 -21
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',
@@ -20,22 +20,22 @@ if (!during_initial_install()) { //do not use during installation
'moodle/question:moveall'), $frontpagecontext)) {
// "frontpage" settingpage
$temp = new admin_settingpage('frontpagesettings', get_string('frontpagesettings','admin'), 'moodle/course:update', false, $frontpagecontext);
$temp->add(new admin_setting_sitesettext('fullname', get_string('fullsitename'), '', NULL)); // no default
$temp->add(new admin_setting_sitesettext('shortname', get_string('shortsitename'), '', NULL)); // no default
$temp = new admin_settingpage('frontpagesettings', new lang_string('frontpagesettings','admin'), 'moodle/course:update', false, $frontpagecontext);
$temp->add(new admin_setting_sitesettext('fullname', new lang_string('fullsitename'), '', NULL)); // no default
$temp->add(new admin_setting_sitesettext('shortname', new lang_string('shortsitename'), '', NULL)); // no default
$temp->add(new admin_setting_special_frontpagedesc());
$temp->add(new admin_setting_courselist_frontpage(false)); // non-loggedin version of the setting (that's what the parameter is for :) )
$temp->add(new admin_setting_courselist_frontpage(true)); // loggedin version of the setting
$options = array();
$options[] = get_string('unlimited');
$options[] = new lang_string('unlimited');
for ($i=1; $i<100; $i++) {
$options[$i] = $i;
}
$temp->add(new admin_setting_configselect('maxcategorydepth', get_string('configsitemaxcategorydepth','admin'), get_string('configsitemaxcategorydepthhelp','admin'), 0, $options));
$temp->add(new admin_setting_configselect('maxcategorydepth', new lang_string('configsitemaxcategorydepth','admin'), new lang_string('configsitemaxcategorydepthhelp','admin'), 0, $options));
$temp->add(new admin_setting_sitesetcheckbox('numsections', get_string('sitesection'), get_string('sitesectionhelp','admin'), 1));
$temp->add(new admin_setting_sitesetselect('newsitems', get_string('newsitemsnumber'), '', 3,
$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,
array('0' => '0',
'1' => '1',
'2' => '2',
@@ -47,16 +47,15 @@ if (!during_initial_install()) { //do not use during installation
'8' => '8',
'9' => '9',
'10' => '10')));
$temp->add(new admin_setting_configtext('commentsperpage', get_string('commentsperpage', 'admin'), '', 15, PARAM_INT));
$temp->add(new admin_setting_configtext('coursesperpage', get_string('coursesperpage', 'admin'), get_string('configcoursesperpage', 'admin'), 20, PARAM_INT));
$temp->add(new admin_setting_configtext('commentsperpage', new lang_string('commentsperpage', 'admin'), '', 15, PARAM_INT));
// front page default role
$options = array(0=>get_string('none')); // roles to choose from
$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;
}
@@ -66,18 +65,18 @@ if (!during_initial_install()) { //do not use during installation
//frotpage role may not exist in old upgraded sites
unset($options[0]);
}
$temp->add(new admin_setting_configselect('defaultfrontpageroleid', get_string('frontpagedefaultrole', 'admin'), '', $defaultfrontpageroleid, $options));
$temp->add(new admin_setting_configselect('defaultfrontpageroleid', new lang_string('frontpagedefaultrole', 'admin'), '', $defaultfrontpageroleid, $options));
$ADMIN->add('frontpage', $temp);
$ADMIN->add('frontpage', new admin_externalpage('frontpageroles', get_string('frontpageroles', 'admin'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=" . $frontpagecontext->id, 'moodle/role:assign', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpageroles', new lang_string('frontpageroles', 'admin'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=" . $frontpagecontext->id, 'moodle/role:assign', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagefilters', get_string('frontpagefilters', 'admin'), "$CFG->wwwroot/filter/manage.php?contextid=" . $frontpagecontext->id, 'moodle/filter:manage', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagefilters', new lang_string('frontpagefilters', 'admin'), "$CFG->wwwroot/filter/manage.php?contextid=" . $frontpagecontext->id, 'moodle/filter:manage', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagebackup', get_string('frontpagebackup', 'admin'), $CFG->wwwroot.'/backup/backup.php?id='.SITEID, 'moodle/backup:backupcourse', false, $frontpagecontext));
$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', get_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',
@@ -87,10 +86,10 @@ if (!during_initial_install()) { //do not use during installation
'moodle/question:viewall',
'moodle/question:movemine',
'moodle/question:moveall');
$ADMIN->add('frontpage', new admin_externalpage('frontpagequestions', get_string('frontpagequestions', 'admin'), $CFG->wwwroot.'/question/edit.php?courseid='.SITEID, $questioncapabilities, false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('frontpagequestions', new lang_string('frontpagequestions', 'admin'), $CFG->wwwroot.'/question/edit.php?courseid='.SITEID, $questioncapabilities, false, $frontpagecontext));
if (!empty($SITE->legacyfiles) and $SITE->legacyfiles === 2) {
$ADMIN->add('frontpage', new admin_externalpage('sitefiles', get_string('sitelegacyfiles'), $CFG->wwwroot . '/files/index.php?id=' . SITEID, 'moodle/course:managefiles', false, $frontpagecontext));
$ADMIN->add('frontpage', new admin_externalpage('sitefiles', new lang_string('sitelegacyfiles'), $CFG->wwwroot . '/files/index.php?id=' . SITEID, 'moodle/course:managefiles', false, $frontpagecontext));
}
}
}
+90 -84
View File
@@ -6,21 +6,21 @@ if (has_capability('moodle/grade:manage', $systemcontext)
or has_capability('moodle/grade:manageletters', $systemcontext)) { // speedup for non-admins, add all caps used on this page
require_once $CFG->libdir.'/grade/constants.php';
$display_types = array(GRADE_DISPLAY_TYPE_REAL => get_string('real', 'grades'),
GRADE_DISPLAY_TYPE_PERCENTAGE => get_string('percentage', 'grades'),
GRADE_DISPLAY_TYPE_LETTER => get_string('letter', 'grades'),
GRADE_DISPLAY_TYPE_REAL_PERCENTAGE => get_string('realpercentage', 'grades'),
GRADE_DISPLAY_TYPE_REAL_LETTER => get_string('realletter', 'grades'),
GRADE_DISPLAY_TYPE_LETTER_REAL => get_string('letterreal', 'grades'),
GRADE_DISPLAY_TYPE_LETTER_PERCENTAGE => get_string('letterpercentage', 'grades'),
GRADE_DISPLAY_TYPE_PERCENTAGE_LETTER => get_string('percentageletter', 'grades'),
GRADE_DISPLAY_TYPE_PERCENTAGE_REAL => get_string('percentagereal', 'grades')
$display_types = array(GRADE_DISPLAY_TYPE_REAL => new lang_string('real', 'grades'),
GRADE_DISPLAY_TYPE_PERCENTAGE => new lang_string('percentage', 'grades'),
GRADE_DISPLAY_TYPE_LETTER => new lang_string('letter', 'grades'),
GRADE_DISPLAY_TYPE_REAL_PERCENTAGE => new lang_string('realpercentage', 'grades'),
GRADE_DISPLAY_TYPE_REAL_LETTER => new lang_string('realletter', 'grades'),
GRADE_DISPLAY_TYPE_LETTER_REAL => new lang_string('letterreal', 'grades'),
GRADE_DISPLAY_TYPE_LETTER_PERCENTAGE => new lang_string('letterpercentage', 'grades'),
GRADE_DISPLAY_TYPE_PERCENTAGE_LETTER => new lang_string('percentageletter', 'grades'),
GRADE_DISPLAY_TYPE_PERCENTAGE_REAL => new lang_string('percentagereal', 'grades')
);
asort($display_types);
// General settings
$temp = new admin_settingpage('gradessettings', get_string('generalsettings', 'grades'), 'moodle/grade:manage');
$temp = new admin_settingpage('gradessettings', new lang_string('generalsettings', 'grades'), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
// new CFG variable for gradebook (what roles to display)
@@ -30,33 +30,39 @@ if (has_capability('moodle/grade:manage', $systemcontext)
$temp->add(new admin_setting_grade_profilereport());
$temp->add(new admin_setting_configselect('grade_aggregationposition', get_string('aggregationposition', 'grades'),
get_string('aggregationposition_help', 'grades'), GRADE_REPORT_AGGREGATION_POSITION_LAST,
array(GRADE_REPORT_AGGREGATION_POSITION_FIRST => get_string('positionfirst', 'grades'),
GRADE_REPORT_AGGREGATION_POSITION_LAST => get_string('positionlast', 'grades'))));
$temp->add(new admin_setting_configselect('grade_aggregationposition', new lang_string('aggregationposition', 'grades'),
new lang_string('aggregationposition_help', 'grades'), GRADE_REPORT_AGGREGATION_POSITION_LAST,
array(GRADE_REPORT_AGGREGATION_POSITION_FIRST => new lang_string('positionfirst', 'grades'),
GRADE_REPORT_AGGREGATION_POSITION_LAST => new lang_string('positionlast', 'grades'))));
$temp->add(new admin_setting_regradingcheckbox('grade_includescalesinaggregation', get_string('includescalesinaggregation', 'grades'), get_string('includescalesinaggregation_help', 'grades'), 1));
$temp->add(new admin_setting_regradingcheckbox('grade_includescalesinaggregation', new lang_string('includescalesinaggregation', 'grades'), new lang_string('includescalesinaggregation_help', 'grades'), 1));
$temp->add(new admin_setting_configcheckbox('grade_hiddenasdate', get_string('hiddenasdate', 'grades'), get_string('hiddenasdate_help', 'grades'), 0));
$temp->add(new admin_setting_configcheckbox('grade_hiddenasdate', new lang_string('hiddenasdate', 'grades'), new lang_string('hiddenasdate_help', 'grades'), 0));
// enable publishing in exports/imports
$temp->add(new admin_setting_configcheckbox('gradepublishing', get_string('gradepublishing', 'grades'), get_string('gradepublishing_help', 'grades'), 0));
$temp->add(new admin_setting_configcheckbox('gradepublishing', new lang_string('gradepublishing', 'grades'), new lang_string('gradepublishing_help', 'grades'), 0));
$temp->add(new admin_setting_configselect('grade_export_displaytype', get_string('gradeexportdisplaytype', 'grades'),
get_string('gradeexportdisplaytype_desc', 'grades'), GRADE_DISPLAY_TYPE_REAL, $display_types));
$temp->add(new admin_setting_configselect('grade_export_displaytype', new lang_string('gradeexportdisplaytype', 'grades'),
new lang_string('gradeexportdisplaytype_desc', 'grades'), GRADE_DISPLAY_TYPE_REAL, $display_types));
$temp->add(new admin_setting_configselect('grade_export_decimalpoints', get_string('gradeexportdecimalpoints', 'grades'),
get_string('gradeexportdecimalpoints_desc', 'grades'), 2,
$temp->add(new admin_setting_configselect('grade_export_decimalpoints', new lang_string('gradeexportdecimalpoints', 'grades'),
new lang_string('gradeexportdecimalpoints_desc', 'grades'), 2,
array( '0' => '0',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5')));
$temp->add(new admin_setting_configselect('grade_navmethod', get_string('navmethod', 'grades'), null, 0,
array(GRADE_NAVMETHOD_DROPDOWN => get_string('dropdown', 'grades'),
GRADE_NAVMETHOD_TABS => get_string('tabs', 'grades'),
GRADE_NAVMETHOD_COMBO => get_string('combo', 'grades'))));
$temp->add(new admin_setting_configselect('grade_navmethod', new lang_string('navmethod', 'grades'), null, 0,
array(GRADE_NAVMETHOD_DROPDOWN => new lang_string('dropdown', 'grades'),
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());
@@ -65,68 +71,68 @@ if (has_capability('moodle/grade:manage', $systemcontext)
$ADMIN->add('grades', $temp);
/// Grade category settings
$temp = new admin_settingpage('gradecategorysettings', get_string('gradecategorysettings', 'grades'), 'moodle/grade:manage');
$temp = new admin_settingpage('gradecategorysettings', new lang_string('gradecategorysettings', 'grades'), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
$temp->add(new admin_setting_configcheckbox('grade_hideforcedsettings', get_string('hideforcedsettings', 'grades'), get_string('hideforcedsettings_help', 'grades'), '1'));
$temp->add(new admin_setting_configcheckbox('grade_hideforcedsettings', new lang_string('hideforcedsettings', 'grades'), new lang_string('hideforcedsettings_help', 'grades'), '1'));
$strnoforce = get_string('noforce', 'grades');
$strnoforce = new lang_string('noforce', 'grades');
// Aggregation type
$options = array(GRADE_AGGREGATE_MEAN =>get_string('aggregatemean', 'grades'),
GRADE_AGGREGATE_WEIGHTED_MEAN =>get_string('aggregateweightedmean', 'grades'),
GRADE_AGGREGATE_WEIGHTED_MEAN2 =>get_string('aggregateweightedmean2', 'grades'),
GRADE_AGGREGATE_EXTRACREDIT_MEAN=>get_string('aggregateextracreditmean', 'grades'),
GRADE_AGGREGATE_MEDIAN =>get_string('aggregatemedian', 'grades'),
GRADE_AGGREGATE_MIN =>get_string('aggregatemin', 'grades'),
GRADE_AGGREGATE_MAX =>get_string('aggregatemax', 'grades'),
GRADE_AGGREGATE_MODE =>get_string('aggregatemode', 'grades'),
GRADE_AGGREGATE_SUM =>get_string('aggregatesum', 'grades'));
$options = array(GRADE_AGGREGATE_MEAN =>new lang_string('aggregatemean', 'grades'),
GRADE_AGGREGATE_WEIGHTED_MEAN =>new lang_string('aggregateweightedmean', 'grades'),
GRADE_AGGREGATE_WEIGHTED_MEAN2 =>new lang_string('aggregateweightedmean2', 'grades'),
GRADE_AGGREGATE_EXTRACREDIT_MEAN=>new lang_string('aggregateextracreditmean', 'grades'),
GRADE_AGGREGATE_MEDIAN =>new lang_string('aggregatemedian', 'grades'),
GRADE_AGGREGATE_MIN =>new lang_string('aggregatemin', 'grades'),
GRADE_AGGREGATE_MAX =>new lang_string('aggregatemax', 'grades'),
GRADE_AGGREGATE_MODE =>new lang_string('aggregatemode', 'grades'),
GRADE_AGGREGATE_SUM =>new lang_string('aggregatesum', 'grades'));
$defaultvisible = array(GRADE_AGGREGATE_MEAN, GRADE_AGGREGATE_WEIGHTED_MEAN, GRADE_AGGREGATE_WEIGHTED_MEAN2,
GRADE_AGGREGATE_EXTRACREDIT_MEAN, GRADE_AGGREGATE_MEDIAN, GRADE_AGGREGATE_MIN,
GRADE_AGGREGATE_MAX, GRADE_AGGREGATE_MODE, GRADE_AGGREGATE_SUM);
$defaults = array('value'=>GRADE_AGGREGATE_WEIGHTED_MEAN2, 'forced'=>false, 'adv'=>false);
$temp->add(new admin_setting_gradecat_combo('grade_aggregation', get_string('aggregation', 'grades'), get_string('aggregation_help', 'grades'), $defaults, $options));
$temp->add(new admin_setting_gradecat_combo('grade_aggregation', new lang_string('aggregation', 'grades'), new lang_string('aggregation_help', 'grades'), $defaults, $options));
$temp->add(new admin_setting_configmultiselect('grade_aggregations_visible', get_string('aggregationsvisible', 'grades'),
get_string('aggregationsvisiblehelp', 'grades'), $defaultvisible, $options));
$temp->add(new admin_setting_configmultiselect('grade_aggregations_visible', new lang_string('aggregationsvisible', 'grades'),
new lang_string('aggregationsvisiblehelp', 'grades'), $defaultvisible, $options));
$options = array(0 => get_string('no'), 1 => get_string('yes'));
$options = array(0 => new lang_string('no'), 1 => new lang_string('yes'));
$defaults = array('value'=>1, 'forced'=>false, 'adv'=>true);
$temp->add(new admin_setting_gradecat_combo('grade_aggregateonlygraded', get_string('aggregateonlygraded', 'grades'),
get_string('aggregateonlygraded_help', 'grades'), $defaults, $options));
$temp->add(new admin_setting_gradecat_combo('grade_aggregateonlygraded', new lang_string('aggregateonlygraded', 'grades'),
new lang_string('aggregateonlygraded_help', 'grades'), $defaults, $options));
$defaults = array('value'=>0, 'forced'=>false, 'adv'=>true);
$temp->add(new admin_setting_gradecat_combo('grade_aggregateoutcomes', get_string('aggregateoutcomes', 'grades'),
get_string('aggregateoutcomes_help', 'grades'), $defaults, $options));
$temp->add(new admin_setting_gradecat_combo('grade_aggregatesubcats', get_string('aggregatesubcats', 'grades'),
get_string('aggregatesubcats_help', 'grades'), $defaults, $options));
$temp->add(new admin_setting_gradecat_combo('grade_aggregateoutcomes', new lang_string('aggregateoutcomes', 'grades'),
new lang_string('aggregateoutcomes_help', 'grades'), $defaults, $options));
$temp->add(new admin_setting_gradecat_combo('grade_aggregatesubcats', new lang_string('aggregatesubcats', 'grades'),
new lang_string('aggregatesubcats_help', 'grades'), $defaults, $options));
$options = array(0 => get_string('none'));
$options = array(0 => new lang_string('none'));
for ($i=1; $i<=20; $i++) {
$options[$i] = $i;
}
$defaults['value'] = 0;
$defaults['forced'] = true;
$temp->add(new admin_setting_gradecat_combo('grade_keephigh', get_string('keephigh', 'grades'),
get_string('keephigh_help', 'grades'), $defaults, $options));
$temp->add(new admin_setting_gradecat_combo('grade_keephigh', new lang_string('keephigh', 'grades'),
new lang_string('keephigh_help', 'grades'), $defaults, $options));
$defaults['forced'] = false;
$temp->add(new admin_setting_gradecat_combo('grade_droplow', get_string('droplow', 'grades'),
get_string('droplow_help', 'grades'), $defaults, $options));
$temp->add(new admin_setting_gradecat_combo('grade_droplow', new lang_string('droplow', 'grades'),
new lang_string('droplow_help', 'grades'), $defaults, $options));
}
$ADMIN->add('grades', $temp);
/// Grade item settings
$temp = new admin_settingpage('gradeitemsettings', get_string('gradeitemsettings', 'grades'), 'moodle/grade:manage');
$temp = new admin_settingpage('gradeitemsettings', new lang_string('gradeitemsettings', 'grades'), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
$temp->add(new admin_setting_configselect('grade_displaytype', get_string('gradedisplaytype', 'grades'),
get_string('gradedisplaytype_help', 'grades'), GRADE_DISPLAY_TYPE_REAL, $display_types));
$temp->add(new admin_setting_configselect('grade_displaytype', new lang_string('gradedisplaytype', 'grades'),
new lang_string('gradedisplaytype_help', 'grades'), GRADE_DISPLAY_TYPE_REAL, $display_types));
$temp->add(new admin_setting_configselect('grade_decimalpoints', get_string('decimalpoints', 'grades'),
get_string('decimalpoints_help', 'grades'), 2,
$temp->add(new admin_setting_configselect('grade_decimalpoints', new lang_string('decimalpoints', 'grades'),
new lang_string('decimalpoints_help', 'grades'), 2,
array( '0' => '0',
'1' => '1',
'2' => '2',
@@ -134,48 +140,48 @@ if (has_capability('moodle/grade:manage', $systemcontext)
'4' => '4',
'5' => '5')));
$temp->add(new admin_setting_configmultiselect('grade_item_advanced', get_string('gradeitemadvanced', 'grades'), get_string('gradeitemadvanced_help', 'grades'),
$temp->add(new admin_setting_configmultiselect('grade_item_advanced', new lang_string('gradeitemadvanced', 'grades'), new lang_string('gradeitemadvanced_help', 'grades'),
array('iteminfo', 'idnumber', 'gradepass', 'plusfactor', 'multfactor', 'display', 'decimals', 'hiddenuntil', 'locktime'),
array('iteminfo' => get_string('iteminfo', 'grades'),
'idnumber' => get_string('idnumbermod'),
'gradetype' => get_string('gradetype', 'grades'),
'scaleid' => get_string('scale'),
'grademin' => get_string('grademin', 'grades'),
'grademax' => get_string('grademax', 'grades'),
'gradepass' => get_string('gradepass', 'grades'),
'plusfactor' => get_string('plusfactor', 'grades'),
'multfactor' => get_string('multfactor', 'grades'),
'display' => get_string('gradedisplaytype', 'grades'),
'decimals' => get_string('decimalpoints', 'grades'),
'hidden' => get_string('hidden', 'grades'),
'hiddenuntil' => get_string('hiddenuntil', 'grades'),
'locked' => get_string('locked', 'grades'),
'locktime' => get_string('locktime', 'grades'),
'aggregationcoef' => get_string('aggregationcoef', 'grades'),
'parentcategory' => get_string('parentcategory', 'grades'))));
array('iteminfo' => new lang_string('iteminfo', 'grades'),
'idnumber' => new lang_string('idnumbermod'),
'gradetype' => new lang_string('gradetype', 'grades'),
'scaleid' => new lang_string('scale'),
'grademin' => new lang_string('grademin', 'grades'),
'grademax' => new lang_string('grademax', 'grades'),
'gradepass' => new lang_string('gradepass', 'grades'),
'plusfactor' => new lang_string('plusfactor', 'grades'),
'multfactor' => new lang_string('multfactor', 'grades'),
'display' => new lang_string('gradedisplaytype', 'grades'),
'decimals' => new lang_string('decimalpoints', 'grades'),
'hidden' => new lang_string('hidden', 'grades'),
'hiddenuntil' => new lang_string('hiddenuntil', 'grades'),
'locked' => new lang_string('locked', 'grades'),
'locktime' => new lang_string('locktime', 'grades'),
'aggregationcoef' => new lang_string('aggregationcoef', 'grades'),
'parentcategory' => new lang_string('parentcategory', 'grades'))));
}
$ADMIN->add('grades', $temp);
/// Scales and outcomes
$scales = new admin_externalpage('scales', get_string('scales'), $CFG->wwwroot.'/grade/edit/scale/index.php', 'moodle/grade:manage');
$scales = new admin_externalpage('scales', new lang_string('scales'), $CFG->wwwroot.'/grade/edit/scale/index.php', 'moodle/grade:manage');
$ADMIN->add('grades', $scales);
if (!empty($CFG->enableoutcomes)) {
$outcomes = new admin_externalpage('outcomes', get_string('outcomes', 'grades'), $CFG->wwwroot.'/grade/edit/outcome/index.php', 'moodle/grade:manage');
$outcomes = new admin_externalpage('outcomes', new lang_string('outcomes', 'grades'), $CFG->wwwroot.'/grade/edit/outcome/index.php', 'moodle/grade:manage');
$ADMIN->add('grades', $outcomes);
}
$letters = new admin_externalpage('letters', get_string('letters', 'grades'), $CFG->wwwroot.'/grade/edit/letter/index.php', 'moodle/grade:manageletters');
$letters = new admin_externalpage('letters', new lang_string('letters', 'grades'), $CFG->wwwroot.'/grade/edit/letter/index.php', 'moodle/grade:manageletters');
$ADMIN->add('grades', $letters);
// The plugins must implement a settings.php file that adds their admin settings to the $settings object
// Reports
$ADMIN->add('grades', new admin_category('gradereports', get_string('reportsettings', 'grades')));
$ADMIN->add('grades', new admin_category('gradereports', new lang_string('reportsettings', 'grades')));
foreach (get_plugin_list('gradereport') as $plugin => $plugindir) {
// Include all the settings commands for this plugin if there are any
if (file_exists($plugindir.'/settings.php')) {
$settings = new admin_settingpage('gradereport'.$plugin, get_string('pluginname', 'gradereport_'.$plugin), 'moodle/grade:manage');
$settings = new admin_settingpage('gradereport'.$plugin, new lang_string('pluginname', 'gradereport_'.$plugin), 'moodle/grade:manage');
include($plugindir.'/settings.php');
if ($settings) {
$ADMIN->add('gradereports', $settings);
@@ -184,12 +190,12 @@ if (has_capability('moodle/grade:manage', $systemcontext)
}
// Imports
$ADMIN->add('grades', new admin_category('gradeimports', get_string('importsettings', 'grades')));
$ADMIN->add('grades', new admin_category('gradeimports', new lang_string('importsettings', 'grades')));
foreach (get_plugin_list('gradeimport') as $plugin => $plugindir) {
// Include all the settings commands for this plugin if there are any
if (file_exists($plugindir.'/settings.php')) {
$settings = new admin_settingpage('gradeimport'.$plugin, get_string('pluginname', 'gradeimport_'.$plugin), 'moodle/grade:manage');
$settings = new admin_settingpage('gradeimport'.$plugin, new lang_string('pluginname', 'gradeimport_'.$plugin), 'moodle/grade:manage');
include($plugindir.'/settings.php');
if ($settings) {
$ADMIN->add('gradeimports', $settings);
@@ -199,11 +205,11 @@ if (has_capability('moodle/grade:manage', $systemcontext)
// Exports
$ADMIN->add('grades', new admin_category('gradeexports', get_string('exportsettings', 'grades')));
$ADMIN->add('grades', new admin_category('gradeexports', new lang_string('exportsettings', 'grades')));
foreach (get_plugin_list('gradeexport') as $plugin => $plugindir) {
// Include all the settings commands for this plugin if there are any
if (file_exists($plugindir.'/settings.php')) {
$settings = new admin_settingpage('gradeexport'.$plugin, get_string('pluginname', 'gradeexport_'.$plugin), 'moodle/grade:manage');
$settings = new admin_settingpage('gradeexport'.$plugin, new lang_string('pluginname', 'gradeexport_'.$plugin), 'moodle/grade:manage');
include($plugindir.'/settings.php');
if ($settings) {
$ADMIN->add('gradeexports', $settings);
+8 -8
View File
@@ -5,15 +5,15 @@
if ($hassiteconfig) {
// "languageandlocation" settingpage
$temp = new admin_settingpage('langsettings', get_string('languagesettings', 'admin'));
$temp->add(new admin_setting_configcheckbox('autolang', get_string('autolang', 'admin'), get_string('configautolang', 'admin'), 1));
$temp->add(new admin_setting_configselect('lang', get_string('lang', 'admin'), get_string('configlang', 'admin'), current_language(), get_string_manager()->get_list_of_translations())); // $CFG->lang might be set in installer already, default en is in setup.php
$temp->add(new admin_setting_configcheckbox('langmenu', get_string('langmenu', 'admin'), get_string('configlangmenu', 'admin'), 1));
$temp = new admin_settingpage('langsettings', new lang_string('languagesettings', 'admin'));
$temp->add(new admin_setting_configcheckbox('autolang', new lang_string('autolang', 'admin'), new lang_string('configautolang', 'admin'), 1));
$temp->add(new admin_setting_configselect('lang', new lang_string('lang', 'admin'), new lang_string('configlang', 'admin'), current_language(), get_string_manager()->get_list_of_translations())); // $CFG->lang might be set in installer already, default en is in setup.php
$temp->add(new admin_setting_configcheckbox('langmenu', new lang_string('langmenu', 'admin'), new lang_string('configlangmenu', 'admin'), 1));
$temp->add(new admin_setting_langlist());
$temp->add(new admin_setting_configcheckbox('langcache', get_string('langcache', 'admin'), get_string('langcache_desc', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('langstringcache', get_string('langstringcache', 'admin'), get_string('configlangstringcache', 'admin'), 1));
$temp->add(new admin_setting_configtext('locale', get_string('localetext', 'admin'), get_string('configlocale', 'admin'), '', PARAM_FILE));
$temp->add(new admin_setting_configselect('latinexcelexport', get_string('latinexcelexport', 'admin'), get_string('configlatinexcelexport', 'admin'), '0', array('0'=>'Unicode','1'=>'Latin')));
$temp->add(new admin_setting_configcheckbox('langcache', new lang_string('langcache', 'admin'), new lang_string('langcache_desc', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('langstringcache', new lang_string('langstringcache', 'admin'), new lang_string('configlangstringcache', 'admin'), 1));
$temp->add(new admin_setting_configtext('locale', new lang_string('localetext', 'admin'), new lang_string('configlocale', 'admin'), '', PARAM_FILE));
$temp->add(new admin_setting_configselect('latinexcelexport', new lang_string('latinexcelexport', 'admin'), new lang_string('configlatinexcelexport', 'admin'), '0', array('0'=>'Unicode','1'=>'Latin')));
$ADMIN->add('language', $temp);
+11 -11
View File
@@ -3,20 +3,20 @@
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "locations" settingpage
$temp = new admin_settingpage('locationsettings', get_string('locationsettings', 'admin'));
$temp = new admin_settingpage('locationsettings', new lang_string('locationsettings', 'admin'));
$options = get_list_of_timezones();
$options[99] = get_string('serverlocaltime');
$temp->add(new admin_setting_configselect('timezone', get_string('timezone','admin'), get_string('configtimezone', 'admin'), 99, $options));
$options[99] = get_string('timezonenotforced', 'admin');
$temp->add(new admin_setting_configselect('forcetimezone', get_string('forcetimezone', 'admin'), get_string('helpforcetimezone', 'admin'), 99, $options));
$temp->add(new admin_settings_country_select('country', get_string('country', 'admin'), get_string('configcountry', 'admin'), 0));
$temp->add(new admin_setting_configtext('defaultcity', get_string('defaultcity', 'admin'), get_string('defaultcity_help', 'admin'), ''));
$options[99] = new lang_string('serverlocaltime');
$temp->add(new admin_setting_configselect('timezone', new lang_string('timezone','admin'), new lang_string('configtimezone', 'admin'), 99, $options));
$options[99] = new lang_string('timezonenotforced', 'admin');
$temp->add(new admin_setting_configselect('forcetimezone', new lang_string('forcetimezone', 'admin'), new lang_string('helpforcetimezone', 'admin'), 99, $options));
$temp->add(new admin_settings_country_select('country', new lang_string('country', 'admin'), new lang_string('configcountry', 'admin'), 0));
$temp->add(new admin_setting_configtext('defaultcity', new lang_string('defaultcity', 'admin'), new lang_string('defaultcity_help', 'admin'), ''));
$temp->add(new admin_setting_heading('iplookup', get_string('iplookup', 'admin'), get_string('iplookupinfo', 'admin')));
$temp->add(new admin_setting_configfile('geoipfile', get_string('geoipfile', 'admin'), get_string('configgeoipfile', 'admin', $CFG->dataroot.'/geoip/'), $CFG->dataroot.'/geoip/GeoLiteCity.dat'));
$temp->add(new admin_setting_configtext('googlemapkey', get_string('googlemapkey', 'admin'), get_string('configgooglemapkey', 'admin', $CFG->wwwroot), ''));
$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('googlemapkey3', new lang_string('googlemapkey3', 'admin'), new lang_string('googlemapkey3_help', 'admin'), '', PARAM_RAW, 60));
$temp->add(new admin_setting_configtext('allcountrycodes', get_string('allcountrycodes', 'admin'), get_string('configallcountrycodes', 'admin'), '', '/^(?:\w+(?:,\w+)*)?$/'));
$temp->add(new admin_setting_configtext('allcountrycodes', new lang_string('allcountrycodes', 'admin'), new lang_string('configallcountrycodes', 'admin'), '', '/^(?:\w+(?:,\w+)*)?$/'));
$ADMIN->add('location', $temp);
+13 -10
View File
@@ -4,55 +4,58 @@
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$ADMIN->add('mnet', new admin_externalpage('net', get_string('settings', 'mnet'),
$ADMIN->add('mnet', new admin_externalpage('net', new lang_string('settings', 'mnet'),
"$CFG->wwwroot/$CFG->admin/mnet/index.php",
'moodle/site:config'));
$ADMIN->add('mnet', new admin_externalpage('mnetpeers', get_string('managemnetpeers', 'mnet'),
$ADMIN->add('mnet', new admin_externalpage('mnetpeers', new lang_string('managemnetpeers', 'mnet'),
"$CFG->wwwroot/$CFG->admin/mnet/peers.php",
'moodle/site:config'));
$ADMIN->add('mnet', new admin_category('mnetpeercat', get_string('mnetpeers', 'mnet')));
$ADMIN->add('mnet', new admin_category('mnetpeercat', new lang_string('mnetpeers', 'mnet')));
if (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode !== 'off') {
require_once($CFG->dirroot.'/mnet/lib.php');
$hosts = mnet_get_hosts();
foreach ($hosts as $host) {
if ($host->id == $CFG->mnet_all_hosts_id) {
$host->name = new lang_string('allhosts', 'core_mnet');
}
$ADMIN->add('mnetpeercat',
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'
)
);
}
}
$ADMIN->add('mnet', new admin_externalpage('ssoaccesscontrol', get_string('ssoaccesscontrol', 'mnet'),
$ADMIN->add('mnet', new admin_externalpage('ssoaccesscontrol', new lang_string('ssoaccesscontrol', 'mnet'),
"$CFG->wwwroot/$CFG->admin/mnet/access_control.php",
'moodle/site:config'));
$ADMIN->add('mnet', new admin_externalpage('mnetenrol', get_string('clientname', 'mnetservice_enrol'),
$ADMIN->add('mnet', new admin_externalpage('mnetenrol', new lang_string('clientname', 'mnetservice_enrol'),
"$CFG->wwwroot/mnet/service/enrol/index.php",
'moodle/site:config'));
$ADMIN->add('mnet', new admin_externalpage('trustedhosts', get_string('trustedhosts', 'mnet'),
$ADMIN->add('mnet', new admin_externalpage('trustedhosts', new lang_string('trustedhosts', 'mnet'),
"$CFG->wwwroot/$CFG->admin/mnet/trustedhosts.php",
'moodle/site:config'));
if (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode !== 'off') {
$profilefields = new admin_settingpage('mnetprofilefields', get_string('profilefields', 'mnet'),
$profilefields = new admin_settingpage('mnetprofilefields', new lang_string('profilefields', 'mnet'),
'moodle/site:config');
$ADMIN->add('mnet', $profilefields);
$fields = mnet_profile_field_options();
$forced = implode(', ', $fields['forced']);
$profilefields->add(new admin_setting_configmultiselect('mnetprofileexportfields', get_string('profileexportfields', 'mnet'), get_string('profilefielddesc', 'mnet', $forced), $fields['legacy'], $fields['optional']));
$profilefields->add(new admin_setting_configmultiselect('mnetprofileimportfields', get_string('profileimportfields', 'mnet'), get_string('profilefielddesc', 'mnet', $forced), $fields['legacy'], $fields['optional']));
$profilefields->add(new admin_setting_configmultiselect('mnetprofileexportfields', new lang_string('profileexportfields', 'mnet'), new lang_string('profilefielddesc', 'mnet', $forced), $fields['legacy'], $fields['optional']));
$profilefields->add(new admin_setting_configmultiselect('mnetprofileimportfields', new lang_string('profileimportfields', 'mnet'), new lang_string('profilefielddesc', 'mnet', $forced), $fields['legacy'], $fields['optional']));
}
+192 -267
View File
@@ -5,212 +5,144 @@
*/
if ($hassiteconfig) {
require_once("$CFG->libdir/pluginlib.php");
$allplugins = plugin_manager::instance()->get_plugins();
$ADMIN->add('modules', new admin_page_pluginsoverview());
$ADMIN->add('modules', new admin_category('modsettings', get_string('activitymodules')));
// 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 = get_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));
$ADMIN->add('modules', new admin_category('blocksettings', get_string('blocks')));
// 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 = get_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', get_string('messageoutputs', 'message')));
$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 = get_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
$ADMIN->add('modules', new admin_category('authsettings', get_string('authentication', 'admin')));
$ADMIN->add('modules', new admin_category('authsettings', new lang_string('authentication', 'admin')));
$temp = new admin_settingpage('manageauths', get_string('authsettings', 'admin'));
$temp = new admin_settingpage('manageauths', new lang_string('authsettings', 'admin'));
$temp->add(new admin_setting_manageauths());
$temp->add(new admin_setting_heading('manageauthscommonheading', get_string('commonsettings', 'admin'), ''));
$temp->add(new admin_setting_heading('manageauthscommonheading', new lang_string('commonsettings', 'admin'), ''));
$temp->add(new admin_setting_special_registerauth());
$temp->add(new admin_setting_configcheckbox('authpreventaccountcreation', get_string('authpreventaccountcreation', 'admin'), get_string('authpreventaccountcreation_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('loginpageautofocus', get_string('loginpageautofocus', 'admin'), get_string('loginpageautofocus_help', 'admin'), 0));
$temp->add(new admin_setting_configselect('guestloginbutton', get_string('guestloginbutton', 'auth'),
get_string('showguestlogin', 'auth'), '1', array('0'=>get_string('hide'), '1'=>get_string('show'))));
$temp->add(new admin_setting_configtext('alternateloginurl', get_string('alternateloginurl', 'auth'),
get_string('alternatelogin', 'auth', htmlspecialchars(get_login_url())), ''));
$temp->add(new admin_setting_configtext('forgottenpasswordurl', get_string('forgottenpasswordurl', 'auth'),
get_string('forgottenpassword', 'auth'), ''));
$temp->add(new admin_setting_confightmleditor('auth_instructions', get_string('instructions', 'auth'),
get_string('authinstructions', 'auth'), ''));
$temp->add(new admin_setting_configtext('allowemailaddresses', get_string('allowemailaddresses', 'admin'), get_string('configallowemailaddresses', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('denyemailaddresses', get_string('denyemailaddresses', 'admin'), get_string('configdenyemailaddresses', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configcheckbox('verifychangedemail', get_string('verifychangedemail', 'admin'), get_string('configverifychangedemail', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('authpreventaccountcreation', new lang_string('authpreventaccountcreation', 'admin'), new lang_string('authpreventaccountcreation_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('loginpageautofocus', new lang_string('loginpageautofocus', 'admin'), new lang_string('loginpageautofocus_help', 'admin'), 0));
$temp->add(new admin_setting_configselect('guestloginbutton', new lang_string('guestloginbutton', 'auth'),
new lang_string('showguestlogin', 'auth'), '1', array('0'=>new lang_string('hide'), '1'=>new lang_string('show'))));
$temp->add(new admin_setting_configtext('alternateloginurl', new lang_string('alternateloginurl', 'auth'),
new lang_string('alternatelogin', 'auth', htmlspecialchars(get_login_url())), ''));
$temp->add(new admin_setting_configtext('forgottenpasswordurl', new lang_string('forgottenpasswordurl', 'auth'),
new lang_string('forgottenpassword', 'auth'), ''));
$temp->add(new admin_setting_confightmleditor('auth_instructions', new lang_string('instructions', 'auth'),
new lang_string('authinstructions', 'auth'), ''));
$temp->add(new admin_setting_configtext('allowemailaddresses', new lang_string('allowemailaddresses', 'admin'), new lang_string('configallowemailaddresses', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('denyemailaddresses', new lang_string('denyemailaddresses', 'admin'), new lang_string('configdenyemailaddresses', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configcheckbox('verifychangedemail', new lang_string('verifychangedemail', 'admin'), new lang_string('configverifychangedemail', 'admin'), 1));
$temp->add(new admin_setting_configtext('recaptchapublickey', get_string('recaptchapublickey', 'admin'), get_string('configrecaptchapublickey', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('recaptchaprivatekey', get_string('recaptchaprivatekey', 'admin'), get_string('configrecaptchaprivatekey', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('recaptchapublickey', new lang_string('recaptchapublickey', 'admin'), new lang_string('configrecaptchapublickey', 'admin'), '', PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('recaptchaprivatekey', new lang_string('recaptchaprivatekey', 'admin'), new lang_string('configrecaptchaprivatekey', 'admin'), '', PARAM_NOTAGS));
$ADMIN->add('authsettings', $temp);
$auths = get_plugin_list('auth');
$authsenabled = get_enabled_auth_plugins();
foreach ($auths as $authname => $authdir) {
$strauthname = get_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', get_string('enrolments', 'enrol')));
$temp = new admin_settingpage('manageenrols', get_string('manageenrols', 'enrol'));
$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, get_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', get_string('editors', 'editor')));
$temp = new admin_settingpage('manageeditors', get_string('editorsettings', 'editor'));
$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, get_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
$ADMIN->add('modules', new admin_category('licensesettings', get_string('licenses')));
$temp = new admin_settingpage('managelicenses', get_string('managelicenses', 'admin'));
$ADMIN->add('modules', new admin_category('licensesettings', new lang_string('licenses')));
$temp = new admin_settingpage('managelicenses', new lang_string('managelicenses', 'admin'));
require_once($CFG->libdir . '/licenselib.php');
$licenses = array();
$array = explode(',', $CFG->licenses);
foreach ($array as $value) {
$licenses[$value] = get_string($value, 'license');
$licenses[$value] = new lang_string($value, 'license');
}
$temp->add(new admin_setting_configselect('sitedefaultlicense', get_string('configsitedefaultlicense','admin'), get_string('configsitedefaultlicensehelp','admin'), 'allrightsreserved', $licenses));
$temp->add(new admin_setting_configselect('sitedefaultlicense', new lang_string('configsitedefaultlicense','admin'), new lang_string('configsitedefaultlicensehelp','admin'), 'allrightsreserved', $licenses));
$temp->add(new admin_setting_managelicenses());
$ADMIN->add('licensesettings', $temp);
/// Filter plugins
$ADMIN->add('modules', new admin_category('filtersettings', get_string('managefilters')));
$ADMIN->add('modules', new admin_category('filtersettings', new lang_string('managefilters')));
$ADMIN->add('filtersettings', new admin_page_managefilters());
// "filtersettings" settingpage
$temp = new admin_settingpage('commonfiltersettings', get_string('commonfiltersettings', 'admin'));
$temp = new admin_settingpage('commonfiltersettings', new lang_string('commonfiltersettings', 'admin'));
if ($ADMIN->fulltree) {
$cachetimes = array(
604800 => get_string('numdays','',7),
86400 => get_string('numdays','',1),
43200 => get_string('numhours','',12),
10800 => get_string('numhours','',3),
7200 => get_string('numhours','',2),
3600 => get_string('numhours','',1),
2700 => get_string('numminutes','',45),
1800 => get_string('numminutes','',30),
900 => get_string('numminutes','',15),
600 => get_string('numminutes','',10),
540 => get_string('numminutes','',9),
480 => get_string('numminutes','',8),
420 => get_string('numminutes','',7),
360 => get_string('numminutes','',6),
300 => get_string('numminutes','',5),
240 => get_string('numminutes','',4),
180 => get_string('numminutes','',3),
120 => get_string('numminutes','',2),
60 => get_string('numminutes','',1),
30 => get_string('numseconds','',30),
0 => get_string('no')
604800 => new lang_string('numdays','',7),
86400 => new lang_string('numdays','',1),
43200 => new lang_string('numhours','',12),
10800 => new lang_string('numhours','',3),
7200 => new lang_string('numhours','',2),
3600 => new lang_string('numhours','',1),
2700 => new lang_string('numminutes','',45),
1800 => new lang_string('numminutes','',30),
900 => new lang_string('numminutes','',15),
600 => new lang_string('numminutes','',10),
540 => new lang_string('numminutes','',9),
480 => new lang_string('numminutes','',8),
420 => new lang_string('numminutes','',7),
360 => new lang_string('numminutes','',6),
300 => new lang_string('numminutes','',5),
240 => new lang_string('numminutes','',4),
180 => new lang_string('numminutes','',3),
120 => new lang_string('numminutes','',2),
60 => new lang_string('numminutes','',1),
30 => new lang_string('numseconds','',30),
0 => new lang_string('no')
);
$items = array();
$items[] = new admin_setting_configselect('cachetext', get_string('cachetext', 'admin'), get_string('configcachetext', 'admin'), 60, $cachetimes);
$items[] = new admin_setting_configselect('filteruploadedfiles', get_string('filteruploadedfiles', 'admin'), get_string('configfilteruploadedfiles', 'admin'), 0,
array('0' => get_string('none'), '1' => get_string('allfiles'), '2' => get_string('htmlfilesonly')));
$items[] = new admin_setting_configcheckbox('filtermatchoneperpage', get_string('filtermatchoneperpage', 'admin'), get_string('configfiltermatchoneperpage', 'admin'), 0);
$items[] = new admin_setting_configcheckbox('filtermatchonepertext', get_string('filtermatchonepertext', 'admin'), get_string('configfiltermatchonepertext', 'admin'), 0);
$items[] = new admin_setting_configselect('cachetext', new lang_string('cachetext', 'admin'), new lang_string('configcachetext', 'admin'), 60, $cachetimes);
$items[] = new admin_setting_configselect('filteruploadedfiles', new lang_string('filteruploadedfiles', 'admin'), new lang_string('configfilteruploadedfiles', 'admin'), 0,
array('0' => new lang_string('none'), '1' => new lang_string('allfiles'), '2' => new lang_string('htmlfilesonly')));
$items[] = new admin_setting_configcheckbox('filtermatchoneperpage', new lang_string('filtermatchoneperpage', 'admin'), new lang_string('configfiltermatchoneperpage', 'admin'), 0);
$items[] = new admin_setting_configcheckbox('filtermatchonepertext', new lang_string('filtermatchonepertext', 'admin'), new lang_string('configfiltermatchonepertext', 'admin'), 0);
foreach ($items as $item) {
$item->set_updatedcallback('reset_text_filters_cache');
$temp->add($item);
@@ -218,24 +150,15 @@ 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);
}
//== Portfolio settings ==
require_once($CFG->libdir. '/portfoliolib.php');
$catname = get_string('portfolios', 'portfolio');
$manage = get_string('manageportfolios', 'portfolio');
$catname = new lang_string('portfolios', 'portfolio');
$manage = new lang_string('manageportfolios', 'portfolio');
$url = "$CFG->wwwroot/$CFG->admin/portfolio.php";
$ADMIN->add('modules', new admin_category('portfoliosettings', $catname, empty($CFG->enableportfolios)));
@@ -245,37 +168,37 @@ if ($hassiteconfig) {
$ADMIN->add('portfoliosettings', $temp);
// Add common settings page
$temp = new admin_settingpage('manageportfolioscommon', get_string('commonportfoliosettings', 'portfolio'));
$temp->add(new admin_setting_heading('manageportfolioscommon', '', get_string('commonsettingsdesc', 'portfolio')));
$temp = new admin_settingpage('manageportfolioscommon', new lang_string('commonportfoliosettings', 'portfolio'));
$temp->add(new admin_setting_heading('manageportfolioscommon', '', new lang_string('commonsettingsdesc', 'portfolio')));
$fileinfo = portfolio_filesize_info(); // make sure this is defined in one place since its used inside portfolio too to detect insane settings
$fileoptions = $fileinfo['options'];
$temp->add(new admin_setting_configselect(
'portfolio_moderate_filesize_threshold',
get_string('moderatefilesizethreshold', 'portfolio'),
get_string('moderatefilesizethresholddesc', 'portfolio'),
new lang_string('moderatefilesizethreshold', 'portfolio'),
new lang_string('moderatefilesizethresholddesc', 'portfolio'),
$fileinfo['moderate'], $fileoptions));
$temp->add(new admin_setting_configselect(
'portfolio_high_filesize_threshold',
get_string('highfilesizethreshold', 'portfolio'),
get_string('highfilesizethresholddesc', 'portfolio'),
new lang_string('highfilesizethreshold', 'portfolio'),
new lang_string('highfilesizethresholddesc', 'portfolio'),
$fileinfo['high'], $fileoptions));
$temp->add(new admin_setting_configtext(
'portfolio_moderate_db_threshold',
get_string('moderatedbsizethreshold', 'portfolio'),
get_string('moderatedbsizethresholddesc', 'portfolio'),
20, PARAM_INTEGER, 3));
new lang_string('moderatedbsizethreshold', 'portfolio'),
new lang_string('moderatedbsizethresholddesc', 'portfolio'),
20, PARAM_INT, 3));
$temp->add(new admin_setting_configtext(
'portfolio_high_db_threshold',
get_string('highdbsizethreshold', 'portfolio'),
get_string('highdbsizethresholddesc', 'portfolio'),
50, PARAM_INTEGER, 3));
new lang_string('highdbsizethreshold', 'portfolio'),
new lang_string('highdbsizethresholddesc', 'portfolio'),
50, PARAM_INT, 3));
$ADMIN->add('portfoliosettings', $temp);
$ADMIN->add('portfoliosettings', new admin_externalpage('portfolionew', get_string('addnewportfolio', 'portfolio'), $url, 'moodle/site:config', true), '', $url);
$ADMIN->add('portfoliosettings', new admin_externalpage('portfoliodelete', get_string('deleteportfolio', 'portfolio'), $url, 'moodle/site:config', true), '', $url);
$ADMIN->add('portfoliosettings', new admin_externalpage('portfoliocontroller', get_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), '', $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);
foreach (portfolio_instances(false, false) as $portfolio) {
require_once($CFG->dirroot . '/portfolio/' . $portfolio->get('plugin') . '/lib.php');
@@ -295,8 +218,8 @@ if ($hassiteconfig) {
// repository setting
require_once("$CFG->dirroot/repository/lib.php");
$catname =get_string('repositories', 'repository');
$managerepo = get_string('manage', 'repository');
$catname =new lang_string('repositories', 'repository');
$managerepo = new lang_string('manage', 'repository');
$url = $CFG->wwwroot.'/'.$CFG->admin.'/repository.php';
$ADMIN->add('modules', new admin_category('repositorysettings', $catname));
@@ -305,133 +228,117 @@ if ($hassiteconfig) {
$ADMIN->add('repositorysettings', $temp);
// Add common settings page
$temp = new admin_settingpage('managerepositoriescommon', get_string('commonrepositorysettings', 'repository'));
$temp->add(new admin_setting_configtext('repositorycacheexpire', get_string('cacheexpire', 'repository'), get_string('configcacheexpire', 'repository'), 120));
$temp->add(new admin_setting_configcheckbox('repositoryallowexternallinks', get_string('allowexternallinks', 'repository'), get_string('configallowexternallinks', 'repository'), 1));
$temp->add(new admin_setting_configcheckbox('legacyfilesinnewcourses', get_string('legacyfilesinnewcourses', 'admin'), get_string('legacyfilesinnewcourses_help', 'admin'), 0));
$temp = new admin_settingpage('managerepositoriescommon', new lang_string('commonrepositorysettings', 'repository'));
$temp->add(new admin_setting_configtext('repositorycacheexpire', new lang_string('cacheexpire', 'repository'), new lang_string('configcacheexpire', 'repository'), 120));
$temp->add(new admin_setting_configcheckbox('repositoryallowexternallinks', new lang_string('allowexternallinks', 'repository'), new lang_string('configallowexternallinks', 'repository'), 1));
$temp->add(new admin_setting_configcheckbox('legacyfilesinnewcourses', new lang_string('legacyfilesinnewcourses', 'admin'), new lang_string('legacyfilesinnewcourses_help', 'admin'), 0));
$ADMIN->add('repositorysettings', $temp);
$ADMIN->add('repositorysettings', new admin_externalpage('repositorynew',
get_string('addplugin', 'repository'), $url, 'moodle/site:config', true),
new lang_string('addplugin', 'repository'), $url, 'moodle/site:config', true),
'', $url);
$ADMIN->add('repositorysettings', new admin_externalpage('repositorydelete',
get_string('deleterepository', 'repository'), $url, 'moodle/site:config', true),
new lang_string('deleterepository', 'repository'), $url, 'moodle/site:config', true),
'', $url);
$ADMIN->add('repositorysettings', new admin_externalpage('repositorycontroller',
get_string('manage', 'repository'), $url, 'moodle/site:config', true),
new lang_string('manage', 'repository'), $url, 'moodle/site:config', true),
'', $url);
$ADMIN->add('repositorysettings', new admin_externalpage('repositoryinstancenew',
get_string('createrepository', 'repository'), $url, 'moodle/site:config', true),
new lang_string('createrepository', 'repository'), $url, 'moodle/site:config', true),
'', $url);
$ADMIN->add('repositorysettings', new admin_externalpage('repositoryinstanceedit',
get_string('editrepositoryinstance', 'repository'), $url, 'moodle/site:config', true),
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)) {
$ADMIN->add('repositorysettings',
new admin_externalpage('repositorysettings'.$repositorytype->get_typename(),
$repositorytype->get_readablename(),
$url . '?action=edit&repos=' . $repositorytype->get_typename()),
'moodle/site:config');
}
foreach ($allplugins['repository'] as $repositorytype) {
$repositorytype->load_settings($ADMIN, 'repositorysettings', $hassiteconfig);
}
}
/// Web services
$ADMIN->add('modules', new admin_category('webservicesettings', get_string('webservices', 'webservice')));
$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', get_string('webservicesoverview', 'webservice'));
$temp = new admin_settingpage('webservicesoverview', new lang_string('webservicesoverview', 'webservice'));
$temp->add(new admin_setting_webservicesoverview());
$ADMIN->add('webservicesettings', $temp);
//API documentation
$ADMIN->add('webservicesettings', new admin_externalpage('webservicedocumentation', get_string('wsdocapi', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/documentation.php", 'moodle/site:config', false));
$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', get_string('externalservices', 'webservice'));
$enablemobiledocurl = new moodle_url(get_docs_url('Enable_mobile_web_services'));
$enablemobiledoclink = html_writer::link($enablemobiledocurl, get_string('documentation'));
$temp->add(new admin_setting_enablemobileservice('enablemobilewebservice', get_string('enablemobilewebservice', 'admin'), get_string('configenablemobilewebservice', 'admin', $enablemobiledoclink), 0));
$temp->add(new admin_setting_heading('manageserviceshelpexplaination', get_string('information', 'webservice'), get_string('servicehelpexplanation', 'webservice')));
$temp = new admin_settingpage('externalservices', new lang_string('externalservices', 'webservice'));
$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);
$ADMIN->add('webservicesettings', new admin_externalpage('externalservice', get_string('editaservice', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/service.php", 'moodle/site:config', true));
$ADMIN->add('webservicesettings', new admin_externalpage('externalservicefunctions', get_string('externalservicefunctions', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/service_functions.php", 'moodle/site:config', true));
$ADMIN->add('webservicesettings', new admin_externalpage('externalserviceusers', get_string('externalserviceusers', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/service_users.php", 'moodle/site:config', true));
$ADMIN->add('webservicesettings', new admin_externalpage('externalserviceusersettings', get_string('serviceusersettings', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/service_user_settings.php", 'moodle/site:config', true));
$ADMIN->add('webservicesettings', new admin_externalpage('externalservice', new lang_string('editaservice', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/service.php", 'moodle/site:config', true));
$ADMIN->add('webservicesettings', new admin_externalpage('externalservicefunctions', new lang_string('externalservicefunctions', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/service_functions.php", 'moodle/site:config', true));
$ADMIN->add('webservicesettings', new admin_externalpage('externalserviceusers', new lang_string('externalserviceusers', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/service_users.php", 'moodle/site:config', true));
$ADMIN->add('webservicesettings', new admin_externalpage('externalserviceusersettings', new lang_string('serviceusersettings', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/service_user_settings.php", 'moodle/site:config', true));
/// manage protocol page link
$temp = new admin_settingpage('webserviceprotocols', get_string('manageprotocols', 'webservice'));
$temp = new admin_settingpage('webserviceprotocols', new lang_string('manageprotocols', 'webservice'));
$temp->add(new admin_setting_managewebserviceprotocols());
if (empty($CFG->enablewebservices)) {
$temp->add(new admin_setting_heading('webservicesaredisabled', '', get_string('disabledwarning', 'webservice')));
$temp->add(new admin_setting_heading('webservicesaredisabled', '', new lang_string('disabledwarning', 'webservice')));
}
// We cannot use $OUTPUT this early, doing so means that we lose the ability
// to set the page layout on all admin pages.
// $wsdoclink = $OUTPUT->doc_link('How_to_get_a_security_key');
$url = new moodle_url(get_docs_url('How_to_get_a_security_key'));
$wsdoclink = html_writer::tag('a', get_string('supplyinfo'),array('href'=>$url));
$temp->add(new admin_setting_configcheckbox('enablewsdocumentation', get_string('enablewsdocumentation',
'admin'), get_string('configenablewsdocumentation', 'admin', $wsdoclink), false));
$wsdoclink = html_writer::tag('a', new lang_string('supplyinfo', 'webservice'), array('href'=>$url));
$temp->add(new admin_setting_configcheckbox('enablewsdocumentation', new lang_string('enablewsdocumentation',
'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 = get_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', get_string('managetokens', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/tokens.php", 'moodle/site:config', true));
$temp = new admin_settingpage('webservicetokens', get_string('managetokens', 'webservice'));
$ADMIN->add('webservicesettings', new admin_externalpage('addwebservicetoken', new lang_string('managetokens', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/tokens.php", 'moodle/site:config', true));
$temp = new admin_settingpage('webservicetokens', new lang_string('managetokens', 'webservice'));
$temp->add(new admin_setting_managewebservicetokens());
if (empty($CFG->enablewebservices)) {
$temp->add(new admin_setting_heading('webservicesaredisabled', '', get_string('disabledwarning', 'webservice')));
$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', get_string('questionbehaviours', 'admin')));
$ADMIN->add('modules', new admin_category('qbehavioursettings', new lang_string('questionbehaviours', 'admin')));
$ADMIN->add('qbehavioursettings', new admin_page_manageqbehaviours());
// Question type settings.
$ADMIN->add('modules', new admin_category('qtypesettings', get_string('questiontypes', 'admin')));
$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,
get_string('pluginname', 'qtype_' . $qtype), 'moodle/question:config');
include($settingsfile);
if ($settings) {
$ADMIN->add('qtypesettings', $settings);
}
}
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', get_string('plagiarism', 'plagiarism')));
$temp = new admin_settingpage('plagiarismsettings', get_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, get_string($plugin, 'plagiarism_'.$plugin), "$CFG->wwwroot/plagiarism/$plugin/settings.php", 'moodle/site:config'));
}
$ADMIN->add('modules', new admin_category('plagiarism', new lang_string('plagiarism', 'plagiarism')));
$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', get_string('comments'), $CFG->wwwroot.'/comment/', 'moodle/site:viewreports'));
$ADMIN->add('reports', new admin_externalpage('comments', new lang_string('comments'), $CFG->wwwroot.'/comment/', 'moodle/site:viewreports'));
// Course reports settings
if ($hassiteconfig) {
@@ -440,7 +347,7 @@ if ($hassiteconfig) {
$file = $CFG->dirroot . '/course/report/' . $report . '/settings.php';
if (file_exists($file)) {
$settings = new admin_settingpage('coursereport' . $report,
get_string('pluginname', 'coursereport_' . $report), 'moodle/site:config');
new lang_string('pluginname', 'coursereport_' . $report), 'moodle/site:config');
// settings.php may create a subcategory or unset the settings completely
include($file);
if ($settings) {
@@ -449,7 +356,7 @@ if ($hassiteconfig) {
}
}
if (!empty($pages)) {
$ADMIN->add('modules', new admin_category('coursereports', get_string('coursereports')));
$ADMIN->add('modules', new admin_category('coursereports', new lang_string('coursereports')));
foreach ($pages as $page) {
$ADMIN->add('coursereports', $page);
}
@@ -463,20 +370,27 @@ foreach (get_plugin_list('report') as $report => $plugindir) {
$settings_path = "$plugindir/settings.php";
if (file_exists($settings_path)) {
$settings = new admin_settingpage('report' . $report,
get_string('pluginname', 'report_' . $report), 'moodle/site:config');
new lang_string('pluginname', 'report_' . $report), 'moodle/site:config');
include($settings_path);
if ($settings) {
$pages[] = $settings;
}
}
}
$ADMIN->add('modules', new admin_category('reportplugins', get_string('reports')));
$ADMIN->add('reportplugins', new admin_externalpage('managereports', get_string('reportsmanage', 'admin'),
$ADMIN->add('modules', new admin_category('reportplugins', new lang_string('reports')));
$ADMIN->add('reportplugins', new admin_externalpage('managereports', new lang_string('reportsmanage', 'admin'),
$CFG->wwwroot . '/' . $CFG->admin . '/reports.php'));
foreach ($pages as $page) {
$ADMIN->add('reportplugins', $page);
}
/// Add all admin tools
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('tools', new lang_string('tools', 'admin')));
$ADMIN->add('tools', new admin_externalpage('managetools', new lang_string('toolsmanage', 'admin'),
$CFG->wwwroot . '/' . $CFG->admin . '/tools.php'));
}
// Now add various admin tools
foreach (get_plugin_list('tool') as $plugin => $plugindir) {
$settings_path = "$plugindir/settings.php";
@@ -485,20 +399,31 @@ foreach (get_plugin_list('tool') as $plugin => $plugindir) {
}
}
/// Add all admin tools
// Now add the Cache plugins
if ($hassiteconfig) {
$ADMIN->add('modules', new admin_category('tools', get_string('tools', 'admin')));
$ADMIN->add('tools', new admin_externalpage('managetools', get_string('toolsmanage', 'admin'),
$CFG->wwwroot . '/' . $CFG->admin . '/tools.php'));
$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', get_string('localplugins')));
$ADMIN->add('localplugins', new admin_externalpage('managelocalplugins', get_string('localpluginsmanage'),
$ADMIN->add('modules', new admin_category('localplugins', new lang_string('localplugins')));
$ADMIN->add('localplugins', new admin_externalpage('managelocalplugins', new lang_string('localpluginsmanage'),
$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)) {
+70 -81
View File
@@ -3,112 +3,101 @@
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "ip blocker" settingpage
$temp = new admin_settingpage('ipblocker', get_string('ipblocker', 'admin'));
$temp->add(new admin_setting_configcheckbox('allowbeforeblock', get_string('allowbeforeblock', 'admin'), get_string('allowbeforeblockdesc', 'admin'), 0));
$temp->add(new admin_setting_configiplist('allowedip', get_string('allowediplist', 'admin'),
get_string('ipblockersyntax', 'admin'), ''));
$temp->add(new admin_setting_configiplist('blockedip', get_string('blockediplist', 'admin'),
get_string('ipblockersyntax', 'admin'), ''));
$temp = new admin_settingpage('ipblocker', new lang_string('ipblocker', 'admin'));
$temp->add(new admin_setting_configcheckbox('allowbeforeblock', new lang_string('allowbeforeblock', 'admin'), new lang_string('allowbeforeblockdesc', 'admin'), 0));
$temp->add(new admin_setting_configiplist('allowedip', new lang_string('allowediplist', 'admin'),
new lang_string('ipblockersyntax', 'admin'), ''));
$temp->add(new admin_setting_configiplist('blockedip', new lang_string('blockediplist', 'admin'),
new lang_string('ipblockersyntax', 'admin'), ''));
$ADMIN->add('security', $temp);
// "sitepolicies" settingpage
$temp = new admin_settingpage('sitepolicies', get_string('sitepolicies', 'admin'));
$temp->add(new admin_setting_configcheckbox('protectusernames', get_string('protectusernames', 'admin'), get_string('configprotectusernames', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('forcelogin', get_string('forcelogin', 'admin'), get_string('configforcelogin', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('forceloginforprofiles', get_string('forceloginforprofiles', 'admin'), get_string('configforceloginforprofiles', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('opentogoogle', get_string('opentogoogle', 'admin'), get_string('configopentogoogle', 'admin'), 0));
$temp = new admin_settingpage('sitepolicies', new lang_string('sitepolicies', 'admin'));
$temp->add(new admin_setting_configcheckbox('protectusernames', new lang_string('protectusernames', 'admin'), new lang_string('configprotectusernames', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('forcelogin', new lang_string('forcelogin', 'admin'), new lang_string('configforcelogin', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('forceloginforprofiles', new lang_string('forceloginforprofiles', 'admin'), new lang_string('configforceloginforprofiles', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('forceloginforprofileimage', new lang_string('forceloginforprofileimage', 'admin'), new lang_string('forceloginforprofileimage_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('opentogoogle', new lang_string('opentogoogle', 'admin'), new lang_string('configopentogoogle', 'admin'), 0));
$temp->add(new admin_setting_pickroles('profileroles',
get_string('profileroles','admin'),
get_string('configprofileroles', 'admin'),
new lang_string('profileroles','admin'),
new lang_string('configprofileroles', 'admin'),
array('student', 'teacher', 'editingteacher')));
$max_upload_choices = get_max_upload_sizes();
// maxbytes set to 0 will allow the maximum server limit for uploads
$max_upload_choices[0] = get_string('serverlimit', 'admin');
$temp->add(new admin_setting_configselect('maxbytes', get_string('maxbytes', 'admin'), get_string('configmaxbytes', 'admin'), 0, $max_upload_choices));
$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;
$params = new stdClass();
$params->bytes = $defaultuserquota;
$params->displaysize = display_size($defaultuserquota);
$temp->add(new admin_setting_configtext('userquota', get_string('userquota', 'admin'), get_string('configuserquota', 'admin', $params), $defaultuserquota));
$temp->add(new admin_setting_configtext('userquota', new lang_string('userquota', 'admin'), new lang_string('configuserquota', 'admin', $params), $defaultuserquota));
$temp->add(new admin_setting_configcheckbox('allowobjectembed', get_string('allowobjectembed', 'admin'), get_string('configallowobjectembed', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enabletrusttext', get_string('enabletrusttext', 'admin'), get_string('configenabletrusttext', 'admin'), 0));
$temp->add(new admin_setting_configselect('maxeditingtime', get_string('maxeditingtime','admin'), get_string('configmaxeditingtime','admin'), 1800,
array(60 => get_string('numminutes', '', 1),
300 => get_string('numminutes', '', 5),
900 => get_string('numminutes', '', 15),
1800 => get_string('numminutes', '', 30),
2700 => get_string('numminutes', '', 45),
3600 => get_string('numminutes', '', 60))));
$temp->add(new admin_setting_configselect('fullnamedisplay', get_string('fullnamedisplay', 'admin'), get_string('configfullnamedisplay', 'admin'),
'language', array('language' => get_string('language'),
'firstname lastname' => get_string('firstname').' + '.get_string('lastname'),
'lastname firstname' => get_string('lastname').' + '.get_string('firstname'),
'firstname' => get_string('firstname'))));
$temp->add(new admin_setting_configcheckbox('extendedusernamechars', get_string('extendedusernamechars', 'admin'), get_string('configextendedusernamechars', 'admin'), 0));
$temp->add(new admin_setting_configtext('sitepolicy', get_string('sitepolicy', 'admin'), get_string('sitepolicy_help', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtext('sitepolicyguest', get_string('sitepolicyguest', 'admin'), get_string('sitepolicyguest_help', 'admin'), (isset($CFG->sitepolicy) ? $CFG->sitepolicy : ''), PARAM_RAW));
$temp->add(new admin_setting_configcheckbox('extendedusernamechars', get_string('extendedusernamechars', 'admin'), get_string('configextendedusernamechars', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('keeptagnamecase', get_string('keeptagnamecase','admin'),get_string('configkeeptagnamecase', 'admin'),'1'));
$temp->add(new admin_setting_configcheckbox('allowobjectembed', new lang_string('allowobjectembed', 'admin'), new lang_string('configallowobjectembed', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enabletrusttext', new lang_string('enabletrusttext', 'admin'), new lang_string('configenabletrusttext', 'admin'), 0));
$temp->add(new admin_setting_configselect('maxeditingtime', new lang_string('maxeditingtime','admin'), new lang_string('configmaxeditingtime','admin'), 1800,
array(60 => new lang_string('numminutes', '', 1),
300 => new lang_string('numminutes', '', 5),
900 => new lang_string('numminutes', '', 15),
1800 => new lang_string('numminutes', '', 30),
2700 => new lang_string('numminutes', '', 45),
3600 => new lang_string('numminutes', '', 60))));
$temp->add(new admin_setting_configselect('fullnamedisplay', new lang_string('fullnamedisplay', 'admin'), new lang_string('configfullnamedisplay', 'admin'),
'language', array('language' => new lang_string('language'),
'firstname lastname' => new lang_string('firstname').' + '.new lang_string('lastname'),
'lastname firstname' => new lang_string('lastname').' + '.new lang_string('firstname'),
'firstname' => new lang_string('firstname'))));
$temp->add(new admin_setting_configcheckbox('extendedusernamechars', new lang_string('extendedusernamechars', 'admin'), new lang_string('configextendedusernamechars', 'admin'), 0));
$temp->add(new admin_setting_configtext('sitepolicy', new lang_string('sitepolicy', 'admin'), new lang_string('sitepolicy_help', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtext('sitepolicyguest', new lang_string('sitepolicyguest', 'admin'), new lang_string('sitepolicyguest_help', 'admin'), (isset($CFG->sitepolicy) ? $CFG->sitepolicy : ''), PARAM_RAW));
$temp->add(new admin_setting_configcheckbox('extendedusernamechars', new lang_string('extendedusernamechars', 'admin'), new lang_string('configextendedusernamechars', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('keeptagnamecase', new lang_string('keeptagnamecase','admin'),new lang_string('configkeeptagnamecase', 'admin'),'1'));
$temp->add(new admin_setting_configcheckbox('profilesforenrolledusersonly', get_string('profilesforenrolledusersonly','admin'),get_string('configprofilesforenrolledusersonly', 'admin'),'1'));
$temp->add(new admin_setting_configcheckbox('profilesforenrolledusersonly', new lang_string('profilesforenrolledusersonly','admin'),new lang_string('configprofilesforenrolledusersonly', 'admin'),'1'));
$temp->add(new admin_setting_configcheckbox('cronclionly', get_string('cronclionly', 'admin'), get_string('configcronclionly', 'admin'), 0));
$temp->add(new admin_setting_configpasswordunmask('cronremotepassword', get_string('cronremotepassword', 'admin'), get_string('configcronremotepassword', 'admin'), ''));
$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'), ''));
$temp->add(new admin_setting_configcheckbox('passwordpolicy', get_string('passwordpolicy', 'admin'), get_string('configpasswordpolicy', 'admin'), 1));
$temp->add(new admin_setting_configtext('minpasswordlength', get_string('minpasswordlength', 'admin'), get_string('configminpasswordlength', 'admin'), 8, PARAM_INT));
$temp->add(new admin_setting_configtext('minpassworddigits', get_string('minpassworddigits', 'admin'), get_string('configminpassworddigits', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('minpasswordlower', get_string('minpasswordlower', 'admin'), get_string('configminpasswordlower', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('minpasswordupper', get_string('minpasswordupper', 'admin'), get_string('configminpasswordupper', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('minpasswordnonalphanum', get_string('minpasswordnonalphanum', 'admin'), get_string('configminpasswordnonalphanum', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('maxconsecutiveidentchars', get_string('maxconsecutiveidentchars', 'admin'), get_string('configmaxconsecutiveidentchars', 'admin'), 0, PARAM_INT));
$temp->add(new admin_setting_configcheckbox('groupenrolmentkeypolicy', get_string('groupenrolmentkeypolicy', 'admin'), get_string('groupenrolmentkeypolicy_desc', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('disableuserimages', get_string('disableuserimages', 'admin'), get_string('configdisableuserimages', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('emailchangeconfirmation', get_string('emailchangeconfirmation', 'admin'), get_string('configemailchangeconfirmation', 'admin'), 1));
$temp->add(new admin_setting_configselect('rememberusername', get_string('rememberusername','admin'), get_string('rememberusername_desc','admin'), 2, array(1=>get_string('yes'), 0=>get_string('no'), 2=>get_string('optional'))));
$temp->add(new admin_setting_configcheckbox('strictformsrequired', get_string('strictformsrequired', 'admin'), get_string('configstrictformsrequired', 'admin'), 0));
$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));
$temp->add(new admin_setting_configtext('minpasswordlower', new lang_string('minpasswordlower', 'admin'), new lang_string('configminpasswordlower', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('minpasswordupper', new lang_string('minpasswordupper', 'admin'), new lang_string('configminpasswordupper', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('minpasswordnonalphanum', new lang_string('minpasswordnonalphanum', 'admin'), new lang_string('configminpasswordnonalphanum', 'admin'), 1, PARAM_INT));
$temp->add(new admin_setting_configtext('maxconsecutiveidentchars', new lang_string('maxconsecutiveidentchars', 'admin'), new lang_string('configmaxconsecutiveidentchars', 'admin'), 0, PARAM_INT));
$temp->add(new admin_setting_configcheckbox('groupenrolmentkeypolicy', new lang_string('groupenrolmentkeypolicy', 'admin'), new lang_string('groupenrolmentkeypolicy_desc', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('disableuserimages', new lang_string('disableuserimages', 'admin'), new lang_string('configdisableuserimages', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('emailchangeconfirmation', new lang_string('emailchangeconfirmation', 'admin'), new lang_string('configemailchangeconfirmation', 'admin'), 1));
$temp->add(new admin_setting_configselect('rememberusername', new lang_string('rememberusername','admin'), new lang_string('rememberusername_desc','admin'), 2, array(1=>new lang_string('yes'), 0=>new lang_string('no'), 2=>new lang_string('optional'))));
$temp->add(new admin_setting_configcheckbox('strictformsrequired', new lang_string('strictformsrequired', 'admin'), new lang_string('configstrictformsrequired', 'admin'), 0));
$ADMIN->add('security', $temp);
// "httpsecurity" settingpage
$temp = new admin_settingpage('httpsecurity', get_string('httpsecurity', 'admin'));
$temp->add(new admin_setting_configcheckbox('loginhttps', get_string('loginhttps', 'admin'), get_string('configloginhttps', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('cookiesecure', get_string('cookiesecure', 'admin'), get_string('configcookiesecure', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('cookiehttponly', get_string('cookiehttponly', 'admin'), get_string('configcookiehttponly', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowframembedding', get_string('allowframembedding', 'admin'), get_string('allowframembedding_help', 'admin'), 0));
$temp = new admin_settingpage('httpsecurity', new lang_string('httpsecurity', 'admin'));
$temp->add(new admin_setting_configcheckbox('loginhttps', new lang_string('loginhttps', 'admin'), new lang_string('configloginhttps', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('cookiesecure', new lang_string('cookiesecure', 'admin'), new lang_string('configcookiesecure', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('cookiehttponly', new lang_string('cookiehttponly', 'admin'), new lang_string('configcookiehttponly', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('allowframembedding', new lang_string('allowframembedding', 'admin'), new lang_string('allowframembedding_help', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('loginpasswordautocomplete', new lang_string('loginpasswordautocomplete', 'admin'), new lang_string('loginpasswordautocomplete_help', 'admin'), 0));
$ADMIN->add('security', $temp);
// "modulesecurity" settingpage
$temp = new admin_settingpage('modulesecurity', get_string('modulesecurity', 'admin'));
$temp->add(new admin_setting_configselect('restrictmodulesfor', get_string('restrictmodulesfor', 'admin'), get_string('configrestrictmodulesfor', 'admin'), 'none', array('none' => get_string('nocourses'),
'all' => get_string('fulllistofcourses'),
'requested' => get_string('requestedcourses'))));
$temp->add(new admin_setting_configcheckbox('restrictbydefault', get_string('restrictbydefault', 'admin'), get_string('configrestrictbydefault', 'admin'), 0));
$temp->add(new admin_setting_configmultiselect_modules('defaultallowedmodules',
get_string('defaultallowedmodules', 'admin'),
get_string('configdefaultallowedmodules', 'admin')));
$ADMIN->add('security', $temp);
// "notifications" settingpage
$temp = new admin_settingpage('notifications', get_string('notifications', 'admin'));
$temp->add(new admin_setting_configselect('displayloginfailures', get_string('displayloginfailures', 'admin'), get_string('configdisplayloginfailures', 'admin'), '', array('' => get_string('nobody'),
'admin' => get_string('administrators'),
'teacher' => get_string('administratorsandteachers'),
'everybody' => get_string('everybody'))));
$temp->add(new admin_setting_users_with_capability('notifyloginfailures', get_string('notifyloginfailures', 'admin'), get_string('confignotifyloginfailures', 'admin'), array(), 'moodle/site:config'));
$temp = new admin_settingpage('notifications', new lang_string('notifications', 'admin'));
$temp->add(new admin_setting_configselect('displayloginfailures', new lang_string('displayloginfailures', 'admin'), new lang_string('configdisplayloginfailures', 'admin'), '', array('' => new lang_string('nobody'),
'admin' => new lang_string('administrators'),
'teacher' => new lang_string('administratorsandteachers'),
'everybody' => new lang_string('everybody'))));
$temp->add(new admin_setting_users_with_capability('notifyloginfailures', new lang_string('notifyloginfailures', 'admin'), new lang_string('confignotifyloginfailures', 'admin'), array(), 'moodle/site:config'));
$options = array();
for ($i = 1; $i <= 100; $i++) {
$options[$i] = $i;
}
$temp->add(new admin_setting_configselect('notifyloginthreshold', get_string('notifyloginthreshold', 'admin'), get_string('confignotifyloginthreshold', 'admin'), '10', $options));
$temp->add(new admin_setting_configselect('notifyloginthreshold', new lang_string('notifyloginthreshold', 'admin'), new lang_string('confignotifyloginthreshold', 'admin'), '10', $options));
$ADMIN->add('security', $temp);
@@ -117,12 +106,12 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "antivirus" settingpage
$temp = new admin_settingpage('antivirus', get_string('antivirus', 'admin'));
$temp->add(new admin_setting_configcheckbox('runclamonupload', get_string('runclamavonupload', 'admin'), get_string('configrunclamavonupload', 'admin'), 0));
$temp->add(new admin_setting_configexecutable('pathtoclam', get_string('pathtoclam', 'admin'), get_string('configpathtoclam', 'admin'), ''));
$temp->add(new admin_setting_configdirectory('quarantinedir', get_string('quarantinedir', 'admin'), get_string('configquarantinedir', 'admin'), ''));
$temp->add(new admin_setting_configselect('clamfailureonupload', get_string('clamfailureonupload', 'admin'), get_string('configclamfailureonupload', 'admin'), 'donothing', array('donothing' => get_string('configclamdonothing', 'admin'),
'actlikevirus' => get_string('configclamactlikevirus', 'admin'))));
$temp = new admin_settingpage('antivirus', new lang_string('antivirus', 'admin'));
$temp->add(new admin_setting_configcheckbox('runclamonupload', new lang_string('runclamavonupload', 'admin'), new lang_string('configrunclamavonupload', 'admin'), 0));
$temp->add(new admin_setting_configexecutable('pathtoclam', new lang_string('pathtoclam', 'admin'), new lang_string('configpathtoclam', 'admin'), ''));
$temp->add(new admin_setting_configdirectory('quarantinedir', new lang_string('quarantinedir', 'admin'), new lang_string('configquarantinedir', 'admin'), ''));
$temp->add(new admin_setting_configselect('clamfailureonupload', new lang_string('clamfailureonupload', 'admin'), new lang_string('configclamfailureonupload', 'admin'), 'donothing', array('donothing' => new lang_string('configclamdonothing', 'admin'),
'actlikevirus' => new lang_string('configclamactlikevirus', 'admin'))));
$ADMIN->add('security', $temp);
} // end of speedup
+148 -147
View File
@@ -6,19 +6,19 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// "systempaths" settingpage
$temp = new admin_settingpage('systempaths', get_string('systempaths','admin'));
$temp->add(new admin_setting_configselect('gdversion', get_string('gdversion','admin'), get_string('configgdversion', 'admin'), check_gd_version(), array('0' => get_string('gdnot'),
'1' => get_string('gd1'),
'2' => get_string('gd2'))));
$temp->add(new admin_setting_configexecutable('pathtodu', get_string('pathtodu', 'admin'), get_string('configpathtodu', 'admin'), ''));
$temp->add(new admin_setting_configexecutable('aspellpath', get_string('aspellpath', 'admin'), get_string('edhelpaspellpath'), ''));
$temp->add(new admin_setting_configexecutable('pathtodot', get_string('pathtodot', 'admin'), get_string('pathtodot_help', 'admin'), ''));
$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'), ''));
$ADMIN->add('server', $temp);
// "supportcontact" settingpage
$temp = new admin_settingpage('supportcontact', get_string('supportcontact','admin'));
$temp = new admin_settingpage('supportcontact', new lang_string('supportcontact','admin'));
if (isloggedin()) {
global $USER;
$primaryadminemail = $USER->email;
@@ -29,158 +29,158 @@ if (isloggedin()) {
$primaryadminemail = NULL;
$primaryadminname = NULL;
}
$temp->add(new admin_setting_configtext('supportname', get_string('supportname', 'admin'), get_string('configsupportname', 'admin'), $primaryadminname, PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('supportemail', get_string('supportemail', 'admin'), get_string('configsupportemail', 'admin'), $primaryadminemail, PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('supportpage', get_string('supportpage', 'admin'), get_string('configsupportpage', 'admin'), '', PARAM_URL));
$temp->add(new admin_setting_configtext('supportname', new lang_string('supportname', 'admin'), new lang_string('configsupportname', 'admin'), $primaryadminname, PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('supportemail', new lang_string('supportemail', 'admin'), new lang_string('configsupportemail', 'admin'), $primaryadminemail, PARAM_NOTAGS));
$temp->add(new admin_setting_configtext('supportpage', new lang_string('supportpage', 'admin'), new lang_string('configsupportpage', 'admin'), '', PARAM_URL));
$ADMIN->add('server', $temp);
// "sessionhandling" settingpage
$temp = new admin_settingpage('sessionhandling', get_string('sessionhandling', 'admin'));
$temp->add(new admin_setting_configcheckbox('dbsessions', get_string('dbsessions', 'admin'), get_string('configdbsessions', 'admin'), 1));
$temp->add(new admin_setting_configselect('sessiontimeout', get_string('sessiontimeout', 'admin'), get_string('configsessiontimeout', 'admin'), 7200, array(14400 => get_string('numhours', '', 4),
10800 => get_string('numhours', '', 3),
7200 => get_string('numhours', '', 2),
5400 => get_string('numhours', '', '1.5'),
3600 => get_string('numminutes', '', 60),
2700 => get_string('numminutes', '', 45),
1800 => get_string('numminutes', '', 30),
900 => get_string('numminutes', '', 15),
300 => get_string('numminutes', '', 5))));
$temp->add(new admin_setting_configtext('sessioncookie', get_string('sessioncookie', 'admin'), get_string('configsessioncookie', 'admin'), '', PARAM_ALPHANUM));
$temp->add(new admin_setting_configtext('sessioncookiepath', get_string('sessioncookiepath', 'admin'), get_string('configsessioncookiepath', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtext('sessioncookiedomain', get_string('sessioncookiedomain', 'admin'), get_string('configsessioncookiedomain', 'admin'), '', PARAM_RAW, 50));
$temp = new admin_settingpage('sessionhandling', new lang_string('sessionhandling', 'admin'));
$temp->add(new admin_setting_configcheckbox('dbsessions', new lang_string('dbsessions', 'admin'), new lang_string('configdbsessions', 'admin'), 1));
$temp->add(new admin_setting_configselect('sessiontimeout', new lang_string('sessiontimeout', 'admin'), new lang_string('configsessiontimeout', 'admin'), 7200, array(14400 => new lang_string('numhours', '', 4),
10800 => new lang_string('numhours', '', 3),
7200 => new lang_string('numhours', '', 2),
5400 => new lang_string('numhours', '', '1.5'),
3600 => new lang_string('numminutes', '', 60),
2700 => new lang_string('numminutes', '', 45),
1800 => new lang_string('numminutes', '', 30),
900 => new lang_string('numminutes', '', 15),
300 => new lang_string('numminutes', '', 5))));
$temp->add(new admin_setting_configtext('sessioncookie', new lang_string('sessioncookie', 'admin'), new lang_string('configsessioncookie', 'admin'), '', PARAM_ALPHANUM));
$temp->add(new admin_setting_configtext('sessioncookiepath', new lang_string('sessioncookiepath', 'admin'), new lang_string('configsessioncookiepath', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtext('sessioncookiedomain', new lang_string('sessioncookiedomain', 'admin'), new lang_string('configsessioncookiedomain', 'admin'), '', PARAM_RAW, 50));
$ADMIN->add('server', $temp);
// "stats" settingpage
$temp = new admin_settingpage('stats', get_string('stats'), 'moodle/site:config', empty($CFG->enablestats));
$temp->add(new admin_setting_configselect('statsfirstrun', get_string('statsfirstrun', 'admin'), get_string('configstatsfirstrun', 'admin'), 'none', array('none' => get_string('none'),
60*60*24*7 => get_string('numweeks','moodle',1),
60*60*24*14 => get_string('numweeks','moodle',2),
60*60*24*21 => get_string('numweeks','moodle',3),
60*60*24*28 => get_string('nummonths','moodle',1),
60*60*24*56 => get_string('nummonths','moodle',2),
60*60*24*84 => get_string('nummonths','moodle',3),
60*60*24*112 => get_string('nummonths','moodle',4),
60*60*24*140 => get_string('nummonths','moodle',5),
60*60*24*168 => get_string('nummonths','moodle',6),
'all' => get_string('all') )));
$temp->add(new admin_setting_configselect('statsmaxruntime', get_string('statsmaxruntime', 'admin'), get_string('configstatsmaxruntime3', 'admin'), 0, array(0 => get_string('untilcomplete'),
60*30 => '10 '.get_string('minutes'),
60*30 => '30 '.get_string('minutes'),
60*60 => '1 '.get_string('hour'),
60*60*2 => '2 '.get_string('hours'),
60*60*3 => '3 '.get_string('hours'),
60*60*4 => '4 '.get_string('hours'),
60*60*5 => '5 '.get_string('hours'),
60*60*6 => '6 '.get_string('hours'),
60*60*7 => '7 '.get_string('hours'),
60*60*8 => '8 '.get_string('hours') )));
$temp->add(new admin_setting_configtext('statsruntimedays', get_string('statsruntimedays', 'admin'), get_string('configstatsruntimedays', 'admin'), 31, PARAM_INT));
$temp->add(new admin_setting_configtime('statsruntimestarthour', 'statsruntimestartminute', get_string('statsruntimestart', 'admin'), get_string('configstatsruntimestart', 'admin'), array('h' => 0, 'm' => 0)));
$temp->add(new admin_setting_configtext('statsuserthreshold', get_string('statsuserthreshold', 'admin'), get_string('configstatsuserthreshold', 'admin'), 0, PARAM_INT));
$temp = new admin_settingpage('stats', new lang_string('stats'), 'moodle/site:config', empty($CFG->enablestats));
$temp->add(new admin_setting_configselect('statsfirstrun', new lang_string('statsfirstrun', 'admin'), new lang_string('configstatsfirstrun', 'admin'), 'none', array('none' => new lang_string('none'),
60*60*24*7 => new lang_string('numweeks','moodle',1),
60*60*24*14 => new lang_string('numweeks','moodle',2),
60*60*24*21 => new lang_string('numweeks','moodle',3),
60*60*24*28 => new lang_string('nummonths','moodle',1),
60*60*24*56 => new lang_string('nummonths','moodle',2),
60*60*24*84 => new lang_string('nummonths','moodle',3),
60*60*24*112 => new lang_string('nummonths','moodle',4),
60*60*24*140 => new lang_string('nummonths','moodle',5),
60*60*24*168 => new lang_string('nummonths','moodle',6),
'all' => new lang_string('all') )));
$temp->add(new admin_setting_configselect('statsmaxruntime', new lang_string('statsmaxruntime', 'admin'), new lang_string('configstatsmaxruntime3', 'admin'), 0, array(0 => new lang_string('untilcomplete'),
60*30 => '10 '.new lang_string('minutes'),
60*30 => '30 '.new lang_string('minutes'),
60*60 => '1 '.new lang_string('hour'),
60*60*2 => '2 '.new lang_string('hours'),
60*60*3 => '3 '.new lang_string('hours'),
60*60*4 => '4 '.new lang_string('hours'),
60*60*5 => '5 '.new lang_string('hours'),
60*60*6 => '6 '.new lang_string('hours'),
60*60*7 => '7 '.new lang_string('hours'),
60*60*8 => '8 '.new lang_string('hours') )));
$temp->add(new admin_setting_configtext('statsruntimedays', new lang_string('statsruntimedays', 'admin'), new lang_string('configstatsruntimedays', 'admin'), 31, PARAM_INT));
$temp->add(new admin_setting_configtime('statsruntimestarthour', 'statsruntimestartminute', new lang_string('statsruntimestart', 'admin'), new lang_string('configstatsruntimestart', 'admin'), array('h' => 0, 'm' => 0)));
$temp->add(new admin_setting_configtext('statsuserthreshold', new lang_string('statsuserthreshold', 'admin'), new lang_string('configstatsuserthreshold', 'admin'), 0, PARAM_INT));
$ADMIN->add('server', $temp);
// "http" settingpage
$temp = new admin_settingpage('http', get_string('http', 'admin'));
$temp->add(new admin_setting_configcheckbox('slasharguments', get_string('slasharguments', 'admin'), get_string('configslasharguments', 'admin'), 1));
$temp->add(new admin_setting_heading('reverseproxy', get_string('reverseproxy', 'admin'), '', ''));
$temp = new admin_settingpage('http', new lang_string('http', 'admin'));
$temp->add(new admin_setting_configcheckbox('slasharguments', new lang_string('slasharguments', 'admin'), new lang_string('configslasharguments', 'admin'), 1));
$temp->add(new admin_setting_heading('reverseproxy', new lang_string('reverseproxy', 'admin'), '', ''));
$options = array(
0 => 'HTTP_CLIENT_IP, HTTP_X_FORWARDED_FOR, REMOTE_ADDR',
GETREMOTEADDR_SKIP_HTTP_CLIENT_IP => 'HTTP_X_FORWARDED_FOR, REMOTE_ADDR',
GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR => 'HTTP_CLIENT, REMOTE_ADDR',
GETREMOTEADDR_SKIP_HTTP_X_FORWARDED_FOR|GETREMOTEADDR_SKIP_HTTP_CLIENT_IP => 'REMOTE_ADDR');
$temp->add(new admin_setting_configselect('getremoteaddrconf', get_string('getremoteaddrconf', 'admin'), get_string('configgetremoteaddrconf', 'admin'), 0, $options));
$temp->add(new admin_setting_heading('webproxy', get_string('webproxy', 'admin'), get_string('webproxyinfo', 'admin')));
$temp->add(new admin_setting_configtext('proxyhost', get_string('proxyhost', 'admin'), get_string('configproxyhost', 'admin'), '', PARAM_HOST));
$temp->add(new admin_setting_configtext('proxyport', get_string('proxyport', 'admin'), get_string('configproxyport', 'admin'), 0, PARAM_INT));
$temp->add(new admin_setting_configselect('getremoteaddrconf', new lang_string('getremoteaddrconf', 'admin'), new lang_string('configgetremoteaddrconf', 'admin'), 0, $options));
$temp->add(new admin_setting_heading('webproxy', new lang_string('webproxy', 'admin'), new lang_string('webproxyinfo', 'admin')));
$temp->add(new admin_setting_configtext('proxyhost', new lang_string('proxyhost', 'admin'), new lang_string('configproxyhost', 'admin'), '', PARAM_HOST));
$temp->add(new admin_setting_configtext('proxyport', new lang_string('proxyport', 'admin'), new lang_string('configproxyport', 'admin'), 0, PARAM_INT));
$options = array('HTTP'=>'HTTP');
if (defined('CURLPROXY_SOCKS5')) {
$options['SOCKS5'] = 'SOCKS5';
}
$temp->add(new admin_setting_configselect('proxytype', get_string('proxytype', 'admin'), get_string('configproxytype','admin'), 'HTTP', $options));
$temp->add(new admin_setting_configtext('proxyuser', get_string('proxyuser', 'admin'), get_string('configproxyuser', 'admin'), ''));
$temp->add(new admin_setting_configpasswordunmask('proxypassword', get_string('proxypassword', 'admin'), get_string('configproxypassword', 'admin'), ''));
$temp->add(new admin_setting_configtext('proxybypass', get_string('proxybypass', 'admin'), get_string('configproxybypass', 'admin'), 'localhost, 127.0.0.1'));
$temp->add(new admin_setting_configselect('proxytype', new lang_string('proxytype', 'admin'), new lang_string('configproxytype','admin'), 'HTTP', $options));
$temp->add(new admin_setting_configtext('proxyuser', new lang_string('proxyuser', 'admin'), new lang_string('configproxyuser', 'admin'), ''));
$temp->add(new admin_setting_configpasswordunmask('proxypassword', new lang_string('proxypassword', 'admin'), new lang_string('configproxypassword', 'admin'), ''));
$temp->add(new admin_setting_configtext('proxybypass', new lang_string('proxybypass', 'admin'), new lang_string('configproxybypass', 'admin'), 'localhost, 127.0.0.1'));
$ADMIN->add('server', $temp);
$temp = new admin_settingpage('maintenancemode', get_string('sitemaintenancemode', 'admin'));
$options = array(0=>get_string('disable'), 1=>get_string('enable'));
$temp->add(new admin_setting_configselect('maintenance_enabled', get_string('sitemaintenancemode', 'admin'),
get_string('helpsitemaintenance', 'admin'), 0, $options));
$temp->add(new admin_setting_confightmleditor('maintenance_message', get_string('optionalmaintenancemessage', 'admin'),
$temp = new admin_settingpage('maintenancemode', new lang_string('sitemaintenancemode', 'admin'));
$options = array(0=>new lang_string('disable'), 1=>new lang_string('enable'));
$temp->add(new admin_setting_configselect('maintenance_enabled', new lang_string('sitemaintenancemode', 'admin'),
new lang_string('helpsitemaintenance', 'admin'), 0, $options));
$temp->add(new admin_setting_confightmleditor('maintenance_message', new lang_string('optionalmaintenancemessage', 'admin'),
'', ''));
$ADMIN->add('server', $temp);
$temp = new admin_settingpage('cleanup', get_string('cleanup', 'admin'));
$temp->add(new admin_setting_configselect('deleteunconfirmed', get_string('deleteunconfirmed', 'admin'), get_string('configdeleteunconfirmed', 'admin'), 168, array(0 => get_string('never'),
168 => get_string('numdays', '', 7),
144 => get_string('numdays', '', 6),
120 => get_string('numdays', '', 5),
96 => get_string('numdays', '', 4),
72 => get_string('numdays', '', 3),
48 => get_string('numdays', '', 2),
24 => get_string('numdays', '', 1),
12 => get_string('numhours', '', 12),
6 => get_string('numhours', '', 6),
1 => get_string('numhours', '', 1))));
$temp = new admin_settingpage('cleanup', new lang_string('cleanup', 'admin'));
$temp->add(new admin_setting_configselect('deleteunconfirmed', new lang_string('deleteunconfirmed', 'admin'), new lang_string('configdeleteunconfirmed', 'admin'), 168, array(0 => new lang_string('never'),
168 => new lang_string('numdays', '', 7),
144 => new lang_string('numdays', '', 6),
120 => new lang_string('numdays', '', 5),
96 => new lang_string('numdays', '', 4),
72 => new lang_string('numdays', '', 3),
48 => new lang_string('numdays', '', 2),
24 => new lang_string('numdays', '', 1),
12 => new lang_string('numhours', '', 12),
6 => new lang_string('numhours', '', 6),
1 => new lang_string('numhours', '', 1))));
$temp->add(new admin_setting_configselect('deleteincompleteusers', get_string('deleteincompleteusers', 'admin'), get_string('configdeleteincompleteusers', 'admin'), 0, array(0 => get_string('never'),
168 => get_string('numdays', '', 7),
144 => get_string('numdays', '', 6),
120 => get_string('numdays', '', 5),
96 => get_string('numdays', '', 4),
72 => get_string('numdays', '', 3),
48 => get_string('numdays', '', 2),
24 => get_string('numdays', '', 1))));
$temp->add(new admin_setting_configselect('deleteincompleteusers', new lang_string('deleteincompleteusers', 'admin'), new lang_string('configdeleteincompleteusers', 'admin'), 0, array(0 => new lang_string('never'),
168 => new lang_string('numdays', '', 7),
144 => new lang_string('numdays', '', 6),
120 => new lang_string('numdays', '', 5),
96 => new lang_string('numdays', '', 4),
72 => new lang_string('numdays', '', 3),
48 => new lang_string('numdays', '', 2),
24 => new lang_string('numdays', '', 1))));
$temp->add(new admin_setting_configcheckbox('logguests', get_string('logguests', 'admin'),
get_string('logguests_help', 'admin'), 1));
$temp->add(new admin_setting_configselect('loglifetime', get_string('loglifetime', 'admin'), get_string('configloglifetime', 'admin'), 0, array(0 => get_string('neverdeletelogs'),
1000 => get_string('numdays', '', 1000),
365 => get_string('numdays', '', 365),
180 => get_string('numdays', '', 180),
150 => get_string('numdays', '', 150),
120 => get_string('numdays', '', 120),
90 => get_string('numdays', '', 90),
60 => get_string('numdays', '', 60),
35 => get_string('numdays', '', 35),
10 => get_string('numdays', '', 10),
5 => get_string('numdays', '', 5),
2 => get_string('numdays', '', 2))));
$temp->add(new admin_setting_configcheckbox('logguests', new lang_string('logguests', 'admin'),
new lang_string('logguests_help', 'admin'), 1));
$temp->add(new admin_setting_configselect('loglifetime', new lang_string('loglifetime', 'admin'), new lang_string('configloglifetime', 'admin'), 0, array(0 => new lang_string('neverdeletelogs'),
1000 => new lang_string('numdays', '', 1000),
365 => new lang_string('numdays', '', 365),
180 => new lang_string('numdays', '', 180),
150 => new lang_string('numdays', '', 150),
120 => new lang_string('numdays', '', 120),
90 => new lang_string('numdays', '', 90),
60 => new lang_string('numdays', '', 60),
35 => new lang_string('numdays', '', 35),
10 => new lang_string('numdays', '', 10),
5 => new lang_string('numdays', '', 5),
2 => new lang_string('numdays', '', 2))));
$temp->add(new admin_setting_configcheckbox('disablegradehistory', get_string('disablegradehistory', 'grades'),
get_string('disablegradehistory_help', 'grades'), 0));
$temp->add(new admin_setting_configcheckbox('disablegradehistory', new lang_string('disablegradehistory', 'grades'),
new lang_string('disablegradehistory_help', 'grades'), 0));
$temp->add(new admin_setting_configselect('gradehistorylifetime', get_string('gradehistorylifetime', 'grades'),
get_string('gradehistorylifetime_help', 'grades'), 0, array(0 => get_string('neverdeletehistory', 'grades'),
1000 => get_string('numdays', '', 1000),
365 => get_string('numdays', '', 365),
180 => get_string('numdays', '', 180),
150 => get_string('numdays', '', 150),
120 => get_string('numdays', '', 120),
90 => get_string('numdays', '', 90),
60 => get_string('numdays', '', 60),
30 => get_string('numdays', '', 30))));
$temp->add(new admin_setting_configselect('gradehistorylifetime', new lang_string('gradehistorylifetime', 'grades'),
new lang_string('gradehistorylifetime_help', 'grades'), 0, array(0 => new lang_string('neverdeletehistory', 'grades'),
1000 => new lang_string('numdays', '', 1000),
365 => new lang_string('numdays', '', 365),
180 => new lang_string('numdays', '', 180),
150 => new lang_string('numdays', '', 150),
120 => new lang_string('numdays', '', 120),
90 => new lang_string('numdays', '', 90),
60 => new lang_string('numdays', '', 60),
30 => new lang_string('numdays', '', 30))));
$ADMIN->add('server', $temp);
$ADMIN->add('server', new admin_externalpage('environment', get_string('environment','admin'), "$CFG->wwwroot/$CFG->admin/environment.php"));
$ADMIN->add('server', new admin_externalpage('phpinfo', get_string('phpinfo'), "$CFG->wwwroot/$CFG->admin/phpinfo.php"));
$ADMIN->add('server', new admin_externalpage('environment', new lang_string('environment','admin'), "$CFG->wwwroot/$CFG->admin/environment.php"));
$ADMIN->add('server', new admin_externalpage('phpinfo', new lang_string('phpinfo'), "$CFG->wwwroot/$CFG->admin/phpinfo.php"));
// "performance" settingpage
$temp = new admin_settingpage('performance', get_string('performance', 'admin'));
$temp = new admin_settingpage('performance', new lang_string('performance', 'admin'));
$temp->add(new admin_setting_configtext('numcoursesincombo', get_string('numcoursesincombo', 'admin'), get_string('numcoursesincombo_help', 'admin'), 500));
$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', get_string('extramemorylimit', 'admin'),
get_string('configextramemorylimit', 'admin'), '512M',
$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
array( '64M' => '64M',
'128M' => '128M',
@@ -188,37 +188,38 @@ $temp->add(new admin_setting_configselect('extramemorylimit', get_string('extram
'512M' => '512M',
'1024M' => '1024M'
)));
$temp->add(new admin_setting_configtext('curlcache', get_string('curlcache', 'admin'),
get_string('configcurlcache', 'admin'), 120, PARAM_INT));
$temp->add(new admin_setting_configtext('curlcache', new lang_string('curlcache', 'admin'),
new lang_string('configcurlcache', 'admin'), 120, PARAM_INT));
$temp->add(new admin_setting_configtext('curltimeoutkbitrate', new lang_string('curltimeoutkbitrate', 'admin'),
new lang_string('curltimeoutkbitrate_help', 'admin'), 56, PARAM_INT));
$temp->add(new admin_setting_configtext('curltimeoutkbitrate', get_string('curltimeoutkbitrate', 'admin'),
get_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', get_string('cachetype', 'admin'),
get_string('configcachetype', 'admin'), '',
array( '' => get_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', get_string('rcache', 'admin'),
get_string('configrcache', 'admin'), 0,
array( '0' => get_string('no'),
'1' => get_string('yes'))));
$temp->add(new admin_setting_configtext('rcachettl', get_string('rcachettl', 'admin'),
get_string('configrcachettl', 'admin'), 10));
$temp->add(new admin_setting_configtext('intcachemax', get_string('intcachemax', 'admin'),
get_string('configintcachemax', 'admin'), 10));
$temp->add(new admin_setting_configtext('memcachedhosts', get_string('memcachedhosts', 'admin'),
get_string('configmemcachedhosts', 'admin'), ''));
$temp->add(new admin_setting_configselect('memcachedpconn', get_string('memcachedpconn', 'admin'),
get_string('configmemcachedpconn', 'admin'), 0,
array( '0' => get_string('no'),
'1' => get_string('yes'))));
*/
$ADMIN->add('server', $temp);
$ADMIN->add('server', new admin_externalpage('adminregistration', get_string('registration','admin'), "$CFG->wwwroot/$CFG->admin/registration/index.php"));
$ADMIN->add('server', new admin_externalpage('adminregistration', new lang_string('hubs', 'admin'),
"$CFG->wwwroot/$CFG->admin/registration/index.php"));
// "update notifications" settingpage
if (empty($CFG->disableupdatenotifications)) {
$temp = new admin_settingpage('updatenotifications', new lang_string('updatenotifications', 'core_admin'));
$temp->add(new admin_setting_configcheckbox('updateautocheck', new lang_string('updateautocheck', 'core_admin'),
new lang_string('updateautocheck_desc', 'core_admin'), 1));
if (empty($CFG->disableupdateautodeploy)) {
$temp->add(new admin_setting_configcheckbox('updateautodeploy', new lang_string('updateautodeploy', 'core_admin'),
new lang_string('updateautodeploy_desc', 'core_admin'), 0));
}
$temp->add(new admin_setting_configselect('updateminmaturity', new lang_string('updateminmaturity', 'core_admin'),
new lang_string('updateminmaturity_desc', 'core_admin'), MATURITY_STABLE,
array(
MATURITY_ALPHA => new lang_string('maturity'.MATURITY_ALPHA, 'core_admin'),
MATURITY_BETA => new lang_string('maturity'.MATURITY_BETA, 'core_admin'),
MATURITY_RC => new lang_string('maturity'.MATURITY_RC, 'core_admin'),
MATURITY_STABLE => new lang_string('maturity'.MATURITY_STABLE, 'core_admin'),
)));
$temp->add(new admin_setting_configcheckbox('updatenotifybuilds', new lang_string('updatenotifybuilds', 'core_admin'),
new lang_string('updatenotifybuilds_desc', 'core_admin'), 0));
$ADMIN->add('server', $temp);
}
} // end of speedup
+22 -24
View File
@@ -2,45 +2,43 @@
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$optionalsubsystems->add(new admin_setting_configcheckbox('enableoutcomes', get_string('enableoutcomes', 'grades'), get_string('enableoutcomes_help', 'grades'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('usecomments', get_string('enablecomments', 'admin'), get_string('configenablecomments', 'admin'), 1));
$optionalsubsystems->add(new admin_setting_configcheckbox('enableoutcomes', new lang_string('enableoutcomes', 'grades'), new lang_string('enableoutcomes_help', 'grades'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('usecomments', new lang_string('enablecomments', 'admin'), new lang_string('configenablecomments', 'admin'), 1));
$optionalsubsystems->add(new admin_setting_configcheckbox('usetags', get_string('usetags','admin'),get_string('configusetags', 'admin'), '1'));
$optionalsubsystems->add(new admin_setting_configcheckbox('usetags', new lang_string('usetags','admin'),new lang_string('configusetags', 'admin'), '1'));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablenotes', get_string('enablenotes', 'notes'), get_string('configenablenotes', 'notes'), 1));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablenotes', new lang_string('enablenotes', 'notes'), new lang_string('configenablenotes', 'notes'), 1));
$optionalsubsystems->add(new admin_setting_configcheckbox('enableportfolios', get_string('enabled', 'portfolio'), get_string('enableddesc', 'portfolio'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enableportfolios', new lang_string('enabled', 'portfolio'), new lang_string('enableddesc', 'portfolio'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablewebservices', get_string('enablewebservices', 'admin'), get_string('configenablewebservices', 'admin'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablewebservices', new lang_string('enablewebservices', 'admin'), new lang_string('configenablewebservices', 'admin'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('messaging', get_string('messaging', 'admin'), get_string('configmessaging','admin'), 1));
$optionalsubsystems->add(new admin_setting_configcheckbox('messaging', new lang_string('messaging', 'admin'), new lang_string('configmessaging','admin'), 1));
$optionalsubsystems->add(new admin_setting_configcheckbox('messaginghidereadnotifications', get_string('messaginghidereadnotifications', 'admin'), get_string('configmessaginghidereadnotifications','admin'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('messaginghidereadnotifications', new lang_string('messaginghidereadnotifications', 'admin'), new lang_string('configmessaginghidereadnotifications','admin'), 0));
$options = array(DAYSECS=>get_string('secondstotime86400'), WEEKSECS=>get_string('secondstotime604800'), 2620800=>get_string('nummonths', 'moodle', 1), 15724800=>get_string('nummonths', 'moodle', 6),0=>get_string('never'));
$optionalsubsystems->add(new admin_setting_configselect('messagingdeletereadnotificationsdelay', get_string('messagingdeletereadnotificationsdelay', 'admin'), get_string('configmessagingdeletereadnotificationsdelay', 'admin'), 604800, $options));
$options = array(DAYSECS=>new lang_string('secondstotime86400'), WEEKSECS=>new lang_string('secondstotime604800'), 2620800=>new lang_string('nummonths', 'moodle', 1), 15724800=>new lang_string('nummonths', 'moodle', 6),0=>new lang_string('never'));
$optionalsubsystems->add(new admin_setting_configselect('messagingdeletereadnotificationsdelay', new lang_string('messagingdeletereadnotificationsdelay', 'admin'), new lang_string('configmessagingdeletereadnotificationsdelay', 'admin'), 604800, $options));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablestats', get_string('enablestats', 'admin'), get_string('configenablestats', 'admin'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('messagingallowemailoverride', new lang_string('messagingallowemailoverride', 'admin'), new lang_string('configmessagingallowemailoverride','admin'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablerssfeeds', get_string('enablerssfeeds', 'admin'), get_string('configenablerssfeeds', 'admin'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablestats', new lang_string('enablestats', 'admin'), new lang_string('configenablestats', 'admin'), 0));
$optionalsubsystems->add(new admin_setting_bloglevel('bloglevel', get_string('bloglevel', 'admin'),
get_string('configbloglevel', 'admin'), 4, array(5 => get_string('worldblogs','blog'),
4 => get_string('siteblogs','blog'),
1 => get_string('personalblogs','blog'),
0 => get_string('disableblogs','blog'))));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablerssfeeds', new lang_string('enablerssfeeds', 'admin'), new lang_string('configenablerssfeeds', 'admin'), 0));
$options = array('off'=>get_string('off', 'mnet'), 'strict'=>get_string('on', 'mnet'));
$optionalsubsystems->add(new admin_setting_configselect('mnet_dispatcher_mode', get_string('net', 'mnet'), get_string('configmnet', 'mnet'), 'off', $options));
$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));
// Conditional activities: completion and availability
$optionalsubsystems->add(new admin_setting_configcheckbox('enablecompletion',
get_string('enablecompletion','completion'),
get_string('configenablecompletion','completion'), 0));
new lang_string('enablecompletion','completion'),
new lang_string('configenablecompletion','completion'), 0));
$optionalsubsystems->add($checkbox = new admin_setting_configcheckbox('enableavailability',
get_string('enableavailability','condition'),
get_string('configenableavailability','condition'), 0));
new lang_string('enableavailability','condition'),
new lang_string('configenableavailability','condition'), 0));
$checkbox->set_affects_modinfo(true);
$optionalsubsystems->add(new admin_setting_configcheckbox('enableplagiarism', get_string('enableplagiarism','plagiarism'), get_string('configenableplagiarism','plagiarism'), 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enableplagiarism', new lang_string('enableplagiarism','plagiarism'), new lang_string('configenableplagiarism','plagiarism'), 0));
}
+25 -25
View File
@@ -5,44 +5,44 @@
// 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', get_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
$ADMIN->add('root', new admin_externalpage('adminnotifications', new lang_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
$ADMIN->add('root', new admin_externalpage('registrationindex', get_string('registration','admin'),
"$CFG->wwwroot/$CFG->admin/registration/index.php"));
$ADMIN->add('root', new admin_externalpage('registration', get_string('registeron','hub'),
$ADMIN->add('root', new admin_externalpage('registrationmoodleorg', new lang_string('registration', 'admin'),
"$CFG->wwwroot/$CFG->admin/registration/register.php?huburl=" . HUB_MOODLEORGHUBURL . "&hubname=Moodle.org"));
$ADMIN->add('root', new admin_externalpage('registrationhub', new lang_string('registerwith', 'hub'),
"$CFG->wwwroot/$CFG->admin/registration/register.php", 'moodle/site:config', true));
$ADMIN->add('root', new admin_externalpage('registrationselector', get_string('registeron','hub'),
"$CFG->wwwroot/$CFG->admin/registration/hubselector.php", 'moodle/site:config', true));
$ADMIN->add('root', new admin_externalpage('registrationhubs', new lang_string('hubs', 'admin'),
"$CFG->wwwroot/$CFG->admin/registration/index.php", 'moodle/site:config', true));
$ADMIN->add('root', new admin_externalpage('siteregistrationconfirmed',
get_string('registrationconfirmed', 'hub'),
new lang_string('registrationconfirmed', 'hub'),
$CFG->wwwroot."/".$CFG->admin."/registration/confirmregistration.php", 'moodle/site:config', true));
// hidden upgrade script
$ADMIN->add('root', new admin_externalpage('upgradesettings', get_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true));
$ADMIN->add('root', new admin_externalpage('upgradesettings', new lang_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true));
if ($hassiteconfig) {
$optionalsubsystems = new admin_settingpage('optionalsubsystems', get_string('advancedfeatures', 'admin'));
$optionalsubsystems = new admin_settingpage('optionalsubsystems', new lang_string('advancedfeatures', 'admin'));
$ADMIN->add('root', $optionalsubsystems);
}
$ADMIN->add('root', new admin_category('users', get_string('users','admin')));
$ADMIN->add('root', new admin_category('courses', get_string('courses','admin')));
$ADMIN->add('root', new admin_category('grades', get_string('grades')));
$ADMIN->add('root', new admin_category('location', get_string('location','admin')));
$ADMIN->add('root', new admin_category('language', get_string('language')));
$ADMIN->add('root', new admin_category('modules', get_string('plugins', 'admin')));
$ADMIN->add('root', new admin_category('security', get_string('security','admin')));
$ADMIN->add('root', new admin_category('appearance', get_string('appearance','admin')));
$ADMIN->add('root', new admin_category('frontpage', get_string('frontpage','admin')));
$ADMIN->add('root', new admin_category('server', get_string('server','admin')));
$ADMIN->add('root', new admin_category('mnet', get_string('net','mnet'), (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode === 'off')));
$ADMIN->add('root', new admin_category('reports', get_string('reports')));
$ADMIN->add('root', new admin_category('development', get_string('development', 'admin')));
$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('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')));
$ADMIN->add('root', new admin_category('security', new lang_string('security','admin')));
$ADMIN->add('root', new admin_category('appearance', new lang_string('appearance','admin')));
$ADMIN->add('root', new admin_category('frontpage', new lang_string('frontpage','admin')));
$ADMIN->add('root', new admin_category('server', new lang_string('server','admin')));
$ADMIN->add('root', new admin_category('mnet', new lang_string('net','mnet'), (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode === 'off')));
$ADMIN->add('root', new admin_category('reports', new lang_string('reports')));
$ADMIN->add('root', new admin_category('development', new lang_string('development', 'admin')));
// hidden unsupported category
$ADMIN->add('root', new admin_category('unsupported', get_string('unsupported', 'admin'), true));
$ADMIN->add('root', new admin_category('unsupported', new lang_string('unsupported', 'admin'), true));
// hidden search script
$ADMIN->add('root', new admin_externalpage('search', get_string('searchresults'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));
$ADMIN->add('root', new admin_externalpage('search', new lang_string('searchresults'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));
+57 -53
View File
@@ -2,8 +2,8 @@
// This file defines settingpages and externalpages under the "users" category
$ADMIN->add('users', new admin_category('accounts', get_string('accounts', 'admin')));
$ADMIN->add('users', new admin_category('roles', get_string('permissions', 'role')));
$ADMIN->add('users', new admin_category('accounts', new lang_string('accounts', 'admin')));
$ADMIN->add('users', new admin_category('roles', new lang_string('permissions', 'role')));
if ($hassiteconfig
or has_capability('moodle/user:create', $systemcontext)
@@ -21,20 +21,20 @@ if ($hassiteconfig
$securewwwroot = str_replace('http:','https:',$CFG->wwwroot);
}
// stuff under the "accounts" subcategory
$ADMIN->add('accounts', new admin_externalpage('editusers', get_string('userlist','admin'), "$CFG->wwwroot/$CFG->admin/user.php", array('moodle/user:update', 'moodle/user:delete')));
$ADMIN->add('accounts', new admin_externalpage('userbulk', get_string('userbulk','admin'), "$CFG->wwwroot/$CFG->admin/user/user_bulk.php", array('moodle/user:update', 'moodle/user:delete')));
$ADMIN->add('accounts', new admin_externalpage('addnewuser', get_string('addnewuser'), "$securewwwroot/user/editadvanced.php?id=-1", 'moodle/user:create'));
$ADMIN->add('accounts', new admin_externalpage('profilefields', get_string('profilefields','admin'), "$CFG->wwwroot/user/profile/index.php", 'moodle/site:config'));
$ADMIN->add('accounts', new admin_externalpage('cohorts', get_string('cohorts', 'cohort'), $CFG->wwwroot . '/cohort/index.php', array('moodle/cohort:manage', 'moodle/cohort:view')));
$ADMIN->add('accounts', new admin_externalpage('editusers', new lang_string('userlist','admin'), "$CFG->wwwroot/$CFG->admin/user.php", array('moodle/user:update', 'moodle/user:delete')));
$ADMIN->add('accounts', new admin_externalpage('userbulk', new lang_string('userbulk','admin'), "$CFG->wwwroot/$CFG->admin/user/user_bulk.php", array('moodle/user:update', 'moodle/user:delete')));
$ADMIN->add('accounts', new admin_externalpage('addnewuser', new lang_string('addnewuser'), "$securewwwroot/user/editadvanced.php?id=-1", 'moodle/user:create'));
$ADMIN->add('accounts', new admin_externalpage('profilefields', new lang_string('profilefields','admin'), "$CFG->wwwroot/user/profile/index.php", 'moodle/site:config'));
$ADMIN->add('accounts', new admin_externalpage('cohorts', new lang_string('cohorts', 'cohort'), $CFG->wwwroot . '/cohort/index.php', array('moodle/cohort:manage', 'moodle/cohort:view')));
// stuff under the "roles" subcategory
// "userpolicies" settingpage
$temp = new admin_settingpage('userpolicies', get_string('userpolicies', 'admin'));
$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;
@@ -80,28 +81,28 @@ if ($hassiteconfig
}
if (empty($guestroles)) {
$guestroles[0] = get_string('none');
$guestroles[0] = new lang_string('none');
$defaultguestid = 0;
}
if (empty($userroles)) {
$userroles[0] = get_string('none');
$userroles[0] = new lang_string('none');
$defaultuserid = 0;
}
$restorersnewrole = $creatornewroles;
$restorersnewrole[0] = get_string('none');
$restorersnewrole[0] = new lang_string('none');
$temp->add(new admin_setting_configselect('notloggedinroleid', get_string('notloggedinroleid', 'admin'),
get_string('confignotloggedinroleid', 'admin'), $defaultguestid, ($guestroles + $otherroles)));
$temp->add(new admin_setting_configselect('guestroleid', get_string('guestroleid', 'admin'),
get_string('guestroleid_help', 'admin'), $defaultguestid, ($guestroles + $otherroles)));
$temp->add(new admin_setting_configselect('defaultuserroleid', get_string('defaultuserroleid', 'admin'),
get_string('configdefaultuserroleid', 'admin'), $defaultuserid, ($userroles + $otherroles)));
$temp->add(new admin_setting_configselect('creatornewroleid', get_string('creatornewroleid', 'admin'),
get_string('creatornewroleid_help', 'admin'), $defaultteacherid, $creatornewroles));
$temp->add(new admin_setting_configselect('restorernewroleid', get_string('restorernewroleid', 'admin'),
get_string('restorernewroleid_help', 'admin'), $defaultteacherid, $restorersnewrole));
$temp->add(new admin_setting_configselect('notloggedinroleid', new lang_string('notloggedinroleid', 'admin'),
new lang_string('confignotloggedinroleid', 'admin'), $defaultguestid, ($guestroles + $otherroles)));
$temp->add(new admin_setting_configselect('guestroleid', new lang_string('guestroleid', 'admin'),
new lang_string('guestroleid_help', 'admin'), $defaultguestid, ($guestroles + $otherroles)));
$temp->add(new admin_setting_configselect('defaultuserroleid', new lang_string('defaultuserroleid', 'admin'),
new lang_string('configdefaultuserroleid', 'admin'), $defaultuserid, ($userroles + $otherroles)));
$temp->add(new admin_setting_configselect('creatornewroleid', new lang_string('creatornewroleid', 'admin'),
new lang_string('creatornewroleid_help', 'admin'), $defaultteacherid, $creatornewroles));
$temp->add(new admin_setting_configselect('restorernewroleid', new lang_string('restorernewroleid', 'admin'),
new lang_string('restorernewroleid_help', 'admin'), $defaultteacherid, $restorersnewrole));
// release memory
unset($otherroles);
@@ -111,23 +112,25 @@ if ($hassiteconfig
unset($restorersnewrole);
}
$temp->add(new admin_setting_configcheckbox('autologinguests', get_string('autologinguests', 'admin'), get_string('configautologinguests', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('autologinguests', new lang_string('autologinguests', 'admin'), new lang_string('configautologinguests', 'admin'), 0));
$temp->add(new admin_setting_configmultiselect('hiddenuserfields', get_string('hiddenuserfields', 'admin'),
get_string('confighiddenuserfields', 'admin'), array(),
array('description' => get_string('description'),
'city' => get_string('city'),
'country' => get_string('country'),
'webpage' => get_string('webpage'),
'icqnumber' => get_string('icqnumber'),
'skypeid' => get_string('skypeid'),
'yahooid' => get_string('yahooid'),
'aimid' => get_string('aimid'),
'msnid' => get_string('msnid'),
'firstaccess' => get_string('firstaccess'),
'lastaccess' => get_string('lastaccess'),
'mycourses' => get_string('mycourses'),
'groups' => get_string('groups'))));
$temp->add(new admin_setting_configmultiselect('hiddenuserfields', new lang_string('hiddenuserfields', 'admin'),
new lang_string('confighiddenuserfields', 'admin'), array(),
array('description' => new lang_string('description'),
'city' => new lang_string('city'),
'country' => new lang_string('country'),
'webpage' => new lang_string('webpage'),
'icqnumber' => new lang_string('icqnumber'),
'skypeid' => new lang_string('skypeid'),
'yahooid' => new lang_string('yahooid'),
'aimid' => new lang_string('aimid'),
'msnid' => new lang_string('msnid'),
'firstaccess' => new lang_string('firstaccess'),
'lastaccess' => new lang_string('lastaccess'),
'mycourses' => new lang_string('mycourses'),
'groups' => new lang_string('groups'),
'suspended' => new lang_string('suspended', 'auth'),
)));
// Select fields to display as part of user identity (only to those
// with moodle/site:viewuseridentity).
@@ -138,25 +141,26 @@ if ($hassiteconfig
// be a security problem to reveal usernames even to trusted staff.
// Custom user profile fields are not currently supported.
$temp->add(new admin_setting_configmulticheckbox('showuseridentity',
get_string('showuseridentity', 'admin'),
get_string('showuseridentity_desc', 'admin'), array('email' => 1), array(
'idnumber' => get_string('idnumber'),
'email' => get_string('email'),
'phone1' => get_string('phone'),
'phone2' => get_string('phone2'),
'department' => get_string('department'),
'institution' => get_string('institution'),
new lang_string('showuseridentity', 'admin'),
new lang_string('showuseridentity_desc', 'admin'), array('email' => 1), array(
'idnumber' => new lang_string('idnumber'),
'email' => new lang_string('email'),
'phone1' => new lang_string('phone'),
'phone2' => new lang_string('phone2'),
'department' => new lang_string('department'),
'institution' => new lang_string('institution'),
)));
$temp->add(new admin_setting_configcheckbox('enablegravatar', get_string('enablegravatar', 'admin'), get_string('enablegravatar_help', 'admin'), 0));
$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);
if (is_siteadmin()) {
$ADMIN->add('roles', new admin_externalpage('admins', get_string('siteadministrators', 'role'), "$CFG->wwwroot/$CFG->admin/roles/admins.php"));
$ADMIN->add('roles', new admin_externalpage('admins', new lang_string('siteadministrators', 'role'), "$CFG->wwwroot/$CFG->admin/roles/admins.php"));
}
$ADMIN->add('roles', new admin_externalpage('defineroles', get_string('defineroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/manage.php", 'moodle/role:manage'));
$ADMIN->add('roles', new admin_externalpage('assignroles', get_string('assignglobalroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=".$systemcontext->id, 'moodle/role:assign'));
$ADMIN->add('roles', new admin_externalpage('checkpermissions', get_string('checkglobalpermissions', 'role'), "$CFG->wwwroot/$CFG->admin/roles/check.php?contextid=".$systemcontext->id, array('moodle/role:assign', 'moodle/role:safeoverride', 'moodle/role:override', 'moodle/role:manage')));
$ADMIN->add('roles', new admin_externalpage('defineroles', new lang_string('defineroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/manage.php", 'moodle/role:manage'));
$ADMIN->add('roles', new admin_externalpage('assignroles', new lang_string('assignglobalroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=".$systemcontext->id, 'moodle/role:assign'));
$ADMIN->add('roles', new admin_externalpage('checkpermissions', new lang_string('checkglobalpermissions', 'role'), "$CFG->wwwroot/$CFG->admin/roles/check.php?contextid=".$systemcontext->id, array('moodle/role:assign', 'moodle/role:safeoverride', 'moodle/role:override', 'moodle/role:manage')));
} // end of speedup
+5 -3
View File
@@ -9,16 +9,18 @@
$zone = clean_param($zone, PARAM_PATH);
}
$PAGE->set_url('/admin/timezone.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());
$strtimezone = get_string("timezone");
$strsavechanges = get_string("savechanges");
$strusers = get_string("users");
$strall = get_string("all");
$PAGE->set_url('/admin/timezone.php');
$PAGE->set_title($strtimezone);
$PAGE->set_heading($strtimezone);
$PAGE->navbar->add($strtimezone);
@@ -42,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).'" />';
@@ -0,0 +1,70 @@
<?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/>.
/**
* Script to show all the assignments that have not been upgraded after the main upgrade.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('NO_OUTPUT_BUFFERING', true);
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.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
admin_externalpage_setup('assignmentupgrade', '', array(), tool_assignmentupgrade_url('batchupgrade'));
$PAGE->set_pagelayout('maintenance');
$PAGE->navbar->add(get_string('batchupgrade', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$confirm = required_param('confirm', PARAM_BOOL);
if (!$confirm) {
print_error('invalidrequest');
die();
}
raise_memory_limit(MEMORY_EXTRA);
session_get_instance()->write_close(); // release session
echo $renderer->header();
echo $renderer->heading(get_string('batchupgrade', 'tool_assignmentupgrade'));
$current = 0;
if (optional_param('upgradeall', false, PARAM_BOOL)) {
$assignmentids = tool_assignmentupgrade_load_all_upgradable_assignmentids();
} else {
$assignmentids = explode(',', optional_param('selected', '', PARAM_TEXT));
}
$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);
echo $renderer->convert_assignment_result($summary, $success, $log);
}
echo $renderer->continue_button(tool_assignmentupgrade_url('listnotupgraded'));
echo $renderer->footer();
+50
View File
@@ -0,0 +1,50 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This tool can upgrade old assignment activities to the new assignment activity type
*
* The upgrade can be done on any old assignment instance providing it is using one of the core
* assignment subtypes (online text, single upload, etc).
* The new assignment module was introduced in Moodle 2.3 and although it completely reproduces
* the features of the existing assignment type it wasn't designed to replace it entirely as there
* are many custom assignment types people use and it wouldn't be practical to try to convert them.
* Instead the existing assignment type will be left in core and people will be encouraged to
* use the new assignment type.
*
* This screen is the main entry-point to the plugin, it gives the admin a list
* of options available to them.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/'.$CFG->admin.'/tool/assignmentupgrade/locallib.php');
// admin_externalpage_setup calls require_login and checks moodle/site:config
admin_externalpage_setup('assignmentupgrade');
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$actions = array();
$header = get_string('pluginname', 'tool_assignmentupgrade');
$actions[] = tool_assignmentupgrade_action::make('listnotupgraded');
echo $renderer->index_page($header, $actions);
@@ -0,0 +1,60 @@
<?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 the assignment upgrade tool
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['areyousure'] = 'Are you sure?';
$string['areyousuremessage'] = 'Are you sure you want to upgrade the assignment "{$a->name}"?';
$string['assignmentid'] = 'Assignment ID';
$string['assignmentnotfound'] = 'Assignment could not be found (id={$a})';
$string['assignmentsperpage'] = 'Assignments per page';
$string['assignmenttype'] = 'Assignment type';
$string['backtoindex'] = 'Back to index';
$string['batchoperations'] = 'Batch operations';
$string['batchupgrade'] = 'Upgrade multiple assignments';
$string['confirmbatchupgrade'] = 'Confirm batch upgrade assignments';
$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.';
$string['notupgradedtitle'] = 'Assignments not upgraded';
$string['pluginname'] = 'Assignment upgrade helper';
$string['select'] = 'Select';
$string['submissions'] = 'Submissions';
$string['supported'] = 'Upgrade';
$string['updatetable'] = 'Update table';
$string['unknown'] = 'Unknown';
$string['upgradeassignmentsummary'] = 'Upgrade assignment: {$a->name} (Course: {$a->shortname})';
$string['upgradeassignmentsuccess'] = 'Result: Upgrade successful';
$string['upgradeassignmentfailed'] = 'Result: Upgrade failed. The log from the upgrade was: <br/><div class="tool_assignmentupgrade_upgradelog">{$a->log}</div>';
$string['upgradable'] = 'Upgradable';
$string['upgradeselected'] = 'Upgrade selected assignments';
$string['upgradeselectedcount'] = 'Upgrade {$a} selected assignments?';
$string['upgradeall'] = 'Upgrade all assignments';
$string['upgradeallconfirm'] = 'Upgrade all assignments?';
$string['upgradeprogress'] = 'Upgrade assignment {$a->current} of {$a->total}';
$string['upgradesingle'] = 'Upgrade single assignment';
$string['viewcourse'] = 'View the course with the converted assignment';
@@ -0,0 +1,60 @@
<?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/>.
/**
* Script to show all the assignments that have not been upgraded after the main upgrade.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.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
admin_externalpage_setup('assignmentupgrade', '', array(), tool_assignmentupgrade_url('listnotupgraded'));
$PAGE->navbar->add(get_string('listnotupgraded', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$perpage = optional_param('perpage', 0, PARAM_INT);
if (!$perpage) {
$perpage = get_user_preferences('tool_assignmentupgrade_perpage', 100);
} else {
set_user_preference('tool_assignmentupgrade_perpage', $perpage);
}
$assignments = new tool_assignmentupgrade_assignments_table($perpage);
$batchform = new tool_assignmentupgrade_batchoperations_form();
$data = $batchform->get_data();
if ($data && $data->selectedassignments != '' || $data && isset($data->upgradeall)) {
require_sesskey();
echo $renderer->confirm_batch_operation_page($data);
} else {
$paginationform = new tool_assignmentupgrade_pagination_form();
$pagedata = new stdClass();
$pagedata->perpage = $perpage;
$paginationform->set_data($pagedata);
echo $renderer->assignment_list_page($assignments, $batchform, $paginationform);
}
+215
View File
@@ -0,0 +1,215 @@
<?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/>.
/**
* Assignment upgrade tool library functions
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Get the URL of a script within this plugin.
* @param string $script the script name, without .php. E.g. 'index'
* @param array $params URL parameters (optional)
* @return moodle_url
*/
function tool_assignmentupgrade_url($script, $params = array()) {
return new moodle_url('/admin/tool/assignmentupgrade/' . $script . '.php', $params);
}
/**
* Class to encapsulate the continue / cancel for batch operations
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_batchoperationconfirm implements renderable {
/** @var string $continuemessage The message to show above the continue cancel buttons */
public $continuemessage = '';
/** @var string $continueurl The url to load if the user clicks continue */
public $continueurl;
/**
* Constructor for this class
* @param stdClass $data - The data from the previous batch form
*/
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));
} 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()));
}
}
}
}
/**
* Class to encapsulate one of the functionalities that this plugin offers.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_action {
/** @var string the name of this action. */
public $name;
/** @var moodle_url the URL to launch this action. */
public $url;
/** @var string a description of this aciton. */
public $description;
/**
* Constructor to set the fields.
*
* 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.
* @param moodle_url $url the URL to launch this action.
* @param string $description a description of this aciton.
*/
protected function __construct($name, moodle_url $url, $description) {
$this->name = $name;
$this->url = $url;
$this->description = $description;
}
/**
* Make an action with standard values.
* @param string $shortname internal name of the action. Used to get strings and build a URL.
* @param array $params any URL params required.
* @return tool_assignmentupgrade_action
*/
public static function make($shortname, $params = array()) {
return new self(
get_string($shortname, 'tool_assignmentupgrade'),
tool_assignmentupgrade_url($shortname, $params),
get_string($shortname . '_desc', 'tool_assignmentupgrade'));
}
}
/**
* Determine if there are any assignments that can be upgraded
* @return boolean - Are there any assignments that can be upgraded
*/
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_%'));
$upgradabletypes = array();
foreach ($types as $assignment) {
$shorttype = substr($assignment->assignmenttype, strlen('assignment_'));
if (assign::can_upgrade_assignment($shorttype, $assignment->version)) {
$upgradabletypes[] = $shorttype;
}
}
list($sql, $params) = $DB->get_in_or_equal($upgradabletypes);
$count = $DB->count_records_sql('SELECT COUNT(id) from {assignment} where assignmenttype ' . $sql, $params);
return $count > 0;
}
/**
* Load a list of all the assignmentids that can be upgraded
* @return array of assignment ids
*/
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_%'));
$upgradabletypes = array();
foreach ($types as $assignment) {
$shorttype = substr($assignment->assignmenttype, strlen('assignment_'));
if (assign::can_upgrade_assignment($shorttype, $assignment->version)) {
$upgradabletypes[] = $shorttype;
}
}
list($sql, $params) = $DB->get_in_or_equal($upgradabletypes);
$records = $DB->get_records_sql('SELECT id from {assignment} where assignmenttype ' . $sql, $params);
$ids = array();
foreach ($records as $record) {
$ids[] = $record->id;
}
return $ids;
}
/**
* Upgrade a single assignment. This is used by both upgrade single and upgrade batch
*
* @param int $assignmentid - The assignment id to upgrade
* @return array(string, boolean, string) -
* The array contains
* - the assignment summary (returned by tool_assignmentupgrade_get_assignment)
* - success
* - the upgrade log
*/
function tool_assignmentupgrade_upgrade_assignment($assignmentid) {
global $CFG;
require_once($CFG->dirroot . '/mod/assign/upgradelib.php');
$assignment_upgrader = new assign_upgrade_manager();
$info = tool_assignmentupgrade_get_assignment($assignmentid);
if ($info) {
$log = '';
$success = $assignment_upgrader->upgrade_assignment($assignmentid, $log);
} else {
$success = false;
$log = get_string('assignmentnotfound', 'tool_assignmentupgrade', $assignmentid);
$info = new stdClass();
$info->name = get_string('unknown', 'tool_assignmentupgrade');
$info->shortname = get_string('unknown', 'tool_assignmentupgrade');
}
return array($info, $success, $log);
}
/**
* Get the information about a assignment to be upgraded.
* @param int $assignmentid the assignment id.
* @return stdClass the information about that assignment.
*/
function tool_assignmentupgrade_get_assignment($assignmentid) {
global $DB;
return $DB->get_record_sql("
SELECT a.id, a.name, c.shortname, c.id AS courseid
FROM {assignment} a
JOIN {course} c ON c.id = a.course
WHERE a.id = ?", array($assignmentid));
}
+71
View File
@@ -0,0 +1,71 @@
M.tool_assignmentupgrade = {
init_upgrade_table: function(Y) {
Y.use('node', function(Y) {
checkboxes = Y.all('td.c0 input');
checkboxes.each(function(node) {
node.on('change', function(e) {
rowelement = e.currentTarget.get('parentNode').get('parentNode');
if (e.currentTarget.get('checked')) {
rowelement.setAttribute('class', 'selectedrow');
} else {
rowelement.setAttribute('class', 'unselectedrow');
}
});
rowelement = node.get('parentNode').get('parentNode');
if (node.get('checked')) {
rowelement.setAttribute('class', 'selectedrow');
} else {
rowelement.setAttribute('class', 'unselectedrow');
}
});
});
var selectall = Y.one('th.c0 input');
selectall.on('change', function(e) {
if (e.currentTarget.get('checked')) {
checkboxes = Y.all('td.c0 input');
checkboxes.each(function(node) {
rowelement = node.get('parentNode').get('parentNode');
node.set('checked', true);
rowelement.setAttribute('class', 'selectedrow');
});
} else {
checkboxes = Y.all('td.c0 input');
checkboxes.each(function(node) {
rowelement = node.get('parentNode').get('parentNode');
node.set('checked', false);
rowelement.setAttribute('class', 'unselectedrow');
});
}
});
var upgradeselectedbutton = Y.one('#id_upgradeselected');
upgradeselectedbutton.on('click', function(e) {
checkboxes = Y.all('td.c0 input');
var selectedassignments = [];
checkboxes.each(function(node) {
if (node.get('checked')) {
selectedassignments[selectedassignments.length] = node.get('value');
}
});
operation = Y.one('#id_operation');
assignmentsinput = Y.one('input.selectedassignments');
assignmentsinput.set('value', selectedassignments.join(','));
if (selectedassignments.length == 0) {
alert(M.str.tool_assignmentupgrade.noassignmentsselected);
e.preventDefault();
}
});
var perpage = Y.one('#id_perpage');
perpage.on('change', function(e) {
window.onbeforeunload = null;
Y.one('.tool_assignmentupgrade_paginationform form').submit();
});
}
}
@@ -0,0 +1,59 @@
<?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 contains the forms to create and edit an instance of this module
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
/** Include formslib.php */
require_once ($CFG->libdir.'/formslib.php');
/**
* Assignment upgrade table display options
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_pagination_form extends moodleform {
/**
* Define this form - called from the parent constructor
*/
function definition() {
$mform = $this->_form;
$instance = $this->_customdata;
$mform->addElement('header', 'general', get_string('assignmentsperpage', 'tool_assignmentupgrade'));
// visible elements
$options = array(10=>'10', 20=>'20', 50=>'50', 100=>'100');
$mform->addElement('select', 'perpage', get_string('assignmentsperpage', 'assign'), $options);
// hidden params
$mform->addElement('hidden', 'action', 'saveoptions');
$mform->setType('action', PARAM_ALPHA);
// buttons
$this->add_action_buttons(false, get_string('updatetable', 'tool_assignmentupgrade'));
}
}
+244
View File
@@ -0,0 +1,244 @@
<?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/>.
/**
* Defines the renderer for the assignment upgrade helper plugin.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for the assignment upgrade helper plugin.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_renderer extends plugin_renderer_base {
/**
* Render the index page.
* @param string $detected information about what sort of site was detected.
* @param array $actions list of actions to show on this page.
* @return string html to output.
*/
public function index_page($detected, array $actions) {
$output = '';
$output .= $this->header();
$output .= $this->heading(get_string('pluginname', 'tool_assignmentupgrade'));
$output .= $this->box($detected);
$output .= html_writer::start_tag('ul');
foreach ($actions as $action) {
$output .= html_writer::tag('li',
html_writer::link($action->url, $action->name) . ' - ' .
$action->description);
}
$output .= html_writer::end_tag('ul');
$output .= $this->footer();
return $output;
}
/**
* Render a page that is just a simple message.
* @param string $message the message to display.
* @return string html to output.
*/
public function simple_message_page($message) {
$output = '';
$output .= $this->header();
$output .= $this->heading($message);
$output .= $this->back_to_index();
$output .= $this->footer();
return $output;
}
/**
* Render the confirm batch operation page
* @param stdClass $data Submitted form data with list of assignments to upgrade
* @return string html to output.
*/
public function confirm_batch_operation_page(stdClass $data) {
$output = '';
$output .= $this->header();
$output .= $this->heading(get_string('confirmbatchupgrade', 'tool_assignmentupgrade'));
$output .= $this->output->spacer(array(), true);
$output .= $this->container_start('tool_assignmentupgrade_confirmbatch');
$output .= $this->render(new tool_assignmentupgrade_batchoperationconfirm($data));
$output .= $this->container_end();
$output .= $this->back_to_index();
$output .= $this->footer();
return $output;
}
/**
* Render the confirm batch continue / cancel links
* @param tool_assignmentupgrade_batchoperationconfirm $confirm Wrapper class to determine the continue message and url
* @return string html to output.
*/
public function render_tool_assignmentupgrade_batchoperationconfirm(tool_assignmentupgrade_batchoperationconfirm $confirm) {
$output = '';
if ($confirm->continueurl) {
$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'));
}
return $output;
}
/**
* Render the list of assignments that still need to be upgraded page.
* @param tool_assignmentupgrade_assignments_table $assignments of data about assignments.
* @param tool_assignmentupgrade_batchoperations_form $batchform Submitted form with list of assignments to upgrade
* @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) {
$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'));
$output .= $this->output->spacer(array(), true);
$output .= $this->container_start('tool_assignmentupgrade_upgradetable');
$output .= $this->container_start('tool_assignmentupgrade_paginationform');
$output .= $this->moodleform($paginationform);
$output .= $this->container_end();
$output .= $this->flexible_table($assignments, $assignments->get_rows_per_page(), true);
$output .= $this->container_end();
if ($assignments->anyupgradableassignments) {
$output .= $this->container_start('tool_assignmentupgrade_batchform');
$output .= $this->moodleform($batchform);
$output .= $this->container_end();
}
$output .= $this->back_to_index();
$output .= $this->footer();
return $output;
}
/**
* Render the result of an assignment conversion
* @param stdClass $assignmentsummary data about the assignment to upgrade.
* @param bool $success Set to true if the outcome of the conversion was a success
* @param string $log The log from the conversion
* @return string html to output.
*/
public function convert_assignment_result($assignmentsummary, $success, $log) {
$output = '';
$output .= $this->container_start('tool_assignmentupgrade_result');
$output .= $this->container(get_string('upgradeassignmentsummary', 'tool_assignmentupgrade', $assignmentsummary));
if (!$success) {
$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')));
}
$output .= $this->container_end();
return $output;
}
/**
* Render the are-you-sure page to confirm a manual upgrade.
* @param stdClass $assignmentsummary data about the assignment to upgrade.
* @return string html to output.
*/
public function convert_assignment_are_you_sure($assignmentsummary) {
$output = '';
$output .= $this->header();
$output .= $this->heading(get_string('areyousure', 'tool_assignmentupgrade'));
$params = array('id' => $assignmentsummary->id, 'confirmed' => 1, 'sesskey' => sesskey());
$output .= $this->confirm(get_string('areyousuremessage', 'tool_assignmentupgrade', $assignmentsummary),
new single_button(tool_assignmentupgrade_url('upgradesingle', $params), get_string('yes')),
tool_assignmentupgrade_url('listnotupgraded'));
$output .= $this->footer();
return $output;
}
/**
* Helper method dealing with the fact we can not just fetch the output of flexible_table
*
* @param flexible_table $table
* @param int $rowsperpage
* @param bool $displaylinks Show links in the table
* @return string HTML
*/
protected function flexible_table(flexible_table $table, $rowsperpage, $displaylinks) {
$o = '';
ob_start();
$table->out($rowsperpage, $displaylinks);
$o = ob_get_contents();
ob_end_clean();
return $o;
}
/**
* Helper method dealing with the fact we can not just fetch the output of moodleforms
*
* @param moodleform $mform
* @return string HTML
*/
protected function moodleform(moodleform $mform) {
$o = '';
ob_start();
$mform->display();
$o = ob_get_contents();
ob_end_clean();
return $o;
}
/**
* Render a link in a div, such as the 'Back to plugin main page' link.
* @param string|moodle_url $url the link URL.
* @param string $text the link text.
* @return string html to output.
*/
public function end_of_page_link($url, $text) {
return html_writer::tag('div', html_writer::link($url, $text), array('class' => 'mdl-align'));
}
/**
* Output a link back to the plugin index page.
* @return string html to output.
*/
public function back_to_index() {
return $this->end_of_page_link(tool_assignmentupgrade_url('index'), get_string('backtoindex', 'tool_assignmentupgrade'));
}
}
+31
View File
@@ -0,0 +1,31 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Adds this plugin to the admin menu.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
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')));
}
+11
View File
@@ -0,0 +1,11 @@
#page-admin-tool-assignmentupgrade-listnotupgraded .tool_assignmentupgrade_upgradetable .c0 { display: none; }
#page-admin-tool-assignmentupgrade-listnotupgraded.jsenabled .tool_assignmentupgrade_upgradetable .c0 { display: table-cell; }
/*
.gradingbatchoperationsform { display: none; }
.jsenabled .gradingbatchoperationsform { display: block; }
*/
#page-admin-tool-assignmentupgrade-listnotupgraded .tool_assignmentupgrade_upgradetable tr.selectedrow td { background-color: #ffeecc; }
#page-admin-tool-assignmentupgrade-listnotupgraded .tool_assignmentupgrade_upgradetable tr.unselectedrow td { background-color: white; }
#page-admin-tool-assignmentupgrade-listnotupgraded .tool_assignmentupgrade_paginationform .hidden { display: none; }
@@ -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/>.
/**
* This file contains the forms to create and edit an instance of this module
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
/** Include formslib.php */
require_once ($CFG->libdir.'/formslib.php');
/**
* Assignment upgrade batch operations form
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class tool_assignmentupgrade_batchoperations_form extends moodleform {
/**
* Define this form - is called from parent constructor
*/
function definition() {
$mform = $this->_form;
$instance = $this->_customdata;
$mform->addElement('header', 'general', get_string('batchoperations', 'tool_assignmentupgrade'));
// visible elements
$mform->addElement('hidden', 'selectedassignments', '', array('class'=>'selectedassignments'));
$mform->addElement('submit', 'upgradeselected', get_string('upgradeselected', 'tool_assignmentupgrade'));
$mform->addElement('submit', 'upgradeall', get_string('upgradeall', 'tool_assignmentupgrade'));
}
}
@@ -0,0 +1,171 @@
<?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 contains the definition for the grading table which subclassses easy_table
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/tablelib.php');
require_once($CFG->libdir.'/gradelib.php');
require_once($CFG->dirroot.'/mod/assign/locallib.php');
/**
* Extends table_sql to provide a table of assignment submissions
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot {@link http://www.netspot.com.au}
* @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) */
private $rownum = -1;
/** @var renderer_base for getting output */
private $output = null;
/** @var boolean anyupgradableassignments - True if there is one or more assignments that can upgraded */
public $anyupgradableassignments = false;
/**
* 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) {
global $PAGE;
parent::__construct('tool_assignmentupgrade_assignments');
$this->perpage = $perpage;
$this->output = $PAGE->get_renderer('tool_assignmentupgrade');
$this->define_baseurl(new moodle_url('/admin/tool/assignmentupgrade/listnotupgraded.php'));
$this->anyupgradableassignments = tool_assignmentupgrade_any_upgradable_assignments();
// 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';
$from = '{assignment} a JOIN {course} c ON a.course = c.id ' .
' LEFT JOIN {assignment_submissions} s ON a.id = s.assignment';
$where = '1 = 1';
$where .= ' GROUP BY a.id, a.name, a.assignmenttype, c.shortname, c.id ';
$this->set_sql($fields, $from, $where, array());
$this->set_count_sql('SELECT COUNT(*) FROM {assignment} a JOIN {course} c ON a.course = c.id', array());
$columns = array();
$headers = array();
$columns[] = 'select';
$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';
$headers[] = get_string('assignmentid', 'tool_assignmentupgrade');
$columns[] = 'courseshortname';
$headers[] = get_string('course');
$columns[] = 'name';
$headers[] = get_string('name');
$columns[] = 'type';
$headers[] = get_string('assignmenttype', 'tool_assignmentupgrade');
$columns[] = 'submissioncount';
$headers[] = get_string('submissions', 'tool_assignmentupgrade');
// set the columns
$this->define_columns($columns);
$this->define_headers($headers);
$this->no_sorting('upgradable');
$this->no_sorting('select');
}
/**
* Return the number of rows to display on a single page
*
* @return int The number of rows per page
*/
function get_rows_per_page() {
return $this->perpage;
}
/**
* Format a link to the assignment instance
*
* @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);
}
/**
* Format a link to the upgrade single tool
*
* @param stdClass $row (contains cached result from previous upgradable check)
* @return string
*/
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'));
} else {
return get_string('notsupported', 'tool_assignmentupgrade');
}
}
/**
* Insert a checkbox for selecting the current row for batch operations
*
* @param stdClass $row
* @return string
*/
function col_select(stdClass $row) {
global $CFG;
$version = get_config('assignment_' . $row->type, 'version');
require_once($CFG->dirroot . '/mod/assign/locallib.php');
if (assign::can_upgrade_assignment($row->type, $version)) {
$row->upgradable = true;
return '<input type="checkbox" name="selectedassignment" value="' . $row->id . '"/>';
}
$row->upgradable = false;
return '';
}
/**
* Override the table show_hide_link to not show for select column
*
* @param string $column the column name, index into various names.
* @param int $index numerical index of the column.
* @return string HTML fragment.
*/
protected function show_hide_link($column, $index) {
if ($index > 0) {
return parent::show_hide_link($column, $index);
}
return '';
}
}
@@ -0,0 +1,46 @@
<?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/>.
/**
* Script to show all the assignments that have not been upgraded after the main upgrade.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.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)));
$PAGE->navbar->add(get_string('upgradesingle', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$log = '';
list($summary, $success, $log) = tool_assignmentupgrade_upgrade_assignment($assignmentid);
echo $renderer->header();
echo $renderer->heading(get_string('conversioncomplete', 'tool_assignmentupgrade'));
echo $renderer->convert_assignment_result($summary, $success, $log);
echo $renderer->continue_button(tool_assignmentupgrade_url('listnotupgraded'));
echo $renderer->footer();
@@ -0,0 +1,41 @@
<?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/>.
/**
* Script to show all the assignments that have not been upgraded after the main upgrade.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__) . '/../../../config.php');
require_once($CFG->libdir . '/adminlib.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)));
$PAGE->navbar->add(get_string('upgradesingle', 'tool_assignmentupgrade'));
$renderer = $PAGE->get_renderer('tool_assignmentupgrade');
$assignmentinfo = tool_assignmentupgrade_get_assignment($assignmentid);
echo $renderer->convert_assignment_are_you_sure($assignmentinfo);
+30
View File
@@ -0,0 +1,30 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Version details.
*
* @package tool_assignmentupgrade
* @copyright 2012 NetSpot
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2012112900;
$plugin->requires = 2012112900;
$plugin->component = 'tool_assignmentupgrade';
$plugin->dependencies = array('mod_assign' => 2012112900);
@@ -1,64 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Post installation and migration code.
*
* @package tool
* @subpackage bloglevelupgrade
* @copyright 2011 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
function xmldb_tool_bloglevelupgrade_install() {
global $CFG, $OUTPUT;
// this is a hack - admins were long ago instructed to upgrade blog levels,
// the problem is that blog is not supposed to be course level activity!!
if (!empty($CFG->bloglevel_upgrade_complete)) {
// somebody already upgrades, we do not need this any more
unset_config('bloglevel_upgrade_complete');
return;
}
if (!isset($CFG->bloglevel)) {
// fresh install?
return;
}
if (($CFG->bloglevel == BLOG_COURSE_LEVEL || $CFG->bloglevel == BLOG_GROUP_LEVEL)) {
// inform admins that some settings require attention after upgrade
$site = get_site();
$a = new StdClass;
$a->sitename = $site->fullname;
$a->fixurl = "$CFG->wwwroot/$CFG->admin/tool/bloglevelupgrade/index.php";
$subject = get_string('bloglevelupgrade', 'tool_bloglevelupgrade');
$description = get_string('bloglevelupgradedescription', 'tool_bloglevelupgrade', $a);
// can not use messaging here because it is not configured yet!
upgrade_log(UPGRADE_LOG_NOTICE, null, $subject, $description);
set_config('tool_bloglevelupgrade_pending', 1);
echo $OUTPUT->notification($description);
}
}
-174
View File
@@ -1,174 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Create "blog" forums in each course and copy blog entries from these courses' participants in these forums
*
* @package tool
* @subpackage bloglevelupgrade
* @copyright 2009 Nicolas Connault
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('NO_OUTPUT_BUFFERING', true);
require('../../../config.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/blog/lib.php');
require_once($CFG->dirroot.'/mod/forum/lib.php');
require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup('toolbloglevelupgrade');
$PAGE->set_pagelayout('maintenance');
$go = optional_param('go', 0, PARAM_BOOL);
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('pluginname', 'tool_bloglevelupgrade'));
$strbloglevelupgrade = get_string('bloglevelupgradeinfo', 'tool_bloglevelupgrade');
if (!$go or !data_submitted() or !confirm_sesskey()) { /// Print a form
$optionsyes = array('go'=>1, 'sesskey'=>sesskey());
echo $OUTPUT->confirm($strbloglevelupgrade, new moodle_url('/admin/tool/bloglevelupgrade/index.php', $optionsyes), new moodle_url('/admin/index.php'));
echo $OUTPUT->footer();
die;
}
echo $OUTPUT->box_start();
/// Turn off time limits, sometimes upgrades can be slow.
set_time_limit(0);
$i = 0;
// If $CFG->bloglevel is set to BLOG_GROUP_LEVEL or BLOG_COURSE_LEVEL, create a new "blog" forum in each course
// whose enrolled students have written blog entries, copy these entries in that forum and switch off blogs at site level
if ($CFG->bloglevel == BLOG_COURSE_LEVEL || $CFG->bloglevel == BLOG_GROUP_LEVEL) {
$pbar = new progress_bar('toolbloglevelupgrade', 500, true);
$bloggers = $DB->get_records_sql("SELECT userid FROM {post} WHERE module = 'blog' GROUP BY userid");
require_once($CFG->dirroot.'/mod/forum/lib.php');
$a = new stdClass();
$a->userscount = 0;
$a->blogcount = 0;
foreach ($bloggers as $blogger) {
$courses = enrol_get_users_courses($blogger->userid, true, 'groupmode,groupmodeforce');
$blogentries = $DB->get_records('post', array('module' => 'blog', 'userid' => $blogger->userid));
foreach ($courses as $course) {
$forum = forum_get_course_forum($course->id, 'blog');
$cm = get_coursemodule_from_instance('forum', $forum->id);
if ($CFG->bloglevel == BLOG_GROUP_LEVEL && $course->groupmode != NOGROUPS) {
// Unless the course is set to separate groups forced, force the forum to Separate groups
if (!($course->groupmode == SEPARATEGROUPS && $course->groupmodeforce)) {
$cm->groupmode = SEPARATEGROUPS;
$DB->update_record('course_modules', $cm);
}
$groups = groups_get_user_groups($course->id, $blogger->userid);
foreach ($groups[0] as $groupid) { // [0] is for all groupings combined
$a->blogcount += bloglevelupgrade_entries($blogentries, $forum, $cm, $groupid);
}
} else {
$a->blogcount += bloglevelupgrade_entries($blogentries, $forum, $cm);
}
}
$a->userscount = $i . '/' . count($bloggers);
$pbar->update($i, count($bloggers), get_string('bloglevelupgradeprogress', 'tool_bloglevelupgrade', $a));
$i++;
}
}
function bloglevelupgrade_entries($blogentries, $forum, $cm, $groupid=-1) {
$count = 0;
$forumcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
foreach ($blogentries as $blogentry) {
$discussion = new stdClass();
$discussion->course = $forum->course;
$discussion->forum = $forum->id;
$discussion->name = $blogentry->subject;
$discussion->assessed = $forum->assessed;
$discussion->message = $blogentry->summary;
$discussion->messageformat = $blogentry->summaryformat;
$discussion->messagetrust = 0;
$discussion->attachments = 0;
$discussion->mailnow = false;
$discussion->timemodified = $blogentry->created;
$discussion->itemid = null;
$discussion->groupid = $groupid;
$message = '';
$discussionid = forum_add_discussion($discussion, null, $message);
// Copy file attachment records
$fs = get_file_storage();
$files = $fs->get_area_files($sitecontext->id, 'blog', 'attachment', $blogentry->id);
if (!empty($files)) {
foreach ($files as $storedfile) {
$newfile = new stdClass();
$newfile->component = 'mod_forum';
$newfile->filearea = 'attachment';
$newfile->itemid = $discussion->firstpost;
$newfile->contextid = $forumcontext->id;
$fs->create_file_from_storedfile($newfile, $storedfile->get_id());
}
}
$files = $fs->get_area_files($sitecontext->id, 'blog', 'post', $blogentry->id);
if (!empty($files)) {
foreach ($files as $storedfile) {
$newfile = new stdClass();
$newfile->component = 'mod_forum';
$newfile->filearea = 'post';
$newfile->itemid = $discussion->firstpost;
$newfile->contextid = $forumcontext->id;
$fs->create_file_from_storedfile($newfile, $storedfile->get_id());
}
}
$count++;
}
return $count;
}
// END OF LOOP
// set conversion flag - switches to new plugin automatically
unset_config('tool_bloglevelupgrade_pending');
// Finally switch bloglevel to 0 (disabled)
set_config('bloglevel', 0);
echo $OUTPUT->box_end();
/// Rebuild course cache which might be incorrect now
echo $OUTPUT->notification('Rebuilding course cache...', 'notifysuccess');
rebuild_course_cache();
echo $OUTPUT->notification('...finished', 'notifysuccess');
echo $OUTPUT->continue_button(new moodle_url('/admin/index.php'));
echo $OUTPUT->footer();
die;
@@ -1,33 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'tool_bloglevelupgrade', language 'en', branch 'MOODLE_22_STABLE'
*
* @package tool
* @subpackage bloglevelupgrade
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['bloglevelupgradedescription'] = '<p>This site has recently been upgraded to Moodle 2.0.</p>
<p>Blog visibility was simplified in 2.0, but your site still uses one of the old visibility types. </p>
<p>To preserve the course-based or group-based visibility of the blog entries on your site, you need to run the following upgrade script, which will create a special "blog" type forum in each course whose enrolled users have posted blog entries, and will copy these blog entries in this special forum. </p>
<p>Blogs will then be entirely switched off at the site level. No blog entries will be deleted in the process.</p>
<p>You can run the script by visiting <a href="{$a->fixurl}">the blog level upgrade page</a>.</p>';
$string['bloglevelupgradeinfo'] = 'Blog visibility was simplified in 2.0, but your site still uses one of the old visibility types. To preserve the course-based or group-based visibility of the blog entries on your site, the following upgrade script will create a special "blog" type forum in each course whose enrolled users have posted blog entries, and will copy these blog entries in this special forum. Blogs will then be entirely switched off at the site level. No blog entries will be deleted in the process.';
$string['bloglevelupgradeprogress'] = 'Conversion progress: {$a->userscount} users reviewed, {$a->blogcount} entries converted.';
$string['pluginname'] = 'Blog visibility upgrade';
-30
View File
@@ -1,30 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Capability overview settings
*
* @package tool
* @subpackage bloglevelupgrade
* @copyright 2011 Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
if ($hassiteconfig) {
$ADMIN->add('root', new admin_externalpage('toolbloglevelupgrade', get_string('pluginname', 'tool_bloglevelupgrade'), $CFG->wwwroot.'/'.$CFG->admin.'/tool/bloglevelupgrade/index.php', 'moodle/site:config', empty($CFG->tool_bloglevelupgrade_pending)));
}
-30
View File
@@ -1,30 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Version details.
*
* @package tool
* @subpackage bloglevelupgrade
* @copyright 2011 Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
$plugin->component = 'tool_bloglevelupgrade'; // Full name of the plugin (used for diagnostics)
+6 -6
View File
@@ -29,16 +29,16 @@ require_once($CFG->libdir.'/adminlib.php');
// Check permissions.
require_login();
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$systemcontext = context_system::instance();
require_capability('moodle/role:manage', $systemcontext);
// Get URL parameters.
$capability = optional_param('capability', '', PARAM_CAPABILITY);
$roleids = optional_param_array('roles', array('0'), PARAM_INTEGER);
$roleids = optional_param_array('roles', array('0'), PARAM_INT);
// Clean the passed in list of role ids. If 'All' selected as an option, or
// if none were selected, do all roles.
$allroles = get_all_roles();
$allroles = role_fix_names(get_all_roles());
$cleanedroleids = array();
foreach ($roleids as $roleid) {
if ($roleid == 0) {
@@ -73,7 +73,7 @@ foreach ($allcapabilities as $cap) {
// Prepare the list of roles to choose from
$rolechoices = array('0' => get_string('all'));
foreach ($allroles as $role) {
$rolechoices[$role->id] = $role->name;
$rolechoices[$role->id] = $role->localname;
}
if (count($cleanedroleids) == count($allroles)) {
// Select 'All', rather than each role individually.
@@ -162,7 +162,7 @@ if ($capability) {
if (count($cleanedroleids) != count($allroles)) {
$rolenames = array();
foreach ($cleanedroleids as $roleid) {
$rolenames[] = $allroles[$roleid]->name;
$rolenames[] = $allroles[$roleid]->localname;
}
echo '<p>', get_string('forroles', 'tool_capability', implode(', ', $rolenames)), '</p>';
}
@@ -207,7 +207,7 @@ function print_report_tree($contextid, $contexts, $allroles) {
foreach ($allroles as $role) {
if (isset($contexts[$contextid]->rolecapabilities[$role->id])) {
$permission = $contexts[$contextid]->rolecapabilities[$role->id];
echo '<tr class="r' . ($rowcounter % 2) . '"><th class="cell">', $role->name,
echo '<tr class="r' . ($rowcounter % 2) . '"><th class="cell">', $role->localname,
'</th><td class="cell">' . $strpermissions[$permission] . '</td></tr>';
$rowcounter++;
}
+2 -2
View File
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
$plugin->version = 2012112900; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012112900; // Requires this Moodle version
$plugin->component = 'tool_capability'; // Full name of the plugin (used for diagnostics)
+1 -2
View File
@@ -18,8 +18,7 @@
/**
* Defines the capabilities used by the Language customization admin tool
*
* @package tool
* @subpackage customlang
* @package tool_customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-18
View File
@@ -28,24 +28,6 @@ defined('MOODLE_INTERNAL') || die;
function xmldb_tool_customlang_install() {
global $CFG, $OUTPUT, $DB;
// this is a hack - this plugin used to live in admin/report/customlang,
// we want to remove the orphaned version info and capability
// unless there is a new report type with the same name
// the original tables can be dropped because they are used for caching only
if (!file_exists("$CFG->dirroot/report/customlang")) {
unset_all_config_for_plugin('report_customlang');
capabilities_cleanup('report_customlang');
$dbman = $DB->get_manager();
$table = new xmldb_table('report_customlang');
if ($dbman->table_exists($table)) {
$dbman->drop_table($table);
}
$table = new xmldb_table('report_customlang_components');
if ($dbman->table_exists($table)) {
$dbman->drop_table($table);
}
}
}

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