Compare commits

..

1229 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) 6ccbbe5936 Moodle release 2.1.10 2013-01-11 22:18:31 +01:00
Eloy Lafuente (stronk7) 50faa1482d weekly release 2.1.9+ 2013-01-11 12:30:21 +01:00
Eloy Lafuente (stronk7) 150c0b7e2c Merge branch 'install_21_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_21_STABLE 2013-01-11 12:17:20 +01:00
David Mudrák 4eeece1f92 MDL-37467 Do not provide blog posts via RSS when blogging is disabled 2013-01-10 18:18:26 +01:00
David Mudrák fd91456383 MDL-36977 Be more picky when it comes to migrating files in moodle1 backups 2013-01-08 08:57:04 +08:00
David Mudrák 4a27bde150 MDL-36977 Add more unit tests for moodle1 backup conversion 2013-01-08 08:55:27 +08:00
AMOS bot d1c98147e4 Automatically generated installer lang files 2013-01-01 00:43:03 +00:00
Eloy Lafuente (stronk7) 65d6ca257c weekly release 2.1.9+ 2012-12-30 01:03:34 +01:00
Petr Škoda 9803d8fc3c MDL-37283 import tinymce spellchecker 2.0.6.1 2012-12-24 10:37:05 +08:00
Eloy Lafuente (stronk7) 7e71b80f1e weekly release 2.1.9+ 2012-12-20 21:10:22 +01:00
Eloy Lafuente (stronk7) db6243d0a1 Merge branch 'install_21_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_21_STABLE 2012-12-20 20:57:56 +01:00
AMOS bot ec17e70103 Automatically generated installer lang files 2012-12-20 00:40:41 +00:00
AMOS bot c26a6747c6 Automatically generated installer lang files 2012-12-19 00:42:04 +00:00
Paul Nicholls f94bb9ebd4 MDL-27619: Prevent teachers from turning course Outcomes into site-wide ones
Similar to the issue which allowed teachers to create site-wide scales by editing a course-specific scale (MDL-24682), teachers could also promote a course-specific scale to a site-wide (standard) by editing it.  As with MDL-24682, removing the course ID check (leaving just the capability check) prevents this unauthorised creation of site-wide (standard) outcomes.
2012-12-18 09:43:30 +13:00
Eloy Lafuente (stronk7) 85fc893630 weekly release 2.1.9+ 2012-12-08 02:53:27 +01:00
AMOS bot e076bc63a5 Automatically generated installer lang files 2012-12-01 00:43:10 +00:00
Eloy Lafuente (stronk7) cc07dee0d0 weekly release 2.1.9+ 2012-11-30 13:23:40 +01:00
Dan Poltawski d8b662d5e2 weekly release 2.1.9+ 2012-11-23 15:18:15 +08:00
Dan Poltawski e5f91ef230 Merge branch 'install_21_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_21_STABLE 2012-11-23 15:16:01 +08:00
AMOS bot e8138a566d Automatically generated installer lang files 2012-11-22 09:05:27 +00:00
Adrian Greeve 640acd9907 MDL-36668 - mod/data: Removed duplicate data_content join in simple searches.
Thanks to Patrick Pollet (patrick.pollet@insa-lyon.fr) for his patch
2012-11-19 10:15:45 +08:00
Dan Poltawski f24293bf1a weekly release 2.1.9+ 2012-11-16 15:38:21 +08:00
AMOS bot 2cc726280f Automatically generated installer lang files 2012-11-10 00:36:27 +00:00
Eloy Lafuente (stronk7) eef69e4122 Moodle release 2.1.9 2012-11-09 19:33:29 +01:00
Eloy Lafuente (stronk7) 5339ba2cf9 MDL-25948 upgrade: Avoid overlaping with weeklies 2012-11-09 18:59:40 +01:00
Eloy Lafuente (stronk7) 828bb475ac Merge branch 'MDL-25948_m21' of git://github.com/markn86/moodle into MOODLE_21_STABLE 2012-11-09 18:58:33 +01:00
Mark Nelson 7ea26a73c4 MDL-25948 upgrade: Check that field does not match defaults before editing. 2012-11-09 19:02:15 +08:00
Dan Poltawski c04de02282 weekly release 2.1.8+ 2012-11-09 17:59:51 +08:00
Dan Poltawski 176a06e4e6 Merge branch 'install_21_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_21_STABLE 2012-11-09 17:54:52 +08:00
Mark Nelson 2c53094c6f MDL-33791 Portfolio: Fixed security issue with passing file paths. 2012-11-08 00:28:22 +01:00
Adrian Greeve 4cf9360fca MDL-35558 mod_data: Show only own entries while there are required pending. 2012-11-07 19:55:23 +01:00
Dan Poltawski 546667e238 Merge branch 'MDL-36346_21' of git://github.com/pauln/moodle into MOODLE_21_STABLE 2012-11-07 09:28:44 +08:00
Paul Nicholls 7972bc0491 MDL-36346 - YUI2 SWF vulnerability, part 2 2012-11-07 13:45:34 +13:00
AMOS bot 6a57ed2001 Automatically generated installer lang files 2012-11-07 00:36:34 +00:00
Rossiani Wijaya c62a20c42b Backport MDL-29872 to 21_STABLE 2012-11-06 12:58:03 +01:00
Dan Poltawski ee02183dce Merge branch 'MDL-36346_21' of git://github.com/pauln/moodle into MOODLE_21_STABLE 2012-11-06 16:35:35 +08:00
Paul Nicholls 299e51924e MDL-36346 - YUI2 SWF vulnerability 2012-11-06 14:36:29 +13:00
Dan Poltawski 7837711783 Merge branch 'w42_MDL-35469_m21_geckover' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-11-02 12:07:26 +08:00
Mark Nelson 4326153883 MDL-25948 upgrade: Fixing issues with upgrade from < 1.7 to 2.x. 2012-11-01 17:49:04 +08:00
Dan Poltawski c22a3558d3 weekly release 2.1.8+ 2012-11-01 14:18:17 +08:00
AMOS bot 226735fec1 Automatically generated installer lang files 2012-11-01 00:36:41 +00:00
AMOS bot fc1414d856 Automatically generated installer lang files 2012-10-27 00:34:40 +00:00
AMOS bot eada616a76 Automatically generated installer lang files 2012-10-20 00:34:55 +00:00
AMOS bot af3889cc3f Automatically generated installer lang files 2012-10-19 00:35:18 +00:00
Aparup Banerjee 9fa159e2b4 weekly release 2.1.8+ 2012-10-18 19:49:39 +08:00
AMOS bot 46bd05ecc8 Automatically generated installer lang files 2012-10-18 00:34:58 +00:00
AMOS bot 08947f22ab Automatically generated installer lang files 2012-10-15 00:35:00 +00:00
Eloy Lafuente (stronk7) 95932f640a weekly release 2.1.8+ 2012-10-15 00:19:13 +02:00
Eloy Lafuente (stronk7) f772bb2b97 Merge branch 'install_21_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_21_STABLE 2012-10-15 00:08:04 +02:00
AMOS bot 339579a5ac Automatically generated installer lang files 2012-10-10 00:34:22 +00:00
Petr Škoda 14859c7c2f 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-09 15:51:45 +02:00
AMOS bot a7aa062d70 Automatically generated installer lang files 2012-10-09 00:34:44 +00:00
Adrian Greeve cfddc821c0 MDL-34448 - mod/data - Fixing separate groups viewing all entries. 2012-10-08 15:14:20 +08:00
AMOS bot 160bd39347 Automatically generated installer lang files 2012-10-06 00:34:04 +00:00
Eloy Lafuente (stronk7) a8d671999f weekly release 2.1.8+ 2012-10-05 13:36:51 +02:00
AMOS bot 53d871beac Automatically generated installer lang files 2012-10-04 00:35:03 +00:00
AMOS bot ae04014f6b Automatically generated installer lang files 2012-09-29 00:34:21 +00:00
Dan Poltawski 62aecff9da weekly release 2.1.8+ 2012-09-27 18:49:43 +08:00
Dan Poltawski 53f164b797 Merge branch 'install_21_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_21_STABLE 2012-09-27 18:48:22 +08:00
Dan Poltawski b81913ccc6 Merge branch 'MDL-35207-workshop-attachments-upgrade_21' of git://github.com/mudrd8mz/moodle into MOODLE_21_STABLE 2012-09-24 16:48:46 +08:00
David Mudrák ca2d4d39a2 MDL-35207 Fix 1.9 > 2.x upgrade of workshop submission attachments
Attachments of submission with non-linear ids in 1.9 database were not
upgraded correctly due to old id and new id mismatch. Credit goes to
Juan Segarra Montesinos for spotting the problem and suggesting a patch.
2012-09-22 23:37:26 +02:00
AMOS bot 2387735808 Automatically generated installer lang files 2012-09-21 00:34:55 +00:00
Dan Poltawski 22eb7f13e4 weekly release 2.1.8+ 2012-09-20 14:12:00 +08:00
AMOS bot 413cba10cc Automatically generated installer lang files 2012-09-19 00:34:27 +00:00
Eloy Lafuente (stronk7) 7dcbb60c76 weekly release 2.1.8+ 2012-09-14 19:08:53 +02:00
AMOS bot 1e2cf5ad50 Automatically generated installer lang files 2012-09-13 00:34:36 +00:00
Eloy Lafuente (stronk7) 445b4dd368 Moodle 2.1.8 release 2012-09-09 16:20:21 +02:00
AMOS bot 9865cbfb60 Merge branch 'MOODLE_21_STABLE' into install_21_STABLE 2012-09-08 00:34:49 +00:00
Eloy Lafuente (stronk7) c95a67cd94 weekly release 2.1.7+ 2012-09-07 02:37:18 +02:00
AMOS bot 3875f26ebf Automatically generated installer lang files 2012-09-07 00:35:14 +00:00
AMOS bot 9963023979 Automatically generated installer lang files 2012-09-02 00:32:48 +00:00
Eloy Lafuente (stronk7) 68763aef2d weekly release 2.1.7+ 2012-08-31 11:34:10 +02:00
AMOS bot c7c5b77888 Automatically generated installer lang files 2012-08-27 00:32:50 +00:00
Eloy Lafuente (stronk7) bf43fdd447 weekly release 2.1.7+ 2012-08-23 19:24:11 +02:00
AMOS bot ae11b8c080 Automatically generated installer lang files 2012-08-19 00:31:39 +00:00
AMOS bot 7cab4616f5 Automatically generated installer lang files 2012-08-17 00:31:53 +00:00
Eloy Lafuente (stronk7) ea7f6fb4b1 weekly release 2.1.7+ 2012-08-16 17:24:31 +02:00
AMOS bot b857de59ab Automatically generated installer lang files 2012-08-15 00:31:35 +00:00
AMOS bot d36658a989 Automatically generated installer lang files 2012-08-11 00:31:33 +00:00
AMOS bot c97f7de664 Automatically generated installer lang files 2012-08-10 00:31:50 +00:00
Eloy Lafuente (stronk7) b24f1eb290 weekly release 2.1.7+ 2012-08-09 20:50:23 +02:00
Eloy Lafuente (stronk7) f231685050 Merge branch 'install_21_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_21_STABLE 2012-08-09 20:46:52 +02:00
AMOS bot 8ec4354542 Automatically generated installer lang files 2012-08-09 00:31:40 +00:00
AMOS bot 1c8fe24234 Automatically generated installer lang files 2012-08-07 00:31:58 +00:00
AMOS bot 9900a3df74 Automatically generated installer lang files 2012-08-04 00:32:02 +00:00
AMOS bot e78c8c9054 Automatically generated installer lang files 2012-08-03 11:45:31 +02:00
Petr Škoda 2d2cce8bd2 MDL-34585 fix broken blog file access control 2012-08-02 10:00:04 +02:00
Dan Poltawski 8f7756b0e2 weekly release 2.1.7+ 2012-08-02 14:40:31 +08:00
Petr Škoda d4c83ae4fb MDL-34368 fix another validuntil condition 2012-08-01 15:07:26 +08:00
Nathan Mares c090fe60c7 MDL-34368: Fix broken query in so tokens are correctly checked against the linked service 2012-07-30 15:49:59 +08:00
Dan Poltawski 5b6f73f488 Merge branch 'MDL-34507-21' of git://github.com/FMCorz/moodle into MOODLE_21_STABLE 2012-07-30 14:05:38 +08:00
Dan Poltawski e60c472ccb Merge branch 'MDL-34519_21_course_reset_patch' of git://github.com/rlorenzo/moodle into MOODLE_21_STABLE 2012-07-30 11:58:13 +08:00
Frederic Massart 76c590c0aa MDL-34507 Filepicker: Repositories with specific filetypes are displayed when expected 2012-07-27 09:32:54 +08:00
Aparup Banerjee 60dce6a2c1 weekly release 2.1.7+ 2012-07-26 14:31:09 +08:00
Aparup Banerjee 56f9e59241 Merge branch 'install_21_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_21_STABLE 2012-07-26 14:04:26 +08:00
AMOS bot 6f3c243bb8 Automatically generated installer lang files 2012-07-26 00:31:46 +00:00
Rex Lorenzo e74681c8b2 MDL-34519 - Course reset not protected by proper capability 2012-07-24 12:05:24 -07:00
Aparup Banerjee b693256a99 Merge branch 'wip-mdl-33159-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-07-24 11:18:59 +08:00
AMOS bot 77fa678ef2 Automatically generated installer lang files 2012-07-24 00:32:11 +00:00
Derick Turner 6819bed8da MDL-33159 course: Fix for site wide restricted modules not being selected by default 2012-07-20 12:36:41 +08:00
Dan Marsden f3ab1e0c8f MDL-34233 SCORM backup - change to using set_source_sql to preserve order of records in backup. 2012-07-19 19:41:07 +12:00
Dan Poltawski 33faa0d19d weekly release 2.1.7+ 2012-07-19 13:47:59 +08:00
Dan Poltawski af08d144c9 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-07-19 13:42:39 +08:00
Rossiani Wijaya 5127b43eec MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results 2012-07-17 10:09:37 +08:00
AMOS bot fc07639e9b Automatically generated installer lang files 2012-07-17 00:31:56 +00:00
AMOS bot bc9e603b3f Automatically generated installer lang files 2012-07-13 00:32:34 +00:00
Dan Poltawski 27a7bb1a0d weekly release 2.1.7+ 2012-07-12 16:03:10 +08:00
Dan Poltawski aea7288f77 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-07-12 15:50:50 +08:00
Sam Hemelryk 18889e0e78 Revert "MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results"
This reverts commit b66a680956.
2012-07-12 18:21:53 +12:00
AMOS bot 3df96ad21b Automatically generated installer lang files 2012-07-12 00:32:33 +00:00
AMOS bot dc01f95fb4 Automatically generated installer lang files 2012-07-10 20:33:26 +02:00
Sam Hemelryk c54cd379ac Merge branch 'MDL-29470-21' of git://github.com/FMCorz/moodle into MOODLE_21_STABLE 2012-07-10 12:09:06 +12:00
Charles Fulton bdeeadb3c3 MDL-27800 admin: make front page restore link consistent
Conflicts:

	admin/settings/frontpage.php
2012-07-10 11:33:58 +12:00
Frederic Massart e1abf003ee MDL-29470 Backup: fixed unexpected next automated backup date 2012-07-09 13:50:08 +08:00
Sam Hemelryk b66a680956 MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results 2012-07-09 10:56:36 +12:00
Sam Hemelryk 5c89dd5d18 Merge branch 'MDL-30816_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-07-09 10:28:26 +12:00
Sam Hemelryk 67fb1b666e Merge branch 'MDL-33514-21' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-07-09 10:21:47 +12:00
AMOS bot 6311d4de60 Automatically generated installer lang files 2012-07-07 00:31:30 +00:00
Sam Hemelryk 870d485024 Moodle 2.1.7 release 2012-07-06 11:29:00 +12:00
Sam Hemelryk 44708a5568 weekly release 2.1.6+ 2012-07-06 10:07:16 +12:00
Sam Hemelryk 0ac34abbfb Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-07-06 09:49:24 +12:00
Rossiani Wijaya eace33059c MDL-30816 Choice module: add format_string() for choice name. 2012-07-05 12:23:45 +08:00
Rossiani Wijaya e626145ef6 MDL-30816 choice module: fixed accessibility for responses table and make it easier for screenreader to read it 2012-07-05 12:23:31 +08:00
Eloy Lafuente (stronk7) 97f5b526e6 Merge branch 'MDL-34145_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-07-05 03:41:51 +02:00
AMOS bot 0abafc0622 Automatically generated installer lang files 2012-07-05 00:31:20 +00:00
Sam Hemelryk 48d0a91018 MDL-33770 webservices: Fixed error with core_group_create_groups when no enrolment key provided 2012-07-05 09:22:44 +12:00
Eloy Lafuente (stronk7) adb1b0afb4 MDL-32062 question engine: fix simpletests broken by the change. 2012-07-04 17:17:39 +02:00
AMOS bot ec68dac0fd Automatically generated installer lang files 2012-07-04 00:32:06 +00:00
Sam Hemelryk 7d7f36787b Merge branch 'MDL-32062_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-07-04 09:53:32 +12:00
Charles Fulton d27076d09e MDL-32851 resource: skip resources with invalid files 2012-07-04 09:43:21 +12:00
sam marshall 4dbc9b75d2 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-07-04 09:38:16 +12:00
Jonathan Harker f0da446c56 MDL-27125 better manage file handles when downloading multiple files.
Based on Dongsheng Cai's branch: s11_MDL-27125_curl_file_handler_master
2012-07-04 09:33:22 +12:00
Sam Hemelryk 17a759cf61 Merge branch 'wip-MDL-33749-MOODLE_21_STABLE' of https://github.com/kwiliarty/moodle into MOODLE_21_STABLE 2012-07-04 08:41:26 +12:00
Kevin Wiliarty 78dd6d4813 MDL-33749 follow redirects for URL downloader 2012-07-03 16:22:21 -04:00
Dan Poltawski d65a100e88 Merge branch 'MDL-30903-21' of git://github.com/FMCorz/moodle into MOODLE_21_STABLE 2012-07-03 11:51:46 +08:00
Dan Poltawski 7e31c3b1c3 Merge branch 'MDL-30883_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-07-03 11:02:23 +08:00
Sam Hemelryk 30cab618e1 Merge branch 'wip-MDL-33957-stable21' of git://github.com/phalacee/moodle into MOODLE_21_STABLE 2012-07-03 14:57:14 +12:00
AMOS bot 1b82db6d0d Automatically generated installer lang files 2012-07-03 00:31:36 +00:00
Sam Hemelryk 75aa150051 Merge branch 'MOODLE_21_STABLE-MDL-33770' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-07-03 11:47:58 +12:00
Frederic Massart ee9bd0e350 MDL-33796 Glossary: removed unused missing string 2012-07-03 01:08:09 +02:00
Dan Poltawski f7b1660aa6 MDL-9214 - improve comment for custom login instructions 2012-07-03 10:47:36 +12:00
Dan Poltawski b97702e584 MDL-32286 - fix ambigious english string 2012-07-03 10:43:07 +12:00
Matthew G. Switlik 5de876ba81 MDL-28151 resource: prevent cropping of large images
Conflicts:

	theme/base/style/core.css
2012-07-03 10:16:04 +12:00
Eloy Lafuente (stronk7) 8162a1308a Merge branch 'MDL-23813_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-07-02 23:54:02 +02:00
Aparup Banerjee 33406a758c MDL-23254 Authentication : used httpswwwroot as root url during authentication procedure where $PAGE->https_required() is specified. 2012-07-03 09:42:51 +12:00
Dan Poltawski 44181e8a24 MDL-34081 dml: mssql driver was using case insensitve sql 2012-07-02 21:09:09 +02:00
Tim Hunt 9eb2207168 MDL-23813 glossary filter: add missing YUI dependency
Fix found by Huy Hoang. I am just making a commit.
2012-07-02 17:48:20 +01:00
Tim Hunt 3aa0f88b6e 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:24:10 +01:00
Dan Poltawski d3c8f933df MDL-31802 - navigation: add a comment about session reduction 2012-07-02 17:29:30 +08:00
Dan Poltawski a3039b2085 Merge branch 'MDL-31802_21' of git://github.com/aolley/moodle into MOODLE_21_STABLE 2012-07-02 17:25:14 +08:00
Dan Poltawski 0a6a6a9cde Merge branch 'w27_MDL-34045_m21_idnumber' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-07-02 16:34:38 +08:00
Dan Poltawski 5edb51d072 Merge branch 'MDL-33924_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-07-02 16:19:37 +08:00
Dan Poltawski 1f4a068537 Merge branch 'MDL-33780_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-07-02 16:07:51 +08:00
Dan Poltawski a0ca809653 Merge branch 'MDL-30008-21' of git://github.com/FMCorz/moodle into MOODLE_21_STABLE 2012-07-02 15:43:49 +08:00
Dan Poltawski e059f69d3f Merge branch 'MDL-9073-21' of github.com:FMCorz/moodle into MOODLE_21_STABLE 2012-07-02 15:34:39 +08:00
Dan Poltawski 706c814d8c Merge branch 'MDL-31987_assignment_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-07-02 15:13:05 +08:00
Rossiani Wijaya d0c33d06a3 MDL-31987 Assignment module: fixed upgrade version 2012-07-02 14:58:33 +08:00
Dan Poltawski f2d59e46eb MDL-31987 Assignment module: fix sql for postgres. 2012-07-02 14:57:02 +08:00
Rossiani Wijaya 22c1e3f385 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:57:02 +08:00
Dan Poltawski 722efe6e5b Merge branch 'MDL-27842-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-07-02 11:27:42 +08:00
Sam Hemelryk 40f00ad784 Merge branch 'MDL-33932_21' of git://github.com/grabs/moodle into MOODLE_21_STABLE 2012-07-02 14:31:32 +12:00
Sam Hemelryk 45181b1553 Merge branch 'MDL-33627_21' of git://github.com/grabs/moodle into MOODLE_21_STABLE 2012-07-02 14:05:42 +12:00
Eloy Lafuente (stronk7) ec7a8c38d9 weekly release 2.1.6+ 2012-07-02 00:51:36 +02:00
Eloy Lafuente (stronk7) 18df418a50 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-07-02 00:45:26 +02:00
Sam Hemelryk e2f3b1eea1 Merge branch 'MDL-34044-21' of git://github.com/srynot4sale/moodle into MOODLE_21_STABLE 2012-07-02 08:22:10 +12:00
Eloy Lafuente (stronk7) 555769489a Merge branch 'MDL-32249c-21' of github.com:srynot4sale/moodle into MOODLE_21_STABLE 2012-07-01 02:15:41 +02:00
Sun Zhigang c27a49324e MDL-31201 wiki: fix a hardcoded string 2012-06-30 22:01:57 +02:00
Petr Škoda 92979a841d MDL-34045 fix invalid idnumber field type in cohort form 2012-06-30 07:52:26 +02:00
Ankit Agarwal 05ddbc3143 MDL-27842 calendar: Remove the use of deprecated function calendar_print_event from delete.php 2012-06-29 15:03:13 +08:00
Adam Olley bded2e91a0 MDL-31802: Remove section summaries from navigation_cache 2012-06-28 11:08:57 +09:30
AMOS bot b532610c2f Automatically generated installer lang files 2012-06-28 00:31:34 +00:00
Tim Hunt 76ef65f45d MDL-33924 quiz: incorrect foreign key definition.
Thanks to Jean-Michel Vedrine for spotting this.≈
2012-06-27 08:03:04 +01:00
Aaron Barnes 7d82a37b49 MDL-34044 completion: Fix regression caused by MDL-26626 2012-06-27 12:03:21 +12:00
Tim Hunt 2f82ac596b 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 09:58:32 +01:00
Tim Hunt 81200053af 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:52:09 +01:00
Tim Hunt bd874d2a0e MDL-30883 question flags: aria attributes for accessibility
Also, update code to use html_writer.

Conflicts:

	theme/base/style/question.css
2012-06-26 09:51:24 +01:00
Aaron Barnes 676910acbd 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 14:03:23 +12:00
AMOS bot bb44b2c9d0 Automatically generated installer lang files 2012-06-26 00:31:35 +00:00
AMOS bot b53489190d Merge branch 'MOODLE_21_STABLE' into install_21_STABLE 2012-06-26 00:31:34 +00:00
Andreas Grabs 99b1eb1755 MDL-33932_21 - added array_unique() 2012-06-25 21:52:27 +02:00
Andreas Grabs 4e2841b795 MDL-33627 - feedback block now show all feedbacks 2012-06-25 21:52:24 +02:00
Dan Poltawski 3546266a6b Merge branch 'MDL-33984_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-06-25 21:58:20 +08:00
Eloy Lafuente (stronk7) d81704f632 MDL-33984 mysql: take rid of old unicode & mysql 4.1 message on error. 2012-06-25 15:50:13 +02:00
Dan Poltawski e13939dc77 Merge branch 'MDL-33984_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-06-25 18:47:20 +08:00
Eloy Lafuente (stronk7) 40bde9dfa6 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:34:43 +02:00
AMOS bot 7b25272f43 Automatically generated installer lang files 2012-06-25 00:31:49 +00:00
Eloy Lafuente (stronk7) bce307ee77 Merge branch 'w25_MDL-33733_m21_unzipstorage' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-06-25 01:23:07 +02:00
Eloy Lafuente (stronk7) 66aece01f9 weekly release 2.1.6+ 2012-06-24 18:34:09 +02:00
Eloy Lafuente (stronk7) d332e9f012 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-06-24 18:29:11 +02:00
Jason Fowler 7114045d8d MDL-33957 - Installation - Fixing field lengths so they are long enough for data entry, and don't distort page rendering 2012-06-22 10:57:53 +08:00
AMOS bot da0655ebdf Automatically generated installer lang files 2012-06-22 00:31:30 +00:00
Sam Hemelryk a4c4e43a5f Merge branch 'MDL-27675_21' of git://github.com/grabs/moodle into MOODLE_21_STABLE 2012-06-21 11:36:42 +12:00
Sam Hemelryk d25f6b8104 Merge branch 'MDL-33808-21' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-06-21 10:06:24 +12:00
Aparup Banerjee 236534f192 Merge branch 'wip-MDL-33811-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-06-20 17:18:46 +08:00
Frederic Massart 837e89e1d3 MDL-9073 Glossary: uncategorised entries are printable 2012-06-20 12:28:09 +08:00
Jason Fowler 4018a4b4a7 MDL-32290 - Repositories - Fixing missing slash from the URL path 2012-06-20 10:42:22 +08:00
AMOS bot 5e0a9e2bf9 Automatically generated installer lang files 2012-06-20 00:31:24 +00:00
Dan Poltawski 420b76d61e MDL-3971 - mod_forum: contain () in span 2012-06-20 11:40:56 +12:00
Jason Fowler 820e356a5e MDL-32990 - Repositories - Updating Box.net API calls to use HTTPS 2012-06-19 15:09:12 +08:00
Dan Poltawski 6ceafdb00a MDL-33808 - format title on the repository instance screen 2012-06-19 12:10:26 +08:00
Dan Poltawski 4a35940233 MDL-33808 - incorrect cleaning of repository names 2012-06-19 11:28:01 +08:00
AMOS bot 70243720e9 Automatically generated installer lang files 2012-06-19 00:31:23 +00:00
Sam Hemelryk b6c63cfcc6 MDL-33811 Fixed left over debugging code preventing proper setting of YUI gallery version 2012-06-19 11:26:57 +12:00
Tim Hunt 74919fa156 MDL-26892 questions: images lost during upgrade.
This affects questions shared in the system or course category areas of
the question bank.

Thanks to Chris Edwards for working out what was going wrong.
2012-06-18 21:41:26 +08:00
Dan Poltawski 1cdcf60ed3 Merge branch 'wip-MDL-33603-MOODLE_21_STABLE' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-06-18 15:07:52 +08:00
Dan Poltawski 47e26d45f7 Merge branch 'wip-mdl-33607-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-06-18 14:34:43 +08:00
Adrian Greeve 7040ab6e30 MDL-33603 - data - added another sql query to allow links to records to work. 2012-06-18 10:27:14 +08:00
Petr Skoda 5f828fa036 MDL-33733 fix broken zip_packer->extract_to_storage() when extracting from stored_file 2012-06-17 23:01:31 +02:00
AMOS bot ed2410c954 Automatically generated installer lang files 2012-06-16 00:31:37 +00:00
Eloy Lafuente (stronk7) 4557b47df1 weekly release 2.1.6+ 2012-06-15 20:27:26 +02:00
Rajesh Taneja 840818cce4 MDl-33607 wiki-2: check subwiki before fetching it from db 2012-06-15 16:59:33 +08:00
Jerome Mouneyrac 463e194c85 MDL-33770 Web service: create_groups should not require enrolmentkey
Conflicts:

	group/externallib.php
2012-06-15 15:20:33 +08:00
Dan Poltawski 19b1f96f1f Merge branch 'MDL-33035-m21' of git://github.com/sunner/moodle into MOODLE_21_STABLE 2012-06-14 12:29:27 +08:00
Frederic Massart 795fd70584 MDL-30008 Filepicker: correctly handles allowed file types 2012-06-14 10:03:28 +08:00
Dan Poltawski 05fc59ef64 Merge branch 'MDL-33581-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-06-13 17:45:44 +08:00
Eloy Lafuente (stronk7) 82aab8024b MDL-33682 backup: keep old behavior, aka, use section number on empty section name. 2012-06-13 00:57:36 +02:00
Eloy Lafuente (stronk7) 50c5d7ae6d Merge branch 'MDL-33682_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-06-13 00:57:26 +02:00
Eloy Lafuente (stronk7) e9637ea9ce Merge branch 'MDL-33681_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-06-13 00:07:23 +02:00
Tim Hunt 4ee86612fe 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 18:06:02 +01:00
Tim Hunt d375d718ac 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 18:05:53 +01:00
Eloy Lafuente (stronk7) 417f9d311b Merge branch 'w24_MDL-33670_m21_ofadmin' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-06-12 10:07:15 +02:00
Petr Skoda ea1cb30ce7 MDL-33670 fix recent fatal typo in user_get_user_details()
Credit goes to Sunner Sun.
2012-06-12 09:59:11 +02:00
Aparup Banerjee 9a36598bac Merge branch 'm21_MDL-33515' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-06-12 11:28:11 +08:00
Eloy Lafuente (stronk7) 4776262f05 weekly release 2.1.6+ 2012-06-12 02:59:09 +02:00
Eloy Lafuente (stronk7) 5fbd62c254 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-06-12 02:55:35 +02:00
Aparup Banerjee b10a487334 Merge branch 'MDL-33548_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-06-11 13:56:03 +08:00
Eloy Lafuente (stronk7) 294e7ff363 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:15:05 +08:00
Dan Poltawski dbb729e9d3 MDL-33514 - rss: also exclude suspended users feeds
Thanks Petr!
2012-06-11 10:27:34 +08:00
Dan Marsden 3720463fc4 MDL-33515 SCORM - attempts grading setting is confusing - last attempt is really last completed attempt. 2012-06-08 20:36:20 +12:00
Jerome Mouneyrac d9ecbdc715 MDL-33581 missing parameter defaults for some external functions 2012-06-08 12:08:45 +08:00
Eloy Lafuente (stronk7) 34025ea1c2 Merge branch 'w23_MDL-33583_m21_keepall' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-06-08 01:57:04 +02:00
Petr Skoda 8fbbd40394 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-08 01:47:23 +02:00
Sam Hemelryk 54e24c11a5 Merge branch 'MDL-32325-21' of git://github.com/FMCorz/moodle into MOODLE_21_STABLE 2012-06-08 10:20:31 +12:00
Eloy Lafuente (stronk7) 9987a9e079 Merge branch 'MDL-32985_integration_21' of git://github.com/merrill-oakland/moodle into MOODLE_21_STABLE 2012-06-08 00:05:24 +02:00
Dan Poltawski 965481f7fb Merge branch 'MDL-33532_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-06-07 22:23:56 +08:00
Tim Hunt 40035f042d MDL-33532 quiz editing: let uses enter locale floats.
So, for example, Croatian users can set the maximum grade to 65,5.

Conflicts:

	mod/quiz/edit.php
2012-06-07 12:59:46 +01:00
Petr Skoda ff5aed23a4 MDL-33583 really keep all automated backup files when told to do so 2012-06-07 11:14:05 +02:00
Andreas Grabs a6f4aa1a94 MDL-27675 - Feedback module abuses data_submitted 2012-06-06 23:16:03 +02:00
Tim Hunt 239ca19682 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:25:10 +01:00
Eric Merrill bfe1d30444 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:16:40 -04:00
Dan Poltawski 331de0b546 MDL-33514 - rss: only retrieve RSS feeds for valid users 2012-06-06 23:38:00 +08:00
Frederic Massart 7a150b25cb MDL-32325 Glossary: Entrylist print version is XHTML compliant 2012-06-06 13:16:38 +08:00
Sam Hemelryk c2cf907f3f Merge branch 'wip-mdl-33090-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-06-06 15:24:03 +12:00
Tim Hunt 5cf725b9b4 MDL-33119 quiz complete report: fix placeholders in attempt string. 2012-06-06 10:32:26 +08:00
AMOS bot eafc011e08 Automatically generated installer lang files 2012-06-06 00:31:34 +00:00
Sam Hemelryk bed0c7a63e Merge branch 'MDL-30837-21' of https://github.com/FMCorz/moodle into MOODLE_21_STABLE 2012-06-06 10:59:34 +12:00
Sam Hemelryk d099f4fd0e MDL-31520 user-ws: Optimised if statement for email access by moving admin check to the start 2012-06-06 10:38:20 +12:00
Sam Hemelryk 4c3a1c6f8a Merge branch 'MDL-31520-MOODLE_21_STABLE' of git://github.com/fabiomsouto/moodle into MOODLE_21_STABLE 2012-06-06 10:37:48 +12:00
Sam Hemelryk 8ad117cca8 Merge branch 'MDL-31823_21' of git://github.com/dmonllao/moodle into MOODLE_21_STABLE 2012-06-06 10:13:32 +12:00
Sam Hemelryk 7d4c5ac5ab Merge branch 'MDL-33441-21' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-06-06 10:09:45 +12:00
Sam Hemelryk ded3134c37 Merge branch 'MDL-33487-21' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-06-06 10:05:57 +12:00
Sam Hemelryk 4471c79c07 MDL-26277: Fixed whitespace post integration 2012-06-06 09:14:02 +12:00
Sam Hemelryk bc1f0e0b40 Merge branch 'MDL-26277-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-06-06 09:07:07 +12:00
Dan Poltawski 446bf5b9f4 MDL-33441 course/lib.php prevent fatal error when no visible categories 2012-06-05 16:41:43 +08:00
Aparup Banerjee 97f8f66cc3 Merge branch 'wip-mdl-33455-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-06-05 15:16:14 +08:00
Koen Roggemans bea1f152ae MDL-29103 web service strings improvement
Conflicts:

	lang/en/admin.php
2012-06-05 12:47:02 +08:00
Ankit Agarwal e4624f6e6c MDL-33401 blocks: Allow managers to have block:edit capability by default 2012-06-05 12:35:21 +08:00
Tim Barker 6945d524c8 MDL-33476 repositories: Added instructions to assist with setting up Dropbox keys 2012-06-05 12:16:25 +08:00
Dan Poltawski 296d5c07d8 Merge branch 'MDL-30880_feedback_property_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-06-05 11:58:49 +08:00
Rajesh Taneja 756765a2ed MDL-33455 gradebook: Grade will not be inserted for unknown user 2012-06-05 11:22:38 +08:00
Dan Poltawski 044c0ce868 MDL-31460 mod_forum: fix trailing whitespace 2012-06-05 09:35:51 +08:00
Dan Poltawski f83ecb3721 Merge branch 'MDL-31460_unsubscribe_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-06-05 09:35:47 +08:00
Rex Lorenzo fbf39e40e6 MDL-33090 admin: Missing strings in XMLDB editor - added in missing strings 2012-06-05 09:29:00 +08:00
Frederic Massart 4ebf4efde8 MDL-30837 Accessibility: removed navigation icons default alt text 2012-06-05 09:20:11 +08:00
Eloy Lafuente (stronk7) 1f0856d6bf Merge branch 'MDL-32649_ratings_sort_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-06-05 02:23:55 +02:00
Eloy Lafuente (stronk7) ceb3ce58a9 MDL-32985 cron: prevent notices on "new" sites. 2012-06-05 02:17:16 +02:00
Eloy Lafuente (stronk7) 335a24ea72 Merge branch 'MDL-32985_m21' of git://github.com/merrill-oakland/moodle into MOODLE_21_STABLE 2012-06-05 02:03:06 +02:00
David Monllaó 92bf1836d0 MDL-31823 - Remote hosts users created via mnet enrolments marked as confirmed 2012-06-04 10:38:59 +02:00
Dan Poltawski ca409b9b44 Merge branch 'MDL-29173_calc_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-06-04 16:22:20 +08:00
AMOS bot 81ded23742 Automatically generated installer lang files 2012-06-02 00:31:41 +00:00
Dan Poltawski 365f666cbf MDL-33487 - mod_forum: incorrect param ordering
Thanks to Garret Gengler for spotting it.
2012-06-01 23:36:01 +08:00
Eloy Lafuente (stronk7) a6dfc10bb0 weekly release 2.1.6+ 2012-06-01 09:48:10 +02:00
Eloy Lafuente (stronk7) 4a7f742d2e Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-06-01 09:43:36 +02:00
Andrew Davis 043af1f6b2 MDL-30880 grade: added a check for the feedback property existing before it is used 2012-06-01 10:44:35 +07:00
Dan Poltawski 4a126d26cf Merge branch 'MDL-33434_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-05-31 16:59:44 +08:00
Aparup Banerjee 323d76708b Merge branch 'MDL-33040-MOODLE_21_STABLE-1' of git://git.luns.net.uk/moodle into MOODLE_21_STABLE 2012-05-31 15:21:03 +08:00
Aparup Banerjee 3a2d363542 Merge branch 'MDL-33140_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-05-31 14:15:59 +08:00
Frederic Massart 854682fb17 MDL-33398 Cron: fix wrong variable type in completion criterias 2012-05-31 12:50:57 +08:00
Eloy Lafuente (stronk7) 87ba4ff25a 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:49:48 +02:00
Eloy Lafuente (stronk7) a906556554 MDL-33434 dml: define expected results when unique constraint is violated on insert. 2012-05-31 01:49:44 +02:00
Tim Hunt c0ed22f6c7 MDL-33140 quiz browser security: block copy/paste more 2012-05-30 14:50:15 -06:00
Sam Hemelryk 24b464d9f7 Revert "Merge branch 'MDL-27675_21_wip' of git://github.com/grabs/moodle into MOODLE_21_STABLE"
This reverts commit 9c96488ed9, reversing
changes made to b22884274f.
2012-05-30 16:36:43 +12:00
Dan Poltawski 01ab2bb505 Merge branch 'MDL-33398b-21' of git://github.com/srynot4sale/moodle into MOODLE_21_STABLE 2012-05-30 11:36:04 +08:00
Aaron Barnes 28e0b61cd0 MDL-33398 completion: Fix coding error (should be arrays not objects) 2012-05-30 13:35:49 +12:00
AMOS bot db01641ec0 Automatically generated installer lang files 2012-05-30 00:31:27 +00:00
Andrew Davis 196b3fd27f MDL-29173 grade: altered the definiton of round() and added some more unit tests 2012-05-29 16:35:18 +07:00
Dan Poltawski e3d8f34ad6 Merge branch 'MDL-30905-21' of git://github.com/FMCorz/moodle into MOODLE_21_STABLE 2012-05-29 16:20:44 +08:00
Dan Poltawski e2eaa0bae4 Merge branch 'wip-mdl-33102-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-05-29 16:11:14 +08:00
Dan Poltawski 5013a713eb Merge branch 'MDL-30888-21' of git://github.com/FMCorz/moodle into MOODLE_21_STABLE 2012-05-29 15:12:49 +08:00
Dan Poltawski 573a933e42 Merge branch 'MDL-33212-m21' of git://github.com/sammarshallou/moodle into MOODLE_21_STABLE 2012-05-29 15:11:07 +08:00
Andrew Davis 6be00a7a49 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-05-29 08:28:39 +07:00
sam marshall 054d245a2c MDL-33212 Course page: Eye icon should override other conditions 2012-05-28 16:27:37 +01:00
Dan Poltawski ae3f09e6cd Revert "MDL-33212 Course page: Eye icon should override other conditions"
This reverts commit 805366d987.
2012-05-28 16:58:39 +08:00
Dan Poltawski 1cbf87e8db Merge branch 'MDL-33352-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-05-28 16:05:11 +08:00
Dan Poltawski 382b95d292 Merge branch 'MDL-33212-m21' of git://github.com/sammarshallou/moodle into MOODLE_21_STABLE 2012-05-28 16:03:19 +08:00
Dan Poltawski 29010d3e53 Merge branch 'MDL-31393_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-05-28 15:24:40 +08:00
Dan Poltawski b269d8f988 Merge branch 'wip-MDL-32199-MOODLE_21_STABLE' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-05-28 15:19:03 +08:00
Charles Fulton c4f5ec20db MDL-33194 forum: correct number of parameters for get_record() 2012-05-28 14:59:28 +08:00
Jerome Mouneyrac ec48562601 MDL-33352 fix regression, textlib functions are not static in 2.1 2012-05-28 14:39:37 +08:00
Dan Poltawski 093e1ce8df Merge branch 'm21_MDL-27368' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-05-28 14:33:05 +08:00
Adrian Greeve ef518ff137 MDL-32199 - forum - Ensure that forum RSS feeds don't leak posts and discussions.
Alteration to the code to hide the body of the post / discussion

rebase conflict resolution
2012-05-28 13:07:02 +08:00
Dan Poltawski ff166d1157 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:38:42 +08:00
Dan Poltawski c02287f333 Merge branch 'MDL-29173_calc_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-05-28 12:16:41 +08:00
Sam Hemelryk 27ee2b6737 Merge branch 'MDL-33364_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-05-28 13:51:01 +12:00
Sam Hemelryk f991601b63 MDL-27675 mod_feedback: Tidy up of phpdocs and scope within feedback mod
Conflicts:

	mod/feedback/item/feedback_item_class.php
	mod/feedback/item/label/lib.php
	mod/feedback/item/multichoice/lib.php
2012-05-28 13:42:27 +12:00
Eloy Lafuente (stronk7) f3593fc2cb MDL-33364 automated backup: return and log each course result correctly 2012-05-28 02:50:35 +02:00
Sam Hemelryk 9c96488ed9 Merge branch 'MDL-27675_21_wip' of git://github.com/grabs/moodle into MOODLE_21_STABLE 2012-05-28 11:44:07 +12:00
Sam Hemelryk b22884274f Merge branch 'MDL-33191_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-05-28 11:21:45 +12:00
Sam Hemelryk ab833c6ee4 Merge branch 'MDL-33325-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-05-28 10:52:03 +12:00
Andreas Grabs d6fe3f01e0 MDL-27675 - Feedback module abuses data_submitted 2012-05-28 00:29:58 +02:00
Andreas Grabs 82c62bd30a MDL-27675 - Feedback module abuses data_submitted 2012-05-28 00:29:58 +02:00
Dan Marsden fb0814ac14 MDL-27368 Clean up invalid course completion records
keep oldest timestamps from all records
2012-05-28 09:06:41 +12:00
Eloy Lafuente (stronk7) ba459c4dde weekly release 2.1.6+ 2012-05-25 12:49:51 +02:00
Eloy Lafuente (stronk7) c1ca7fdccc Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-05-25 12:45:01 +02:00
Frederic Massart 0c8f156ece MDL-30905 Accessibility: recent activity list is XHTML compliant 2012-05-25 15:10:07 +08:00
Dan Poltawski 4e98691587 Merge branch 'MDL-29924-21' of git://github.com/FMCorz/moodle into MOODLE_21_STABLE 2012-05-25 11:14:48 +08:00
Dan Poltawski ed2417a4cd MDL-28557 - calendar: fix trivial whitespace issue 2012-05-25 11:09:26 +08:00
Dan Poltawski 497288882a Merge branch 'MDL-28557-21' of git://github.com/bostelm/moodle into MOODLE_21_STABLE 2012-05-25 11:09:21 +08:00
Jerome Mouneyrac b108e75ce3 MDL-33028 display debuginfo when server die at developer mode 2012-05-25 10:23:12 +08:00
Ankit Agarwal b284426dd1 MDL-33325 folder: 'set as main file' option removed, from filepicker when editing a file in a folder resource 2012-05-25 09:39:10 +08:00
AMOS bot 884972f915 Automatically generated installer lang files 2012-05-25 00:31:28 +00:00
Andrew Robert Nicols 9dde62c4e8 MDL-33040 Validate dates correctly on log page 2012-05-24 09:42:28 +01:00
Andrew Robert Nicols 1da1b02592 MDL-33186 Ensure that the comment textarea exists before toggling it 2012-05-24 15:54:09 +08:00
Aparup Banerjee bd0802e56b MDL-33318 lib : code style fix 2012-05-24 15:45:10 +08:00
Aparup Banerjee 65a312fa32 Merge branch 'm21_MDL-33318' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-05-24 15:45:03 +08:00
Dan Marsden ffb830f58e MDL-33318 use $CFG->admin in path correctly - thanks to Clarence Prudhoe for report/fix 2012-05-24 14:10:11 +12:00
Frederic Massart 9eb160461d MDL-30903 Accessibility: user profile page uses table headers 2012-05-24 10:09:41 +08:00
Frederic Massart ee97268a42 MDL-30888 Accessibility: small calendars summary does not display 'Data table' 2012-05-24 09:23:21 +08:00
AMOS bot f3edfb06a7 Automatically generated installer lang files 2012-05-24 00:31:42 +00:00
Sam Hemelryk ebbf509960 Merge branch 'MDL-32203c-21' of git://github.com/srynot4sale/moodle into MOODLE_21_STABLE 2012-05-24 11:23:59 +12:00
Sam Hemelryk e09266d176 Merge branch 'MDL-26562-21' of git://github.com/vadimonus/moodle into MOODLE_21_STABLE 2012-05-24 10:56:06 +12:00
sam marshall 805366d987 MDL-33212 Course page: Eye icon should override other conditions
Conflicts:

	lib/conditionlib.php
2012-05-23 13:55:10 +01:00
Dan Poltawski 6645da5bce Merge branch 'wip-mdl-32155-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-05-23 13:28:14 +08:00
Rajesh Taneja 38d13c23f1 MDL-32155 blocks: User can't access file, if block is hidden or doesn't have block:view capability 2012-05-23 13:14:02 +08:00
Andrew Davis 940e243547 MDL-32649 rating: fixed the sorting in /rating/index.php 2012-05-23 08:37:09 +07:00
Mary Evans e6ef6bb1b6 MDL-33191 theme_magazine: changes to magazine/config.php fixes $THEME->layouts for Base & Standard 2012-05-22 17:18:27 +01:00
Sun Zhigang 84bfd60a03 MDL-33035 workshop: typo in strings 2012-05-22 19:27:19 +08:00
Dan Poltawski 6e4bb45785 Merge branch 'w21_MDL-32564_m21_timezonecontext' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-05-22 13:34:29 +08:00
Petr Skoda f7d185baf3 MDL-32564 fix admin/timezone.php page setup 2012-05-22 07:32:13 +02:00
Sam Hemelryk d7bce7db81 Merge branch 'MDL-32204-mnet-auth_21' of git://github.com/mudrd8mz/moodle into MOODLE_21_STABLE 2012-05-22 14:49:07 +12:00
Kordan 18d4b57b69 MDL-33055 theme_formal_white: changed "general" to "standard" in $theme->layouts array index 2012-05-22 14:31:33 +12:00
Rajesh Taneja 0e1d75cff7 MDL-33102 blogs: userid will be added during blog visibility upgrade 2012-05-22 10:06:56 +08:00
Andrew Davis 98fcf93146 MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php 2012-05-22 08:39:39 +07:00
Fábio Souto 660b8d0b66 Allow admin to consult user email address 2012-05-21 10:38:00 +01:00
Vadim Dvorovenko a64c75d059 MDL-26562
Signed-off-by: Vadim Dvorovenko <vadimon@mail.ru>
2012-05-20 19:46:17 +07:00
Eloy Lafuente (stronk7) 2ddb941b0a weekly release 2.1.6+ 2012-05-19 12:22:40 +02:00
Eloy Lafuente (stronk7) b571be75c5 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-05-19 12:17:43 +02:00
AMOS bot 8b1dd6905e Automatically generated installer lang files 2012-05-19 00:31:50 +00:00
Adrian Greeve d02908d323 MDL-32126 replaced _order with sortorder to make sorting work in oracle 2012-05-18 11:26:03 +02:00
sam marshall f654ae9d8e MDL-32535 Completion lang string incorrect use, text 2012-05-18 10:28:57 +08:00
AMOS bot ccb462b076 Automatically generated installer lang files 2012-05-18 00:31:55 +00:00
Rajesh Taneja 5f40997e4b MDL-32866 filemanager: Fixed Page url typo 2012-05-17 16:48:45 +08:00
Frederic Massart 96a4e2efa5 MDL-29924 Glossary: Entry attachments displayed in Moodle dialogue 2012-05-17 15:17:18 +08:00
Petr Skoda e98a486834 MDL-32967 add diagnostic strings for missing Microsoft drivers for SQL Server 2012-05-17 14:31:10 +08:00
Dan Poltawski 2aa58eb6ce Merge branch 'MDL-31814_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-05-17 14:11:32 +08:00
Juho Viitasalo 2e61a814c3 MDL-31850 wiki: extra whitespace removed from form 2012-05-17 14:49:25 +12:00
Sam Hemelryk e76f4039b9 Merge branch 'MDL-29399_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-05-17 14:42:10 +12:00
Sam Hemelryk 2dfeb89f48 Merge branch 'm21_MDL-32794' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-05-17 12:27:17 +12:00
Aparup Banerjee 3cf17d040e Merge branch 'MDL-32633_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-05-16 16:06:23 +08:00
Aparup Banerjee d9e1178030 Merge branch 'wip-MDL-32991-MOODLE_21_STABLE' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-05-16 14:11:20 +08:00
AMOS bot c6f2c53f8d Automatically generated installer lang files 2012-05-16 00:31:40 +00:00
Henning Bostelmann a2ec78a369 MDL-28557 Calendar filters: show all group events in course to teacher 2012-05-15 22:26:19 +01:00
Sam Hemelryk 25f8be6e70 Merge branch 'MDL-31458-21' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-05-16 09:11:59 +12:00
Wiktor Wandachowicz 47f1ee8e6f MDL-32204 MNet: set auth method to mnet for users enrolled remotely 2012-05-15 15:37:54 +02:00
Aparup Banerjee 6030656b88 Merge branch 'MDL-32861-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-05-15 16:18:53 +08:00
Aparup Banerjee 336c4263e9 Merge branch 'MDL-25695-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-05-15 11:09:13 +08:00
Adrian Greeve 1c8dbf72b9 MDL-32991 - data - Fix to the context call in the preset page 2012-05-15 09:37:20 +08:00
Dan Marsden 8254d87d66 MDL-32794 SCORM prevent items in tree that have no navigation from triggering a navigation change. 2012-05-15 09:37:24 +12:00
Eric Merrill 33641c3873 MDL-32985 cron: don't execute notify_login_failures unnecessarily 2012-05-14 11:42:20 -04:00
Dan Poltawski 0375701522 MDL-32714 workshop - fix broken unit tests
Using a quick and dirty recordset mock. Thanks to Eloy for the
brainpower.
2012-05-14 22:19:03 +08:00
Dan Poltawski 53ce4f035e Merge branch 'MDL-32863_21' of git://github.com/jonof/moodle into MOODLE_21_STABLE 2012-05-14 20:49:19 +08:00
Dan Poltawski 6e49419bda Merge branch 'MDL-31719_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-05-14 15:53:30 +08:00
Dan Poltawski 5701bc74a0 Merge branch 'MDL-24401_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-05-14 14:12:46 +08:00
Dan Poltawski 821e713503 Merge branch 'w20_MDL-32915_m21_chatdiv' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-05-14 14:06:59 +08:00
Dan Poltawski 51c048b088 Merge branch 'wip-MDL-32872-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-05-14 14:01:08 +08:00
Dan Poltawski 5f70593f94 Merge branch 'wip-MDL-32611-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-05-14 13:13:11 +08:00
Jonathon Fowler 790f68fd92 MDL-32863 question: fix for Oracle ambiguous column error 2012-05-14 12:53:29 +10:00
Dan Poltawski ac6f7b2c96 Merge branch 'MDL-32714-rubric_21' of git://github.com/mudrd8mz/moodle into MOODLE_21_STABLE 2012-05-14 10:42:00 +08:00
Andrew Robert Nicols 2fe83e04d9 MDL-32340 Improve performance of calendar selection 2012-05-14 14:09:20 +12:00
Adrian Greeve d4d88ffd73 MDL-32126 - data - backport of advanced search re-write 2012-05-14 08:33:18 +08:00
Sam Hemelryk 2fd2edb032 MDL-32611 editcategory: Fixed up navigation error. 2012-05-14 09:17:12 +12:00
Sam Hemelryk 7f51f30e2e MDL-32872 tool_roles: Fixed up navigation on user roles page 2012-05-14 08:53:49 +12:00
Mary Evans 0cd4a6158d MDL-29399 theme_boxxie: fixes page-mod-assignment-view when editing 2012-05-13 17:03:56 +01:00
Mary Evans 2198d7f43c MDL-31719 lang/en/admin.php: changes text in $string['configallowthemechangeonurl'] to make less ambiguous 2012-05-13 15:24:45 +01:00
Petr Skoda 6244096bee MDL-32915 fix bogus open div in basic chat ui 2012-05-13 10:26:24 +02:00
David Mudrak 6e7e184571 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:26:36 +02:00
Eloy Lafuente (stronk7) efac2d2ad4 Moodle release 2.1.6 2012-05-12 03:24:26 +02:00
Petr Skoda e06065b4f8 MDL-31558 add missing mimetype to send_temp_file()
backported from master
2012-05-11 22:05:07 +02:00
Tim Hunt 45cadecc2a MDL-32633 quiz editing: recreate grade item when max changed from 0 2012-05-11 20:10:40 +01:00
Eloy Lafuente (stronk7) 6866d7f6a5 weekly release 2.1.5+ 2012-05-11 12:16:48 +02:00
Eloy Lafuente (stronk7) 3478ce9bdc Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-05-11 12:10:56 +02:00
Dan Poltawski f8bed0f642 MDL-31458 forum: email subjects containing ampersand are sent as &amp; 2012-05-11 15:30:56 +08:00
Sam Hemelryk d3da2883ce MDL-31763 mod_data: Fixed array iteration reference issue 2012-05-10 17:31:35 +12:00
Sam Hemelryk 9c0f9c588e Merge branch 'wip-MDL-31763-MOODLE_21_STABLE' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-05-10 15:14:19 +12:00
Adrian Greeve 25aa12e229 MDL-31763 - data - users can only override their own presets unless they have manage presets permission. 2012-05-10 10:27:03 +08:00
AMOS bot 2e63ba58fc Automatically generated installer lang files 2012-05-10 00:31:49 +00:00
Eloy Lafuente (stronk7) 7b84d2886a Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-05-09 19:32:26 +02:00
Tim Hunt 6fe7f2f198 MDL-31393 qtype_essay upgrade: save old question_answers.feebdack 2012-05-09 15:13:29 +01:00
Charles Fulton 36a8da6e85 MDL-32861 filemanager: respect course upload limit 2012-05-09 05:07:49 -07:00
Dan Poltawski 230235e3e0 Merge branch 'wip-mdl-31498-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-05-09 17:46:30 +08:00
Rossiani Wijaya 57284445ea MDL-24401: fixed string for adding content page 2012-05-09 14:34:07 +08:00
Andrew Davis dfe26d0ba3 MDL-31488 admin: made admin_externalpage_setup() try to guess the reason why the requested section couldnt be found 2012-05-09 11:59:32 +08:00
Petr Skoda 81ef1b474f MDL-32735 add missing message provider info for unmaintained enrol_authorize
Conflicts:

	enrol/authorize/version.php
2012-05-09 10:32:03 +08:00
Petr Skoda e52bc3f593 MDL-32775 fix invalid url in mediaplugin CSS 2012-05-09 10:23:51 +08:00
Sam Hemelryk 4997ac9e2f Merge branch 'MDL-18095-MOODLE_21_STABLE-1' of git://git.luns.net.uk/moodle into MOODLE_21_STABLE 2012-05-09 11:31:24 +12:00
Ruslan Kabalin 613b57021d 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 12:05:51 +01:00
Frederic Massart c8caabdb1c MDL-32718 Fixed typo in column name 2012-05-08 15:55:46 +08:00
Sam Hemelryk f44480cccc Merge branch 'MDL-32670_21' of git://github.com/rlorenzo/moodle into MOODLE_21_STABLE 2012-05-08 18:06:43 +12:00
Sam Hemelryk 8296031c1f Merge branch 'MDL-31671-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-05-08 17:41:44 +12:00
Dan Poltawski ad520779df Merge branch 'w19_MDL-31691_m21_cohortidnumber' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-05-08 12:40:45 +08:00
Dan Poltawski 3a6dc00d2a Merge branch 'MDL-32718-sql-typo_21' of git://github.com/mudrd8mz/moodle into MOODLE_21_STABLE 2012-05-08 12:36:11 +08:00
AMOS bot 3cd76fea5d Automatically generated installer lang files 2012-05-08 00:31:49 +00:00
David Mudrak cffd4c5b3f MDL-32718 fixing an SQL typo in workshop_get_recent_mod_activity() 2012-05-07 10:05:44 +02:00
Dan Poltawski 62e7fe190e Merge branch 'MDL-18335_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-05-07 15:32:38 +08:00
Ankit Agarwal 78f8349245 MDL-31671 calendar: update_event hook should be triggered when updating event 2012-05-07 15:15:28 +08:00
Ankit Agarwal 9f786f7408 MDL-31671 calendar: Fixing error when trying to delete parent of a repeated event series 2012-05-07 15:08:04 +08:00
Dan Poltawski 436ce722e8 Revert "MDL-32379: Fix memory leak in session_set_user"
This reverts commit 22dc32042a.
2012-05-07 14:41:12 +08:00
Dan Poltawski 427ef2ef69 Merge branch 'MDL-32684_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-05-07 13:04:06 +08:00
Dan Poltawski 68a2b1febf Merge branch 'MDL-32430_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-05-07 12:48:31 +08:00
Davo Smith 9da363fbc7 MDL-32698 Question - Fixed typos in load_question_attempt 2012-05-07 12:06:31 +08:00
Charles Fulton e8a2fa86aa MDL-26277 grade import: validate file pointer before reading 2012-05-06 20:33:26 -07:00
Dan Poltawski 787a484a60 Merge branch 'mdl32379_21' of git://github.com/tlevi/moodle into MOODLE_21_STABLE 2012-05-07 11:29:15 +08:00
Petr Skoda b8f242d889 MDL-31691 treat cohort idnumbers as plain text 2012-05-06 21:38:46 +02:00
Tim Hunt c3574e4f10 MDL-31814 question bank: fix possible error with sort columns. 2012-05-04 17:30:21 +01:00
Tim Hunt 6881ed5d82 MDL-32430 quiz calendar events: fix pluginfile URLs in the description. 2012-05-04 15:24:27 +01:00
Eloy Lafuente (stronk7) 6791b08315 weekly release 2.1.5+ 2012-05-04 13:12:26 +02:00
Eloy Lafuente (stronk7) c0502c170c Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-05-04 13:07:14 +02:00
Aaron Barnes 4ef74c4834 MDL-32203 completion: Fix issues with data object where clauses 2012-05-04 15:05:48 +12:00
Dan Poltawski 7986556d6b MDL-32693 webservice: fix typo in URL 2012-05-03 18:23:05 +02:00
Marina Glancy ca984069b8 MDL-32416: Picasa repository now returns path, also fixed album title retrieval 2012-05-03 11:34:34 +08:00
Rex Lorenzo 9ae37470fa MDL-32670 mod/chat: also added missing call to ->set_heading in report.php 2012-05-02 19:09:26 -07:00
AMOS bot 768bdc8d70 Automatically generated installer lang files 2012-05-03 00:31:35 +00:00
Eloy Lafuente (stronk7) 39d59639e3 MDL-32234 Library: usergetdate tests moved to assertIdentical()
(to check both type and value)
2012-05-03 00:51:10 +02:00
Eloy Lafuente (stronk7) 668f04282a Merge branch 'wip-mdl-32234-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-05-03 00:46:39 +02:00
Rajesh Taneja 66653a52b0 MDL-31498 formslib: repeat_elements will now set default for group elements 2012-05-02 17:15:16 +08:00
Aparup Banerjee dbcfd4f152 Merge branch 'MDL-28657-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-05-02 13:55:58 +08:00
Sam Hemelryk b702373a4d Merge branch 'MDL-31762-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-05-02 17:51:03 +12:00
Mary Evans 53f2606205 MDL-32684 lib/pagelib: adds break; statements to theme order in lib/pagelib.php 2012-05-02 01:49:44 +01:00
Dan Poltawski 22ec5e8876 Merge branch 'MDL-32181_21' of https://github.com/ppichet/moodle into MOODLE_21_STABLE 2012-05-01 10:47:09 +08:00
Sam Hemelryk ba5f2ec663 Merge branch 'MDL-28955_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-05-01 13:16:54 +12:00
Sam Hemelryk b7ea6c69d7 MDL-32012 Fixed white space 2012-05-01 12:38:57 +12:00
Sam Hemelryk 7299a9e288 Merge branch 'MDL-32012_m21' of git://github.com/merrill-oakland/moodle into MOODLE_21_STABLE 2012-05-01 12:37:21 +12:00
Sam Hemelryk 817d9328ae Merge branch 'MDL-29264_zindex_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-05-01 08:23:45 +12:00
Rossiani Wijaya 7bd8e21ec4 MDL-18335 calendar event: fixed role capability checking to create new event 2012-04-30 17:32:59 +08:00
Tim Hunt bb1042480f 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-30 14:30:05 +08:00
Rajesh Taneja 7cdb2e4575 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:53:24 +08:00
Sam Hemelryk d8317f0a40 Merge branch 'm21_MDL-32597' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-04-30 13:21:45 +12:00
Sam Hemelryk dd3dc2e2e3 Merge branch 'MDL-28735-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-04-30 13:14:54 +12:00
Sam Hemelryk dd6776c92b Merge branch 'MDL-26523_grader_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-04-30 12:46:28 +12:00
Andrew Davis d04cc1ea24 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-30 12:36:22 +12:00
Chris Follin 8da0b77ccb MDL-31429 enrol: Add missing string for PayPal enrolment messages.
Signed-off-by: Andrew Davis <andrew@moodle.com>
2012-04-30 12:34:02 +12:00
Aparup Banerjee bd774e7aeb MDL-19391 Database : fixed icon size 2012-04-30 12:21:35 +12:00
Sam Hemelryk 3b9d358d9d MDL-31510 grader report: Fixed whitespace 2012-04-30 12:13:14 +12:00
Sam Hemelryk 60aaa96f61 Merge branch 'MDL-31510_group_activities_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-04-30 12:11:05 +12:00
Sam Hemelryk 8374754563 Merge branch 'MDL-32238-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-04-30 12:02:42 +12:00
Sam Hemelryk 45bfe330ea Merge branch 'MDL-32624_21_wip' of git://github.com/grabs/moodle into MOODLE_21_STABLE 2012-04-30 11:57:18 +12:00
Mary Evans 221ded5477 MDL-28955 theme_nimble: added css rules to display horizontal/vertical-menu-submenu-indicator 2012-04-28 02:52:12 +01:00
Rex Lorenzo 0ffce4b7ae MDL-32670 mod/chat: added missing call to $PAGE->set_heading 2012-04-27 16:09:29 -07:00
Eric Merrill bf2d7c1823 MDL-32012 resource: flaw in restore from moodle 1.9 backups 2012-04-27 16:17:23 -04:00
ppichet 62aaf94f49 MDL-32181 question/calculatedmulti validate multianswers
restructuring the validation function of edit_calculatedmulti_form.php
correcting attempt
2012-04-27 14:36:18 -04:00
Eloy Lafuente (stronk7) eddceb69c7 weekly release 2.1.5+ 2012-04-27 12:48:40 +02:00
Eloy Lafuente (stronk7) 7649be6ea0 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-04-27 12:41:35 +02:00
Eloy Lafuente (stronk7) a65e24917f Revert "MDL-32249 completion: Round course grades and remove hardcoded string"
This reverts commit 2e67e5ecbb.
2012-04-27 12:07:23 +02:00
Andrew Davis 99a3b8215b MDL-29264 course: removed the z-index from course css for course completion elements 2012-04-27 11:11:50 +07:00
Andrew Davis 4fab8e528d MDL-26523 grade: fixed a called to addHelpButton() that was asking for a non-existent string 2012-04-27 09:19:43 +07:00
Andrew Davis 52de453351 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 17:01:45 +07:00
Marina Glancy 607b4fa3e2 MDL-32417: Fixed regression in original (cherrypick) backport 2012-04-26 10:27:50 +02:00
Eloy Lafuente (stronk7) 862f48225d Merge branch 'MDL-19263-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-04-26 02:59:35 +02:00
Eloy Lafuente (stronk7) 538d482927 Merge branch 'MDL-32630-workshop-calendar_21' of git://github.com/mudrd8mz/moodle into MOODLE_21_STABLE 2012-04-26 02:21:22 +02:00
David Mudrak 8683c24f73 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 16:05:42 +02:00
Eloy Lafuente (stronk7) 7a48124d69 Merge branch 'MDL-32192_copy_string_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-04-25 13:08:19 +02:00
Marina Glancy 7546de2e7a MDL-32417: Fixed pagination bug in Flickr search results, also return thumbnail sizes 2012-04-25 03:43:16 +02:00
Eloy Lafuente (stronk7) 9a2bb1ee2c Merge branch 'wip-MDL-28941-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-04-25 03:35:21 +02:00
Eloy Lafuente (stronk7) 19cc130565 MDL-32490 Offline assignment: phpdocs and whitespace fixes 2012-04-25 02:42:12 +02:00
Henning Bostelmann 72d890d2d2 MDL-32490 Offline assignment: do not display lateness information 2012-04-25 02:42:04 +02:00
AMOS bot 793d2bf940 Automatically generated installer lang files 2012-04-25 00:31:41 +00:00
Eloy Lafuente (stronk7) b2313c434f Merge branch 'MDL-32082_messaging_readability_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-04-25 01:57:28 +02:00
Eloy Lafuente (stronk7) 4790c88e85 Merge branch 'wip-MDL-30478-MOODLE_21_STABLE' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-04-25 01:13:22 +02:00
Eloy Lafuente (stronk7) a52b49b925 Merge branch 'MDL-31548-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-04-24 23:30:38 +02:00
Andreas Grabs d9e544b78c MDL-32624 - initialbars disappears 2012-04-24 21:22:25 +02:00
Eloy Lafuente (stronk7) b38f551820 MDL-31914 db fix - cannot use table aliases on DELETE statements. Credit goes to Andrew Nicols (LUNS). 2012-04-24 13:10:20 +02:00
Eloy Lafuente (stronk7) 04cc6a1ba1 Merge branch 'MDL-32249-21' of github.com:srynot4sale/moodle into MOODLE_21_STABLE 2012-04-24 13:10:08 +02:00
Eloy Lafuente (stronk7) 4ca8983287 MDL-32102 Course completion - bump to 2011070105.08 (07 was already in use) 2012-04-24 12:38:30 +02:00
Andrew Robert Nicols 25d11fe956 MDL-31914 Ensure that completion criteria are deleted when removing a course module 2012-04-24 12:35:53 +02:00
Dan Poltawski 43b542b616 Merge branch 'm21_MDL-32102' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-04-24 15:17:56 +08:00
Jerome Mouneyrac 69dcda25e5 MDL-31762 username should be lowercase and check against PARAM_USERNAME when creating/updating user by web service 2012-04-24 15:04:01 +08:00
Ankit Agarwal 8477740c30 MDL-32238 course: Timemodifed should be updated when a course's visible status is toggled from the category page 2012-04-24 13:41:16 +08:00
Dan Poltawski 42657ab7ec Merge branch 'w17_MDL-32427_m21_protocols' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-04-24 10:27:27 +08:00
Ankit Agarwal f91b7ae26b MDL-28735 calendar: Fixing issues with course selection dropdown 2012-04-24 09:38:49 +08:00
Andrew Robert Nicols 5f73b066b5 MDL-32454 Fix issues highlighted by strict warnings in MNet code 2012-04-24 01:54:50 +02:00
Andrew Robert Nicols 238c24d44c MDL-32514 Remove onclick for the group delete button 2012-04-24 01:43:17 +02:00
Dan Marsden 4e9fcf1eb2 MDL-32597 typo in path to version.php file for local plugins 2012-04-24 11:14:11 +12:00
Eloy Lafuente (stronk7) 02c71f990f Merge branch 'MDL-28176-21' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-04-24 00:31:18 +02:00
Eloy Lafuente (stronk7) db472efd13 Merge branch 'MDL-32134-21' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-04-24 00:09:05 +02:00
Eloy Lafuente (stronk7) c168d35af5 Merge branch 'wip-MDL-26500-21' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-04-24 00:04:51 +02:00
Eloy Lafuente (stronk7) 030fc2d27c MDL-29262 simpletest: fix forgotten mock objects to avoid strict notices 2012-04-23 16:30:01 +02:00
Dan Poltawski 2211bba995 Merge branch 'MDL-32431-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-04-23 17:11:07 +08:00
Dan Poltawski d5fabf0b1f Merge branch 'w17_MDL-32477_m21_cloneperm' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-04-23 16:35:39 +08:00
Petr Skoda 8f8bda7343 MDL-32427 fix suport for extra schemes in links in HTML Purifier 2012-04-23 10:31:16 +02:00
Dan Poltawski 537005082b Merge branch 'w17_MDL-31553_m21_clitimeout' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-04-23 15:25:56 +08:00
Petr Skoda f40bce2565 MDL-31553 do not timeout CLI upgrade scripts
Credit goes to Michael Aherne.
2012-04-23 08:55:05 +02:00
Dan Poltawski d4ccd2ceeb Merge branch 'MDL-32104-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-04-23 12:50:17 +08:00
Dan Poltawski 24504b499b Merge branch 'MDL-29262_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-04-23 12:43:30 +08:00
Andrew Robert Nicols 943c29e5b0 MDL-32459 Adjust order of remote enrolment help text to suit form order 2012-04-23 10:44:20 +08:00
Iñaki Arenaza b378542397 MDL-16646 auth/cas CAS configuration page mis-spellings
Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2012-04-23 10:34:09 +08:00
Dan Poltawski fd40df6f92 Merge branch 'MDL-23647_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-04-23 10:27:56 +08:00
Chris Follin c623274478 MDL-32492 auth/cas: respect https login links 2012-04-23 09:50:29 +08:00
Aaron Barnes 2e67e5ecbb MDL-32249 completion: Round course grades and remove hardcoded string 2012-04-23 12:23:22 +12:00
Dan Marsden af6e993c9d MDL-32102 Course completion - only restore user completion if not adding to existing course 2012-04-23 11:34:13 +12:00
Eloy Lafuente (stronk7) b981c8706e MDL-29262 restore: Clean controller obj form DB once finished ok 2012-04-23 00:42:01 +02:00
Eloy Lafuente (stronk7) 931eace3c3 MDL-29262 backup: Clean controller obj form DB once finished ok 2012-04-23 00:41:56 +02:00
Eloy Lafuente (stronk7) 6642887953 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.

Conflicts:

	admin/settings/courses.php
	version.php

Conflicts:

	lib/cronlib.php
	version.php
2012-04-23 00:40:11 +02:00
Andrew Davis 24ca82df7e MDL-32191 grade:renamed a mis-spelled string name
AMOS BEGIN
 CPY [invalidgradeitmeid,error],[invalidgradeitemid,error]
AMOS END
2012-04-21 11:50:22 +07:00
Andrew Davis 8b196107ba MDL-32082 message: added a function to make user checks more readable 2012-04-21 11:21:46 +07:00
Charles Fulton e9eb08bef7 MDL-25695 wiki: enable anchor tags 2012-04-20 12:52:05 -07:00
Charles Fulton ea89f29bbe MDL-28657 backup: make automated backup filenames site admin-configurable 2012-04-20 08:54:59 -07:00
Charles Fulton 4ef25d16cb MDL-19263 assignment: only notify users enrolled in course 2012-04-20 06:16:15 -07:00
Tim Hunt f89e86f135 MDL-32519 completio: Fix spelling of Enrolled. 2012-04-20 10:27:20 +01:00
Eloy Lafuente (stronk7) 9a800e2c9e MDL-26979 css - clean whitespace introduced by previous commit 2012-04-20 13:28:03 +12:00
Sam Hemelryk 0547b7e742 MDL-26979 custommenu Improved the custom menu CSS in base and all other core themes
* The custom menu now requires the YUI module directly rather than in its initialisation
* Improved the CSS in base so that it was more precise and more easily overrideable
* Reviewed the CSS for all core themes improving and removing !important from rules
2012-04-20 13:28:03 +12:00
Ankit Agarwal 93b0225ece MDL-32104 forum: Fixing issue with logs during restore 2012-04-20 08:55:26 +08:00
Ankit Agarwal 084c07f599 MDL-31548 enrollments: Introducing new api enrol_get_all_users_courses() that returns all user courses without any checks 2012-04-20 08:53:51 +08:00
Ankit Agarwal 79cbfaa114 MDL-32431 backup: Adding the feature to support backing up and restoring calendar events 2012-04-20 08:52:51 +08:00
AMOS bot 09dfc08f79 Automatically generated installer lang files 2012-04-20 00:32:33 +00:00
Adrian Greeve 4174535ac9 MDL-30478 - wiki - Fixing up group problems when viewing and creating wiki pages.
Thanks to Matt Kolb for his contribution.
2012-04-20 07:33:55 +08:00
Petr Skoda b3f60ef696 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:12:21 +02:00
Dan Poltawski bd44a3bc02 weekly release 2.1.5+ 2012-04-19 17:49:33 +08:00
Dan Poltawski c003806b56 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-04-19 17:39:34 +08:00
Andrew Robert Nicols 6475153231 MDL-32061 Use old lesson_answer ID and correct when restoring lesson attempts 2012-04-18 02:44:40 +02:00
Eloy Lafuente (stronk7) 721c418985 Merge branch 'w16_MDL-30242_m21_session' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-04-17 22:39:36 +02:00
Jerome Mouneyrac 993debdbe3 MDL-30225 Creating new web service tokens create error 2012-04-17 18:54:11 +08:00
Dan Poltawski 0fcd56e671 MDL-26500 blog: Rewrite pluginfile urls in RSS 2012-04-17 17:48:42 +08:00
Dan Poltawski 15824fadc2 MDL-26500 mod/glossary: Rewrite pluginfile urls in RSS 2012-04-17 17:48:42 +08:00
Dan Poltawski 2dd1e4c422 MDL-26500 mod/forum: Rewrite pluginfile urls in RSS 2012-04-17 17:48:42 +08:00
Dan Poltawski d89ebccf65 Merge branch 'MDL-25660-workshop-calendar_21' of git://github.com/mudrd8mz/moodle into MOODLE_21_STABLE 2012-04-17 16:08:27 +08:00
Dan Poltawski 157459a20a MDL-28176 lang - rephrase conditional access description 2012-04-17 13:38:14 +08:00
Dan Poltawski 252979a787 MDL-32134 lang: Add missing PNG string 2012-04-17 11:30:06 +08:00
AMOS bot d5f9cfcf8d Automatically generated installer lang files 2012-04-17 00:31:55 +00:00
Dan Poltawski 8a2b5c4525 Merge branch 'w16_MDL-32437_m21_tablename' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-04-16 20:50:29 +08:00
Dan Poltawski dd9841f926 Merge branch 'MDL-32358_21' of https://github.com/ppichet/moodle into MOODLE_21_STABLE 2012-04-16 14:31:26 +08:00
Jerome Mouneyrac 4b8da40c6a MDL-31694 Fix XSS security issue with service name accepting javascript 2012-04-16 14:27:54 +08:00
Dan Poltawski bde399dcef Merge branch 'wip-MDL-32393-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-04-16 13:29:12 +08:00
Dan Poltawski c175e01ec0 MDL-32443 queupgradehelper cli: fix path & whitespace 2012-04-16 13:23:29 +08:00
Dan Poltawski c046a3fb88 Merge branch 'MDL-32443_m21' of git://github.com/merrill-oakland/moodle into MOODLE_21_STABLE 2012-04-16 13:14:48 +08:00
Sam Hemelryk b83306c0ce Merge branch 'MDL-32385_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-04-16 17:06:03 +12:00
Dan Poltawski a9b7100432 Merge branch 'MDL-32404_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-04-16 13:01:59 +08:00
Sam Hemelryk f2994d7338 Merge branch 'MDL-32444_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-04-16 15:59:24 +12:00
Eric Merrill 5e76b4a49b MDL-32443 qeupgradehelper: Add cli tool to execute qeupgrade helper 2012-04-15 23:56:13 -04:00
Sam Hemelryk 93deef3cd3 MDL-32353 fixed up very minor whitespace 2012-04-16 15:22:47 +12:00
Sam Hemelryk f0c351f763 Merge branch 'MDL-32353_m21' of git://github.com/merrill-oakland/moodle into MOODLE_21_STABLE 2012-04-16 15:09:21 +12:00
Dan Poltawski 8876dd31d8 Merge branch 'MDL-32442_m21' of git://github.com/merrill-oakland/moodle into MOODLE_21_STABLE 2012-04-16 10:51:53 +08:00
ppichet 8886f0ace0 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:21:41 -04:00
Sam Hemelryk 50ff77d26a Merge branch 'm21_MDL-32388' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-04-16 12:23:02 +12:00
Sam Hemelryk 0eeb0874cc Merge branch 'MDL-30819_grader_col_highlight_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-04-16 11:45:29 +12:00
Mary Evans 2ee94c2d37 MDL-23647 theme_anomaly: Removed margin + added padding to current week main content to give it more definition. 2012-04-16 00:38:58 +01:00
Sam Hemelryk 6535721ceb Merge branch 'MDL-30955_forum_ratings_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-04-16 11:34:18 +12:00
Sam Hemelryk a38d62efd8 Merge branch 'MDL-32316_21_wip' of git://github.com/grabs/moodle into MOODLE_21_STABLE 2012-04-16 11:00:16 +12:00
Sam Hemelryk 84aabeae85 Merge branch 'MDL-27547-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-04-16 10:46:37 +12:00
Petr Skoda f0aecedec6 MDL-32437 fix invalid gradebook query sql 2012-04-15 14:26:58 +02:00
Mary Evans 52bb0934be MDL-32444 theme_afterburner: adds 5px margin to the left of #loginbtn, input, button, select in /style/afterburner_styles.css 2012-04-15 01:48:07 +01:00
Eric Merrill 75831af99e MDL-32442 questionupgrade: error in SQL from postgres systems 2012-04-14 11:15:42 -04:00
Tim Hunt 57fe307821 MDL-32404 question export: missing error message when exporting an empty category. 2012-04-14 15:52:50 +01:00
Mary Evans fcb0c7f267 MDL-32385 theme_base: adds line-height:normal in style/course.css for section summary 2012-04-14 15:02:35 +01:00
AMOS bot 7d5af125b9 Automatically generated installer lang files 2012-04-14 00:32:00 +00:00
David Mudrak f58b7c2f4a MDL-25660 workshop removes its calendar events on instance deletion 2012-04-13 13:11:45 +02:00
David Mudrak 3108a0f862 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 05:08:20 +02:00
David Mudrak 5f05ebc40f MDL-25660 workshop registers events in the calendar 2012-04-13 05:00:42 +02:00
Eric Merrill 14d8d5ab0e MDL-32353 backup: Flaw in settings logic for user info and anonymise 2012-04-12 10:01:57 -04:00
Eloy Lafuente (stronk7) dfd6a609e0 MDL-30026 dml - fix sqlsrv support for session locks 2012-04-12 10:27:29 +02:00
Eloy Lafuente (stronk7) a16230a69b MDL-30026 improve session lock - stronger detection for oracle 2012-04-12 10:27:29 +02:00
Eloy Lafuente (stronk7) 54b0eec73d MDL-30026 improve session lock - mssql workaround for bug with scalar returned values 2012-04-12 10:27:29 +02:00
Eloy Lafuente (stronk7) adb6cdbe93 MDL-30026 improve session lock - unit tests & minor comment fixup 2012-04-12 10:27:29 +02:00
Petr Skoda a6ecee4ca0 MDL-30026 improve session lock acquire timeouts and other minor cleanup
This is partially based on original patch by Tony Levi.
2012-04-12 10:27:28 +02:00
Dan Poltawski 8e35d0aef8 weekly release 2.1.5+ 2012-04-12 13:26:04 +08:00
Dan Poltawski 6d73da4a16 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-04-12 13:00:09 +08:00
Andrew Davis 211bb241de MDL-30955 rating: corrected /rating/index.php as it was determining the maximum rating incorrectly for custom scales 2012-04-12 10:19:22 +07:00
Andrew Davis 2a2a8302b5 MDL-30819 grade: fixed column highlighting on the grader report 2012-04-12 10:14:25 +07:00
AMOS bot bf5ff54adb Automatically generated installer lang files 2012-04-12 00:31:31 +00:00
Dan Marsden 133e7f3dd8 MDL-32388 SCORM: Fix chrome pop-ups 2012-04-11 21:07:31 +12:00
Jerome Mouneyrac a49c98f859 MDL-27547 When deleting a local plugin containing a built-in service, the built-in service is not deleted 2012-04-11 15:04:35 +08:00
Sam Hemelryk fad527952b Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
This reverts commit 0add004b0e.
2012-04-11 17:20:49 +12:00
Dan Poltawski d08845f37a Merge branch 'MDL-32217_21' of git://github.com/ppichet/moodle into MOODLE_21_STABLE 2012-04-11 09:27:46 +08:00
Sam Hemelryk 5c2a2f209d MDL-32393 navigation: Fixed up issue when rendering action_link instances for the navigation 2012-04-11 10:57:21 +12:00
Sam Hemelryk e17f0d3b1e MDL-32124 mod_feedback: Cleanup post-integration of unused var 2012-04-10 17:24:30 +12:00
Sam Hemelryk 365e69b47d Merge branch 'MDL-32124_21_wip' of git://github.com/grabs/moodle into MOODLE_21_STABLE 2012-04-10 17:11:49 +12:00
Tony Levi 3e86502dba 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:10:04 +09:30
Jason Fowler 5cd936cb57 MDL-27427 - Blog - Adding ability to delete entries from external blogs 2012-04-10 12:05:42 +08:00
Dan Poltawski 4c9d3738db Merge branch 'wip-mdl-30051-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-04-10 11:06:17 +08:00
Sam Hemelryk ea7170945c Merge branch 'MDL-30843_b_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-04-10 11:01:27 +12:00
Sam Hemelryk 56e270e11e Merge branch 'wip-mdl-32270-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-04-10 10:53:12 +12:00
Andreas Grabs c5c7879f8b MDL-32316 feedback: fix tem type label does honor trusted text 2012-04-10 00:29:29 +02:00
Hugh Davenport 4d6bcdad3e MDL-32308 Fix error when testing id of guest user 2012-04-09 19:06:30 +02:00
AMOS bot 4f7d9dee7c Automatically generated installer lang files 2012-04-09 00:31:32 +00:00
ppichet ff4d87739d MDL-32217_21 Setting options->unitgradingtype
Signed-off-by: ppichet <pichet.pierre@uqam.ca>
2012-04-07 19:15:39 -04:00
Andreas Grabs 53dcf63488 MDL-32124 - mails to non respondents are sent as plain text with html-tags 2012-04-07 17:33:35 +02:00
Aparup Banerjee 4b3ee4fc55 weekly release 2.1.5+ 2012-04-05 16:45:43 +08:00
Aparup Banerjee a0e75f0360 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-04-05 16:20:03 +08:00
Aparup Banerjee 69d0176923 Merge branch 'wip-MDL-31631-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-04-04 13:41:04 +08:00
Sam Hemelryk ed1163b512 MDL-31631 navigation: Removed caching of activities and sections arrays in favour of relying on cminfo caching 2012-04-04 17:29:04 +12:00
Eloy Lafuente (stronk7) 80a9e2aab9 Merge branch 'MDL-32240_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-04-04 00:12:02 +02:00
Eloy Lafuente (stronk7) 471b1c8b30 Merge branch 'wip-MDL-29678-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-04-03 23:53:09 +02:00
Eloy Lafuente (stronk7) ee72fe8881 Merge branch 'wip-MDL-32018-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-04-03 21:06:28 +02:00
Aparup Banerjee e8f075bf74 MDL-32141 lib : update thirdpartylibs.xml to TinyMCE 3.4.9 2012-04-03 17:40:16 +08:00
Aparup Banerjee e496f11da2 Merge branch 'w14_MDL-32141_m21_tinymce' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-04-03 17:34:54 +08:00
Aparup Banerjee a0bf1073c5 Merge branch 'wip-MDL-30784-stable21' of git://github.com/phalacee/moodle into MOODLE_21_STABLE 2012-04-03 17:01:02 +08:00
Marina Glancy 7e7fbf62af MDL-32171: add 'Manage' link to Picasa repository
Conflicts:

	repository/picasa/lib.php
2012-04-03 13:21:48 +08:00
Dan Poltawski 3eaee3a914 Merge branch 'wip-mdl-30904-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-04-03 11:39:28 +08:00
Rajesh Taneja d5830dd0be MDL-32270 Library: ->defaulthomepage is checked before used 2012-04-03 11:31:31 +08:00
Dan Poltawski a76a53a6e1 Merge branch 'MDL-32220_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-04-03 11:11:30 +08:00
Sam Hemelryk 3e14545d2d Merge branch 'wip-mdl-32150-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-04-03 10:32:33 +12:00
Davo Smith a006cb40cb MDL-32213 Question upgrade now correctly handles non-core manually-graded question types 2012-04-02 17:00:36 +08:00
Dan Poltawski 7d7331bd76 Merge branch 'MDL-32039_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-04-02 11:51:44 +08:00
Andreas Grabs 21cadefea3 MDL-31768 - it is not possible to add a picture to the thanks page in feedback 2012-04-02 11:32:25 +08:00
M Kassaei 2d8d02481a MDL-32214 quiz regrading: with many attempts, PHP runs out of memory 2012-04-02 11:03:53 +08:00
Sam Hemelryk 6931d54085 Merge branch 'MDL-32239_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-04-02 14:31:01 +12:00
Dan Poltawski 58b4ff5039 Merge branch 'wip-MDL-32264-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-04-02 10:16:31 +08:00
Rajesh Taneja 1180f2d49e MDL-32150 Libraries: checkbox controller will not check or uncheck freezed checkboxes 2012-04-02 10:14:31 +08:00
Dan Poltawski 5e84c2e01a Merge branch 'MDL-32246_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-04-02 10:06:40 +08:00
Dan Poltawski 9807bef7c7 Merge branch 'MDL-32201_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-04-02 09:42:59 +08:00
Sam Hemelryk 50cc39f950 Merge branch 'MDL-32258-data-cron_21_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_21_STABLE 2012-04-02 11:24:16 +12:00
Kanika Goyal a2e76551f0 MDL-31908 Glossary: entry list format- printable version does not show content 2012-04-02 11:21:13 +12:00
Sam Hemelryk c185ac18f5 Merge branch 'MDL-32289_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-04-02 10:15:41 +12:00
Mary Evans 5023419f65 MDL-32289 theme_afterburner: added lang menu to frontpage layout in config.php 2012-04-01 01:09:36 +01:00
Mary Evans 31489a451c MDL-32262 theme_afterburner: fixed missing comma in afterburner_styles.css 2012-04-01 00:42:58 +01:00
Rossiani Wijaya 0add004b0e MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 17:13:50 +08:00
Rajesh Taneja 8f343c64f6 MDL-30051 cron: login error sql is now cross db 2012-03-30 16:55:23 +08:00
Petr Skoda 5405de127b MDL-32141 back port latest TinyMCE 3.4.9 2012-03-30 08:47:45 +02:00
Rajesh Taneja 22e4bd4255 MDL-32150 Libraries: checkall and uncheckall will not select disabled or readonly checkboxes 2012-03-30 13:05:20 +08:00
Rajesh Taneja c7f8a543d4 MDL-30904 Calendar: Event links are descriptive with hidden event name, for screen readers 2012-03-30 13:02:32 +08:00
AMOS bot f2e6b400b9 Automatically generated installer lang files 2012-03-30 00:33:15 +00:00
Jason Fowler f674eb81ca 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:24:55 +08:00
Sam Hemelryk 8491ee245b MDL-29678 lib: Require login now overrides to false for AJAX scripts 2012-03-30 10:24:02 +13:00
Sam Hemelryk a897a251d1 MDL-29678 navigation: Navigation AJAX require_login calls no longer set wantsurl or redirect 2012-03-30 10:24:02 +13:00
Sam Hemelryk 00568190ce MDL-32018 mod_wiki: Fixed up whitespace after peer-review 2012-03-30 10:21:38 +13:00
Sam Hemelryk 2ab3134607 MDL-32018 mod_wiki: Fixed formatting of the page title so that is is consistent and secure 2012-03-30 10:21:38 +13:00
Sam Hemelryk 4e05e64e95 MDL-32018 mod_wiki: Improved form definitions to ensure they consistent and secure 2012-03-30 10:21:38 +13:00
Sam Hemelryk 5fab70437e MDL-32264 theme_standard: Fixed multi-day calendar event border issue 2012-03-30 10:19:58 +13:00
Tim Hunt 9fd2278e17 MDL-32039 qeupgradehelper: fix typos in the lang strings
Conflicts:

	admin/tool/qeupgradehelper/lang/en/tool_qeupgradehelper.php
2012-03-29 22:02:00 +01:00
Tim Hunt 5b662f33e2 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 15:20:36 +01:00
David Mudrak 9f6c79e420 MDL-32258 database module does not have any data_cron() function to execute 2012-03-29 16:04:36 +02:00
Tim Hunt 016660ca42 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.

Conflicts:

	mod/quiz/editlib.php
2012-03-29 15:02:26 +01:00
Tim Hunt 0f83dd10a1 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 15:02:22 +01:00
Tim Hunt 1fdd74081c 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:08:52 +01:00
Tim Hunt 64f4979eeb 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.

Conflicts:

	question/format/examview/format.php
	question/format/learnwise/format.php
	question/format/webct/format.php

Conflicts:

	question/format/upgrade.txt
2012-03-29 14:08:13 +01:00
Eloy Lafuente (stronk7) c54172b3c2 weekly release 2.1.5+ 2012-03-29 13:24:28 +02:00
Eloy Lafuente (stronk7) 539eb194b1 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-03-29 13:20:25 +02:00
Dan Poltawski 570359909f Revert "MDL-31914 Ensure that completion criteria are deleted when removing a course module"
This reverts commit a8a076708e.
2012-03-29 15:56:31 +08:00
AMOS bot 9ea53a18b6 Automatically generated installer lang files 2012-03-29 00:31:53 +00:00
Dan Poltawski a16f0a3cad MDL-31775 lesson: fix undefined variable warnings 2012-03-27 20:01:46 +08:00
Andrew Robert Nicols a8a076708e MDL-31914 Ensure that completion criteria are deleted when removing a course module
Conflicts:

	lib/db/upgrade.php
	version.php

Conflicts:

	version.php
2012-03-27 10:31:34 +02:00
Aparup Banerjee 3d06074953 Merge branch 'wip-MDL-32106-MOODLE_21_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_21_STABLE 2012-03-27 10:10:31 +08:00
Tim Lock 77c5c20554 MDL-31869: Searching for users in messaging with multiple roles generates a warning 2012-03-27 10:00:38 +08:00
Sam Hemelryk c4d72072dc Merge branch 'MDL-22510-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-03-27 11:02:53 +13:00
Sam Hemelryk 88ead1b9ff Merge branch 'm21_MDL-32147' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-03-27 09:50:19 +13:00
Dan Poltawski 38dbeec003 Merge branch 'MDL-31775_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-03-26 14:42:07 +08:00
Dan Poltawski 8b2aff422f Merge branch 'MDL-32172_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-03-26 12:22:42 +08:00
Kanika Goyal fa913a3ae8 MDL-31856, if choice not open, responses inconsistently displayed 2012-03-26 12:11:44 +08:00
Dan Poltawski d6e3be6d79 Merge branch 'MDL-27710_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-03-26 11:26:48 +08:00
Marina Glancy 1d0ac183a0 MDL-32106: fixed JS bug - when html element did not exist the script stopped 2012-03-26 10:49:49 +08:00
Ankit Agarwal 4d8cb115cc MDL-22510 libraries: Set wantsurl only when $setwantsurltome is set in
require_login
2012-03-26 08:57:55 +08:00
Iurii Kucherov 94c2ba853e MDL-31513 rename 'Edit service' to 'Save changes' 2012-03-26 12:12:13 +13:00
Andrew Robert Nicols 81e33e74e0 MDL-32142 Add missing langstring for section backups 2012-03-26 12:01:54 +13:00
Sam Hemelryk 8a4aa94daf Merge branch 'wip-mdl-29331-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-03-26 11:57:20 +13:00
Rajesh Taneja a8f7ec4571 MDL-31903 course: Title on highlight and hide icon should be only added in ie 2012-03-26 11:46:14 +13:00
Rajesh Taneja 65df3cd2cb MDL-31903 course: Highlight icon will get iniatlised properly 2012-03-26 11:46:13 +13:00
Rajesh Taneja 690cf46b0c MDL-31903 course: update patch to fix course highlight icon and title toggle 2012-03-26 11:46:13 +13:00
Juho Viitasalo c62eeedab7 MDL-31903 course: Fixed course highlight icon and title toggle 2012-03-26 11:46:13 +13:00
Dan Poltawski 05d8d4abe5 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:52 +13:00
Ruslan Kabalin fa13450de9 MDL-32026 messaging: Fix non-existing variable in the error output
Conflicts:

	lib/messagelib.php
2012-03-26 11:15:15 +13:00
Mary Evans 425a72f6db MDL-30019 theme_fusion: fix for mod-assignment-submission page by reducing font-size and page wapper padding 2012-03-25 08:26:08 +01:00
Rossiani Wijaya 08b69b29bc MDL-32172 Lesson Module: add variable initialization for 2012-03-23 15:40:44 +08:00
Sam Hemelryk a7899ca45f weekly release 2.1.5+ 2012-03-23 12:18:20 +13:00
Sam Hemelryk 0982968a37 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-03-23 12:10:44 +13:00
Dan Marsden d23a6b06a8 MDL-32147 - use correct 404 for server type 2012-03-23 09:58:52 +13:00
Dan Marsden 5d2930d9dd MDL-32147 SCORM improve performance of 404s for files inside SCORM packages. 2012-03-23 09:45:09 +13:00
Sam Hemelryk 912ec1fd85 MDL-31528 categories: Fixed up typo and function call 2012-03-22 09:45:10 +13:00
Andrew Davis 989e8b7f0b 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-21 14:24:19 +08:00
Sam Hemelryk 2eaa6c2667 MDL-31528 category: Fixed use of lang_string class 2012-03-21 14:29:15 +13:00
Sam Hemelryk a7dedc5efe Merge branch 'wip-mdl-31640-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-03-21 09:50:20 +13:00
Sam Hemelryk 7ad20028b0 Merge branch 'MDL-28952-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-03-21 09:29:03 +13:00
Sam Hemelryk e5f9484e46 Merge branch 'MDL-32065-MOODLE_21_STABLE-1' of git://git.luns.net.uk/moodle into MOODLE_21_STABLE 2012-03-21 09:24:38 +13:00
Dan Poltawski f5fd808c7a Merge branch 'MDL-31266_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-03-20 21:55:58 +08:00
Rossiani Wijaya 5577a1a913 MDL-31775 Lesson Module: fixed start at last page seen bug 2012-03-20 17:37:24 +08:00
Aparup Banerjee 3bc6e06fc3 MDL-29848 glossary: fixed whitespace 2012-03-20 16:12:41 +08:00
Aparup Banerjee c8f95660ff Merge branch 'MDL-29848-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-03-20 16:12:31 +08:00
Rossiani Wijaya 1bca1284f2 MDL-27710 lesson module: add the following jump options: unseen branch page, random page and random branch 2012-03-20 15:20:48 +08:00
Rajesh Taneja da5f9221ea MDL-29331 Users: Participants list with user_details now show check box for bluk operation 2012-03-20 11:51:22 +08:00
Ankit Agarwal db378febc2 MDL-28592 blocks: changing the arguments to moodle_url::out() 2012-03-20 10:59:41 +08:00
Aparup Banerjee 49e45d069b Merge branch 'wip-MDL-31528-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-03-20 10:10:44 +08:00
Sam Hemelryk 404958a0c4 Merge branch 'wip-MDL-32036-MOODLE_21_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_21_STABLE 2012-03-20 13:41:11 +13:00
Marina Glancy 97e990c983 MDL-32036: 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-20 08:39:36 +08:00
Sam Hemelryk fa93616a23 Merge branch 'wip-MDL-32037-MOODLE_21_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_21_STABLE 2012-03-20 13:33:08 +13:00
Sam Hemelryk a11492d7e8 Merge branch 'w12_MDL-32071_m21_dbfamily' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-20 11:39:43 +13:00
Sam Hemelryk d29f6ebcd3 Merge branch 'w12_MDL-32079_m21_folderrev' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-20 11:34:01 +13:00
M Kassaei 8fafe29890 MDL-32053 question: Question bank table displayed inconsistently 2012-03-20 11:01:27 +13:00
M Kassaei 8cac5c0cca MDL-32048 mod_quiz: Question bank select/deselect all shows strange behaviour in IE 2012-03-20 10:56:06 +13:00
Sam Hemelryk 2aab431486 Merge branch 'MDL-32064_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-03-20 10:37:20 +13:00
Andrew Robert Nicols 9f1495aabc MDL-32065 Allow feedback images to be themed 2012-03-19 10:24:35 +00:00
Sam Hemelryk 2849965662 Merge branch 'MDL-32084_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-03-19 20:38:05 +13:00
Sam Hemelryk 9231ed5d79 Merge branch 'w12_MDL-32090_m21_groupui' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-19 20:33:31 +13:00
Petr Skoda c1608f405d MDL-27553 admin: Fixed override bug 2012-03-19 20:21:57 +13:00
Petr Skoda 1e02608aa0 MDL-31703 allow serving of JavaScript from unsupported '/' dirroot 2012-03-19 20:16:55 +13:00
Sam Hemelryk 265724046d Merge branch 'wip-mdl-26674-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-03-19 20:06:20 +13:00
Sam Hemelryk 84b0900175 MDL-31528 navigation: Fixed up missing break and optimised category.php 2012-03-19 19:32:48 +13:00
Sam Hemelryk 7a8c221fc7 MDL-31984 Fixed whitespace during integration 2012-03-19 19:12:02 +13:00
Sam Hemelryk ed85611715 Merge branch 'MDL-31984_theme_renderer_file_debugging' of git://github.com/ualberta-eclass/moodle into MOODLE_21_STABLE 2012-03-19 19:10:59 +13:00
Rajesh Taneja b99ec3eabb MDL-31640 course: removed extra error message and using require_capability 2012-03-19 13:08:54 +08:00
Rajesh Taneja f9374e570a MDL-31640 course: Move to, edit and search functionality in search.php is fixed with proper permission check 2012-03-19 13:08:50 +08:00
Rajesh Taneja fe8d2efe52 MDL-26674 wiki2.0: cleaned wiki event logging patch 2012-03-19 11:22:03 +08:00
Diane Villemure f3463229bd MDL-26674 wiki2.0: Fixed wiki activity log 2012-03-19 11:21:57 +08:00
Sam Hemelryk 70a63a726d Merge branch 'm21_MDL-32055' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-03-19 15:53:56 +13:00
Sam Hemelryk 9ac6d34dbd Merge branch 'wip-MDL-27064-stable21' of git://github.com/phalacee/moodle into MOODLE_21_STABLE 2012-03-19 15:48:37 +13:00
Andrew Robert Nicols 0f08848ca4 MDL-32004 Set the defaultrequestcategory correctly when deleting/creating the default category 2012-03-19 14:38:53 +13:00
Sam Hemelryk b7fa2f9153 Merge branch 'MDL-28187_messaging_nav_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-03-19 14:14:08 +13:00
Sam Hemelryk 5a7722e046 Merge branch 'MDL-31835_recent_conversations_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-03-19 14:06:43 +13:00
Sam Hemelryk d0690afbc3 Merge branch 'MDL-30890_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-03-19 10:27:01 +13:00
Mary Evans 4247b7d472 MDL-32084 theme_fusion: removed default tagline in frontpage.php and changed configtextarea to configtext in settings.php 2012-03-17 21:59:05 +00:00
Andrew Davis 9d014d75f4 MDL-28187 message: fixed up $PAGE->set_url() in /message/index.php so the nav highlighted properly 2012-03-17 11:59:37 +07:00
AMOS bot ddcb36bd92 Automatically generated installer lang files 2012-03-17 00:31:47 +00:00
Petr Skoda d42aaae5a6 MDL-32090 fix invalid group members url
Credit goes to Jean-Philippe Gaudreau.
2012-03-16 20:12:52 +01:00
Tim Hunt 73848c608d MDL-32064 quiz navigation: JS form submit must fire submit event handlers. 2012-03-16 15:01:07 +00:00
Petr Skoda 6bdb01ccf0 MDL-32071 fix incorrect get_dbfamily() call 2012-03-16 10:32:32 +01:00
Petr Skoda 2c7a06ec8a MDL-32071 fix fatal problems in experimental forum_usetextsearches 2012-03-16 10:32:25 +01:00
Petr Skoda 16b879e79f MDL-32079 folder revision must be incremented after any file change 2012-03-16 10:12:09 +01:00
Ankit Agarwal 33e8e9e709 MDL-28952 blocks: Fixing the extra escaping issue with profile links 2012-03-16 15:47:13 +08:00
Andrew Davis 4e1dd694d3 MDL-31835 message: added a view conversation type link after each conversation on the recent conversation screen 2012-03-16 13:28:27 +07:00
Sam Hemelryk fff39dcfc1 MDL-31528 navigation: Tidied up page for viewing and managing categories 2012-03-16 10:35:46 +13:00
Sam Hemelryk ba23ddb67a MDL-31528 navigation: Fixed up navbar generation when editing categories 2012-03-16 10:35:46 +13:00
Sam Hemelryk ac7b47e656 MDL-31528 navigation: Fixed up generation for category contexts 2012-03-16 10:35:46 +13:00
Tim Hunt 8e30abf5e6 MDL-31594 question manual grading: did not handle comma as decimal. 2012-03-15 18:52:18 +00:00
Eloy Lafuente (stronk7) 3c4111ee68 weekly release 2.1.5+ 2012-03-15 11:47:37 +01:00
Eloy Lafuente (stronk7) 197cd28771 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-03-15 11:42:18 +01:00
Rossiani Wijaya e77f635b84 MDL-30890 accessibility compliance: add summary to calendar table 2012-03-15 17:12:00 +08:00
Jason Fowler 9a47738c45 MDL-27064 - Blog - Changing the link text for different levels of blog entries 2012-03-15 08:54:09 +08:00
AMOS bot 4970d12920 Automatically generated installer lang files 2012-03-15 00:31:56 +00:00
Charles Fulton 2199fb263f MDL-26243 calendar: display correct number of repeated events 2012-03-15 00:45:14 +01:00
Dan Marsden d588f8c74c MDL-32055 fix typo with flash player check 2012-03-15 09:20:15 +13:00
Eloy Lafuente (stronk7) 5d332d4a5d MDL-28972 formslib: whitespace fixes 2012-03-14 18:11:35 +01:00
Marina Glancy cbd6ad13e0 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-14 13:16:17 +08:00
Sam Hemelryk 3d9dff0f22 Merge branch 'wip-mdl-28972-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-03-14 14:39:51 +13:00
Davo Smith 4850ab676c MDL-31853 Fix pagelayout problem with admin_externalpage_setup 2012-03-14 09:25:09 +08:00
Davo Smith 9086379bb7 MDL-29147 Quickform fixed insertElementBefore to ignore duplicate unnamed elements 2012-03-14 11:54:47 +13:00
Sam Hemelryk 40ba373443 Merge branch 'MDL-29440-21_STABLE' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-03-14 11:30:21 +13:00
Ankit Agarwal e2835a5232 MDL-28998 libraries: Using default value of 0 for userid during login 2012-03-14 10:47:36 +13:00
Eloy Lafuente (stronk7) b434431b38 Merge branch 'MDL-31981_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-03-13 18:09:36 +01:00
Andrew Davis 0149696274 MDL-31834 message: fixed up some not quite correct usage of moodle/site:readallmessages 2012-03-13 16:50:07 +01:00
Eloy Lafuente (stronk7) 651cf35cbe Merge branch 'wip-MDL-31175-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-03-13 16:17:14 +01:00
Aparup Banerjee a5d7e18abe Merge branch 'wip-mdl-27862-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-03-13 15:30:48 +08:00
Rossiani Wijaya 5816961bde MDL-31266 Lesson module: Improve feedback so that the responses are concatenated instead of overwritten 2012-03-13 14:58:09 +08:00
Aparup Banerjee 361492a806 Merge branch 'wip-mdl-30817-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-03-13 11:52:42 +08:00
Aparup Banerjee e785ca696e Merge branch 'MDL-30867_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-03-13 11:32:44 +08:00
Aparup Banerjee e92ca9dbc8 MDL-31008 Themes : fixed css code style 2012-03-13 11:00:43 +08:00
Mary Evans b713f5c2a0 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:59:20 +08:00
Davo Smith 7456f0b8a4 MDL-31935 Fixed restore backup link in course search 2012-03-13 10:02:03 +08:00
Ruslan Kabalin 1a19ad3866 MDL-31808 Upload assignment: fix user feedback display
Conflicts:

	mod/assignment/type/upload/assignment.class.php
2012-03-13 14:18:19 +13:00
Ruslan Kabalin 0b50793e41 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-13 14:05:13 +13:00
Ruslan Kabalin 08fb6ca3f1 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-13 14:01:00 +13:00
Sam Hemelryk 63f4993e4a Merge branch 'w11_MDL-27457_m21_enrolnorecover' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-13 11:59:44 +13:00
Sam Hemelryk 449fd68024 Merge branch 'MDL-30298_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-03-13 11:56:27 +13:00
Sam Hemelryk 421a8533c5 Merge branch 'MDL-31702_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-03-13 10:33:16 +13:00
Eloy Lafuente (stronk7) 8135ecf6e1 Merge branch 'w11_MDL-31956_m21_paypal' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-12 21:37:18 +01:00
Michael Aherne 4c4c7197f0 MDL-31979 Typo in config-dist.php 2012-03-12 20:19:02 +01:00
Brian Jorgensen 5ceb78283c MDL-31984: add debugging message if theme renderer file is missnamed 2012-03-12 12:38:53 -06:00
Eloy Lafuente (stronk7) 41c65d7d8e Merge branch 'w11_MDL-31595_m21_enrolme' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-12 18:01:21 +01:00
Petr Skoda 96b421fd91 MDL-31595 improve enrol link comments 2012-03-12 16:49:43 +01:00
Eloy Lafuente (stronk7) 833af94c19 Merge branch 'w11_MDL-31815_m21_confirmemail' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-12 16:34:28 +01:00
Eloy Lafuente (stronk7) 3bc7584619 Merge branch 'w11_MDL-31534_m21_pageinitroot' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-12 15:49:41 +01:00
Petr Skoda 373b8fbdb5 MDL-31534 init PAGE before require_login() 2012-03-12 13:59:44 +01:00
Eloy Lafuente (stronk7) 2d2dfae5e9 Merge branch 'w11_MDL-31494_m21_adodblink' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-12 13:38:51 +01:00
Mary Evans fc2d52bd34 MDL-30298 coursereport_progress: adds outer wrapper with class no-overflow to report table so as to enable horizontal scroll bar 2012-03-12 10:52:54 +00:00
Sam Hemelryk 06a31cb7b8 Merge branch 'wip-MDL-27087-stable21' of git://github.com/phalacee/moodle into MOODLE_21_STABLE 2012-03-12 17:34:23 +13:00
Sam Hemelryk e2094c3b93 MDL-27304 mod_wiki: Fixed up phpdocs for globals 2012-03-12 17:20:54 +13:00
Sam Hemelryk 81dc3b5fd5 Merge branch 'MDL-27304-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-03-12 17:05:12 +13:00
Charles Fulton 79795cd631 MDL-31664 fix invalid boolean to string comparison 2012-03-12 17:02:32 +13:00
Rajesh Taneja 62b3a99a0d MDL-28972 formslib: orignalvalue is considered and checkboxes are updated depending on orignalvalue of controller 2012-03-12 11:52:43 +08:00
Rajesh Taneja 2961a37027 MDL-28972 formslib: Checkbox controller will use yui to select and unselect checkboxes 2012-03-12 11:52:36 +08:00
Rajesh Taneja d383e08886 MDL-27862 Themes: Device name first letter is capital and font is made similar to theme name font 2012-03-12 10:19:45 +08:00
Rajesh Taneja ad3635a365 MDL-27862 Themes: clear theme cache button will redirect to the page on which it was pressed 2012-03-12 10:19:45 +08:00
Rajesh Taneja c6a49f7b24 MDL-27862 Themes: replaced disabled use theme button with unset theme button 2012-03-12 10:19:45 +08:00
Rajesh Taneja 2942426ff4 MDL-27862 Themes: Added button to un-select theme for devices, except default device 2012-03-12 10:19:45 +08:00
Rajesh Taneja 960838e0f1 MDL-27862 Themes: Strings updated on theme selection pages 2012-03-12 10:19:45 +08:00
Sam Hemelryk 5c3f517142 Merge branch 'MDL-28998-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-03-12 15:18:13 +13:00
Rajesh Taneja aadf8518c4 MDL-30817 activity_completion: Fixed title and alt string (on checkbox) to have module name prefixed 2012-03-12 10:17:33 +08:00
Andrew Robert Nicols 45c413e29e MDL-31811 Add/Correct checks on activity read-only periods 2012-03-12 15:15:43 +13:00
Andrew Robert Nicols e033345948 MDL-31877 Correct get_users exception 2012-03-12 14:57:25 +13:00
Andrew Robert Nicols 739af42c9c MDL-31918 Use cached module info for activity completion report 2012-03-12 14:55:16 +13:00
Dan Poltawski c55be07e8a MDL-29440 calendar: iCal export don't allow html in description export 2012-03-12 09:53:03 +08:00
Sam Hemelryk 256e3edf0e Merge branch 'MDL-31923-MOODLE_21_STABLE-1' of git://git.luns.net.uk/moodle into MOODLE_21_STABLE 2012-03-12 14:32:45 +13:00
Sam Hemelryk df3a3b45da Merge branch 'MDL-31841_feedback_align_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-03-12 14:22:02 +13:00
Sam Hemelryk 06dd9ad0d8 Merge branch 'wip-MDL-30906-MOODLE_21_STABLE' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-03-12 14:19:42 +13:00
Jason Fowler 7faf219bce MDL-27087 - Resizing the 'roles' icon on blocks to bring it into line with the other icons 2012-03-12 08:36:32 +08:00
Sam Hemelryk 61e14418d0 MDL-31175 backup: Fixed undefined in register_dependency 2012-03-12 09:43:06 +13:00
Mary Evans 319ecdb58a MDL-30298 coursereport_completion: adds outer wrapper with class no-overflow to report table so as to enable horizontal scroll 2012-03-11 15:35:12 +00:00
Eloy Lafuente (stronk7) c91704eddb Moodle release 2.1.5 2012-03-11 15:59:11 +01:00
Mary Evans 6066f65817 MDL-30298 theme_binarius: adds horizontal scroll to report layout 2012-03-11 01:39:22 +00:00
Petr Skoda 214da1654e MDL-31956 fix enrol string components
Credit goes to Mark Nelson
2012-03-10 13:02:22 +01:00
Petr Skoda 1668cd75f2 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:06:01 +01:00
Petr Skoda 906950a195 MDL-31815 encode dots in confirm url which helps email clients with url highlighting 2012-03-10 10:47:56 +01:00
Petr Skoda 9be109005b MDL-27457 fix JS error on enrol when grade history disabled 2012-03-10 10:02:43 +01:00
Petr Skoda 112ecf68ba MDL-31595 do not show enrolee link to guest account 2012-03-10 09:42:08 +01:00
Tim Hunt 09a54762b2 MDL-31981 shortanswer qtype does not handle \* in correct response. 2012-03-09 19:01:57 +00:00
Tim Hunt 98d2e58d19 MDL-31702 quiz: clarify error message that has been confusing people. 2012-03-09 15:30:16 +00:00
Eloy Lafuente (stronk7) 90ba17e1b8 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-03-09 11:56:45 +01:00
AMOS bot db6e278f0d Automatically generated installer lang files 2012-03-09 11:54:21 +01:00
Eloy Lafuente (stronk7) c235b4c8a1 weekly release 2.1.4+ 2012-03-09 11:14:42 +01:00
Eloy Lafuente (stronk7) 331a5108dc Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-03-09 11:04:22 +01:00
Rossiani Wijaya 8af9ec6cb9 MDL-30867 Lesson module: fix lesson essay question formtting to be consistent with user selection 2012-03-09 17:39:15 +08:00
Eloy Lafuente (stronk7) f03c2cb038 Merge branch 'wip-MDL-31248-MOODLE_21_STABLE-v3' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-03-09 09:48:02 +01:00
Eloy Lafuente (stronk7) f852a52aad Revert "MDL-31248 - lib - Alteration to the rc4encrypt function to allow for old password use."
This reverts commit 6704edc5ba.
2012-03-09 09:38:33 +01:00
Ankit Agarwal ae3251111c MDL-28998 libraries: Adding validation to customisable profile fields during signup 2012-03-09 14:55:41 +08:00
Adrian Greeve 6aadec83c5 MDL-31248 - lib - Retaining the old password key and creating a new cookie prefix. 2012-03-09 13:44:17 +08:00
Eloy Lafuente (stronk7) 929eeb07e1 Revert "[MDL-31708] - wiki 2.0 non-group member can see edit option in navigation block."
This reverts commit b3df3de675.
2012-03-09 02:22:21 +01:00
Eloy Lafuente (stronk7) 65aa27f89f Revert "MDL-31708 wiki groups: whitespace fix"
This reverts commit 7083c092e6.
2012-03-09 02:22:18 +01:00
Charles Fulton f2630cfd2c MDL-27304 wiki: link to user's course profile 2012-03-08 05:08:23 -08:00
Andrew Robert Nicols a645b79113 MDL-31923 Correctly respect hiddenfields and capabilities 2012-03-08 10:22:55 +00:00
Andrew Davis e5ecd739ed MDL-31841 grade: prevented the feedback column on the user report from being centered 2012-03-08 15:23:51 +07:00
Eloy Lafuente (stronk7) c76aa441b4 Merge branch 'wip-MDL-31248-MOODLE_21_STABLE-v2' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-03-08 02:41:45 +01:00
Eloy Lafuente (stronk7) 4b3d540f21 Merge branch 'wip-MDL-29086-MOODLE_21_STABLE' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-03-08 02:32:31 +01:00
AMOS bot d49760a96f Automatically generated installer lang files 2012-03-08 00:31:43 +00:00
Adrian Greeve 6704edc5ba MDL-31248 - lib - Alteration to the rc4encrypt function to allow for old password use. 2012-03-08 08:18:27 +08:00
Ankit Agarwal 8cd16e9d71 MDL-31466 tags: Fixed context bug 2012-03-08 10:56:04 +13:00
Eloy Lafuente (stronk7) 87ab86d1cb Merge branch 'wip-mdl-31894-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-03-07 18:15:10 +01:00
Eloy Lafuente (stronk7) 15c49dc35f Merge branch 'MDL-31712_M21' of git://github.com/kordan/moodle into MOODLE_21_STABLE 2012-03-07 15:42:21 +01:00
Petr Skoda 6b2de94af5 MDL-31689 fix moodle_database:execute() description
Conflicts:

	lib/dml/moodle_database.php
2012-03-07 12:43:40 +01:00
Eloy Lafuente (stronk7) 029923aa9d 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 11:23:33 +01:00
David Mudrak 01af07849e MDL-31832 CLI upgrade checks if the upgrade is actually needed
Conflicts:

	admin/cli/upgrade.php
2012-03-07 11:22:38 +01:00
Eloy Lafuente (stronk7) b23ffc0937 MDL-28364 whitespace fixes 2012-03-07 04:02:03 +01:00
Eloy Lafuente (stronk7) bab29cb50b Merge branch 'MDL-28364_21' of git://github.com/jonof/moodle into MOODLE_21_STABLE 2012-03-07 04:01:53 +01:00
Eloy Lafuente (stronk7) 6cedce9d6b MDL-23787 data: Init 2 arrays (global scope) that may conflict with other global scope code 2012-03-07 01:58:11 +01:00
Marina Glancy 539c7ca148 MDL-23787 added possibility to embed images into textarea fields in database activity
Conflicts:

	mod/data/field/textarea/lang/en/datafield_textarea.php
2012-03-07 01:57:33 +01:00
AMOS bot d6cb6b06e0 Automatically generated installer lang files 2012-03-07 00:31:50 +00:00
Ruslan Kabalin e57b1ed36c MDL-31255 Fix move of highlighted section when JS is off
Conflicts:

	course/rest.php
	course/view.php
2012-03-07 00:42:47 +01:00
Sam Hemelryk ce0e7afd40 Merge branch 'MDL-28387-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-03-07 11:46:21 +13:00
Gootvilig David Hai 960b382617 MDL-31876 questionlib: fix question_has_capability_on memory bloat 2012-03-06 21:32:13 +01:00
Eloy Lafuente (stronk7) 7f8c780dd3 Merge branch 'MDL-31829_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-03-06 21:23:54 +01:00
Eloy Lafuente (stronk7) 0b9c121a8c Merge branch 'w10_MDL-31785_m21_htmlpurifier' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-06 13:12:23 +01:00
Eloy Lafuente (stronk7) 7083c092e6 MDL-31708 wiki groups: whitespace fix 2012-03-06 11:46:39 +01:00
Adrian Greeve e9313673bb MDL-30906 - course - Changed the <hx> tags to follow a sequential order 2012-03-06 14:56:55 +08:00
Rajesh Taneja 7d019212c3 MDL-31894 Blocks: fixed get_course_context usage in peoples block 2012-03-06 10:30:35 +08:00
Gilles-Philippe Leblanc b3df3de675 [MDL-31708] - wiki 2.0 non-group member can see edit option in navigation block. 2012-03-06 10:20:57 +08:00
Sam Hemelryk b2896fd59f Merge branch 'MDL-27764_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-03-06 10:18:51 +13:00
Mary Evans c13c397355 MDL-31328_master theme_sky_high: fixed report layout and related files + updated css + added horizontal scroll 2012-03-06 10:04:39 +13:00
Sam Hemelryk 3bfeac2dfa Merge branch 'MDL-31828_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-03-05 17:03:11 +13:00
Sam Hemelryk b3e2eb804a Merge branch 'w10_MDL-31807_m21_cohort' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-03-05 16:55:57 +13:00
Sam Hemelryk c7b23475a5 MDL-30724 mod_assignment: Minor fixes during integration 2012-03-05 16:09:35 +13:00
Sam Hemelryk d5f1dab8f2 Merge branch '21_MDL-30724_count_real_submissions_eloy_suggests' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-03-05 16:08:40 +13:00
Tony Levi 3885259733 MDL-31819: admin: allow install to proceed when multiple admins exist already 2012-03-05 15:54:44 +13:00
Sam Hemelryk 9a2d681948 MDL-31794 theme_formalwhite: Fixed up tabs 2012-03-05 15:29:31 +13:00
Sam Hemelryk 3fe51df42e Merge branch 'MDL-31707_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-03-05 15:21:12 +13:00
Kordan 2555ac359b MDL-29367 theme_formalwhite: Lines between RSS and upcoming events 2012-03-05 15:16:14 +13:00
Kordan 096a3aa116 MDL-31786 theme_formalwhite: bigger userid and password fields size in login page 2012-03-05 15:07:44 +13:00
kordan ce01921fd2 MDL-31794 theme_formalwhite: let tab-bar give evidence of the current tab and page 2012-03-05 15:01:54 +13:00
Eloy Lafuente (stronk7) b1f222f672 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:49:20 +01:00
Sam Hemelryk 36bad5bfcd Merge branch 'MDL-26037_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-03-05 14:03:20 +13:00
Sam Hemelryk 33bd4e0455 Merge branch 'MDL-29248_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-03-05 13:54:03 +13:00
Kordan 85d555ebd7 MDL-29127 theme_formalwhite: highlight for unread forum post 2012-03-05 12:37:33 +13:00
Sam Hemelryk 0080f86fb7 MDL-24235 bennu: Converted to old style of textlib strlen 2012-03-05 12:21:35 +13:00
Sam Hemelryk fc697419ad Merge branch 'MDL-24235-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-03-05 12:20:48 +13:00
Sam Hemelryk ff79a72c10 Merge branch 'MDL-31806-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-03-05 12:05:30 +13:00
Sam Hemelryk 974c446434 Merge branch 'MDL-30893-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-03-05 11:52:36 +13:00
AMOS bot 7949fd758c Automatically generated installer lang files 2012-03-04 00:31:53 +00:00
Petr Skoda 4c05d4a9c1 MDL-31785 fix and improve htmlpurifier tests 2012-03-03 11:27:28 +01:00
Petr Skoda c55217736e MDL-31785 import HTMLPurifier 4.4.0+
Includes one extra fix for _blank 8c9d461a6259d7b8ac4ae5c9c9e95ab176cfcda3 compared to 4.4.0 release.
2012-03-03 11:26:03 +01:00
Petr Skoda 1cb9ca1458 MDL-31807 fix invalid nulls in cohort components
Credit goes to Stephen.
2012-03-03 11:09:44 +01:00
Charles Fulton f6f1c2aed8 MDL-24235 bennu: remove dependency on mbstring from library 2012-03-02 08:03:09 -08:00
Charles Fulton 936adcdbde MDL-29848 glossary: get proper context for comments on exported entry 2012-03-02 07:50:06 -08:00
Adrian Greeve f123887e94 MDL-29086 - data - Fix for allowing the deletion of database activity presets.
Thank you to Matthias Hunstock for providing a patch for this.
2012-03-02 14:37:24 +08:00
Ankit Agarwal eb2cbfc6d8 MDL-28387 logs: Log data when a user is deleted 2012-03-02 13:29:58 +08:00
Ankit Agarwal 7aee4c3ddf MDL-31466 Tags Adding a capability check to make sure hidden courses are not displayed in tag search results 2012-03-02 11:55:26 +08:00
Ankit Agarwal 3e5a3d91ee MDL-30893 Accessibility Submit button in forgot password page now have separate ids 2012-03-02 11:34:02 +08:00
Tim Hunt b37cff4f0d 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:38:58 +00:00
Eloy Lafuente (stronk7) 3b63a42387 MDL-26037 restore: fixes for mssql, php 5.4 and small improvs 2012-03-01 13:19:57 +01:00
Tony Levi 5c625be3be MDL-26037: import: display search box even when no courses are currently displayed 2012-03-01 13:19:57 +01:00
Tony Levi b6328863ad MDL-26037: restore/import: check through all courses instead of only first 250 2012-03-01 13:19:57 +01:00
Eloy Lafuente (stronk7) 4fda074e69 MDL-29248 backup: take rid of the setting and code handling the 'private' user filearea 2012-03-01 13:17:48 +01:00
Eloy Lafuente (stronk7) 0d8ce6ac3e MDL-29248 backup: delete user_files settings, lang strings and uses
Conflicts:

	version.php
2012-03-01 13:17:40 +01:00
Tim Hunt fb313979df MDL-31828 attachements to essay questions do not work on Oracle. 2012-03-01 12:12:18 +00:00
Eloy Lafuente (stronk7) 9e4c8f40d4 MDL-31707 environment - add check for the hash extension 2012-03-01 12:52:20 +01:00
Eloy Lafuente (stronk7) f24a1a74e5 weekly release 2.1.4+ 2012-03-01 11:32:38 +01:00
Eloy Lafuente (stronk7) 05acc0c507 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-03-01 11:26:22 +01:00
Aparup Banerjee cad5317fd0 MDL-27793 themes : anomaly theme rtl+ltr login box element widths fixed to be acceptable for IE and FF.
Conflicts:

	theme/anomaly/style/general.css
2012-03-01 09:24:02 +01:00
Sam Hemelryk 1fa9907b7d Merge branch 'MDL-31831_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-03-01 14:36:07 +13:00
Eloy Lafuente (stronk7) 672af3c102 MDL-31831 whitespace clean - take2 2012-03-01 02:09:40 +01:00
Charles Fulton 1feed43c45 MDL-31806 tags: remove second occurrence of id in query string 2012-02-29 05:17:34 -08:00
Aparup Banerjee 0feba3f8fa MDL-25027 web service: moved validation to before changes to DB transaction. 2012-02-29 09:57:33 +01:00
Eloy Lafuente (stronk7) b6ea2779c6 Merge branch 'wip-mdl-29274-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-02-29 02:19:40 +01:00
Eloy Lafuente (stronk7) 0915af2783 Merge branch 'MDL-31748_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-02-29 02:11:08 +01:00
Eloy Lafuente (stronk7) 85c0bc886b Merge branch 'MDL-26496_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-02-29 02:06:40 +01:00
AMOS bot b0a01ca5b2 Automatically generated installer lang files 2012-02-29 00:31:21 +00:00
Eloy Lafuente (stronk7) 05bfd9ff6f Merge branch 'wip-MDL-31738-MOODLE_21_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_21_STABLE 2012-02-29 00:30:49 +01:00
Eloy Lafuente (stronk7) ed27a82dbc Merge branch 'MDL-25027_stable_consistency_fix_m21' of git://github.com/nebgor/moodle into MOODLE_21_STABLE 2012-02-28 17:34:23 +01:00
Aparup Banerjee 91c54c7c11 Merge branch 'MDL-14837_show-time-on-no-duration-events_21_STABLE' of https://github.com/ncsu-delta/moodle into MOODLE_21_STABLE 2012-02-28 16:42:02 +08:00
Aparup Banerjee fdbdba153b Merge branch 'MDL-30878-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-02-28 15:38:56 +08:00
Aparup Banerjee e46da9a7fe Merge branch 'MDL-28386-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-02-28 14:42:24 +08:00
Dan Marsden 72307d9a9f MDL-31086 Calendar : fix sql to get distinct list of courses 2012-02-28 14:37:32 +08:00
Aparup Banerjee 8b1876f3b5 Merge branch 'MDL-31335_mtrace_email_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-02-28 14:15:43 +08:00
Aparup Banerjee 4c52d60ed4 Merge branch 'wip-mdl-22896-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-02-28 13:48:45 +08:00
Aparup Banerjee 40e24058b2 Merge branch 'MDL-31399_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-02-28 12:05:25 +08:00
Eloy Lafuente (stronk7) 18e9464448 Merge branch 'MDL-27793_m21' of git://github.com/nebgor/moodle into MOODLE_21_STABLE 2012-02-28 03:53:05 +01:00
Jonathon Fowler 0ead433d20 MDL-28364 handle question formats that support multiple file types 2012-02-28 09:24:02 +10:00
Eloy Lafuente (stronk7) b992ac2eb5 MDL-29161 weblib: added one more test about un-keyed array params 2012-02-27 22:22:15 +01:00
Eloy Lafuente (stronk7) 2f69c6159b Merge branch 'MDL-29161_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-02-27 22:22:09 +01:00
Eloy Lafuente (stronk7) 89c8b0a8c0 Merge branch 'MDL-31721_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-02-27 22:07:01 +01:00
Eloy Lafuente (stronk7) 7c330ad77d Merge branch 'MDL-31729_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-02-27 19:02:59 +01:00
Eloy Lafuente (stronk7) 82f4e1f838 Merge branch 'MDL-29256-resource-format_21_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_21_STABLE 2012-02-27 18:55:05 +01:00
Eloy Lafuente (stronk7) 8e53b911e7 Merge branch 'MDL-29199-21_STABLE' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-02-27 18:48:18 +01:00
Adam Olley 4d090b8959 MDL-29229 message: Set contactlist pull-down width to not exceed parent columns width 2012-02-27 17:12:24 +01:00
Eloy Lafuente (stronk7) 8774bde1a9 Merge branch 'MDL-29523-21_STABLE' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-02-27 16:52:57 +01:00
Dan Poltawski 4e012c2700 MDL-29592 weblib: prevent warnings when $USER not set 2012-02-27 16:06:48 +01:00
Dan Poltawski 145d39a35a MDL-31348 calendar: event links not using user timezone
thanks to Ben Thomas for the patch
2012-02-27 15:58:14 +01:00
Eloy Lafuente (stronk7) 6c200e966f Merge branch 'MDL-31546-21_STABLE' of git://github.com/danpoltawski/moodle into MOODLE_21_STABLE 2012-02-27 15:44:48 +01:00
Dan Poltawski ff0e0c099e MDL-31651 course/info: Fix hardcoded string 2012-02-27 15:32:47 +01:00
Marina Glancy c73d54850f MDL-31738: added functions mod_xxx_get_file_info() to glossary and data modules 2012-02-27 14:24:08 +08:00
Gerard (Gerry) Caulfield 9af65cb3ac 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:30:37 +08:00
Sun Zhigang 7020701b75 MDL-29523 filemanager: Fix a hardcode string 2012-02-27 09:40:56 +08:00
AMOS bot 24fed95222 Automatically generated installer lang files 2012-02-27 00:31:21 +00:00
Mary Evans 88cebb1df6 MDL-31748_master theme_afterburner: added min-width to fix missing horizontal scroll bar when page is reduced in browser window 2012-02-25 18:10:26 +00:00
Glenn Ansley 96094327a1 MDL-14837 Calendar: Display start time on calendar events with no duration 2012-02-24 09:03:16 -05:00
Rajesh Taneja d3bc407853 MDL-29274 blocks: people block will use course context for making url and not module context 2012-02-24 16:40:45 +08:00
Kordan 6298a3e454 accessibility colors for formal_white M21 2012-02-24 07:39:52 +01:00
Dan Poltawski e3c04a7426 MDL-29199 dml: fix query logging on Oracle
thanks to Jonathon Fowler for the fix
2012-02-24 11:57:57 +08:00
Dan Poltawski c3eb0eec2a MDL-31546 wiki: remove stray semicolon
causing errors on oracle

Thanks to Jonathon Fowler for the patch
2012-02-24 11:41:14 +08:00
Rajesh Taneja 97c8fe4def MDL-22896 libraries: Updated regular expression in html2text, for replacing unknown/unhandled entities 2012-02-24 10:11:15 +08:00
Aparup Banerjee b861cf6a3d 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:53:06 +08:00
Aparup Banerjee a1fc9592a3 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:53:06 +08:00
Tim Hunt 370bda4cb9 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:05:34 +00:00
Tim Hunt 1b5d149b43 MDL-31721 question editing: improve working for Show num correct
AMOS BEGIN
 CPY [shownumpartscorrect,question],[shownumpartscorrectwhenfinished,question]
AMOS END
2012-02-23 12:05:15 +00:00
Tim Hunt 0f751368e5 MDL-29161 weblib: moodle_ulr::out does not cope with array params.
Conflicts:

	lib/simpletest/testweblib.php
2012-02-23 12:04:55 +00:00
Eloy Lafuente (stronk7) 62b0af5863 weekly release 2.1.4+ 2012-02-23 11:39:38 +01:00
Eloy Lafuente (stronk7) 0938a8847f Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-02-23 11:35:08 +01:00
Rossiani Wijaya 8bfd16856a MDL-31399 Lesson Module: Fixed horizontal scroll bar issue when using rtl language format (eg: arabic) 2012-02-23 14:52:01 +08:00
Eduardo Pinto 234f870c88 MDL-26496 Lesson Module: removed warning when no answer is selected from single choice question 2012-02-23 13:38:54 +08:00
AMOS bot 4d9648a7bd Automatically generated installer lang files 2012-02-23 00:31:13 +00:00
Eloy Lafuente (stronk7) e9adc4057f Merge branch 'm21_MDL-31652' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-02-22 10:07:47 +01:00
Dan Marsden 47e2cdf108 MDL-31652 SCORM - advanced settings not configurable in 2.1 2012-02-22 19:19:19 +13:00
AMOS bot 85a6624378 Automatically generated installer lang files 2012-02-22 00:31:19 +00:00
Sam Hemelryk 65773fe2fe Merge branch 'MDL-30910_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-02-22 10:21:28 +13:00
Eloy Lafuente (stronk7) d5ae248cb9 Merge branch 'wip-MDL-30830-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-02-21 21:20:07 +01:00
David Mudrak a158c5c325 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:18:34 +01:00
Eloy Lafuente (stronk7) c85e0f6e1e Merge branch '21_MDL-25996_making_language_editing_terms_user_friendly' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-02-21 10:48:50 +01:00
Aparup Banerjee 12166ca08d MDL-25027 Web Service: added email validation to create_users() - just like GUI 2012-02-21 15:30:12 +08:00
Aparup Banerjee 70a752c068 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:30:06 +08:00
Rossiani Wijaya dbac1a5177 MDL-30910: Lesson Module: fix lesson progress bar for screen readers
AMOS BEGIN
   CPY [progresscompleted, mod_lesson]
AMOS END
2012-02-21 12:39:24 +08:00
EVAN Irving-Pease 6c9e270f51 MDL-28386 Authentication Fixing user id issue with logs when a new user is added 2012-02-21 08:15:19 +05:30
Gerard (Gerry) Caulfield 2d3eed0fba MDL-25996 Updating languaged editing interface terms to make them user
friendly
2012-02-21 10:10:02 +08:00
Eloy Lafuente (stronk7) 7b98cbf20e Merge branch 'wip-mdl-25432-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-02-21 02:10:38 +01:00
AMOS bot 665328808f Automatically generated installer lang files 2012-02-21 00:31:20 +00:00
Sam Hemelryk d7375d7ecb Merge branch 'MDL-29402-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-02-21 10:43:29 +13:00
Andrew Robert Nicols 733042590b MDL-19421 Correct lesson dependency mapping on restore 2012-02-20 17:17:39 +01:00
Eloy Lafuente (stronk7) 896f9739cc Merge branch 'MDL-31345_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-02-20 15:40:16 +01:00
Eloy Lafuente (stronk7) 50a1fe7b13 Merge branch 'wip-MDL-25299-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-02-20 12:59:20 +01:00
Sam Hemelryk 7d03210e74 Merge branch 'wip-mdl-29967-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-02-20 18:20:14 +13:00
Sam Hemelryk 7e87a3af32 Merged MDL-29254 with conflict resolution 2012-02-20 17:59:08 +13:00
Sam Hemelryk f37f43f3dd Merge branch 'wip-MDL-31627-MOODLE_21_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_21_STABLE 2012-02-20 17:25:26 +13:00
Sam Hemelryk 0296cc13c7 Merge branch '21_MDL-31388_fix_enrol_LDAP_typo' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-02-20 17:13:15 +13:00
Sam Hemelryk f2f3078cd3 Merge branch 'MDL-31532_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-02-20 17:10:31 +13:00
Sam Hemelryk 3921c7242d Merge branch 'MDL-31432_messaging_popup_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-02-20 16:58:03 +13:00
Sam Hemelryk 9169b3349f Merge branch '21_MDL-30957_adding_assignment_completion_status_method_and_call' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-02-20 16:52:26 +13:00
Gerard (Gerry) Caulfield d773f373ef 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:37:51 +08:00
Andrew Davis f684c55b0c 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:35:15 +07:00
Andrew Davis 617d29bb41 MDL-31432 message: prevent messaging popups while viewing messages 2012-02-20 10:14:35 +07:00
Sam Hemelryk f1c1de8924 Merge branch 'm21_MDL-31397' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-02-20 16:02:59 +13:00
Sam Hemelryk 09c2f89a62 Merge branch 'm21_MDL-31652' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE 2012-02-20 15:53:23 +13:00
Sam Hemelryk 88b14f0fd0 Merge branch 'MDL-30965-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-02-20 15:44:40 +13:00
Andrew Robert Nicols b32b101380 MDL-31589 Sort order of lesson answers before restoring them 2012-02-20 15:19:24 +13:00
Andrew Robert Nicols 42f5a204fb MDL-31590 Correct title of error dialogue on filepicker
Thanks to Gilles-Philippe Leblanc for this patch
2012-02-20 15:01:53 +13:00
Rajesh Taneja 3c5ea52dda MDL-29254 blog: added check in upgrade for summary and content to be null fields 2012-02-20 09:37:34 +08:00
Rajesh Taneja 543301a97f 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:29:57 +08:00
Eloy Lafuente (stronk7) 7116d8d3a7 MDL-31532 restore: avoid null course->hiddensections problems. Credit goes to Petri Asikainen. Thanks! 2012-02-20 01:36:35 +01:00
AMOS bot c589d2b402 Automatically generated installer lang files 2012-02-20 00:31:23 +00:00
Sam Hemelryk 06f405d654 Merge branch 'MDL-31556_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-02-20 12:38:54 +13:00
Sam Hemelryk a80daaf26d Merge branch 'MDL-31647-m21' of git://github.com/sammarshallou/moodle into MOODLE_21_STABLE 2012-02-20 11:54:23 +13:00
Sam Hemelryk b2444c0c45 Merge branch 'MDL-30495-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-02-20 11:50:29 +13:00
Sam Hemelryk b6daade7ff MDL-30521 upgrade: Corrected version bump for uniquehash field upgrade 2012-02-20 10:58:23 +13:00
Sam Hemelryk a005b98ba7 Merge branch 'wip-mdl-30521-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-02-20 10:29:38 +13:00
AMOS bot 147dfa0424 Automatically generated installer lang files 2012-02-18 00:31:32 +00:00
sam marshall bb771fc43b MDL-31647 Glossary: Links to glossary entries from glossary main page should not be popups 2012-02-17 10:38:52 +00:00
Ankit Agarwal 6b288716cb MDL-30965 SCORM Removing unused variable ->head 2012-02-17 09:20:16 +05:30
Sam Hemelryk 8f6fd84c77 MDL-25299 mnet: Fixed validation when no public key is provided 2012-02-17 16:47:43 +13:00
Gerard (Gerry) Caulfield 77593642aa MDL-31388 Fixing typo in enrol_ldap 2012-02-17 11:44:09 +08:00
Marina Glancy 69b00bda42 MDL-31627: Arialist theme do not resize content when there are no blocks 2012-02-17 11:02:37 +08:00
Dan Marsden 6d65790c98 MDL-31652 SCORM - hide updatefreq setting and remove it if not required. 2012-02-17 15:32:47 +13:00
Dan Marsden 88f5848e9b SCORM MDL-31397 - add slashes to js string 2012-02-17 15:24:35 +13:00
Sam Hemelryk a808df470d MDL-30830 dock: Added the title using accesshide for screen readers 2012-02-17 14:52:19 +13:00
Eloy Lafuente (stronk7) e0d5a17f7f weekly release 2.1.4+ 2012-02-17 01:49:37 +01:00
Eloy Lafuente (stronk7) 72700fd593 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-02-17 01:43:56 +01:00
AMOS bot 90f8146396 Automatically generated installer lang files 2012-02-17 00:31:18 +00:00
Joseph Rezeau 3ec7dc747f MDL-31556 Lesson Module: fixed missing 'lesson closes' event in calendar 2012-02-16 15:45:35 +08:00
Jerome Mouneyrac 95711cca60 MDL-30495 HTML5 apps cannot call Webservices functions if a HTTP resource is retrieved from the Moodle installation 2012-02-15 11:40:32 +08:00
Sam Hemelryk d727e30334 MDL-30888 course-search: Fixed typo 2012-02-15 16:29:14 +13:00
Sam Hemelryk cf86dd8c20 Merge branch 'wip-mdl-30388-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-02-15 16:23:24 +13:00
Rajesh Taneja d3d7cb46ce MDL-30388 Blocks: navigation block is visible on block search page 2012-02-15 10:21:04 +08:00
Rajesh Taneja 46f1a84281 MDL-30388 Blocks: Search view for block instances fixed, with proper page url and pagination 2012-02-15 10:20:58 +08:00
Andrew Robert Nicols b22d03b3fd [MDL-31386] Correctly order answers in a lesson backup 2012-02-15 03:15:35 +01:00
Michael Aherne e0325d3c30 MDL-31495 Performance improvement in question engine upgrade SQL 2012-02-15 09:37:58 +08:00
AMOS bot 680d2134e3 Automatically generated installer lang files 2012-02-15 00:31:20 +00:00
Sam Hemelryk 042e24f146 MDL-30709 mod_assignment: Renamed callback to mod_assignment_get_file_info 2012-02-15 11:27:05 +13:00
Charles Fulton 57aefd2124 MDL-29402 QandA forum questions should be emailed 2012-02-14 06:02:12 -08:00
Davo Smith 3b8d8e1641 MDL-31527 XMLDB Editor - make sure default tables are created with correct plugin prefix 2012-02-14 12:12:31 +01:00
Iñaki Arenaza f32c32b81f 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:58:59 +08:00
Aparup Banerjee b6aa60c810 Merge branch 'wip-mdl-28101-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-02-14 15:39:10 +08:00
Rajesh Taneja 2f20a794bf MDL-30521 blog: Updated uniquehash field preceision to 255 in post table 2012-02-14 14:23:10 +08:00
Davo Smith 3051f76809 MDL-31541 Repositories - make sure all repository instances have unique 'sortorder' values when retrieved 2012-02-14 13:32:30 +08:00
Sam Hemelryk 9560a61be9 Merge branch 'MDL-30911_m21' of git://github.com/rwijaya/moodle into MOODLE_21_STABLE 2012-02-14 17:41:37 +13:00
Sam Hemelryk 5e87e0e6e4 MDL-30709 mod_assignment Fixed phpdocs for assignment_get_file_info 2012-02-14 17:16:32 +13:00
Sam Hemelryk 70a03e679e Merge branch 'wip-MDL-30709-MOODLE_21_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_21_STABLE 2012-02-14 17:16:21 +13:00
Aparup Banerjee 38a88bb4bc Merge branch 'MDL-29471-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-02-14 11:43:15 +08:00
Sam Hemelryk 0e373152be Merge branch 'MDL-31604-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-02-14 15:47:59 +13:00
Sam Hemelryk a689533f8f Merge branch '21_MDL-26807_remove_withselectedusers_strings_and_references' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-02-14 15:31:49 +13:00
Sam Hemelryk 8213be9838 Merge branch '21_MDL-27285_fixing_grammar_on_wiki_links_page' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-02-14 15:27:45 +13:00
Sam Hemelryk 79d0f68575 Merge branch '21_MDL-27654_add_space_to_somefieldrequired_string' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-02-14 15:20:59 +13:00
Sam Hemelryk a750aff797 Merge branch '21_MDL-31107_fixing_below_typos' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-02-14 15:08:23 +13:00
Mary Evans 1b80c4a8ec MDL-31345_master theme_afterburner: adds horizontal scroll bar to pagelayout-report 2012-02-14 01:52:58 +00:00
Sam Hemelryk fd20256bad Merge branch 'MDL-28283-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-02-14 13:59:22 +13:00
Sam Hemelryk 9bfa5bd8cc Merge branch 'MDL-30815-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-02-14 13:44:44 +13:00
Sam Hemelryk 98899b998c Merge branch 'MDL-30821-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-02-14 13:39:23 +13:00
Andrew Robert Nicols d5e19eb275 MDL-31515 Allow for subsequent files to overwrite old files in database activity records 2012-02-14 10:57:11 +13:00
Sam Hemelryk 17b0c930c6 Merge branch 'MDL-29080_export_hidden2_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-02-14 10:47:39 +13:00
Sam Hemelryk f6a491d805 Merge branch '21_MDL-29153_fix_typo_in_resource' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-02-13 18:03:55 +13:00
Sam Hemelryk e290039f96 Merge branch '21_MDL-30723_fixing_several_english_typos' of git://github.com/gerrywastaken/moodle into MOODLE_21_STABLE 2012-02-13 18:00:13 +13:00
Ankit Agarwal 45462d20a2 MDL-30821 SCORM Fixing issues with SCORM report when there are no attempts to report 2012-02-13 10:26:51 +05:30
Andrew Robert Nicols 408844eea1 MDL-31502 Check whether a category has subcategories or courses within it before using those variables 2012-02-13 17:48:57 +13:00
Sam Hemelryk d66b3501fe Merge branch 'wip-MDL-25185-MOODLE_21_STABLE' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-02-13 17:34:30 +13:00
Sam Hemelryk 7b53f78459 Merge branch 'wip-MDL-31463-MOODLE_21_STABLE' of git://github.com/abgreeve/moodle into MOODLE_21_STABLE 2012-02-13 17:02:23 +13:00
Anita Viglinoe 1a8aa6748e MDL-28283-master Completion Future dates can now be set as completion criteria 2012-02-13 09:04:36 +05:30
Rossiani Wijaya 6df07690e2 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:18:55 +08:00
Ankit Agarwal 7e9eccf26e MDL-30815 Choice Labels are now explicitly tied with input elements 2012-02-13 08:39:14 +05:30
Eloy Lafuente 1ea772301b MDL-31604 Fix capabilities displayed without spaces causing text going out of the screen 2012-02-13 10:51:32 +08:00
Sam Hemelryk 38b0b2522e Merge branch 'wip-mdl-31576-m21' of git://github.com/rajeshtaneja/moodle into MOODLE_21_STABLE 2012-02-13 15:30:05 +13:00
Rajesh Taneja a33ba5562a MDL-28101 wiki2.0: escape bold and italics for NWIKI formatting 2012-02-13 10:27:03 +08:00
Sam Hemelryk 4cb775dcff Merge branch 'MDL-25883-21' of https://github.com/mackensen/moodle into MOODLE_21_STABLE 2012-02-13 14:36:04 +13:00
Eloy Lafuente (stronk7) 52e6baa94b weekly release 2.1.4+ 2012-02-13 01:19:53 +01:00
Eloy Lafuente (stronk7) 3d4f01a4e5 Revert "MDL-31345 theme_afterburner fixes pagelayout-report overflow"
This reverts commit f9b6adaef6.
2012-02-12 23:24:22 +01:00
Gerard (Gerry) Caulfield 74e6179ab3 MDL-31107 Fixing instaces of below where it is written as bellow (two L's) 2012-02-10 15:33:44 +08:00
Gerard (Gerry) Caulfield c7f338c6d7 MDL-29153 Fixing typo, "Bellow" should be "Below" 2012-02-10 14:38:16 +08:00
Gerard (Gerry) Caulfield 7902e20361 MDL-27285 Updating string grammar on the wiki module's links page 2012-02-10 07:57:12 +08:00
Gerard (Gerry) Caulfield b15041dc40 MDL-26807 Updating the withselectedusers_help string 2012-02-10 02:18:21 +08:00
Gerard (Gerry) Caulfield 6fbd8a9c5c MDL-30723 Fixing English typo(s) 2012-02-10 01:49:46 +08:00
Gerard (Gerry) Caulfield f652396ce5 MDL-27654 Insert a space into the somefieldrequired string 2012-02-10 01:26:29 +08:00
Rajesh Taneja c9bc0704f8 MDL-31576 core: Duplicate message definition removed from get_core_subsystem 2012-02-09 17:15:00 +08:00
Marina Glancy 42711a4d6a 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:59:10 +08:00
Aparup Banerjee fa639fef7a Merge branch 'wip-MDL-31417-MOODLE_21_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_21_STABLE 2012-02-09 10:17:01 +08:00
Marina Glancy 63a013e6b4 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-09 10:15:19 +08:00
Adrian Greeve 65c29e26ff MDL-31463 - navigation - added a context check in the navigation for fullname permission. 2012-02-09 10:01:41 +08:00
Andrew Davis de0799a893 MDL-29080 grade: simplified bug fix to prevent users without the required capabilities from being able to export hidden grade items 2012-02-09 08:36:06 +07:00
Adrian Greeve 1779301424 MDL-25185 - data - Allowing data from the database to be exported according to group roles. 2012-02-09 09:31:34 +08:00
Eloy Lafuente (stronk7) a48ed0b1ae MDL-27891 tag logs: minibump version 2012-02-08 11:45:31 +01:00
Eloy Lafuente (stronk7) 658a15bd31 Merge branch 'MDL-27891-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-02-08 11:45:07 +01:00
Eloy Lafuente (stronk7) 23666489f7 Merge branch 'MDL-31345_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-02-08 11:17:45 +01:00
Ruslan Kabalin 3512f3bff6 MDL-31316 Fix block controls when default home is My Moodle 2012-02-08 11:08:30 +01:00
Mary Evans f9b6adaef6 MDL-31345 theme_afterburner fixes pagelayout-report overflow 2012-02-08 04:02:21 +00:00
Aparup Banerjee 60811b8dc9 Merge branch 'MDL-31407_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-02-08 11:27:50 +08:00
Eloy Lafuente (stronk7) 4278e96007 Merge branch 'MDL-29892_overview_hidden_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-02-08 03:38:53 +01:00
Ankit Agarwal 5b41faa53f MDL-27891 Tags Flagging tags is now logged 2012-02-08 08:06:38 +05:30
Aparup Banerjee 7acc25342a Merge branch 'MDL-31482-m21' of git://github.com/sammarshallou/moodle into MOODLE_21_STABLE 2012-02-08 09:59:36 +08:00
Eloy Lafuente (stronk7) 493e4f8571 Merge branch 'MDL-30722_forum_unsubscribe_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-02-08 02:38:01 +01:00
Eloy Lafuente (stronk7) 1fa6e5df98 Merge branch 'MDL-26384-m21' of git://github.com/ankitagarwal/moodle into MOODLE_21_STABLE 2012-02-08 00:53:33 +01:00
Eloy Lafuente (stronk7) de655be9ca Merge branch 'MDL-27360-MOODLE_21_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_21_STABLE 2012-02-07 23:49:33 +01:00
sam marshall 0f2d05e79e MDL-31482 Lib: IE8/IE7 (even with stupid user agent) should not be 'legacy' device type 2012-02-07 17:45:03 +00:00
Aparup Banerjee dbc410767a Merge branch 'MDL-31425-m21' of git://github.com/sammarshallou/moodle into MOODLE_21_STABLE 2012-02-07 16:37:11 +08:00
Aparup Banerjee e77a77bbf5 Merge branch 'MDL-31469_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-02-07 15:12:50 +08:00
Ankit Agarwal f167f79d31 MDL-26384 Tags Fixed redirect issue when editing is toggled 2012-02-03 14:57:09 +05:30
Andrew Davis 045ef083f1 MDL-29892 grade: added a check to prevent hidden courses appearing on student overview reports 2012-02-03 08:56:27 +07:00
Tim Hunt 401467b09d MDL-31469 formslib: fix invalid for="" attributes on optional dates 2012-02-02 18:13:40 +00:00
Anthony Forth 799af3bd76 MDL-31445 formslib: add a nice id and class to the wrapper div for CSS 2012-02-02 18:13:10 +00:00
Tim Hunt a238e92533 MDL-31407 quiz: review all uses of global $USER
Conflicts:

	mod/quiz/view.php
2012-02-02 18:12:33 +00:00
Kyle Temkin 5779bd3915 MDL-31407 quiz: finish_attempt method should not rely on $USER 2012-02-02 18:12:31 +00:00
sam marshall effd2830ba MDL-31425 Availability: 'Until' time calculation uses server time zone (2.1 only)
Patch by Chris Follin.
2012-02-02 14:21:43 +00:00
Eloy Lafuente (stronk7) a1063d99ba weekly release 2.1.4+ 2012-02-02 12:14:06 +01:00
Jerome Mouneyrac 4bdff2e1f0 MDL-27360 Web service tokens are displayed for deleted users
Conflicts:

	lib/moodlelib.php
2012-02-02 16:28:07 +08:00
Eloy Lafuente (stronk7) 6c66821924 Revert "SCORM AICC MDL-31039 update external AICC url correctly..", thanks Ankit!
This reverts commit a607db6e70.
2012-02-01 10:21:08 +01:00
Eloy Lafuente (stronk7) 8837d68be5 Merge branch 'wip-MDL-31160-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-02-01 00:54:28 +01:00
Eloy Lafuente (stronk7) 5acb97c505 Merge branch 'wip-MDL-31197-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-02-01 00:50:59 +01:00
Dan Marsden a607db6e70 SCORM AICC MDL-31039 update external AICC url correctly - thanks to Albert Rhemrev for report/fix 2012-02-01 00:42:21 +01:00
Andrew Robert Nicols 04c2e6820d MDL-31000 Respect sortorder of repositories when displaying the filepicker 2012-02-01 00:34:16 +01:00
Glenn Ansley f3e50dd715 MDL-31448 Replaced incorrect PHP comment 2012-01-31 23:58:30 +01:00
Eloy Lafuente (stronk7) c0ffe9a298 Merge branch 'MDL-31015-m21' of git://github.com/sammarshallou/moodle into MOODLE_21_STABLE 2012-01-31 23:03:16 +01:00
Eloy Lafuente (stronk7) d6e08b3e74 Merge branch 'MDL-30854_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-31 19:38:57 +01:00
Eloy Lafuente (stronk7) 764525a02c Merge branch 'MDL-30484_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-31 17:17:05 +01:00
Eloy Lafuente (stronk7) 7769c0f2f8 Merge branch 'MDL-31314_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-31 17:06:26 +01:00
Aparup Banerjee 49b52b3fb4 Merge branch 'MDL-30828_feedback_sort_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-01-31 16:51:47 +08:00
Aparup Banerjee 5d8d3a1a08 Merge branch 'MDL-30707_forum_log_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-01-31 16:44:07 +08:00
Aparup Banerjee 21defa3d5e Merge branch 'MDL-29097_mod_update_create_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE 2012-01-31 14:36:54 +08:00
Dan Marsden 79d5769672 MDL-28522 Choice : View reports now correctly shows unanswered column - thanks to Marcus Boon for the patch 2012-01-31 12:23:46 +08:00
Aparup Banerjee 05b6988a0a Merge branch 'MDL-31426_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-01-31 11:52:34 +08:00
Aparup Banerjee 2cd7d23056 Merge branch 'MDL-31428_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-01-31 11:16:09 +08:00
Eloy Lafuente (stronk7) c186caab9b MDL-31428 forum: prevent some warnings with debug enabled 2012-01-31 00:25:00 +01:00
Eloy Lafuente (stronk7) 0e487bcfde MDL-31426 forum: don't show/allow any subscription to not enrolled users 2012-01-30 23:22:34 +01:00
Tim Hunt f95d0a51f1 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 17:07:02 +00:00
Tim Hunt 5fedb6302b 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:30:48 +00:00
Tim Hunt 19874aa4cc 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.

Conflicts:

	question/type/calculatedsimple/edit_calculatedsimple_form.php
2012-01-30 12:30:02 +00:00
Aparup Banerjee 8cbc3946a3 Merge branch 'MDL-26260_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-30 16:27:26 +08:00
Aparup Banerjee b69e249a6d Merge branch 'MDL-31385_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-30 12:50:51 +08:00
sam marshall 95e8abfcee MDL-31015 File/URL resource 'Open' and 'Force download' options should work consistently
Conflicts:

	mod/resource/lib.php
	mod/url/lib.php
2012-01-27 17:05:25 +00:00
Jerome Mouneyrac dfc66efd04 MDL-29471 php warning when adding function to a new web service 2012-01-27 16:13:07 +08:00
David Mudrak c1f9cde627 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:51:11 +01:00
Jerome Mouneyrac 367ed4621e MDL-30878 core_user_update_users user password is reset if not specified 2012-01-27 15:30:03 +08:00
Fábio Souto d951feda21 Updated bugfix according to Jerome suggestions
password check is done at lib.php instead of externallib.php

Conflicts:

	user/lib.php
2012-01-27 15:29:40 +08:00
Eloy Lafuente (stronk7) c0ac40ee46 weekly release 2.1.4+ 2012-01-27 02:25:46 +01:00
Eloy Lafuente (stronk7) 15d767e019 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-01-27 02:20:38 +01:00
AMOS bot e5bcd180fe Automatically generated installer lang files 2012-01-27 00:31:20 +00:00
Tim Hunt f5d24daba6 MDL-31385 quiz: does not resume previews. 2012-01-26 12:10:41 +00:00
Petr Skoda 86273223df MDL-30509 backport perf improvement in role cleanup in cohort sync
This patch simplifies the role cleanup sql, it is not necessary to look for roles without enrolment instance because all roles are automatically unassigned when deleting enrol instances.
2012-01-25 10:31:56 +08:00
Sam Hemelryk e1ba9e119c MDL-31224 navigation: Added JSON handling on action_link objects to the navigation 2012-01-25 10:10:51 +08:00
Eloy Lafuente (stronk7) 19967a153e Merge branch 'MDL-31122-m21' of git://github.com/sammarshallou/moodle into MOODLE_21_STABLE 2012-01-25 01:52:53 +01:00
Eloy Lafuente (stronk7) 312e45e6f6 Merge branch 'MDL-31113_multiple_files_file_manager_21' of https://github.com/davosmith/moodle into MOODLE_21_STABLE 2012-01-25 01:07:27 +01:00
Petr Skoda d160a5db4a MDL-31238 remove now unnecessary null to stdClass conversion for plugin settings 2012-01-24 23:56:58 +01:00
Petr Skoda 5da7b22027 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-24 23:56:44 +01:00
Andrew Robert Nicols ef8be3cb87 MDL-31245 Add missing 'icon' class to highlight button in topics format 2012-01-24 18:48:05 +01:00
Aparup Banerjee 87c259ce02 Merge branch 'wip-MDL-31224-m21' of git://github.com/samhemelryk/moodle into MOODLE_21_STABLE 2012-01-24 23:02:12 +08:00
Eloy Lafuente (stronk7) 0b1595881f MDL-31189 whitespace fixes 2012-01-24 13:21:13 +01:00
Eloy Lafuente (stronk7) f69ad213c0 Merge branch 'w04_MDL-31183_m21_gloscounts' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-24 12:26:09 +01:00
M Kassaei 6bc136feff MDL-31306 question preview: disable 'Fill correct' for qtypes that can't 2012-01-24 13:27:45 +08:00
Sam Hemelryk 58eb3519ea Merge branch 'MDL-31189_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-01-24 11:06:35 +08:00
Sam Hemelryk 0f7c1c8c02 Merge branch 'MDL-31231_M21' of git://github.com/lazydaisy/moodle into MOODLE_21_STABLE 2012-01-24 11:02:42 +08:00
Eloy Lafuente (stronk7) d03f27f9f4 Merge branch 'w04_MDL-31176_m21_groupcontext' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-24 01:30:16 +01:00
Aparup Banerjee 5528fbe880 Merge branch 'wip-MDL-28352-MOODLE_21_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_21_STABLE 2012-01-24 07:17:18 +08:00
Eloy Lafuente (stronk7) b5c2f10567 Merge branch 'MDL-30033_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-24 00:09:39 +01:00
Eloy Lafuente (stronk7) e06a172b70 Merge branch 'MDL-31065_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-24 00:06:55 +01:00
Aparup Banerjee bfa2605567 Merge branch 'w04_MDL-31184_m21_glosreset' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-24 06:59:17 +08:00
Mary Evans 0344dfd711 MDL-31189_M21 theme_sky_high: fixed footer so page, perfomance and validators can be seen if enabled 2012-01-23 21:54:29 +00:00
Petr Skoda 302ae13f70 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-23 21:34:26 +01:00
Mary Evans 7f7be7777f MDL-31231 fixes docked navigation menu in theme_afterburner 2012-01-23 12:41:46 +00:00
Petr Skoda 11d8ae7dc8 MDL-31172 fix variable name typo in backup file logger 2012-01-23 16:10:01 +08:00
Petr Skoda 63e7733de5 MDL-31173 fix variable name typo when throwing invalid $rule param exception in restore decode processor 2012-01-23 16:07:10 +08:00
Sam Hemelryk 5d9e0f9291 Merge branch 'w04_MDL-31177_m21_odsexport' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-23 15:35:34 +08:00
Sam Hemelryk b70688316f Merge branch 'w04_MDL-31182_m21_messprefs' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-23 14:44:54 +08:00
Sam Hemelryk a16df720b1 Merge branch 'w04_MDL-31186_m21_extprofiles' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-23 14:31:23 +08:00
Petr Skoda d23fd32be1 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-23 14:24:54 +08:00
Sam Hemelryk 7a79813152 Merge branch 'MDL-31330_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-01-23 14:14:50 +08:00
Mary Evans ed3329394c MDL-31269 theme_magazine: fixes login pagelayout in theme_magazine 2012-01-23 13:26:22 +08:00
Andrew Davis ce9ad8de99 MDL-29097 course: refactored to avoid having two seperate calls to events_trigger() 2012-01-23 11:56:13 +07:00
Andrew Davis 9e74931f1a MDL-30722 mod_forum: prevented users being auto-logged in as guest when they access /mod/forum/unsubscribeall.php 2012-01-23 11:29:00 +07:00
Andrew Davis cec66207be MDL-30707 mod_forum: fixed a add_to_log() call that was causing invalid URLs to be added to the log 2012-01-23 11:06:04 +07:00
Sam Hemelryk dccf4efb1d Merge branch 'MDL-31329_21' of git://github.com/stronk7/moodle into MOODLE_21_STABLE 2012-01-23 11:25:14 +08:00
Andrew Robert Nicols 040b3bdd96 MDL-31013 Add iconsmall class to 'Export to portfolio' icon 2012-01-23 11:08:59 +08:00
Petr Skoda bcbaa79163 MDL-31180 fix coding error in fake_recordset iterator 2012-01-23 01:11:34 +01:00
Eloy Lafuente (stronk7) 63f1c0d531 Merge branch 'w04_MDL-31181_m21_fitlertestcfg' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-23 01:04:34 +01:00
Eloy Lafuente (stronk7) 6f892151be Merge branch 'MDL-31058_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-23 00:56:42 +01:00
Eloy Lafuente (stronk7) 158c275618 Merge branch 'w04_MDL-31185_m21_postscfg' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-23 00:28:40 +01:00
Petr Skoda 8be997c2f4 MDL-31208 fix obsolete get_record_sql() parameter
Credit goes to Rajesh Taneja.
2012-01-22 23:46:32 +01:00
Eloy Lafuente (stronk7) 7050528195 MDL-31330 admin: fix incorrect context use
This was introduced by MDL-31006, being backported to 21_STABLE
and that use escaped the (my) scrutiny :-( (the new access API is
22_STABLE and upwards only)
2012-01-22 23:28:33 +01:00
Eloy Lafuente (stronk7) 85e27e9097 MDL-31329 timezones: updated to 2011n 2012-01-22 21:32:20 +01:00
Petr Skoda 5b67cd5ec8 MDL-31176 add missing global $DB when looking for group related context in calendar 2012-01-21 19:58:02 +01:00
Petr Skoda 9e7ea20a1c MDL-31177 fix notices when exporting logs to ods 2012-01-21 19:52:38 +01:00
Petr Skoda 3d302c1684 MDL-31181 fix missing global $CFG that was breaking unit test teardown 2012-01-21 17:09:01 +01:00
Petr Skoda 144c8b87d8 MDL-31182 fix fatal error when problem detected in finding messaging defaults 2012-01-21 17:00:16 +01:00
Petr Skoda f8e5f3ed24 MDL-31183 fix non-functional glossary_count_unrated_entries() 2012-01-21 16:47:53 +01:00
Petr Skoda d8202baf04 MDL-31184 fix multiple problems when reseting individual glossary types 2012-01-21 16:31:51 +01:00
Petr Skoda 203ee49b1e MDL-31185 fix missing CFG in forum_get_posts_by_user() 2012-01-21 16:18:00 +01:00
Petr Skoda 4d690a2995 MDL-31186 fix wrong context preloading sql 2012-01-21 16:09:25 +01:00
Tim Hunt f38065ff42 MDL-31058 qtype match 1.9 restore: fix restore of dodgy questions. 2012-01-20 18:06:58 +00:00
Tim Hunt e6dedfe20b 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:57:17 +00:00
Tim Hunt 2a040c2839 MDL-31065 qtype shortanswer: refactor the unit tests to use a proper helper.
Conflicts:

	question/behaviour/adaptive/simpletest/testwalkthrough.php
2012-01-20 17:55:48 +00:00
Tim Hunt 1ee150e8e1 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 14:28:18 +00:00
Jason Ilicic fa1990992c MDL-26260 Fix quiz right-click prevention loophole. 2012-01-20 14:27:55 +00:00
Andrew Davis cfc8537034 MDL-30828 mod_feedback: fixed sorting when viewing responses 2012-01-20 15:57:09 +07:00
Marina Glancy 69c9195ab7 MDL-28352: Fixed bug in html_writer::select_time causing not autoselecting month 2012-01-20 16:29:01 +08:00
Sam Hemelryk 9d2e41a6d7 MDL-31197 navigation: Fixed issue withing require_login for courses that are hidden or unavailable 2012-01-20 12:52:07 +08:00
Sam Hemelryk 5ab5e79a97 MDL-31224 block_navigation: Fixed display of icons for node with an action_link action 2012-01-20 11:19:13 +08:00
David Penner c3b0e64d81 MDL-31160 block_navigation: Fixed incorrect thrid arg to substr. 2012-01-20 11:14:04 +08:00
AMOS bot 208f49e230 Automatically generated installer lang files 2012-01-20 00:31:28 +00:00
Davo Smith b56d54ca04 MDL-31113 filemanager element - refresh file list from server on load 2012-01-19 19:49:38 +00:00
sam marshall c59e5f07c3 MDL-31122 Navigation: Do not show week in navigation if it contains only labels 2012-01-19 14:47:38 +00:00
Eloy Lafuente (stronk7) 1aff7bbb74 weekly release 2.1.4+ 2012-01-19 13:32:47 +01:00
Eloy Lafuente (stronk7) b5ebcf648b Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-01-19 13:29:09 +01:00
Andrew Robert Nicols c1e6056a44 MDL-31242 Prevent redefinition of MOODLE_INTERNAL when loading multiple YUI modules from Moodle 2012-01-18 15:40:51 +01:00
Eloy Lafuente (stronk7) 4e7397ddc7 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:12:14 +01:00
AMOS bot aa4e64dbdf Automatically generated installer lang files 2012-01-18 00:31:40 +00:00
Petr Skoda 9159aeb465 MDL-31006 some more PHP54 notices
PHP54 compatibility - PhpStorm IDE is the best tool for this kind of work!!
2012-01-18 01:16:54 +01:00
Petr Skoda bda9b6034b MDL-31006 fix various notices in PHP54
PHP54 compatibility

Conflicts:

	lib/filterlib.php
	mod/feedback/lib.php
	report/participation/index.php
2012-01-18 01:11:46 +01:00
Eloy Lafuente (stronk7) 58bdb2e6da Merge branch 'w03_MDL-31213_m21_attributesmess' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-17 12:37:44 +01:00
Petr Skoda b5146d6bab MDL-31213 fix incorrect modifications of quickforms attributes 2012-01-17 11:21:38 +01:00
Eloy Lafuente (stronk7) 35dc672ead Merge branch 'MDL-31080_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-17 02:02:21 +01:00
Eloy Lafuente (stronk7) 6acec6c457 Merge branch 'w03_MDL-31171_m21_blogattachment' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-17 01:32:35 +01:00
AMOS bot f25f56b370 Automatically generated installer lang files 2012-01-17 00:31:17 +00:00
Petr Skoda 42add67bec MDL-31170 fix automatic blog blocks hiding/unhiding after blog level change 2012-01-17 01:24:54 +01:00
Sam Hemelryk d471e3f59d Merge branch 'MDL-31095_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-16 17:00:00 +08:00
Sam Hemelryk 2d33f4e81c Merge branch 'MDL-31102_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-16 16:26:32 +08:00
Sam Hemelryk b24713d1ec Merge remote-tracking branch 'skodak/w03_MDL-27165_m21_confirmed' into MOODLE_21_STABLE 2012-01-16 16:16:54 +08:00
Aparup Banerjee df2842cc6b Merge branch 'MDL-31143_21' of https://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-16 15:31:36 +08:00
Sam Hemelryk 94a763cf92 Merge remote-tracking branch 'skodak/w03_MDL-29102_m21_autogrouping' into MOODLE_21_STABLE 2012-01-16 15:11:39 +08:00
Sam Hemelryk c3027ddcd7 Merge remote-tracking branch 'skodak/w03_MDL-30891_m21_repository' into MOODLE_21_STABLE 2012-01-16 15:01:56 +08:00
Aparup Banerjee 7741d150c9 Merge branch 'w03_MDL-30003_m21_userstats' of https://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-16 14:58:49 +08:00
Sam Hemelryk e333be5d5d Merge branch 'MDL-31130_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-16 11:46:10 +08:00
Andrew Robert Nicols 6b76395546 MDL-31018 Improve consistency of horizontal alignment across grade reports 2012-01-16 11:16:00 +08:00
Sam Hemelryk dde7ab2d6e Merge branch 'MDL-31040-MOODLE_21_STABLE-3' of git://git.luns.net.uk/moodle into MOODLE_21_STABLE 2012-01-16 10:52:13 +08:00
Eloy Lafuente (stronk7) 44335d9ea9 Merge branch 'w03_MDL-31165_m21_innodbconv' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-16 02:07:22 +01:00
Charles Fulton 1ad5b57173 MDL-25883 correct element name for wiki comments editor 2012-01-15 10:32:47 -08:00
Petr Skoda 4cb906541b MDL-29102 fix notice when auto-creating groups in existing grouping 2012-01-15 19:27:37 +01:00
Petr Skoda 41238d891c MDL-31171 fix blog attachment serving in BLOG_USER_LEVEL 2012-01-15 19:12:50 +01:00
Petr Skoda 106357825e MDL-30003 fix earliest stat date fetching 2012-01-15 16:27:59 +01:00
Petr Skoda 12c5ea8f69 MDL-31165 fix InnoDB conversion query to use ENGINE parameter instead of legacy TYPE 2012-01-15 10:32:55 +01:00
AMOS bot efa2c057be Automatically generated installer lang files 2012-01-15 00:31:16 +00:00
Petr Skoda d5b4087962 MDL-27165 fix broken confirmed user filtering 2012-01-14 22:15:23 +01:00
Petr Skoda 5f4ed5d18a MDL-30891 fix invalid hardcoded capability check when disable legacy files repo 2012-01-14 21:58:54 +01:00
Tim Hunt 589f57835f 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-13 11:50:20 +00:00
Tim Hunt d4b150dd13 MDL-31095 quiz: fix bug in quiz::has_questions. 2012-01-13 11:49:48 +00:00
Tim Hunt 9d2921b930 MDL-31143 quiz reports: average grade of null causes php error. 2012-01-12 16:46:50 +00:00
Andrew Robert Nicols 37b9827f34 MDL-31040 Correct LTR language issue and inconsistency in display 2012-01-12 14:00:29 +00:00
Jonathon Fowler ee2e29d19e MDL-31130 question bank: toggling show all / 20 per page broken. 2012-01-12 12:47:02 +00:00
Tim Hunt 9349aa1790 MDL-31102 question preview: fix HTML validation errors. 2012-01-12 11:20:42 +00:00
Tim Hunt 1ed536f74d MDL-31100 unit tests: don't mangle UTF-8 in failure messages. 2012-01-12 11:20:23 +00:00
Tim Hunt ce7595e6df MDL-31080 quiz editing, must be able to see and delete missing questions 2012-01-12 11:19:59 +00:00
Eloy Lafuente (stronk7) c1dc3a5354 weekly release 2.1.4+ 2012-01-12 11:32:13 +01:00
Eloy Lafuente (stronk7) bbf3aaf0c1 Merge branch 'install_21_STABLE' of git://github.com/amosbot/moodle into MOODLE_21_STABLE 2012-01-12 11:26:57 +01:00
Tim Hunt 95371a3bcc MDL-26469 upgrade: cope with modules that do not set $module->cron. 2012-01-11 18:43:56 +01:00
Tim Hunt e40a76f5ac MDL-26469 upgrade: module cron setting not updated. 2012-01-11 14:10:32 +00:00
AMOS bot c0a1a9ddcb Automatically generated installer lang files 2012-01-11 00:31:28 +00:00
Eloy Lafuente (stronk7) a33fc27467 Merge branch 'MDL-31101_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-10 23:35:26 +01:00
Tim Hunt 675d996885 MDL-31101 format_string: Don't mangle < and > in strings like x < 1. 2012-01-10 14:54:55 +00:00
Rajesh Taneja 91dac2a2c9 Applying: MDL-30452 Repositories: Changed default capability on repos - Thanks Michael 2012-01-10 11:15:33 +01:00
Sam Hemelryk c44874f201 Merge branch 'MDL-24394_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE 2012-01-10 14:30:14 +13:00
Sam Hemelryk 22e35c45be MDL-31000 Added comment about the importance of repository array keys 2012-01-10 12:27:03 +13:00
Sam Hemelryk 978a7da6fd Revert "MDL-31000 Respect sortorder of repositories when displaying the filepicker"
This reverts commit d8111951ab.
2012-01-10 12:25:47 +13:00
Tim Hunt 71693bde86 MDL-24394 qtype_match: should be able to use multilang for the choices. 2012-01-09 18:06:34 +00:00
Aparup Banerjee 4d47200557 Merge branch 'w02_MDL-30718_m21_usertimedb' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-09 12:21:40 +08:00
Aleksey Avdeev b0bc0bed50 MDL-29046 use of install/distrolib.php in the CLI installer
Signed-off-by: Aleksey Avdeev <solo@altlinux.ru>
2012-01-09 02:54:10 +01:00
Eloy Lafuente (stronk7) 9334f3d084 Merge branch 'MDL-30031-21' of git://github.com/bostelm/moodle into MOODLE_21_STABLE 2012-01-09 02:14:45 +01:00
Sam Hemelryk b48d180e39 Merge branch 'w02_MDL-30717_m21_usercreated' of git://github.com/skodak/moodle into MOODLE_21_STABLE 2012-01-09 14:02:48 +13:00
Eloy Lafuente (stronk7) 86e84df668 Merge branch 'MDL-30966-print-object_21_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_21_STABLE 2012-01-09 00:33:47 +01:00
Andrew Robert Nicols d8111951ab MDL-31000 Respect sortorder of repositories when displaying the filepicker 2012-01-09 11:53:58 +13:00
Petr Skoda b4e0cd3582 MDL-30717 update user->timemodified in update_user_record() 2012-01-08 15:04:26 +01:00
Petr Skoda d877eba847 MDL-30717 add missing time created info in create_user_record()
Credit goes to Luis Gustavo Mueller de Alcantara.
2012-01-08 15:04:25 +01:00
Petr Skoda 23b7a0a575 MDL-30718 add missing timecraeted and timeupdated, fix user undeleting 2012-01-08 14:59:41 +01:00
AMOS bot 856623590c Merge branch 'MOODLE_21_STABLE' into install_21_STABLE 2012-01-08 00:31:26 +00:00
AMOS bot 9ee1bb8eb2 Automatically generated installer lang files 2012-01-07 00:31:24 +00:00
David Mudrak f711613aa5 MDL-30966 print_object() output made CLI-friendly 2012-01-06 22:50:21 +01:00
Henning Bostelmann 6a9b5984bd MDL-30031 Adaptive question behaviour: ignore invalid answers without penalty 2011-12-28 17:47:22 +00:00
1451 changed files with 46364 additions and 35543 deletions
+1
View File
@@ -126,6 +126,7 @@
// Remove event handlers and dequeue pending events
events_uninstall('block/'.$block->name);
$a = new stdClass();
$a->block = $strblockname;
$a->directory = $CFG->dirroot.'/blocks/'.$block->name;
notice(get_string('blockdeletefiles', '', $a), 'blocks.php');
+1 -1
View File
@@ -99,7 +99,7 @@ function bloglevelupgrade_entries($blogentries, $forum, $cm, $groupid=-1) {
$discussion->groupid = $groupid;
$message = '';
$discussionid = forum_add_discussion($discussion, null, $message);
$discussionid = forum_add_discussion($discussion, null, $message, $blogentry->userid);
// Copy file attachment records
$fs = get_file_storage();
+19 -6
View File
@@ -79,6 +79,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)) {
@@ -96,7 +106,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.
@@ -130,7 +140,7 @@ $CFG->dirroot = dirname(dirname(dirname(__FILE__)));
$CFG->libdir = "$CFG->dirroot/lib";
$CFG->wwwroot = "http://localhost";
$CFG->httpswwwroot = $CFG->wwwroot;
$CFG->dataroot = str_replace('\\', '/', dirname(dirname(dirname(dirname(__FILE__)))).'/moodledata');
$CFG->dataroot = empty($distro->dataroot) ? str_replace('\\', '/', dirname(dirname(dirname(dirname(__FILE__)))).'/moodledata'): $distro->dataroot; // initialised later after including libs or by distro
$CFG->docroot = 'http://docs.moodle.org';
$CFG->running_installer = true;
$CFG->early_install_lang = true;
@@ -178,14 +188,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' => $CFG->dataroot,
'dbtype' => $defaultdb,
'dbhost' => 'localhost',
'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_',
@@ -516,6 +526,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 !== '');
+1 -1
View File
@@ -76,7 +76,7 @@ if (!empty($options['engine'])) {
}
echo str_pad($table->name, 40). " - ";
$DB->change_database_structure("ALTER TABLE {$table->name} TYPE = $engine");
$DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
echo "DONE\n";
$converted++;
}
+4
View File
@@ -93,6 +93,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
if (!check_moodle_environment(normalize_version($release), $environment_results, false, ENV_SELECT_RELEASE)) {
$errors = environment_get_errors($environment_results);
+1 -1
View File
@@ -13,7 +13,7 @@ TODO:
(user would need file access to dataroot which might prevent various "accidents")
- implement "Export/import running" notification in lib/setup.php (similar to new upgrade flag in config table)
- gzip compression when storing xml file - the xml is very verbose and full of repeated tags (zip is not suitable here at all)
this could help us keep the files bellow 2G (expected ratio is > 10:1)
this could help us keep the files below 2G (expected ratio is > 10:1)
*/
+3 -1
View File
@@ -31,6 +31,7 @@ $enrol = required_param('enrol', PARAM_SAFEDIR);
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/enrol.php');
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
@@ -107,6 +108,7 @@ switch ($action) {
} else { // Delete everything!!
uninstall_plugin('enrol', $enrol);
$a = new stdClass();
$a->plugin = $strplugin;
$a->directory = "$CFG->dirroot/enrol/$enrol";
echo $OUTPUT->notification(get_string('uninstalldeletefiles', 'enrol', $a), 'notifysuccess');
@@ -117,4 +119,4 @@ switch ($action) {
}
redirect($return);
redirect($return);
+5 -20
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" />
@@ -563,11 +551,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.1.33" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
@@ -651,6 +635,7 @@
</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">
+2 -2
View File
@@ -345,8 +345,8 @@ 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);
// 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
$adminuser = get_complete_user_data('id', reset(explode(',', $CFG->siteadmins)));
if ($adminuser->password === 'adminsetuppending') {
// prevent installation hijacking
+1 -1
View File
@@ -26,7 +26,7 @@
$DB->set_debug(true);
foreach ($tables as $table) {
$fulltable = $DB->get_prefix().$table;
$DB->change_database_structure("ALTER TABLE $fulltable TYPE=INNODB");
$DB->change_database_structure("ALTER TABLE $fulltable ENGINE=INNODB");
}
$DB->set_debug(false);
}
+6 -3
View File
@@ -50,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'];
@@ -98,6 +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);
$mform->addRule('public_key', get_string('required'), 'required');
// finished with form controls, now the static informational stuff
if ($mnet_peer && !empty($mnet_peer->bootstrapped)) {
@@ -153,14 +154,16 @@ class mnet_review_host_form extends moodleform {
$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 />';
+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
@@ -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
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');
+1
View File
@@ -194,6 +194,7 @@ if (($delete = optional_param('delete', '', PARAM_SAFEDIR)) && 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');
+1
View File
@@ -173,6 +173,7 @@ if (($delete = optional_param('delete', '', PARAM_SAFEDIR)) && 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');
@@ -26,36 +26,36 @@
defined('MOODLE_INTERNAL') || die();
$string['checkin'] = 'Check in strings into disk';
$string['checkout'] = 'Check out strings into the translator';
$string['checkoutdone'] = 'Strings checked out successfully into the translator';
$string['checkoutinprogress'] = 'Checking out strings into the translator';
$string['confirmcheckin'] = 'You are about to check in modified strings into your local language pack. This will export the customized strings from the translator into the data directory and Moodle will start using the modified strings. Press \'Continue\' button to proceed check in.';
$string['checkin'] = 'Save strings to language pack';
$string['checkout'] = 'Open language pack for editing';
$string['checkoutdone'] = 'Language pack loaded';
$string['checkoutinprogress'] = 'Loading language pack';
$string['confirmcheckin'] = 'You are about to save modifications to your local language pack. This will export the customised strings from the translator into you Moodle data directory and Moodle will start using the modified strings. Press \'Continue\' to proceed with saving.';
$string['customlang:edit'] = 'Edit local translation';
$string['customlang:view'] = 'View local translation';
$string['filter'] = 'Filter strings';
$string['filtercomponent'] = 'Show strings of these components';
$string['filtercustomized'] = 'Customized only';
$string['filtercustomized'] = 'Customised only';
$string['filtermodified'] = 'Modified only';
$string['filteronlyhelps'] = 'Help only';
$string['filtershowstrings'] = 'Show strings';
$string['filterstringid'] = 'String identifier';
$string['filtersubstring'] = 'Only strings containing';
$string['headingcomponent'] = 'Component';
$string['headinglocal'] = 'Local customization';
$string['headinglocal'] = 'Local customisation';
$string['headingstandard'] = 'Standard text';
$string['headingstringid'] = 'String';
$string['markinguptodate'] = 'Marking the customization as up-to-date';
$string['markinguptodate_help'] = 'The customized translation may get outdated if either the English original or the master translation has modified since the string was customized on your site. Review the customized translation. If you find it up-to-date, click the checkbox. Edit it otherwise.';
$string['markinguptodate'] = 'Marking the customisation as up-to-date';
$string['markinguptodate_help'] = 'The customised translation may get outdated if either the English original or the master translation has modified since the string was customised on your site. Review the customised translation. If you find it up-to-date, click the checkbox. Edit it otherwise.';
$string['markuptodate'] = 'mark as up-to-date';
$string['modifiedno'] = 'There are no modified strings to check in.';
$string['modifiednum'] = 'There are {$a} modified strings. You must check in them into disk to store them permanently.';
$string['modifiedno'] = 'There are no modified strings to save.';
$string['modifiednum'] = 'There are {$a} modified strings. Do you wish to save these changes to your local language pack?';
$string['nostringsfound'] = 'No strings found, please modify the filter settings';
$string['placeholder'] = 'Placeholders';
$string['placeholder_help'] = 'Placeholders are special statements like `{$a}` or `{$a->something}` within the string. They are replaced with a value when the string is actually printed.
It is important to copy them exactly as they are in the original string. Do not translate them nor change their left-to-right orientation.';
$string['placeholderwarning'] = 'string contains a placeholder';
$string['pluginname'] = 'Language customization';
$string['savecheckin'] = 'Save and check in strings into files';
$string['savecontinue'] = 'Save and continue editing';
$string['pluginname'] = 'Language customisation';
$string['savecheckin'] = 'Save changes to the language pack';
$string['savecontinue'] = 'Apply changes and continue editing';
+5
View File
@@ -273,4 +273,9 @@ class ExHtmlReporter extends HtmlReporter {
function get_string($identifier, $a = NULL) {
return get_string($identifier, 'simpletest', $a);
}
function _htmlEntities($message) {
// Override subclass message that breaks UTF8.
return s($message);
}
}
+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()) {
+11 -5
View File
@@ -54,6 +54,17 @@ 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,
@@ -119,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');
+27 -5
View File
@@ -92,12 +92,32 @@ if ($hassiteconfig
// Add a category for backups
$ADMIN->add('courses', new admin_category('backups', get_string('backups','admin')));
// Create a page for general backup defaults
// Create a page for general backups configuration and defaults.
$temp = new admin_settingpage('backupgeneralsettings', get_string('generalbackdefaults', 'backup'), 'moodle/backup:backupcourse');
// General configuration section.
$temp->add(new admin_setting_configselect('backup/loglifetime', get_string('loglifetime', 'backup'), get_string('configloglifetime', 'backup'), 30, array(
1 => get_string('numdays', '', 1),
2 => get_string('numdays', '', 2),
3 => get_string('numdays', '', 3),
5 => get_string('numdays', '', 5),
7 => get_string('numdays', '', 7),
10 => get_string('numdays', '', 10),
14 => get_string('numdays', '', 14),
20 => get_string('numdays', '', 20),
30 => get_string('numdays', '', 30),
60 => get_string('numdays', '', 60),
90 => get_string('numdays', '', 90),
120 => get_string('numdays', '', 120),
180 => get_string('numdays', '', 180),
365 => get_string('numdays', '', 365)
)));
// General defaults section.
$temp->add(new admin_setting_heading('generalsettings', get_string('generalsettings', 'backup'), ''));
$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)));
@@ -107,8 +127,10 @@ if ($hassiteconfig
$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)));
$ADMIN->add('backups', $temp);
/// "backups" settingpage
// Create a page for automated backups configuration and defaults.
$temp = new admin_settingpage('automated', get_string('automatedsetup','backup'), 'moodle/backup:backupcourse');
// Automated configuration section.
$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'),
@@ -139,12 +161,12 @@ if ($hassiteconfig
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_configcheckbox('backup/backup_shortname', get_string('backup_shortname', 'admin'), get_string('backup_shortnamehelp', 'admin'), 0));
// Automated defaults section.
$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));
+1 -1
View File
@@ -77,7 +77,7 @@ if (!during_initial_install()) { //do not use during installation
$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('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', get_string('frontpagerestore', 'admin'), $CFG->wwwroot.'/backup/restorefile.php?contextid='.$frontpagecontext->id, 'moodle/restore:restorecourse', false, $frontpagecontext));
$questioncapabilities = array(
'moodle/question:add',
+3 -1
View File
@@ -9,6 +9,9 @@
$zone = clean_param($zone, PARAM_PATH);
}
$PAGE->set_url('/admin/timezone.php');
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
@@ -18,7 +21,6 @@
$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);
+1 -1
View File
@@ -89,7 +89,7 @@
/// That's it!
if ($importdone) {
$a = null;
$a = new stdClass();
$a->count = count($timezones);
$a->source = $importdone;
echo $OUTPUT->heading(get_string('importtimezonescount', 'admin', $a), 3);
+1 -1
View File
@@ -231,7 +231,7 @@ if ($formdata = $mform2->is_cancelled()) {
}
}
if (!isset($user->username)) {
// prevent warnings bellow
// prevent warnings below
$user->username = '';
}
+1 -1
View File
@@ -149,7 +149,7 @@
list($extrasql, $params) = $ufiltering->get_sql_filter();
$users = get_users_listing($sort, $dir, $page*$perpage, $perpage, '', '', '', $extrasql, $params);
$usercount = get_users(false);
$usersearchcount = get_users(false, '', true, null, "", '', '', '', '', '*', $extrasql, $params);
$usersearchcount = get_users(false, '', false, null, "", '', '', '', '', '*', $extrasql, $params);
if ($extrasql !== '') {
echo $OUTPUT->heading("$usersearchcount / $usercount ".get_string('users'));
+3 -2
View File
@@ -63,6 +63,7 @@ class external_service_form extends moodleform {
$mform->addElement('text', 'name', get_string('name'));
$mform->addRule('name', get_string('required'), 'required', null, 'client');
$mform->setType('name', PARAM_TEXT);
$mform->addElement('advcheckbox', 'enabled', get_string('enabled', 'webservice'));
$mform->addElement('advcheckbox', 'restrictedusers',
get_string('restrictedusers', 'webservice'));
@@ -107,7 +108,7 @@ class external_service_form extends moodleform {
$mform->setType('id', PARAM_INT);
if (!empty($service->id)) {
$buttonlabel = get_string('editaservice', 'webservice');
$buttonlabel = get_string('savechanges');
} else {
$buttonlabel = get_string('addaservice', 'webservice');
}
@@ -155,7 +156,7 @@ class external_service_functions_form extends moodleform {
$functions[$functionid] = $function->name . ':' . $function->description;
}
$mform->addElement('searchableselector', 'fid', get_string('name'),
$mform->addElement('searchableselector', 'fids', get_string('name'),
$functions, array('multiple'));
$mform->addElement('hidden', 'id');
+2 -2
View File
@@ -36,7 +36,7 @@ $confirm = optional_param('confirm', 0, PARAM_BOOL);
admin_externalpage_setup('externalservicefunctions');
//define nav bar
$PAGE->set_url('/' . $CFG->admin . '/websevice/service_functions.php', array('id' => $serviceid));
$PAGE->set_url('/' . $CFG->admin . '/webservice/service_functions.php', array('id' => $serviceid));
$node = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING);
if ($node) {
$node->make_active();
@@ -67,7 +67,7 @@ switch ($action) {
//add the function to the service then redirect to function list page
if ($data = $mform->get_data()) {
ignore_user_abort(true); // no interruption here!
foreach ($data->fid as $fid) {
foreach ($data->fids as $fid) {
$function = $webservicemanager->get_external_function_by_id(
$fid, MUST_EXIST);
// make sure the function is not there yet
+1 -1
View File
@@ -98,7 +98,7 @@ $usersmissingcaps = $webservicemanager->get_missing_capabilities_by_users($allow
//add the missing capabilities to the allowed users object to be displayed by renderer
foreach ($allowedusers as &$alloweduser) {
if (!is_siteadmin($alloweduser->id) and key_exists($alloweduser->id, $usersmissingcaps)) {
$alloweduser->missingcapabilities = implode(',', $usersmissingcaps[$alloweduser->id]);
$alloweduser->missingcapabilities = implode(', ', $usersmissingcaps[$alloweduser->id]);
}
}
@@ -66,6 +66,7 @@ class create_xml_file extends XMLDBAction {
/// Get the dir containing the file
$dirpath = required_param('dir', PARAM_PATH);
$plugintype = $this->get_plugin_type($dirpath);
$dirpath = $CFG->dirroot . $dirpath;
$file = $dirpath . '/install.xml';
@@ -75,6 +76,9 @@ class create_xml_file extends XMLDBAction {
$xmlcomment = 'XMLDB file for Moodle ' . dirname($xmlpath);
$xmltable = strtolower(basename(dirname($xmlpath)));
if ($plugintype && $plugintype != 'mod') {
$xmltable = $plugintype.'_'.$xmltable;
}
/// Initial contents
$c = '<?xml version="1.0" encoding="UTF-8" ?>' . "\n";
@@ -104,5 +108,23 @@ class create_xml_file extends XMLDBAction {
/// Return ok if arrived here
return $result;
}
/**
* From a given path, work out what type of plugin
* this belongs to
* @param string $dirpath Path to the db file for this plugin
* @return string the type of the plugin or null if not found
*/
function get_plugin_type($dirpath) {
global $CFG;
$dirpath = $CFG->dirroot.$dirpath;
$plugintypes = get_plugin_types();
foreach ($plugintypes as $plugintype => $pluginbasedir) {
if (substr($dirpath, 0, strlen($pluginbasedir)) == $pluginbasedir) {
return $plugintype;
}
}
return null;
}
}
+2 -2
View File
@@ -1,11 +1,11 @@
<div class="loginbox clearfix">
<div class="loginpanel">
<div>
<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=CAS';?>"><?php print_string('accesCAS', 'auth_cas');?></a>
<a href="<?php echo get_login_url() . '?authCAS=CAS';?>"><?php print_string('accesCAS', 'auth_cas');?></a>
</div>
<br/>
<div>
<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=NOCAS';?>"><?php print_string('accesNOCAS', 'auth_cas');?></a>
<a href="<?php echo get_login_url() . '?authCAS=NOCAS';?>"><?php print_string('accesNOCAS', 'auth_cas');?></a>
</div>
</div>
</div>
+8 -8
View File
@@ -30,8 +30,8 @@ $string['auth_cas_baseuri'] = 'URI of the server (nothing if no baseUri)<br />Fo
$string['auth_cas_baseuri_key'] = 'Base URI';
$string['auth_cas_broken_password'] = 'You cannot proceed without changing your password, however there is no available page for changing it. Please contact your Moodle Administrator.';
$string['auth_cas_cantconnect'] = 'LDAP part of CAS-module cannot connect to server: {$a}';
$string['auth_cas_casversion'] = 'Version';
$string['auth_cas_certificate_check'] = 'Turn this to \'yes\' if you want to validate the server certificate';
$string['auth_cas_casversion'] = 'CAS protocol version';
$string['auth_cas_certificate_check'] = 'Select \'yes\' if you want to validate the server certificate';
$string['auth_cas_certificate_path_empty'] = 'If you turn on Server validation, you need to specify a certificate path';
$string['auth_cas_certificate_check_key'] = 'Server validation';
$string['auth_cas_certificate_path'] = 'Path of the CA chain file (PEM Format) to validate the server certificate';
@@ -44,22 +44,22 @@ $string['auth_cas_hostname'] = 'Hostname of the CAS server <br />eg: host.domain
$string['auth_cas_hostname_key'] = 'Hostname';
$string['auth_cas_changepasswordurl'] = 'Password-change URL';
$string['auth_cas_invalidcaslogin'] = 'Sorry, your login has failed - you could not be authorised';
$string['auth_cas_language'] = 'Selected language';
$string['auth_cas_language'] = 'Select language for authentication pages';
$string['auth_cas_language_key'] = 'Language';
$string['auth_cas_logincas'] = 'Secure connection access';
$string['auth_cas_logoutcas'] = 'Turn this to \'yes\' if you want to logout from CAS when you disconnect from Moodle';
$string['auth_cas_logoutcas_key'] = 'Logout CAS';
$string['auth_cas_multiauth'] = 'Turn this to \'yes\' if you want to have multi-authentication (CAS + other authentication)';
$string['auth_cas_logoutcas'] = 'Select \'yes\' if you want to logout from CAS when you disconnect from Moodle';
$string['auth_cas_logoutcas_key'] = 'CAS logout option';
$string['auth_cas_multiauth'] = 'Select \'yes\' if you want to have multi-authentication (CAS + other authentication)';
$string['auth_cas_multiauth_key'] = 'Multi-authentication';
$string['auth_casnotinstalled'] = 'Cannot use CAS authentication. The PHP LDAP module is not installed.';
$string['auth_cas_port'] = 'Port of the CAS server';
$string['auth_cas_port_key'] = 'Port';
$string['auth_cas_proxycas'] = 'Turn this to \'yes\' if you use CASin proxy-mode';
$string['auth_cas_proxycas'] = 'Select \'yes\' if you use CAS in proxy-mode';
$string['auth_cas_proxycas_key'] = 'Proxy mode';
$string['auth_cas_server_settings'] = 'CAS server configuration';
$string['auth_cas_text'] = 'Secure connection';
$string['auth_cas_use_cas'] = 'Use CAS';
$string['auth_cas_version'] = 'Version of CAS';
$string['auth_cas_version'] = 'CAS protocol version to use';
$string['CASform'] = 'Authentication choice';
$string['noldapserver'] = 'No LDAP server configured for CAS! Syncing disabled.';
$string['pluginname'] = 'CAS server (SSO)';
+13 -5
View File
@@ -256,6 +256,7 @@ class auth_plugin_db extends auth_plugin_base {
$updateuser = new stdClass();
$updateuser->id = $user->id;
$updateuser->auth = 'nologin';
$updateuser->timemodified = time();
$DB->update_record('user', $updateuser);
echo "\t"; print_string('auth_dbsuspenduser', 'auth_db', array('name'=>$user->username, 'id'=>$user->id)); echo "\n";
}
@@ -343,7 +344,6 @@ class auth_plugin_db extends auth_plugin_base {
// prep a few params
$user->username = $username;
$user->modified = time();
$user->confirmed = 1;
$user->auth = $this->authtype;
$user->mnethostid = $CFG->mnet_localhost_id;
@@ -352,12 +352,15 @@ class auth_plugin_db extends auth_plugin_base {
}
// maybe the user has been deleted before
if ($old_user = $DB->get_record('user', array('username'=>$user->username, 'deleted'=>1, 'mnethostid'=>$user->mnethostid))) {
$user->id = $old_user->id;
$DB->set_field('user', 'deleted', 0, array('username'=>$user->username));
echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array('name'=>$user->username, 'id'=>$user->id)); echo "\n";
if ($old_user = $DB->get_record('user', array('username'=>$user->username, 'deleted'=>1, 'mnethostid'=>$user->mnethostid, 'auth'=>$user->auth))) {
// note: this undeleting is deprecated and will be eliminated soon
$DB->set_field('user', 'deleted', 0, array('id'=>$old_user->id));
$DB->set_field('user', 'timemodified', time(), array('id'=>$old_user->id));
echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array('name'=>$old_user->username, 'id'=>$old_user->id)); echo "\n";
} else {
$user->timecreated = time();
$user->timemodified = $user->timecreated;
$id = $DB->insert_record ('user',$user); // it is truly a new user
echo "\t"; print_string('auth_dbinsertuser','auth_db',array('name'=>$user->username, 'id'=>$id)); echo "\n";
// if relevant, tag for password generation
@@ -463,6 +466,7 @@ class auth_plugin_db extends auth_plugin_base {
// Ensure userid is not overwritten
$userid = $user->id;
$updated = false;
if ($newinfo = $this->get_userinfo($username)) {
$newinfo = truncate_userinfo($newinfo);
@@ -481,10 +485,14 @@ class auth_plugin_db extends auth_plugin_base {
if (!empty($this->config->{'field_updatelocal_' . $key})) {
if (isset($user->{$key}) and $user->{$key} != $value) { // only update if it's changed
$DB->set_field('user', $key, $value, array('id'=>$userid));
$updated = true;
}
}
}
}
if ($updated) {
$DB->set_field('user', 'timemodified', time(), array('id'=>$userid));
}
return $DB->get_record('user', array('id'=>$userid, 'deleted'=>0));
}
+1 -1
View File
@@ -57,7 +57,7 @@ $string['auth_dbsybasequoting'] = 'Use sybase quotes';
$string['auth_dbsybasequotinghelp'] = 'Sybase style single quote escaping - needed for Oracle, MS SQL and some other databases. Do not use for MySQL!';
$string['auth_dbtable'] = 'Name of the table in the database';
$string['auth_dbtable_key'] = 'Table';
$string['auth_dbtype'] = 'The database type (See the <a href="../lib/adodb/readme.htm#drivers">ADOdb documentation</a> for details)';
$string['auth_dbtype'] = 'The database type (See the <a href="http://phplens.com/adodb/supported.databases.html" target="_blank">ADOdb documentation</a> for details)';
$string['auth_dbtype_key'] = 'Database';
$string['auth_dbupdatinguser'] = 'Updating user {$a->name} id {$a->id}';
$string['auth_dbuser'] = 'Username with read access to the database';
+3 -2
View File
@@ -33,8 +33,9 @@ $PAGE->set_title("$site->fullname: $loginsite");
$PAGE->set_heading($site->fullname);
echo $OUTPUT->header();
// $PAGE->https_required() up above takes care of what $CFG->httpswwwroot should be.
$msg = '<p>'.get_string('ntlmsso_attempting', 'auth_ldap').'</p>'
. '<img width="1", height="1" '
. ' src="' . $CFG->wwwroot . '/auth/ldap/ntlmsso_magic.php?sesskey='
. ' src="' . $CFG->httpswwwroot . '/auth/ldap/ntlmsso_magic.php?sesskey='
. $sesskey . '" />';
redirect($CFG->wwwroot . '/auth/ldap/ntlmsso_finish.php', $msg, 3);
redirect($CFG->httpswwwroot . '/auth/ldap/ntlmsso_finish.php', $msg, 3);
+2 -1
View File
@@ -29,7 +29,8 @@ $file = $CFG->dirroot.'/pix/spacer.gif';
if ($authplugin->ntlmsso_magic($sesskey) && file_exists($file)) {
if (!empty($authplugin->config->ntlmsso_ie_fastpath)) {
if (check_browser_version('MSIE')) {
redirect($CFG->wwwroot.'/auth/ldap/ntlmsso_finish.php');
// $PAGE->https_required() up above takes care of what $CFG->httpswwwroot should be.
redirect($CFG->httpswwwroot.'/auth/ldap/ntlmsso_finish.php');
}
}
+4 -4
View File
@@ -44,17 +44,17 @@ $PAGE->https_required();
// Redirect to SessionInitiator with entityID as argument
if (isset($IdPs[$selectedIdP][1]) && !empty($IdPs[$selectedIdP][1])) {
// For Shibbolet 1.x Service Providers
header('Location: '.$IdPs[$selectedIdP][1].'?providerId='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
header('Location: '.$IdPs[$selectedIdP][1].'?providerId='. urlencode($selectedIdP) .'&target='. urlencode($CFG->httpswwwroot.'/auth/shibboleth/index.php'));
// For Shibbolet 2.x Service Providers
// header('Location: '.$IdPs[$selectedIdP][1].'?entityID='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
// header('Location: '.$IdPs[$selectedIdP][1].'?entityID='. urlencode($selectedIdP) .'&target='. urlencode($CFG->httpswwwroot.'/auth/shibboleth/index.php'));
} else {
// For Shibbolet 1.x Service Providers
header('Location: /Shibboleth.sso?providerId='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
header('Location: /Shibboleth.sso?providerId='. urlencode($selectedIdP) .'&target='. urlencode($CFG->httpswwwroot.'/auth/shibboleth/index.php'));
// For Shibboleth 2.x Service Providers
// header('Location: /Shibboleth.sso/DS?entityID='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
// header('Location: /Shibboleth.sso/DS?entityID='. urlencode($selectedIdP) .'&target='. urlencode($CFG->httpswwwroot.'/auth/shibboleth/index.php'));
}
} elseif (isset($_POST['idp']) && !isset($IdPs[$_POST['idp']])) {
$errormsg = get_string('auth_shibboleth_errormsg', 'auth_shibboleth');
+1 -1
View File
@@ -62,7 +62,7 @@ switch ($type) {
case backup::TYPE_1SECTION :
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
require_capability('moodle/backup:backupsection', $coursecontext);
if (!empty($section->name)) {
if ((string)$section->name !== '') {
$sectionname = format_string($section->name, true, array('context' => $coursecontext));
$heading = get_string('backupsection', 'backup', $sectionname);
$PAGE->navbar->add($sectionname);
+21 -8
View File
@@ -170,17 +170,22 @@ class backup_controller extends backup implements loggable {
}
public function set_status($status) {
$this->log('setting controller status to', backup::LOG_DEBUG, $status);
// TODO: Check it's a correct status
$this->status = $status;
// Ensure that, once set to backup::STATUS_AWAITING, controller is stored in DB
// Note: never save_controller() after STATUS_EXECUTING or the whole controller,
// Note: never save_controller() with the object info after STATUS_EXECUTING or the whole controller,
// containing all the steps will be sent to DB. 100% (monster) useless.
$this->log('setting controller status to', backup::LOG_DEBUG, $status);
// TODO: Check it's a correct status.
$this->status = $status;
// Ensure that, once set to backup::STATUS_AWAITING, controller is stored in DB.
if ($status == backup::STATUS_AWAITING) {
$this->save_controller();
$tbc = self::load_controller($this->backupid);
$this->logger = $tbc->logger; // wakeup loggers
$tbc->destroy(); // Clean temp controller structures
} else if ($status == backup::STATUS_FINISHED_OK) {
// If the operation has ended without error (backup::STATUS_FINISHED_OK)
// proceed by cleaning the object from database. MDL-29262.
$this->save_controller(false, true);
}
}
@@ -312,12 +317,20 @@ class backup_controller extends backup implements loggable {
backup_helper::log($message, $level, $a, $depth, $display, $this->logger);
}
public function save_controller() {
/**
* Save controller information
*
* @param bool $includeobj to decide if the object itself must be updated (true) or no (false)
* @param bool $cleanobj to decide if the object itself must be cleaned (true) or no (false)
*/
public function save_controller($includeobj = true, $cleanobj = false) {
// Going to save controller to persistent storage, calculate checksum for later checks and save it
// TODO: flag the controller as NA. Any operation on it should be forbidden util loaded back
$this->log('saving controller to db', backup::LOG_DEBUG);
$this->checksum = $this->calculate_checksum();
backup_controller_dbops::save_controller($this, $this->checksum);
if ($includeobj ) { // Only calculate checksum if we are going to include the object.
$this->checksum = $this->calculate_checksum();
}
backup_controller_dbops::save_controller($this, $this->checksum, $includeobj, $cleanobj);
}
public static function load_controller($backupid) {
+21 -8
View File
@@ -166,17 +166,22 @@ class restore_controller extends backup implements loggable {
}
public function set_status($status) {
$this->log('setting controller status to', backup::LOG_DEBUG, $status);
// TODO: Check it's a correct status
$this->status = $status;
// Ensure that, once set to backup::STATUS_AWAITING | STATUS_NEED_PRECHECK, controller is stored in DB
// Note: never save_controller() after STATUS_EXECUTING or the whole controller,
// Note: never save_controller() with the object info after STATUS_EXECUTING or the whole controller,
// containing all the steps will be sent to DB. 100% (monster) useless.
$this->log('setting controller status to', backup::LOG_DEBUG, $status);
// TODO: Check it's a correct status.
$this->status = $status;
// Ensure that, once set to backup::STATUS_AWAITING | STATUS_NEED_PRECHECK, controller is stored in DB.
if ($status == backup::STATUS_AWAITING || $status == backup::STATUS_NEED_PRECHECK) {
$this->save_controller();
$tbc = self::load_controller($this->restoreid);
$this->logger = $tbc->logger; // wakeup loggers
$tbc->destroy(); // Clean temp controller structures
} else if ($status == backup::STATUS_FINISHED_OK) {
// If the operation has ended without error (backup::STATUS_FINISHED_OK)
// proceed by cleaning the object from database. MDL-29262.
$this->save_controller(false, true);
}
}
@@ -363,12 +368,20 @@ class restore_controller extends backup implements loggable {
backup_helper::log($message, $level, $a, $depth, $display, $this->logger);
}
public function save_controller() {
/**
* Save controller information
*
* @param bool $includeobj to decide if the object itself must be updated (true) or no (false)
* @param bool $cleanobj to decide if the object itself must be cleaned (true) or no (false)
*/
public function save_controller($includeobj = true, $cleanobj = false) {
// Going to save controller to persistent storage, calculate checksum for later checks and save it
// TODO: flag the controller as NA. Any operation on it should be forbidden util loaded back
$this->log('saving controller to db', backup::LOG_DEBUG);
$this->checksum = $this->calculate_checksum();
restore_controller_dbops::save_controller($this, $this->checksum);
if ($includeobj ) { // Only calculate checksum if we are going to include the object.
$this->checksum = $this->calculate_checksum();
}
restore_controller_dbops::save_controller($this, $this->checksum, $includeobj, $cleanobj);
}
public static function load_controller($restoreid) {
@@ -161,7 +161,7 @@ class backup_controller_test extends UnitTestCase {
*/
class mock_backup_controller extends backup_controller {
public function save_controller() {
parent::save_controller();
public function save_controller($includeobj = true, $cleanobj = false) {
parent::save_controller($includeobj, $cleanobj);
}
}
+2 -1
View File
@@ -345,6 +345,8 @@ class moodle1_root_handler extends moodle1_xml_handler {
// {@see backup_general_helper::backup_is_samesite()}
if (isset($backupinfo['original_site_identifier_hash'])) {
$this->xmlwriter->full_tag('original_site_identifier_hash', $backupinfo['original_site_identifier_hash']);
} else {
$this->xmlwriter->full_tag('original_site_identifier_hash', null);
}
$this->xmlwriter->full_tag('original_course_id', $originalcourseinfo['original_course_id']);
$this->xmlwriter->full_tag('original_course_fullname', $originalcourseinfo['original_course_fullname']);
@@ -439,7 +441,6 @@ class moodle1_root_handler extends moodle1_xml_handler {
'users' => 0, // @todo how to detect this from moodle.xml?
'anonymize' => 0,
'role_assignments' => 0,
'user_files' => 0,
'activities' => 1,
'blocks' => 1,
'filters' => 0,
+8 -1
View File
@@ -640,7 +640,10 @@ class moodle1_converter extends base_converter {
return $files;
}
foreach ($matches[2] as $match) {
$files[] = str_replace(array('$@FILEPHP@$', '$@SLASH@$', '$@FORCEDOWNLOAD@$'), array('', '/', ''), $match);
$file = str_replace(array('$@FILEPHP@$', '$@SLASH@$', '$@FORCEDOWNLOAD@$'), array('', '/', ''), $match);
if ($file === clean_param($file, PARAM_PATH)) {
$files[] = rawurldecode($file);
}
}
return array_unique($files);
@@ -1205,6 +1208,10 @@ class moodle1_file_manager implements loggable {
$sourcefullpath = $this->basepath.'/'.$sourcepath;
if ($sourcefullpath !== clean_param($sourcefullpath, PARAM_PATH)) {
throw new moodle1_convert_exception('file_invalid_path', $sourcefullpath);
}
if (!is_readable($sourcefullpath)) {
throw new moodle1_convert_exception('file_not_readable', $sourcefullpath);
}
@@ -260,6 +260,15 @@ class moodle1_converter_test extends UnitTestCase {
$fileids = $fileman->get_fileids();
$this->assertIsA($fileids, 'array');
$this->assertEqual(0, count($fileids));
// try to migrate an invalid file
$fileman->itemid = 1;
$thrown = false;
try {
$fileman->migrate_file('/../../../../../../../../../../../../../../etc/passwd');
} catch (moodle1_convert_exception $e) {
$thrown = true;
}
$this->assertTrue($thrown);
// migrate a single file
$fileman->itemid = 4;
$fileman->migrate_file('moddata/unittest/4/icon.gif');
@@ -421,6 +430,8 @@ class moodle1_converter_test extends UnitTestCase {
$text = 'This is a text containing links to file.php
as it is parsed from the backup file. <br /><br /><img border="0" width="110" vspace="0" hspace="0" height="92" title="News" alt="News" src="$@FILEPHP@$$@SLASH@$pics$@SLASH@$news.gif" /><a href="$@FILEPHP@$$@SLASH@$pics$@SLASH@$news.gif$@FORCEDOWNLOAD@$">download image</a><br />
<div><a href=\'$@FILEPHP@$/../../../../../../../../../../../../../../../etc/passwd\'>download passwords</a></div>
<div><a href=\'$@FILEPHP@$$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$etc$@SLASH@$shadow\'>download shadows</a></div>
<br /><a href=\'$@FILEPHP@$$@SLASH@$MANUAL.DOC$@FORCEDOWNLOAD@$\'>download manual</a><br />';
$files = moodle1_converter::find_referenced_files($text);
@@ -432,6 +443,8 @@ as it is parsed from the backup file. <br /><br /><img border="0" width="110" vs
$text = moodle1_converter::rewrite_filephp_usage($text, array('/pics/news.gif', '/another/file/notused.txt'), $files);
$this->assertEqual($text, 'This is a text containing links to file.php
as it is parsed from the backup file. <br /><br /><img border="0" width="110" vspace="0" hspace="0" height="92" title="News" alt="News" src="@@PLUGINFILE@@/pics/news.gif" /><a href="@@PLUGINFILE@@/pics/news.gif?forcedownload=1">download image</a><br />
<div><a href=\'$@FILEPHP@$/../../../../../../../../../../../../../../../etc/passwd\'>download passwords</a></div>
<div><a href=\'$@FILEPHP@$$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$..$@SLASH@$etc$@SLASH@$shadow\'>download shadows</a></div>
<br /><a href=\'$@FILEPHP@$$@SLASH@$MANUAL.DOC$@FORCEDOWNLOAD@$\'>download manual</a><br />');
}
@@ -142,6 +142,11 @@ abstract class backup_activity_task extends backup_task {
$this->add_step(new backup_activity_logs_structure_step('activity_logs', 'logs.xml'));
}
// Generate the calendar events file (conditionally)
if ($this->get_setting_value('calendarevents')) {
$this->add_step(new backup_calendarevents_structure_step('activity_calendar', 'calendar.xml'));
}
// Fetch all the activity grade items and put them to backup_ids
$this->add_step(new backup_activity_grade_items_to_ids('fetch_activity_grade_items'));
@@ -103,6 +103,11 @@ class backup_course_task extends backup_task {
$this->add_step(new backup_comments_structure_step('course_comments', 'comments.xml'));
}
// Generate the calender events file (conditionally)
if ($this->get_setting_value('calendarevents')) {
$this->add_step(new backup_calendarevents_structure_step('course_calendar', 'calendar.xml'));
}
// Generate the logs file (conditionally)
if ($this->get_setting_value('logs')) {
$this->add_step(new backup_course_logs_structure_step('course_logs', 'logs.xml'));
+1 -1
View File
@@ -58,7 +58,7 @@ class backup_final_task extends backup_task {
// done in a single pass
$this->add_step(new backup_annotate_all_question_files('question_files'));
// Annotate all the user files (conditionally) (private, profile and icon files)
// Annotate all the user files (conditionally) (profile and icon files)
// Because each user has its own context, we need a separate/specialised step here
// This step also ensures that the contexts for all the users exist, so next
// step can be safely executed (join between users and contexts)
+16 -5
View File
@@ -121,12 +121,23 @@ abstract class backup_plan_builder {
// Add the activity task, responsible for outputting
// all the module related information
$plan->add_task(backup_factory::get_backup_activity_task($controller->get_format(), $id));
try {
$plan->add_task(backup_factory::get_backup_activity_task($controller->get_format(), $id));
// For the given activity, add as many block tasks as necessary
$blockids = backup_plan_dbops::get_blockids_from_moduleid($id);
foreach ($blockids as $blockid) {
$plan->add_task(backup_factory::get_backup_block_task($controller->get_format(), $blockid, $id));
// For the given activity, add as many block tasks as necessary
$blockids = backup_plan_dbops::get_blockids_from_moduleid($id);
foreach ($blockids as $blockid) {
try {
$plan->add_task(backup_factory::get_backup_block_task($controller->get_format(), $blockid, $id));
} catch (backup_task_exception $e) {
$a = stdClass();
$a->mid = $id;
$a->bid = $blockid;
$controller->log(get_string('error_block_for_module_not_found', 'backup', $a), backup::LOG_WARNING);
}
}
} catch (backup_task_exception $e) {
$controller->log(get_string('error_course_module_not_found', 'backup', $id), backup::LOG_WARNING);
}
}
+6 -7
View File
@@ -69,13 +69,6 @@ class backup_root_task extends backup_task {
$this->add_setting($roleassignments);
$users->add_dependency($roleassignments);
// Define user_files (dependent of users and anonymize)
$userfiles = new backup_user_files_setting('user_files', base_setting::IS_BOOLEAN, true);
$userfiles->set_ui(new backup_setting_ui_checkbox($userfiles, get_string('rootsettinguserfiles', 'backup')));
$this->add_setting($userfiles);
$users->add_dependency($userfiles);
$anonymize->add_dependency($userfiles, setting_dependency::DISABLED_TRUE);
// Define activities
$activities = new backup_activities_setting('activities', base_setting::IS_BOOLEAN, true);
$activities->set_ui(new backup_setting_ui_checkbox($activities, get_string('rootsettingactivities', 'backup')));
@@ -97,6 +90,12 @@ class backup_root_task extends backup_task {
$this->add_setting($comments);
$users->add_dependency($comments);
// Define calendar events (dependent of users)
$events = new backup_calendarevents_setting('calendarevents', base_setting::IS_BOOLEAN, true);
$events->set_ui(new backup_setting_ui_checkbox($events, get_string('rootsettingcalendarevents', 'backup')));
$this->add_setting($events);
$users->add_dependency($events);
// Define completion (dependent of users)
$completion = new backup_userscompletion_setting('userscompletion', base_setting::IS_BOOLEAN, true);
$completion->set_ui(new backup_setting_ui_checkbox($completion, get_string('rootsettinguserscompletion', 'backup')));
+7 -7
View File
@@ -68,13 +68,6 @@ class backup_activities_setting extends backup_generic_setting {}
*/
class backup_anonymize_setting extends root_backup_setting {}
/**
* root setting to control if backup will include
* user files or no (images, local storage), depends of @backup_users_setting
* exactly in the same way than @backup_anonymize_setting so we extend from it
*/
class backup_user_files_setting extends backup_anonymize_setting {}
/**
* root setting to control if backup will include
* role assignments or no (any level), depends of @backup_users_setting
@@ -96,6 +89,13 @@ class backup_logs_setting extends backup_anonymize_setting {}
*/
class backup_comments_setting extends backup_anonymize_setting {}
/**
* root setting to control if backup will include
* calender events or no (any level), depends of @backup_users_setting
* exactly in the same way than @backup_anonymize_setting so we extend from it
*/
class backup_calendarevents_setting extends backup_anonymize_setting {}
/**
* root setting to control if backup will include
* users completion data or no (any level), depends of @backup_users_setting
+42 -4
View File
@@ -763,6 +763,48 @@ class backup_comments_structure_step extends backup_structure_step {
}
}
/**
* structure step in charge of constructing the calender.xml file for all the events found
* in a given context
*/
class backup_calendarevents_structure_step extends backup_structure_step {
protected function define_structure() {
// Define each element separated
$events = new backup_nested_element('events');
$event = new backup_nested_element('event', array('id'), array(
'name', 'description', 'format', 'courseid', 'groupid', 'userid',
'repeatid', 'modulename', 'instance', 'eventtype', 'timestart',
'timeduration', 'visible', 'uuid', 'sequence', 'timemodified'));
// Build the tree
$events->add_child($event);
// Define sources
if ($this->name == 'course_calendar') {
$calendar_items_sql ="SELECT * FROM {event}
WHERE courseid = :courseid
AND (eventtype = 'course' OR eventtype = 'group')";
$calendar_items_params = array('courseid'=>backup::VAR_COURSEID);
$event->set_source_sql($calendar_items_sql, $calendar_items_params);
} else {
$event->set_source_table('event', array('courseid' => backup::VAR_COURSEID, 'instance' => backup::VAR_ACTIVITYID, 'modulename' => backup::VAR_MODNAME));
}
// Define id annotations
$event->annotate_ids('user', 'userid');
$event->annotate_ids('group', 'groupid');
$event->annotate_files('calendar', 'event_description', 'id');
// Return the root element (events)
return $events;
}
}
/**
* structure step in charge of constructing the gradebook.xml file for all the gradebook config in the course
* NOTE: the backup of the grade items themselves is handled by backup_activity_grades_structure_step
@@ -1759,10 +1801,6 @@ class backup_annotate_all_user_files extends backup_execution_step {
// List of fileareas we are going to annotate
$fileareas = array('profile', 'icon');
if ($this->get_setting_value('user_files')) { // private files only if enabled in settings
$fileareas[] = 'private';
}
// Fetch all annotated (final) users
$rs = $DB->get_recordset('backup_ids_temp', array(
'backupid' => $this->get_backupid(), 'itemname' => 'userfinal'));
@@ -147,6 +147,11 @@ abstract class restore_activity_task extends restore_task {
$this->add_step(new restore_comments_structure_step('activity_comments', 'comments.xml'));
}
// Calendar events (conditionally)
if ($this->get_setting_value('calendarevents')) {
$this->add_step(new restore_calendarevents_structure_step('activity_calendar', 'calendar.xml'));
}
// Grades (module-related, rest of gradebook is restored later if possible: cats, calculations...)
$this->add_step(new restore_activity_grades_structure_step('activity_grades', 'grades.xml'));
@@ -84,6 +84,11 @@ class restore_course_task extends restore_task {
$this->add_step(new restore_comments_structure_step('course_comments', 'comments.xml'));
}
// Calendar events (conditionally)
if ($this->get_setting_value('calendarevents')) {
$this->add_step(new restore_calendarevents_structure_step('course_calendar', 'calendar.xml'));
}
// At the end, mark it as built
$this->built = true;
}
+5 -2
View File
@@ -55,8 +55,11 @@ class restore_final_task extends restore_task {
$this->add_step(new restore_gradebook_structure_step('gradebook_step','gradebook.xml'));
}
// Course completion
$this->add_step(new restore_course_completion_structure_step('course_completion', 'completion.xml'));
// Course completion, executed conditionally if restoring to new course
if ($this->get_target() !== backup::TARGET_CURRENT_ADDING &&
$this->get_target() !== backup::TARGET_EXISTING_ADDING) {
$this->add_step(new restore_course_completion_structure_step('course_completion', 'completion.xml'));
}
// Review all the module_availability records in backup_ids in order
// to match them with existing modules / grade items.
+13 -13
View File
@@ -117,19 +117,6 @@ class restore_root_task extends restore_task {
$this->add_setting($roleassignments);
$users->add_dependency($roleassignments);
// Define user_files (dependent of users)
$defaultvalue = false; // Safer default
$changeable = false;
if (isset($rootsettings['user_files']) && $rootsettings['user_files']) { // Only enabled when available
$defaultvalue = true;
$changeable = true;
}
$userfiles = new restore_user_files_setting('user_files', base_setting::IS_BOOLEAN, $defaultvalue);
$userfiles->set_ui(new backup_setting_ui_checkbox($userfiles, get_string('rootsettinguserfiles', 'backup')));
$userfiles->get_ui()->set_changeable($changeable);
$this->add_setting($userfiles);
$users->add_dependency($userfiles);
// Define activitites
$defaultvalue = false; // Safer default
$changeable = false;
@@ -179,6 +166,19 @@ class restore_root_task extends restore_task {
$this->add_setting($comments);
$users->add_dependency($comments);
// Define Calendar events (dependent of users)
$defaultvalue = false; // Safer default
$changeable = false;
if (isset($rootsettings['calendarevents']) && $rootsettings['calendarevents']) { // Only enabled when available
$defaultvalue = true;
$changeable = true;
}
$events = new restore_calendarevents_setting('calendarevents', base_setting::IS_BOOLEAN, $defaultvalue);
$events->set_ui(new backup_setting_ui_checkbox($events, get_string('rootsettingcalendarevents', 'backup')));
$events->get_ui()->set_changeable($changeable);
$this->add_setting($events);
$users->add_dependency($events);
// Define completion (dependent of users)
$defaultvalue = false; // Safer default
$changeable = false;
@@ -71,11 +71,9 @@ class restore_section_task extends restore_task {
// Define the task contextid (the course one)
$this->contextid = get_context_instance(CONTEXT_COURSE, $this->get_courseid())->id;
// Executed conditionally if restoring to new course or deleting or if overwrite_conf setting is enabled
if ($this->get_target() == backup::TARGET_NEW_COURSE || $this->get_target() == backup::TARGET_CURRENT_DELETING ||
$this->get_target() == backup::TARGET_EXISTING_DELETING || $this->get_setting_value('overwrite_conf') == true) {
$this->add_step(new restore_section_structure_step('course_info', 'section.xml'));
}
// We always try to restore as much info from sections as possible, no matter of the type
// of restore (new, existing, deleting, import...). MDL-27764
$this->add_step(new restore_section_structure_step('course_info', 'section.xml'));
// At the end, mark it as built
$this->built = true;
+7 -7
View File
@@ -44,13 +44,6 @@ class restore_users_setting extends restore_generic_setting {}
*/
class restore_role_assignments_setting extends root_backup_setting {}
/**
* root setting to control if restore will create
* user files or no (images, local storage), depends of @restore_users_setting
* exactly in the same way than @restore_role_assignments_setting so we extend from it
*/
class restore_user_files_setting extends restore_role_assignments_setting {}
/**
* root setting to control if restore will create activities
* A lot of other settings (_included at activity levels)
@@ -65,6 +58,13 @@ class restore_activities_setting extends restore_generic_setting {}
*/
class restore_comments_setting extends restore_role_assignments_setting {}
/**
* root setting to control if restore will create
* events or no, depends of @restore_users_setting
* exactly in the same way than @restore_role_assignments_setting so we extend from it
*/
class restore_calendarevents_setting extends restore_role_assignments_setting {}
/**
* root setting to control if restore will create
* completion info or no, depends of @restore_users_setting
+126 -45
View File
@@ -206,21 +206,25 @@ class restore_gradebook_structure_step extends restore_structure_step {
global $DB;
$data = (object)$data;
$oldid = $data->id;
$olduserid = $data->userid;
$data->itemid = $this->get_new_parentid('grade_item');
$data->userid = $this->get_mappingid('user', $data->userid, NULL);
$data->usermodified = $this->get_mappingid('user', $data->usermodified, NULL);
$data->locktime = $this->apply_date_offset($data->locktime);
// TODO: Ask, all the rest of locktime/exported... work with time... to be rolled?
$data->overridden = $this->apply_date_offset($data->overridden);
$data->timecreated = $this->apply_date_offset($data->timecreated);
$data->timemodified = $this->apply_date_offset($data->timemodified);
$data->userid = $this->get_mappingid('user', $data->userid, null);
if (!empty($data->userid)) {
$data->usermodified = $this->get_mappingid('user', $data->usermodified, null);
$data->locktime = $this->apply_date_offset($data->locktime);
// TODO: Ask, all the rest of locktime/exported... work with time... to be rolled?
$data->overridden = $this->apply_date_offset($data->overridden);
$data->timecreated = $this->apply_date_offset($data->timecreated);
$data->timemodified = $this->apply_date_offset($data->timemodified);
$newitemid = $DB->insert_record('grade_grades', $data);
//$this->set_mapping('grade_grade', $oldid, $newitemid);
$newitemid = $DB->insert_record('grade_grades', $data);
} else {
debugging("Mapped user id not found for user id '{$olduserid}', grade item id '{$data->itemid}'");
}
}
protected function process_grade_category($data) {
global $DB;
@@ -371,40 +375,35 @@ class restore_gradebook_structure_step extends restore_structure_step {
}
$rs->close();
//need to correct the grade category path and parent
// Need to correct the grade category path and parent
$conditions = array(
'courseid' => $this->get_courseid()
);
$grade_category = new stdclass();
$rs = $DB->get_recordset('grade_categories', $conditions);
if (!empty($rs)) {
//get all the parents correct first as grade_category::build_path() loads category parents from the DB
foreach($rs as $gc) {
if (!empty($gc->parent)) {
$grade_category->id = $gc->id;
$grade_category->parent = $this->get_mappingid('grade_category', $gc->parent);
$DB->update_record('grade_categories', $grade_category);
}
}
}
if (isset($grade_category->parent)) {
unset($grade_category->parent);
}
$rs->close();
$rs = $DB->get_recordset('grade_categories', $conditions);
if (!empty($rs)) {
//now we can rebuild all the paths
foreach($rs as $gc) {
// Get all the parents correct first as grade_category::build_path() loads category parents from the DB
foreach ($rs as $gc) {
if (!empty($gc->parent)) {
$grade_category = new stdClass();
$grade_category->id = $gc->id;
$grade_category->path = grade_category::build_path($gc);
$grade_category->parent = $this->get_mappingid('grade_category', $gc->parent);
$DB->update_record('grade_categories', $grade_category);
}
}
$rs->close();
//Restore marks items as needing update. Update everything now.
// Now we can rebuild all the paths
$rs = $DB->get_recordset('grade_categories', $conditions);
foreach ($rs as $gc) {
$grade_category = new stdClass();
$grade_category->id = $gc->id;
$grade_category->path = grade_category::build_path($gc);
$grade_category->depth = substr_count($grade_category->path, '/') - 1;
$DB->update_record('grade_categories', $grade_category);
}
$rs->close();
// Restore marks items as needing update. Update everything now.
grade_regrade_final_grades($this->get_courseid());
}
}
@@ -688,7 +687,7 @@ class restore_create_included_users extends restore_execution_step {
protected function define_execution() {
restore_dbops::create_included_users($this->get_basepath(), $this->get_restoreid(), $this->get_setting_value('user_files'), $this->task->get_userid());
restore_dbops::create_included_users($this->get_basepath(), $this->get_restoreid(), $this->task->get_userid());
}
}
@@ -1028,7 +1027,7 @@ class restore_section_structure_step extends restore_structure_step {
// Section exists, update non-empty information
} else {
$section->id = $secrec->id;
if (empty($secrec->name)) {
if ((string)$secrec->name === '') {
$section->name = $data->name;
}
if (empty($secrec->summary)) {
@@ -1126,6 +1125,12 @@ class restore_course_structure_step extends restore_structure_step {
unset($data->idnumber);
}
// Any empty value for course->hiddensections will lead to 0 (default, show collapsed).
// It has been reported that some old 1.9 courses may have it null leading to DB error. MDL-31532
if (empty($data->hiddensections)) {
$data->hiddensections = 0;
}
// Only restrict modules if original course was and target site too for new courses
$data->restrictmodules = $data->restrictmodules && !empty($CFG->restrictmodulesfor) && $CFG->restrictmodulesfor == 'all';
@@ -1511,6 +1516,76 @@ class restore_comments_structure_step extends restore_structure_step {
}
}
/**
* This structure steps restores the calendar events
*/
class restore_calendarevents_structure_step extends restore_structure_step {
protected function define_structure() {
$paths = array();
$paths[] = new restore_path_element('calendarevents', '/events/event');
return $paths;
}
public function process_calendarevents($data) {
global $DB;
$data = (object)$data;
$oldid = $data->id;
$restorefiles = true; // We'll restore the files
// Find the userid and the groupid associated with the event. Return if not found.
$data->userid = $this->get_mappingid('user', $data->userid);
if ($data->userid === false) {
return;
}
if (!empty($data->groupid)) {
$data->groupid = $this->get_mappingid('group', $data->groupid);
if ($data->groupid === false) {
return;
}
}
$params = array(
'name' => $data->name,
'description' => $data->description,
'format' => $data->format,
'courseid' => $this->get_courseid(),
'groupid' => $data->groupid,
'userid' => $data->userid,
'repeatid' => $data->repeatid,
'modulename' => $data->modulename,
'eventtype' => $data->eventtype,
'timestart' => $this->apply_date_offset($data->timestart),
'timeduration' => $data->timeduration,
'visible' => $data->visible,
'uuid' => $data->uuid,
'sequence' => $data->sequence,
'timemodified' => $this->apply_date_offset($data->timemodified));
if ($this->name == 'activity_calendar') {
$params['instance'] = $this->task->get_activityid();
} else {
$params['instance'] = 0;
}
$sql = 'SELECT id FROM {event} WHERE name = ? AND courseid = ? AND
repeatid = ? AND modulename = ? AND timestart = ? AND timeduration =?
AND ' . $DB->sql_compare_text('description', 255) . ' = ' . $DB->sql_compare_text('?', 255);
$arg = array ($params['name'], $params['courseid'], $params['repeatid'], $params['modulename'], $params['timestart'], $params['timeduration'], $params['description']);
$result = $DB->record_exists_sql($sql, $arg);
if (empty($result)) {
$newitemid = $DB->insert_record('event', $params);
$this->set_mapping('event_description', $oldid, $newitemid, $restorefiles);
}
}
protected function after_execute() {
// Add related files
$this->add_related_files('calendar', 'event_description', 'event_description');
}
}
class restore_course_completion_structure_step extends restore_structure_step {
/**
@@ -1969,18 +2044,24 @@ class restore_activity_grades_structure_step extends restore_structure_step {
protected function process_grade_grade($data) {
$data = (object)($data);
$olduserid = $data->userid;
unset($data->id);
$data->itemid = $this->get_new_parentid('grade_item');
$data->userid = $this->get_mappingid('user', $data->userid);
$data->usermodified = $this->get_mappingid('user', $data->usermodified);
$data->rawscaleid = $this->get_mappingid('scale', $data->rawscaleid);
// TODO: Ask, all the rest of locktime/exported... work with time... to be rolled?
$data->overridden = $this->apply_date_offset($data->overridden);
$grade = new grade_grade($data, false);
$grade->insert('restore');
// no need to save any grade_grade mapping
$data->itemid = $this->get_new_parentid('grade_item');
$data->userid = $this->get_mappingid('user', $data->userid, null);
if (!empty($data->userid)) {
$data->usermodified = $this->get_mappingid('user', $data->usermodified, null);
$data->rawscaleid = $this->get_mappingid('scale', $data->rawscaleid);
// TODO: Ask, all the rest of locktime/exported... work with time... to be rolled?
$data->overridden = $this->apply_date_offset($data->overridden);
$grade = new grade_grade($data, false);
$grade->insert('restore');
// no need to save any grade_grade mapping
} else {
debugging("Mapped user id not found for user id '{$olduserid}', grade item id '{$data->itemid}'");
}
}
/**
+1
View File
@@ -461,6 +461,7 @@
}
//Now build the EVENT record structure
$eve = new stdClass();
$eve->name = backup_todb($info['EVENT']['#']['NAME']['0']['#']);
$eve->description = backup_todb($info['EVENT']['#']['DESCRIPTION']['0']['#']);
$eve->format = backup_todb($info['EVENT']['#']['FORMAT']['0']['#']);
+13 -6
View File
@@ -168,9 +168,9 @@ abstract class backup_check {
$hasusercap = has_capability('moodle/backup:userinfo', $coursectx, $userid);
// If setting is enabled but user lacks permission
if (!$hasusercap && $prevvalue) { // If user has not the capability and setting is enabled
if (!$hasusercap) { // If user has not the capability
// Now analyse if we are allowed to apply changes or must stop with exception
if (!$apply) { // Cannot apply changes, throw exception
if (!$apply && $prevvalue) { // Cannot apply changes and the value is set, throw exception
$a = new stdclass();
$a->setting = 'users';
$a->value = $prevvalue;
@@ -178,7 +178,12 @@ abstract class backup_check {
throw new backup_controller_exception('backup_setting_value_wrong_for_capability', $a);
} else { // Can apply changes
$userssetting->set_value(false); // Set the value to false
// If it is already false, we don't want to try and set it again, because if it is
// already locked, and exception will occur. The side benifit is if it is true and locked
// we will get an exception...
if ($prevvalue) {
$userssetting->set_value(false); // Set the value to false
}
$userssetting->set_status(base_setting::LOCKED_BY_PERMISSION);// Set the status to locked by perm
}
}
@@ -191,9 +196,9 @@ abstract class backup_check {
$hasanoncap = has_capability('moodle/backup:anonymise', $coursectx, $userid);
// If setting is enabled but user lacks permission
if (!$hasanoncap && $prevvalue) { // If user has not the capability and setting is enabled
if (!$hasanoncap) { // If user has not the capability
// Now analyse if we are allowed to apply changes or must stop with exception
if (!$apply) { // Cannot apply changes, throw exception
if (!$apply && $prevvalue) { // Cannot apply changes and the value is set, throw exception
$a = new stdclass();
$a->setting = 'anonymize';
$a->value = $prevvalue;
@@ -201,7 +206,9 @@ abstract class backup_check {
throw new backup_controller_exception('backup_setting_value_wrong_for_capability', $a);
} else { // Can apply changes
$anonsetting->set_value(false); // Set the value to false
if ($prevvalue) { // If we try and set it back to false and it has already been locked, error will occur
$anonsetting->set_value(false); // Set the value to false
}
$anonsetting->set_status(base_setting::LOCKED_BY_PERMISSION);// Set the status to locked by perm
}
}
@@ -32,16 +32,30 @@
*/
abstract class backup_controller_dbops extends backup_dbops {
public static function save_controller($controller, $checksum) {
/**
* Send one backup controller to DB
*
* @param backup_controller $controller controller to send to DB
* @param string $checksum hash of the controller to be checked
* @param bool $includeobj to decide if the object itself must be updated (true) or no (false)
* @param bool $cleanobj to decide if the object itself must be cleaned (true) or no (false)
* @return int id of the controller record in the DB
* @throws backup_controller_exception|backup_dbops_exception
*/
public static function save_controller($controller, $checksum, $includeobj = true, $cleanobj = false) {
global $DB;
// Check we are going to save one backup_controller
if (! $controller instanceof backup_controller) {
throw new backup_controller_exception('backup_controller_expected');
}
// Check checksum is ok. Sounds silly but it isn't ;-)
if (!$controller->is_checksum_correct($checksum)) {
// Check checksum is ok. Only if we are including object info. Sounds silly but it isn't ;-).
if ($includeobj and !$controller->is_checksum_correct($checksum)) {
throw new backup_dbops_exception('backup_controller_dbops_saving_checksum_mismatch');
}
// Cannot request to $includeobj and $cleanobj at the same time.
if ($includeobj and $cleanobj) {
throw new backup_dbops_exception('backup_controller_dbops_saving_cannot_include_and_delete');
}
// Get all the columns
$rec = new stdclass();
$rec->backupid = $controller->get_backupid();
@@ -57,7 +71,11 @@ abstract class backup_controller_dbops extends backup_dbops {
$rec->executiontime= $controller->get_executiontime();
$rec->checksum = $checksum;
// Serialize information
$rec->controller = base64_encode(serialize($controller));
if ($includeobj) {
$rec->controller = base64_encode(serialize($controller));
} else if ($cleanobj) {
$rec->controller = '';
}
// Send it to DB
if ($recexists = $DB->get_record('backup_controllers', array('backupid' => $rec->backupid))) {
$rec->id = $recexists->id;
@@ -440,7 +458,6 @@ abstract class backup_controller_dbops extends backup_dbops {
'backup_general_users' => 'users',
'backup_general_anonymize' => 'anonymize',
'backup_general_role_assignments' => 'role_assignments',
'backup_general_user_files' => 'user_files',
'backup_general_activities' => 'activities',
'backup_general_blocks' => 'blocks',
'backup_general_filters' => 'filters',
@@ -32,16 +32,30 @@
*/
abstract class restore_controller_dbops extends restore_dbops {
public static function save_controller($controller, $checksum) {
/**
* Send one restore controller to DB
*
* @param restore_controller $controller controller to send to DB
* @param string $checksum hash of the controller to be checked
* @param bool $includeobj to decide if the object itself must be updated (true) or no (false)
* @param bool $cleanobj to decide if the object itself must be cleaned (true) or no (false)
* @return int id of the controller record in the DB
* @throws backup_controller_exception|restore_dbops_exception
*/
public static function save_controller($controller, $checksum, $includeobj = true, $cleanobj = false) {
global $DB;
// Check we are going to save one backup_controller
if (! $controller instanceof restore_controller) {
throw new backup_controller_exception('restore_controller_expected');
}
// Check checksum is ok. Sounds silly but it isn't ;-)
if (!$controller->is_checksum_correct($checksum)) {
// Check checksum is ok. Only if we are including object info. Sounds silly but it isn't ;-).
if ($includeobj and !$controller->is_checksum_correct($checksum)) {
throw new restore_dbops_exception('restore_controller_dbops_saving_checksum_mismatch');
}
// Cannot request to $includeobj and $cleanobj at the same time.
if ($includeobj and $cleanobj) {
throw new restore_dbops_exception('restore_controller_dbops_saving_cannot_include_and_delete');
}
// Get all the columns
$rec = new stdclass();
$rec->backupid = $controller->get_restoreid();
@@ -57,7 +71,11 @@ abstract class restore_controller_dbops extends restore_dbops {
$rec->executiontime= $controller->get_executiontime();
$rec->checksum = $checksum;
// Serialize information
$rec->controller = base64_encode(serialize($controller));
if ($includeobj) {
$rec->controller = base64_encode(serialize($controller));
} else if ($cleanobj) {
$rec->controller = '';
}
// Send it to DB
if ($recexists = $DB->get_record('backup_controllers', array('backupid' => $rec->backupid))) {
$rec->id = $recexists->id;
+1 -5
View File
@@ -730,7 +730,7 @@ abstract class restore_dbops {
* ready to be created. Also, annotate their newids
* once created for later reference
*/
public static function create_included_users($basepath, $restoreid, $userfiles, $userid) {
public static function create_included_users($basepath, $restoreid, $userid) {
global $CFG, $DB;
$authcache = array(); // Cache to get some bits from authentication plugins
@@ -871,10 +871,6 @@ abstract class restore_dbops {
// Create user files in pool (profile, icon, private) by context
restore_dbops::send_files_to_pool($basepath, $restoreid, 'user', 'icon', $recuser->parentitemid, $userid);
restore_dbops::send_files_to_pool($basepath, $restoreid, 'user', 'profile', $recuser->parentitemid, $userid);
if ($userfiles) { // private files only if enabled in settings
restore_dbops::send_files_to_pool($basepath, $restoreid, 'user', 'private', $recuser->parentitemid, $userid);
}
}
}
$rs->close();
@@ -139,7 +139,7 @@ abstract class backup_factory {
throw new backup_task_exception('section_task_section_not_found', $sectionid);
}
return new backup_section_task(empty($section->name) ? $section->section : $section->name, $sectionid);
return new backup_section_task((string)$section->name === '' ? $section->section : $section->name, $sectionid);
}
/**
+26 -18
View File
@@ -281,23 +281,25 @@ abstract class backup_cron_automated_helper {
$midnight = usergetmidnight($now, $timezone);
$date = usergetdate($now, $timezone);
//Get number of days (from today) to execute backups
$automateddays = substr($config->backup_auto_weekdays,$date['wday']) . $config->backup_auto_weekdays;
$daysfromtoday = strpos($automateddays, "1");
// Get number of days (from today) to execute backups
$automateddays = substr($config->backup_auto_weekdays, $date['wday']) . $config->backup_auto_weekdays;
$daysfromtoday = strpos($automateddays, "1", 1);
// If we can't find the next day, we set it to tomorrow
if (empty($daysfromtoday)) {
$daysfromtoday = 1;
}
//If some day has been found
// If some day has been found
if ($daysfromtoday !== false) {
//Calculate distance
$dist = ($daysfromtoday * 86400) + //Days distance
($config->backup_auto_hour * 3600) + //Hours distance
($config->backup_auto_minute * 60); //Minutes distance
// Calculate distance
$dist = ($daysfromtoday * 86400) + // Days distance
($config->backup_auto_hour * 3600) + // Hours distance
($config->backup_auto_minute * 60); // Minutes distance
$result = $midnight + $dist;
}
//If that time is past, call the function recursively to obtain the next valid day
// If that time is past, call the function recursively to obtain the next valid day
if ($result > 0 && $result < time()) {
$result = self::calculate_next_automated_backup($timezone, $result);
}
@@ -315,6 +317,7 @@ abstract class backup_cron_automated_helper {
*/
public static function launch_automated_backup($course, $starttime, $userid) {
$outcome = true;
$config = get_config('backup');
$bc = new backup_controller(backup::TYPE_1COURSE, $course->id, backup::FORMAT_MOODLE, backup::INTERACTIVE_NO, backup::MODE_AUTOMATED, $userid);
@@ -323,7 +326,6 @@ abstract class backup_cron_automated_helper {
$settings = array(
'users' => 'backup_auto_users',
'role_assignments' => 'backup_auto_role_assignments',
'user_files' => 'backup_auto_user_files',
'activities' => 'backup_auto_activities',
'blocks' => 'backup_auto_blocks',
'filters' => 'backup_auto_filters',
@@ -348,32 +350,33 @@ abstract class backup_cron_automated_helper {
$bc->set_status(backup::STATUS_AWAITING);
$outcome = $bc->execute_plan();
$bc->execute_plan();
$results = $bc->get_results();
$file = $results['backup_destination'];
$file = $results['backup_destination']; // may be empty if file already moved to target location
$dir = $config->backup_auto_destination;
$storage = (int)$config->backup_auto_storage;
if (!file_exists($dir) || !is_dir($dir) || !is_writable($dir)) {
$dir = null;
}
if (!empty($dir) && $storage !== 0) {
$filename = backup_plan_dbops::get_default_backup_filename($format, $type, $course->id, $users, $anonymised, true);
if ($file && !empty($dir) && $storage !== 0) {
$filename = backup_plan_dbops::get_default_backup_filename($format, $type, $course->id, $users, $anonymised, !$config->backup_shortname);
$outcome = $file->copy_content_to($dir.'/'.$filename);
if ($outcome && $storage === 1) {
$file->delete();
}
}
$outcome = true;
} catch (backup_exception $e) {
$bc->log('backup_auto_failed_on_course', backup::LOG_WARNING, $course->shortname);
} catch (moodle_exception $e) {
$bc->log('backup_auto_failed_on_course', backup::LOG_ERROR, $course->shortname); // Log error header.
$bc->log('Exception: ' . $e->errorcode, backup::LOG_ERROR, $e->a, 1); // Log original exception problem.
$bc->log('Debug: ' . $e->debuginfo, backup::LOG_DEBUG, null, 1); // Log original debug information.
$outcome = false;
}
$bc->destroy();
unset($bc);
return true;
return $outcome;
}
/**
@@ -460,6 +463,11 @@ abstract class backup_cron_automated_helper {
$storage = $config->backup_auto_storage;
$dir = $config->backup_auto_destination;
if ($keep == 0) {
// means keep all backup files
return true;
}
$backupword = str_replace(' ', '_', moodle_strtolower(get_string('backupfilename')));
$backupword = trim(clean_filename($backupword), '_');
+39 -2
View File
@@ -176,8 +176,17 @@ abstract class backup_helper {
/**
* Given one backupid and the (FS) final generated file, perform its final storage
* into Moodle file storage. For stored files it returns the complete file_info object
*
* Note: the $filepath is deleted if the backup file is created successfully
*
* @param int $backupid
* @param string $filepath zip file containing the backup
* @return stored_file if created, null otherwise
*
* @throws moodle_exception in case of any problems
*/
static public function store_backup_file($backupid, $filepath) {
global $CFG;
// First of all, get some information from the backup_controller to help us decide
list($dinfo, $cinfo, $sinfo) = backup_controller_dbops::get_moodle_backup_information($backupid);
@@ -191,6 +200,7 @@ abstract class backup_helper {
$userid = $dinfo[0]->userid; // User->id executing the backup
$id = $dinfo[0]->id; // Id of activity/section/course (depends of type)
$courseid = $dinfo[0]->courseid; // Id of the course
$format = $dinfo[0]->format; // Type of backup file
// Quick hack. If for any reason, filename is blank, fix it here.
// TODO: This hack will be out once MDL-22142 - P26 gets fixed
@@ -200,7 +210,13 @@ abstract class backup_helper {
// Backups of type IMPORT aren't stored ever
if ($backupmode == backup::MODE_IMPORT) {
return false;
return null;
}
if (!is_readable($filepath)) {
// we have a problem if zip file does not exist
throw new coding_exception('backup_helper::store_backup_file() expects valid $filepath parameter');
}
// Calculate file storage options of id being backup
@@ -232,6 +248,25 @@ abstract class backup_helper {
if ($backupmode == backup::MODE_AUTOMATED) {
// Automated backups have there own special area!
$filearea = 'automated';
// If we're keeping the backup only in a chosen path, just move it there now
// this saves copying from filepool to here later and filling trashdir.
$config = get_config('backup');
$dir = $config->backup_auto_destination;
if ($config->backup_auto_storage == 1 and $dir and is_dir($dir) and is_writable($dir)) {
$filedest = $dir.'/'.backup_plan_dbops::get_default_backup_filename($format, $backuptype, $courseid, $hasusers, $isannon, !$config->backup_shortname);
// first try to move the file, if it is not possible copy and delete instead
if (@rename($filepath, $filedest)) {
return null;
}
umask(0000);
if (copy($filepath, $filedest)) {
@chmod($filedest, $CFG->filepermissions); // may fail because the permissions may not make sense outside of dataroot
unlink($filepath);
return null;
}
// bad luck, try to deal with the file the old way - keep backup in file area if we can not copy to ext system
}
}
// Backups of type HUB (by definition never have user info)
@@ -275,7 +310,9 @@ abstract class backup_helper {
$sf = $fs->get_file_by_hash($pathnamehash);
$sf->delete();
}
return $fs->create_file_from_pathname($fr, $filepath);
$file = $fs->create_file_from_pathname($fr, $filepath);
unlink($filepath);
return $file;
}
/**
@@ -63,7 +63,7 @@ class restore_decode_processor {
public function add_rule($rule) {
if (!$rule instanceof restore_decode_rule) {
throw new restore_decode_processor_exception('incorrect_restore_decode_rule', get_class($content));
throw new restore_decode_processor_exception('incorrect_restore_decode_rule', get_class($rule));
}
$rule->set_restoreid($this->restoreid);
$rule->set_wwwroots($this->sourcewwwroot, $this->targetwwwroot);
@@ -151,7 +151,7 @@ class restore_decode_rule {
$countma = count($mappings);
// Check mappings number matches placeholders
if ($countph != $countma) {
$msg = new stdclass();
$a = new stdClass();
$a->placeholders = $countph;
$a->mappings = $countma;
throw new restore_decode_rule_exception('decode_rule_mappings_incorrect_count', $a);
+1 -1
View File
@@ -61,7 +61,7 @@ class file_logger extends base_logger {
public function __wakeup() {
if ($this->level > backup::LOG_NONE) { // Only create the file if we are going to log something
if (! $this->fhandle = fopen($this->fullpath, 'a')) {
throw new base_logger_exception('error_opening_file', $fullpath);
throw new base_logger_exception('error_opening_file', $this->fullpath);
}
}
}
+1 -1
View File
@@ -294,7 +294,7 @@ abstract class base_setting {
if ($this->is_circular_reference($dependency->get_dependent_setting())) {
$a = new stdclass();
$a->alreadydependent = $this->name;
$a->main = $dependentsetting->get_name();
$a->main = $dependency->get_dependent_setting()->get_name();
throw new base_setting_exception('setting_circular_reference', $a);
}
$this->dependencies[$dependency->get_dependent_setting()->get_name()] = $dependency;
@@ -32,10 +32,12 @@ require_once($CFG->dirroot . '/backup/util/interfaces/checksumable.class.php');
require_once($CFG->dirroot . '/backup/backup.class.php');
require_once($CFG->dirroot . '/backup/util/settings/base_setting.class.php');
require_once($CFG->dirroot . '/backup/util/settings/backup_setting.class.php');
require_once($CFG->dirroot . '/backup/util/settings/setting_dependency.class.php');
require_once($CFG->dirroot . '/backup/util/settings/root/root_backup_setting.class.php');
require_once($CFG->dirroot . '/backup/util/settings/activity/activity_backup_setting.class.php');
require_once($CFG->dirroot . '/backup/util/settings/section/section_backup_setting.class.php');
require_once($CFG->dirroot . '/backup/util/settings/course/course_backup_setting.class.php');
require_once($CFG->dirroot . '/backup/util/ui/backup_ui_setting.class.php');
/*
* setting tests (all)
@@ -209,6 +211,21 @@ class setting_test extends UnitTestCase {
$this->assertEqual($e->a->alreadydependent, 'test4');
}
$bs1 = new mock_base_setting('test1', base_setting::IS_INTEGER, null);
$bs2 = new mock_base_setting('test2', base_setting::IS_INTEGER, null);
$bs1->register_dependency(new setting_dependency_disabledif_empty($bs1, $bs2));
try {
// $bs1 is already dependent on $bs2 so this should fail.
$bs2->register_dependency(new setting_dependency_disabledif_empty($bs2, $bs1));
$this->assertTrue(false, 'base_setting_exception expected');
} catch (exception $e) {
$this->assertTrue($e instanceof base_setting_exception);
$this->assertEqual($e->errorcode, 'setting_circular_reference');
$this->assertTrue($e->a instanceof stdclass);
$this->assertEqual($e->a->main, 'test1');
$this->assertEqual($e->a->alreadydependent, 'test2');
}
// Create 3 settings and observe between them, last one must
// automatically inherit all the settings defined in the main one
$bs1 = new mock_base_setting('test1', base_setting::IS_INTEGER, null);
+1 -1
View File
@@ -129,7 +129,7 @@ class base_setting_ui {
* @param string $label
*/
public function set_label($label) {
if (empty($label) || $label !== clean_param($label, PARAM_TEXT)) {
if ((string)$label === '' || $label !== clean_param($label, PARAM_TEXT)) {
throw new base_setting_ui_exception('setting_invalid_ui_label');
}
$this->label = $label;
+9 -1
View File
@@ -97,7 +97,9 @@ class core_backup_renderer extends plugin_renderer_base {
$html .= html_writer::start_tag('div', array('class'=>'backup-section settings-section'));
$html .= $this->output->heading(get_string('backupsettings', 'backup'), 2, array('class'=>'header'));
foreach ($details->root_settings as $label=>$value) {
if ($label == 'filename') continue;
if ($label == 'filename' or $label == 'user_files') {
continue;
}
$html .= $this->backup_detail_pair(get_string('rootsetting'.str_replace('_','',$label), 'backup'), $value?$yestick:$notick);
}
$html .= html_writer::end_tag('div');
@@ -568,6 +570,12 @@ class core_backup_renderer extends plugin_renderer_base {
$output = html_writer::start_tag('div', array('class' => 'import-course-search'));
if ($component->get_count() === 0) {
$output .= $this->output->notification(get_string('nomatchingcourses', 'backup'));
$output .= html_writer::start_tag('div', array('class'=>'ics-search'));
$output .= html_writer::empty_tag('input', array('type'=>'text', 'name'=>restore_course_search::$VAR_SEARCH, 'value'=>$component->get_search()));
$output .= html_writer::empty_tag('input', array('type'=>'submit', 'name'=>'searchcourses', 'value'=>get_string('search')));
$output .= html_writer::end_tag('div');
$output .= html_writer::end_tag('div');
return $output;
}
+28 -13
View File
@@ -164,22 +164,37 @@ abstract class restore_search_base implements renderable {
$this->totalcount = 0;
$contextlevel = $this->get_itemcontextlevel();
list($sql, $params) = $this->get_searchsql();
$resultset = $DB->get_recordset_sql($sql, $params, 0, 250);
foreach ($resultset as $result) {
context_instance_preload($result);
$context = get_context_instance($contextlevel, $result->id);
if (count($this->requiredcapabilities) > 0) {
foreach ($this->requiredcapabilities as $cap) {
if (!has_capability($cap['capability'], $context, $cap['user'])) {
continue 2;
$blocksz = 5000;
$offs = 0;
// Get total number, to avoid some incorrect iterations
$countsql = preg_replace('/ORDER BY.*/', '', $sql);
$totalcourses = $DB->count_records_sql("SELECT COUNT(*) FROM ($countsql) sel", $params);
// User to be checked is always the same (usually null, get it form first element)
$firstcap = reset($this->requiredcapabilities);
$userid = isset($firstcap['user']) ? $firstcap['user'] : null;
// Extract caps to check, this saves us a bunch of iterations
$requiredcaps = array();
foreach ($this->requiredcapabilities as $cap) {
$requiredcaps[] = $cap['capability'];
}
// Iterate while we have records and haven't reached MAXRESULTS
while ($totalcourses > $offs and $this->totalcount < self::$MAXRESULTS) {
$resultset = $DB->get_records_sql($sql, $params, $offs, $blocksz);
foreach ($resultset as $result) {
context_instance_preload($result);
$context = get_context_instance($contextlevel, $result->id);
if (count($requiredcaps) > 0) {
if (!has_all_capabilities($requiredcaps, $context, $userid)) {
continue;
}
}
$this->results[$result->id] = $result;
$this->totalcount++;
if ($this->totalcount >= self::$MAXRESULTS) {
break;
}
}
$this->results[$result->id] = $result;
$this->totalcount++;
if ($this->totalcount >= self::$MAXRESULTS) {
break;
}
$offs += $blocksz;
}
return $this->totalcount;
@@ -79,6 +79,7 @@ class block_admin_bookmarks extends block_base {
if ($this->contentgenerated === true) {
return $this->content;
}
$this->content = new stdClass();
if (get_user_preferences('admin_bookmarks')) {
require_once($CFG->libdir.'/adminlib.php');
+8 -6
View File
@@ -48,21 +48,23 @@ class block_comments extends block_base {
function get_content() {
global $CFG, $PAGE;
if ($this->content !== NULL) {
return $this->content;
}
if (!$CFG->usecomments) {
$this->content = new stdClass();
$this->content->text = '';
if ($this->page->user_is_editing()) {
$this->content->text = get_string('disabledcomments');
}
return $this->content;
}
if ($this->content !== NULL) {
return $this->content;
}
if (empty($this->instance)) {
return null;
}
$this->content = new stdClass();
$this->content->footer = '';
$this->content->text = '';
if (empty($this->instance)) {
return $this->content;
}
list($context, $course, $cm) = get_context_info_array($PAGE->context->id);
$args = new stdClass;
+2 -2
View File
@@ -125,7 +125,7 @@ if ($usercandownload and $download != -1 and !empty($downloadcourseid) and confi
$remove = optional_param('remove', '', PARAM_INTEGER);
$communityid = optional_param('communityid', '', PARAM_INTEGER);
if ($remove != -1 and !empty($communityid) and confirm_sesskey()) {
$communitymanager->block_community_remove_course($communityid, $USER->id);
$communitymanager->block_community_remove_course($communityid, $USER->id);
echo $OUTPUT->header();
echo $renderer->remove_success(new moodle_url(get_referer(false)));
echo $OUTPUT->footer();
@@ -242,4 +242,4 @@ if (!empty($courses)) {
}
}
echo $OUTPUT->footer();
echo $OUTPUT->footer();
+3 -3
View File
@@ -82,7 +82,7 @@ class block_community_manager {
global $CFG, $USER;
require_once($CFG->libdir . "/filelib.php");
require_once($CFG->dirroot. "/course/publish/lib.php");
$params['courseid'] = $course->id;
$params['filetype'] = HUB_BACKUP_FILE_TYPE;
@@ -104,7 +104,7 @@ class block_community_manager {
$token = $registeredhub->token;
$curlurl .= '&token='.$token;
}
$ch = curl_init($curlurl);
curl_setopt($ch, CURLOPT_FILE, $fp);
$data = curl_exec($ch);
@@ -143,4 +143,4 @@ class block_community_manager {
array('userid' => $userid, 'id' => $communityid));
}
}
}
+1 -1
View File
@@ -124,7 +124,7 @@ class block_community_renderer extends plugin_renderer_base {
//create title html
$coursename = html_writer::tag('h3', $course->fullname,
array('class' => 'hubcoursetitle'));
$coursenamehtml = html_writer::tag('div', $coursename,
$coursenamehtml = html_writer::tag('div', $coursename,
array('class' => 'hubcoursetitlepanel'));
// create screenshots html
+9 -9
View File
@@ -44,12 +44,12 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
this.overlay.render();
this.overlay.hide();
//attach a show event on the image divs (<tag id='image-X'>)
for (var i=0;i<this.get('imageids').length;i++)
{
var imageid = this.get('imageids')[i];
this.imageidnumbers[imageid] = this.get('imagenumbers')[i];
this.imageidnumbers[imageid] = this.get('imagenumbers')[i];
Y.one('#image-'+imageid).on('click', this.show, this, imageid, 1);
}
@@ -60,9 +60,9 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
if (this.imageloadingevent != null) {
this.imageloadingevent.detach();
}
var url = this.get('huburl') + "/local/hub/webservice/download.php?courseid="
+ imageid + "&filetype=screenshot&imagewidth=original&screenshotnumber=" + screennumber;
+ imageid + "&filetype=screenshot&imagewidth=original&screenshotnumber=" + screennumber;
/// set the mask
if (this.get('maskNode')) {
@@ -88,17 +88,17 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
var overlaytitle = Y.one('#imagetitleoverlay');
var previousimagelink = "<div id=\"previousarrow\" class=\"imagearrow\">←</div>";
var nextimagelink = "<div id=\"nextarrow\" class=\"imagearrow\">→</div>";
/// need to load the images in the overlay
var overlay = Y.one('#imageoverlay');
overlay.setContent('');
overlay.append(Y.Node.create('<div style="text-align:center"><img id=\"imagetodisplay\" src="' + url
+ '" style="max-height:' + maxheight + 'px;"></div>'));
this.overlay.destroy();
this.overlay = new M.core.dialogue({
headerContent:previousimagelink + '<div id=\"imagenumber\" class=\"imagetitle\"> Image '
headerContent:previousimagelink + '<div id=\"imagenumber\" class=\"imagetitle\"> Image '
+ screennumber + ' / ' + this.imageidnumbers[imageid] + ' </div>' + nextimagelink,
bodyContent:Y.one('#imageoverlay').get('innerHTML'),
visible: false, //by default it is not displayed
@@ -127,7 +127,7 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
if(overlaywidth > screenshot.width) {
overlaywidth = screenshot.width;
}
this.overlay.set('width', overlaywidth);
this.overlay.set("centered", true);
this.overlay.show();
@@ -196,4 +196,4 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
}, '@VERSION@', {
requires:['base','node','overlay', 'moodle-enrol-notification']
});
});
@@ -168,7 +168,7 @@ class block_completionstatus extends block_base {
$a = new stdClass();
$a->first = $prerequisites_complete;
$a->second = count($prerequisites);
$shtml .= get_string('firstofsecond', 'block_completionstatus', $a);
$phtml .= get_string('firstofsecond', 'block_completionstatus', $a);
$phtml .= '</td></tr>';
$shtml = $phtml . $shtml;
+4 -3
View File
@@ -478,7 +478,7 @@ M.core_dock.delayEvent = function(event, options, target) {
*/
M.core_dock.fixTitleOrientation = function(item, title, text) {
var Y = this.Y;
var title = Y.one(title);
if(M.core_dock.cfg.orientation != 'vertical') {
@@ -539,6 +539,7 @@ M.core_dock.fixTitleOrientation = function(item, title, text) {
svg.appendChild(txt);
title.append(svg);
title.append(Y.Node.create('<span class="accesshide">'+text+'</span>'));
item.on('dockeditem:drawcomplete', function(txt, title){
txt.setAttribute('fill', Y.one(title).getStyle('color'));
@@ -808,7 +809,7 @@ M.core_dock.genericblock.prototype = {
*/
initialise_block : function(Y, node) {
M.core_dock.init(Y);
this.Y = Y;
if (!node) {
return false;
@@ -918,7 +919,7 @@ M.core_dock.genericblock.prototype = {
// Register an event so that when it is removed we can put it back as a block
dockitem.on('dockeditem:itemremoved', this.return_to_block, this, dockitem);
dock.add(dockitem);
if (!this.skipsetposition) {
// save the users preference
M.util.set_user_preference('docked_block_instance_'+this.id, 1);
+9 -9
View File
@@ -4,7 +4,7 @@ if (is_file($CFG->dirroot.'/mod/feedback/lib.php')) {
define('FEEDBACK_BLOCK_LIB_IS_OK', true);
}
class block_feedback extends block_base {
class block_feedback extends block_list {
function init() {
$this->title = get_string('feedback', 'block_feedback');
@@ -21,10 +21,13 @@ class block_feedback extends block_base {
return $this->content;
}
$this->content = new stdClass;
$this->content->items = array();
$this->content->icons = array();
$this->content->footer = '';
if (!defined('FEEDBACK_BLOCK_LIB_IS_OK')) {
$this->content = new stdClass;
$this->content->text = get_string('missing_feedback_module', 'block_feedback');
$this->content->footer = '';
$this->content->items = array(get_string('missing_feedback_module', 'block_feedback'));
return $this->content;
}
@@ -33,9 +36,7 @@ class block_feedback extends block_base {
$courseid = SITEID;
}
$this->content = new stdClass;
$this->content->text = '';
$this->content->footer = '';
$icon = '<img src="'.$OUTPUT->pix_url('icon', 'feedback') . '" class="icon" alt="" />';
if (empty($this->instance->pageid)) {
@@ -47,8 +48,7 @@ class block_feedback extends block_base {
foreach ($feedbacks as $feedback) {
$url = new moodle_url($baseurl);
$url->params(array('id'=>$feedback->cmid, 'courseid'=>$courseid));
$icon = '<img src="'.$OUTPUT->pix_url('icon', 'feedback') . '" class="icon" alt="" />&nbsp;';
$this->content->text = ' <a href="'.$url->out().'">'.$icon.$feedback->name.'</a>';
$this->content->items[] = '<a href="'.$url->out().'">'.$icon.$feedback->name.'</a>';
}
}
@@ -119,6 +119,7 @@ class block_glossary_random extends block_base {
global $USER, $CFG, $DB;
if (empty($this->config->glossary)) {
$this->content = new stdClass();
$this->content->text = get_string('notyetconfigured','block_glossary_random');
$this->content->footer = '';
return $this->content;
@@ -153,7 +154,7 @@ class block_glossary_random extends block_base {
return $this->content;
}
$this->content = new stdClass;
$this->content = new stdClass();
$this->content->text = $this->config->cache;
// place link to glossary in the footer if the glossary is visible
+3
View File
@@ -72,6 +72,9 @@ class block_html_edit_form extends block_edit_form {
unset($this->block->config->text);
parent::set_data($defaults);
// restore $text
if (!isset($this->block->config)) {
$this->block->config = new stdClass();
}
$this->block->config->text = $text;
if (isset($title)) {
// Reset the preserved title
+1
View File
@@ -43,6 +43,7 @@ class block_login extends block_base {
$username = get_moodle_cookie();
$this->content = new stdClass();
$this->content->footer = '';
$this->content->text = '';
+2
View File
@@ -25,6 +25,8 @@ class block_mentees extends block_base {
return $this->content;
}
$this->content = new stdClass();
// get all the mentees, i.e. users you have a direct assignment to
if ($usercontexts = $DB->get_records_sql("SELECT c.instanceid, c.instanceid, u.firstname, u.lastname
FROM {role_assignments} ra, {context} c, {user} u
+3 -2
View File
@@ -192,9 +192,10 @@ class block_navigation extends block_base {
$options = array();
$options['linkcategories'] = (!empty($this->config->linkcategories) && $this->config->linkcategories == 'yes');
// Grab the items to display
$renderer = $this->page->get_renderer('block_navigation');
$this->content = new stdClass();
$this->content->text = $renderer->navigation_tree($navigation, $expansionlimit, $options);
// Set content generated to true so that we know it has been done
@@ -282,7 +283,7 @@ class block_navigation extends block_base {
* @return string The truncated string
*/
protected function trim_left($textlib, $string, $length) {
return '...'.$textlib->substr($string, $textlib->strlen($string)-$length);
return '...'.$textlib->substr($string, $textlib->strlen($string)-$length, $length);
}
/**
* Truncate a string from the right
+2 -2
View File
@@ -58,7 +58,7 @@ function xmldb_block_navigation_upgrade($oldversion, $block) {
if ($oldversion < 2010091400) {
$sql = "SELECT bp.id FROM {block_instances} bi
$sql = "SELECT bp.id FROM {block_instances} bi
LEFT JOIN {block_positions} bp ON bp.blockinstanceid=bi.id
WHERE bi.blockname='navigation' AND bp.visible=0";
$blockpositions = $DB->get_records_sql($sql);
@@ -76,4 +76,4 @@ function xmldb_block_navigation_upgrade($oldversion, $block) {
// Put any upgrade step following this
return true;
}
}
+7 -4
View File
@@ -1,7 +1,7 @@
<?php
class block_navigation_renderer extends plugin_renderer_base {
public function navigation_tree(global_navigation $navigation, $expansionlimit, array $options = array()) {
$navigation->add_class('navigation_node');
$content = $this->navigation_node(array($navigation), array('class'=>'block_tree list'), $expansionlimit, $options);
@@ -30,12 +30,14 @@ class block_navigation_renderer extends plugin_renderer_base {
$isexpandable = (empty($expansionlimit) || ($item->type > navigation_node::TYPE_ACTIVITY || $item->type < $expansionlimit) || ($item->contains_active_node() && $item->children->count() > 0));
$isbranch = $isexpandable && ($item->children->count() > 0 || ($item->has_children() && (isloggedin() || $item->type <= navigation_node::TYPE_CATEGORY)));
$hasicon = ((!$isbranch || $item->type == navigation_node::TYPE_ACTIVITY )&& $item->icon instanceof renderable);
$hasicon = ((!$isbranch || $item->type == navigation_node::TYPE_ACTIVITY || $item->type == navigation_node::TYPE_RESOURCE) && $item->icon instanceof renderable);
if ($hasicon) {
$icon = $this->output->render($item->icon);
$content = $icon.$content; // use CSS for spacing of icons
} else {
$icon = '';
}
$content = $icon.$content; // use CSS for spacing of icons
if ($item->helpbutton !== null) {
$content = trim($item->helpbutton).html_writer::tag('span', $content, array('class'=>'clearhelpbutton'));
}
@@ -57,6 +59,7 @@ class block_navigation_renderer extends plugin_renderer_base {
} else if ($item->action instanceof action_link) {
//TODO: to be replaced with something else
$link = $item->action;
$link->text = $icon.$link->text;
$link->attributes = array_merge($link->attributes, $attributes);
$content = $this->output->render($link);
$linkrendered = true;
@@ -113,4 +116,4 @@ class block_navigation_renderer extends plugin_renderer_base {
}
}
}
}
+14 -5
View File
@@ -19,10 +19,20 @@ class block_participants extends block_list {
$this->content->icons = array();
$this->content->footer = '';
/// MDL-13252 Always get the course context or else the context may be incorrect in the user/index.php
$currentcontext = $this->page->context;
// user/index.php expect course context, so get one if page has module context.
// Do explicit check on context as we don't want to throw any exception on context
// above course level.
$currentcontext = NULL;
if (($this->page->context->contextlevel == CONTEXT_COURSE) ||
($this->page->context->contextlevel == CONTEXT_MODULE) ||
($this->page->context->contextlevel == CONTEXT_BLOCK)) {
$currentcontext = get_course_context($this->page->context);
}
if ($this->page->course->id == SITEID) {
if (empty($currentcontext)) {
$this->content = '';
return $this->content;
} else if ($this->page->course->id == SITEID) {
if (!has_capability('moodle/site:viewparticipants', get_context_instance(CONTEXT_SYSTEM))) {
$this->content = '';
return $this->content;
@@ -33,6 +43,7 @@ class block_participants extends block_list {
return $this->content;
}
}
$icon = '<img src="'.$OUTPUT->pix_url('i/users') . '" class="icon" alt="" />&nbsp;';
$this->content->items[] = '<a title="'.get_string('listofallpeople').'" href="'.
$CFG->wwwroot.'/user/index.php?contextid='.$currentcontext->id.'">'.$icon.get_string('participants').'</a>';
@@ -46,5 +57,3 @@ class block_participants extends block_list {
}
}
@@ -51,6 +51,7 @@ class block_private_files extends block_base {
return null;
}
$this->content = new stdClass();
$this->content->text = '';
$this->content->footer = '';
if (isloggedin() && !isguestuser()) { // Show the block
+1 -1
View File
@@ -19,7 +19,7 @@
* Section links block
*
* @package moodlecore
* @Author Jason Hardin
* @Author Jason Hardin
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
+1
View File
@@ -129,6 +129,7 @@ class block_settings extends block_base {
}
$renderer = $this->page->get_renderer('block_settings');
$this->content = new stdClass();
$this->content->text = $renderer->settings_tree($this->page->settingsnav);
// only do search if you have moodle/site:config
+4
View File
@@ -47,6 +47,10 @@ class block_tags extends block_base {
return $this->content;
}
if (!isset($this->config)) {
$this->config = new stdClass();
}
if (empty($this->config->numberoftags)) {
$this->config->numberoftags = 80;
}
+10 -3
View File
@@ -292,9 +292,16 @@ class blog_entry {
$contentcell->text .= $OUTPUT->container_start('commands');
if (blog_user_can_edit_entry($this) && empty($this->uniquehash)) {
$contentcell->text .= html_writer::link(new moodle_url('/blog/edit.php', array('action' => 'edit', 'entryid' => $this->id)), $stredit) . ' | ';
$contentcell->text .= html_writer::link(new moodle_url('/blog/edit.php', array('action' => 'delete', 'entryid' => $this->id)), $strdelete) . ' | ';
if (blog_user_can_edit_entry($this)) {
if (empty($this->uniquehash)) {
//External blog entries should not be edited
$contentcell->text .= html_writer::link(new moodle_url('/blog/edit.php',
array('action' => 'edit', 'entryid' => $this->id)),
$stredit) . ' | ';
}
$contentcell->text .= html_writer::link(new moodle_url('/blog/edit.php',
array('action' => 'delete', 'entryid' => $this->id)),
$strdelete) . ' | ';
}
$contentcell->text .= html_writer::link(new moodle_url('/blog/index.php', array('entryid' => $this->id)), get_string('permalink', 'blog'));
+8 -1
View File
@@ -104,6 +104,11 @@ function blog_rss_get_params($filters) {
function blog_rss_get_feed($context, $args) {
global $CFG, $SITE, $DB;
if (empty($CFG->bloglevel)) {
debugging('Blogging disabled on this site, RSS feeds are not available');
return null;
}
if (empty($CFG->enablerssfeeds)) {
debugging('Sorry, RSS feeds are disabled on this site');
return '';
@@ -164,7 +169,9 @@ function blog_rss_get_feed($context, $args) {
$item->title = $blog_entry->subject;
$item->pubdate = $blog_entry->lastmodified;
$item->link = $CFG->wwwroot.'/blog/index.php?entryid='.$blog_entry->id;
$item->description = format_text($blog_entry->summary, $blog_entry->format);
$summary = file_rewrite_pluginfile_urls($blog_entry->summary, 'pluginfile.php',
$sitecontext->id, 'blog', 'post', $blog_entry->id);
$item->description = format_text($summary, $blog_entry->format);
if ( !empty($CFG->usetags) && ($blogtags = tag_get_tags_array('post', $blog_entry->id)) ) {
if ($blogtags) {
$item->tags = $blogtags;
+7 -4
View File
@@ -68,8 +68,8 @@ $event->count_repeats();
// Is used several times, and sometimes with modification if required
$viewcalendarurl = new moodle_url(CALENDAR_URL.'view.php', array('view'=>'upcoming'));
$viewcalendarurl->param('cal_y', date('Y', $event->timestart));
$viewcalendarurl->param('cal_m', date('m', $event->timestart));
$viewcalendarurl->param('cal_y', userdate($event->timestart, '%Y'));
$viewcalendarurl->param('cal_m', userdate($event->timestart, '%m'));
// If confirm is set (PARAM_BOOL) then we have confirmation of initention to delete
if ($confirm) {
@@ -121,7 +121,10 @@ echo $OUTPUT->box_end();
// Print the event so that people can visually confirm they have the correct event
$event->time = calendar_format_event_time($event, time(), null, false);
calendar_print_event($event, false);
$renderer = $PAGE->get_renderer('core_calendar');
echo $renderer->start_layout();
echo $renderer->event($event);
echo $renderer->complete_layout();
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
echo $OUTPUT->footer();
+3 -3
View File
@@ -168,9 +168,9 @@ if ($data) {
$params = array(
'view' => 'day',
'cal_d' => date('j', $event->timestart),
'cal_m' => date('n', $event->timestart),
'cal_y' => date('y', $event->timestart),
'cal_d' => userdate($event->timestart, '%d'),
'cal_m' => userdate($event->timestart, '%m'),
'cal_y' => userdate($event->timestart, '%Y'),
);
$eventurl = new moodle_url('/calendar/view.php', $params);
if (!empty($event->courseid) && $event->courseid != SITEID) {
+5 -3
View File
@@ -133,14 +133,16 @@ class event_form extends moodleform {
$mform->setDefault('repeats', 1);
$mform->disabledIf('repeats','repeat','notchecked');
} else if ($repeatedevents > 0) {
} else if ($repeatedevents) {
$mform->addElement('hidden', 'repeatid');
$mform->setType('repeatid', PARAM_INT);
$mform->addElement('header', 'repeatedevents', get_string('repeatedevents', 'calendar'));
$mform->addElement('checkbox', 'repeateditall', null, get_string('repeateditall', 'calendar', $repeatedevents), 'repeat');
$mform->setDefault('repeateditall', 'checked');
$mform->addElement('radio', 'repeateditall', null, get_string('repeateditall', 'calendar', $this->_customdata->event->eventrepeats), 1);
$mform->addElement('radio', 'repeateditall', null, get_string('repeateditthis', 'calendar'), 0);
$mform->setDefault('repeateditall', 1);
}

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