Compare commits

...

1435 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) cfb1f6f225 Moodle release 2.2.8 2013-03-08 19:59:24 +01:00
Eloy Lafuente (stronk7) 0c9dff5458 weekly release 2.2.7+ 2013-03-07 16:21:08 +01:00
Eloy Lafuente (stronk7) ab63c43a03 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2013-03-07 16:16:13 +01:00
Frederic Massart cb69d2584a MDL-37852 repository: Admins can't access user instances settings 2013-03-07 16:33:45 +08:00
Frederic Massart c512e94e7c MDL-37852 repository: Fixed missing capability error 2013-03-07 16:33:32 +08:00
Frederic Massart 103efbc271 MDL-37852 repository: Prevent user from deleting a site-wide instance 2013-03-07 14:39:37 +08:00
Rossiani Wijaya a28da5d9b8 MDL-37411 Note Module: additional patch to fixed undefined property for stable branches 2013-03-07 11:09:31 +08:00
AMOS bot 0b059029ac Automatically generated installer lang files 2013-03-06 00:36:59 +00:00
Rossiani Wijaya e13f286026 MDL-37411 Notes: unset courseid and userid when updating the note to prevent accidental changes. Thank you Sam Hemelryk for suggesting an alternative solution.
Conflicts:
	notes/edit.php
2013-03-06 09:40:21 +13:00
Frederic Massart 0053adbc38 MDL-37852 repository: Prevent undesired access to repositories settings 2013-03-05 09:58:05 +01:00
Frederic Massart 33c2fe2414 MDL-34284 library: Import ZF2012-01 security patch for Zend 2013-03-05 10:33:07 +08:00
Frederic Massart 5668eb3c94 MDL-36426 files: Undefined variable in Non-JS File Picker 2013-03-04 02:34:57 +01:00
Frederic Massart cbb31c9a55 MDL-36426 repository: Prevent login_as() users to access 2013-03-04 02:33:52 +01:00
Frederic Massart 46eec6e46b MDL-37681 repository_webdav: improved form handling when configuring an instance 2013-03-04 13:44:45 +13:00
Frederic Massart 93e9ea9989 MDL-37507 repositories: improved formatting of external resources 2013-03-04 13:28:24 +13:00
Mark Nielsen b3daaada49 MDL-36901: Remove system paths from exceptions
Replaces any server paths, like dataroot, with a token
in exception messages and debug info.

Conflicts:
	lib/tests/setuplib_test.php
2013-03-04 00:16:51 +01:00
Frederic Massart 4d3273387a MDL-37481 user: fixed bug when logged in as guest 2013-03-04 11:22:13 +13:00
AMOS bot 1d26931b32 Automatically generated installer lang files 2013-03-01 00:42:23 +00:00
Eloy Lafuente (stronk7) 8a407e29d6 weekly release 2.2.7+ 2013-02-28 15:48:55 +01:00
Eloy Lafuente (stronk7) 49025ce156 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2013-02-28 15:40:57 +01:00
Eloy Lafuente (stronk7) 87fe3c030d MDL-38003 upgrade: whitespace fix. 2013-02-26 03:13:36 +01:00
Eloy Lafuente (stronk7) 6b068d6643 Merge branch 'MDL-38003_m22' of https://github.com/markn86/moodle into MOODLE_22_STABLE 2013-02-26 03:02:19 +01:00
AMOS bot e54450752b Automatically generated installer lang files 2013-02-25 00:39:49 +00:00
Damyon Wiese 1639a2c9de weekly release 2.2.7+ 2013-02-22 10:57:15 +08:00
AMOS bot d61b05d7c8 Automatically generated installer lang files 2013-02-20 00:45:28 +00:00
Mark Nelson 01dd8c9b07 MDL-38003 upgrade: ensure specific columns are set to not null during upgrade from < 1.7 to 2.x 2013-02-15 15:46:18 +08:00
Damyon Wiese 2a9af190b5 weekly release 2.2.7+ 2013-02-14 14:02:21 +08:00
Damyon Wiese 955980b238 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2013-02-14 14:00:53 +08:00
AMOS bot 32bf9aac97 Automatically generated installer lang files 2013-02-14 00:50:00 +00:00
David Mudrák e97b667744 MDL-37774 Do not pass trailing slash if the method does not want it 2013-02-10 01:57:36 +01:00
David Mudrák a7b8726121 MDL-37774 Make moodle1_file_manager::migrate_directory() support trailing slash in rootpath
As the $rootpath is concatenated with the $relpath, we would end with a
path like course_files//file.txt. Such a path is detected as not-valid
later and an error would be thrown.

So the patch makes sure that the trailing slash is cut off and a
debugging for the developer is displayed.
2013-02-10 01:57:35 +01:00
AMOS bot 6158a4aed5 Automatically generated installer lang files 2013-02-10 00:41:43 +00:00
David Mudrák bf46548670 MDL-37774 Add unit test to illustrate the problem with the trailing slash
The patch introduces two new tests for moodle1_file_manager::migrate_directory().
The second test with the trailing slash reveals the trouble here.
The expected behaviour is that the method would deal with the trailing
slash. Debugging message for the developer should be displayed though.
2013-02-08 13:16:31 +01:00
Damyon Wiese c9d6862b99 weekly release 2.2.7+ 2013-02-08 11:20:42 +08:00
AMOS bot 14ac8b4e39 Automatically generated installer lang files 2013-02-08 00:45:20 +00:00
Eloy Lafuente (stronk7) a1a63ea0a0 weekly release 2.2.7+ 2013-01-31 11:00:49 +01:00
Eloy Lafuente (stronk7) 60b1ed1303 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2013-01-31 10:44:46 +01:00
Petr Škoda 0c39b19942 MDL-37155 fix course sortorder to prevent problems in later unsigned migration 2013-01-26 11:11:48 +01:00
AMOS bot 1efcb6eb24 Merge branch 'MOODLE_22_STABLE' into install_22_STABLE 2013-01-26 00:50:51 +00:00
Dan Poltawski 8c40b4ea9d weekly release 2.2.7+ 2013-01-25 15:58:58 +08:00
AMOS bot b7e018969b Automatically generated installer lang files 2013-01-24 00:46:52 +00:00
Mark Nelson ba3f753cf7 MDL-33652 mod_resource: fixed issue with max filenames in 1.9 breaking temp column during upgrade 2013-01-21 17:53:44 +08:00
AMOS bot 2fa4b2c6e0 Automatically generated installer lang files 2013-01-21 00:44:56 +00:00
Dan Poltawski 33ba00557f weekly release 2.2.7+ 2013-01-18 14:32:49 +08:00
Eloy Lafuente (stronk7) e3a2abd60f Merge branch 'MDL-37485_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2013-01-14 23:22:13 +01:00
Eloy Lafuente (stronk7) b09baf94b9 Moodle release 2.2.7 2013-01-11 22:20:41 +01:00
Tim Hunt 406f11ff77 MDL-37485 plugins overview: require_login before _capability. 2013-01-11 12:58:43 +00:00
Eloy Lafuente (stronk7) e40ed81577 weekly release 2.2.6+ 2013-01-11 12:32:06 +01:00
Eloy Lafuente (stronk7) 696adcdc71 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2013-01-11 12:17:06 +01:00
Eloy Lafuente (stronk7) d90030f1c7 MDL-37420 rework pg schema (partial backport of 92b00c3) 2013-01-11 10:34:34 +01:00
David Mudrák 52f9e3ee56 MDL-37467 Do not provide blog posts via RSS when blogging is disabled 2013-01-10 18:17:42 +01:00
Eloy Lafuente (stronk7) dc21606e4f Merge branch 'MDL-36741_m22' of git://github.com/markn86/moodle into MOODLE_22_STABLE 2013-01-10 11:13:57 +01:00
Mark Nelson 8946805511 MDL-36741 mod_forum: fixed the function forum_rss_newstuff that was using count_records_sql incorrectly as well as generating RSS content when no data exists 2013-01-10 18:00:38 +08:00
Andrew Robert Nicols c7fbbf73e3 MDL-36600 Add missing sesskey check when previewing the message 2013-01-10 10:20:27 +08:00
Dan Poltawski ac7efafb83 MDL-35991 - fix incorrect returnurl type
good catch, Adrian!
2013-01-10 09:46:03 +08:00
Jason Fowler 0bd4649a36 MDL-31824 - Calendar - Fixing HTML classes fopr calendar month view - patch provided by Mark Ward 2013-01-09 09:52:30 +08:00
Eloy Lafuente (stronk7) 9d940d6096 Merge branch 'w51_MDL-37420_m22_pgschema' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2013-01-09 01:33:52 +01:00
Andrew Robert Nicols deaaa6f62f MDL-36600 user: improve course messaging checks 2013-01-09 09:23:07 +13:00
Petr Škoda 574fcfba8a MDL-37152 remove bogus $mail->IsSMTP() breaking non-smtp mailing
Credit goes to Aurelijus Bruzas, thanks.
2013-01-08 18:03:59 +01:00
Petr Škoda 3b40fbf61d MDL-37420 add support for more PostgreSQL schemas 2013-01-08 17:59:00 +01:00
Jason Fowler 591b34218c MDL-36620 - Blog, RSS - Preventing Guests from viewing the RSS of site level blogs
Conflicts:
	blog/rsslib.php
2013-01-08 14:08:07 +08:00
David Mudrák 890066d6dc MDL-36977 Be more picky when it comes to migrating files in moodle1 backups 2013-01-08 08:54:44 +08:00
David Mudrák ca0ae78e00 MDL-36977 Add more unit tests for moodle1 backup conversion 2013-01-08 08:54:44 +08:00
Ankit Agarwal 53459511a9 MDL-33340 completion: Incorrect logic in hidden field check
Credit to Jody Steele
2013-01-07 10:37:47 +08:00
Simon Coggins b0f20bc995 MDL-35991 - use PARAM_LOCALURL for local urls
Conflicts:
	user/files.php
2013-01-07 10:12:49 +08:00
Sam Hemelryk 4e805e91c7 Merge branch 'MDL-37161-moodle22' of https://github.com/StudiUM/moodle into MOODLE_22_STABLE 2013-01-07 14:13:55 +13:00
Sam Hemelryk e6f5bd2633 Merge branch 'MDL-37068_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2013-01-07 13:39:32 +13:00
Charles Fulton 3e794304dc MDL-4781 forum: show discussion link when user has ability to view discussion
Conflicts:
	mod/forum/lib.php
2013-01-07 11:18:15 +13:00
Sam Hemelryk 75c6461ac1 Merge branch 'MDL-16730-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2013-01-07 10:14:40 +13:00
Sam Hemelryk 0fbadb557b Merge branch 'w51_MDL-37280_m22_langstring' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2013-01-07 10:01:13 +13:00
Sam Hemelryk 146b7ac600 Merge branch 'MDL-36741_m22' of git://github.com/markn86/moodle into MOODLE_22_STABLE 2013-01-07 09:15:21 +13:00
Jean-Philippe Gaudreau d14e5a71c0 MDL-37161 Backup: Database error caused by grade book settings when importing or restoring a course 2013-01-04 09:51:55 -05:00
Ankit Agarwal 4ad011d041 MDL-27884 Implement proper username validation during csv import 2013-01-02 14:10:03 +08:00
AMOS bot 34c99fb91f Automatically generated installer lang files 2013-01-01 00:43:02 +00:00
Eloy Lafuente (stronk7) 3b7cb72535 weekly release 2.2.6+ 2012-12-30 01:04:20 +01:00
Dan Poltawski 13892dbcf2 MDL-36680 - fix bad whitespace 2012-12-24 11:27:44 +08:00
Dan Poltawski f7128b89bf Merge branch 'MDL-37146_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-12-24 11:27:02 +08:00
Dan Poltawski 1453ae5bf3 Merge branch 'wip-MDL-37290-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-12-24 10:55:46 +08:00
Dan Poltawski 7f44175aed Merge branch 'w51_MDL-37283_m22_spell' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-12-24 10:36:06 +08:00
Sam Hemelryk 5c6c90e3c8 MDL-37290 course: fixed up navbar when editing categories 2012-12-24 13:07:25 +13:00
Sam Hemelryk 9c829ef34a Merge branch 'wip-MDL-35833-stable22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-12-24 11:43:27 +13:00
Sam Hemelryk 34950b3d64 MDL-25928 course: fixed use of lang_string 2012-12-24 10:08:04 +13:00
Sam Hemelryk 7093fdd806 Merge branch 'wip-MDL-35653-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-12-24 09:40:24 +13:00
Petr Škoda 6fac8f7f04 MDL-37283 import tinymce spellchecker 2.0.6.1 2012-12-22 16:50:09 +01:00
Tim Hunt bae87ddc80 MDL-37068 qformat_learnwise: fix UTF8 and other issues. 2012-12-22 15:15:09 +00:00
Petr Škoda 7d7e562296 MDL-37280 remove bogus lang_string causing fatal error
Credit goes to Lorenzo Nicora, thanks.
2012-12-22 14:03:00 +01:00
Eloy Lafuente (stronk7) 8f1b34c69e weekly release 2.2.6+ 2012-12-20 21:11:27 +01:00
Jason Fowler 7c7412b74e MDL-35833 - Blocks - Adding alt and title attributes to the docked-block panel close button 2012-12-20 10:40:28 +08:00
Tim Hunt ab0ab933be MDL-32245 question bank: update URL after moving question between categories.
Also, improve the URL when you go to edit the questions in a category.
2012-12-20 12:12:42 +13:00
Adrian Greeve 2e22e64954 MDL-35653 - mod/wiki: Force format now lets users edit wiki pages.
Thanks to Tõnis Tartes for part of this solution.

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

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

I also have included a check to see if the title is default and whether
the user has permission to view all groups. In these situations the
intermediate page is displayed.
2012-12-19 08:57:40 +08:00
Eloy Lafuente (stronk7) 11c826cb47 MDL-36245 add tests for the buggy utf-8 to utf-8 conversion 2012-12-18 23:49:21 +01:00
Petr Škoda 30075232af MDL-36245 try to workaround buggy iconv() when converting text from utf-8 to utf-8 2012-12-18 23:43:51 +01:00
Dan Poltawski a7cc54ab1b Merge branch 'MDL-37014_webdav_folders_22' of git://github.com/davosmith/moodle into MOODLE_22_STABLE 2012-12-18 14:52:59 +08:00
Dan Poltawski 782820ceaf MDL-30899 - fix incorrect whitespace 2012-12-18 09:15:53 +08:00
Dan Poltawski 07a01b746c Merge branch 'MDL-30899_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-12-18 09:11:41 +08:00
Petr Škoda e1263ce41d MDL-37171 fix multiple spreadsheet related PHP4isms 2012-12-18 00:15:34 +01:00
Adrian Fish 933cf2e115 MDL-37035 Pass user locale after course locale. 2012-12-18 10:32:33 +13:00
Sam Hemelryk e49fea7d9b Merge branch 'MDL-37176_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-12-18 10:11:53 +13:00
Sam Hemelryk b61c5fa26b Merge branch 'MDL-35530_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-12-18 10:06:54 +13:00
Sam Hemelryk 5ac84901f0 Merge branch 'wip-MDL-35056-stable22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-12-18 09:56:48 +13:00
Sam Hemelryk 54d50fdb8d Merge branch 'MDL-32245_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-18 09:51:20 +13:00
Sam Hemelryk c64089e155 MDL-36812 grader_report: Fixed whitespace on integration 2012-12-18 09:48:12 +13:00
Nadav Kavalerchik 12a3a0bc61 MDL-36812 - Enabling grade_report_fixedstudents, shows the user's list on the left side of the page, in RTL mode (theme/standard) 2012-12-18 09:48:12 +13:00
Sam Hemelryk 3ed2c641f4 Merge branch 'MDL-29733_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-12-18 09:41:52 +13:00
Dan Poltawski 37e91e0731 Merge branch 'MDL-37114_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-17 15:25:45 +08:00
Dan Poltawski 9205de2fd8 Merge branch 'w50_MDL-36597_m22_courselang' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-12-17 13:54:03 +08:00
Dan Poltawski 2a24377350 Merge branch 'MDL-29334_m22' of git://github.com/markn86/moodle into MOODLE_22_STABLE 2012-12-17 13:48:36 +08:00
Dan Poltawski 6c974b2d65 Merge branch 'wip-MDL-25928-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-12-17 12:05:26 +08:00
Dan Poltawski dabaa04e29 Merge branch 'wip-MDL-35874-stable22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-12-17 11:53:18 +08:00
Dan Poltawski 1f42fb1443 Merge branch 'wip-MDL-35979-s22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-12-17 11:48:56 +08:00
Sam Hemelryk 278f612b40 MDL-25928 course: Fixed course info on the combo list to be a popup 2012-12-17 16:03:48 +13:00
Petr Škoda a6989dc3ea MDL-36597 strip '_utf8' from all course.lang fields 2012-12-15 11:21:05 +01:00
Joseph Rezeau 29c1067b68 MDL-37114 quiz form validation: feedback boundaries.
The feedback boundaries must either be a number or a percentage.
We were not correctly validating the non-percentage case.
2012-12-15 10:07:19 +00:00
Tim Hunt 1e6fd4f6d2 MDL-32245 question bank: fix coding style in categories.php 2012-12-15 10:06:59 +00:00
Thanh Le 23a3569569 MDL-32245 question bank: fix moving categories between contexts. 2012-12-15 10:06:58 +00:00
Eloy Lafuente (stronk7) 270b9df833 MDL-37176 timezones: updated to 2012j 2012-12-14 20:09:16 +01:00
Eloy Lafuente (stronk7) 041a234f6a weekly release 2.2.6+ 2012-12-14 13:29:57 +01:00
Andrew Davis 6a69966c18 MDL-36680 core_grade: fixed grade_report::blank_hidden_total() 2012-12-14 08:03:20 +08:00
Eloy Lafuente (stronk7) ef3f003a76 Merge branch 'MDL-30700-22' of git://github.com/damyon/moodle into MOODLE_22_STABLE 2012-12-13 10:32:50 +01:00
Jason Fowler 40f1fe9893 MDL-35874 - Blocks - Adding a label to the 'Add a block' block's select field 2012-12-13 15:10:42 +08:00
Dan Poltawski 25e3fc90ae Merge branch 'MDL-36321_message_participants_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-12-13 13:43:17 +08:00
Andrew Davis 4278ea3617 MDL-36321 core_message: made the course participants list correctly show if course participants are contacts or not 2012-12-13 11:12:33 +08:00
Jason Fowler 0ae3b07d83 MDL-35056 - Backup/Restore - Converting the 'Unmet Dependencies' Message to be a Developer Debug message to make moodle less confusing to the average user 2012-12-13 11:12:13 +08:00
Dan Poltawski fb7bc97d3e Merge branch 'MDL-36897_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-13 10:04:50 +08:00
Damyon Wiese b431d0717e MDL-30700 tablelib: Fixed get_sort_for_table to work with text sorting columns for oracle
This change stores the list of columns that require text sorting in the session,
so the static function "get_sort_for_table" can work without any additional parameters.
2012-12-13 09:59:30 +08:00
Davo Smith a0d9283306 MDL-37014 repository_webdav - strip the server URL from file & folder paths returned by webdav lib (if present)
Conflicts:
	repository/webdav/lib.php
2012-12-12 08:43:58 +00:00
Tim Hunt 347a5af6a2 MDL-36897 quiz review: fixup previous commit. 2012-12-12 08:14:07 +00:00
Mark Nelson 9a48481915 MDL-29334 mod_data: if site-wide presets created in <= 1.9 exist convert them to 2.x 2012-12-12 13:03:20 +08:00
Dan Poltawski 3c885787c9 Merge branch 'wip-MDL-33448-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-12-12 09:38:15 +08:00
Sam Hemelryk 9aca16cc0f Merge branch 'MDL-27619_22' of git://github.com/pauln/moodle into MOODLE_22_STABLE 2012-12-12 11:09:20 +13:00
Sam Hemelryk 526c2d601c MDL-29805 redirect: added check REQUIRE_CORRECT_ACCESS is true 2012-12-12 09:47:04 +13:00
Sam Hemelryk 05e6fefd56 Merge branch 'MDL-29805-22' of git://github.com/mouneyrac/moodle into MOODLE_22_STABLE 2012-12-12 09:44:14 +13:00
Sam Hemelryk 6896e438c1 Merge branch 'MDL-35593-22' of git://github.com/mouneyrac/moodle into MOODLE_22_STABLE 2012-12-12 09:38:14 +13:00
Sam Hemelryk 2a5953c545 Merge branch 'wip_22_mdl-37088_bad_operator_ldap_sync_user' of https://github.com/iarenaza/moodle into MOODLE_22_STABLE 2012-12-12 09:34:19 +13:00
Eloy Lafuente (stronk7) e6e5a4d219 Merge branch 'MDL-30700-22' of git://github.com/damyon/moodle into MOODLE_22_STABLE 2012-12-11 20:00:16 +01:00
Dan Poltawski f69decef93 Merge branch 'MDL-36243_22' of git://github.com/jmvedrine/moodle into MOODLE_22_STABLE 2012-12-11 16:24:42 +08:00
Dan Poltawski 395e4069e1 Merge branch 'wip-MDL-36108-stable22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-12-11 16:03:51 +08:00
Jason Fowler acb4fe8ac2 MDL-36108 - Blocks - Online User block's user image's alt attribute is now empty to prevent repetition of text for screen readers 2012-12-11 15:52:03 +08:00
Damyon Wiese eee49d735c MDL-30700 Assignment 2.2: Added text_sorting function to tablelib
Allows oracle to sort by text (clob) columns (should be used sparingly).
2012-12-11 15:44:36 +08:00
Dan Poltawski e93213e2e0 Merge branch 'MDL-36897_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-11 13:54:33 +08:00
Dan Poltawski 3b36eaac60 Merge branch 'MDL-36845_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-11 11:59:04 +08:00
Dan Poltawski e89bf76523 Merge branch 'wip-MDL-36110-s22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-12-11 11:33:30 +08:00
Sam Hemelryk f352dcddba Merge branch 'MDL-36650_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-11 16:11:04 +13:00
Dan Poltawski 12a90d7af0 Merge branch 'MDL-36025-negative-zero-MOODLE_22_STABLE' of git://github.com/mpetrowi/moodle into MOODLE_22_STABLE 2012-12-11 11:06:59 +08:00
Petr Škoda 5a0ac061b2 MDL-31424 compare PayPal emails case-insensitively
Credit goes to Chris Follin, thanks!
2012-12-11 10:32:39 +08:00
Sam Hemelryk a4982907f8 Merge branch 'MDL-36942_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-11 15:04:11 +13:00
Sam Hemelryk 7439256bbd Merge branch 'MDL-36954_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-11 14:59:45 +13:00
Dan Poltawski 4c34df5e5c Merge branch 'MDL-36773-22' of git://github.com/mouneyrac/moodle into MOODLE_22_STABLE 2012-12-11 09:56:58 +08:00
Petr Škoda 0e847049b5 MDL-37061 always validate lang when setting session user
This should resolve problems with TinyMCE langs and some unknown MUCH caching issue.
2012-12-11 14:44:44 +13:00
Petr Škoda cb4193da9f MDL-29442 add missing utf-8 to entity html encoding and decoding 2012-12-11 10:23:31 +13:00
Sam Hemelryk 79b123d1be Merge branch 'MDL-36601-MOODLE_22_STABLE' of git://git.luns.net.uk/moodle into MOODLE_22_STABLE 2012-12-11 09:41:29 +13:00
Sam Hemelryk 6575ae513f Merge branch 'MDL-36805-MOODLE_22_STABLE' of git://git.luns.net.uk/moodle into MOODLE_22_STABLE 2012-12-11 09:14:47 +13:00
Iñaki Arenaza 62d0c271b9 MDL-37088 auth_ldap: bad operator in ldap sync_user() method 2012-12-10 16:47:03 +01:00
Andrew Robert Nicols b5dc3a57f7 MDL-36805 Correct docs for workshop_grade_item_update in mod_workshop
The documentation suggested that the modname field should be present on the
$workshop parameter when this is not required. It is not used in any point
in the function and the $workshop variable is never passed to another
function which may use it.
2012-12-10 12:29:13 +00:00
Dan Poltawski 6c0bdc4d58 Merge branch 'MDL-36732_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-10 15:18:34 +08:00
Dan Poltawski b93c5e3ed9 Merge branch 'MDL-36742_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-10 14:41:57 +08:00
Dan Poltawski f5c44fd053 Merge branch 'MDL-36538_webdav_memory_22' of git://github.com/davosmith/moodle into MOODLE_22_STABLE 2012-12-10 13:13:20 +08:00
Dan Poltawski 9d95db7ecd Merge branch 'w49_MDL-35456_m22_paypal' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-12-10 12:03:57 +08:00
Dan Poltawski 146e1cd674 Merge branch 'MDL-35404_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-12-10 11:37:00 +08:00
Sam Hemelryk 59fef8ff26 Merge branch 'MDL-30961-22' of git://github.com/mouneyrac/moodle into MOODLE_22_STABLE 2012-12-10 14:59:19 +13:00
Sam Hemelryk 7c1b3e2523 Merge branch 'MDL-34592_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-12-10 14:28:10 +13:00
Sam Hemelryk ba66ee7523 Merge branch 'MDL-36978_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-12-10 14:20:58 +13:00
Mark Nielsen 5a1922cd24 MDL-36579: Adding missing fields in mod/lti backup 2012-12-10 14:16:41 +13:00
Mary Evans 8934bcdc59 MDL-34592 theme_magazine: Fixes the report grader fixed column misalignment in magazine/style/core.css theme, plus fixes all CORE themes with minor adjustment to grade/report/grader/style.css 2012-12-10 00:15:14 +00:00
Dan Poltawski be044b6473 MDL-36764 ddl/oracle: fix misleading comment 2012-12-10 11:55:14 +13:00
Sam Hemelryk 9c11280dc9 Merge branch 'MDL-36778-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-12-10 11:51:08 +13:00
Sam Hemelryk 180a9220e9 Merge branch 'MDL-36640-MOODLE_22_STABLE' of git://git.luns.net.uk/moodle into MOODLE_22_STABLE 2012-12-10 11:42:22 +13:00
Sam Hemelryk 7c3ff6f6a6 Merge branch 'message_nav_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-12-10 10:58:37 +13:00
Sam Hemelryk 4d0eabf19e Merge branch 'MDL-36761_loop_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-12-10 10:53:47 +13:00
Sam Hemelryk 9980628209 Merge branch 'MDL-34591_22' of git://github.com/grabs/moodle into MOODLE_22_STABLE 2012-12-10 10:48:19 +13:00
Sam Hemelryk 59fdbc53b2 Merge branch 'wip-MDL-35221-MOODLE_22_STABLE' of git://github.com/kwiliarty/moodle into MOODLE_22_STABLE 2012-12-10 10:41:11 +13:00
Sam Hemelryk e32da64ee4 Merge branch 'wip-MDL-36906-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-12-10 10:33:20 +13:00
Sam Hemelryk 624e1d1197 Merge branch 'wip-MDL-36915-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-12-10 10:26:55 +13:00
Sam Hemelryk 0cdd8fe9d4 Merge branch 'wip-MDL-37026-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-12-10 10:23:25 +13:00
Sam Hemelryk 6b02b455a4 Merge branch 'MDL-33125_22' of git://github.com/aolley/moodle into MOODLE_22_STABLE 2012-12-10 10:19:13 +13:00
Andreas Grabs 8ade0c35bd MDL-34591 - paypal does not allow unenrol 2012-12-09 19:06:51 +01:00
Mary Evans 0248eee129 MDL-36978 theme_standardold: fixes misplaced block region check in layout/frontpage.php which, with hindsight should have been fixed in MDL-23226. 2012-12-08 22:57:07 +00:00
Jean-Michel Vedrine 29d1e1ff76 MDL-36243 question->questiontext and question->generalfeedback should always be strings 2012-12-08 20:44:01 +01:00
Petr Škoda 61cbbebadc MDL-35456 use HTTP 1.1 for PayPal IPN 2012-12-08 12:00:54 +01:00
Eloy Lafuente (stronk7) c274d5eef9 weekly release 2.2.6+ 2012-12-08 02:54:28 +01:00
Davo Smith 280f513434 MDL-36538 repository_webdav - save files directly to local filesystem, rather than buffering in memory
Conflicts:
	repository/webdav/lib.php
2012-12-07 09:30:53 +00:00
Adrian Greeve 6ebf0d9c1e MDL-37026 - lib: The function user_can_assign() returns true for admins. 2012-12-06 11:09:39 +08:00
Jason Fowler fec9977741 MDL-35979 - Commenting - Adding an empty alt attribute to the javascript generated delete icon for comments 2012-12-05 10:04:34 +08:00
Jason Fowler 589591b8c7 MDL-36110 - Blocks - Community finder icon alt attribute is now empty 2012-12-04 15:18:47 +08:00
Jerome Mouneyrac a8c99982fb MDL-29805 add REQUIRE_CORRECT_ACCESS define + return error code when AJAX_SCRIPT fails 2012-12-04 13:43:02 +08:00
Jerome Mouneyrac 9c931ad074 MDL-35593 core_webservice_get_site_info returns version number set to PARAM_TEXT and PARAM_FLOAT 2012-12-03 10:24:41 +08:00
Sam Hemelryk 0ae2507ea7 MDL-33448 enrol_manual: Reduced JS get_string calls for the yui widget 2012-12-03 09:28:11 +13:00
Sam Hemelryk 44e094d1ec MDL-33448 enrol_manual: Reordered things to improve JS performance when enrolling users
Conflicts:

	enrol/manual/yui/quickenrolment/quickenrolment.js
2012-12-03 09:28:11 +13:00
AMOS bot b98bc17196 Automatically generated installer lang files 2012-12-01 00:43:09 +00:00
Tim Hunt e625e18bfc MDL-36954 question bank: stop centring question name.
This was a regression caused by MDL-21625. These CSS changes
put the display back to how it was, while leaving the table
cell as a TD  for accessibility.
2012-11-30 16:33:56 +00:00
Tim Hunt b85c0bee53 MDL-36942 xml question import: don't add spaces.
They are not necessary anyway, there is a \n character at the end of
each line.

Thanks to Richard Lobb for fining the problem and how to fix it.
2012-11-30 14:57:34 +00:00
Tim Hunt 7192907607 MDL-36897 quiz: redirect teachers from summary to review page.
There is already logic like this at the top of attempt.php. If the
teacher arrives at one of these pages for a student's attempt, for
example by clicking a link in the logs, then they should be redirected
to the review page to see the students attempt in its current state.
2012-11-30 14:57:19 +00:00
Tim Hunt f196602737 MDL-36845 excel export: don't output invalid sheet names.
We should clean any proposed worksheet name, to remove the characters
that Excel does not allow.
2012-11-30 14:57:03 +00:00
Tim Hunt 895e1baad6 MDL-36742 question bank: get rid of flicker during page load.
Thanks to Frédéric Massart for working out the fix to this.
2012-11-30 14:56:47 +00:00
Tim Hunt ad65910119 MDL-36732 Cloze qtype: review marks should not depend on feedback.
The various review options should be independent.
2012-11-30 14:56:27 +00:00
Tim Hunt dfa6ca9813 MDL-36650 don't change question timecreated or timemodified on restore. 2012-11-30 14:56:10 +00:00
Tim Hunt 30ebefd416 MDL-35404 question export: make it work with slasharguments off.
Thanks to Brian King for working out the problem and how to fix it. I am
just committing his patch.
2012-11-30 14:55:52 +00:00
Eloy Lafuente (stronk7) 15b3a4398a weekly release 2.2.6+ 2012-11-30 13:25:53 +01:00
Jerome Mouneyrac 3fd3efac7b MDL-30961 get_course_contents: returned activity name should not be check against PARAM_TEXT, it could be anything 2012-11-30 14:25:48 +08:00
Dan Poltawski 0e19f8ed3b MDL-36778 course - prevent undefined index warnings
When logged in as a guest the mform didn't set userid.
2012-11-30 12:29:17 +08:00
Andrew Davis 26bc714f1f MDL-36761 core_grade:shifted a call to count() out of a loop 2012-11-30 11:10:07 +08:00
Jerome Mouneyrac ab1623b87b MDL-36773 timezone inconsistency => some number support decimal other don\'t - Original patch author: Nathan Mares 2012-11-30 10:14:39 +08:00
Adrian Greeve 96004c8bbc MDL-36915 - mod/data: A database with no entries no longer displays the export to portfolio button. 2012-11-30 10:13:02 +08:00
Dan Poltawski 20f39d0f98 Revert "MDL-36838 moodle->mahara mnet SSO failure in FF17"
Firefox have now decided to reverse their UA change (since integration)
and this patch has some minor drawbacks.

This reverts commit b5a0e3befb.
2012-11-30 09:25:37 +08:00
Kevin Wiliarty ce98dd3191 MDL-35221 mod_feedback: replace checkbox with advcheckbox for all requirable feedback question types 2012-11-29 12:39:46 -05:00
Andrew Robert Nicols acfcf342d5 MDL-36601 Ensure that reports remember all days setting
All Days was set as the nothing value, but this nothing value was used.
Additionally, an insufficient comparison meant that the selecteddate then
became Today.
2012-11-29 09:58:22 +00:00
Adrian Greeve 8e223e56cb MDL-36906 - mod_data: Latitude and Logitude error fix.
Thanks to Marcus Boon for providing a patch for this issue.

mod/data/field/latlong/kml.php was missing a context variable.
This was causing an error when trying to download a kml file for
google earth. This variable has now been included.
2012-11-29 14:48:50 +08:00
Dan Marsden 425475981c MDL-36858 SCORM: improve lang help for attempts grading to warn about failed status. 2012-11-29 12:54:00 +08:00
Dan Poltawski c993fe8d88 Merge branch 'MDL-36838-FF17-MNETSSO-22' of git://github.com/peterbulmer/moodle into MOODLE_22_STABLE 2012-11-28 17:36:20 +08:00
Sam Hemelryk e6ee93d1a3 Merge branch 'MDL-36336_MOODLE_22_STABLE' of git://github.com/moodlerooms/moodle into MOODLE_22_STABLE 2012-11-28 11:47:41 +13:00
Sam Hemelryk 479f5b6e6d Merge branch 'wip-mdl-36238-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-11-28 11:40:30 +13:00
Aparup Banerjee fbef42576b Merge branch 'MDL-36841_m22' of git://github.com/markn86/moodle into MOODLE_22_STABLE 2012-11-27 14:57:31 +08:00
David Monllao a84f961376 MDL-30899 moodle-enrol-notification Adding H1 to notifications headers 2012-11-27 14:49:50 +08:00
David Monllao 8b857b293d MDL-30899 block_community Changing from overlay to panel references 2012-11-27 14:49:50 +08:00
David Monllao 49ea1f622b MDL-30899 moodle-enrol-notification Replacing Y.Overlay for Y.Panel
References to lightbox are still there to maintain the same
external API but are converted to a modal attribute internally,
same with closeButton, not it uses the Y.Panel close button
2012-11-27 14:49:50 +08:00
Dan Poltawski 19fad758a1 Merge branch 'MDL-34695_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-11-27 14:23:52 +08:00
Mark Nelson e3ad8a5d2c MDL-36841 portfolio: ensure variables in parent function match those of childs to prevent strict standard error 2012-11-27 14:14:04 +08:00
Dan Poltawski 6a992d7d86 Merge branch 'MDL-36302-22' of git://github.com/damyon/moodle into MOODLE_22_STABLE 2012-11-27 14:10:14 +08:00
Damyon Wiese efc8baaaa2 MDL-36302 course: Set correct URL on settings page for navigation. 2012-11-27 14:05:12 +08:00
Dan Poltawski 24d215d340 Merge branch 'MDL-36806_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-11-27 13:26:54 +08:00
Aparup Banerjee fee4404aba Merge branch 'wip-mdl-36767-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-11-27 12:20:39 +08:00
Rajesh Taneja 152ae1ffdd MDL-36767 Administration: user_filter_yesno use different name for sql filter
user_filter_yesno extends user_filter_simpleselect, so if user bulk action filter has both
user_filter_simpleselect and user_filter_yesno, they use the same filter name but counter is
different as they are different classes. Hence using different filter name will avoid confilts
2012-11-27 11:59:58 +08:00
Aparup Banerjee 385cddf634 Merge branch 'MDL-36305-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-11-27 11:53:20 +08:00
Peter Bulmer b5a0e3befb MDL-36838 moodle->mahara mnet SSO failure in FF17
In MDL-36838 Firefox 17 users are unable to sso from moodle to mahara.

Firefox 17 uses a different user agent (UA) string for Moodle sites than it
does for Mahara or other sites.
This patch relaxes the check which previously required that the UA string
being presented to the SP on landing matched the UA string presented to the IP
when jumping.
Likewise, checks associated with logout calls have been relaxed
2012-11-27 16:20:17 +13:00
Sam Hemelryk 8725c4401b Merge branch 'wip-MDL-36795-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-11-27 11:21:46 +13:00
Sam Hemelryk d6347b056d Merge branch 'MDL-36760_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-11-27 10:40:20 +13:00
Paul Nicholls 8c27cc9534 MDL-27619: Prevent teachers from turning course Outcomes into site-wide ones
Similar to the issue which allowed teachers to create site-wide scales by editing a course-specific scale (MDL-24682), teachers could also promote a course-specific scale to a site-wide (standard) by editing it.  As with MDL-24682, removing the course ID check (leaving just the capability check) prevents this unauthorised creation of site-wide (standard) outcomes.
2012-11-27 10:08:15 +13:00
Adrian Greeve 0ceb918703 MDL-36795 - lib / administration: maxsections now limits the default setting for numsections.
In the default course settings, setting the maximum number topics / weeks  to 0 would not
change the default number of sections on the same page as any other number would.
A more appropriate check has been put in place.

This also incorporates a fix for MDL-28584. The course edit screen now also checks to see
if maxsections is set or numeric. If it is not set or numeric then it defaults to 52.
2012-11-26 16:01:27 +08:00
Adam Olley 5227c9c305 MDL-33125: core_backup: Prevent import/activity duplication from duplicating manual grade items 2012-11-26 12:28:26 +10:30
Sam Hemelryk f3fc480228 Merge branch 'MDL-36609_m22' of git://github.com/markn86/moodle into MOODLE_22_STABLE 2012-11-26 14:57:31 +13:00
Sam Hemelryk 066fc70ece Merge branch 'wip-MDL-36551-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-11-26 14:44:09 +13:00
Tim Hunt 8ee045c026 MDL-36806 question files: fix unnecessary require_login call.
quiz_question_pluginfile later does the correct check. Doing this
other check first means you get an error about changing $PAGE->context.
2012-11-23 15:56:36 +00:00
Tim Hunt 35314e2f91 MDL-36760 formslib: fix frozen elements with [] in name.
This was a regression caused by MDL-30845 or, to be precise, the related
issue MDL-32785.

Form elements with names like multipier[0] require special handling,
such as is present in HTML_QuickForm_element::_prepareValue. I have
added equivalent handling to MoodleQuickForm::exportValues. I am afraid
that I could not think of a way to do this reliably without duplicating
code.
2012-11-23 11:32:04 +00:00
Mark Nelson 6f2e7ccb54 MDL-36741 mod_forum: fixed SQL that was generated when either timed posts or groups were enabled 2012-11-23 17:03:52 +08:00
Dan Poltawski e4592b226d weekly release 2.2.6+ 2012-11-23 15:19:04 +08:00
Dan Poltawski e5b945e956 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-11-23 15:15:39 +08:00
Dan Poltawski 79d7cda9e5 Merge branch 'MDL-36204-files-with-spaces_22' of git://github.com/mudrd8mz/moodle into MOODLE_22_STABLE 2012-11-23 11:20:27 +08:00
David Mudrák e1c5528fff MDL-36204 Improve moodle1 conversion of embedded files
URL of files referenced in HTML fields via $@FILEPHP$@ are usually
encoded if they were linked using the HTML editor. So if they contain
spaces or plus signs in the name, their URL is encoded to use %20 and
%2B respectively.

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

However, we do not support partially encoded URLs (e.g. only spaces are
encoded while plus signs are not). Such links are unmodified and will
rely on Legacy files support.
2012-11-23 04:01:15 +01:00
AMOS bot b640d7ea28 Automatically generated installer lang files 2012-11-22 09:05:26 +00:00
Dan Poltawski bf0aa894bd Merge branch 'wip-MDL-36668-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-11-22 10:33:47 +08:00
Dan Poltawski d59c0d7094 Merge branch 'MDL-30884_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-11-21 15:19:32 +08:00
Dan Poltawski edd08683b9 Merge branch 'MDL-35675-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-11-21 12:03:13 +08:00
Dan Poltawski f890a6a9f9 Merge branch 'MDL-30377_m22' of git://github.com/markn86/moodle into MOODLE_22_STABLE 2012-11-21 11:53:36 +08:00
Dan Poltawski 2c9280ffa6 Merge branch 'MDL-36170_m22' of https://github.com/jfilip/moodle into MOODLE_22_STABLE 2012-11-21 11:47:47 +08:00
Adrian Greeve f0a7956c1b MDL-36551 - mod_data: Onsite presets now retain the advanced search template.
Presets that were saved to the site would lose the advanced search template when being used.
The previous check was put in place to see if the advanced search template existed or not (presets pre 1.9),
This checked external files properly but not onsite files.

Now checks are being done on both internal and external preset files.
2012-11-21 10:05:50 +08:00
Justin Filip eafdf083a9 MDL-36170 - mod/data - Don't display the blocks editing button within table HTML, use a standard API to create it. 2012-11-20 09:09:14 -05:00
Tim Hunt 9de4152eff MDL-30884 quiz: ARIA attribute for the coutdown timer. 2012-11-20 12:14:26 +00:00
Dan Poltawski 01d8f54dbd Merge branch 'MDL-33863_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-11-20 16:16:54 +08:00
Dan Poltawski 81c8cccf6c Merge branch 'MDL-30731-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-11-20 15:31:46 +08:00
Dan Poltawski 6330424fae Merge branch 'MDL-36571_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-11-20 15:01:46 +08:00
Frederic Massart 3135254d8f MDL-30731 calendar: Fixed display of images in event descriptions 2012-11-20 14:59:04 +08:00
Dan Poltawski f7f7cf7760 Merge branch 'wip-MDL-36453-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-11-20 14:32:14 +08:00
Frederic Massart 37881d2f20 MDL-36305 theme: Forum reply button is not removed using MyMobile 2012-11-20 13:57:16 +08:00
Dan Poltawski 521225275b Merge branch 'MDL-36204_22' of git://github.com/pauln/moodle into MOODLE_22_STABLE 2012-11-20 12:45:58 +08:00
Dan Poltawski 80b7e5deb6 Merge branch 'MDL-32865_22' of git://github.com/jmvedrine/moodle into MOODLE_22_STABLE 2012-11-20 12:05:55 +08:00
Dan Poltawski 774530f8b4 Merge branch 'MDL-30871-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-11-20 11:47:36 +08:00
Dan Poltawski f2b9840585 Merge branch 'MDL-26439_message_search_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-11-20 11:21:00 +08:00
Eloy Lafuente (stronk7) a9d6e98211 Merge branch 'MDL-36683_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-11-20 01:34:01 +01:00
Jean-Michel Vedrine 2773783da2 MDL-33863 question restore: better hint identification.
This is very similar to what MDL-30018 did for question_answers.
2012-11-19 23:29:32 +00:00
Tim Hunt 3fec0aa045 MDL-36683 qtype match restore: better subq indentification.
This is very similar to what MDL-30018 did for question_answers.
2012-11-19 23:10:09 +00:00
Tim Hunt 0f36ae6350 MDL-36571 qtype multichoice: don't corrupt unicode characters.
It seems that \s includes non-breaking space, and the typical one-byte
representation of that is the same as some parts of multibyte unicode
characters. Therefore, you need to include the u modifer on the regular
expressions.

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

Thanks to Joseph Rézeau and Jean-Michel Vedrine for working out what the
problem was, and how to fix it.
2012-11-19 18:22:03 +00:00
Mark Nelson 82695f7730 MDL-36609 javascript: ensure HTML element exists before attempting to perform JS functionality 2012-11-19 15:42:52 +08:00
Adrian Greeve 6c31598afe 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:11:41 +08:00
Sam Hemelryk b7696aa0b6 Merge branch 'MDL-36589_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-11-19 14:55:13 +13:00
Jean-Michel Vedrine 1d5c83082f MDL-32865 CLOZE Questions imported from another course end up with broken image links 2012-11-17 16:54:42 +01:00
Andrew Robert Nicols ce18cd39e6 MDL-36640 Logging: Correct testing of log->info.
log->info sometimes contains additional information which can be looked up
from other tables. This should only be attempted if the field is numeric,
but the CSV, XLS, and ODS outputs were not making this check.

There is an additional case for the print_mnet_log function which has not
been covered - this is because the mnet logging is currently broken beyond
the scope of this bug rendering this section untestable. These issues are
raised in MDL-36642.
2012-11-16 11:19:27 +00:00
Dan Poltawski b969895cb6 weekly release 2.2.6+ 2012-11-16 15:37:07 +08:00
Dan Poltawski f2bd07e54d Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-11-16 15:33:29 +08:00
Frederic Massart 265033d8e0 MDL-26660 libraries: Improved XML validation before parsing
Conflicts:

	lib/googleapi.php
2012-11-16 12:14:28 +08:00
Dan Poltawski 7aaece91a3 Merge branch 'MDL-36331_redirect_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-11-15 14:41:07 +08:00
Andrew Davis 6b17edba39 MDL-36331 core_grade: fixed up 2 incorrect default return URLs 2012-11-15 10:48:58 +08:00
Adrian Greeve d12b949a2c MDL-36453 - mod_data: Presets now load in a Windows environment.
Thanks to Michael de Raadt for this patch.
2012-11-15 08:58:11 +08:00
Paul Nicholls 2b046f832b MDL-36204: moodle1 backup converter: add unit test to cover this issue 2012-11-15 11:41:27 +13:00
Paul Nicholls ba42721ca4 MDL-36204: moodle1 backup converter: urldecode filenames from links
If filenames are not run through urldecode(), those that contain spaces (or other url-encoded characters) will not be handled, as they can't be found in the backup file.
2012-11-15 11:27:06 +13:00
Mark Nielsen c9faf6e3b5 MDL-36336: Prevent duplicate grade items on restore
During restore, lti_add_instance() was being called
and this could generate a grade item.  This would
produce a duplicate item because the restore
process would automatically generate the grade item.
2012-11-14 09:36:57 -08:00
Mark Nelson edbada7c4f MDL-30377 forum: do not allow users to view not yet started or expired discussions 2012-11-14 21:00:02 +08:00
Rossiani Wijaya 1cf1a1737c MDL-36589 Lesson Module: set correct answer_jump to next page in question import. 2012-11-14 16:19:22 +08:00
Petr Škoda bf3bd818bf MDL-36283 use accesscontext when assigning cohort members 2012-11-14 11:26:34 +08:00
Dan Poltawski ecf1f30591 Merge branch 'MDL-35358_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-11-14 11:17:58 +08:00
Dan Poltawski aab4251842 Merge branch 'MDL-26660-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-11-14 10:34:03 +08:00
Dan Poltawski e015e5da34 Merge branch 'MDL-34520-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-11-14 09:56:23 +08:00
Amy Groshek ad50eae794 MDL-36540 - Survey language pack typo 2012-11-14 09:46:00 +08:00
Aparup Banerjee 11fa569bd8 MDL-24736 anotating tinymce changes to readme 2012-11-14 09:41:51 +08:00
Dan Poltawski 6b158f58b6 Merge branch 'wip-MDL-36413-MOODLE_22_STABLE' of https://github.com/nicolasconnault/moodle into MOODLE_22_STABLE 2012-11-14 09:18:43 +08:00
Aparup Banerjee e4cdd9f2cb Merge branch 'wip_22_mdl-25736_tinymce_spellchecker_frech_issues' of https://github.com/iarenaza/moodle into MOODLE_22_STABLE 2012-11-14 09:14:02 +08:00
Petr Škoda 21f869131d MDL-36169 fix enrolled users sorting by alphanumerical column
Credit goes to Nicholas Koeppen, thanks!
2012-11-13 13:40:43 +08:00
David Mudrák da255ad81a MDL-35422 Fix the confusing submit button label 2012-11-12 10:36:50 +08:00
Iñaki Arenaza 38e02370de MDL-25736 TinyMce Spellchecker French issues
GoogleSpell checker already returns data un UTF8, so there's no need
to use utf8_encode (in fact, using it completely mangles the string).

All credit goes to David Quintal for finding the issue and proposing
the fix.
2012-11-10 20:13:21 +01:00
AMOS bot d66083c260 Automatically generated installer lang files 2012-11-10 00:36:26 +00:00
Eloy Lafuente (stronk7) 2b3dbc7ee9 Moodle release 2.2.6 2012-11-09 19:34:54 +01:00
Eloy Lafuente (stronk7) 23a6a67140 MDL-25948 upgrade: Avoid overlaping with weeklies 2012-11-09 19:02:06 +01:00
Eloy Lafuente (stronk7) 30b9d52d78 Merge branch 'MDL-25948_m22' of git://github.com/markn86/moodle into MOODLE_22_STABLE 2012-11-09 19:01:04 +01:00
Mark Nelson 08f68a7d2f MDL-25948 upgrade: Check that field does not match defaults before editing. 2012-11-09 19:01:13 +08:00
Dan Poltawski 53cd3c286e weekly release 2.2.5+ 2012-11-09 17:59:17 +08:00
Dan Poltawski ab8c8a8f92 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-11-09 17:54:19 +08:00
Mark Nelson d1bed0abc3 MDL-25948 upgrade: Fixing issues with upgrade from < 1.7 to 2.x. 2012-11-09 15:06:29 +08:00
AMOS bot 1b82a6fb65 Automatically generated installer lang files 2012-11-09 00:39:00 +00:00
Dan Poltawski 235ec73c0f Merge branch 'MDL-35349_m22' of git://github.com/markn86/moodle into MOODLE_22_STABLE 2012-11-08 18:55:20 +08:00
Aparup Banerjee c978929e36 Merge branch 'MDL-27824_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-11-08 13:32:45 +08:00
Rossiani Wijaya bf99ef166f MDL-27824 course categories: remove trailing whitespace 2012-11-08 12:33:20 +08:00
Rossiani Wijaya 992d263ac5 MDL-27824 course categories: change isset() to empty() 2012-11-08 12:32:56 +08:00
Rossiani Wijaya 03d17744ea MDL-27824 course categories: Added @todo comments to remove the temporary fix 2012-11-08 12:32:55 +08:00
Rossiani Wijaya d86ad06b6e MDL-27824 - course category: add check test for ->coursesperpage value. 2012-11-08 12:32:55 +08:00
Dan Poltawski 62c2b3d818 Merge branch 'MDL-36422-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-11-08 11:08:17 +08:00
Frederic Massart 341ad08669 MDL-36422 question: Fixed malformed HTML in manual marking 2012-11-08 10:26:23 +08:00
Mark Nelson 1be0790e01 MDL-33791 Portfolio: Fixed security issue with passing file paths. 2012-11-08 00:27:57 +01:00
Mary Evans c4669ce618 MDL-36197 theme_fusion: Fix for "Your progress" overlaps completion tracking checkbox 2012-11-08 11:33:53 +13:00
Sam Hemelryk e3071745bb Merge branch 'MDL-36271_m22' of https://github.com/markn86/moodle into MOODLE_22_STABLE 2012-11-08 11:06:41 +13:00
Adrian Greeve 78602c3fab MDL-35558 mod_data: Show only own entries while there are required pending. 2012-11-07 19:55:08 +01:00
Nicolas Connault 3d9b36e015 MDL-36413 Added "this->" to exclude variable assignment
The this-> keyword was missing from the $exclude = array() statement.
2012-11-07 14:52:43 +08:00
Dan Poltawski 025ca6f7d3 Merge branch 'MDL-36346_22' of git://github.com/pauln/moodle into MOODLE_22_STABLE 2012-11-07 09:28:02 +08:00
Paul Nicholls 5b8bfd14a8 MDL-36346 - YUI2 SWF vulnerability, part 2 2012-11-07 13:55:11 +13:00
AMOS bot b3ddb0951f Automatically generated installer lang files 2012-11-07 00:36:32 +00:00
Andrew Davis 47ae6d3fc9 MDL-35762 core_grade: altered the code that determines whether an activity is visible on the user report 2012-11-06 16:50:08 +01:00
Dan Poltawski d46929e4e3 Merge branch 'MDL-36346_22' of git://github.com/pauln/moodle into MOODLE_22_STABLE 2012-11-06 16:21:18 +08:00
Dan Poltawski 70a5dda65a Merge branch 'wip-MDL-36379-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-11-06 09:50:30 +08:00
Paul Nicholls cbfb767fb5 MDL-36346 - YUI2 SWF vulnerability 2012-11-06 14:43:51 +13:00
Sam Hemelryk d16d4761d4 MDL-36379 user_view: fixed issue with page layout when editing was on 2012-11-06 14:01:41 +13:00
Sam Hemelryk 3e8532dadc Merge branch 'MDL-31629-MOODLE_22_STABLE' of git://github.com/micaherne/moodle into MOODLE_22_STABLE 2012-11-06 10:08:22 +13:00
Frederic Massart d128e2844b MDL-35675 forms: Remove constrain to viewport for popup calendar 2012-11-05 16:42:54 +08:00
Didier Raboud bad69d25cc MDL-35675 forms: Popup calendar is not constrained any more 2012-11-05 16:42:54 +08:00
Dan Poltawski 9cbc51937a Merge branch 'wip-mdl-35766-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-11-05 15:11:46 +08:00
Dan Poltawski 5a83ba350d MDL-34527 - fix trailing whitespace 2012-11-05 13:26:44 +08:00
Dan Poltawski 3339623dc0 Merge branch 'wip-MDL-34527-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-11-05 13:25:26 +08:00
Sam Hemelryk bfea3bf351 MDL-21625 question: Fixed phpdocs 2012-11-05 16:29:42 +13:00
Sam Hemelryk fdd57e090e Merge branch 'MDL-21625_b_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-11-05 16:27:15 +13:00
Dan Poltawski e262ca4250 Merge branch 'MDL-33621_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-11-05 11:12:49 +08:00
Matt Petro 4befe7f551 MDL-36025 qtype calculated: Fix handling of "-0" 2012-11-02 12:10:28 -04:00
Mark Nelson 853d6d008f MDL-35349 paypal: Fixing return page so that it now declares page context 2012-11-02 15:32:36 +08:00
Ankit Agarwal 248eecdf15 MDL-34520 gradebook: Missing droplow setting in gradebook backup 2012-11-02 14:24:33 +08:00
Dan Poltawski 3fd59e3674 Merge branch 'w42_MDL-35469_m22_geckover' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-11-02 12:07:21 +08:00
Sam Hemelryk 1367a13c88 MDL-34527 forum: Fixed up a couple of SQL queries causing issues in Oracle. 2012-11-02 10:49:39 +13:00
Huy Hoang a8f5d3814d MDL-34695 Wiki Module: add prevention to create new record when userid is 0 2012-11-01 17:47:19 +08:00
Mark Nelson a9e4129829 MDL-36271 feedback: Fixed variable typo 2012-11-01 15:47:06 +08:00
Dan Poltawski f47b2e4a24 weekly release 2.2.5+ 2012-11-01 14:17:07 +08:00
Dan Poltawski e8a8691a10 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-11-01 14:14:27 +08:00
Jonathon Fowler f2ce3d0239 MDL-34695 wiki: ensure the correct individual subwiki is used/created for a user 2012-11-01 12:27:56 +08:00
Rajesh Taneja d5b5becc18 MDL-36238 Blocks: Logs page close session write, so editing is set before 2012-11-01 12:18:43 +08:00
Andrew Davis e451aa73d2 MDL-36162 core_message: removed the unnecessary and confusing course URL parameter as well as fixing the broken breadcrumb 2012-11-01 09:44:59 +08:00
Andrew Davis ee73e0f489 MDL-26439 core_message: switched the message search over to displaying smallmessage instead of fullmessage which contains boilerplate we dont want 2012-11-01 08:52:48 +08:00
AMOS bot f9442b3eba Automatically generated installer lang files 2012-11-01 00:36:40 +00:00
Dan Poltawski 02017cb9f3 Merge branch 'MDL-28235-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-10-31 13:42:31 +08:00
Frederic Massart 306b782436 MDL-28235 form: Removed reference to unexisting close button in help popup 2012-10-31 13:00:56 +08:00
Frederic Massart 4f7ec41692 MDL-28235 form: Removed close icon of help icon popups 2012-10-31 13:00:51 +08:00
Frederic Massart 4274f4d003 MDL-28235 form: Help button popup close accessibility improved
AMOS BEGIN
 CPY [close,editor],[close,form]
AMOS END
2012-10-31 13:00:51 +08:00
Dan Poltawski 18da8c03e0 Merge branch 'MDL-32712-22' of https://github.com/mackensen/moodle into MOODLE_22_STABLE 2012-10-31 11:59:34 +08:00
Dan Poltawski 9787d3a9b5 Merge branch 'wip-mdl-29762-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-10-31 10:51:03 +08:00
Aparup Banerjee a70978a2bd Merge branch 'MDL-31708-moodle22' of git://github.com/StudiUM/moodle into MOODLE_22_STABLE 2012-10-31 10:05:47 +08:00
Sam Hemelryk 61f0581a02 Merge branch 'MDL-31934_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-10-31 10:15:18 +13:00
Mary Evans 4f6f0026e0 MDL-31934 mod/forum: Added CSS fix to mod/forum/styles.css for unread forumposts also reversed a previous commit in theme/base/core.css. 2012-10-30 11:48:49 +00:00
Dan Poltawski 279fe97bd2 Merge branch 'wip-MDL-32326-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-10-30 13:40:44 +08:00
Sam Hemelryk e16c434140 Merge branch 'MDL-28235-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-10-30 17:36:33 +13:00
Dan Poltawski 4c8582b8c0 Merge branch 'wip-mdl-35489-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-10-30 12:12:01 +08:00
Michael de Raadt 1cd1eb53e5 MDL-35358 Lesson Module: fixed teacher grade essays display when lesson is only available for group members only 2012-10-30 11:39:50 +08:00
Frederic Massart ceefaa8f3e MDL-30871 enrol: Flat file does not fail when notifications are enabled 2012-10-30 11:03:37 +08:00
Sam Hemelryk b277186a4e Merge branch 'MDL-35889-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-10-30 15:48:45 +13:00
Dan Poltawski d258956c4a Merge branch 'wip-mdl-35910-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-10-30 10:00:31 +08:00
Frederic Massart c4bc6e9022 MDL-26660 libraries: Do not try to parse non-valid XML
Conflicts:

	lib/googleapi.php
2012-10-30 09:28:18 +08:00
Andrew Davis 8d6e613d1f MDL-29733 grade: SQL and comment cleanup 2012-10-30 09:02:47 +08:00
Jonathan Champ d557253610 MDL-29733 grade: Query for Identifying Grade Grades to Precreate is SLOW 2012-10-30 09:02:15 +08:00
Andrew Robert Nicols a6e0e0bf9a MDL-35959 Correct footer for M.core.dialogue 2012-10-30 13:33:59 +13:00
Nadav Kavalerchik a04cf7d76e MDL-36070 - Points label hides UP and Down ordering arrows and Delete Icon on Quiz edit page, in RTL mode (theme/standard) 2012-10-30 13:03:29 +13:00
Sam Hemelryk 0be66059a2 Merge branch 'MDL-36076_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-10-30 12:59:02 +13:00
Michael Aherne 6dc38156a2 MDL-36101 auth_shibboleth Show appropriate error message for suspended accounts 2012-10-30 12:55:30 +13:00
Sam Hemelryk 15b3f43326 Merge branch 'MDL-36103_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-10-30 12:51:34 +13:00
Charles Fulton 5559703a23 MDL-36105 grades: use consistent icon classs 2012-10-30 12:34:58 +13:00
Mary Evans 51e28ed8d7 MDL-36137 theme_magazine: changed forum and description info from center to left aligned. 2012-10-30 12:18:07 +13:00
Rossiani Wijaya faba398d17 MDL-35530 Lesson Module: Add question text to facilitate grading 2012-10-29 17:05:04 +08:00
Dan Poltawski f767e4b066 Merge branch 'm22_MDL-35215' of git://github.com/totara/moodle into MOODLE_22_STABLE 2012-10-29 15:34:03 +08:00
Dan Poltawski 864a95aab3 Merge branch 'MDL-35880-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-10-29 14:35:35 +08:00
Dan Poltawski 2407b73f18 Merge branch 'MDL-34837-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-10-29 13:55:25 +08:00
AMOS bot c8be58152e Automatically generated installer lang files 2012-10-27 00:34:38 +00:00
Mary Evans 17a826bf54 MDL-31934 theme_base: Fix to add highlight color to unread forum posts. 2012-10-21 01:57:02 +01:00
Eloy Lafuente (stronk7) 67ba0081ba weekly release 2.2.5+ (fix!) 2012-10-19 20:01:56 +08:00
Tim Hunt a9c7672efa MDL-36103 tablelib: links to user profiles are wrong in courses. 2012-10-19 16:51:04 +08:00
Rajesh Taneja f415f6f84b MDL-35910 Assignment 2.2: Fixed included files in assignment zip.
If Marking button is enabled, assignment is open and is not finalized, then don't add file to zip
2012-10-19 16:10:43 +08:00
Rossiani Wijaya 91b1c5c22e MDL-21625 Question bank: fixing whitespace 2012-10-19 15:43:48 +08:00
Rajesh Taneja b53ec9de13 MDL-35766 AJAX: Conditional activity hiding is separately handled by JS 2012-10-19 13:43:47 +08:00
Rossiani Wijaya 8c89ce5f65 MDL-21625 Question bank: Add accessibility to table layout for viewing question list 2012-10-19 13:42:04 +08:00
Gilles-Philippe Leblanc d0d121acb7 MDL-31708 wiki: Wiki 2.0 non-group member can see edit option in navigation block 2012-10-18 08:34:09 -04:00
Aparup Banerjee 10c3c372b9 weekly release 2.2.6+ 2012-10-18 19:45:10 +08:00
Aparup Banerjee b06c8fdd9c Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-10-18 19:21:53 +08:00
Rajesh Taneja 62e1fab324 MDL-35489 users: Check added before using form data 2012-10-18 17:28:29 +08:00
David Tang 8c26d6db93 MDL-31629 auth_shibboleth Use correct language string location 2012-10-18 08:59:40 +01:00
AMOS bot 4a1cf2aa17 Automatically generated installer lang files 2012-10-18 00:34:57 +00:00
Tim Hunt 91a307c918 MDL-36076 qtype multichoice: validation fails on '0' answer. 2012-10-17 13:55:54 +08:00
Aparup Banerjee 656216af37 Merge branch 'MDL-28965-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-10-17 10:40:22 +08:00
AMOS bot 9151d6994a Automatically generated installer lang files 2012-10-17 00:34:40 +00:00
Sam Hemelryk d3eb32a44e Merge branch 'MDL-35412-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-10-16 17:41:19 +08:00
Dan Poltawski 00f581ca28 Merge branch 'wip-mdl-30691-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-10-16 16:27:59 +08:00
Dan Poltawski a407d10f1e Merge branch 'wip-mdl-27309-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-10-16 14:59:23 +08:00
Dan Poltawski d44a43190a Merge branch 'wip-mdl-32218-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-10-16 14:35:45 +08:00
Ankit Agarwal 01fc1376f5 MDL-35880 user: Adding a heading to profile edit page 2012-10-16 14:18:28 +08:00
Rajesh Taneja c36c0ccc1e MDL-29762 Blocks: Modified checks to show image in html block
Conflicts:

	blocks/html/lib.php
2012-10-16 11:42:23 +08:00
Sam Hemelryk d270f6c22d Merge branch 'MDL-35198-MOODLE_22_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_22_STABLE 2012-10-16 11:22:44 +08:00
Dan Poltawski cecd632a8a Merge branch 'MDL-33815_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-10-16 11:09:14 +08:00
Dan Poltawski 991eb4f6d0 Merge branch 'wip-MDL-32184-s22' of http://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-10-16 10:46:58 +08:00
Dan Poltawski 83c45d6304 MDL-21801 - mod_lesson: version bump
To reflect the new (ppt-less) state
2012-10-16 10:30:21 +08:00
Dan Poltawski 4e2c620700 Merge branch 'MDL-21801_b_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-10-16 10:30:11 +08:00
Adrian Greeve 7df065ce28 MDL-25275 - mod/data - Added a check box to eliminate date searches if desired. 2012-10-16 10:09:30 +08:00
Mark Nielsen e4ce1be4b5 MDL-34837 backup: Restore does not fail when some courses have the same name 2012-10-15 17:19:17 +08:00
Mark Nielsen e2398ac290 MDL-33621 rating: fixed view help error for global scale rating 2012-10-15 16:49:42 +08:00
Petr Škoda e0b2c13e04 MDL-35917 fix cohort phpdocs
Credit goes to Brian Kremer, thanks!
2012-10-15 15:59:39 +08:00
Aparup Banerjee 55c4569bda Merge branch 'MDL-31010-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-10-15 15:54:05 +08:00
Ankit Agarwal cdd2e30a37 MDL-35889 blocks: Adding a legend to the fieldset 2012-10-15 11:25:06 +08:00
Frederic Massart bd404c8e90 MDL-35171 Forms: Date selector always gets UTF-8 strings 2012-10-15 09:45:57 +08:00
AMOS bot 02fa7996c8 Automatically generated installer lang files 2012-10-15 00:34:59 +00:00
Eloy Lafuente (stronk7) f4b03cf8e2 weekly release 2.2.5+ 2012-10-15 00:19:54 +02:00
Eloy Lafuente (stronk7) f5916ab5af Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-10-15 00:07:52 +02:00
Eloy Lafuente (stronk7) 8362d3b35f Revert "MDL-31968 Make NTLM REMOTE_USER format configurable by the admin"
This reverts commit 4496dcc631.

Note that MDL-31968 will be in charge of backporting this to stables
if everything goes well under master (once MDL-31968 is tested and closed)
2012-10-14 23:23:34 +02:00
Eloy Lafuente (stronk7) f06b2de39e Merge branch 'MDL-35858-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-10-12 02:18:31 +02:00
Ankit Agarwal 45ef5c8e73 MDL-28965 administration: Updating description string for the setting navshowallcourses
Conflicts:

	lang/en/admin.php
2012-10-11 17:15:55 +08:00
Rossiani Wijaya e09d4fcb8c MDL-33815 Online Users block: Add query condition to filter out deleted users and lastaccess date greater than now 2012-10-11 16:07:20 +08:00
Rossiani Wijaya a884d3a618 MDL-21801 Lesson Module: Removing import power point functionality 2012-10-11 15:52:35 +08:00
Ankit Agarwal 78a00990b6 MDL-31010 comments: setup_course should update if passed courseid is different from the cached one 2012-10-11 10:58:13 +08:00
Mary Evans 61560ab45a MDL-35231 theme_serenity: fixed misalignment and styling of mod/assignment/action/edit by updating custommenu css in theme/serenity/style/core.css 2012-10-10 13:04:54 +08:00
Aparup Banerjee cc6b32b227 Merge branch 'w41_MDL-35839_m22_enroldeletecleanup' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-10-10 10:32:24 +08:00
AMOS bot ffc1f310af Automatically generated installer lang files 2012-10-10 00:34:21 +00:00
Simon Coggins f910245bfd MDL-35581 lib: Help popups misaligned for right-to-left languages 2012-10-10 08:57:55 +13:00
Petr Škoda 407a7bd6a9 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:07 +02:00
Frederic Massart 2f0b51b9f4 MDL-35858 question: Fixed display of feedback in cloze questions 2012-10-09 16:13:17 +08:00
Aparup Banerjee 9ed6d76f12 Merge branch 'WIP-MDL-35724-M22_quiz' of git://github.com/nadavkav/moodle into MOODLE_22_STABLE 2012-10-09 14:12:09 +08:00
Aparup Banerjee c5833d278c Merge branch 'MDL-35776_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-10-09 11:54:11 +08:00
Rajesh Taneja fb6f1a4d79 MDL-30691 Adminstration: Added css to break long word in filter table 2012-10-09 10:04:27 +08:00
AMOS bot 43e26415eb Automatically generated installer lang files 2012-10-09 00:34:43 +00:00
Eloy Lafuente (stronk7) aff7cb703a Merge branch 'wip-MDL-26348-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-10-09 01:38:32 +02:00
Eloy Lafuente (stronk7) 827dd36f48 Merge branch 'wip-mdl-35397-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-10-09 00:40:26 +02:00
Iñaki Arenaza 4496dcc631 MDL-31968 Make NTLM REMOTE_USER format configurable by the admin
Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2012-10-09 00:17:51 +02:00
Eloy Lafuente (stronk7) 1bffd70569 Merge branch 'wip-mdl-35047-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-10-08 23:57:31 +02:00
Nadav Kavalerchik 8f8933231c MDL-35724 - Move Question Marks block to the left (Question Bank page),in RTL mode 2012-10-08 11:36:47 +02:00
Nadav Kavalerchik 550f7760a8 MDL-35724 - Right align "Question Type" label in Quiz Editing page, when in RTL mode 2012-10-08 11:36:47 +02:00
Aparup Banerjee d60c0e9650 Merge branch 'WIP-MDL-35723-M22_quiz' of git://github.com/nadavkav/moodle into MOODLE_22_STABLE 2012-10-08 17:16:43 +08:00
Aparup Banerjee 6d4386a6db Merge branch 'wip-MDL-34448-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-10-08 15:30:46 +08:00
Adrian Greeve b562dfba48 MDL-34448 - mod/data - Fixing separate groups viewing all entries. 2012-10-08 15:08:33 +08:00
Jerome Mouneyrac 71daa4a6d6 MDL-35198 replace key_exists by array_key_exists 2012-10-08 10:58:43 +08:00
Sam Hemelryk 0766ae0049 Merge branch 'MDL-35634-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-10-08 11:36:12 +13:00
Sam Hemelryk c11496e22d Merge branch 'MDL-35211_M22' of git://github.com/kordan/moodle into MOODLE_22_STABLE 2012-10-08 11:02:24 +13:00
Sam Hemelryk ac78fb7625 Merge branch 'MDL-35667_extra_credit_loop_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-10-08 10:15:29 +13:00
Sam Hemelryk 4f012c5e58 Merge branch 'MDL-35730_22' of https://github.com/aolley/moodle into MOODLE_22_STABLE 2012-10-08 10:05:52 +13:00
Sam Hemelryk 5467e70128 MDL-32326 dock: Clarified use of CSS rotation 2012-10-08 09:45:48 +13:00
Sam Hemelryk d2cdddff77 MDL-26348 tool_customlang: Fixed up SQL causing issues in Oracle 2012-10-08 09:22:16 +13:00
Petr Škoda 2645ca05d8 MDL-35839 fix invalid enrol instance delete cleanup 2012-10-06 19:39:04 +02:00
AMOS bot 1ef6a07c09 Automatically generated installer lang files 2012-10-06 00:34:02 +00:00
Eloy Lafuente (stronk7) a8ce9071c2 weekly release 2.2.5+ 2012-10-05 13:37:50 +02:00
Eloy Lafuente (stronk7) 7f13fc063c Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-10-05 13:33:20 +02:00
Eloy Lafuente (stronk7) 2ecbeeda93 Revert "MDL-34257 quiz 'secure' mode: PAGE initialisation order issues."
This reverts commit e65f54f289.
2012-10-05 13:10:36 +02:00
Dan Poltawski 371e7264d1 Revert "MDL-33117 grade: added some smarts to the user report method inject_rowspans() to deal with activity conditional availability"
This reverts commit 7dc9febe19.
2012-10-05 16:19:29 +08:00
Jason Fowler 04c1d5a342 MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity – Patch provided by Kanika Goyal 2012-10-05 15:33:33 +08:00
Rajesh Taneja faaa97b415 MDL-32218 Blocks: allowblockstodock is also checked for region dock status 2012-10-04 17:27:52 +08:00
Rajesh Taneja 32d5bad1e1 MDL-27309 Blocks: command node is taken from dockitem during restore 2012-10-04 15:27:27 +08:00
AMOS bot a3a630251b Automatically generated installer lang files 2012-10-04 00:35:01 +00:00
Tim Hunt 8b3818d97b MDL-35776 user ajax: fix sort order in chrome.
It seems that Chrome orders fields of objects in order of array key.
Therefore we must stop using user.id in the PHP arrays, and instead
ensure that we use sequential numbers.

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

This commit fixes the user selector.

Conflicts:
	user/selector/module.js
	user/selector/search.php
2012-10-03 19:16:41 +01:00
Frederic Massart 49e4881bff MDL-35634 course: Restored alt attribute on module icons 2012-10-03 17:04:02 +08:00
Dan Poltawski 1c61cadaaf Merge branch 'MDL-35754-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-10-03 10:26:34 +08:00
Frederic Massart 5d07f6e84f MDL-35754 libraries: openpopup() does not fail when window name is not set 2012-10-03 09:58:16 +08:00
Sam Hemelryk bd465e3917 Merge branch 'MDL-33829_22' of https://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-10-03 10:07:04 +13:00
Nadav Kavalerchik 6d4d29137c MDL-35723 - Align to center the "Quiz Feedback" label,when in RTL mode 2012-10-02 21:51:50 +02:00
Dan Marsden 221309802a MDL-35557 enrol/database: use distinct call when getting list of courses that should be added. 2012-10-02 20:28:46 +02:00
Dan Marsden bc7088d881 MDL-35562 enrol_database: enrolment_sync - don't halt sync on failed search for course. 2012-10-02 15:59:59 +02:00
Frederic Massart 2bfd174b06 MDL-28235 form: Removed close icon of help icon popups 2012-10-02 14:36:12 +08:00
Frederic Massart 6b8e97b017 MDL-28235 form: Help button popup close accessibility improved
AMOS BEGIN
 CPY [close,editor],[close,form]
AMOS END
2012-10-02 14:36:11 +08:00
Rajesh Taneja a284ccfdba MDL-35397 Administration: changed link for 'many other contributors'
Previously 'many other contributors' was pointing to http://docs.moodle.org/dev/Credits
now, it will point to http://moodle.org/dev.
2012-10-02 14:26:35 +08:00
Rajesh Taneja b5f0654fd2 MDL-35047 tool_xmldb: Added missing strings for xmldb 2012-10-02 14:22:52 +08:00
Dan Poltawski f187922695 Merge branch 'MDL-34570-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-10-02 13:57:08 +08:00
Adam Olley 0f8f88e7f0 enrol_manual: Set context correctly in manual enrolment user selector 2012-10-02 15:01:14 +09:30
Dan Poltawski 73e4647509 Merge branch 'MDL-35370_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-10-02 12:09:44 +08:00
Dan Poltawski a028dd0ff1 Merge branch 'MDL-35693_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-10-02 11:48:15 +08:00
Dan Poltawski 9956462ee4 Merge branch 'WIP-MDL-35708-M22_quiz' of git://github.com/nadavkav/moodle into MOODLE_22_STABLE 2012-10-02 11:37:04 +08:00
Dan Poltawski 34ab1dd7b1 Merge branch 'w40_MDL-35619_m22_otheravatars' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-10-02 10:42:06 +08:00
Dan Poltawski e412ca95b4 Merge branch 'MDL-30514_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-10-02 10:35:00 +08:00
Dan Poltawski f3493f8a78 Merge branch 'MDL-35680_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-10-02 09:52:50 +08:00
Jody Steele 395354cfe0 MDL-33933 mod_forum: fix incorrect capability check 2012-10-02 09:44:29 +08:00
Dan Poltawski 9b112d78bc Merge branch 'MDL-33117_grade_display_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-10-02 09:33:24 +08:00
Eloy Lafuente (stronk7) 086a156564 MDL-35669 gravatar Fix secure image urls.
Conflicts:
	lib/outputcomponents.php
2012-10-02 01:39:14 +02:00
Sam Hemelryk d5cb1a4096 Merge branch 'm22_MDL-35472' of git://github.com/totara/moodle into MOODLE_22_STABLE 2012-10-02 11:10:13 +13:00
Sam Hemelryk 4fd7c545cc Merge branch 'MDL-34257_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-10-02 10:45:44 +13:00
Michael Aherne 60bbf98971 MDL-35669 gravatar Provide default image URL to Gravatar
Conflicts:
	admin/settings/users.php
	lib/outputcomponents.php
2012-10-01 23:39:11 +02:00
Sam Hemelryk 7697512a90 Merge branch 'MDL-35547_22' of git://github.com/enovation/moodle into MOODLE_22_STABLE 2012-10-02 10:15:19 +13:00
Eloy Lafuente (stronk7) 1950fefc99 Merge branch 'MDL-34931-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-10-01 13:37:26 +02:00
Eloy Lafuente (stronk7) ab6a0f497b Merge branch 'MDL-35637_m22' of git://github.com/markn86/moodle into MOODLE_22_STABLE 2012-10-01 13:19:35 +02:00
Eloy Lafuente (stronk7) de165bab23 Merge branch 'MDL-35644-MOODLE_22_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_22_STABLE 2012-10-01 12:46:41 +02:00
Petr Škoda 10a75e713b MDL-35619 fix invalid avatars on other users page 2012-10-01 09:54:48 +02:00
Andrew Davis 6bff753746 MDL-31782 core_grade: fixed a potential infinite loop 2012-10-01 12:59:35 +08:00
Nadav Kavalerchik 74329146af MDL-35708 - Right align user's information in quiz attempt review page , when in RTL mode (theme/standard & base) 2012-10-01 00:01:01 +02:00
Tomasz Muras 237897b968 MDL-35547 Fetch more sub-categories with one SQL query. 2012-09-30 19:27:21 +02:00
Tomasz Muras 8c39dfb9ba MDL-35547 Detect loops in question categories. 2012-09-30 19:27:19 +02:00
Tomasz Muras 54e95b2d33 MDL-35547 Detect question category pointing to itself as a parent. 2012-09-30 19:27:18 +02:00
Andrew Davis e1f24eb46e MDL-33829 mod_glossary: added some smarts so glossary entries with an image in their description are classed as richhtml instead of plainhtml 2012-09-30 11:02:43 +08:00
Jason Fowler 6d84d37b91 MDL-33829 - Glossary - Adding Rich Portfolio Export support 2012-09-30 11:02:23 +08:00
AMOS bot eead9917a5 Automatically generated installer lang files 2012-09-29 00:34:20 +00:00
Tim Hunt daa3fe0ab6 MDL-35693 question engine: set id when saving a new question_attempt 2012-09-28 15:29:27 +01:00
Eloy Lafuente (stronk7) 7b18f18a1e MDL-30514 registration: table aliases don't use AS keyword
This is a backport of both MDL-34072, MDL-34440 (initial fix
and following regression). Basically it's about to observe #12 of:
    http://docs.moodle.org/dev/Database
(Use the AS keyword always with column aliases but not with table aliases)
2012-09-28 14:02:52 +02:00
Andrew Davis 7dc9febe19 MDL-33117 grade: added some smarts to the user report method inject_rowspans() to deal with activity conditional availability 2012-09-28 12:14:54 +08:00
Frederic Massart 5a930d13fd MDL-34570 Accessibility: Adding labels on text inputs and selects to questions 2012-09-28 11:38:58 +08:00
Rossiani Wijaya 735280b159 MDL-34570 accessibility compliance for question: edit string label 2012-09-28 11:38:58 +08:00
Frederic Massart 0295ae4ee7 MDL-34931 core_grade: Fixed grades hidden when activity is hidden 2012-09-28 11:38:48 +08:00
Tim Hunt db46eddf41 MDL-35680 user selector: more usable when queries are slow.
The problem is to do when you pause a bit, so a search starts, and then
type a bit more before the search finishes. It was behaving like this:

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

This fix works by cancelling the first request before sending the
second.
2012-09-27 19:11:26 +01:00
Tim Hunt db6d764fe2 MDL-35620 question engine: should distinguish NULL and 0.
This only matters in an obscure edge case, but it is an edge case we hit
with one of the OU question types.

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

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

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

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

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

While working on this, I made some minor clean-ups in shortanswer and
numerical qtypes.
2012-09-27 12:35:57 +01:00
Tim Hunt e65f54f289 MDL-34257 quiz 'secure' mode: PAGE initialisation order issues. 2012-09-27 12:35:07 +01:00
Dan Poltawski c5575c63b8 weekly release 2.2.5+ 2012-09-27 18:50:48 +08:00
Dan Poltawski d935a6fd68 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-09-27 18:48:00 +08:00
Mark Nelson dde080fb66 MDL-35637 group: Fix form submission error that occurs when GD version is not set. 2012-09-27 13:57:18 +08:00
Dan Poltawski 1e1d19d477 Revert "MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity – Patch provided by Kanika Goyal"
This reverts commit 74d4c9e631.
2012-09-27 11:32:14 +08:00
Nadav Kavalerchik 2acaf9cfee MDL-35246 - Invert all action arrows in Question Bank categories management, when in RTL mode 2012-09-26 23:54:53 +02:00
Jerome Mouneyrac 55cab152a4 MDL-35644 user_get_details: admin should be able to see description
Conflicts:

	user/lib.php
2012-09-26 14:34:04 +08:00
Sam Hemelryk 57264882c7 Merge branch 'wip-MDL-34476-stable22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-09-26 14:27:52 +12:00
Jason Fowler b244e7da9e MDL-34476 - Blocks - Fixing context issue 2012-09-26 10:17:21 +08:00
Sam Hemelryk 414568e144 Merge branch 'MDL-34573_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-09-26 10:10:11 +12:00
Sam Hemelryk d122b47456 Merge branch 'wip-MDL-34476-stable22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-09-26 08:32:41 +12:00
Sam Hemelryk 1b00f61d87 Merge branch 'MDL-31976-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-26 08:20:30 +12:00
Dan Poltawski 7062b887db Merge branch 'MDL-34778_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-09-25 13:43:49 +08:00
Dan Poltawski 71919db800 Merge branch 'MDL-34571_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-09-25 13:11:19 +08:00
Nadav Kavalerchik 5f0341a76b MDL-35576 - Right padding is missing on Date field/element, when in RTL mode (minor fix)
Conflicts:
	theme/base/style/core.css
2012-09-25 01:25:18 +02:00
Nadav Kavalerchik 1d439b59e4 MDL-35537 - Right align registration text on login page, when in RTL mode 2012-09-25 00:37:14 +02:00
Sam Hemelryk 22d38f8b2e Merge branch 'MDL-34607-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-25 09:54:52 +12:00
Dan Poltawski b37dc152c2 Merge branch 'MDL-35207-workshop-attachments-upgrade_22' of git://github.com/mudrd8mz/moodle into MOODLE_22_STABLE 2012-09-24 16:48:32 +08:00
Dan Poltawski 370cb335b1 Merge branch 'wip-MDL-32184-s22' of http://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-09-24 15:36:18 +08:00
Dan Poltawski c5a5eed7f9 Merge branch 'MDL-26940-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-24 15:32:41 +08:00
Jason Fowler 74d4c9e631 MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity – Patch provided by Kanika Goyal 2012-09-24 15:29:31 +08:00
Frederic Massart e3d0ad1683 MDL-31499 Javascript: Handle invalid window names in openpopup 2012-09-24 15:24:14 +08:00
Sam Hemelryk 3b9ed3037f Merge branch 'MDL-35379-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-24 15:42:06 +12:00
Dan Poltawski c5bc14690f Revert "MDL-35442 Add settings and uninstall link for local plugins"
This doesn't work on 2.2.

This reverts commit 7fa1f180d6.
2012-09-24 11:26:30 +08:00
Sam Hemelryk 782a1b4633 Merge branch 'MDL-35517_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-09-24 15:21:21 +12:00
Ruslan Kabalin 7fa1f180d6 MDL-35442 Add settings and uninstall link for local plugins 2012-09-24 11:19:58 +08:00
Dan Poltawski 3900516886 Merge branch 'MDL-35242-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-24 11:08:26 +08:00
Sam Hemelryk d2621a28f5 Merge branch 'MDL-30889-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-09-24 15:05:35 +12:00
Dan Poltawski 92238a4408 Merge branch 'wip-MDL-35001-MOODLE_22_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_22_STABLE 2012-09-24 10:20:09 +08:00
David Mudrák dd7946d997 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:32:35 +02:00
Jason Fowler d1d4c85edc MDL-34476 - Course Completeion, Blocks - Allowing teachers to access the Full Course Report from the Course Completion Block -- Initial patch provided by Nadav Kavalerchik 2012-09-21 15:26:20 +08:00
Ankit Agarwal 89001dfb54 MDL-30889 calendar: Adding focus and blur events to calendar renderer 2012-09-21 14:38:41 +08:00
Frederic Massart 039399e66f MDL-31976 Accessbility: Action icons on course page do not need title attributes
Conflicts:

	course/format/renderer.php
	course/lib.php
	course/yui/toolboxes/toolboxes.js
	lib/yui/dragdrop/dragdrop.js
2012-09-21 11:30:25 +08:00
Simon Coggins 28f6aa743f MDL-35379 Repository: WebDAV supports / as a path 2012-09-21 11:30:15 +08:00
Frederic Massart f3d73474fe MDL-35242 Web Services: Removed translation causing error in add_to_log 2012-09-21 09:56:20 +08:00
Frederic Massart 98f282f680 MDL-34607 File API: Removed ordering by sortorder in area tree 2012-09-21 09:55:49 +08:00
AMOS bot 970f23ad5c Automatically generated installer lang files 2012-09-21 00:34:54 +00:00
Eloy Lafuente (stronk7) 909c277796 MDL-35517 course: Handle non-existing $course->maxbytes on course creation. 2012-09-20 10:20:30 +02:00
Dan Poltawski f9a85712d5 weekly release 2.2.5+ 2012-09-20 14:11:24 +08:00
Dan Poltawski 8dd5f4f086 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-09-20 14:06:45 +08:00
Eloy Lafuente (stronk7) 601071fb10 MDL-33166 forum: fetch cmid to be used by capability checks. 2012-09-19 21:42:29 +02:00
Dan Poltawski b4e47dbb93 Merge branch 'wip-mdl-30833-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-09-19 09:52:28 +08:00
AMOS bot bae9b4c866 Automatically generated installer lang files 2012-09-19 00:34:26 +00:00
Eloy Lafuente (stronk7) 64fed39c7c MDL-33166 Forum: whitespace fix 2012-09-19 00:51:22 +02:00
Eloy Lafuente (stronk7) c43fe7f71e Merge branch 'wip-mdl-33166-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-09-19 00:39:26 +02:00
Simon Coggins 8ed9c72991 MDL-35472: Prevent html tags appearing in page titles
Only a problem when formatstringstriptags is disabled
2012-09-19 09:09:04 +12:00
Petr Škoda 9559ed75c3 MDL-32572 fix notice when changing internal auth_db passwords 2012-09-18 19:53:40 +02:00
Petr Škoda 8f93c4084f MDL-32572 skip problematic users in auth_db sync 2012-09-18 19:53:07 +02:00
Petr Škoda b8bf75156f MDL-32572 always lookpup passwords only in records from current auth plugin
This bug should not be creating any problems thanks to our design of login process, but it should be fixed anyway.
2012-09-18 19:52:36 +02:00
Rajesh Taneja 07b3331b59 MDL-30833 Accessibility: Added aria-expanded attribute on navigation nodes 2012-09-18 17:30:09 +08:00
Dan Poltawski 8e5440c9fc Merge branch 'MDL-30909-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-18 15:08:08 +08:00
Frederic Massart 32bdbf913b MDL-30909 Accessibility: Improved access to reply form in forums 2012-09-18 14:55:43 +08:00
Dan Poltawski d875f8605e Merge branch 'wip-mdl-30831-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-09-18 14:52:04 +08:00
Eloy Lafuente (stronk7) a6e1cc12c8 Merge branch 'MDL-32688-m22' of git://github.com/itamart/moodle into MOODLE_22_STABLE 2012-09-18 01:54:00 +02:00
Eloy Lafuente (stronk7) 3b4f791ba0 Merge branch 'MDL-35419_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-09-18 01:30:45 +02:00
Charles Fulton 35cc173d46 MDL-32230 block_rss_client: remove extra cleaning step 2012-09-18 01:23:20 +02:00
Eloy Lafuente (stronk7) 53b1a1ecb2 Merge branch 'MDL-34841_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-09-18 01:16:15 +02:00
Dan Poltawski 9facd25c14 Merge branch 'MDL-30847_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-09-17 12:40:12 +08:00
Rossiani Wijaya 3a9cbdc72a MDL-34778 enrol: add a space 2012-09-17 12:16:32 +08:00
Rossiani Wijaya 10964239be MDL-34778 accessibility compliance for enrol: add label tag for input text 2012-09-17 12:16:32 +08:00
Rossiani Wijaya cfaf6a18b9 MDL-34571 accessibility compliance for report: Add label to select and input text form 2012-09-17 12:15:59 +08:00
Dan Poltawski f0cbaa1c19 Merge branch 'MDL-34975-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-17 12:00:24 +08:00
Marina Glancy 64346429fe MDL-35001 removed cycle detection from convert_to_array because it causes error in data 2012-09-17 11:26:58 +08:00
Rajesh Taneja 2f861c915b MDL-30831 Accessibility: Added aria role and attributes to dock block 2012-09-17 10:13:52 +08:00
Rex Lorenzo 30bdc936fd MDL-33166 Forum: Adding capability mod/forum:allowforcesubscribe
Conflicts:

	mod/forum/version.php

Conflicts:

	mod/forum/version.php
2012-09-17 10:08:15 +08:00
Frederic Massart 3b79304ba5 MDL-34975 Accessibility: Collapsible areas captions can be clicked to expand/collapse 2012-09-17 09:44:29 +08:00
David Monllao afc54475a8 MDL-30847 core Adding ARIA attribute to help windows 2012-09-17 09:27:38 +08:00
Petr Škoda 14e497c06e MDL-35454 ignore invalid $custombytes in get_max_upload_sizes()
This fixes installation and phpunit init regression.
2012-09-17 00:09:19 +02:00
Itamar Tzadok 4818668672 MDL-32688 My Moodle - Fixed fatal error in guest access to My Moodle 2012-09-14 15:20:49 -04:00
Eloy Lafuente (stronk7) 4db36990ee weekly release 2.2.5+ 2012-09-14 19:09:31 +02:00
Eloy Lafuente (stronk7) 62a22d5b9a Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-09-14 19:03:37 +02:00
Eloy Lafuente (stronk7) ba15c14fee Revert "MDL-32125 mod_forum: updating subscription mode not reflected"
This reverts commit 6a5e3c1d9d.
2012-09-14 10:40:31 +02:00
Tim Hunt ee7a9058a0 MDL-35419 question manual grading: valdiation must handle 0,5
Yet another , as decimal separator issue!

To fix this nicely, I refactored some code into question_utils.
2012-09-13 16:43:27 +01:00
AMOS bot 0089ebaaa9 Automatically generated installer lang files 2012-09-13 00:34:35 +00:00
Sam Hemelryk 04ec524d74 Merge branch 'm22_MDL-32125_forum_subscription_change_reflected' of git://github.com/kanikagoyal/moodle into MOODLE_22_STABLE 2012-09-13 11:25:29 +12:00
Sam Hemelryk b7367b9638 Merge branch 'wip-mdl-30667-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-09-13 11:18:03 +12:00
Sam Hemelryk 0686d3dc4c Merge branch 'MDL-29872_c_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-09-13 11:12:37 +12:00
Tim Hunt b252a84543 MDL-34841 error importing questions with long names.
The problem was with the non-UTF-8-safe way that a question name
was being constructed from the question text.

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

I also remembered not to break the lesson in the process.
2012-09-12 17:43:00 +01:00
David Monllao 7f2d81c7b6 MDL-35264 mod_chat Bigger frame for text input 2012-09-12 14:54:26 +08:00
Frederic Massart ab6c91d42a MDL-34765 Course: Removed unknown constant when reordering 2012-09-12 13:50:24 +08:00
Sam Hemelryk b95d2cc35e Merge branch 'MDL-30829-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-12 10:27:40 +12:00
Eloy Lafuente (stronk7) 63c4c85eff Merge branch 'MDL-34984_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-09-11 16:30:58 +02:00
Frederic Massart 8b662ca83f MDL-34765 Course: Fixed missing argument in course reordering 2012-09-11 16:41:26 +12:00
Sam Hemelryk ccbf68066b Merge branch 'MDL-34765-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-11 15:31:09 +12:00
Sam Hemelryk 4340e2faac Merge branch 'MDL-30018_22' of https://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-09-11 15:21:44 +12:00
Sam Hemelryk 1db9d1e7ec Merge branch 'MDL-10259_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-09-11 15:18:31 +12:00
Sam Hemelryk 22f55d840c Merge branch 'MDL-30857_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-09-11 15:10:39 +12:00
Eloy Lafuente (stronk7) 2b9782fdd0 Merge branch 'MDL-35171_m22' of git://github.com/merrill-oakland/moodle into MOODLE_22_STABLE 2012-09-11 02:45:08 +02:00
Eloy Lafuente (stronk7) 0f43c24385 Merge branch 'MDL-29348-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-11 02:23:16 +02:00
Sam Hemelryk b818dfc2d7 Merge branch 'MDL-34916_M22' of git://github.com/kordan/moodle into MOODLE_22_STABLE 2012-09-11 12:06:04 +12:00
Eloy Lafuente (stronk7) 686723f4fa Merge branch 'm22_MDL-35123' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-09-11 02:03:24 +02:00
Eloy Lafuente (stronk7) 5f48905520 Merge branch 'm22_MDL-35208' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-09-11 01:57:53 +02:00
Eloy Lafuente (stronk7) 86e2c59128 Merge branch 'MDL-35257-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-09-11 01:53:48 +02:00
Sam Hemelryk 94ff6cf6fb Merge branch 'MDL-27786-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-09-11 11:15:14 +12:00
Sam Hemelryk f50e16d07e Merge branch 'MDL-33374-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-09-11 11:10:15 +12:00
David Mudrák 1c3d93d3ca MDL-35272 Fix typo in qformat_blackboard_six.php
Credit goes to German Valero for spotting and reporting this.
2012-09-11 01:03:34 +02:00
Adrian Greeve a8a779115c MDL-32785 - lib - Ignorning hard frozen fields when submitting data. 2012-09-11 10:48:14 +12:00
Eloy Lafuente (stronk7) 4eca916b5f Merge branch 'w37_MDL-35289_m22_tinymcelangs' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-09-10 19:53:54 +02:00
Eloy Lafuente (stronk7) 694c861e81 Merge branch 'MDL-35343_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-09-10 16:42:09 +02:00
Tim Hunt fa7298ed7f MDL-35343 JavaScript visible in multichoice choice feedback.
Also, Match correct answer, and calculated multi and multianswer
feedback.
2012-09-10 13:08:28 +01:00
Frederic Massart 03cc152087 MDL-30829 Accessibility: Docking a block disables the accessible anchors 2012-09-10 17:22:01 +08:00
David Monllao 6c27894dd2 MDL-30857 block_community Removing comments hardcoded height 2012-09-10 15:00:03 +08:00
Aparup Banerjee 057d68fc2e Merge branch 'MDL-35264_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-09-10 14:39:20 +08:00
Aparup Banerjee 1aac11d74d Merge branch 'MDL-27398_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-09-10 14:32:06 +08:00
David Monllao 2532c36ea3 MDL-27398 mod_chat Removing PAGE references 2012-09-10 14:11:31 +08:00
David Monllao 6bf9b6a996 MDL-27398 mod_chat Adding file basic doc 2012-09-10 14:11:31 +08:00
David Monllao 9405709c55 MDL-27398 mod_chat Removing deprecated calls and moving dependencies
Credit to Jorge Villalon
2012-09-10 14:11:21 +08:00
David Monllao 94e2c182fa MDL-27398 mod_chat Adding CLI_SCRIPT to chat daemon
Credit to Jorge Villalon
2012-09-10 14:11:13 +08:00
Aparup Banerjee b216fc392f Merge branch 'MDL-34068_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-09-10 13:43:00 +08:00
Eloy Lafuente (stronk7) cb69b471bd MDL-30018 restore: better answer matching. Credit goes to Tyler Bannister, thanks!
On backup, contents are cleaned to be safe utf8. That was leading to
some matching problems on restore against not cleaned DB contents (for
already existing questions). This commit adds one fallback method to
perform the match against cleaned DB contents.
2012-09-09 20:30:20 +02:00
Eloy Lafuente (stronk7) 698ecafa61 Moodle 2.2.5 release 2012-09-09 16:22:00 +02:00
AMOS bot eca810808c Merge branch 'MOODLE_22_STABLE' into install_22_STABLE 2012-09-08 00:34:46 +00:00
Petr Škoda d184770c60 MDL-35289 add missing charmap usage info string 2012-09-07 10:31:12 +02:00
Rossiani Wijaya 8eb614d4bb MDL-29872 Dropbox repository: add message handler to filepicker header and add message to logout from dropbox.
When user clicked on logout button from dropbox repository, it will also logging them out from dropbox site through a popup window
2012-09-07 15:45:46 +08:00
Rossiani Wijaya 47ad6d600d MDL-34573 - add label for search tag input text 2012-09-07 15:45:08 +08:00
Rossiani Wijaya b9b2d11960 MDL-34573 Tag: update label for suggested tag 2012-09-07 15:45:07 +08:00
Rossiani Wijaya 5da3e35ed3 MDL-34573 accessibility compliance for tag: Add forform input text and select tag 2012-09-07 15:45:07 +08:00
Rossiani Wijaya e08b39e0b4 MDL-34984 admin setting: fixed labeling and shortname display for admin setting 2012-09-07 15:44:41 +08:00
David Monllao 3e0f93136f MDL-34068 mod_chat Sending text/html headers when sending the messages frame output for the first time 2012-09-07 12:12:47 +08:00
David Monllao a29aca57ee MDL-35264 mod_chat Changing the input frame of chat daemon method to a embedded page layout 2012-09-07 12:08:35 +08:00
David Monllao 2fcb88838f MDL-10259 core Adding a search courses box if there are too many courses 2012-09-07 11:31:09 +08:00
Dan Poltawski 879c7655f2 MDL-35257 lib: if $CFG->logguests is disabled, avoid some log actions
This is for performance, else there can be great contention on the guest
user record as we've seen on moodle.org.
2012-09-07 10:25:59 +08:00
Ankit Agarwal 1d9a7b68f7 MDL-27786 calendar: Changing the eventname string for accessibility 2012-09-07 10:21:51 +08:00
Ankit Agarwal 4df3274355 MDL-33374 profile: Use correct text for buttons when creating a new user 2012-09-07 10:19:25 +08:00
Eloy Lafuente (stronk7) 555112a5ca weekly release 2.2.4+ 2012-09-07 02:38:09 +02:00
AMOS bot 986343b8cf Automatically generated installer lang files 2012-09-07 00:35:13 +00:00
Eloy Lafuente (stronk7) 2376d7125b Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-09-07 02:18:30 +02:00
Eloy Lafuente (stronk7) 09cca2d7aa Merge branch 'MDL-34945-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-06 20:12:22 +02:00
Eloy Lafuente (stronk7) e7920065ac Merge branch 'MDL-34985_m22' of git://github.com/merrill-oakland/moodle into MOODLE_22_STABLE 2012-09-06 20:08:05 +02:00
Dan Marsden 88c5506d1b MDL-35123 SCORM: cleaner version of get_last_attempt and get_last_completed_attempt, fixes support for MS Sql driver 2012-09-06 18:47:30 +12:00
Eloy Lafuente (stronk7) 222abcddd4 Merge branch 'MDL-35034-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-06 01:18:54 +02:00
Eloy Lafuente (stronk7) dd0e60cb3d MDL-29662 quiz overrides: use proper course value (was php notice). 2012-09-05 18:02:35 +02:00
Eloy Lafuente (stronk7) da91c22212 Merge branch 'w36_MDL-35077_m22_stats' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-09-05 13:13:53 +02:00
Petr Škoda 9a9d65a733 MDL-35077 do not show link to system stats report if stats disabled 2012-09-05 10:02:36 +02:00
Aparup Banerjee 8646d0aecb MDL-26504 blog: fixed SQL to add explicit casting 2012-09-05 10:41:29 +08:00
Eloy Lafuente (stronk7) 70206bbda8 MDL-34997 youtube filter: keep dimensions working for shortened urls 2012-09-05 01:17:30 +02:00
Eloy Lafuente (stronk7) d84df9f5a6 Merge branch 'MDL-34997-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-05 00:53:50 +02:00
Aparup Banerjee 7a5d23ea32 Merge branch 'wip-mdl-34537-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-09-04 17:33:28 +08:00
Frederic Massart 1461ecc0e4 MDL-34945 Repository: Creating an instance requires the user to have the permission to view it 2012-09-04 16:17:11 +08:00
Kordan e8cfd996f0 MDL-34916 theme_formal_white: added support for relative path of logos 2012-09-04 09:46:18 +02:00
Kordan 395f285f91 MDL-35211 theme_formal_white: updated descriptions involved in MDL-34916 2012-09-04 09:13:44 +02:00
Andrew Davis 63fbf99e07 MDL-26504 blog: added upgrade code to remove orphan external blog posts
Conflicts:
	lib/db/upgrade.php
	version.php

Conflicts:
	version.php
2012-09-04 14:04:47 +08:00
Andrew Davis 89ce191be2 MDL-26504 blog: made it delete external blog posts when the external blog is deleted 2012-09-04 14:03:14 +08:00
Tim Lock 32a0775cf9 MDL-35092: Add proxy support to enrol/paypal IPN 2012-09-04 10:58:08 +08:00
Eloy Lafuente (stronk7) e20371b316 Merge branch 'wip-mdl-34606-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-09-04 02:09:37 +02:00
Eloy Lafuente (stronk7) 81baf0d5f3 Merge branch 'MDL-34633-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-04 01:54:23 +02:00
Eloy Lafuente (stronk7) befce5863d Merge branch 'MDL-29662_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-09-04 01:14:33 +02:00
Eloy Lafuente (stronk7) 948835483a Merge branch 'MDL-27818_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-09-04 01:08:07 +02:00
Dan Marsden b8b00afaf3 MDL-35208 mod_choice: respect order of options when running backup 2012-09-04 11:02:45 +12:00
Eloy Lafuente (stronk7) 3db989d41e Merge branch 'MDL-33306_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-09-04 00:31:23 +02:00
Eloy Lafuente (stronk7) 81f6a19377 Merge branch 'MDL-33812-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-04 00:20:38 +02:00
Eloy Lafuente (stronk7) 91f65d0ab4 Merge branch 'w36_MDL-34097_m22_environment' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-09-04 00:02:01 +02:00
Eloy Lafuente (stronk7) 7b3a9020e6 Merge branch 'MDL-28346-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-09-03 20:02:33 +02:00
Eloy Lafuente (stronk7) 06d5f84d71 Merge branch 'w36_MDL-35077_m22_stats' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-09-03 17:54:45 +02:00
Eloy Lafuente (stronk7) 8918cf7b0d Merge branch 'MDL-35133_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-09-03 17:48:12 +02:00
Eloy Lafuente (stronk7) d7831c74be Merge branch 'w36_MDL-35145_m22_guestdelete' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-09-03 16:18:33 +02:00
Aparup Banerjee dc5736f402 Merge branch 'MDL-35151_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-09-03 19:24:14 +08:00
Aparup Banerjee 6915eff9b1 Merge branch 'MDL-35180_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-09-03 17:39:13 +08:00
Rajesh Taneja 79d375eeba MDl-30667 Course: Maxbytes list will show current value, if it's lower then maxbytes 2012-09-03 14:45:00 +08:00
Frederic Massart b04ba37864 MDL-29348 Repository: WebDAV displays a breadcrumb 2012-09-03 14:10:33 +08:00
Jean-Philippe Gaudreau 1a73d34c10 MDL-34997 - Allow shortened url youtu.be and y2u.be for Youtube filter 2012-09-03 14:10:24 +08:00
Frederic Massart 4516e7204a MDL-34633 Repository: Flickr supports small images
Conflicts:

	repository/flickr/lib.php
	repository/flickr_public/lib.php
2012-09-03 14:10:15 +08:00
Frederic Massart 934de9687e MDL-35101 Repository: Public Flickr fails when the picture has no license 2012-09-03 14:10:15 +08:00
Frederic Massart a30912967c MDL-34765 Course: Re-sorting courses uses natural order 2012-09-03 14:10:05 +08:00
Frederic Massart 06aa3ac19f MDL-28346 Backup: Restore task can log results 2012-09-03 14:09:55 +08:00
Frederic Massart aae03dd4d4 MDL-28346 Backup: Backup does not fail when a file is missing
Conflicts:

	backup/util/ui/backup_ui_stage.class.php
2012-09-03 14:09:55 +08:00
Frederic Massart 5ef242f4a4 MDL-28346 Backup: Restore does not fail when a file is missing
Conflicts:

	backup/util/dbops/restore_dbops.class.php
2012-09-03 14:09:55 +08:00
Frederic Massart b3ab3bd054 MDL-28346 Backup: Added new status 'warning' for backup result 2012-09-03 14:09:55 +08:00
Frederic Massart 1e12baddde MDL-35034 Repository: Google Docs does not fail when download is restricted
Conflicts:

	lib/googleapi.php
	repository/googledocs/lib.php
2012-09-03 14:09:36 +08:00
Frederic Massart 0bcbc76b25 MDL-33812 Backup: Added some upgrade information about the changes 2012-09-03 14:09:26 +08:00
Frederic Massart 85616ca24f MDL-33812 Backup: Revert MDL-33521
Conflicts:

	backup/util/helper/backup_cron_helper.class.php
2012-09-03 14:09:26 +08:00
Frederic Massart cdf58e680c MDL-33812 Backup: Respect of backup_auto_keep 2012-09-03 14:09:25 +08:00
Sam Hemelryk e401131606 Merge branch 'MDL-31496_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-09-03 12:20:16 +12:00
Sam Hemelryk ead307f537 MDL-26822 user: Minor improvements post integration 2012-09-03 11:41:27 +12:00
Sam Hemelryk c0941ec996 Merge branch 'MDL-26882-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-09-03 11:25:57 +12:00
Sam Hemelryk 926fffa146 Merge branch 'wip-MDL-34318-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-09-03 10:12:15 +12:00
Sam Hemelryk 1ac4b314f6 Merge branch 'MDL-30020c-22' of git://github.com/srynot4sale/moodle into MOODLE_22_STABLE 2012-09-03 09:52:12 +12:00
Mary Evans 19685dbf5e MDL-35180 theme_afterburner: fixes IE9 compatibility view bug 2012-09-02 16:35:09 +01:00
Petr Škoda cbff07faef MDL-34097 keep current requirements for Moodle 2.4 2012-09-02 11:55:24 +02:00
AMOS bot d25a550db9 Automatically generated installer lang files 2012-09-02 00:32:47 +00:00
Mary Evans df1a0756ab MDL-35151 theme_anomaly: removed CSS selectors (.forumpost .content p) from style/general.php thus allowing YUI CSS to style paragraphs as normal. 2012-09-01 23:29:29 +01:00
Eric Merrill 1ca2bdc0c8 MDL-35171 formslib Updating date config array to fix problems with month jumping.
Based on https://bugs.php.net/bug.php?id=49115, if you request a month, but do not
specify a date, it will use your current date, which may be beyon a date in the month
requested, causing the return of the next month. This patch specifies the date (1st).
2012-09-01 10:17:33 -04:00
Petr Škoda d6e2946e19 MDL-35145 add extra delete_user() parameter validation
We do not want to delete local admins and guest account, we need to validate the supplied parameter is valid $user record and refetch it from database.
2012-09-01 14:23:55 +02:00
Petr Škoda b06c820df6 MDL-35077 fix stats report navigation links 2012-08-31 14:18:48 +02:00
Eloy Lafuente (stronk7) 8f3c8e78a9 weekly release 2.2.4+ 2012-08-31 11:35:03 +02:00
Eloy Lafuente (stronk7) 5fcba2f9c8 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-08-31 11:27:45 +02:00
Eloy Lafuente (stronk7) acb539b1c9 MDL-35147 lesson qformat import: Dirty hack to support array questiontext structures. 2012-08-31 03:00:49 +02:00
Tim Hunt 228533be80 MDL-27818 question bank: multilang category names don't work. 2012-08-30 22:48:50 +01:00
Tim Hunt b8c475d631 MDL-35133 accesslib: context_module::get_context_name should format_string
Otherwise activites with multilang names are displayed badly.
2012-08-30 22:47:33 +01:00
Eloy Lafuente (stronk7) 165bfe5454 Merge branch 'MDL-35147_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-30 20:12:15 +02:00
Eloy Lafuente (stronk7) ce754f10c6 MDL-31244, MDL-25063 there is no phpuni support in 22_STABLE 2012-08-30 18:34:25 +02:00
Eloy Lafuente (stronk7) 049b47ca09 Merge branch 'MDL-31244_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-30 18:32:20 +02:00
Tim Hunt 22462fba4f MDL-35147 lesson: fix regression from MDL-25492.
I really wish someone would fix lesson to use the question bank.
2012-08-30 13:12:13 +01:00
Ankit Agarwal 30de036731 MDL-26882 profile: Applying cap check (site:viewuseridentity) to email field in user profile 2012-08-30 15:38:25 +08:00
Ankit Agarwal 952fef7299 MDL-26882 profile: Apllying the cap check site:viewuseridentity to user profile 2012-08-30 15:38:22 +08:00
Adrian Greeve 09332feae8 MDL-32108 - navigation - After logging in the user is directed to mysite instead of site home.
Thanks to lurii Kucherov for this patch.
2012-08-30 12:14:55 +08:00
Tim Hunt fe470a231f MDL-29662 quiz overrides: update dates during course reset.
Also, fix duplicate SQL clause in similar code in lib,
and fix error when saving overrides.
2012-08-29 18:43:25 +01:00
Tim Hunt ee91ffedb3 MDL-33306 qtype multichoice: fix display of right answer.
Also, fix  higlighing of last edited question in the qeustion bank, when
it co-incides with a grey row.
2012-08-29 17:48:16 +01:00
Eloy Lafuente (stronk7) 06606caf71 Merge branch 'wip-mdl-30121-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-08-29 12:15:29 +02:00
Aparup Banerjee 12f57ec9c3 Merge branch 'wip-mdl-31623-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-08-29 16:57:20 +08:00
Aparup Banerjee 2335d65949 Merge branch 'MDL-31959_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-29 15:34:06 +08:00
Aparup Banerjee 32b8a7bcf0 Merge branch 'wip-mdl-34040-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-08-29 14:45:44 +08:00
Aparup Banerjee 6a4d3ec290 Merge branch 'MDL-34952_22' of git://github.com/grabs/moodle into MOODLE_22_STABLE 2012-08-29 13:27:23 +08:00
Eloy Lafuente (stronk7) 90241eaaf8 Merge branch 'MDL-29598_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-08-28 23:24:11 +02:00
Eloy Lafuente (stronk7) 6e8d3ac1bf Merge branch 'MDL-25492_22' of git://github.com/jmvedrine/moodle into MOODLE_22_STABLE 2012-08-28 20:12:48 +02:00
Eloy Lafuente (stronk7) 1c37f8865d Merge branch 'MDL-31837_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-28 20:10:43 +02:00
Tim Hunt 9345e7bfb8 MDL-31837 qtype_numerical: fix old-style unit tests. 2012-08-28 15:54:17 +01:00
Aparup Banerjee 56d47558ff Merge branch 'MDL-31837_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-28 17:04:48 +08:00
Aparup Banerjee 0639b9ca1a Merge branch 'MDL-32464_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-28 16:55:14 +08:00
Adrian Greeve 6117966d3b MDL-34318 - blog - Removal of blog associations from the database on delete.
Thanks to Erik Lundberg for this patch.
2012-08-28 15:59:21 +08:00
Jean-Michel Vedrine db6bac8b16 MDL25492_22 error in version and requires changed by mistake 2012-08-28 08:06:13 +02:00
Aaron Barnes c186374c3b MDL-30020 blocks/completion: Some criteria do not display complete
Also includes a spruce up of the code
2012-08-28 11:46:26 +12:00
Eloy Lafuente (stronk7) 4df4c677bd Merge branch 'MDL-34406_fullname_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-08-27 20:04:16 +02:00
Eloy Lafuente (stronk7) 3dd9961f44 Merge branch 'MDL-34430_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-27 18:51:25 +02:00
Eloy Lafuente (stronk7) 006052e19c Merge branch 'MDL-34993_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-27 18:36:19 +02:00
Eloy Lafuente (stronk7) 31970a66a8 Merge branch 'm22_MDL-34994' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-08-27 18:23:45 +02:00
Eloy Lafuente (stronk7) e5783fd132 Merge branch 'MDL-35026_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-27 17:54:55 +02:00
Eloy Lafuente (stronk7) 70c160f27d Merge branch 'MDL-35003_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-27 17:51:41 +02:00
Eloy Lafuente (stronk7) c06b18a475 Merge branch 'MDL-35023_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-27 16:34:02 +02:00
Eloy Lafuente (stronk7) aa81647c4c Merge branch 'MDL-35055_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-27 16:17:06 +02:00
Aparup Banerjee ad24b3a320 Merge branch 'MDL-31633-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-08-27 17:26:53 +08:00
Rajesh Taneja 3851c53f76 MDl-34606 Administration: id for clear button is set properly, and disabled on page load 2012-08-27 15:16:29 +08:00
Rajesh Taneja f731735624 MDL-34537 Enrolments: Assign alternative odd and even class to manual enrol popup 2012-08-27 14:20:06 +08:00
Aparup Banerjee f76fe80874 Merge branch 'MDL-34996_22' of git://github.com/grabs/moodle into MOODLE_22_STABLE 2012-08-27 13:48:03 +08:00
AMOS bot 9bb3b99e56 Automatically generated installer lang files 2012-08-27 00:32:48 +00:00
Aaron Barnes 40efa28d9e MDL-32386 completion: Fix incorrect method parameters 2012-08-27 11:54:41 +12:00
Andreas Grabs fb2cbe2466 MDL-34996 - Improve help text for Feedback dependancies 2012-08-24 23:04:07 +02:00
Andreas Grabs 20af48348b MDL-34952 - change get_info() to public access 2012-08-24 21:53:45 +02:00
Tim Hunt 1600029de9 MDL-32464 qformat multianswer: fix missing include.
Also, add a sample file that can be used for testing, and add a unit
test to verify this is working.
2012-08-24 16:58:30 +01:00
Tim Hunt 170130d756 MDL-35055 question import: slight error with the Match grades option.
Even in the 'Error if grade not listed case', it was applying a small
tolerance. In the case of a fuzzy match, it was returning the inexact
grade from the import file, rather than the precise grade that Moodle
was expecting.

That causes problems when the editing form is displayed, because the
value from the database does not match any of the available options, so
the grade is changed to 0%.
2012-08-24 15:46:12 +01:00
Jean-Michel Vedrine 1d23052a60 MDL25-492 Blackboard V6+ question import is broken 2012-08-24 14:06:56 +02:00
Ankit Agarwal 2fc41b1ccd MDL-31633 grades: Fixing incorrect redirect when trying to edit grade letters from admin settings 2012-08-24 14:59:01 +08:00
Tim Lock 91de7cb26e MDL-31623 Course: Course reset bypass modules, which are removed 2012-08-24 11:00:16 +08:00
Rajesh Taneja e0b1515fde MDL-30121 Assignment: Draft submission files will not be included in zip, if activity is open 2012-08-24 10:55:09 +08:00
David Monllao c52a364c27 MDL-29598 backup Avoid possible future duplicate grade letters
More info in restore_activity_grades_structure_step->process_grade_letter() comments
2012-08-24 08:56:15 +08:00
Justin Filip 481415635f MDL-29598 backup Check whether a grade_letters record exists before trying to insert a new record 2012-08-24 08:56:14 +08:00
Tim Hunt 4458b51cc4 MDL-34430 qtype essay: upgrade from MDL-31393 needs a progress bar. 2012-08-23 20:04:01 +01:00
Tim Hunt 1482c2b20b MDL-35026 qtype multianswer: misnamed string.
AMOS BEGIN
 MOV [questionnadded,qtype_multianswer],[questionsadded,qtype_multianswer]
AMOS END
2012-08-23 19:02:16 +01:00
Tim Hunt e60c61e570 MDL-35023 qtype calculated: fix strict syntax problem. 2012-08-23 19:01:57 +01:00
Tim Hunt d9c2ecc342 MDL-35003 questions: remove stray full stop after correct answer.
In a few situations, this full stop makes things a bit more grammatical,
but there are many other situations where it causes problems. So, on
balance we will remove it.
2012-08-23 19:01:39 +01:00
Tim Hunt cf6b831723 MDL-34993 questions: convert numeric fields to float on load.
NUMBER(X,Y) typically come back from the DB as strings. If you don't
convert them to float, then when you display them, it appears as
1.0000000, which is not normally what you want.

Also, increase the size of the field on the edit form, so if you
question does have default mark 0.1234567, you can see that!
2012-08-23 19:01:21 +01:00
Tim Hunt 6d24c26b52 MDL-31837 numerical tolerance: better handling of very
small tolerances.

The changes between Moodle 1.9 and 2.1 made the marking of very small
answers like 10^-20 almost impossible. This change fixes it.

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

1. Copy and paste of unified diffs.

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

This fix detects these two cases, and just stops the algebra filter from
replacing them.
2012-08-23 18:58:54 +01:00
Eloy Lafuente (stronk7) 4ff0f02857 weekly release 2.2.4+ 2012-08-23 19:24:57 +02:00
Eloy Lafuente (stronk7) 956592f590 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-08-23 19:18:56 +02:00
Eloy Lafuente (stronk7) b6c52b4740 MDL-31957 Course reset: Add missing global 2012-08-23 02:13:08 +02:00
Dan Poltawski 6ab7e3a3d5 MDL-34870 enrol_cohort - don't need to do useless work 2012-08-22 10:03:40 +08:00
Adam Olley 892600868b MDL-34870: Prevent cohort enrol sync when updating course record 2012-08-22 10:03:34 +08:00
Dan Poltawski faf8ef6f04 Merge branch 'MDL-34733_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-22 09:16:32 +08:00
Eloy Lafuente (stronk7) d90e2237fe Merge branch 'wip-mdl-32759-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-08-22 02:34:35 +02:00
Eloy Lafuente (stronk7) b1dbeb8dff MDL-34702 quiz DB: fix non-matching savepoint 2012-08-22 02:28:02 +02:00
Eloy Lafuente (stronk7) 407c0fbcd6 Merge branch 'MDL-34702_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-22 02:12:11 +02:00
Dan Marsden b33d969d91 MDL-34994 mod_choice: fix restore of user responses - use correct optionid 2012-08-22 09:05:07 +12:00
Tim Hunt bfa34d8de3 MDL-34733 quiz 'secure' mode: finish review link broken in previews
Here, we use a nasty hack to fix the problem on stable branches without
an API change.
2012-08-21 12:12:11 +01:00
Juho Viitasalo 83d8c6b290 Changed two notification to output correctly 2012-08-21 15:38:27 +08:00
Dan Poltawski 4263e87000 Merge branch 'MDL-34569_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-21 12:35:23 +08:00
Petr Škoda adf397d88a MDL-34901 fix user login times handling 2012-08-21 12:02:48 +08:00
Dan Poltawski 08d2cbe451 Merge branch 'MDL-34742-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-08-21 11:59:38 +08:00
Dan Poltawski 06d9aa79b8 MDL-34808 qformat_examview - increment version 2012-08-21 11:06:23 +08:00
Dan Poltawski 6532971105 Merge branch 'MDL-34808_22' of git://github.com/jmvedrine/moodle into MOODLE_22_STABLE 2012-08-21 11:01:02 +08:00
David Monllao a0e94952d0 MDL-31496 mod_data Replacing inline styles for CSS classes in templates and browse view 2012-08-21 10:50:08 +08:00
David Monllao e8e8e49345 MDL-31496 mod_data Replacing inline styles for CSS classes in text inputs 2012-08-21 10:50:08 +08:00
David Monllao 42eb95f55c MDL-31496 mod_data Replacing inline styles for CSS classes in search containers 2012-08-21 10:50:08 +08:00
David Monllao 12f21bbb82 MDL-31496 mod_data Replacing inline styles for CSS classes in textarea elements 2012-08-21 10:50:08 +08:00
Dan Poltawski 3c061d5f83 MDL-34738 qformat_blackboard - increment version number 2012-08-21 09:53:59 +08:00
Jean-Michel Vedrine eeef6f2813 MDL-34738 qformat blackboard: blackboard format is broken
Conflicts:
	question/format/blackboard/format.php
2012-08-21 09:52:29 +08:00
Eloy Lafuente (stronk7) 0142a4b595 Merge branch 'MDL-29847_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-21 01:29:08 +02:00
Eloy Lafuente (stronk7) d60f8ef2db Merge branch 'MDL-31957-m22' of git://github.com/sammarshallou/moodle into MOODLE_22_STABLE 2012-08-21 01:23:52 +02:00
Eric Merrill cae60d13ab MDL-34985 gradebook Fixing issue where default parent in Full View Add Category could be inconsistent.
Turns out the correct default was already computed, but was not being applied to the setting.
2012-08-20 17:14:07 -04:00
Eloy Lafuente (stronk7) de4c3e62cf Merge branch 'w34_MDL-34868_m22_gmapsv2' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-08-20 20:18:37 +02:00
Eloy Lafuente (stronk7) 85bd3fd899 Merge branch 'MDL-28531-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-08-20 16:28:38 +02:00
Eloy Lafuente (stronk7) 59e2a77596 Merge branch 'MDL-34529' of git://github.com/jasonilicic/moodle into MOODLE_22_STABLE 2012-08-20 13:59:55 +02:00
Nathan Mares 3ea975b6ba MDL-34372: Fix query in backup_cron_helper so it works on Postgres 8.3
Amended by stronk7@moodle.org to use uppercase SQL keywords.
2012-08-20 13:29:03 +02:00
Dan Poltawski 0863fbe14a Merge branch 'MDL-34779-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-08-20 15:59:06 +08:00
Michael de Raadt d62450f1dc MDL-34779 settings: Updating lang string corrposnding to the fullnamedisplay setting 2012-08-20 15:47:55 +08:00
Dan Poltawski 9549417007 Merge branch 'MDL-34957_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-08-20 14:23:35 +08:00
Rajesh Taneja 642603d40c MDL-34040 Filters: Added wmode=transparent for tinymce moodlemedia plugin, to avoid overlapping 2012-08-20 14:04:59 +08:00
Dan Poltawski 00fe761b3e Merge branch 'MDL-34535-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-08-20 12:07:02 +08:00
Dan Poltawski 2f7ca09572 Merge branch 'wip-MDL-31810-stable22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-08-20 12:01:43 +08:00
Dan Poltawski b869f5d045 Merge branch 'wip-mdl-31734-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-08-20 11:57:27 +08:00
Dan Poltawski d2dccd8162 Merge branch 'MDL-30405-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-08-20 11:40:07 +08:00
Dan Poltawski 279c39f71d Merge branch 'MDL-30370_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-08-20 11:22:34 +08:00
Andrew Davis 6ebac8f0c1 MDL-34406 message: removed an unnecessary string creation 2012-08-20 10:17:30 +08:00
Petr Škoda 0df0664e4d MDL-34868 update deprecated Google maps API V2 key info 2012-08-19 18:22:13 +02:00
Jean-Michel Vedrine 4b4373ed3d MDL-34808 qformat examview Add phpunit tests to examview import format 2012-08-19 16:44:24 +02:00
Mary Evans a18539406c MDL-34957 theme_base: made small change to custommenu CSS in style/core.css to fix vertical arrow overlap in menu item 2012-08-19 01:49:34 +01:00
AMOS bot e212bd3aab Automatically generated installer lang files 2012-08-19 00:31:37 +00:00
Tim Hunt cb12522cea MDL-29847 question preview: garbage collect old preview data.
This adds cron code which looks for question previews that have not been
touched for more than 24 hours, and deletes them.

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

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

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

Sadly, to make this work on MySQL, we require a horrible hack in the
already hacky delete_usage_records_for_mysql function.
2012-08-17 10:53:05 +01:00
sam marshall eaead2aea8 MDL-31957 Course reset: Does not erase activity completion data 2012-08-17 10:41:14 +01:00
Frederic Massart 24d063dbb8 MDL-28531 Unit Tests: Fixed tests to work with core update 2012-08-17 14:46:04 +08:00
Frederic Massart a356a5f615 MDL-28531 Backup: Automated backups run when they are scheduled
Conflicts:

	lib/tests/backup_test.php
2012-08-17 14:46:03 +08:00
Frederic Massart e70c06f548 MDL-34648 Chat: No more errors when sentence begin with 'To' 2012-08-17 14:45:53 +08:00
Matt Meisberger 83985d7856 MDL-34742 - adding ability to move blocks into empty column 2012-08-17 14:45:20 +08:00
Rajesh Taneja bcc92a4cc7 MDL-31734 Course: removed unused sectiontitle string 2012-08-17 14:34:06 +08:00
Rajesh Taneja 617144c9ff MDL-26492 Lesson: lesson_get_user_grades will return grade of all users if userid=0 2012-08-17 14:31:27 +08:00
Rossiani Wijaya 6e8fad9d04 MDL-34569 - add label for search wiki input text 2012-08-17 11:30:37 +08:00
Rossiani Wijaya ee5a93f38e MDL-34569 accessibility compliance for wiki module: Add label for input text and select tag 2012-08-17 11:16:36 +08:00
AMOS bot 4f15cd4180 Automatically generated installer lang files 2012-08-17 00:31:52 +00:00
Tim Hunt 7fbbcdbdd8 MDL-34702 quiz DB: questiondecimalpoints has wrong default.
Thanks to the folks at UCL for tracking down this problem. It has only
hidden for 2+ years!

Conflicts:

	mod/quiz/db/install.xml
	mod/quiz/version.php
2012-08-16 17:41:14 +01:00
Eloy Lafuente (stronk7) 76c9fcc967 weekly release 2.2.4+ 2012-08-16 17:25:09 +02:00
Eloy Lafuente (stronk7) 2ebd272124 Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-08-16 17:22:18 +02:00
Rossiani Wijaya e155365566 MDL-34563 - change string firstname to lastname and add accesshide class 2012-08-16 14:18:46 +08:00
Rossiani Wijaya afee2a7af2 MDL-34563 - removed double labeling and add label for input text 2012-08-16 14:18:37 +08:00
Aparup Banerjee 408dfe97b8 Merge branch 'MDL-34565_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-16 11:51:54 +08:00
Jason Fowler 7ceb8dacb7 MDL-31810 - Fixing unclosed DIV tags throughout Moodle 2012-08-16 10:56:01 +08:00
David Monllao 227b0f5a7d MDL-30370 mod_forum - Removing duplicate seleted field in the DB query
Credit to Iñigo Zendegi
2012-08-15 17:01:35 +08:00
Rossiani Wijaya 9a460c38fd MDL-34565 - remove duplicate labeling 2012-08-15 16:25:21 +08:00
Eloy Lafuente (stronk7) 4dd7c5cafd Merge branch 'MDL-34862_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-15 03:32:59 +02:00
AMOS bot 0beb16d923 Automatically generated installer lang files 2012-08-15 00:31:34 +00:00
Sam Hemelryk 5d44dbd1eb Merge branch 'MDL-33531_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-08-15 11:21:57 +12:00
Dan Poltawski 3403906010 MDL-29192 - clarify email_to_user call 2012-08-15 01:17:57 +02:00
Aparup Banerjee e4744c5896 Merge branch 'wip-MDL-34748-MOODLE_22_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_22_STABLE 2012-08-14 15:30:16 +08:00
Ankit Agarwal 9b18d9ce59 MDL-34535 message: userto should use is_number instead of is_init 2012-08-14 14:41:57 +08:00
Aparup Banerjee eed4c2339c Merge branch 'MDL-34563_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-14 14:34:53 +08:00
Rossiani Wijaya 3798162934 MDL-34563 - change plural strings and removed colon for accesshide label 2012-08-14 13:56:57 +08:00
Aparup Banerjee 97da1cf0ec Merge branch 'MDL-34565_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-14 13:53:43 +08:00
Dan Poltawski 8f4ff87e5e Merge branch 'MDL-34728_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-14 13:33:16 +08:00
Dan Poltawski 37b1a5264b Merge branch 'MDL-34807_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-14 12:08:09 +08:00
Rajesh Taneja 2b59c68796 MDL-32759 Assignment: Changing grade for existing assignments will show warning that grades will not be scaled 2012-08-14 11:44:41 +08:00
Tim Hunt 1907f7e082 MDL-34862 question preview: improve preview ownership check.
Users should only be able to access their own quetion preview. In the
past, for reasons I can no longer remember, this was enforced
using the session. It is much better to set the question_usage to belong
to the user's context.
2012-08-13 17:44:22 +01:00
Tim Hunt c090746541 MDL-34807 question bank: navigation loses place.
The symptom is that where we are now is not shown in the settings
navigation. However, the underlying cause is that question/edit.php is
doing some crazy thing of its own to build $PAGE->url, rather than using
the one returned by question_edit_setup.

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

The existing form JS was so well encapsulated that this was impossible.
This change pokes a hole in the encapsulation, and provides an API
    M.form.updateFormState(formid);
that other bits of JS code can call when necessary.
2012-08-13 11:20:29 +01:00
Rossiani Wijaya 7e68a5205a MDL-34563 accessibility compliance for data module: Add forform input text and select tag 2012-08-13 15:14:27 +08:00
Rossiani Wijaya 92af44e829 MDL-34565: change to plural strings 2012-08-13 15:11:06 +08:00
Rossiani Wijaya 914a5ab622 MDL-34565 accessibility compliance for forum module: Add forform input text and select tag 2012-08-13 15:11:06 +08:00
Marina Glancy b56249893d MDL-34748 repository_filesystem: Sort files by title by default 2012-08-13 12:10:28 +08:00
Dan Poltawski 3311b367ae Merge branch 'MDL-34835_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-08-13 10:20:35 +08:00
Petr Škoda 76bdfc1d79 MDL-34840 fix fatal pg error during upgrade
This is a regression caused by MDL-30515
2012-08-11 17:49:11 +02:00
AMOS bot 329dae9cb7 Automatically generated installer lang files 2012-08-11 00:31:32 +00:00
Mary Evans 3f7bbb4aeb MDL-34835 theme_fusion: fixed displaced navbar by extending #region-header.inside bottom margin by 70px in style/pagelayout.css 2012-08-10 20:36:37 +01:00
David Monllao cfcb4304c5 MDL-33531 backup Added format_string to course shortname 2012-08-10 08:43:24 +08:00
David Monllao b5ce7c4afc MDL-33531 backup Avoiding possible Notice 2012-08-10 08:43:24 +08:00
Lorenzo Nicora dcc36c3aa2 MDL-33531 Fixed the regexp used to find old backup files 2012-08-10 08:43:23 +08:00
AMOS bot 52b5634eaa Automatically generated installer lang files 2012-08-10 00:31:49 +00:00
Eloy Lafuente (stronk7) c36de79f5c weekly release 2.2.4+ 2012-08-09 20:51:09 +02:00
Eloy Lafuente (stronk7) 20244afd2c Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-08-09 20:46:25 +02:00
Tim Hunt 8cec008393 MDL-34590 javascript-static: nuclear option in openpopup
I think we have finally tamed Chrome on all platforms. (Crosses fingers.)
2012-08-09 17:17:50 +02:00
Rossiani Wijaya 072af5529b MDL-34575: fixed string typo and string duplication for label 2012-08-08 12:33:57 +08:00
Dan Marsden c491b300a3 MDL-34656 prevent login form from being shown inside iframe - also prevent wantsurl from being set to loadsco.php which isn't a valid page for initial load.
Conflicts:
	mod/scorm/loadSCO.php
2012-08-08 02:04:08 +02:00
Eloy Lafuente (stronk7) 8a991d8692 Merge branch 'MDL-34704_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-08 01:54:12 +02:00
Eloy Lafuente (stronk7) eab358f916 Merge branch 'wip-mdl-30792-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-08-08 01:01:28 +02:00
Charles Fulton 1238c6fee7 MDL-32023 wiki: remove hard-coded edit string 2012-08-08 00:29:48 +02:00
Charles Fulton 8440c2c72c MDL-29129 wiki: fix a hardcoded string 2012-08-07 23:59:39 +02:00
Aparup Banerjee 3407c2ffe0 Merge branch 'MDL-34566_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-07 15:08:04 +08:00
Aparup Banerjee 8bcbce1576 Merge branch 'MDL-34564_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-07 14:58:05 +08:00
Aparup Banerjee 24bcc1e525 Merge branch 'MDL-34560_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-07 14:45:55 +08:00
Aparup Banerjee 7733795102 Merge branch 'MDL-34559_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-07 14:37:24 +08:00
Aparup Banerjee 451b9aae0f Revert "Merge branch 'MDL-28531-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE"
This reverts commit 0c9a3490bb, reversing
changes made to dd9f138e1d.
2012-08-07 14:28:22 +08:00
Aparup Banerjee 0c9a3490bb Merge branch 'MDL-28531-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-08-07 13:58:45 +08:00
Rossiani Wijaya 807010c975 MDL-34559: removing accesshide class 2012-08-07 13:38:39 +08:00
Aparup Banerjee dd9f138e1d Merge branch 'MDL-34715-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-08-07 10:42:37 +08:00
Dan Poltawski 2dc3011aaf Merge branch 'MDL-34562_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-07 10:16:59 +08:00
Dan Poltawski 74552ee06a Merge branch 'MDL-34567_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-07 10:03:27 +08:00
Aparup Banerjee 07b64939e8 Merge branch 'MDL-22663-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-08-07 10:01:04 +08:00
Aparup Banerjee e8b2b43aff Merge branch 'MDL-33022-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-08-07 09:24:05 +08:00
Dan Poltawski c8a605729d Merge branch 'wip-MDL-34669-MOODLE_22_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_22_STABLE 2012-08-07 08:48:45 +08:00
AMOS bot ea7537197b Automatically generated installer lang files 2012-08-07 00:31:57 +00:00
Eloy Lafuente (stronk7) 12b7b430a4 Merge branch 'MDL-31753' of git://github.com/enovation/moodle into MOODLE_22_STABLE 2012-08-07 02:12:57 +02:00
Kirill Astashov 1d8cd19d72 MDL-34669: Fix editor filepicker context bt trying to use page context 2012-08-06 16:57:24 +08:00
Aparup Banerjee f2a044dc6b Merge branch 'MDL-31599-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-08-06 16:44:17 +08:00
Aparup Banerjee a1ee3b38a2 Merge branch 'MDL-34716-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-08-06 16:38:20 +08:00
Rossiani Wijaya 90f288d617 MDL-34562 accessibility compliance for chat module: Add <label> for input text and select tag 2012-08-06 16:30:00 +08:00
Dan Poltawski ab6f805dd4 Merge branch 'MDL-34561_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-06 15:49:18 +08:00
Rossiani Wijaya cdbf85e62a MDL-34561 accessibility compliance for assignment module: add accesshide class 2012-08-06 15:17:18 +08:00
Dan Poltawski 572024c4e6 Merge branch 'MDL-34707_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-06 14:42:19 +08:00
Charles Fulton 456014e502 MDL-34629 wiki: convert default format value during restore 2012-08-06 14:19:53 +08:00
Dan Poltawski c834462e08 Merge branch 'MDL-34561_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-06 14:09:02 +08:00
Dan Poltawski a0e776e02d Merge branch 'MDL-25983_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-08-06 13:53:03 +08:00
Dan Poltawski 957576fd62 Merge branch 'MDL-34259-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-08-06 12:21:50 +08:00
Dan Poltawski dc5ab79d39 Merge branch 'MDL-34574_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-06 12:12:38 +08:00
Dan Poltawski 4f73ef521e MDL-34575 lang/notes: reorder string to be alphabetical 2012-08-06 12:08:35 +08:00
Dan Poltawski d4e606c8c0 Merge branch 'MDL-34575_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-06 12:06:47 +08:00
Dan Poltawski d0374ba31e Merge branch 'MDL-34558_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-06 11:54:19 +08:00
Dan Poltawski 9980863f30 Merge branch 'MDL-34557_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-08-06 11:49:59 +08:00
Dan Poltawski b02ff428de Merge branch 'MDL-34705_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-06 11:31:44 +08:00
Dan Poltawski 77c3dbfc77 Merge branch 'MDL-28207-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-08-06 10:40:51 +08:00
Dan Poltawski 659a30df30 Merge branch 'MDL-34590_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-08-06 10:11:33 +08:00
Dan Poltawski c574b5dddd Merge branch 'MDL-34405_m22' of git://github.com/kordan/moodle into MOODLE_22_STABLE 2012-08-06 10:06:40 +08:00
Dan Poltawski b690238e6b Merge branch 'w32_MDL-34585_m22_blogfiles' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-08-06 09:46:03 +08:00
Sam Hemelryk 5831c9f891 Merge branch 'MDL-34708_m22' of git://github.com/nebgor/moodle into MOODLE_22_STABLE 2012-08-06 12:04:40 +12:00
Sam Hemelryk 297e891c1f Merge branch 'MDL-34658-22' of git://github.com/grabs/moodle into MOODLE_22_STABLE 2012-08-06 11:44:09 +12:00
Andreas Grabs 1dd8dd8496 MDL-34670 - undefined variable in feedback templates 2012-08-06 11:37:17 +12:00
Sam Hemelryk 07d8e5cfa7 Merge branch 'MDL-34645_22' of git://github.com/aolley/moodle into MOODLE_22_STABLE 2012-08-06 11:04:47 +12:00
Sam Hemelryk f5543aa05e Merge branch 'MDL-34647_22' of git://github.com/aolley/moodle into MOODLE_22_STABLE 2012-08-06 10:58:18 +12:00
Aparup Banerjee 542ed166a5 MDL-34708 Forms library : Fixed incorrect calendar day displayed across timezones. Credit to Matthew Davidson and team at rose-hulman.edu. 2012-08-05 23:33:04 +08:00
Rossiani Wijaya 2b8d9b5b7c MDL-34560 accessibility compliance for message: Add label for input text and select tag 2012-08-04 17:01:34 +08:00
Tim Hunt 45c29ec08d MDL-34704 couse, accesslib: improve $CFG->courselistshortnames
1. get_context_name should respect the $CFG->courselistshortnames
setting.

2. When $CFG->courselistshortnames is on, what to display should use a
language string, rather than string concatenation. This makes it
possible for people to configure the display. For example, they might
want 'My first course [M101]' instead of 'M101 My first course'.
2012-08-03 14:47:37 +01:00
Tim Hunt 92b7cdd052 MDL-34590 javascript-static: full-screep popups for Chrome.
I have left in both:
1. the code to get the window size correct initially, becuase that seems
sensible; and
2. the subsequent resize (with the setTimeout that Chrome requires,
thanks Jeff Rader for finding that) becuase on Chrome, it gets the size
a bit too big initially, so this correction is necessary.
2012-08-03 13:21:56 +01:00
Andreas Grabs 8821ce4d3d MDL-34658 - Saving failed because missing or false values 2012-08-03 12:00:22 +02:00
AMOS bot 25866795de Automatically generated installer lang files 2012-08-03 11:45:30 +02:00
Dan Poltawski d638b5f0aa MDL-34716 outcomes: Fix admin tree location 2012-08-03 16:07:36 +08:00
Frederic Massart 23249b70bd MDL-22663 Repository: WebDAV supports Digest authentication 2012-08-03 14:02:34 +08:00
Frederic Massart 9f412a79d0 MDL-22663 Repository: WebDAV supports SSL and chunked data
Conflicts:

	repository/webdav/lib.php
2012-08-03 13:58:26 +08:00
Frederic Massart f515f00aae MDL-22663 Repository: Fixed strict standards notices in WebDAV lib 2012-08-03 13:58:22 +08:00
Rossiani Wijaya 9106db46b6 MDL-34575 accessibility compliance for notes: Add form input text and select tag 2012-08-03 13:43:32 +08:00
Rossiani Wijaya a367cd0e5b MDL-34574 accessibility compliance for mymobile theme: Add forform input text and select tag 2012-08-03 12:54:22 +08:00
Rossiani Wijaya d9abbfdf5d MDL-34567 accessibility compliance for lesson module: Add forform input text and select tag 2012-08-03 12:54:16 +08:00
Rossiani Wijaya bfdae7324b MDL-34566 accessibility compliance for glossary module: Add forform input text and select tag 2012-08-03 12:54:15 +08:00
Rossiani Wijaya 5ec0afb99a MDL-34564 accessibility compliance for feedback module: Add forform input text and select tag 2012-08-03 12:54:12 +08:00
Rossiani Wijaya 7fc8b19110 MDL-34561 accessibility compliance for assignment module: Add forform input text and select tag 2012-08-03 12:54:09 +08:00
Rossiani Wijaya 0c12ac81ee MDL-34559 accessibility compliance for grade: Add forform input text and select tag 2012-08-03 12:54:08 +08:00
Rossiani Wijaya 57d086caa3 MDL-34558 accessibility compliance for filter: Add forform input text and select tag 2012-08-03 12:54:07 +08:00
Rossiani Wijaya 09fab4e7b3 MDL-34557 accessibility compliance for enrol: Add forform input text and select tag 2012-08-03 12:54:06 +08:00
Rajesh Taneja 64171aac70 MDL-30792 Files API: Cleaner approach to get maxbytes size in filepicker 2012-08-03 11:47:44 +08:00
Rajesh Taneja fa7a8a9899 MDL-30792 Files API: maxbytes will be set by get_max_upload_file_size if less then 0 or greater then max moodle limit 2012-08-03 11:44:20 +08:00
Frederic Massart bf8777d126 MDL-28531 Backup: Automated backups run when they are scheduled
Conflicts:

	lib/tests/backup_test.php
2012-08-03 09:30:14 +08:00
Frederic Massart e45890a841 MDL-34259 Lesson: True/false questions don't break on missing answer 2012-08-03 09:23:13 +08:00
Frederic Massart cbb011a1a6 MDL-28207 Course: Showing/hiding/marking a section respect capabilities 2012-08-03 09:21:14 +08:00
Tim Hunt cd914a25d0 MDL-34707 backup UI: only include the JS once. 2012-08-02 18:48:07 +01:00
Tim Hunt f66ad4aa11 MDL-34705 role assignments list: should link to contexts.
This will make Admin's lives a bit easier.
2012-08-02 18:15:40 +01:00
Petr Škoda bfa9be6230 MDL-34585 fix broken blog file access control 2012-08-02 09:59:31 +02:00
David Monllao a830d9071e MDL-25983 enrol_imsenterprise Importing the course summary when adding new courses 2012-08-02 15:35:25 +08:00
Dan Poltawski f2ddce97bd weekly release 2.2.4+ 2012-08-02 14:39:59 +08:00
Dan Poltawski 347bea1069 MDL-31599 block_news - incorrect RSS feed for guest user
Was previously using the userid 0, rather than guest to use
authenticated RSS feed.

Thanks to Paul Verrall at LUNS for helping me debug this.
2012-08-02 11:11:44 +08:00
Dan Marsden 9d94aa3154 MDL-33022 mod_form: set correct groupid when editing an existing post 2012-08-02 10:48:01 +08:00
Petr Škoda 8e6cbb58d8 MDL-34368 fix another validuntil condition 2012-08-01 15:07:16 +08:00
Ankit Agarwal 6efb36babf MDL-32827 calendar: include global to check for events with courseid as siteid 2012-08-01 15:20:52 +12:00
Dan Poltawski a9dcb44830 MDL-34599 mod_quiz: optional $thispage & $nextpage
The previous change making the params required was a regression.
2012-08-01 09:07:02 +08:00
Charles Fulton 854a3741bc MDL-29909 wiki: do not show groups when no groups present 2012-08-01 12:40:06 +12:00
Dan Poltawski 37699accdb MDL-32791 mod_quiz - correct bad version
Many thanks for Jenkins for spotting it :)
2012-07-31 19:40:33 +08:00
Dan Poltawski a14127cdbc Merge branch 'MDL-32791_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-31 17:46:27 +08:00
Dan Poltawski 254f6e4d96 Merge branch 'MDL-34599_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-31 17:42:57 +08:00
Rossiani Wijaya bc2a87e252 MDL-34556 accessibility compliance for course: Add forform input text and select tag 2012-07-31 17:18:04 +08:00
Rossiani Wijaya e1d3079fb6 MDL-34555 accessibility compliance for calendar: Add forform input text and select tag 2012-07-31 17:12:07 +08:00
Rossiani Wijaya 65ae20ba36 MDL-34554 accessibility compliance for blocks: Add forform input text and select tag 2012-07-31 17:06:16 +08:00
Rossiani Wijaya 229904970b MDL-34553 accessibility compliance for authentication: Add forform input text and select tag 2012-07-31 16:59:55 +08:00
Rossiani Wijaya d3b86750a3 MDL-34552 accessibility compliance for admin: Add forform input text and select tag 2012-07-31 16:35:30 +08:00
Aparup Banerjee 0e12789b27 MDL-34650 added MDLs to todo comment and deprecation comment.
(also triggering an amos script here for the other MDL-34650 commit)

AMOS BEGIN
  CPY [minute,form],[minute,core]
  CPY [month,form],[month,core]
  CPY [options,editor],[options,core]
  CPY [selectacourse,backup],[selectacourse,core]
AMOS END
2012-07-31 15:40:15 +08:00
Aparup Banerjee b63bc5027b MDL-34650 typo correction 2012-07-31 13:23:42 +08:00
Aparup Banerjee 906f0ddbca Merge branch 'MDL-34650_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-07-31 13:20:52 +08:00
Sam Hemelryk b21f174957 Merge branch 'MDL-34528_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-07-31 16:49:20 +12:00
Sam Hemelryk 6cb03ab5d3 Merge branch 'MDL-30515_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-07-31 16:40:37 +12:00
Sam Hemelryk 09c3821bf4 Merge branch 'MDL-32499_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-07-31 16:29:41 +12:00
Sam Hemelryk dd204f3a8f Merge branch 'MDL-32931_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-07-31 16:18:41 +12:00
Sam Hemelryk ab474e3e6d Merge branch 'MDL-32827-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-07-31 16:15:49 +12:00
Rossiani Wijaya 9000014032 MDL-34650 - accessibility compliance: Add <label> for form input text and select tag 2012-07-31 12:10:47 +08:00
Dan Poltawski 6b11733524 Merge branch 'MDL-25953-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-31 12:02:20 +08:00
Ankit Agarwal a521e7e01f MDL-32827 calendar: update eventtype of broken event in bulk instead of doing it one by one 2012-07-31 11:20:00 +08:00
Dan Poltawski a40624990c Merge branch 'MDL-34624_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-07-31 11:10:44 +08:00
Dan Poltawski b5affb62a8 Merge branch 'MDL-34255_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-07-31 10:32:00 +08:00
Jerome Mouneyrac 8884e3a2a8 MDL-33869 user_get_user_details: add support for 'Show user identity' fields set by administrator 2012-07-31 10:28:11 +08:00
Crafton Williams 01924246c3 MDL-33869 user_get_user_details: allow return of idnumber 2012-07-31 10:28:02 +08:00
Adam Olley 625aa8b043 MDL-34647: admintool: uploaduser enrolments now obey enrolperiod directive 2012-07-31 11:37:34 +09:30
Adam Olley aef7e750b0 MDL-34645: enrol_manual: enrolment init to pass default duration setting 2012-07-31 11:10:16 +09:30
Dan Poltawski e9c0708633 Merge branch 'MDL-34483_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-31 09:12:37 +08:00
Sam Hemelryk d3fd4849ae Merge branch 'MDL-28568_noncontact_warning_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-07-31 11:59:02 +12:00
Tim Hunt ae1ecaf94a MDL-34483 qformat_examview: Commit example file.
Supplied by Rick Jerz.
2012-07-30 11:56:51 +01:00
Nathan Mares 20c116f9f7 MDL-34368: Fix broken query in so tokens are correctly checked against the linked service 2012-07-30 15:49:51 +08:00
Dan Poltawski 7a9aacfcce Merge branch 'MDL-34507-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-30 14:05:07 +08:00
Dan Poltawski fe8dff2b01 Merge branch 'MDL-34589_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-30 13:56:13 +08:00
Dan Poltawski a1355c4876 Merge branch 'MDL-33537_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-07-30 13:46:40 +08:00
Dan Poltawski 368fb63346 Merge branch 'w31_MDL-34538_m22_validatefloats' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-07-30 12:35:17 +08:00
Dan Poltawski 617eabaf87 Merge branch 'MDL-31509_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-30 12:15:57 +08:00
Dan Poltawski 0022ff1787 Merge branch 'wip-mdl-34239-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-07-30 12:05:36 +08:00
Dan Poltawski f2a59d76d0 Merge branch 'MDL-34519_22_course_reset_patch' of git://github.com/rlorenzo/moodle into MOODLE_22_STABLE 2012-07-30 11:58:06 +08:00
Mary Evans 108ea10c38 MDL-34528 theme-canvas: Removed redundent exclude stylesheet configurations from CANVAS theme 2012-07-29 21:56:18 +01:00
kordan 1d55b8ecae MDL-34405 theme_formal_white: added background for quiz overview 2012-07-29 16:02:36 +02:00
Mary Evans 658c9cc336 MDL-34624 theme_base: added background-color to style/admin.css for role edit default 2012-07-29 14:48:54 +01:00
Charles Fulton 7f649757b5 MDL-32712 assignment: convert default format value during upgrade 2012-07-28 13:09:00 -07:00
Tim Hunt c3d3eb3100 MDL-31509 quiz outcomes: let people associate quizzes with outcomes.
The quiz does not really support outcomes, but even so in 1.9 you could
select outcomes on the quiz edit form, and apparently this was useful to
some people, therefore we should re-enable it.
2012-07-27 18:13:51 +01:00
Petr Škoda aee963dac8 MDL-34538 fix PARAM_FLOAT validation 2012-07-27 18:46:23 +02:00
Tim Hunt d4b3dd67ad MDL-32791 quiz db: clean up garbage data that was causing problems.
Melinda Kraft reported having rows in their quiz_question_instances
table which caused various problems. These rows are meaningless, so I
have done a DB upgrade step to clean them up, which should deal with the
bad side-effets they were causing.
2012-07-27 16:47:56 +01:00
Jean-Michel Vedrine c354a10bd2 MDL-34483 qformat_examview: handle more questions.
These fixes come from testing with the example file supplied by Rick
Jerz.
2012-07-27 12:21:01 +01:00
Jean-Michel Vedrine 0f19cdac5e MDL-34483 qformat_examview: clean the code to make codechecker happy 2012-07-27 12:21:00 +01:00
Jean-Michel Vedrine 2275b67a95 MDL-34483 qformat_examview: changes required to make it basically work. 2012-07-27 12:20:58 +01:00
Tim Hunt dcfdf468fc MDL-34599 quiz attempts: more robust if page number out of range.
Rather than throwing an exception, we should just show the first/last
page of the quiz if the page number is out-of-range.
2012-07-27 11:48:04 +01:00
Rajesh Taneja 835731d129 MDL-34239 Blog: Editing blog associated with module will be keep it's association 2012-07-27 14:02:31 +08:00
Ankit Agarwal 44793f390f MDL-32827 calendar: Added logic to handle calendar events with empty eventtypes during restore 2012-07-27 11:17:19 +08:00
Ankit Agarwal de2635879e MDL-32827 calendar: bumping the version 2012-07-27 11:17:18 +08:00
Ankit Agarwal 7a5bbcf7f2 MDL-32827 calendar: Fixining calender entries with no eventtype 2012-07-27 11:16:30 +08:00
Frederic Massart 7bef288418 MDL-25953 Repository: Amazon S3 supports sub directories
Conflicts:

	repository/s3/lib.php
2012-07-27 10:52:06 +08:00
Frederic Massart b5b24718e3 MDL-25953 Repository: Updated Amazon S3 library
Conflicts:

	repository/s3/lib.php
2012-07-27 10:52:06 +08:00
Frederic Massart 0a9f98bf4e MDL-34507 Filepicker: Repositories with specific filetypes are displayed when expected 2012-07-27 10:01:14 +08:00
David Monllao c04f9dd478 MDL-32499 gradingform_rubric Avoid backup/restore of rubric fillings without an existing criteria 2012-07-27 09:28:41 +08:00
David Monllao b729292ca3 MDL-32931 mod_forum Polishing patch and taking into account courses without previous accesses 2012-07-27 09:28:33 +08:00
Tom Lanyon a6bc93ae8f MDL-32931 mod_forum Change forum overview to avoid use of (potentially large and slow ) log table. 2012-07-27 09:28:33 +08:00
David Monllao 16c5104baa MDL-30515 grade Removing duplicate values to avoid upgrade to 2.x crash 2012-07-27 09:26:29 +08:00
Tim Hunt d87c8d7ffd MDL-34589 quiz report graphs: PHP5.4 issue with unset($array[$float]).
Thanks to Matthew Davidson for diagnosing the problem.
2012-07-26 19:00:15 +01:00
Aparup Banerjee dd9274c4fc weekly release 2.2.4+ 2012-07-26 14:27:35 +08:00
Rossiani Wijaya 05d7440e19 MDL-34255 group calendar events: fixed adding group calendar event for students 2012-07-26 14:24:44 +08:00
Aparup Banerjee d61be4030f Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE 2012-07-26 14:00:57 +08:00
AMOS bot 2b7bbba7c4 Automatically generated installer lang files 2012-07-26 00:31:45 +00:00
Dan Poltawski 60f5190149 Merge branch 'MDL-13629_droplow_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-07-25 12:29:56 +08:00
Dan Poltawski a875f820c2 MDL-27083 - upgrade: fix incorrect version number 2012-07-25 09:56:43 +08:00
Jason Ilicic 0c62ad79fb MDL-34529: Fixed ordering of course sections when performing import/restore by adding the sort parameter. 2012-07-25 10:29:55 +09:30
Sam Hemelryk 775673d4b1 Merge branch 'MDL-27083-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-25 09:18:06 +12:00
Rex Lorenzo 6570f0e041 MDL-34519 - Course reset not protected by proper capability 2012-07-24 12:04:41 -07:00
Aparup Banerjee 2a912a7aff MDL-26969 assignment : clarified phpdoc and fixed whitespace. 2012-07-24 16:40:24 +08:00
Aparup Banerjee aa95731b73 Merge branch 'MDL-26969_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-07-24 16:40:19 +08:00
Petr Škoda 249f07e616 MDL-34129 show course info on enrolment page 2012-07-24 13:42:03 +08:00
Aparup Banerjee ccbdbc7f67 Merge branch 'wip-mdl-33159-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-07-24 11:03:15 +08:00
AMOS bot f0521d9b1a Automatically generated installer lang files 2012-07-24 00:31:58 +00:00
Dan Poltawski 59cc009152 Merge branch 'MDL-34251_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-23 14:02:15 +08:00
Dan Poltawski 5d6842891e Merge branch 'MDL-34226_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-23 13:54:11 +08:00
Rajesh Taneja 4dba21f35a MDL-34148 Blog: Fixed variable name used for saving module name
Updated Erik's patch to match coding style
2012-07-23 13:46:26 +08:00
Erik Lundberg d6d00b134e MDL-34148: Instead of using the module name from the filesystem, the blog menu now fetches the module name with get_string(). 2012-07-23 13:46:25 +08:00
Dan Poltawski 5d32507ebe Merge branch 'wip-MDL-34404-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-07-23 13:26:20 +08:00
Dan Poltawski 7dd07a8d38 Merge branch 'w30_MDL-34396_m22_loginhttpsspell' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-07-23 12:20:16 +08:00
Frederic Massart c7f65058d0 MDL-27083 Questions: Orphaned questions are adopted on upgrade 2012-07-23 12:09:20 +08:00
Rossiani Wijaya 6961237957 MDL-26969 Assignment module - upload: fixed get_submission() return value to nothing when param is set to false. 2012-07-23 11:33:11 +08:00
Aparup Banerjee aeb48cca52 Merge branch 'MDL-32665_chat_popup_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-07-23 10:22:09 +08:00
Sam Hemelryk 0fd928ddeb Merge branch 'MDL-33560-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-23 12:25:09 +12:00
Jean-Philippe Gaudreau 0319cba7ee MDL-31516 Fixing grade_edit_tree::format_number 2012-07-23 12:22:52 +12:00
Sam Hemelryk 71268ddb62 Merge branch 'MDL-29563_22' of https://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-07-23 11:49:28 +12:00
Jason Ilicic 465775fc67 MDL-34427: Corrected language string when not allowed to enter the chat room. 2012-07-23 11:40:31 +12:00
Sam Hemelryk 82bb3c039c Merge branch 'm22_MDL-34374' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-07-23 11:37:59 +12:00
Sam Hemelryk 5e202b6cb4 Merge branch 'm22_MDL-34233' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-07-23 11:26:41 +12:00
Sam Hemelryk 5f6c20bca2 Merge branch 'MDL-34265-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-07-23 10:39:30 +12:00
Andrew Robert Nicols 6bec1fe66f MDL-34322 Don't display empty navigation nodes which have no link 2012-07-23 09:43:31 +12:00
Sam Hemelryk 4298cce0b6 MDL-34243 completion: Fixed up call to completion_criteria::factory that was passing object 2012-07-23 09:39:02 +12:00
Aaron Barnes 4ed5856a08 MDL-34243 completion: get_criteria() incorrectly passing object 2012-07-23 09:39:02 +12:00
Luke Tucker 150e548537 MDL-34396 Ensure TinyMCE editor spell checking works on pages with $PAGE->https_required() 2012-07-21 20:31:05 +02:00
David Monllao 2322b97e38 MDL-33537 gradingform_rubric Adding the definition when retrieving grading instances
Credit to Sam Chaffee
2012-07-20 14:59:11 +08:00
Derick Turner 125840c2a1 MDL-33159 course: Fix for site wide restricted modules not being selected by default 2012-07-20 12:33:51 +08:00
Tim Hunt b0e0762ca0 MDL-34251 question engine: possible infinite loop loading usages
In the case where either a question_attempt had not steps, or a
question_usage had not question_attempts, the load_from_records methods
could get stuck in an infinite loop.
2012-07-19 12:45:47 +01:00
Tim Hunt db5b519022 MDL-34226 multichoice qtype: correct is_complete_response for multianswer
The multianswer qtype uses the multi-choice one, and the way it does its
responses array breaks an assumption that multi-choice was making.
2012-07-19 12:45:31 +01:00
Andrew Davis 9e198bd6a6 MDL-28568 message: added a warning message when the user is about to message someone who cant reply 2012-07-19 17:07:12 +08:00
Sam Hemelryk db593ec914 MDL-33448 javascript: Added caching for the YUI instance used for debug in get_string 2012-07-19 20:22:32 +12:00
Ankit Agarwal 2fd58992ba MDL-34265 SCORM: Removing sorting from unsortable columns 2012-07-19 15:58:28 +08:00
Dan Marsden 03cafd97b1 MDL-34233 SCORM backup - change to using set_source_sql to preserve order of records in backup. 2012-07-19 19:40:36 +12:00
David Monllao e352a32604 MDL-29563 course Throwing an exception instead of a message 2012-07-19 15:36:37 +08:00
David Monllao f3d81a05ad MDL-29563 course Hide duplication button in activities without backup2 support - Credit to Mark Nielsen 2012-07-19 15:36:37 +08:00
Dan Poltawski 947ba9c802 weekly release 2.2.4+ 2012-07-19 13:46:58 +08:00
Dan Poltawski 9c2d2071ee Merge branch 'install_22_STABLE' of git://github.com/amosbot/moodle into MOODLE_22_STABLE 2012-07-19 13:42:26 +08:00
Dan Marsden caf7fb15d5 MDL-34374 SCORM prevent skipview being set to always when used inside a SCORM course format. 2012-07-19 09:05:38 +12:00
Andrew Davis f7b9d61121 MDL-32665 mod_chat: disabled popup notifications in the chat windows 2012-07-18 19:08:32 +08:00
Andrew Davis 90fa8589dd MDL-13629 grade: added some unit tests to clarify the handling of droplow and improved apply_limit_rules() 2012-07-18 09:38:26 +08:00
Frederic Massart eb51ce159f MDL-33560 Enrol: Enrol password can be unmasked 2012-07-17 16:48:59 +08:00
Sam Hemelryk bff217f18b Merge branch 'MDL-33575_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-07-17 15:50:00 +12:00
Rossiani Wijaya f014bd253f MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results 2012-07-17 10:16:33 +08:00
AMOS bot b43646c86a Automatically generated installer lang files 2012-07-17 00:31:52 +00:00
David Monllaó 6fb835d5a3 MDL-30876 filter_mediaplugin Wrapping the style sheets access with try & catch
Conflicts:

	lib/javascript-static.js
2012-07-17 12:21:11 +12:00
Dan Poltawski 6fc4e1becb Merge branch 'MDL-34187_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-16 15:57:43 +08:00
Aparup Banerjee fefcb951bc MDL-26587 Question : fixed restoring shortanswer where answers are missing due to data error in mbz file. 2012-07-16 15:51:19 +08:00
Dan Poltawski 5d0d6c692c Merge branch 'MDL-23219_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-16 14:33:06 +08:00
Dan Poltawski 38d358fc37 Merge branch 'wip-mdl-30798-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-07-16 14:26:15 +08:00
Rajesh Taneja 0c9b8dc4b3 MDL-30798 Blog: link param for entries about this course link is fixed 2012-07-16 14:12:35 +08:00
Dan Poltawski 49b4842325 Merge branch 'MDL-31622-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-16 11:34:29 +08:00
Dan Poltawski 091c725382 Merge branch 'w29_MDL-34271_m22_mysqlcollation' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-07-16 11:01:16 +08:00
Dan Poltawski 62b488086b Merge branch 'MDL-34164_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-16 10:05:59 +08:00
Sam Hemelryk f1cb47f9a3 Merge branch 'MDL-33624-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-07-16 13:50:48 +12:00
Dan Poltawski b8722357c7 MDL-33624 lang - remove incosistent use of placeholder 2012-07-16 09:46:11 +08:00
Sam Hemelryk 3c0d5ff61e Merge branch 'MDL-26145_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-07-16 11:57:25 +12:00
Sam Hemelryk a9fb701ad5 Merge branch 'MDL-28155_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-07-16 11:50:13 +12:00
Sam Hemelryk aa83dea5e8 Merge branch 'MDL-32310-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-07-16 11:00:49 +12:00
Sam Hemelryk 0cc403cbe6 Merge branch 'MDL-33917-2' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-07-16 10:49:57 +12:00
Charles Fulton 3635131be5 MDL-27563 shibboleth: set context on login page 2012-07-16 09:39:47 +12:00
Sam Hemelryk 9f55156eb4 Merge branch 'MDL-33788b-22' of git://github.com/srynot4sale/moodle into MOODLE_22_STABLE 2012-07-16 09:18:36 +12:00
AMOS bot f54ebb38f4 Automatically generated installer lang files 2012-07-15 00:32:07 +00:00
Tim Hunt 03c558af10 MDL-34164 quiz reports: only try to show graphs if GD is installed.
if (empty($CFG->gdversion)) { seems to be the common idiom for this.
I refactored the graph output into the renderer, to avoid having to
duplicate that test three times.

Conflicts:

	mod/quiz/report/overview/report.php
2012-07-14 09:29:35 +01:00
Tim Hunt f2c88f41fe MDL-34257 quiz 'secure' window: does not close automatically.
Conflicts:

	mod/quiz/version.php
2012-07-13 18:05:15 +01:00
Tim Hunt d8f23e09f2 MDL-23219 check permissions: show relevant role-assignments.
Adding this list of role assignments should make it much easier for
admins to work out why, when the permissions shown in the check
permisisons page are now what they expect.

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

I also re-orderd some of the code in check.php to try to get all the DB
code before all the output code.
2012-07-13 15:23:18 +01:00
Dan Poltawski dea59b1e67 MDL-33917 mod_resource - fix upgrade of front page resources
This only affected resources linked  as a full url
2012-07-13 15:44:12 +08:00
Frederic Massart b1aa16a30e MDL-31622 Forms: Date selector supports i18n 2012-07-13 08:57:44 +08:00
AMOS bot d59c3ffff7 Automatically generated installer lang files 2012-07-13 00:32:29 +00:00
Petr Škoda 397cbe04e4 MDL-34271 add new cli tool for mysql collation conversions 2012-07-12 14:58:14 +02:00
Petr Škoda 39f6deda84 MDL-34271 use the same collation when adding new tables or columns 2012-07-12 14:57:27 +02:00
Petr Škoda 61c4fa28c1 MDL-34271 cleanup mysql engine hack before adding similar collation hack 2012-07-12 14:42:13 +02:00
Dan Poltawski 9a7c3d5fea weekly release 2.2.4+ 2012-07-12 16:02:22 +08:00
Dan Poltawski 400cf711e0 Merge branch 'install_22_STABLE' of git://github.com/amosbot/moodle into MOODLE_22_STABLE 2012-07-12 15:50:35 +08:00
Sam Hemelryk f163de5a8c Merge branch 'MDL-32297-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-12 18:24:36 +12:00
Sam Hemelryk bdbe35e740 Revert "MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results"
This reverts commit ccef0a8b0a.
2012-07-12 18:21:36 +12:00
Paul Nicholls 8290c59cdf MDL-32582 - filter/multimedia: MP3 Flow Player doesn't work in Chrome if empty stylesheets are present 2012-07-12 13:40:57 +08:00
Mary Evans 53bf5f7cce MDL-31169 theme_base: adds clearfix to page layouts so body height is not zero 2012-07-12 09:51:39 +08:00
Frederic Massart 7c6c39f153 MDL-32297 Forms: Date Picker JS popup is not constraint to parent form 2012-07-12 09:51:23 +08:00
AMOS bot f16836f3b3 Automatically generated installer lang files 2012-07-12 00:32:30 +00:00
Petr Škoda 4000115abe MDL-34175 one more hardcoded /admin/ in mnet 2012-07-12 09:44:38 +12:00
David Monllao ac430a06f5 MDL-28155 mod_assignment Using the this object instead of a string 2012-07-11 15:14:19 +08:00
AMOS bot a1320c7545 Automatically generated installer lang files 2012-07-10 20:33:22 +02:00
Petr Skoda ae5b8854e5 MDL-33712 add support for unique moodle tags in tinymce 2012-07-10 15:56:22 +08:00
Sun Zhigang 7add6bb507 MDL-28155 mod_assignment - Fix an ugly hack
Show download all link for any assignment types which implement
the download_submissions() method
2012-07-10 13:32:36 +08:00
Dan Poltawski 4fdabcce0e Merge branch 'MDL-34171_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-10 09:25:32 +08:00
Petr Škoda b1eae8a90d MDL-34155 use course visibility default when creator does not have moodle/course:visibility 2012-07-10 12:49:18 +12:00
Petr Škoda 7232e79e8e MDL-34175 a few more renamed admin fixes
Conflicts:

	admin/tool/assignmentupgrade/batchupgrade.php
	admin/tool/assignmentupgrade/index.php
	admin/tool/assignmentupgrade/listnotupgraded.php
	admin/tool/assignmentupgrade/upgradesingle.php
	admin/tool/assignmentupgrade/upgradesingleconfirm.php
2012-07-10 12:44:52 +12:00
Petr Škoda 0f7e3d045d MDL-34175 automatically fix admin JS links 2012-07-10 12:44:06 +12:00
Dan Marsden 5d7f0fcc1e MDL-34198 SCORM remove unecessary get_records call 2012-07-10 08:34:53 +08:00
Sam Hemelryk 714f2d590a Merge branch 'MDL-29470-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-10 12:09:14 +12:00
Sam Hemelryk 730ff61856 Merge branch 'MDL-32297-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-10 12:05:42 +12:00
Charles Fulton 2064567b6e MDL-27800 admin: make front page restore link consistent
Conflicts:

	admin/settings/frontpage.php
2012-07-10 11:33:34 +12:00
Dan Poltawski 1e73d1ddaa Merge branch 'MDL-18301-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-09 14:27:23 +08:00
Dan Poltawski a36631fcee Merge branch 'MDL-32057_22' of git://github.com/aolley/moodle into MOODLE_22_STABLE 2012-07-09 14:14:25 +08:00
Frederic Massart afedb66359 MDL-29470 Backup: fixed unexpected next automated backup date 2012-07-09 13:48:52 +08:00
Dan Poltawski 92e63062d4 Merge branch 'MDL-33030_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-07-09 13:42:40 +08:00
Dan Poltawski 1c426aca1a Merge branch 'wip-mdl-29969-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-07-09 13:39:27 +08:00
Dan Poltawski 98fb4b4f09 Merge branch 'MDL-34077-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-09 13:37:47 +08:00
Gilles-Philippe Leblanc 751f5b0ae9 MDL-33822 SCORM Interactions report - fix formatting of empty cells. 2012-07-09 17:24:35 +12:00
Dan Poltawski f5fe53613b MDL-17395 auth_email: clarify description 2012-07-09 17:19:45 +12:00
Aaron Barnes c4c0b5a4e9 MDL-33788 completion: SQL optimisation 2012-07-09 15:39:20 +12:00
Ankit Agarwal 409d09a6c2 MDL-27831 calendar: Removing reduntand control icons in delete.php 2012-07-09 11:31:19 +08:00
Dan Poltawski 4dff0a79ed Merge branch 'MDL-33885-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-09 10:32:00 +08:00
Sam Hemelryk ccef0a8b0a MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results 2012-07-09 10:56:33 +12:00
Sam Hemelryk df40666775 Merge branch 'MDL-30816_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-07-09 10:28:37 +12:00
Sam Hemelryk 8e7d4f3317 Merge branch 'MDL-33514-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-07-09 10:24:23 +12:00
AMOS bot 8450522521 Automatically generated installer lang files 2012-07-07 00:31:25 +00:00
Tim Hunt b2fba4af15 MDL-34171 qformat_gift: Fix edge case with special character escaping.
We need to escape \ on export, because it is un-escaped on import.
2012-07-06 10:46:57 +01:00
David Monllao 937963c589 MDL-26145 mod_chat Talk feature not working correctly 2012-07-06 16:13:40 +08:00
Frederic Massart 480d12fe8f MDL-33885 Blog: Added maxlength rule to subject field 2012-07-06 13:17:12 +08:00
Frederic Massart 5c984fd630 MDL-18301 Gradebook: Added feature for components to control grade visibility 2012-07-06 09:54:22 +08:00
Sam Hemelryk 305fbe760a Moodle 2.2.4 release 2012-07-06 11:28:23 +12:00
Sam Hemelryk 79ef66af49 weekly release 2.2.3+ 2012-07-06 10:06:32 +12:00
Sam Hemelryk ce70f9d0f7 Merge branch 'install_22_STABLE' of git://github.com/amosbot/moodle into MOODLE_22_STABLE 2012-07-06 09:49:32 +12:00
Rossiani Wijaya 14ed66c339 MDL-30816 Choice module: add format_string() for choice name. 2012-07-05 12:22:26 +08:00
Rossiani Wijaya ba09f6b84e MDL-30816 choice module: fixed accessibility for responses table and make it easier for screenreader to read it 2012-07-05 12:22:14 +08:00
Eloy Lafuente (stronk7) 3021f92c8c Merge branch 'MDL-34145_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-05 03:41:38 +02:00
AMOS bot 0cdc8c2261 Automatically generated installer lang files 2012-07-05 00:31:16 +00:00
Sam Hemelryk db948187be MDL-33770 webservices: Fixed error with core_group_create_groups when no enrolment key provided 2012-07-05 09:22:40 +12:00
Eloy Lafuente (stronk7) 16ce52bb7d MDL-32062 question engine: fix simpletests broken by the change. 2012-07-04 17:16:21 +02:00
Petr Škoda 90048d3cba MDL-33876 skip deleted users in enrol_database sync 2012-07-04 04:17:20 +02:00
Dan Poltawski 8e12fdea29 Merge branch 'wip-MDL-34047-MOODLE_22_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_22_STABLE 2012-07-04 09:51:36 +08:00
Sam Hemelryk e0c7cb6ffa Merge branch 'MDL-32614_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-07-04 13:14:48 +12:00
Eloy Lafuente (stronk7) 7351ed0134 MDL-32614 lti: on restore, clean any typeid to convert the tool to selfcontained.
This is known to be imperfect, awaiting for MDL-34161 to fix the whole thing. Also,
unrelated, there are some basiclti => lti replacements.
2012-07-04 02:15:39 +02:00
Chris Scribner 683f0e73d4 MDL-32614: Removing code which disassociated LTI instances from their tool types upon restore. 2012-07-04 02:15:31 +02:00
Dan Poltawski dc6451ce04 MDL-31692 mod_lti - ensure that various mforms are used properly
* typesettings.php and instructor_edit_tool_type.php are tided
   up properly to ensure proper use for form data
* An incorrect PARAM type is corrected for typename
2012-07-04 10:08:17 +12:00
Sam Hemelryk c0c6e7966e Merge branch 'MDL-32062_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-04 09:53:40 +12:00
Sam Hemelryk dcce217160 Merge branch 'MDL-32851-22' of https://github.com/mackensen/moodle into MOODLE_22_STABLE 2012-07-04 09:42:30 +12:00
sam marshall 547695f20d 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:12 +12:00
Jonathan Harker afb6a8aa24 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:17 +12:00
Kevin Wiliarty ca6141c264 MDL-33749 follow redirects for URL downloader
Conflicts:

	repository/url/lib.php
2012-07-04 08:37:23 +12:00
Sam Hemelryk 56861454c1 Merge branch 'wip-mdl-32787-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-07-04 08:25:46 +12:00
Eloy Lafuente (stronk7) 54bf19763e Merge branch 'MDL-33426-m22' of git://github.com/sammarshallou/moodle into MOODLE_22_STABLE 2012-07-03 16:09:22 +02:00
sam marshall 383fc1fbae MDL-33426 Completion: Multilang activity names wrong in alt/title 2012-07-03 13:09:15 +01:00
Marina Glancy c0cea70f0b MDL-34047 repository URL downloader must say that it returns only images 2012-07-03 14:20:47 +08:00
Rajesh Taneja 4598cc934a MDL-32787 user: rule required for custom profile fields applies to all users editing own profile 2012-07-03 13:42:45 +08:00
Dan Poltawski c47951f806 Merge branch 'MDL-30903-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-03 11:51:36 +08:00
Dan Poltawski eb8509c5c3 Merge branch 'MDL-34008_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-03 11:47:36 +08:00
Dan Poltawski 9db56e51d9 Merge branch 'w27_MDL-34036_m22_bulkrole' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-07-03 11:40:22 +08:00
Dan Poltawski b33cc65f3e Merge branch 'MDL-30883_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-03 11:01:52 +08:00
Sam Hemelryk 06a3ab6c0b Merge branch 'wip-MDL-33957-stable22' of git://github.com/phalacee/moodle into MOODLE_22_STABLE 2012-07-03 14:57:23 +12:00
Dan Poltawski 705b30e99e Merge branch 'w27_MDL-34123_m22_newpasslang' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-07-03 10:39:26 +08:00
ISHIKAWA Takayuki 81bf2a1a1d MDL-33757 gradebook: Adding support to sort userlist by email address 2012-07-03 09:45:34 +08:00
AMOS bot 92697b53ee Automatically generated installer lang files 2012-07-03 00:31:31 +00:00
Adam Olley b857ff8c19 MDL-32057: Fix cohort enrolment css for ie7 2012-07-03 09:25:10 +09:30
Sam Hemelryk b16832db0d Merge branch 'MOODLE_22_STABLE-MDL-33770' of git://github.com/mouneyrac/moodle into MOODLE_22_STABLE 2012-07-03 11:48:16 +12:00
Frederic Massart 842a71a6ac MDL-33814 Output renderers: table cell objects are only created when needed 2012-07-03 11:36:47 +12:00
Frederic Massart f2fdb7f73a MDL-33796 Glossary: removed unused missing string 2012-07-03 01:07:19 +02:00
Dan Poltawski 662ddae6c2 MDL-9214 - improve comment for custom login instructions 2012-07-03 10:47:31 +12:00
Dan Poltawski 1bcd3da0de MDL-32286 - fix ambigious english string 2012-07-03 10:43:02 +12:00
Matthew G. Switlik f90d6ddb6d MDL-28151 resource: prevent cropping of large images
Conflicts:

	theme/base/style/core.css
2012-07-03 10:15:44 +12:00
Eloy Lafuente (stronk7) dbaad889e8 Merge branch 'MDL-23813_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-02 23:53:29 +02:00
Aparup Banerjee 9d8d2ee619 MDL-23254 Authentication : used httpswwwroot as root url during authentication procedure where $PAGE->https_required() is specified. 2012-07-03 09:42:47 +12:00
Dan Poltawski 4a9727aa23 MDL-34081 dml: mssql driver was using case insensitve sql 2012-07-02 21:08:41 +02:00
Tim Hunt d8b0e1bc26 MDL-23813 glossary filter: add missing YUI dependency
Fix found by Huy Hoang. I am just making a commit.
2012-07-02 17:49:08 +01:00
Eloy Lafuente (stronk7) 50dfe52884 MDL-34121 bump versions to efectively get the upgrade performed. 2012-07-02 18:22:58 +02:00
Eloy Lafuente (stronk7) e2710cb374 Merge branch 'w27_MDL-34121_m22_killbackupmess' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-07-02 18:21:04 +02:00
Tim Hunt 78040342e0 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:21:17 +01:00
Dan Poltawski 041a4a7d94 Merge branch 'MDL-33916-MOODLE_22_STABLE-1' of git://git.luns.net.uk/moodle into MOODLE_22_STABLE 2012-07-02 17:37:16 +08:00
Dan Poltawski 8c4489c53b MDL-31802 - navigation: add a comment about session reduction 2012-07-02 17:30:12 +08:00
Dan Poltawski 66f9505a53 Merge branch 'MDL-31802_22' of git://github.com/aolley/moodle into MOODLE_22_STABLE 2012-07-02 17:25:07 +08:00
Petr Škoda 1d5490dfed MDL-34120 do not try to create new passwords for incorrectly deleted users
There is still some code that ignores delete_user() and instead hacks the user table directly, skip the borked user records for now when sending new passwords.
2012-07-02 16:48:45 +08:00
Dan Poltawski 8579d40d59 Merge branch 'w27_MDL-34045_m22_idnumber' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-07-02 16:34:28 +08:00
Dan Poltawski c185e558a6 Merge branch 'MDL-34025_m22' of https://github.com/markn86/moodle into MOODLE_22_STABLE 2012-07-02 16:28:20 +08:00
Rossiani Wijaya 06f52d36cc MDL-33030 Lesson module: fixed progress bar 2012-07-02 16:21:17 +08:00
Dan Poltawski ca6495bb72 Merge branch 'MDL-33924_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-02 16:19:28 +08:00
Dan Poltawski cd7265af3a Merge branch 'm22_MDL-33914' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-07-02 16:14:52 +08:00
Dan Poltawski 4769b04283 Merge branch 'MDL-33780_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-07-02 16:07:42 +08:00
Dan Poltawski 1693774015 Merge branch 'm22_MDL-33053_AICC_flattened_TOC' of git://github.com/scara/moodle into MOODLE_22_STABLE 2012-07-02 15:50:32 +08:00
Dan Poltawski de856ec6a8 Merge branch 'MDL-32605-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-07-02 15:46:07 +08:00
Dan Poltawski c25e1814ce Merge branch 'MDL-30008-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-07-02 15:43:21 +08:00
Andrew Davis 95718caae7 MDL-25476 messages: switched some notification emails to come from the support contact instead of admin 2012-07-02 15:41:38 +08:00
Dan Poltawski 42ed5416a5 Merge branch 'MDL-9073-22' of github.com:FMCorz/moodle into MOODLE_22_STABLE 2012-07-02 15:34:27 +08:00
Dan Poltawski bf9417002d Merge branch 'm22_MDL-31203_advanced_forum_search_always_reverts_date_from_and_to' of git://github.com/kanikagoyal/moodle into MOODLE_22_STABLE 2012-07-02 15:24:29 +08:00
Rossiani Wijaya b8251ddc44 fixed the ->spacer <br> param 2012-07-02 15:20:59 +08:00
Mark Nielsen 92e6515548 fixed undefined variable 2012-07-02 15:20:54 +08:00
Dan Poltawski 52f95b5431 Merge branch 'MDL-31987_assignment_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-07-02 15:12:57 +08:00
Rossiani Wijaya c6483eb217 MDL-31987 Assignment module: fixed upgrade version 2012-07-02 14:55:03 +08:00
Dan Poltawski 19219f8c10 MDL-31987 Assignment module: fix sql for postgres. 2012-07-02 14:54:03 +08:00
Rossiani Wijaya b9fdddbabd 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:54:03 +08:00
Rajesh Taneja af70031477 MDL-29969 Administration: Default value for numsections is set to 1 for site frontpage 2012-07-02 14:34:55 +08:00
Dan Poltawski de9de3cc1b Merge branch 'MDL-27842-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-07-02 11:27:33 +08:00
Sam Hemelryk 461499b836 Merge branch 'MDL-33932_22' of git://github.com/grabs/moodle into MOODLE_22_STABLE 2012-07-02 14:31:43 +12:00
Sam Hemelryk 803122e110 Merge branch 'MDL-33627_22' of git://github.com/grabs/moodle into MOODLE_22_STABLE 2012-07-02 14:05:57 +12:00
Eloy Lafuente (stronk7) 116714e8dc weekly release 2.2.3+ 2012-07-02 00:52:37 +02:00
Eloy Lafuente (stronk7) 880b243c8d Merge branch 'install_22_STABLE' of git://github.com/amosbot/moodle into MOODLE_22_STABLE 2012-07-02 00:41:10 +02:00
Sam Hemelryk 1d2b991046 Merge branch 'MDL-34044-22' of git://github.com/srynot4sale/moodle into MOODLE_22_STABLE 2012-07-02 08:22:26 +12:00
Eloy Lafuente (stronk7) 260bbdbc09 Merge branch 'MDL-32249c-22' of github.com:srynot4sale/moodle into MOODLE_22_STABLE 2012-07-01 02:15:19 +02:00
Sun Zhigang 713e6922e0 MDL-31201 wiki: fix a hardcoded string 2012-06-30 22:01:24 +02:00
Petr Škoda 3721bbf279 MDL-34123 use user's lang when sending new emails 2012-06-30 20:47:04 +02:00
Petr Škoda f2b9ab28e6 MDL-34036 fix course role user selector 2012-06-30 15:41:08 +02:00
Petr Škoda 5464847212 MDL-34121 drop unused backup tables that were supposed to be dropped long ago
The backup/restore leftovers that referenced these will be dropped in 2.4
2012-06-30 14:04:31 +02:00
Petr Škoda c45e903821 MDL-34045 fix invalid idnumber field type in cohort form 2012-06-30 07:51:45 +02:00
Ankit Agarwal 06314d7faf MDL-27842 calendar: remove usage of deprecated function calendar_print_event 2012-06-29 14:56:56 +08:00
Frederic Massart b8fba415a5 MDL-32297 Forms: Date Picker JS popup is not constraint to parent form 2012-06-29 14:21:20 +08:00
Frederic Massart f544bb6bf6 MDL-34077 Repositories: Flickr and Picasa can have custom names
Conflicts:

	repository/picasa/lib.php
2012-06-28 12:13:57 +08:00
Adam Olley 66424a611f MDL-31802: Remove section summaries from navigation_cache 2012-06-28 11:08:08 +09:30
AMOS bot 65c02d62ae Automatically generated installer lang files 2012-06-28 00:31:30 +00:00
Charles Fulton a00d309b33 MDL-32851 resource: skip resources with invalid files 2012-06-27 06:21:29 -07:00
Tim Hunt 5f980afc0e MDL-33924 quiz: incorrect foreign key definition.
Thanks to Jean-Michel Vedrine for spotting this.≈
2012-06-27 08:03:32 +01:00
Mark Nelson 0601dd6961 MDL-34025 - quiz secure window: fix popup closing 2012-06-27 14:32:04 +08:00
Ankit Agarwal 404cc924aa MDL-32605 calendar: Fixing the missing parameter for get_string call 2012-06-27 13:31:54 +08:00
Aaron Barnes c657426438 MDL-34044 completion: Fix regression caused by MDL-26626 2012-06-27 12:01:36 +12:00
Tim Hunt f54292267b 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:57:41 +01:00
Tim Hunt dd613b60ec MDL-34008 formslib: repeat_elements replace {no} for submits & buttons 2012-06-26 09:51:36 +01:00
Tim Hunt f4bd9d38a6 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:51:23 +01:00
Tim Hunt 62cfefdbee MDL-30883 question flags: aria attributes for accessibility
Also, update code to use html_writer, and fix pointer style when not
editable.
2012-06-26 09:50:43 +01:00
Aaron Barnes 91190892f1 MDL-32249 completion: Make grade criteria more consistent
Also, round course grades and remove hardcoded string.

Note: This patch also removes the ability to update the course grade
from the completion interface
2012-06-26 13:58:19 +12:00
AMOS bot f0ad78b829 Automatically generated installer lang files 2012-06-26 00:31:30 +00:00
AMOS bot adb1616724 Merge branch 'MOODLE_22_STABLE' into install_22_STABLE 2012-06-26 00:31:30 +00:00
Andreas Grabs 90e0da6f75 MDL-33932_22 - added array_unique() 2012-06-25 21:51:59 +02:00
Andreas Grabs c6fbd0c8bf MDL-33627 - feedback block now show all feedbacks 2012-06-25 21:51:56 +02:00
Dan Poltawski 68b0cae5bc Merge branch 'MDL-33984_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-06-25 21:57:08 +08:00
Eloy Lafuente (stronk7) 72988ea0f4 MDL-33984 mysql: take rid of old unicode & mysql 4.1 message on error. 2012-06-25 15:49:27 +02:00
Dan Poltawski e9a8da9d76 Merge branch 'MDL-33984_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-06-25 18:47:10 +08:00
Eloy Lafuente (stronk7) b030363b02 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:33:22 +02:00
AMOS bot 9f0e9e6296 Automatically generated installer lang files 2012-06-25 00:31:44 +00:00
Eloy Lafuente (stronk7) 1257e3b729 Merge branch 'w25_MDL-33733_m22_unzipstorage' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-06-25 01:21:52 +02:00
Eloy Lafuente (stronk7) 59f80a1b88 weekly release 2.2.3+ 2012-06-24 18:34:58 +02:00
Eloy Lafuente (stronk7) 84acd5d794 Merge branch 'install_22_STABLE' of git://github.com/amosbot/moodle into MOODLE_22_STABLE 2012-06-24 18:28:55 +02:00
Dan Marsden fc79f4ca61 MDL-33914 SCORM show scrollbar on TOC if too long. 2012-06-22 22:22:32 +12:00
Jason Fowler 61c520c03c MDL-33957 - Installation - Fixing field lengths so they are long enough for data entry, and don't distort page rendering 2012-06-22 10:48:08 +08:00
AMOS bot e0c06eddc3 Automatically generated installer lang files 2012-06-22 00:31:26 +00:00
Sam Hemelryk b917d504a3 Merge branch 'MDL-27675_22' of git://github.com/grabs/moodle into MOODLE_22_STABLE 2012-06-21 11:29:32 +12:00
Sam Hemelryk 217926aaa1 Merge branch 'MDL-33808-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-06-21 10:06:32 +12:00
Andrew Robert Nicols 83d3858b16 MDL-33916 Ensure that capabilities are checked for cached user enrolments 2012-06-20 17:02:00 +01:00
Aparup Banerjee f4eaf5c7f0 Merge branch 'wip-MDL-33811-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-06-20 17:18:30 +08:00
Frederic Massart 6991ad41a3 MDL-9073 Glossary: uncategorised entries are printable 2012-06-20 12:26:59 +08:00
Jason Fowler c9af9c7570 MDL-32290 - Repositories - Fixing missing slash from the URL path 2012-06-20 10:42:06 +08:00
AMOS bot df4870fb31 Automatically generated installer lang files 2012-06-20 00:31:20 +00:00
Dan Poltawski c80ffce497 MDL-3971 - mod_forum: contain () in span 2012-06-20 11:40:52 +12:00
Jason Fowler 0646f76fb6 MDL-32990 - Repositories - Updating Box.net API calls to use HTTPS 2012-06-19 15:07:08 +08:00
Dan Poltawski 63472c089e MDL-33808 - format title on the repository instance screen 2012-06-19 12:10:44 +08:00
Dan Poltawski 2249f52fe2 MDL-33808 - incorrect cleaning of repository names 2012-06-19 11:27:26 +08:00
Eloy Lafuente (stronk7) 984109868d Merge branch 'MDL-33523_22' of git://github.com/dmiletic/moodle into MOODLE_22_STABLE 2012-06-19 03:10:12 +02:00
AMOS bot ecbe7b1154 Automatically generated installer lang files 2012-06-19 00:31:19 +00:00
Sam Hemelryk 13d01b3338 MDL-33811 Fixed left over debugging code preventing proper setting of YUI gallery version 2012-06-19 11:26:50 +12:00
Dan Poltawski 5e1fc324de Merge branch 'MDL-26892_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-06-18 21:40:59 +08:00
Dan Poltawski d9a92e8f41 Merge branch 'wip-MDL-33603-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-06-18 15:07:42 +08:00
Dan Poltawski 2b4dff5697 Merge branch 'wip-mdl-33607-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-06-18 14:34:39 +08:00
Adrian Greeve d9a3cd37fe MDL-33603 - data - added another sql query to allow links to records to work. 2012-06-18 10:25:47 +08:00
Petr Skoda 1d823156f7 MDL-33733 fix broken zip_packer->extract_to_storage() when extracting from stored_file 2012-06-17 23:00:47 +02:00
AMOS bot 124bda4f28 Automatically generated installer lang files 2012-06-16 00:31:32 +00:00
Eloy Lafuente (stronk7) b7f81b199c weekly release 2.2.3+ 2012-06-15 20:28:01 +02:00
Tim Hunt 6d94ae6827 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-15 17:01:18 +01:00
Dan Poltawski 034f40257e Merge branch 'MDL-33756_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-06-15 18:38:56 +08:00
Rajesh Taneja f68fd67f0c MDl-33607 wiki-2: check subwiki before fetching it from db 2012-06-15 16:58:14 +08:00
Jerome Mouneyrac ebf57c7e94 MDL-33770 Web service: create_groups should not require enrolmentkey
Conflicts:

	group/externallib.php
2012-06-15 15:18:29 +08:00
Dan Poltawski b6c9003756 Merge branch 'MDL-32279_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-06-15 11:03:19 +08:00
Eloy Lafuente (stronk7) 0d1bd690cb MDL-33756 backup: converters only available in general course backups. 2012-06-15 02:29:11 +02:00
Eloy Lafuente (stronk7) aa0bf8596a MDL-32279 glossary filter: nasty hack to get filter working with cached texts.
For Moodle 2.3 the filters API has been extended to offer a
setup() method, able to define all the page/init requirements
for each filter.

For this (2.2) version, where the setup() method is
not available, we are abusing badly the hash() method because
it's the unique point out from the caching mechanism where we
can inject such requirements. Alternative solutions like
backporting the API or add the requirements to all the pages
have been considered worse than this abuse.

Note, finally that this is not backportable to 2.1 because the
glossary filter there is a legacy one, so it does not have the
hash() facility either. Unique workaround there is to disable caching.
2012-06-15 00:39:08 +02:00
Darko Miletic 65345f200c MDL-33523: fix 2012-06-14 18:05:32 -03:00
Dan Poltawski be87ace1b6 Merge branch 'MDL-33035-m22' of git://github.com/sunner/moodle into MOODLE_22_STABLE 2012-06-14 12:29:21 +08:00
Frederic Massart f17cc9cfe8 MDL-30008 Filepicker: correctly handles allowed file types 2012-06-14 10:01:57 +08:00
Dan Poltawski c2a3bd52d2 Merge branch 'MDL-33581_MOODLE_22_STABLE' of git://github.com/mouneyrac/moodle into MOODLE_22_STABLE 2012-06-13 17:45:36 +08:00
Eloy Lafuente (stronk7) cd9f44d8df MDL-33682 backup: keep old behavior, aka, use section number on empty section name. 2012-06-13 00:56:57 +02:00
Eloy Lafuente (stronk7) 0f63503db0 Merge branch 'MDL-33682_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-06-13 00:56:22 +02:00
Eloy Lafuente (stronk7) 897329c247 Merge branch 'MDL-33681_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-06-13 00:06:41 +02:00
Tim Hunt de50c77537 MDL-33682 backup: cope with sections called '0'
It was not previously possible to have a section called 0 because of
bugs in the standard course formats, but we hit this with the OU course
format. You got an exception because backup settings tested to see if
their lable was empty, which means a section name of '0' was fatal.
Should work now.
2012-06-12 17:51:40 +01:00
Tim Hunt 8ad93cebfa MDL-33681 course: cannot have a section called '0'.
No reason to prevent this. It is just a matter of doing a proper test,
rather than the sloppy PHP !empty().
2012-06-12 17:51:30 +01:00
Aparup Banerjee 89c3d84eda Merge branch 'm22_MDL-33515' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-06-12 11:27:48 +08:00
Eloy Lafuente (stronk7) 63e5ddeb20 weekly release 2.2.3+ 2012-06-12 02:59:54 +02:00
Eloy Lafuente (stronk7) acb0b565b1 Merge branch 'install_22_STABLE' of git://github.com/amosbot/moodle into MOODLE_22_STABLE 2012-06-12 02:55:22 +02:00
Aparup Banerjee c93ff53c82 Merge branch 'MDL-33548_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-06-11 13:55:54 +08:00
Eloy Lafuente (stronk7) 75bb216d66 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:14:57 +08:00
Dan Poltawski e16922ede9 MDL-33514 - rss: also exclude suspended users feeds
Thanks Petr!
2012-06-11 10:27:25 +08:00
AMOS bot cdfa338430 Automatically generated installer lang files 2012-06-09 00:31:21 +00:00
Dan Marsden a911b4cb3e MDL-33515 SCORM - attempts grading setting is confusing - last attempt is really last completed attempt. 2012-06-08 20:35:52 +12:00
Jerome Mouneyrac 1850ab013c MDL-33581 missing parameter defaults for some external functions
Conflicts:

	course/externallib.php
2012-06-08 12:00:20 +08:00
Eloy Lafuente (stronk7) 887e2c8535 Merge branch 'w23_MDL-33583_m22_keepall' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-06-08 01:56:31 +02:00
Petr Skoda b98956fdd2 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:46:19 +02:00
Sam Hemelryk 29515af1d8 Merge branch 'MDL-33080_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-06-08 10:23:04 +12:00
Sam Hemelryk 52b6c9bc01 Merge branch 'MDL-32325-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-06-08 10:20:37 +12:00
Eloy Lafuente (stronk7) 746a8b2838 Merge branch 'MDL-32985_integration_22' of git://github.com/merrill-oakland/moodle into MOODLE_22_STABLE 2012-06-08 00:05:01 +02:00
Dan Poltawski 1e93a653a4 Merge branch 'MDL-33532_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-06-07 22:23:48 +08:00
Tim Hunt a41848a445 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:58:39 +01:00
Petr Skoda 31ffef36ac MDL-33583 really keep all automated backup files when told to do so 2012-06-07 11:13:12 +02:00
Andreas Grabs bac1415a0b MDL-27675 - Feedback module abuses data_submitted 2012-06-06 23:16:54 +02:00
Tim Hunt e78e39cdbb 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:23:05 +01:00
Eric Merrill 4e6fbf663c 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:06:22 -04:00
Dan Poltawski bc8bf2376c MDL-33514 - rss: only retrieve RSS feeds for valid users 2012-06-06 23:37:45 +08:00
Frederic Massart d1e6d47f1a MDL-32325 Glossary: Entrylist print version is XHTML compliant 2012-06-06 13:17:26 +08:00
Sam Hemelryk 50eb136630 Merge branch 'MDL-33090_22-missing-xmldb-strings' of git://github.com/rlorenzo/moodle into MOODLE_22_STABLE 2012-06-06 15:37:28 +12:00
Dan Poltawski 99778c82c7 Merge branch 'MDL-33119_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-06-06 10:32:07 +08:00
AMOS bot af7278a4ff Automatically generated installer lang files 2012-06-06 00:31:29 +00:00
Sam Hemelryk 57dd3c6909 Merge branch 'MDL-30837-22' of https://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-06-06 10:59:43 +12:00
Sam Hemelryk 8d7887cdb5 MDL-31520 user-ws: Optimised if statement for email access by moving admin check to the start 2012-06-06 10:37:36 +12:00
Sam Hemelryk 65d7459b6d Merge branch 'MDL-31520-MOODLE_22_STABLE' of git://github.com/fabiomsouto/moodle into MOODLE_22_STABLE 2012-06-06 10:37:36 +12:00
Sam Hemelryk 6a27fc8b34 Merge branch 'MDL-33353_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-06-06 10:25:06 +12:00
Sam Hemelryk 9331c1ec8c Merge branch 'MDL-31823_22' of git://github.com/dmonllao/moodle into MOODLE_22_STABLE 2012-06-06 10:13:39 +12:00
Sam Hemelryk 46d433f701 Merge branch 'MDL-33441-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-06-06 10:09:54 +12:00
Sam Hemelryk 928a51ad3d Merge branch 'MDL-33487-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-06-06 10:06:05 +12:00
Sam Hemelryk 882ef2f226 MDL-26277: Fixed whitespace post integration 2012-06-06 09:13:58 +12:00
Sam Hemelryk 042ae10e1d Merge branch 'MDL-26277-22' of https://github.com/mackensen/moodle into MOODLE_22_STABLE 2012-06-06 09:07:17 +12:00
Dan Poltawski 20253ec57b MDL-33441 course/lib.php prevent fatal error when no visible categories 2012-06-05 16:41:30 +08:00
Aparup Banerjee 092e389f4f Merge branch 'wip-mdl-33455-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-06-05 15:15:44 +08:00
Koen Roggemans bc861f559d MDL-29103 web service strings improvement 2012-06-05 12:44:02 +08:00
Dan Poltawski c4b48436f9 Merge branch 'MDL-33401-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-06-05 12:34:58 +08:00
Tim Barker db181b6a14 MDL-33476 repositories: Added instructions to assist with setting up Dropbox keys 2012-06-05 12:16:18 +08:00
Dan Poltawski 5fd1ca61b8 Merge branch 'MDL-30880_feedback_property_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-06-05 11:58:40 +08:00
Rajesh Taneja 33db7d7276 MDL-33455 gradebook: Grade will not be inserted for unknown user 2012-06-05 11:21:29 +08:00
Dan Poltawski dd428d8c06 MDL-31460 mod_forum: fix trailing whitespace 2012-06-05 09:35:34 +08:00
Dan Poltawski e2cc9b272e Merge branch 'MDL-31460_unsubscribe_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-06-05 09:35:31 +08:00
Frederic Massart 3824133b8e MDL-30837 Accessibility: removed navigation icons default alt text 2012-06-05 09:16:38 +08:00
Ankit Agarwal c8471b85e1 MDL-33401 blocks: Allow managers to have block:edit capability by default 2012-06-05 08:50:36 +08:00
Eloy Lafuente (stronk7) 55a83bd034 Merge branch 'MDL-32649_ratings_sort_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-06-05 02:23:30 +02:00
Eloy Lafuente (stronk7) 5d0c60f882 MDL-32985 cron: prevent notices on "new" sites. 2012-06-05 02:15:49 +02:00
Eloy Lafuente (stronk7) 8b01dd9d0f Merge branch 'MDL-32985_m22' of git://github.com/merrill-oakland/moodle into MOODLE_22_STABLE 2012-06-05 02:02:40 +02:00
Eloy Lafuente (stronk7) 2b75dbe9b1 MDL-33080 IMSCC: look for imsmanifest.xml @ root dir 2012-06-05 01:05:52 +02:00
Eloy Lafuente (stronk7) b71e34d890 MDL-33353 make fix_utf8() to work better under some systems.
This is a partial backport of MDL-32586 and MDL-33007 in order
to get some systems handling utf-8 strings better:

- debian/ubuntu. Avoid some glibc iconv() implementations to
  throw one PHP notice each time the //IGNORE option is used.
- redhat. Avoid some implementations to return false
  each time the //IGNORE option is used.

Note this does not include any backport of the admin notification
not the configmin stuff.
2012-06-04 12:40:37 +02:00
David Monllaó e313d1695b MDL-31823 - Remote hosts users created via mnet enrolments marked as confirmed 2012-06-04 10:39:08 +02:00
Dan Poltawski 085adaf545 Merge branch 'MDL-29173_calc_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-06-04 16:22:07 +08:00
AMOS bot 129abbb41b Automatically generated installer lang files 2012-06-02 00:31:36 +00:00
Dan Poltawski 4819f2eadd MDL-33487 - mod_forum: incorrect param ordering
Thanks to Garret Gengler for spotting it.
2012-06-01 23:35:49 +08:00
Tim Hunt 3c96772120 MDL-33119 quiz complete report: fix placeholders in attempt string. 2012-06-01 08:57:05 -06:00
Eloy Lafuente (stronk7) fbbb4cc708 weekly release 2.2.3+ 2012-06-01 09:48:50 +02:00
Eloy Lafuente (stronk7) f674c132b3 Merge branch 'install_22_STABLE' of git://github.com/amosbot/moodle into MOODLE_22_STABLE 2012-06-01 09:43:19 +02:00
Andrew Davis d09e2a36f2 MDL-30880 grade: added a check for the feedback property existing before it is used 2012-06-01 10:44:14 +07:00
Dan Poltawski 5411ca9e40 Merge branch 'MDL-33434_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-05-31 16:59:37 +08:00
Andrew Robert Nicols ed2b8be31a MDL-33040 Reports : Validate dates correctly on log page 2012-05-31 15:20:36 +08:00
Aparup Banerjee c7fc98256a Merge branch 'MDL-33140_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-05-31 14:15:44 +08:00
Frederic Massart d1ced7c144 MDL-33398 Cron: fix wrong variable type in completion criterias 2012-05-31 12:50:48 +08:00
Dan Poltawski 4625a1b540 Merge branch 'MDL-33397-22' of https://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-05-31 10:36:05 +08:00
Eloy Lafuente (stronk7) 21bb3f9466 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:44:45 +02:00
Eloy Lafuente (stronk7) 514da614c3 MDL-33434 dml: define expected results when unique constraint is violated on insert. 2012-05-31 01:44:23 +02:00
Tim Hunt 78e010e9df MDL-33140 quiz browser security: block copy/paste more 2012-05-30 14:49:40 -06:00
Sam Hemelryk 91d9449144 Revert "Merge branch 'MDL-27675_22_wip' of git://github.com/grabs/moodle into MOODLE_22_STABLE"
This reverts commit e5d6cd5461, reversing
changes made to dcd5d0840b.
2012-05-30 16:36:01 +12:00
Dan Poltawski 787132eabc Merge branch 'MDL-33398b-22' of git://github.com/srynot4sale/moodle into MOODLE_22_STABLE 2012-05-30 11:36:01 +08:00
Aaron Barnes 8e6ec68cdf MDL-33398 completion: Fix coding error (should be arrays not objects) 2012-05-30 13:38:39 +12:00
AMOS bot 562129c91d Automatically generated installer lang files 2012-05-30 00:31:22 +00:00
Andrew Davis db5e62d250 MDL-29173 grade: altered the definiton of round() and added some more unit tests 2012-05-29 16:31:36 +07:00
Dan Poltawski c5fc1191e0 Merge branch 'MDL-30905-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-05-29 16:20:36 +08:00
Dan Poltawski ef6ad52352 Merge branch 'wip-mdl-33102-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-05-29 16:11:08 +08:00
Frederic Massart 03ba959758 MDL-33397 Filepicker: cancel button always present in private files 2012-05-29 15:18:05 +08:00
Dan Poltawski 1605e8d8d2 Merge branch 'MDL-30888-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-05-29 15:12:43 +08:00
Dan Poltawski 865f537fea Merge branch 'MDL-33212-m22' of git://github.com/sammarshallou/moodle into MOODLE_22_STABLE 2012-05-29 15:10:55 +08:00
Andrew Davis cd2b730489 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:22:38 +07:00
sam marshall bcaed19cc9 MDL-33212 Course page: Eye icon should override other conditions 2012-05-28 16:26:36 +01:00
Dan Poltawski 92f03977db Revert "MDL-33212 Course page: Eye icon should override other conditions"
This reverts commit e57802961b.
2012-05-28 16:58:09 +08:00
Dan Poltawski 7e3707635c Merge branch 'MDL-33212-m22' of git://github.com/sammarshallou/moodle into MOODLE_22_STABLE 2012-05-28 16:03:11 +08:00
Dan Poltawski d855d780a3 Merge branch 'MDL-31393_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-05-28 15:24:08 +08:00
Dan Poltawski 0e55d4af36 Merge branch 'wip-MDL-32199-MOODLE_22_STABLE' of git://github.com/abgreeve/moodle into MOODLE_22_STABLE 2012-05-28 15:18:57 +08:00
Charles Fulton c9ab8472a6 MDL-33194 forum: correct number of parameters for get_record() 2012-05-28 14:59:19 +08:00
Dan Poltawski f4cfa2cbd6 Merge branch 'm22_MDL-27368' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-05-28 14:32:53 +08:00
Adrian Greeve 35124c3c4f 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:08:12 +08:00
Dan Poltawski 857e992ff7 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:29 +08:00
Dan Poltawski a66bb4213e Merge branch 'MDL-29173_calc_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-05-28 12:16:26 +08:00
Sam Hemelryk 5a3f6eb468 Merge branch 'MDL-33364_22' of git://github.com/stronk7/moodle into MOODLE_22_STABLE 2012-05-28 13:51:09 +12:00
Sam Hemelryk 5bd7b691b6 MDL-27675 mod_feedback: Tidy up of phpdocs and scope within feedback mod 2012-05-28 13:39:13 +12:00
Eloy Lafuente (stronk7) ce46ec1eaf MDL-33364 automated backup: return and log each course result correctly 2012-05-28 02:50:02 +02:00
Sam Hemelryk e5d6cd5461 Merge branch 'MDL-27675_22_wip' of git://github.com/grabs/moodle into MOODLE_22_STABLE 2012-05-28 11:44:18 +12:00
Sam Hemelryk dcd5d0840b Merge branch 'MDL-33191_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-05-28 11:21:58 +12:00
Sam Hemelryk d48f4d2f75 Merge branch 'MDL-33325-m22' of git://github.com/ankitagarwal/moodle into MOODLE_22_STABLE 2012-05-28 10:52:12 +12:00
Andreas Grabs 64258fa070 MDL-27675 - Feedback module abuses data_submitted 2012-05-28 00:37:19 +02:00
Dan Marsden 35f858e855 MDL-27368 Clean up invalid course completion records
keep oldest timestamps from all records
2012-05-28 09:03:44 +12:00
Eloy Lafuente (stronk7) 5bb8e807eb weekly release 2.2.3+ 2012-05-25 12:50:52 +02:00
Eloy Lafuente (stronk7) 5606d3aa5c Merge branch 'install_22_STABLE' of git://github.com/amosbot/moodle into MOODLE_22_STABLE 2012-05-25 12:44:47 +02:00
Dan Poltawski adb9f1aa1a Merge branch 'MDL-29924-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE 2012-05-25 11:14:38 +08:00
Dan Poltawski 2c1dda9302 MDL-28557 - calendar: fix trivial whitespace issue 2012-05-25 11:09:10 +08:00
Dan Poltawski 4902915edb Merge branch 'MDL-28557-22' of git://github.com/bostelm/moodle into MOODLE_22_STABLE 2012-05-25 11:09:07 +08:00
Jerome Mouneyrac 8d83e44bc4 MDL-33028 display debuginfo when server die at developer mode 2012-05-25 10:23:02 +08:00
AMOS bot 62c4db2a24 Automatically generated installer lang files 2012-05-25 00:31:24 +00:00
Ankit Agarwal 792d1ea2dd MDL-33325 folder: 'set as main file' option removed, from filepicker when editing a file in a folder resource 2012-05-24 16:12:39 +08:00
Andrew Robert Nicols a8cf5e9574 MDL-33186 Ensure that the comment textarea exists before toggling it 2012-05-24 15:53:57 +08:00
Aparup Banerjee c61f5f8730 MDL-33318 lib : code style fix 2012-05-24 15:42:32 +08:00
Aparup Banerjee 4fb3cc5894 Merge branch 'm22_MDL-33318' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-05-24 15:42:22 +08:00
Frederic Massart 04c5f73665 MDL-30905 Accessibility: recent activity list is XHTML compliant 2012-05-24 13:50:45 +08:00
Frederic Massart 0d1e39b466 MDL-30903 Accessibility: user profile page uses table headers 2012-05-24 13:34:35 +08:00
Dan Marsden f67ac6697c MDL-33318 use $CFG->admin in path correctly - thanks to Clarence Prudhoe for report/fix 2012-05-24 14:09:36 +12:00
Frederic Massart bfb54eeea3 MDL-30888 Accessibility: small calendars summary does not display 'Data table' 2012-05-24 09:24:44 +08:00
AMOS bot bb5bda8aa1 Automatically generated installer lang files 2012-05-24 00:31:35 +00:00
Sam Hemelryk 3d1e457e3e Merge branch 'MDL-32203c-22' of git://github.com/srynot4sale/moodle into MOODLE_22_STABLE 2012-05-24 11:48:40 +12:00
Sam Hemelryk 05ceae9bb2 Merge branch 'MDL-26562-22' of git://github.com/vadimonus/moodle into MOODLE_22_STABLE 2012-05-24 10:56:16 +12:00
sam marshall e57802961b MDL-33212 Course page: Eye icon should override other conditions
Conflicts:

	lib/conditionlib.php
2012-05-23 13:50:42 +01:00
Dan Poltawski 605b539184 Merge branch 'wip-mdl-32155-m22' of git://github.com/rajeshtaneja/moodle into MOODLE_22_STABLE 2012-05-23 13:28:08 +08:00
Rajesh Taneja c58c05ad4f MDL-32155 blocks: User can't access file, if block is hidden or doesn't have block:view capability 2012-05-23 12:57:31 +08:00
Andrew Davis fcb203c11b MDL-32649 rating: fixed the sorting in /rating/index.php 2012-05-23 08:36:51 +07:00
Mary Evans 11ba685a7b MDL-33191 theme_magazine: changes to magazine/config.php fixes $THEME->layouts for Base & Standard 2012-05-22 17:15:06 +01:00
Sun Zhigang 0f6113cba0 MDL-33035 workshop: typo in strings 2012-05-22 19:23:43 +08:00
Dan Poltawski b51ac4e290 Merge branch 'w21_MDL-32564_m22_timezonecontext' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-05-22 13:34:24 +08:00
Dan Poltawski fee000ff4e Merge branch 'MDL-32981-22' of github.com:FMCorz/moodle into MOODLE_22_STABLE 2012-05-22 11:16:06 +08:00
Frederic Massart 0c9fb0c1cb MDL-32981 Filepicker: my private files uses edit page instead of view 2012-05-22 10:50:44 +08:00
Sam Hemelryk 3e11be405b Merge branch 'MDL-32204-mnet-auth_22' of git://github.com/mudrd8mz/moodle into MOODLE_22_STABLE 2012-05-22 14:49:23 +12:00
Kordan 319887f86e MDL-33055 theme_formal_white: changed "general" to "standard" in $theme->layouts array index 2012-05-22 14:31:29 +12:00
Rajesh Taneja b27eef0f7e MDL-33102 blogs: userid will be added during blog visibility upgrade 2012-05-22 10:00:30 +08:00
Andrew Davis 6dbe8ddbd8 MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php 2012-05-22 08:39:31 +07:00
Fábio Souto cd358c666f Allow admin to consult user email address
Currently the admin user cannot check the user email using this function. This fix allows the admin user to retrieve the email in any situation.
2012-05-21 10:36:32 +01:00
Mary Evans bb61c874bb MDL-33118 theme_mymobile: changed MAIN_CONTENT_TOKEN in layout/embedded.php to new format 2012-05-20 22:44:05 +01:00
Vadim Dvorovenko d78b67b2fc MDL-26562
Signed-off-by: Vadim Dvorovenko <vadimon@mail.ru>
2012-05-20 19:45:38 +07:00
Rex Lorenzo c31149fa67 MDL-33090 - Missing strings in XMLDB editor - added in missing strings 2012-05-19 21:31:08 -07:00
Petr Skoda 2f76ac6362 MDL-32564 fix admin/timezone.php page setup 2012-05-19 18:54:40 +02:00
Eloy Lafuente (stronk7) 14fdcb4f13 weekly release 2.2.3+ 2012-05-19 12:23:35 +02:00
Eloy Lafuente (stronk7) 2871fedb58 Merge branch 'install_22_STABLE' of git://github.com/amosbot/moodle into MOODLE_22_STABLE 2012-05-19 12:17:27 +02:00
Adrian Greeve 42446a0b6d MDL-32126 replaced _order with sortorder to make sorting work in oracle 2012-05-18 11:25:18 +02:00
Dan Poltawski 7fcdb8275c Merge branch 'MDL-32535-m22' of git://github.com/sammarshallou/moodle into MOODLE_22_STABLE 2012-05-18 10:28:26 +08:00
AMOS bot 1ac90bc28e Automatically generated installer lang files 2012-05-18 00:31:51 +00:00
Matteo Scaramuccia 8e1f3b11c7 MDL-33053 AICC: Incorrect Table Of Content hierarchy using "structured" AICC
courses
[Fix] 'scorm_scoes' doesn't contain all the entries described in the DES file
[Fix] HTMLizing the parent relationship, described in the CST file,
      fails: it considers 'index = 0' (found) equals to 'false'	(not found)
2012-05-18 00:40:50 +02:00
Rajesh Taneja a71e869f34 MDL-32866 filemanager: Fixed Page url typo 2012-05-17 16:48:35 +08:00
Frederic Massart 3dc794a8f5 MDL-29924 Glossary: Entry attachments displayed in Moodle dialogue 2012-05-17 15:02:48 +08:00
Dan Poltawski 1765044c64 Merge branch 'w20_MDL-32967_m22_sqlsrvstrings' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-05-17 14:30:38 +08:00
Dan Poltawski 573e559c96 Merge branch 'MDL-31814_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-05-17 14:11:22 +08:00
Juho Viitasalo 5724bb16eb MDL-31850 wiki: extra whitespace removed from form 2012-05-17 14:49:21 +12:00
Sam Hemelryk 843599ae86 Merge branch 'm22_MDL-32794' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE 2012-05-17 12:27:37 +12:00
Aparup Banerjee 5a6042c9be Merge branch 'MDL-32633_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE 2012-05-16 16:05:42 +08:00
sam marshall e8cc54227e MDL-32988 Lib: Course delete does availability/completion in wrong order
When deleting modules that failed to delete using normal method, it deleted
the course-modules table first and then the availability/completion,
which depend on the entries in course-modules table. This commit switches
the order.
2012-05-16 14:04:13 +08:00
Aparup Banerjee b3e26da9d9 MDL-32921 lti : reused a moodle_url. 2012-05-16 13:51:53 +08:00
Chris Scribner de05ce07c2 MDL-32921: Fixing an issue with adding LTI tool providers from the admin UI 2012-05-16 13:51:45 +08:00
AMOS bot c163f86350 Automatically generated installer lang files 2012-05-16 00:31:36 +00:00
Henning Bostelmann d9df0e34fc MDL-28557 Calendar filters: show all group events in course to teacher 2012-05-15 22:25:01 +01:00
Sam Hemelryk f97184b9c9 Merge branch 'MDL-31458-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE 2012-05-16 09:12:06 +12:00
Wiktor Wandachowicz f8e01f918b MDL-32204 MNet: set auth method to mnet for users enrolled remotely 2012-05-15 15:36:42 +02:00
Aparup Banerjee 479f14a07b Merge branch 'MDL-32861-22' of https://github.com/mackensen/moodle into MOODLE_22_STABLE 2012-05-15 16:10:33 +08:00
Aparup Banerjee 1eab78b30e Merge branch 'MDL-25695-22' of https://github.com/mackensen/moodle into MOODLE_22_STABLE 2012-05-15 11:08:21 +08:00
AMOS bot 2ce6285fb0 Automatically generated installer lang files 2012-05-15 00:31:40 +00:00
Dan Marsden 4e3a4dd55c MDL-32794 SCORM prevent items in tree that have no navigation from triggering a navigation change. 2012-05-15 09:37:03 +12:00
Eric Merrill 278fc5d6dc MDL-32985 cron: don't execute notify_login_failures unnecessarily 2012-05-14 11:22:42 -04:00
Dan Poltawski 4acfacdbf8 MDL-32714 workshop - fix broken unit tests
Using a quick and dirty recordset mock. Thanks to Eloy for the
brainpower.
2012-05-14 22:17:19 +08:00
Dan Poltawski f4d4fcaa41 Merge branch 'MDL-32863_22' of git://github.com/jonof/moodle into MOODLE_22_STABLE 2012-05-14 20:49:12 +08:00
Dan Poltawski 418f8dd9a7 Merge branch 'MDL-31719_M22' of git://github.com/lazydaisy/moodle into MOODLE_22_STABLE 2012-05-14 15:53:25 +08:00
Dan Poltawski 7e647445dd Merge branch 'MDL-31804_ambiguous_sql_22' of git://github.com/andyjdavis/moodle into MOODLE_22_STABLE 2012-05-14 14:20:16 +08:00
Dan Poltawski 97bb109b55 Merge branch 'MDL-24401_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE 2012-05-14 14:12:36 +08:00
Dan Poltawski a6bc302e64 Merge branch 'w20_MDL-32915_m22_chatdiv' of git://github.com/skodak/moodle into MOODLE_22_STABLE 2012-05-14 14:06:45 +08:00
Dan Poltawski 043a0d4c27 Merge branch 'wip-MDL-32872-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-05-14 14:01:03 +08:00
Dan Poltawski 8dd8427aa2 Merge branch 'wip-MDL-32611-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE 2012-05-14 13:13:06 +08:00
Jonathon Fowler d5e59d8950 MDL-31804 duplicated columns cause Oracle error in grader report 2012-05-14 11:08:48 +07:00
Jonathon Fowler f3248ac9f2 MDL-32863 question: fix for Oracle ambiguous column error 2012-05-14 12:53:36 +10:00
Dan Poltawski 39a3a53069 Merge branch 'MDL-32714-rubric_22' of git://github.com/mudrd8mz/moodle into MOODLE_22_STABLE 2012-05-14 10:41:54 +08:00
Andrew Robert Nicols bf03cf12b7 MDL-32340 Improve performance of calendar selection 2012-05-14 14:05:25 +12:00
Adrian Greeve 7d127b53e3 MDL-32126 - data - backport of advanced search re-write 2012-05-14 12:39:30 +12:00
Sam Hemelryk 734d880e35 MDL-32611 editcategory: Fixed up navigation error. 2012-05-14 09:17:06 +12:00
Sam Hemelryk 2146aae7bf MDL-32872 tool_roles: Fixed up navigation on user roles page 2012-05-14 08:54:28 +12:00
Mary Evans 6e765a4ce5 MDL-31719 lang/en/admin.php: changes text in $string['configallowthemechangeonurl'] to make less ambiguous 2012-05-13 15:12:33 +01:00
Petr Skoda 7c4f93cd5f MDL-32967 add diagnostic strings for missing Microsoft drivers for SQL Server 2012-05-13 12:23:39 +02:00
Petr Skoda 94492249ec MDL-32915 fix bogus open div in basic chat ui 2012-05-13 10:25:50 +02:00
David Mudrak 1f90d92464 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:25:41 +02:00
Tim Hunt fd32dbfa1d MDL-32633 quiz editing: recreate grade item when max changed from 0 2012-05-11 20:05:22 +01:00
Dan Poltawski a6f5a72ef5 MDL-31458 forum: email subjects containing ampersand are sent as &amp; 2012-05-11 15:30:40 +08:00
Tim Hunt 673ee48eb8 MDL-31393 qtype_essay upgrade: save old question_answers.feebdack 2012-05-09 15:09:27 +01:00
Charles Fulton 2d129fbea0 MDL-32861 filemanager: respect course upload limit 2012-05-09 05:09:28 -07:00
Rossiani Wijaya a6b4124840 MDL-24401: fixed string for adding content page 2012-05-09 14:37:11 +08:00
Charles Fulton 900e37bec7 MDL-26277 grade import: validate file pointer before reading 2012-05-06 20:33:30 -07:00
Tim Hunt 57f2278c69 MDL-31814 question bank: fix possible error with sort columns. 2012-05-04 17:30:24 +01:00
Aaron Barnes 373d42cf3a MDL-32203 completion: Fix issues with data object where clauses 2012-05-04 15:03:20 +12:00
Charles Fulton 8df946ba30 MDL-25695 wiki: enable anchor tags 2012-04-20 12:49:26 -07:00
sam marshall dc2c1b8974 MDL-32535 Completion lang string incorrect use, text 2012-04-19 14:46:49 +01:00
Kanika Goyal 6a5e3c1d9d MDL-32125 mod_forum: updating subscription mode not reflected 2012-04-02 10:04:18 +05:30
Kanika Goyal 31238c016e MDL-31203 mod_forum: advanced search posts must be newer older than date, reverts date 2012-03-31 19:05:32 +05:30
Tomasz Muras 8435db0112 MDL-31753 Get correct course ID for Community finder search link. 2012-02-23 11:51:03 +00:00
1073 changed files with 16311 additions and 8572 deletions
+211
View File
@@ -0,0 +1,211 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* MySQL collation conversion tool.
*
* @package core
* @copyright 2012 Petr Skoda (http://skodak.org)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require_once($CFG->libdir.'/clilib.php'); // cli only functions
if ($DB->get_dbfamily() !== 'mysql') {
cli_error('This function is designed for MySQL databases only!');
}
// now get cli options
list($options, $unrecognized) = cli_get_params(array('help'=>false, 'list'=>false, 'collation'=>false, 'available'=>false),
array('h'=>'help', 'l'=>'list', 'a'=>'available'));
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
$help =
"MySQL collation conversions script.
It is strongly recommended to stop the web server before the conversion.
This script may be executed before the main upgrade - 1.9.x data for example.
Options:
--collation=COLLATION Convert MySQL tables to different collation
-l, --list Show table and column information
-a, --available Show list of available collations
-h, --help Print out this help
Example:
\$ sudo -u www-data /usr/bin/php admin/cli/mysql_collation.php --collation=utf8_general_ci
";
if (!empty($options['collation'])) {
$collations = mysql_get_collations();
$collation = clean_param($options['collation'], PARAM_ALPHANUMEXT);
$collation = strtolower($collation);
if (!isset($collations[$collation])) {
cli_error("Error: collation '$collation' is not available on this server!");
}
echo "Converting tables and columns to '$collation' for $CFG->wwwroot:\n";
$prefix = $DB->get_prefix();
$prefix = str_replace('_', '\\_', $prefix);
$sql = "SHOW TABLE STATUS WHERE Name LIKE BINARY '$prefix%'";
$rs = $DB->get_recordset_sql($sql);
$converted = 0;
$skipped = 0;
$errors = 0;
foreach ($rs as $table) {
echo str_pad($table->name, 40). " - ";
if ($table->collation === $collation) {
echo "NO CHANGE\n";
$skipped++;
} else {
$DB->change_database_structure("ALTER TABLE $table->name DEFAULT COLLATE = $collation");
echo "CONVERTED\n";
$converted++;
}
$sql = "SHOW FULL COLUMNS FROM $table->name WHERE collation IS NOT NULL";
$rs2 = $DB->get_recordset_sql($sql);
foreach ($rs2 as $column) {
$column = (object)array_change_key_case((array)$column, CASE_LOWER);
echo ' '.str_pad($column->field, 36). " - ";
if ($column->collation === $collation) {
echo "NO CHANGE\n";
$skipped++;
continue;
}
if ($column->type === 'tinytext' or $column->type === 'mediumtext' or $column->type === 'text' or $column->type === 'longtext') {
$notnull = ($column->null === 'NO') ? 'NOT NULL' : 'NULL';
$default = (!is_null($column->default) and $column->default !== '') ? "DEFAULT '$column->default'" : '';
// primary, unique and inc are not supported for texts
$sql = "ALTER TABLE $table->name MODIFY COLUMN $column->field $column->type COLLATE $collation $notnull $default";
$DB->change_database_structure($sql);
} else if (strpos($column->type, 'varchar') === 0) {
$notnull = ($column->null === 'NO') ? 'NOT NULL' : 'NULL';
$default = !is_null($column->default) ? "DEFAULT '$column->default'" : '';
// primary, unique and inc are not supported for texts
$sql = "ALTER TABLE $table->name MODIFY COLUMN $column->field $column->type COLLATE $collation $notnull $default";
$DB->change_database_structure($sql);
} else {
echo "ERROR (unknown column type: $column->type)\n";
$error++;
continue;
}
echo "CONVERTED\n";
$converted++;
}
$rs2->close();
}
$rs->close();
echo "Converted: $converted, skipped: $skipped, errors: $errors\n";
exit(0); // success
} else if (!empty($options['list'])) {
echo "List of tables for $CFG->wwwroot:\n";
$prefix = $DB->get_prefix();
$prefix = str_replace('_', '\\_', $prefix);
$sql = "SHOW TABLE STATUS WHERE Name LIKE BINARY '$prefix%'";
$rs = $DB->get_recordset_sql($sql);
$counts = array();
foreach ($rs as $table) {
if (isset($counts[$table->collation])) {
$counts[$table->collation]++;
} else {
$counts[$table->collation] = 1;
}
echo str_pad($table->name, 40);
echo $table->collation. "\n";
$collations = mysql_get_column_collations($table->name);
foreach ($collations as $columname=>$collation) {
if (isset($counts[$collation])) {
$counts[$collation]++;
} else {
$counts[$collation] = 1;
}
echo ' ';
echo str_pad($columname, 36);
echo $collation. "\n";
}
}
$rs->close();
echo "\n";
echo "Table collations summary for $CFG->wwwroot:\n";
foreach ($counts as $collation => $count) {
echo "$collation: $count\n";
}
exit(0); // success
} else if (!empty($options['available'])) {
echo "List of available MySQL collations for $CFG->wwwroot:\n";
$collations = mysql_get_collations();
foreach ($collations as $collation) {
echo " $collation\n";
}
die;
} else {
echo $help;
die;
}
// ========== Some functions ==============
function mysql_get_collations() {
global $DB;
$collations = array();
$sql = "SHOW COLLATION WHERE Collation LIKE 'utf8\_%' AND Charset = 'utf8'";
$rs = $DB->get_recordset_sql($sql);
foreach ($rs as $collation) {
$collations[$collation->collation] = $collation->collation;
}
$rs->close();
$collation = $DB->get_dbcollation();
if (isset($collations[$collation])) {
$collations[$collation] .= ' (default)';
}
return $collations;
}
function mysql_get_column_collations($tablename) {
global $DB;
$collations = array();
$sql = "SELECT column_name, collation_name
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_schema = DATABASE() AND table_name = ? AND collation_name IS NOT NULL";
$rs = $DB->get_recordset_sql($sql, array($tablename));
foreach($rs as $record) {
$collations[$record->column_name] = $record->collation_name;
}
$rs->close();
return $collations;
}
+113 -18
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,118 @@
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.0.25">
<VENDOR name="mysql" version="5.1.33" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
<VENDOR name="mssql_n" version="9.0" />
<VENDOR name="oracle" version="10.2" />
<VENDOR name="sqlite" version="2.0" />
</DATABASE>
<PHP version="5.3.2" level="required">
</PHP>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="mysql416required" />
<ON_CHECK message="iconvrequired" />
</FEEDBACK>
</VENDOR>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
<FEEDBACK>
<ON_CHECK message="mbstringrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_CHECK message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="optional">
<FEEDBACK>
<ON_CHECK message="opensslrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="optional">
<FEEDBACK>
<ON_CHECK message="gdrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_CHECK message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_CHECK message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="optional">
<FEEDBACK>
<ON_CHECK message="intlrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="40M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="safe_mode" value="0" level="optional">
<FEEDBACK>
<ON_CHECK message="settingsafemode" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
</MOODLE>
<MOODLE version="2.4" requires="2.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.1.33" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
+2
View File
@@ -242,6 +242,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)
// Disable/off/on
$select = new single_select(filters_action_url($filter, 'setstate'), 'newstate', $activechoices, $filterinfo->active, null, 'active' . basename($filter));
$select->set_label(get_string('isactive', 'filters'), array('class' => 'accesshide'));
$row[] = $OUTPUT->render($select);
// Re-order
@@ -263,6 +264,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)
// Apply to strings.
$select = new single_select(filters_action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, $applytostrings, null, 'applyto' . basename($filter));
$select->set_label(get_string('applyto', 'filters'), array('class' => 'accesshide'));
$select->disabled = $filterinfo->active == TEXTFILTER_DISABLED;
$row[] = $OUTPUT->render($select);
+4 -3
View File
@@ -203,17 +203,18 @@ echo get_string('username') . ":\n";
if (!empty($formerror['username'])) {
echo '<span class="error"> * </span>';
}
echo '<input type="text" name="username" size="20" maxlength="100" />';
echo html_writer::label(get_string('username'), 'menuusername', false, array('class' => 'accesshide'));
echo '<input id="menuusername" type="text" name="username" size="20" maxlength="100" />';
// choose a remote host
echo " " . get_string('remotehost', 'mnet') . ":\n";
echo " " . html_writer::label(get_string('remotehost', 'mnet'), 'menumnet_host_id') . ":\n";
if (!empty($formerror['mnet_host_id'])) {
echo '<span class="error"> * </span>';
}
echo html_writer::select($mnethosts, 'mnet_host_id');
// choose an access level
echo " " . get_string('accesslevel', 'mnet') . ":\n";
echo " " . html_writer::label(get_string('accesslevel', 'mnet'), 'menuaccessctrl') . ":\n";
if (!empty($formerror['accessctrl'])) {
echo '<span class="error"> * </span>';
}
+1 -1
View File
@@ -30,7 +30,7 @@
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot.'/mnet/lib.php');
require_once($CFG->dirroot.'/admin/mnet/peer_forms.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/mnet/peer_forms.php');
require_login();
+2 -1
View File
@@ -28,7 +28,8 @@ require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/pluginlib.php');
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
admin_externalpage_setup('pluginsoverview');
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
$output = $PAGE->get_renderer('core', 'admin');
echo $output->plugin_management_page(plugin_manager::instance());
+2
View File
@@ -197,6 +197,7 @@ if (($action == 'edit') || ($action == 'new')) {
$currentaction = 'hide';
}
$select = new single_select(portfolio_action_url($pluginid, 'pf'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . $pluginid);
$select->set_label(get_string('action'), array('class' => 'accesshide'));
$table->data[] = array($pluginname, $OUTPUT->render($select), $settings);
}
if (!in_array($plugin, $usedplugins)) {
@@ -218,6 +219,7 @@ if (($action == 'edit') || ($action == 'new')) {
$insaneplugins[] = $p;
} else {
$select = new single_select(portfolio_action_url($p, 'pf'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . $p);
$select->set_label(get_string('action'), array('class' => 'accesshide'));
$table->data[] = array(portfolio_static_function($p, 'get_name'), $OUTPUT->render($select), '');
}
}
+1 -1
View File
@@ -374,7 +374,7 @@ class core_admin_renderer extends plugin_renderer_base {
$copyrighttext = '<a href="http://moodle.org/">Moodle</a> '.
'<a href="http://docs.moodle.org/dev/Releases" title="'.$CFG->version.'">'.$CFG->release.'</a><br />'.
'Copyright &copy; 1999 onwards, Martin Dougiamas<br />'.
'and <a href="http://docs.moodle.org/dev/Credits">many other contributors</a>.<br />'.
'and <a href="http://moodle.org/dev">many other contributors</a>.<br />'.
'<a href="http://docs.moodle.org/dev/License">GNU Public License</a>';
//////////////////////////////////////////////////////////////////////////////////////////////////
+2 -1
View File
@@ -305,7 +305,7 @@ if (($action == 'edit') || ($action == 'new')) {
}
$select = new single_select(repository_action_url($typename, 'repos'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . basename($typename));
$select->set_label(get_string('action'), array('class' => 'accesshide'));
// Display up/down link
$updown = '';
$spacer = $OUTPUT->spacer(array('height'=>15, 'width'=>15)); // should be done with CSS instead
@@ -342,6 +342,7 @@ if (($action == 'edit') || ($action == 'new')) {
// Check that it has not already been listed
if (!in_array($plugin, $alreadyplugins)) {
$select = new single_select(repository_action_url($plugin, 'repos'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . basename($plugin));
$select->set_label(get_string('action'), array('class' => 'accesshide'));
$table->data[] = array(get_string('pluginname', 'repository_'.$plugin), $OUTPUT->render($select), '', '');
}
}
+8 -3
View File
@@ -41,6 +41,9 @@ $return = true;
if (!empty($edit) || !empty($new)) {
if (!empty($edit)) {
$instance = repository::get_instance($edit);
if ($instance->instance->contextid != $context->id) {
throw new repository_exception('nopermissiontoaccess', 'repository');
}
$instancetype = repository::get_type_by_id($instance->options['typeid']);
$classname = 'repository_' . $instancetype->get_typename();
$configs = $instance->get_instance_option_names();
@@ -103,10 +106,12 @@ if (!empty($edit) || !empty($new)) {
$return = true;
} else if (!empty($delete)) {
$instance = repository::get_instance($delete);
//if you try to delete an instance set as readonly, display an error message
if ($instance->readonly) {
throw new repository_exception('readonlyinstance', 'repository');
}
// If you try to delete an instance set as readonly, display an error message.
throw new repository_exception('readonlyinstance', 'repository');
} else if ($instance->instance->contextid != $context->id) {
throw new repository_exception('nopermissiontoaccess', 'repository');
}
if ($sure) {
if (!confirm_sesskey()) {
print_error('confirmsesskeybad', '', $baseurl);
+30 -5
View File
@@ -104,20 +104,45 @@ switch ($context->contextlevel) {
break;
}
// Get the list of the reported-on user's role assignments - must be after
// the page setup code above, or the language might be wrong.
$reportuser = $userselector->get_selected_user();
if (!is_null($reportuser)) {
$roleassignments = get_user_roles_with_special($context, $reportuser->id);
$rolenames = role_get_names($context);
}
echo $OUTPUT->header();
// These are needed early because of tabs.php
$assignableroles = get_assignable_roles($context, ROLENAME_BOTH);
$overridableroles = get_overridable_roles($context, ROLENAME_BOTH);
// Print heading.
echo $OUTPUT->heading($title);
// If a user has been chosen, show all the permissions for this user.
$reportuser = $userselector->get_selected_user();
if (!is_null($reportuser)) {
echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide');
echo $OUTPUT->heading(get_string('permissionsforuser', 'role', fullname($reportuser)), 3);
if (!empty($roleassignments)) {
echo $OUTPUT->heading(get_string('rolesforuser', 'role', fullname($reportuser)), 3);
echo html_writer::start_tag('ul');
$systemcontext = context_system::instance();
foreach ($roleassignments as $ra) {
$racontext = context::instance_by_id($ra->contextid);
$link = html_writer::link($racontext->get_url(), $racontext->get_context_name());
$rolename = $rolenames[$ra->roleid]->localname;
if (has_capability('moodle/role:manage', $systemcontext)) {
$rolename = html_writer::link(new moodle_url('/admin/roles/define.php',
array('action' => 'view', 'roleid' => $ra->roleid)), $rolename);
}
echo html_writer::tag('li', get_string('roleincontext', 'role',
array('role' => $rolename, 'context' => $link)));
}
echo html_writer::end_tag('ul');
}
echo $OUTPUT->heading(get_string('permissionsforuser', 'role', fullname($reportuser)), 3);
$table = new check_capability_table($context, $reportuser, $contextname);
$table->display();
echo $OUTPUT->box_end();
+14 -7
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,
@@ -120,14 +131,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');
@@ -160,7 +166,8 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
$context = context::instance_by_id($contextid);
// Print the context name.
echo $OUTPUT->heading($context->get_context_name(), 4, 'contextname');
echo $OUTPUT->heading(html_writer::link($context->get_url(), $context->get_context_name()),
4, 'contextname');
// If there are any role assignments here, print them.
foreach ($contexts[$contextid]->roleassignments as $ra) {
@@ -183,7 +190,7 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
}
$a = new stdClass;
$a->fullname = $fullname;
$a->contextlevel = get_contextlevel_name($context->contextlevel);
$a->contextlevel = $context->get_level_name();
if ($context->contextlevel == CONTEXT_SYSTEM) {
$strgoto = get_string('gotoassignsystemroles', 'role');
$strcheck = get_string('checksystempermissionsfor', 'role', $a);
+3 -2
View File
@@ -35,10 +35,11 @@ if ($hassiteconfig
$temp->add(new admin_setting_configselect('moodlecourse/showgrades', get_string('showgrades'), get_string('coursehelpshowgrades'), 1,array(0 => get_string('no'), 1 => get_string('yes'))));
$temp->add(new admin_setting_configselect('moodlecourse/showreports', get_string('showreports'), '', 0,array(0 => get_string('no'), 1 => get_string('yes'))));
$currentmaxbytes = get_config('moodlecourse', 'maxbytes');
if (isset($CFG->maxbytes)) {
$choices = get_max_upload_sizes($CFG->maxbytes);
$choices = get_max_upload_sizes($CFG->maxbytes, 0, 0, $currentmaxbytes);
} else {
$choices = get_max_upload_sizes();
$choices = get_max_upload_sizes(0, 0, 0, $currentmaxbytes);
}
$temp->add(new admin_setting_configselect('moodlecourse/maxbytes', get_string('maximumupload'), get_string('coursehelpmaximumupload'), key($choices), $choices));
+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',
+1 -1
View File
@@ -29,7 +29,7 @@ if (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode !== 'off')
new admin_externalpage(
'mnetpeer' . $host->id,
$host->name,
$CFG->wwwroot . '/admin/mnet/peers.php?step=update&hostid=' . $host->id,
$CFG->wwwroot . '/'.$CFG->admin.'/mnet/peers.php?step=update&hostid=' . $host->id,
'moodle/site:config'
)
);
+1
View File
@@ -150,6 +150,7 @@ if ($hassiteconfig
'institution' => get_string('institution'),
)));
$temp->add(new admin_setting_configcheckbox('enablegravatar', get_string('enablegravatar', 'admin'), get_string('enablegravatar_help', 'admin'), 0));
$temp->add(new admin_setting_configtext('gravatardefaulturl', get_string('gravatardefaulturl', 'admin'), get_string('gravatardefaulturl_help', 'admin'), 'mm'));
}
$ADMIN->add('roles', $temp);
+4 -2
View File
@@ -9,6 +9,9 @@
$zone = clean_param($zone, PARAM_PATH);
}
$PAGE->set_url('/admin/timezone.php');
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
@@ -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);
@@ -42,7 +44,7 @@
$timezones = get_list_of_timezones();
echo '<center><form action="timezone.php" method="post">';
echo "$strusers ($strall): ";
echo html_writer::label($strusers . ' (' . $strall . '): ', 'menuzone');
echo html_writer::select($timezones, "zone", $current, array('99'=>get_string("serverlocaltime")));
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />";
echo '<input type="submit" value="'.s($strsavechanges).'" />';
+1 -1
View File
@@ -121,7 +121,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();
+1 -1
View File
@@ -488,7 +488,7 @@ class tool_customlang_translator implements renderable {
list($insql, $inparams) = $DB->get_in_or_equal($filter->component, SQL_PARAMS_NAMED);
$csql = "SELECT COUNT(*)";
$fsql = "SELECT s.id, s.*, c.name AS component";
$fsql = "SELECT s.*, c.name AS component";
$sql = " FROM {tool_customlang_components} c
JOIN {tool_customlang} s ON s.componentid = c.id
WHERE s.lang = :lang
+4
View File
@@ -67,3 +67,7 @@
#page-admin-tool-customlang-index .continuebutton {
margin-top: 1em;
}
.path-admin-tool-customlang #translator .standard.master.cell.c2 {
word-break: break-all;
}
+2 -2
View File
@@ -287,7 +287,7 @@ $url = new moodle_url('/admin/tool/langimport/index.php', array('mode' => DELETI
echo html_writer::start_tag('td', array('valign' => 'top'));
echo html_writer::start_tag('form', array('id' => 'uninstallform', 'action' => $url->out(), 'method' => 'post'));
echo html_writer::start_tag('fieldset');
echo html_writer::label(get_string('installedlangs', 'tool_langimport'), 'uninstalllang');
echo html_writer::label(get_string('installedlangs', 'tool_langimport'), 'menuuninstalllang');
echo html_writer::empty_tag('br');
echo html_writer::select($installedlangs, 'uninstalllang', '', false, array('size' => 15));
echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey()));
@@ -315,7 +315,7 @@ if (!empty($options)) {
$url = new moodle_url('/admin/tool/langimport/index.php', array('mode' => INSTALLATION_OF_SELECTED_LANG));
echo html_writer::start_tag('form', array('id' => 'installform', 'action' => $url->out(), 'method' => 'post'));
echo html_writer::start_tag('fieldset');
echo html_writer::label(get_string('availablelangs','install'), 'pack');
echo html_writer::label(get_string('availablelangs','install'), 'menupack');
echo html_writer::empty_tag('br');
echo html_writer::select($options, 'pack[]', '', false, array('size' => 15, 'multiple' => 'multiple'));
echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey()));
+1 -1
View File
@@ -142,7 +142,7 @@ if (isset($script)) {
// The flexitable that will root listings
$table = new xhprof_table_sql('profiling-list-table');
$baseurl = $CFG->wwwroot . '/admin/tool/profiling/index.php';
$baseurl = $CFG->wwwroot . '/'.$CFG->admin.'/tool/profiling/index.php';
// Check if we are listing all or some URL ones
$sqlconditions = '';
+1
View File
@@ -96,6 +96,7 @@ echo $OUTPUT->box_start(); // The forms section at the top
<form method="post" action="index.php">
<div>
<label class="accesshide" for="keyword_el"><?php print_string('spamkeyword', 'tool_spamcleaner') ?></label>
<input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" />
<input type="hidden" name="sesskey" value="<?php echo sesskey();?>" />
<input type="submit" value="<?php echo get_string('spamsearch', 'tool_spamcleaner')?>" />
@@ -38,6 +38,7 @@ $string['spamfromcomments'] = 'From comments:';
$string['spamfrommessages'] = 'From messages:';
$string['spamfromforumpost'] = 'From forum post:';
$string['spaminvalidresult'] = 'Unknown but invalid result';
$string['spamkeyword'] = 'Keyword';
$string['spamoperation'] = 'Operation';
$string['spamresult'] = 'Results of searching user profiles containing:';
$string['spamsearch'] = 'Search for these keywords';
+7 -1
View File
@@ -285,7 +285,11 @@ if ($formdata = $mform2->is_cancelled()) {
$userserrors++;
continue;
}
if ($user->username !== clean_param($user->username, PARAM_USERNAME)) {
$upt->track('status', get_string('invalidusername', 'error', 'username'), 'error');
$upt->track('username', $errorstr, 'error');
$userserrors++;
}
if ($existinguser = $DB->get_record('user', array('username'=>$user->username, 'mnethostid'=>$CFG->mnet_localhost_id))) {
$upt->track('id', $existinguser->id, 'normal', false);
}
@@ -853,6 +857,8 @@ if ($formdata = $mform2->is_cancelled()) {
if ($duration > 0) { // sanity check
$timeend = $today + $duration;
}
} else if ($manualcache[$courseid]->enrolperiod > 0) {
$timeend = $today + $manualcache[$courseid]->enrolperiod;
}
$manual->enrol_user($manualcache[$courseid], $user->id, $rid, $today, $timeend);
@@ -115,7 +115,7 @@ class new_table_from_mysql extends XMLDBAction {
$o.= ' <input type="hidden" name ="postaction" value="edit_table" />';
$o.= ' <input type="hidden" name ="sesskey" value="' . sesskey() . '" />';
$o.= ' <table id="formelements" class="boxaligncenter" cellpadding="5">';
$o.= ' <tr><td><label for="table" accesskey="t">' . $this->str['createtable'] .' </label>' . html_writer::select($selecttables, 'table') . '<label for="after" accesskey="a">' . $this->str['aftertable'] . ' </label>' .html_writer::select($aftertables, 'after') . '</td></tr>';
$o.= ' <tr><td><label for="menutable" accesskey="t">' . $this->str['createtable'] .' </label>' . html_writer::select($selecttables, 'table') . '<label for="menuafter" accesskey="a">' . $this->str['aftertable'] . ' </label>' .html_writer::select($aftertables, 'after') . '</td></tr>';
$o.= ' <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['create'] . '" /></td></tr>';
$o.= ' <tr><td colspan="2" align="center"><a href="index.php?action=edit_xml_file&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a></td></tr>';
$o.= ' </table>';
@@ -116,7 +116,7 @@ class view_structure_php extends XMLDBAction {
$o.= ' <input type="hidden" name ="dir" value="' . str_replace($CFG->dirroot, '', $dirpath) . '" />';
$o.= ' <input type="hidden" name ="action" value="view_structure_php" />';
$o.= ' <table id="formelements" class="boxaligncenter" cellpadding="5">';
$o.= ' <tr><td><label for="action" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="table" accesskey="t">' . $this->str['selecttable'] . ' </label>' .html_writer::select($poptables, 'table', $tableparam, false) . '</td></tr>';
$o.= ' <tr><td><label for="menucommand" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="menutable" accesskey="t">' . $this->str['selecttable'] . ' </label>' .html_writer::select($poptables, 'table', $tableparam, false) . '</td></tr>';
$o.= ' <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['view'] . '" /></td></tr>';
$o.= ' </table>';
$o.= '</div></form>';
@@ -167,7 +167,7 @@ class view_table_php extends XMLDBAction {
$o.= ' <input type="hidden" name ="table" value="' . s($tableparam) . '" />';
$o.= ' <input type="hidden" name ="action" value="view_table_php" />';
$o.= ' <table id="formelements" class="boxaligncenter" cellpadding="5">';
$o.= ' <tr><td><label for="action" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="fieldkeyindex" accesskey="f">' . $this->str['selectfieldkeyindex'] . ' </label>' .html_writer::select($popfields, 'fieldkeyindex', $origfieldkeyindexparam, false) . '</td></tr>';
$o.= ' <tr><td><label for="menucommand" accesskey="c">' . $this->str['selectaction'] .' </label>' . html_writer::select($popcommands, 'command', $commandparam, false) . '&nbsp;<label for="menufieldkeyindex" accesskey="f">' . $this->str['selectfieldkeyindex'] . ' </label>' .html_writer::select($popfields, 'fieldkeyindex', $origfieldkeyindexparam, false) . '</td></tr>';
$o.= ' <tr><td colspan="2" align="center"><input type="submit" value="' .$this->str['view'] . '" /></td></tr>';
$o.= ' </table>';
$o.= '</div></form>';
+12
View File
@@ -70,6 +70,7 @@ $string['documentationintro'] = 'This documentation is generated automatically f
$string['down'] = 'Down';
$string['duplicate'] = 'Duplicate';
$string['duplicatefieldname'] = 'Another field with that name exists';
$string['duplicatefieldsused'] = 'Duplicate fields used';
$string['duplicatekeyname'] = 'Another key with that name exists';
$string['duplicatetablename'] = 'Another table with that name exists';
$string['edit'] = 'Edit';
@@ -89,6 +90,7 @@ $string['field'] = 'Field';
$string['fieldnameempty'] = 'Name field empty';
$string['fields'] = 'Fields';
$string['fieldsnotintable'] = 'Field doesn\'t exist in table';
$string['fieldsusedinindex'] = 'This field is used as index';
$string['fieldsusedinkey'] = 'This field is used as key.';
$string['filenotwriteable'] = 'File not writeable';
$string['fkviolationdetails'] = 'Foreign key {$a->keyname} on table {$a->tablename} is violated by {$a->numviolations} out of {$a->numrows} rows.';
@@ -110,12 +112,17 @@ $string['checkindexes'] = 'Check indexes';
$string['check_indexes'] = 'Look for missing DB indexes';
$string['checkoraclesemantics'] = 'Check semantics';
$string['check_oracle_semantics'] = 'Look for incorrect length semantics';
$string['duplicateindexname'] = 'Duplicate index name';
$string['incorrectfieldname'] = 'Incorrect name';
$string['index'] = 'Index';
$string['indexes'] = 'Indexes';
$string['indexnameempty'] = 'Index name is empty';
$string['integerincorrectlength'] = 'Incorrect length for integer field';
$string['incorrectindexname'] = 'Incorrect index name';
$string['incorrectkeyname'] = 'Incorrect key name';
$string['incorrecttablename'] = 'Incorrect table name';
$string['key'] = 'Key';
$string['keynameempty'] = 'The key name cannot be empty';
$string['keys'] = 'Keys';
$string['listreservedwords'] = 'List of Reserved Words<br />(used to keep <a href="http://docs.moodle.org/en/XMLDB_reserved_words" target="_blank">XMLDB_reserved_words</a> updated)';
$string['load'] = 'Load';
@@ -133,8 +140,11 @@ $string['newkey'] = 'New key';
$string['newtable'] = 'New table';
$string['newtablefrommysql'] = 'New table from MySQL';
$string['new_table_from_mysql'] = 'New table from MySQL';
$string['nofieldsspecified'] = 'No fields specified';
$string['nomasterprimaryuniquefound'] = 'The column(s) that you foreign key references must be included in a primary or unique KEY in the referenced table. Note, the column being in a UNIQUE INDEX is not good enough.';
$string['nomissingindexesfound'] = 'No missing indexes have been found, your DB doesn\'t need further actions.';
$string['noreffieldsspecified'] = 'No reference fields specified';
$string['noreftablespecified'] = 'Specified reference table not found';
$string['noviolatedforeignkeysfound'] = 'No violated foreign keys found';
$string['nowrongdefaultsfound'] = 'No inconsistent default values have been found, your DB does not need further actions.';
$string['nowrongintsfound'] = 'No wrong integers have been found, your DB doesn\'t need further actions.';
@@ -145,6 +155,7 @@ $string['pendingchanges'] = 'Note: You have performed changes to this file. They
$string['pendingchangescannotbesaved'] = 'There are changes in this file but they cannot be saved! Please verify that both the directory and the "install.xml" within it have write permissions for the web server.';
$string['pendingchangescannotbesavedreload'] = 'There are changes in this file but they cannot be saved! Please verify that both the directory and the "install.xml" within it have write permissions for the web server. Then reload this page and you should be able to save those changes.';
$string['pluginname'] = 'XMLDB editor';
$string['primarykeyonlyallownotnullfields'] = 'Primary keys cannot be null';
$string['reserved'] = 'Reserved';
$string['reservedwords'] = 'Reserved words';
$string['revert'] = 'Revert';
@@ -181,6 +192,7 @@ $string['wrong'] = 'Wrong';
$string['wrongdefaults'] = 'Wrong defaults found';
$string['wrongints'] = 'Wrong integers found';
$string['wronglengthforenum'] = 'Incorrect length for enum field';
$string['wrongnumberofreffields'] = 'Wrong number of reference fields';
$string['wrongreservedwords'] = 'Currently used reserved words<br />(note that table names aren\'t important if using $CFG->prefix)';
$string['wrongoraclesemantics'] = 'Wrong Oracle BYTE semantics found';
$string['yesmissingindexesfound'] = 'Some missing indexes have been found in your DB. Here are their details and the needed SQL statements to be executed with your favourite SQL interface to create all them (don\'t forget to backup your data before doing that).<br /><br />After doing that, it\'s highly recommended to execute this utility again to check that no more missing indexes are found.';
+2 -2
View File
@@ -81,7 +81,7 @@ function user_download_ods($fields) {
$worksheet = array();
$worksheet[0] =& $workbook->add_worksheet('');
$worksheet[0] = $workbook->add_worksheet('');
$col = 0;
foreach ($fields as $fieldname) {
$worksheet[0]->write(0, $col, $fieldname);
@@ -119,7 +119,7 @@ function user_download_xls($fields) {
$worksheet = array();
$worksheet[0] =& $workbook->add_worksheet('');
$worksheet[0] = $workbook->add_worksheet('');
$col = 0;
foreach ($fields as $fieldname) {
$worksheet[0]->write(0, $col, $fieldname);
+1 -1
View File
@@ -97,7 +97,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)) {
if (!is_siteadmin($alloweduser->id) and array_key_exists($alloweduser->id, $usersmissingcaps)) {
$alloweduser->missingcapabilities = implode(', ', $usersmissingcaps[$alloweduser->id]);
}
}
+14 -14
View File
@@ -94,9 +94,9 @@ $yesno = array( get_string('no'), get_string('yes') );
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_hostname_key', 'auth_cas') ?>:</td>
<td align="right"><label for="hostname"><?php print_string('auth_cas_hostname_key', 'auth_cas') ?>: </label></td>
<td>
<input name="hostname" type="text" size="30" value="<?php echo $config->hostname ?>" />
<input name="hostname" id="hostname" type="text" size="30" value="<?php echo $config->hostname ?>" />
<?php if (isset($err['hostname'])) { echo $OUTPUT->error_text($err['hostname']); } ?>
</td>
<td>
@@ -105,10 +105,10 @@ $yesno = array( get_string('no'), get_string('yes') );
</tr>
<tr valign="top" class="required">
<td align="right">
<?php print_string('auth_cas_baseuri_key', 'auth_cas') ?>:
<label for="baseuri"><?php print_string('auth_cas_baseuri_key', 'auth_cas') ?>: </label>
</td>
<td>
<input name="baseuri" type="text" size="30" value="<?php echo $config->baseuri ?>" />
<input name="baseuri" id="baseuri" type="text" size="30" value="<?php echo $config->baseuri ?>" />
<?php if (isset($err['baseuri'])) { echo $OUTPUT->error_text($err['baseuri']); } ?>
</td>
<td>
@@ -117,10 +117,10 @@ $yesno = array( get_string('no'), get_string('yes') );
</tr>
<tr valign="top" class="required">
<td align="right">
<?php print_string('auth_cas_port_key', 'auth_cas') ?>:
<label for="port"><?php print_string('auth_cas_port_key', 'auth_cas') ?>: </label>
</td>
<td>
<input name="port" type="text" size="30" value="<?php echo $config->port ?>" />
<input name="port" id="port" type="text" size="30" value="<?php echo $config->port ?>" />
<?php if (isset($err['port'])) { echo $OUTPUT->error_text($err['port']); } ?>
</td>
<td>
@@ -129,7 +129,7 @@ $yesno = array( get_string('no'), get_string('yes') );
</tr>
<tr valign="top" class="required">
<td align="right">
<?php print_string('auth_cas_casversion', 'auth_cas') ?>:
<?php echo html_writer::label(get_string('auth_cas_casversion', 'auth_cas'), 'menucasversion'); ?>:
</td>
<td>
<?php
@@ -145,7 +145,7 @@ $yesno = array( get_string('no'), get_string('yes') );
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_language_key', 'auth_cas') ?>:</td>
<td align="right"><?php echo html_writer::label(get_string('auth_cas_language_key', 'auth_cas'), 'menulanguage'); ?>:</td>
<td>
<?php echo html_writer::select($CASLANGUAGES, 'language', $config->language, false); ?>
</td>
@@ -155,7 +155,7 @@ $yesno = array( get_string('no'), get_string('yes') );
</tr>
<tr valign="top" class="required">
<td align="right">
<?php print_string('auth_cas_proxycas_key', 'auth_cas') ?>:
<?php echo html_writer::label(get_string('auth_cas_proxycas_key', 'auth_cas'), 'menuproxycas'); ?>:
</td>
<td>
<?php echo html_writer::select($yesno, 'proxycas', $config->proxycas, false); ?>
@@ -165,7 +165,7 @@ $yesno = array( get_string('no'), get_string('yes') );
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_logoutcas_key', 'auth_cas') ?>:</td>
<td align="right"><?php echo html_writer::label(get_string('auth_cas_logoutcas_key', 'auth_cas'), 'menulogoutcas'); ?>:</td>
<td>
<?php echo html_writer::select($yesno, 'logoutcas', $config->logoutcas, false); ?>
</td>
@@ -174,7 +174,7 @@ $yesno = array( get_string('no'), get_string('yes') );
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_multiauth_key', 'auth_cas') ?>:</td>
<td align="right"><?php echo html_writer::label(get_string('auth_cas_multiauth_key', 'auth_cas'), 'menumultiauth'); ?>:</td>
<td>
<?php echo html_writer::select($yesno, 'multiauth', $config->multiauth, false); ?>
</td>
@@ -183,7 +183,7 @@ $yesno = array( get_string('no'), get_string('yes') );
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_certificate_check_key', 'auth_cas') ?>:</td>
<td align="right"><?php echo html_writer::label(get_string('auth_cas_certificate_check_key', 'auth_cas'), 'menucertificate_check'); ?>:</td>
<td>
<?php echo html_writer::select($yesno, 'certificate_check', $config->certificate_check, false); ?>
</td>
@@ -192,7 +192,7 @@ $yesno = array( get_string('no'), get_string('yes') );
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_certificate_path_key', 'auth_cas') ?>:</td>
<td align="right"><label for="certificate_path"><?php print_string('auth_cas_certificate_path_key', 'auth_cas') ?>: </label></td>
<td>
<input name="certificate_path" id="certificate_path" type="text" size="30" value="<?php echo $config->certificate_path ?>" />
<?php if (isset($err['certificate_path'])) echo $OUTPUT->error_text($err['certificate_path']); ?>
@@ -219,7 +219,7 @@ $yesno = array( get_string('no'), get_string('yes') );
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><label for="menuversion"><?php print_string('auth_ldap_version_key', 'auth_ldap') ?></label></td>
<td align="right"><label for="menuldap_version"><?php print_string('auth_ldap_version_key', 'auth_ldap') ?></label></td>
<td>
<?php
$versions = array();
+21 -7
View File
@@ -65,7 +65,7 @@ class auth_plugin_db extends auth_plugin_base {
$authdb->Close();
// user exists externally
// check username/password internally
if ($user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id))) {
if ($user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id, 'auth'=>$this->authtype))) {
return validate_internal_user_password($user, $password);
}
} else {
@@ -191,8 +191,16 @@ class auth_plugin_db extends auth_plugin_base {
* @return bool True on success
*/
function user_update_password($user, $newpassword) {
global $DB;
if ($this->is_internal()) {
return update_internal_user_password($user, $newpassword);
$puser = $DB->get_record('user', array('id'=>$user->id), '*', MUST_EXIST);
if (update_internal_user_password($puser, $newpassword)) {
$user->password = $puser->password;
return true;
} else {
return false;
}
} else {
// we should have never been called!
return false;
@@ -346,7 +354,7 @@ class auth_plugin_db extends auth_plugin_base {
if ($verbose) {
mtrace(get_string('auth_dbuserstoadd','auth_db',count($add_users)));
}
$transaction = $DB->start_delegated_transaction();
// Do not use transactions around this foreach, we want to skip problematic users, not revert everything.
foreach($add_users as $user) {
$username = $user;
$user = $this->get_userinfo_asobj($user);
@@ -372,9 +380,16 @@ class auth_plugin_db extends auth_plugin_base {
} else {
$user->timecreated = time();
$user->timemodified = $user->timecreated;
$id = $DB->insert_record ('user', $user); // it is truly a new user
if ($verbose) {
mtrace("\t".get_string('auth_dbinsertuser', 'auth_db', array('name'=>$user->username, 'id'=>$id)));
try {
$id = $DB->insert_record('user', $user); // it is truly a new user
if ($verbose) {
mtrace("\t".get_string('auth_dbinsertuser', 'auth_db', array('name'=>$user->username, 'id'=>$id)));
}
} catch (moodle_exception $e) {
if ($verbose) {
mtrace("\t".get_string('auth_dbinsertusererror', 'auth_db', $user->username));
}
continue;
}
// if relevant, tag for password generation
if ($this->is_internal()) {
@@ -383,7 +398,6 @@ class auth_plugin_db extends auth_plugin_base {
}
}
}
$transaction->allow_commit();
unset($add_users); // free mem
}
return 0;
+3 -1
View File
@@ -132,7 +132,9 @@ class auth_plugin_email extends auth_plugin_base {
} else if ($user->secret == $confirmsecret) { // They have provided the secret key to get in
$DB->set_field("user", "confirmed", 1, array("id"=>$user->id));
$DB->set_field("user", "firstaccess", time(), array("id"=>$user->id));
if ($user->firstaccess == 0) {
$DB->set_field("user", "firstaccess", time(), array("id"=>$user->id));
}
return AUTH_CONFIRM_OK;
}
} else {
+1 -1
View File
@@ -23,7 +23,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['auth_emaildescription'] = 'Email confirmation is the default authentication method. When the user signs up, choosing their own new username and password, a confirmation email is sent to the user\'s email address. This email contains a secure link to a page where the user can confirm their account. Future logins just check the username and password against the stored values in the Moodle database.';
$string['auth_emaildescription'] = '<p>Email-based self-registration enables a user to create their own account via a \'Create new account\' button on the login page. The user then receives an email containing a secure link to a page where they can confirm their account. Future logins just check the username and password against the stored values in the Moodle database.</p><p>Note: In addition to enabling the plugin, email-based self-registration must also be selected from the self registration drop-down menu on the \'Manage authentication\' page.</p>';
$string['auth_emailnoemail'] = 'Tried to send you an email but failed!';
$string['auth_emailrecaptcha'] = 'Adds a visual/audio confirmation form element to the signup page for email self-registering users. This protects your site against spammers and contributes to a worthwhile cause. See http://www.google.com/recaptcha/learnmore for more details. <br /><em>PHP cURL extension is required.</em>';
$string['auth_emailrecaptcha_key'] = 'Enable reCAPTCHA element';
+12 -12
View File
@@ -27,9 +27,9 @@
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string("auth_fchost_key", "auth_fc") ?>:</td>
<td align="right"><label for="host"><?php print_string("auth_fchost_key", "auth_fc") ?>:</label></td>
<td>
<input name="host" type="text" size="30" value="<?php echo $config->host?>" />
<input name="host" id="host" type="text" size="30" value="<?php echo $config->host?>" />
<?php if (isset($err["host"])) echo $OUTPUT->error_text($err["host"]); ?>
</td>
<td>
@@ -38,9 +38,9 @@
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string("auth_fcfppport_key", "auth_fc") ?>:</td>
<td align="right"><label for="fppport"><?php print_string("auth_fcfppport_key", "auth_fc") ?>: </label></td>
<td>
<input name="fppport" type="text" size="30" value="<?php echo $config->fppport?>" />
<input name="fppport" id="fppport" type="text" size="30" value="<?php echo $config->fppport?>" />
<?php if (isset($err["fppport"])) echo $OUTPUT->error_text($err["host"]); ?>
</td>
<td>
@@ -49,9 +49,9 @@
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string("auth_fcuserid_key", "auth_fc") ?>:</td>
<td align="right"><label for="userid"><?php print_string("auth_fcuserid_key", "auth_fc") ?>:</label></td>
<td>
<input name="userid" type="text" size="30" maxlength="15" value="<?php echo $config->userid?>" />
<input name="userid" id="userid" type="text" size="30" maxlength="15" value="<?php echo $config->userid?>" />
<?php if (isset($err["userid"])) echo $OUTPUT->error_text($err["userid"]); ?>
</td>
<td>
@@ -59,9 +59,9 @@
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string("auth_fcpasswd_key", "auth_fc") ?>:</td>
<td align="right"><label for="passwd"><?php print_string("auth_fcpasswd_key", "auth_fc") ?>:</label></td>
<td>
<input name="passwd" type="password" size="30" maxlength="12" value="<?php echo $config->passwd?>" />
<input name="passwd" id="passwd" type="password" size="30" maxlength="12" value="<?php echo $config->passwd?>" />
<?php if (isset($err["passwd"])) echo $OUTPUT->error_text($err["passwd"]); ?>
</td>
<td>
@@ -70,9 +70,9 @@
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string("auth_fccreators_key", "auth_fc") ?>:</td>
<td align="right"><label for="creators"><?php print_string("auth_fccreators_key", "auth_fc") ?>: </label></td>
<td>
<input name="creators" type="text" size="30" value="<?php echo $config->creators?>" />
<input name="creators" id="creators" type="text" size="30" value="<?php echo $config->creators?>" />
<?php if (isset($err["creators"])) echo $OUTPUT->error_text($err["creators"]); ?>
</td>
<td>
@@ -81,9 +81,9 @@
</tr>
<tr valign="top">
<td align="right"><?php print_string('auth_fcchangepasswordurl', 'auth_fc') ?>: </td>
<td align="right"><label for="changepasswordurl"><?php print_string('auth_fcchangepasswordurl', 'auth_fc') ?>: </label></td>
<td>
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<?php
if (isset($err['changepasswordurl'])) {
+7 -7
View File
@@ -18,9 +18,9 @@ if (!isset($config->changepasswordurl)) {
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_imaphost_key', 'auth_imap') ?>: </td>
<td align="right"><label for="host"><?php print_string('auth_imaphost_key', 'auth_imap') ?>: </label></td>
<td>
<input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
<input name="host" id="host" type="text" size="30" value="<?php echo $config->host ?>" />
<?php
if (isset($err['host'])) {
@@ -40,7 +40,7 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_imaptype_key', 'auth_imap') ?>: </td>
<td align="right"><?php echo html_writer::label(get_string('auth_imaptype_key', 'auth_imap'), 'menutype'); ?>: </td>
<td>
<?php
@@ -56,9 +56,9 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_imapport_key', 'auth_imap') ?>: </td>
<td align="right"><label for="port"><?php print_string('auth_imapport_key', 'auth_imap') ?>: </label></td>
<td>
<input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
<input name="port" id="port" type="text" size="6" value="<?php echo $config->port ?>" />
<?php
if (isset($err['port'])) {
@@ -71,9 +71,9 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top">
<td align="right"><?php print_string('auth_imapchangepasswordurl_key', 'auth_imap') ?>: </td>
<td align="right"><label for="changepasswordurl"><?php print_string('auth_imapchangepasswordurl_key', 'auth_imap') ?>: </label></td>
<td>
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<?php
if (isset($err['changepasswordurl'])) {
+4 -2
View File
@@ -550,7 +550,9 @@ class auth_plugin_ldap extends auth_plugin_base {
return AUTH_CONFIRM_FAIL;
}
$DB->set_field('user', 'confirmed', 1, array('id'=>$user->id));
$DB->set_field('user', 'firstaccess', time(), array('id'=>$user->id));
if ($user->firstaccess == 0) {
$DB->set_field('user', 'firstaccess', time(), array('id'=>$user->id));
}
return AUTH_CONFIRM_OK;
}
} else {
@@ -689,7 +691,7 @@ class auth_plugin_ldap extends auth_plugin_base {
/// User removal
// Find users in DB that aren't in ldap -- to be removed!
// this is still not as scalable (but how often do we mass delete?)
if ($this->config->removeuser !== AUTH_REMOVEUSER_KEEP) {
if ($this->config->removeuser != AUTH_REMOVEUSER_KEEP) {
$sql = 'SELECT u.*
FROM {user} u
LEFT JOIN {tmp_extuser} e ON (u.username = e.username AND u.mnethostid = e.mnethostid)
+1 -1
View File
@@ -118,7 +118,7 @@ $yesno = array(get_string('no'), get_string('yes'));
</tr>
<tr valign="top" class="required">
<td align="right">
<label for="menuversion"><?php print_string('auth_ldap_version_key', 'auth_ldap') ?></label>
<label for="menuldap_version"><?php print_string('auth_ldap_version_key', 'auth_ldap') ?></label>
</td>
<td>
<?php
+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');
}
}
+3 -1
View File
@@ -170,7 +170,9 @@ class auth_plugin_manual extends auth_plugin_base {
return AUTH_CONFIRM_ALREADY;
} else {
$DB->set_field("user", "confirmed", 1, array("id"=>$user->id));
$DB->set_field("user", "firstaccess", time(), array("id"=>$user->id));
if ($user->firstaccess == 0) {
$DB->set_field("user", "firstaccess", time(), array("id"=>$user->id));
}
return AUTH_CONFIRM_OK;
}
} else {
+3 -3
View File
@@ -22,9 +22,9 @@ if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict'
<table cellspacing="0" cellpadding="5">
<tr valign="top" class="required">
<td align="right"><?php print_string('rpc_negotiation_timeout', 'auth_mnet'); ?>: </td>
<td align="right"><label for="rpc_negotiation_timeout"><?php print_string('rpc_negotiation_timeout', 'auth_mnet'); ?>: </label></td>
<td>
<input name="rpc_negotiation_timeout" type="text" size="5" value="<?php echo $config->rpc_negotiation_timeout ?>" />
<input name="rpc_negotiation_timeout" id="rpc_negotiation_timeout" type="text" size="5" value="<?php echo $config->rpc_negotiation_timeout ?>" />
<?php
if (isset($err['rpc_negotiation_timeout'])) {
@@ -45,7 +45,7 @@ if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict'
<?php /*
See MDL-21327 for why this is commented out
<tr valign="top" class="required">
<td align="right"><?php print_string('auto_add_remote_users', 'auth_mnet'); ?>: </td>
<td align="right"><?php echo html_writer::label(get_string('auto_add_remote_users', 'auth_mnet'), 'menuauto_add_remote_users'); ?>: </td>
<td>
<?php
+6 -6
View File
@@ -15,9 +15,9 @@ if (!isset($config->changepasswordurl)) {
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_nntphost_key', 'auth_nntp') ?>: </td>
<td align="right"><label for="host"><?php print_string('auth_nntphost_key', 'auth_nntp') ?>: </label></td>
<td>
<input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
<input name="host" id="host" type="text" size="30" value="<?php echo $config->host ?>" />
<?php
if (isset($err["host"])) {
@@ -37,9 +37,9 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_nntpport_key', 'auth_nntp') ?>: </td>
<td align="right"><label for="port"><?php print_string('auth_nntpport_key', 'auth_nntp') ?>: </label></td>
<td>
<input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
<input name="port" id="port" type="text" size="6" value="<?php echo $config->port ?>" />
<?php
if (isset($err["port"])) {
@@ -52,9 +52,9 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top">
<td align="right"><?php print_string('auth_nntpchangepasswordurl_key', 'auth_nntp') ?>: </td>
<td align="right"><label for="changepasswordurl"><?php print_string('auth_nntpchangepasswordurl_key', 'auth_nntp') ?>: </label></td>
<td>
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<?php
if (isset($err['changepasswordurl'])) {
+9 -9
View File
@@ -21,9 +21,9 @@ if (!isset($config->changepasswordurl)) {
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_pop3host_key', 'auth_pop3') ?>: </td>
<td align="right"><label for="host"><?php print_string('auth_pop3host_key', 'auth_pop3') ?>: </label></td>
<td>
<input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
<input name="host" id="host" type="text" size="30" value="<?php echo $config->host ?>" />
<?php
if (isset($err['host'])) {
@@ -43,7 +43,7 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_pop3type_key', 'auth_pop3') ?>: </td>
<td align="right"><?php echo html_writer::label(get_string('auth_pop3type_key', 'auth_pop3'), 'menutype'); ?>: </td>
<td>
<?php
@@ -59,9 +59,9 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_pop3port_key', 'auth_pop3') ?>: </td>
<td align="right"><label for="port"><?php print_string('auth_pop3port_key', 'auth_pop3') ?>: </label></td>
<td>
<input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
<input name="port" id="port" type="text" size="6" value="<?php echo $config->port ?>" />
<?php
if (isset($err['port'])) {
@@ -74,9 +74,9 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_pop3mailbox_key', 'auth_pop3') ?>: </td>
<td align="right"><label for="mailbox"><?php print_string('auth_pop3mailbox_key', 'auth_pop3') ?>: </label></td>
<td>
<input name="mailbox" type="text" size="6" value="<?php echo $config->mailbox ?>" />
<input name="mailbox" id="mailbox" type="text" size="6" value="<?php echo $config->mailbox ?>" />
<?php
if (isset($err['mailbox'])) {
@@ -89,9 +89,9 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top">
<td align="right"><?php print_string('auth_pop3changepasswordurl_key', 'auth_pop3') ?>: </td>
<td align="right"><label for="changepasswordurl"><?php print_string('auth_pop3changepasswordurl_key', 'auth_pop3') ?>: </label></td>
<td>
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<?php
if (isset($err['changepasswordurl'])) {
+9 -9
View File
@@ -30,9 +30,9 @@ if (!isset($config->changepasswordurl)) {
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top">
<td align="right"><?php print_string('auth_radiushost_key', 'auth_radius') ?>: </td>
<td align="right"><label for="host"><?php print_string('auth_radiushost_key', 'auth_radius') ?>: </label></td>
<td>
<input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
<input name="host" id="host" type="text" size="30" value="<?php echo $config->host ?>" />
<?php
if (isset($err['host'])) {
@@ -45,9 +45,9 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top">
<td align="right"><?php print_string('auth_radiusnasport_key', 'auth_radius') ?>: </td>
<td align="right"><label for="nasport"><?php print_string('auth_radiusnasport_key', 'auth_radius') ?>: </label></td>
<td>
<input name="nasport" type="text" size="6" value="<?php echo $config->nasport ?>" />
<input name="nasport" id="nasport" type="text" size="6" value="<?php echo $config->nasport ?>" />
<?php
if (isset($err['nasport'])) {
@@ -60,7 +60,7 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top" >
<td align="right"><?php print_string('auth_radiustype_key', 'auth_radius') ?>: </td>
<td align="right"><?php echo html_writer::label(get_string('auth_radiustype_key', 'auth_radius'), 'menuradiustype'); ?>: </td>
<td>
<?php
@@ -82,9 +82,9 @@ if (!isset($config->changepasswordurl)) {
<tr valign="top" >
<td align="right"><?php print_string('auth_radiussecret_key', 'auth_radius') ?>: </td>
<td align="right"><label for="secret"><?php print_string('auth_radiussecret_key', 'auth_radius') ?>: </label></td>
<td>
<input name="secret" type="text" size="6" value="<?php echo $config->secret ?>" />
<input name="secret" id="secret" type="text" size="6" value="<?php echo $config->secret ?>" />
<?php
if (isset($err['secret'])) {
@@ -97,9 +97,9 @@ if (!isset($config->changepasswordurl)) {
</tr>
<tr valign="top">
<td align="right"><?php print_string('auth_radiuschangepasswordurl_key', 'auth_radius') ?>: </td>
<td align="right"><label for="changepasswordurl"><?php print_string('auth_radiuschangepasswordurl_key', 'auth_radius') ?>: </label></td>
<td>
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<?php
if (isset($err['changepasswordurl'])) {
+12 -12
View File
@@ -20,17 +20,17 @@
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string("username") ?>:</td>
<td align="right"><label for="user_attribute"><?php print_string("username") ?>: </label></td>
<td>
<input name="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute ?>" />
<input id="user_attribute" name="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute ?>" />
</td>
<td><?php print_string("auth_shib_username_description", "auth_shibboleth") ?></td>
</tr>
<tr valign="top">
<td align="right"><?php print_string("auth_shib_convert_data", "auth_shibboleth") ?>:</td>
<td align="right"><label for="convert_data"><?php print_string("auth_shib_convert_data", "auth_shibboleth") ?>: </label></td>
<td>
<input name="convert_data" type="text" size="30" value="<?php echo $config->convert_data?>" />
<input name="convert_data" id="convert_data" type="text" size="30" value="<?php echo $config->convert_data?>" />
<?php
if ($config->convert_data and $config->convert_data != '' and !is_readable($config->convert_data)) {
@@ -82,9 +82,9 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/
</tr>
<tr valign="top">
<td align="right"><?php print_string("auth_shib_logout_url", "auth_shibboleth") ?>:</td>
<td align="right"><label for="logout_handler"><?php print_string("auth_shib_logout_url", "auth_shibboleth") ?>: </label></td>
<td>
<input name="logout_handler" type="text" size="30" value="<?php
<input name="logout_handler" id="logout_handler" type="text" size="30" value="<?php
if ( isset($config->logout_handler) and !empty($config->logout_handler)){
echo $config->logout_handler;
}
@@ -94,9 +94,9 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/
</tr>
<tr valign="top">
<td align="right"><?php print_string("auth_shib_logout_return_url", "auth_shibboleth") ?>:</td>
<td align="right"><label for="logout_return_url"><?php print_string("auth_shib_logout_return_url", "auth_shibboleth") ?>: </label></td>
<td>
<input name="logout_return_url" type="text" size="30" value="<?php
<input name="logout_return_url" id="logout_return_url" type="text" size="30" value="<?php
if ( isset($config->logout_return_url) and !empty($config->logout_return_url)){
echo $config->logout_return_url;
}
@@ -106,9 +106,9 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/
</tr>
<tr valign="top">
<td align="right"><?php print_string("auth_shib_auth_method", "auth_shibboleth") ?>:</td>
<td align="right"><label for="login_name"><?php print_string("auth_shib_auth_method", "auth_shibboleth") ?>: </label></td>
<td>
<input name="login_name" type="text" size="30" value="<?php
<input name="login_name" id="login_name" type="text" size="30" value="<?php
if ( isset($config->login_name) and !empty($config->login_name)){
echo htmlentities($config->login_name);
} else {
@@ -120,9 +120,9 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/
</tr>
<tr valign="top">
<td align="right"><?php print_string('auth_shib_changepasswordurl', 'auth_shibboleth') ?>: </td>
<td align="right"><label for="changepasswordurl"><?php print_string('auth_shib_changepasswordurl', 'auth_shibboleth') ?>: </label></td>
<td>
<input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
<?php
if (isset($err['changepasswordurl'])) {
+7 -6
View File
@@ -25,7 +25,7 @@
// Check whether Shibboleth is configured properly
if (empty($pluginconfig->user_attribute)) {
print_error('shib_not_set_up_error', 'auth');
print_error('shib_not_set_up_error', 'auth_shibboleth');
}
/// If we can find the Shibboleth attribute, save it in session and return to main login page
@@ -37,9 +37,9 @@
/// Check if the user has actually submitted login data to us
if ($shibbolethauth->user_login($frm->username, $frm->password)) {
if ($shibbolethauth->user_login($frm->username, $frm->password)
&& $user = authenticate_user_login($frm->username, $frm->password)) {
$user = authenticate_user_login($frm->username, $frm->password);
enrol_check_plugins($user);
session_set_user($user);
@@ -83,16 +83,17 @@
}
else {
// For some weird reason the Shibboleth user couldn't be authenticated
// The Shibboleth user couldn't be mapped to a valid Moodle user
print_error('shib_invalid_account_error', 'auth_shibboleth');
}
}
// If we can find any (user independent) Shibboleth attributes but no user
// attributes we probably didn't receive any user attributes
elseif (!empty($_SERVER['HTTP_SHIB_APPLICATION_ID']) || !empty($_SERVER['Shib-Application-ID'])) {
print_error('shib_no_attributes_error', 'auth' , '', '\''.$pluginconfig->user_attribute.'\', \''.$pluginconfig->field_map_firstname.'\', \''.$pluginconfig->field_map_lastname.'\' and \''.$pluginconfig->field_map_email.'\'');
print_error('shib_no_attributes_error', 'auth_shibboleth' , '', '\''.$pluginconfig->user_attribute.'\', \''.$pluginconfig->field_map_firstname.'\', \''.$pluginconfig->field_map_lastname.'\' and \''.$pluginconfig->field_map_email.'\'');
} else {
print_error('shib_not_set_up_error', 'auth');
print_error('shib_not_set_up_error', 'auth_shibboleth');
}
+2 -2
View File
@@ -29,9 +29,9 @@ if ($show_instructions) {
?>
<div class="guestsub">
<p><?php print_string("auth_shibboleth_select_organization", "auth_shibboleth"); ?></p>
<p><label for="idp"><?php print_string("auth_shibboleth_select_organization", "auth_shibboleth"); ?></label></p>
<form action="login.php" method="post" id="guestlogin">
<select name="idp">
<select id="idp" name="idp">
<option value="-" ><?php print_string("auth_shibboleth_select_member", "auth_shibboleth"); ?></option>
<?php
print_idp_list();
@@ -51,6 +51,7 @@ $string['auth_shib_no_organizations_warning'] = 'If you want to use the integrat
$string['auth_shib_only'] = 'Shibboleth only';
$string['auth_shib_only_description'] = 'Check this option if a Shibboleth authentication shall be enforced';
$string['auth_shib_username_description'] = 'Name of the webserver Shibboleth environment variable that shall be used as Moodle username';
$string['shib_invalid_account_error'] = 'You seem to be Shibboleth authenticated but Moodle has no valid account for your username. Your account may not exist or it may have been suspended.';
$string['shib_no_attributes_error'] = 'You seem to be Shibboleth authenticated but Moodle didn\'t receive any user attributes. Please check that your Identity Provider releases the necessary attributes ({$a}) to the Service Provider Moodle is running on or inform the webmaster of this server.';
$string['shib_not_all_attributes_error'] = 'Moodle needs certain Shibboleth attributes which are not present in your case. The attributes are: {$a}<br />Please contact the webmaster of this server or your Identity Provider.';
$string['shib_not_set_up_error'] = 'Shibboleth authentication doesn\'t seem to be set up correctly because no Shibboleth environment variables are present for this page. Please consult the <a href="README.txt">README</a> for further instructions on how to set up Shibboleth authentication or contact the webmaster of this Moodle installation.';
+5 -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');
@@ -63,6 +63,7 @@ $PAGE->https_required();
$loginsite = get_string("loginsite");
$PAGE->set_url('/auth/shibboleth/login.php');
$PAGE->set_context(context_system::instance());
$PAGE->navbar->add($loginsite);
$PAGE->set_title("$site->fullname: $loginsite");
$PAGE->set_heading($site->fullname);
+2 -2
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);
@@ -98,7 +98,7 @@ $PAGE->navbar->add($backup->get_stage_name());
$renderer = $PAGE->get_renderer('core','backup');
echo $OUTPUT->header();
if ($backup->enforce_changed_dependencies()) {
echo $renderer->dependency_notification(get_string('dependenciesenforced','backup'));
debugging('Your settings have been altered due to unmet dependencies', DEBUG_DEVELOPER);
}
echo $renderer->progress_bar($backup->get_progress_bar());
echo $backup->display();
+1 -1
View File
@@ -33,7 +33,7 @@ $currentcontext = required_param('currentcontext', PARAM_INT);
// file parameters
$component = optional_param('component', null, PARAM_COMPONENT);
$filearea = optional_param('filearea', null, PARAM_AREA);
$returnurl = optional_param('returnurl', null, PARAM_URL);
$returnurl = optional_param('returnurl', null, PARAM_LOCALURL);
list($context, $course, $cm) = get_context_info_array($currentcontext);
$filecontext = get_context_instance_by_id($contextid);
+18 -5
View File
@@ -71,6 +71,11 @@ class cc2moodle {
return false;
}
// Before iterate over directories, try to find one manifest at top level
if (file_exists($folder . '/imsmanifest.xml')) {
return $folder . '/imsmanifest.xml';
}
$result = false;
try {
$dirIter = new RecursiveDirectoryIterator($folder, RecursiveDirectoryIterator::KEY_AS_PATHNAME);
@@ -615,15 +620,23 @@ class cc2moodle {
$array_index++;
if ($item->nodeName == "item") {
$identifierref = '';
if ($item->hasAttribute('identifierref')) {
$identifierref = $item->getAttribute('identifierref');
}
$identifierref = $xpath->query('@identifierref', $item);
$identifierref = !empty($identifierref->item(0)->nodeValue) ? $identifierref->item(0)->nodeValue : '';
$title = $xpath->query('imscc:title', $item);
$title = !empty($title->item(0)->nodeValue) ? $title->item(0)->nodeValue : '';
$title = '';
$titles = $xpath->query('imscc:title', $item);
if ($titles->length > 0) {
$title = $titles->item(0)->nodeValue;
}
$cc_type = $this->get_item_cc_type($identifierref);
$moodle_type = $this->convert_to_moodle_type($cc_type);
//Fix the label issue - MDL-33523
if (empty($identifierref) && empty($title)) {
$moodle_type = TYPE_UNKNOWN;
}
}
elseif ($item->nodeName == "resource") {
+2 -2
View File
@@ -262,14 +262,14 @@ class entities {
if (!empty($labels) && ($labels->length > 0)) {
$tname = 'course_files';
$dpath = cc2moodle::$path_to_manifest_folder . DIRECTORY_SEPARATOR . $tname;
$rfpath = 'folder.gif';
$rfpath = 'files.gif';
$fpath = $dpath . DIRECTORY_SEPARATOR . $rfpath;
if (!file_exists($dpath)) {
mkdir($dpath);
}
//copy the folder.gif file
$folder_gif = "{$CFG->dirroot}/pix/f/folder.gif";
$folder_gif = "{$CFG->dirroot}/pix/i/files.gif";
copy($folder_gif, $fpath);
$all_files[] = $rfpath;
}
+3 -3
View File
@@ -62,13 +62,13 @@ class entities11 extends entities {
if (!empty($labels) && ($labels->length > 0)) {
$tname = 'course_files';
$dpath = cc2moodle::$path_to_manifest_folder . DIRECTORY_SEPARATOR . $tname;
$rfpath = 'folder.gif';
$fpath = $dpath . DIRECTORY_SEPARATOR . 'folder.gif';
$rfpath = 'files.gif';
$fpath = $dpath . DIRECTORY_SEPARATOR . 'files.gif';
if (!file_exists($dpath)) {
mkdir($dpath);
}
//copy the folder.gif file
$folder_gif = "{$CFG->dirroot}/pix/f/folder.gif";
$folder_gif = "{$CFG->dirroot}/pix/i/files.gif";
copy($folder_gif, $fpath);
$all_files[] = $rfpath;
}
+1 -1
View File
@@ -52,7 +52,7 @@ class cc_label extends entities {
'[#date_now#]');
$title = isset($instance['title']) && !empty($instance['title']) ? $instance['title'] : 'Untitled';
$content = "<img src=\"$@FILEPHP@$$@SLASH@$"."folder.gif\" alt=\"Folder\" title=\"{$title}\" /> {$title}";
$content = "<img src=\"$@FILEPHP@$$@SLASH@$"."files.gif\" alt=\"Folder\" title=\"{$title}\" /> {$title}";
$replace_values = array($instance['instance'],
self::safexml($title),
self::safexml($content),
+22 -3
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);
@@ -657,9 +660,16 @@ class moodle1_converter extends base_converter {
public static function rewrite_filephp_usage($text, array $files) {
foreach ($files as $file) {
// Expect URLs properly encoded by default.
$parts = explode('/', $file);
$encoded = implode('/', array_map('rawurlencode', $parts));
$fileref = '$@FILEPHP@$'.str_replace('/', '$@SLASH@$', $encoded);
$text = str_replace($fileref.'$@FORCEDOWNLOAD@$', '@@PLUGINFILE@@'.$encoded.'?forcedownload=1', $text);
$text = str_replace($fileref, '@@PLUGINFILE@@'.$encoded, $text);
// Add support for URLs without any encoding.
$fileref = '$@FILEPHP@$'.str_replace('/', '$@SLASH@$', $file);
$text = str_replace($fileref.'$@FORCEDOWNLOAD@$', '@@PLUGINFILE@@'.$file.'?forcedownload=1', $text);
$text = str_replace($fileref, '@@PLUGINFILE@@'.$file, $text);
$text = str_replace($fileref.'$@FORCEDOWNLOAD@$', '@@PLUGINFILE@@'.$encoded.'?forcedownload=1', $text);
$text = str_replace($fileref, '@@PLUGINFILE@@'.$encoded, $text);
}
return $text;
@@ -1205,6 +1215,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);
}
@@ -1264,6 +1278,11 @@ class moodle1_file_manager implements loggable {
*/
public function migrate_directory($rootpath, $relpath='/') {
// Check the trailing slash in the $rootpath
if (substr($rootpath, -1) === '/') {
$rootpath = substr($rootpath, 0, strlen($rootpath) - 1);
}
if (!file_exists($this->basepath.'/'.$rootpath.$relpath)) {
return array();
}
@@ -253,13 +253,15 @@ class moodle1_converter_test extends UnitTestCase {
$fileids = $fileman->get_fileids();
$this->assertIsA($fileids, 'array');
$this->assertEqual(0, count($fileids));
// try to migrate a non-existing directory
$returned = $fileman->migrate_directory('not/existing/directory');
$this->assertIsA($returned, 'array');
$this->assertEqual(0, count($returned));
$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');
@@ -291,6 +293,63 @@ class moodle1_converter_test extends UnitTestCase {
$converter->drop_stash_storage();
}
public function test_migrate_directory() {
// Set-up the file manager.
$converter = convert_factory::get_converter('moodle1', $this->tempdir);
$converter->create_stash_storage();
$contextid = $converter->get_contextid(CONTEXT_MODULE, 32);
$fileman = $converter->get_file_manager($contextid, 'mod_unittest', 'testarea');
// This fileman has not converted anything yet.
$fileids = $fileman->get_fileids();
$this->assertIsA($fileids, 'array');
$this->assertEqual(0, count($fileids));
// Try to migrate a non-existing directory.
$returned = $fileman->migrate_directory('not/existing/directory');
$this->assertIsA($returned, 'array');
$this->assertEqual(0, count($returned));
$fileids = $fileman->get_fileids();
$this->assertIsA($fileids, 'array');
$this->assertEqual(0, count($fileids));
// Try to migrate whole course_files.
$returned = $fileman->migrate_directory('course_files');
$this->assertIsA($returned, 'array');
$this->assertEqual(4, count($returned)); // Two files, two directories.
$fileids = $fileman->get_fileids();
$this->assertIsA($fileids, 'array');
$this->assertEqual(4, count($fileids));
$this->assertTrue(is_file($converter->get_workdir_path().'/files/4e/4ea114b0558f53e3af8dd9afc0e0810a95c2a724'));
// Check the file records.
$files = array();
$filerecordids = $converter->get_stash_itemids('files');
foreach ($filerecordids as $filerecordid) {
$filerecord = $converter->get_stash('files', $filerecordid);
$files[$filerecord['filepath'].$filerecord['filename']] = $filerecord;
}
$this->assertIsA($files['/.'], 'array');
$this->assertIsA($files['/file1.gif'], 'array');
$this->assertIsA($files['/sub1/.'], 'array');
$this->assertIsA($files['/sub1/file2.gif'], 'array');
$this->assertEqual(sha1(''), $files['/.']['contenthash']);
$this->assertEqual(sha1(''), $files['/sub1/.']['contenthash']);
$this->assertEqual('4ea114b0558f53e3af8dd9afc0e0810a95c2a724', $files['/file1.gif']['contenthash']);
$this->assertEqual('4ea114b0558f53e3af8dd9afc0e0810a95c2a724', $files['/sub1/file2.gif']['contenthash']);
$converter->drop_stash_storage();
}
public function test_migrate_directory_with_trailing_slash() {
// Set-up the file manager.
$converter = convert_factory::get_converter('moodle1', $this->tempdir);
$converter->create_stash_storage();
$contextid = $converter->get_contextid(CONTEXT_MODULE, 32);
$fileman = $converter->get_file_manager($contextid, 'mod_unittest', 'testarea');
// Try to migrate a subdirectory passed with the trailing slash.
// This may display a debugging message which is expected.
$returned = $fileman->migrate_directory('course_files/sub1/');
$this->assertIsA($returned, 'array');
$this->assertEqual(2, count($returned)); // One file, one directory.
$converter->drop_stash_storage();
}
public function test_convert_path() {
$path = new convert_path('foo_bar', '/ROOT/THINGS/FOO/BAR');
$this->assertEqual('foo_bar', $path->get_name());
@@ -421,6 +480,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);
@@ -429,12 +490,41 @@ as it is parsed from the backup file. <br /><br /><img border="0" width="110" vs
$this->assertTrue(in_array('/pics/news.gif', $files));
$this->assertTrue(in_array('/MANUAL.DOC', $files));
$text = moodle1_converter::rewrite_filephp_usage($text, array('/pics/news.gif', '/another/file/notused.txt'), $files);
$text = moodle1_converter::rewrite_filephp_usage($text, array('/pics/news.gif', '/another/file/notused.txt'));
$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 />');
}
public function test_referenced_files_urlencoded() {
$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@$">no space</a><br />
<br /><a href=\'$@FILEPHP@$$@SLASH@$pics$@SLASH@$news%20with%20spaces.gif$@FORCEDOWNLOAD@$\'>with urlencoded spaces</a><br />
<a href="$@FILEPHP@$$@SLASH@$illegal%20pics%2Bmovies$@SLASH@$romeo%2Bjuliet.avi">Download the full AVI for free! (space and plus encoded)</a>
<a href="$@FILEPHP@$$@SLASH@$illegal pics+movies$@SLASH@$romeo+juliet.avi">Download the full AVI for free! (none encoded)</a>
<a href="$@FILEPHP@$$@SLASH@$illegal%20pics+movies$@SLASH@$romeo+juliet.avi">Download the full AVI for free! (only space encoded)</a>
<a href="$@FILEPHP@$$@SLASH@$illegal pics%2Bmovies$@SLASH@$romeo%2Bjuliet.avi">Download the full AVI for free! (only plus)</a>';
$files = moodle1_converter::find_referenced_files($text);
$this->assertIsA($files, 'array');
$this->assertEqual(3, count($files));
$this->assertTrue(in_array('/pics/news.gif', $files));
$this->assertTrue(in_array('/pics/news with spaces.gif', $files));
$this->assertTrue(in_array('/illegal pics+movies/romeo+juliet.avi', $files));
$text = moodle1_converter::rewrite_filephp_usage($text, $files);
$this->assertEqual('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">no space</a><br />
<br /><a href=\'@@PLUGINFILE@@/pics/news%20with%20spaces.gif?forcedownload=1\'>with urlencoded spaces</a><br />
<a href="@@PLUGINFILE@@/illegal%20pics%2Bmovies/romeo%2Bjuliet.avi">Download the full AVI for free! (space and plus encoded)</a>
<a href="@@PLUGINFILE@@/illegal%20pics%2Bmovies/romeo%2Bjuliet.avi">Download the full AVI for free! (none encoded)</a>
<a href="$@FILEPHP@$$@SLASH@$illegal%20pics+movies$@SLASH@$romeo+juliet.avi">Download the full AVI for free! (only space encoded)</a>
<a href="$@FILEPHP@$$@SLASH@$illegal pics%2Bmovies$@SLASH@$romeo%2Bjuliet.avi">Download the full AVI for free! (only plus)</a>', $text);
}
public function test_question_bank_conversion() {
global $CFG;
+1 -1
View File
@@ -154,7 +154,7 @@ $PAGE->navbar->add($backup->get_stage_name());
// Display the current stage
echo $OUTPUT->header();
if ($backup->enforce_changed_dependencies()) {
echo $renderer->dependency_notification(get_string('dependenciesenforced','backup'));
debugging('Your settings have been altered due to unmet dependencies', DEBUG_DEVELOPER);
}
echo $renderer->progress_bar($backup->get_progress_bar());
echo $backup->display();
+7 -2
View File
@@ -91,14 +91,19 @@ class file_nested_element extends backup_nested_element {
if (is_null($this->backupid)) {
$this->backupid = $processor->get_var(backup::VAR_BACKUPID);
}
parent::process($processor);
return parent::process($processor);
}
public function fill_values($values) {
// Fill values
parent::fill_values($values);
// Do our own tasks (copy file from moodle to backup)
backup_file_manager::copy_file_moodle2backup($this->backupid, $values);
try {
backup_file_manager::copy_file_moodle2backup($this->backupid, $values);
} catch (file_exception $e) {
$this->add_result(array('missing_files_in_pool' => true));
$this->add_log('missing file in pool: ' . $e->debuginfo, backup::LOG_WARNING);
}
}
}
+15 -15
View File
@@ -108,27 +108,27 @@ class backup_final_task extends backup_task {
require_once($CFG->dirroot . '/backup/util/helper/convert_helper.class.php');
//Checking if we have some converter involved in the process
$converters = convert_helper::available_converters(false);
//Conversion status
// Look for converter steps only in type course and mode general backup operations.
$conversion = false;
foreach ($converters as $value) {
if ($this->get_setting_value($value)) {
//zip class
$zip_contents = "{$value}_zip_contents";
$store_backup_file = "{$value}_store_backup_file";
$convert = "{$value}_backup_convert";
if ($this->plan->get_type() == backup::TYPE_1COURSE and $this->plan->get_mode() == backup::MODE_GENERAL) {
$converters = convert_helper::available_converters(false);
foreach ($converters as $value) {
if ($this->get_setting_value($value)) {
// Zip class.
$zip_contents = "{$value}_zip_contents";
$store_backup_file = "{$value}_store_backup_file";
$convert = "{$value}_backup_convert";
$this->add_step(new $convert("package_convert_{$value}"));
$this->add_step(new $zip_contents("zip_contents_{$value}"));
$this->add_step(new $store_backup_file("save_backupfile_{$value}"));
if (!$conversion) {
$conversion = true;
$this->add_step(new $convert("package_convert_{$value}"));
$this->add_step(new $zip_contents("zip_contents_{$value}"));
$this->add_step(new $store_backup_file("save_backupfile_{$value}"));
if (!$conversion) {
$conversion = true;
}
}
}
}
// On backup::MODE_IMPORT, we don't have to zip nor store the the file, skip these steps
if (($this->plan->get_mode() != backup::MODE_IMPORT) && !$conversion) {
// Generate the zip file (mbz extension)
+9 -6
View File
@@ -65,12 +65,15 @@ class backup_root_task extends backup_task {
$filename->set_ui(get_string('filename', 'backup'), 'backup.mbz', array('size'=>50));
$this->add_setting($filename);
//Sample custom settings
$converters = convert_helper::available_converters(false);
foreach ($converters as $cnv) {
$formatcnv = new backup_users_setting($cnv, base_setting::IS_BOOLEAN, false);
$formatcnv->set_ui(new backup_setting_ui_checkbox($formatcnv, get_string('backupformat'.$cnv, 'backup')));
$this->add_setting($formatcnv);
// Present converter settings only in type course and mode general backup operations.
$converters = array();
if ($this->plan->get_type() == backup::TYPE_1COURSE and $this->plan->get_mode() == backup::MODE_GENERAL) {
$converters = convert_helper::available_converters(false);
foreach ($converters as $cnv) {
$formatcnv = new backup_users_setting($cnv, base_setting::IS_BOOLEAN, false);
$formatcnv->set_ui(new backup_setting_ui_checkbox($formatcnv, get_string('backupformat'.$cnv, 'backup')));
$this->add_setting($formatcnv);
}
}
// Define users setting (keeping it on hand to define dependencies)
+1 -1
View File
@@ -857,7 +857,7 @@ class backup_gradebook_structure_step extends backup_structure_step {
$grade_category = new backup_nested_element('grade_category', array('id'), array(
//'courseid',
'parent', 'depth', 'path', 'fullname', 'aggregation', 'keephigh',
'dropload', 'aggregateonlygraded', 'aggregateoutcomes', 'aggregatesubcats',
'droplow', 'aggregateonlygraded', 'aggregateoutcomes', 'aggregatesubcats',
'timecreated', 'timemodified', 'hidden'));
$letters = new backup_nested_element('grade_letters');
@@ -149,6 +149,22 @@ abstract class restore_qtype_plugin extends restore_plugin {
AND ' . $DB->sql_compare_text('answer', 255) . ' = ' . $DB->sql_compare_text('?', 255);
$params = array($newquestionid, $data->answertext);
$newitemid = $DB->get_field_sql($sql, $params);
// Not able to find the answer, let's try cleaning the answertext
// of all the question answers in DB as slower fallback. MDL-30018.
if (!$newitemid) {
$params = array('question' => $newquestionid);
$answers = $DB->get_records('question_answers', $params, '', 'id, answer');
foreach ($answers as $answer) {
// Clean in the same way than {@link xml_writer::xml_safe_utf8()}.
$clean = preg_replace('/[\x-\x8\xb-\xc\xe-\x1f\x7f]/is','', $answer->answer); // Clean CTRL chars.
$clean = preg_replace("/\r\n|\r/", "\n", $clean); // Normalize line ending.
if ($clean === $data->answertext) {
$newitemid = $data->id;
}
}
}
// If we haven't found the newitemid, something has gone really wrong, question in DB
// is missing answers, exception
if (!$newitemid) {
+96 -31
View File
@@ -189,6 +189,15 @@ class restore_gradebook_structure_step extends restore_structure_step {
$data->id = $newitemid = $existinggradeitem->id;
$DB->update_record('grade_items', $data);
}
} else if ($data->itemtype == 'manual') {
// Manual items aren't assigned to a cm, so don't go duplicating them in the target if one exists.
$gi = array(
'itemtype' => $data->itemtype,
'courseid' => $data->courseid,
'itemname' => $data->itemname,
'categoryid' => $data->categoryid,
);
$newitemid = $DB->get_field('grade_items', 'id', $gi);
}
if (empty($newitemid)) {
@@ -206,21 +215,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;
@@ -265,7 +278,14 @@ class restore_gradebook_structure_step extends restore_structure_step {
$data->contextid = get_context_instance(CONTEXT_COURSE, $this->get_courseid())->id;
$newitemid = $DB->insert_record('grade_letters', $data);
$gradeletter = (array)$data;
unset($gradeletter['id']);
if (!$DB->record_exists('grade_letters', $gradeletter)) {
$newitemid = $DB->insert_record('grade_letters', $data);
} else {
$newitemid = $data->id;
}
$this->set_mapping('grade_letter', $oldid, $newitemid);
}
protected function process_grade_setting($data) {
@@ -276,8 +296,13 @@ class restore_gradebook_structure_step extends restore_structure_step {
$data->courseid = $this->get_courseid();
$newitemid = $DB->insert_record('grade_settings', $data);
//$this->set_mapping('grade_setting', $oldid, $newitemid);
if (!$DB->record_exists('grade_settings', array('courseid' => $data->courseid, 'name' => $data->name))) {
$newitemid = $DB->insert_record('grade_settings', $data);
} else {
$newitemid = $data->id;
}
$this->set_mapping('grade_setting', $oldid, $newitemid);
}
/**
@@ -1023,7 +1048,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)) {
@@ -1597,6 +1622,23 @@ class restore_calendarevents_structure_step extends restore_structure_step {
return;
}
}
// Handle events with empty eventtype //MDL-32827
if(empty($data->eventtype)) {
if ($data->courseid == $SITE->id) { // Site event
$data->eventtype = "site";
} else if ($data->courseid != 0 && $data->groupid == 0 && ($data->modulename == 'assignment' || $data->modulename == 'assign')) {
// Course assingment event
$data->eventtype = "due";
} else if ($data->courseid != 0 && $data->groupid == 0) { // Course event
$data->eventtype = "course";
} else if ($data->groupid) { // Group event
$data->eventtype = "group";
} else if ($data->userid) { // User event
$data->eventtype = "user";
} else {
return;
}
}
$params = array(
'name' => $data->name,
@@ -2222,33 +2264,43 @@ 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}'");
}
}
/**
* process activity grade_letters. Note that, while these are possible,
* because grade_letters are contextid based, in proctice, only course
* because grade_letters are contextid based, in practice, only course
* context letters can be defined. So we keep here this method knowing
* it won't be executed ever. gradebook restore will restore course letters.
*/
protected function process_grade_letter($data) {
global $DB;
$data = (object)$data;
$data['contextid'] = $this->task->get_contextid();
$gradeletter = (object)$data;
$data->contextid = $this->task->get_contextid();
$newitemid = $DB->insert_record('grade_letters', $data);
// Check if it exists before adding it
unset($data['id']);
if (!$DB->record_exists('grade_letters', $data)) {
$newitemid = $DB->insert_record('grade_letters', $gradeletter);
}
// no need to save any grade_letter mapping
}
}
@@ -2727,9 +2779,6 @@ class restore_create_categories_and_questions extends restore_structure_step {
$data->penalty = 1;
}
$data->timecreated = $this->apply_date_offset($data->timecreated);
$data->timemodified = $this->apply_date_offset($data->timemodified);
$userid = $this->get_mappingid('user', $data->createdby);
$data->createdby = $userid ? $userid : $this->task->get_userid();
@@ -2783,6 +2832,22 @@ class restore_create_categories_and_questions extends restore_structure_step {
AND ' . $DB->sql_compare_text('hint', 255) . ' = ' . $DB->sql_compare_text('?', 255);
$params = array($newquestionid, $data->hint);
$newitemid = $DB->get_field_sql($sql, $params);
// Not able to find the hint, let's try cleaning the hint text
// of all the question's hints in DB as slower fallback. MDL-33863.
if (!$newitemid) {
$potentialhints = $DB->get_records('question_hints',
array('questionid' => $newquestionid), '', 'id, hint');
foreach ($potentialhints as $potentialhint) {
// Clean in the same way than {@link xml_writer::xml_safe_utf8()}.
$cleanhint = preg_replace('/[\x-\x8\xb-\xc\xe-\x1f\x7f]/is','', $potentialhint->hint); // Clean CTRL chars.
$cleanhint = preg_replace("/\r\n|\r/", "\n", $cleanhint); // Normalize line ending.
if ($cleanhint === $data->hint) {
$newitemid = $data->id;
}
}
}
// If we haven't found the newitemid, something has gone really wrong, question in DB
// is missing hints, exception
if (!$newitemid) {
+1 -1
View File
@@ -61,7 +61,7 @@ $PAGE->navbar->add($restore->get_stage_name());
$renderer = $PAGE->get_renderer('core','backup');
echo $OUTPUT->header();
if (!$restore->is_independent() && $restore->enforce_changed_dependencies()) {
echo $renderer->dependency_notification(get_string('dependenciesenforced','backup'));
debugging('Your settings have been altered due to unmet dependencies', DEBUG_DEVELOPER);
}
echo $renderer->progress_bar($restore->get_progress_bar());
echo $restore->display($renderer);
+17
View File
@@ -0,0 +1,17 @@
This files describes API changes in /backup/*,
information provided here is intended especially for developers.
=== 2.4 ===
* Since 2.3.1+ the backup file name schema has changed. The ID of the course will always be part of
the filename regardless of the setting 'backup_shortname'. See MDL-33812.
=== 2.3 ===
* Since 2.3.1+ the backup file name schema has changed. The ID of the course will always be part of
the filename regardless of the setting 'backup_shortname'. See MDL-33812.
=== 2.2 ===
* Since 2.2.4+ the backup file name schema has changed. The ID of the course will always be part of
the filename regardless of the setting 'backup_shortname'. See MDL-33812.
+10 -6
View File
@@ -112,7 +112,7 @@ abstract class backup_plan_dbops extends backup_dbops {
// Get all sections belonging to requested course
$sectionsarr = array();
$sections = $DB->get_records('course_sections', array('course' => $courseid));
$sections = $DB->get_records('course_sections', array('course' => $courseid), 'section');
foreach ($sections as $section) {
$sectionsarr[] = $section->id;
}
@@ -197,19 +197,19 @@ abstract class backup_plan_dbops extends backup_dbops {
* @param int $courseid/$sectionid/$cmid
* @param bool $users Should be true is users were included in the backup
* @param bool $anonymised Should be true is user information was anonymized.
* @param bool $useidasname true to use id, false to use strings (default)
* @param bool $useidonly only use the ID in the file name
* @return string The filename to use
*/
public static function get_default_backup_filename($format, $type, $id, $users, $anonymised, $useidasname = false) {
public static function get_default_backup_filename($format, $type, $id, $users, $anonymised, $useidonly = false) {
global $DB;
// Calculate backup word
$backupword = str_replace(' ', '_', moodle_strtolower(get_string('backupfilename')));
$backupword = trim(clean_filename($backupword), '_');
// Not $useidonly, lets fetch the name
$shortname = '';
// Not $useidasname, lets calculate it, else $id will be used
if (!$useidasname) {
if (!$useidonly) {
// Calculate proper name element (based on type)
switch ($type) {
case backup::TYPE_1COURSE:
@@ -231,7 +231,11 @@ abstract class backup_plan_dbops extends backup_dbops {
$shortname = moodle_strtolower(trim(clean_filename($shortname), '_'));
}
$name = empty($shortname) ? $id : $shortname;
// The name will always contain the ID, but we append the course short name if requested.
$name = $id;
if (!$useidonly && $shortname != '') {
$name .= '-' . $shortname;
}
// Calculate date
$backupdateformat = str_replace(' ', '_', get_string('backupnameformat', 'langconfig'));
+23 -2
View File
@@ -622,10 +622,24 @@ abstract class restore_dbops {
* Given one component/filearea/context and
* optionally one source itemname to match itemids
* put the corresponding files in the pool
*
* @param string $basepath the full path to the root of unzipped backup file
* @param string $restoreid the restore job's identification
* @param string $component
* @param string $filearea
* @param int $oldcontextid
* @param int $dfltuserid default $file->user if the old one can't be mapped
* @param string|null $itemname
* @param int|null $olditemid
* @param int|null $forcenewcontextid explicit value for the new contextid (skip mapping)
* @param bool $skipparentitemidctxmatch
* @return array of result object
*/
public static function send_files_to_pool($basepath, $restoreid, $component, $filearea, $oldcontextid, $dfltuserid, $itemname = null, $olditemid = null, $forcenewcontextid = null, $skipparentitemidctxmatch = false) {
global $DB;
$results = array();
if ($forcenewcontextid) {
// Some components can have "forced" new contexts (example: questions can end belonging to non-standard context mappings,
// with questions originally at system/coursecat context in source being restored to course context in target). So we need
@@ -701,7 +715,12 @@ abstract class restore_dbops {
// Find file in backup pool
$backuppath = $basepath . backup_file_manager::get_backup_content_file_location($file->contenthash);
if (!file_exists($backuppath)) {
throw new restore_dbops_exception('file_not_found_in_pool', $file);
$result = new stdClass();
$result->code = 'file_missing_in_backup';
$result->message = sprintf('missing file %s%s in backup', $file->filepath, $file->filename);
$result->level = backup::LOG_WARNING;
$results[] = $result;
continue;
}
if (!$fs->file_exists($newcontextid, $component, $filearea, $rec->newitemid, $file->filepath, $file->filename)) {
$file_record = array(
@@ -721,6 +740,7 @@ abstract class restore_dbops {
}
}
$rs->close();
return $results;
}
/**
@@ -1282,7 +1302,8 @@ abstract class restore_dbops {
}
$currentfullname = $fullname.$suffixfull;
$currentshortname = substr($shortname, 0, 100 - strlen($suffixshort)).$suffixshort; // < 100cc
$coursefull = $DB->get_record_select('course', 'fullname = ? AND id != ?', array($currentfullname, $courseid));
$coursefull = $DB->get_record_select('course', 'fullname = ? AND id != ?',
array($currentfullname, $courseid), '*', IGNORE_MULTIPLE);
$courseshort = $DB->get_record_select('course', 'shortname = ? AND id != ?', array($currentshortname, $courseid));
$counter++;
} while ($coursefull || $courseshort);
@@ -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);
}
/**
+105 -43
View File
@@ -46,6 +46,8 @@ abstract class backup_cron_automated_helper {
const BACKUP_STATUS_UNFINISHED = 2;
/** Course automated backup was skipped */
const BACKUP_STATUS_SKIPPED = 3;
/** Course automated backup had warnings */
const BACKUP_STATUS_WARNING = 4;
/** Run if required by the schedule set in config. Default. **/
const RUN_ON_SCHEDULE = 0;
@@ -110,7 +112,7 @@ abstract class backup_cron_automated_helper {
$nextstarttime = backup_cron_automated_helper::calculate_next_automated_backup($admin->timezone, $now);
$showtime = "undefined";
if ($nextstarttime > 0) {
$showtime = userdate($nextstarttime,"",$admin->timezone);
$showtime = date('r', $nextstarttime);
}
$rs = $DB->get_recordset('course');
@@ -124,7 +126,14 @@ abstract class backup_cron_automated_helper {
}
// Skip courses that do not yet need backup
$skipped = !(($backupcourse->nextstarttime >= 0 && $backupcourse->nextstarttime < $now) || $rundirective == self::RUN_IMMEDIATELY);
$skipped = !(($backupcourse->nextstarttime > 0 && $backupcourse->nextstarttime < $now) || $rundirective == self::RUN_IMMEDIATELY);
if ($skipped && $backupcourse->nextstarttime != $nextstarttime) {
$backupcourse->nextstarttime = $nextstarttime;
$backupcourse->laststatus = backup_cron_automated_helper::BACKUP_STATUS_SKIPPED;
$DB->update_record('backup_courses', $backupcourse);
mtrace('Backup of \'' . $course->fullname . '\' is scheduled on ' . $showtime);
}
// Skip backup of unavailable courses that have remained unmodified in a month
if (!$skipped && empty($course->visible) && ($now - $course->timemodified) > 31*24*60*60) { //Hidden + settings were unmodified last month
//Check log if there were any modifications to the course content
@@ -132,16 +141,17 @@ abstract class backup_cron_automated_helper {
$params = array('courseid' => $course->id, 'time' => $now-31*24*60*60, 'action' => '%view%');
$logexists = $DB->record_exists_select('log', $sqlwhere, $params);
if (!$logexists) {
$backupcourse->laststatus = backup_cron_automated_helper::BACKUP_STATUS_SKIPPED;
$backupcourse->laststatus = self::BACKUP_STATUS_SKIPPED;
$backupcourse->nextstarttime = $nextstarttime;
$DB->update_record('backup_courses', $backupcourse);
mtrace('Skipping unchanged course '.$course->fullname);
$skipped = true;
}
}
//Now we backup every non-skipped course
if (!$skipped) {
mtrace('Backing up '.$course->fullname, '...');
mtrace('Backing up '.$course->fullname.'...');
//We have to send a email because we have included at least one backup
$emailpending = true;
@@ -152,7 +162,7 @@ abstract class backup_cron_automated_helper {
$starttime = time();
$backupcourse->laststarttime = time();
$backupcourse->laststatus = backup_cron_automated_helper::BACKUP_STATUS_UNFINISHED;
$backupcourse->laststatus = self::BACKUP_STATUS_UNFINISHED;
$DB->update_record('backup_courses', $backupcourse);
$backupcourse->laststatus = backup_cron_automated_helper::launch_automated_backup($course, $backupcourse->laststarttime, $admin->id);
@@ -161,7 +171,7 @@ abstract class backup_cron_automated_helper {
$DB->update_record('backup_courses', $backupcourse);
if ($backupcourse->laststatus) {
if ($backupcourse->laststatus === self::BACKUP_STATUS_OK) {
// Clean up any excess course backups now that we have
// taken a successful backup.
$removedcount = backup_cron_automated_helper::remove_excess_backups($course);
@@ -180,17 +190,18 @@ abstract class backup_cron_automated_helper {
$message = "";
$count = backup_cron_automated_helper::get_backup_status_array();
$haserrors = ($count[backup_cron_automated_helper::BACKUP_STATUS_ERROR] != 0 || $count[backup_cron_automated_helper::BACKUP_STATUS_UNFINISHED] != 0);
$haserrors = ($count[self::BACKUP_STATUS_ERROR] != 0 || $count[self::BACKUP_STATUS_UNFINISHED] != 0);
//Build the message text
//Summary
$message .= get_string('summary')."\n";
$message .= "==================================================\n";
$message .= " ".get_string('courses').": ".array_sum($count)."\n";
$message .= " ".get_string('ok').": ".$count[backup_cron_automated_helper::BACKUP_STATUS_OK]."\n";
$message .= " ".get_string('skipped').": ".$count[backup_cron_automated_helper::BACKUP_STATUS_SKIPPED]."\n";
$message .= " ".get_string('error').": ".$count[backup_cron_automated_helper::BACKUP_STATUS_ERROR]."\n";
$message .= " ".get_string('unfinished').": ".$count[backup_cron_automated_helper::BACKUP_STATUS_UNFINISHED]."\n\n";
$message .= " ".get_string('ok').": ".$count[self::BACKUP_STATUS_OK]."\n";
$message .= " ".get_string('skipped').": ".$count[self::BACKUP_STATUS_SKIPPED]."\n";
$message .= " ".get_string('error').": ".$count[self::BACKUP_STATUS_ERROR]."\n";
$message .= " ".get_string('unfinished').": ".$count[self::BACKUP_STATUS_UNFINISHED]."\n";
$message .= " ".get_string('warning').": ".$count[self::BACKUP_STATUS_WARNING]."\n\n";
//Reference
if ($haserrors) {
@@ -253,9 +264,10 @@ abstract class backup_cron_automated_helper {
self::BACKUP_STATUS_OK => 0,
self::BACKUP_STATUS_UNFINISHED => 0,
self::BACKUP_STATUS_SKIPPED => 0,
self::BACKUP_STATUS_WARNING => 0
);
$statuses = $DB->get_records_sql('SELECT DISTINCT bc.laststatus, COUNT(bc.courseid) statuscount FROM {backup_courses} bc GROUP BY bc.laststatus');
$statuses = $DB->get_records_sql('SELECT DISTINCT bc.laststatus, COUNT(bc.courseid) AS statuscount FROM {backup_courses} bc GROUP BY bc.laststatus');
foreach ($statuses as $status) {
if (empty($status->statuscount)) {
@@ -270,36 +282,47 @@ abstract class backup_cron_automated_helper {
/**
* Works out the next time the automated backup should be run.
*
* @param mixed $timezone
* @param int $now
* @return int
* @param mixed $timezone user timezone
* @param int $now timestamp, should not be in the past, most likely time()
* @return int timestamp of the next execution at server time
*/
public static function calculate_next_automated_backup($timezone, $now) {
$result = -1;
$result = 0;
$config = get_config('backup');
$midnight = usergetmidnight($now, $timezone);
$autohour = $config->backup_auto_hour;
$automin = $config->backup_auto_minute;
// Gets the user time relatively to the server time.
$date = usergetdate($now, $timezone);
$usertime = mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year']);
$diff = $now - $usertime;
//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");
if (empty($daysfromtoday)) {
$daysfromtoday = 1;
// Get number of days (from user's today) to execute backups.
$automateddays = substr($config->backup_auto_weekdays, $date['wday']) . $config->backup_auto_weekdays;
$daysfromnow = strpos($automateddays, "1");
// Error, there are no days to schedule the backup for.
if ($daysfromnow === false) {
return 0;
}
//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
$result = $midnight + $dist;
// Checks if the date would happen in the future (of the user).
$userresult = mktime($autohour, $automin, 0, $date['mon'], $date['mday'] + $daysfromnow, $date['year']);
if ($userresult <= $usertime) {
// If not, we skip the first scheduled day, that should fix it.
$daysfromnow = strpos($automateddays, "1", 1);
$userresult = mktime($autohour, $automin, 0, $date['mon'], $date['mday'] + $daysfromnow, $date['year']);
}
//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);
// Now we generate the time relative to the server.
$result = $userresult + $diff;
// If that time is past, call the function recursively to obtain the next valid day.
if ($result <= $now) {
// Checking time() in here works, but makes PHPUnit Tests extremely hard to predict.
// $now should never be earlier than time() anyway...
$result = self::calculate_next_automated_backup($timezone, $now + DAYSECS);
}
return $result;
@@ -315,6 +338,7 @@ abstract class backup_cron_automated_helper {
*/
public static function launch_automated_backup($course, $starttime, $userid) {
$outcome = self::BACKUP_STATUS_OK;
$config = get_config('backup');
$bc = new backup_controller(backup::TYPE_1COURSE, $course->id, backup::FORMAT_MOODLE, backup::INTERACTIVE_NO, backup::MODE_AUTOMATED, $userid);
@@ -347,32 +371,60 @@ 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'];
$outcome = self::outcome_from_results($results);
$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) {
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) {
if (!$file->copy_content_to($dir.'/'.$filename)) {
$outcome = self::BACKUP_STATUS_ERROR;
}
if ($outcome != self::BACKUP_STATUS_ERROR && $storage === 1) {
$file->delete();
}
}
$outcome = true;
} catch (backup_exception $e) {
$bc->log('backup_auto_failed_on_course', backup::LOG_WARNING, $course->shortname);
$outcome = false;
} 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 = self::BACKUP_STATUS_ERROR;
}
$bc->destroy();
unset($bc);
return true;
return $outcome;
}
/**
* Returns the backup outcome by analysing its results.
*
* @param array $results returned by a backup
* @return int {@link self::BACKUP_STATUS_OK} and other constants
*/
public static function outcome_from_results($results) {
$outcome = self::BACKUP_STATUS_OK;
foreach ($results as $code => $value) {
// Each possible error and warning code has to be specified in this switch
// which basically analyses the results to return the correct backup status.
switch ($code) {
case 'missing_files_in_pool':
$outcome = self::BACKUP_STATUS_WARNING;
break;
}
// If we found the highest error level, we exit the loop.
if ($outcome == self::BACKUP_STATUS_ERROR) {
break;
}
}
return $outcome;
}
/**
@@ -407,7 +459,12 @@ abstract class backup_cron_automated_helper {
$config = get_config('backup');
$active = (int)$config->backup_auto_active;
if ($active === self::AUTO_BACKUP_DISABLED || ($rundirective == self::RUN_ON_SCHEDULE && $active === self::AUTO_BACKUP_MANUAL)) {
$weekdays = (string)$config->backup_auto_weekdays;
// In case of automated backup also check that it is scheduled for at least one weekday.
if ($active === self::AUTO_BACKUP_DISABLED ||
($rundirective == self::RUN_ON_SCHEDULE && $active === self::AUTO_BACKUP_MANUAL) ||
($rundirective == self::RUN_ON_SCHEDULE && strpos($weekdays, '1') === false)) {
return self::STATE_DISABLED;
} else if (!empty($config->backup_auto_running)) {
// Detect if the backup_auto_running semaphore is a valid one
@@ -459,6 +516,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;
}
/**
+1 -1
View File
@@ -75,7 +75,7 @@ class file_logger extends base_logger {
if (substr($this->fullpath, -5) !== '.html') {
$content = $prefix . str_repeat(' ', $depth) . $message . PHP_EOL;
} else {
$content = $prefix . str_repeat('&nbsp;&nbsp;', $depth) . htmlentities($message, ENT_QUOTES) . '<br/>' . PHP_EOL;
$content = $prefix . str_repeat('&nbsp;&nbsp;', $depth) . htmlentities($message, ENT_QUOTES, 'UTF-8') . '<br/>' . PHP_EOL;
}
if (false === fwrite($this->fhandle, $content)) {
throw new base_logger_exception('error_writing_file', $this->fullpath);
@@ -38,7 +38,7 @@ class output_indented_logger extends base_logger {
if (defined('STDOUT')) {
echo $prefix . str_repeat(' ', $depth) . $message . PHP_EOL;
} else {
echo $prefix . str_repeat('&nbsp;&nbsp;', $depth) . htmlentities($message, ENT_QUOTES) . '<br/>' . PHP_EOL;
echo $prefix . str_repeat('&nbsp;&nbsp;', $depth) . htmlentities($message, ENT_QUOTES, 'UTF-8') . '<br/>' . PHP_EOL;
}
flush();
return true;
@@ -37,7 +37,7 @@ class output_text_logger extends base_logger {
if (defined('STDOUT')) {
echo $prefix . $message . PHP_EOL;
} else {
echo $prefix . htmlentities($message, ENT_QUOTES) . '<br/>' . PHP_EOL;
echo $prefix . htmlentities($message, ENT_QUOTES, 'UTF-8') . '<br/>' . PHP_EOL;
}
flush();
return true;
+4
View File
@@ -67,6 +67,10 @@ class backup_plan extends base_plan implements loggable {
return $this->controller->get_backupid();
}
public function get_type() {
return $this->controller->get_type();
}
public function get_mode() {
return $this->controller->get_mode();
}
@@ -94,11 +94,22 @@ abstract class backup_structure_step extends backup_step {
// Process structure definition
$structure->process($pr);
// Get the results from the nested elements
$results = $structure->get_results();
// Get the log messages to append to the log
$logs = $structure->get_logs();
foreach ($logs as $log) {
$this->log($log->message, $log->level, $log->a, $log->depth, $log->display);
}
// Close everything
$xw->stop();
// Destroy the structure. It helps PHP 5.2 memory a lot!
$structure->destroy();
return $results;
}
/**
+28
View File
@@ -191,6 +191,34 @@ abstract class base_task implements checksumable, executable, loggable {
backup_general_helper::array_checksum_recursive($this->steps));
}
/**
* Add the given info to the current plan's results.
*
* @see base_plan::add_result()
* @param array $result associative array describing a result of a task/step
*/
public function add_result($result) {
if (!is_null($this->plan)) {
$this->plan->add_result($result);
} else {
debugging('Attempting to add a result of a task not binded with a plan', DEBUG_DEVELOPER);
}
}
/**
* Return the current plan's results
*
* @return array|null
*/
public function get_results() {
if (!is_null($this->plan)) {
return $this->plan->get_results();
} else {
debugging('Attempting to get results of a task not binded with a plan', DEBUG_DEVELOPER);
return null;
}
}
// Protected API starts here
/**
@@ -218,8 +218,14 @@ abstract class restore_structure_step extends restore_step {
*/
public function add_related_files($component, $filearea, $mappingitemname, $filesctxid = null, $olditemid = null) {
$filesctxid = is_null($filesctxid) ? $this->task->get_old_contextid() : $filesctxid;
restore_dbops::send_files_to_pool($this->get_basepath(), $this->get_restoreid(), $component,
$filearea, $filesctxid, $this->task->get_userid(), $mappingitemname, $olditemid);
$results = restore_dbops::send_files_to_pool($this->get_basepath(), $this->get_restoreid(), $component,
$filearea, $filesctxid, $this->task->get_userid(), $mappingitemname, $olditemid);
$resultstoadd = array();
foreach ($results as $result) {
$this->log($result->message, $result->level);
$resultstoadd[$result->code] = true;
}
$this->task->add_result($resultstoadd);
}
/**
@@ -37,6 +37,8 @@ class backup_nested_element extends base_nested_element implements processable {
protected $aliases; // Define DB->final element aliases
protected $fileannotations; // array of file areas to be searched by file annotations
protected $counter; // Number of instances of this element that have been processed
protected $results; // Logs the results we encounter during the process.
protected $logs; // Some log messages that could be retrieved later.
/**
* Constructor - instantiates one backup_nested_element, specifying its basic info.
@@ -55,8 +57,16 @@ class backup_nested_element extends base_nested_element implements processable {
$this->aliases = array();
$this->fileannotations = array();
$this->counter = 0;
$this->results = array();
$this->logs = array();
}
/**
* Process the nested element
*
* @param object $processor the processor
* @return void
*/
public function process($processor) {
if (!$processor instanceof base_processor) { // No correct processor, throw exception
throw new base_element_struct_exception('incorrect_processor');
@@ -113,6 +123,69 @@ class backup_nested_element extends base_nested_element implements processable {
$iterator->close();
}
/**
* Saves a log message to an array
*
* @see backup_helper::log()
* @param string $message to add to the logs
* @param int $level level of importance {@link backup::LOG_DEBUG} and other constants
* @param mixed $a to be included in $message
* @param int $depth of the message
* @param display $bool supporting translation via get_string() if true
* @return void
*/
protected function add_log($message, $level, $a = null, $depth = null, $display = false) {
// Adding the result to the oldest parent.
if ($this->get_parent()) {
$parent = $this->get_grandparent();
$parent->add_log($message, $level, $a, $depth, $display);
} else {
$log = new stdClass();
$log->message = $message;
$log->level = $level;
$log->a = $a;
$log->depth = $depth;
$log->display = $display;
$this->logs[] = $log;
}
}
/**
* Saves the results to an array
*
* @param array $result associative array
* @return void
*/
protected function add_result($result) {
if (is_array($result)) {
// Adding the result to the oldest parent.
if ($this->get_parent()) {
$parent = $this->get_grandparent();
$parent->add_result($result);
} else {
$this->results = array_merge($this->results, $result);
}
}
}
/**
* Returns the logs
*
* @return array of log objects
*/
public function get_logs() {
return $this->logs;
}
/**
* Returns the results
*
* @return associative array of results
*/
public function get_results() {
return $this->results;
}
public function set_source_array($arr) {
// TODO: Only elements having final elements can set source
$this->var_array = $arr;
+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;
+3
View File
@@ -469,6 +469,9 @@ class backup_ui_stage_complete extends backup_ui_stage_final {
}
echo $OUTPUT->box_start();
if (!empty($this->results['missing_files_in_pool'])) {
echo $OUTPUT->notification(get_string('missingfilesinpool', 'backup'), 'notifyproblem');
}
echo $OUTPUT->notification(get_string('executionsuccess', 'backup'), 'notifysuccess');
echo $OUTPUT->continue_button($restorerul);
echo $OUTPUT->box_end();
+13 -9
View File
@@ -96,7 +96,6 @@ abstract class base_moodleform extends moodleform {
* @global moodle_page $PAGE
*/
function definition_after_data() {
global $PAGE;
$buttonarray=array();
$buttonarray[] = $this->_form->createElement('submit', 'submitbutton', get_string($this->uistage->get_ui()->get_name().'stage'.$this->uistage->get_stage().'action', 'backup'), array('class'=>'proceedbutton'));
if (!$this->uistage->is_first_stage()) {
@@ -106,13 +105,9 @@ abstract class base_moodleform extends moodleform {
$this->_form->addGroup($buttonarray, 'buttonar', '', array(' '), false);
$this->_form->closeHeaderBefore('buttonar');
$config = new stdClass;
$config->title = get_string('confirmcancel', 'backup');
$config->question = get_string('confirmcancelquestion', 'backup');
$config->yesLabel = get_string('confirmcancelyes', 'backup');
$config->noLabel = get_string('confirmcancelno', 'backup');
$PAGE->requires->yui_module('moodle-backup-confirmcancel', 'M.core_backup.watch_cancel_buttons', array($config));
$this->_definition_finalized = true;
}
/**
* Closes any open divs
*/
@@ -304,7 +299,17 @@ abstract class base_moodleform extends moodleform {
* Displays the form
*/
public function display() {
global $PAGE;
$this->require_definition_after_data();
$config = new stdClass;
$config->title = get_string('confirmcancel', 'backup');
$config->question = get_string('confirmcancelquestion', 'backup');
$config->yesLabel = get_string('confirmcancelyes', 'backup');
$config->noLabel = get_string('confirmcancelno', 'backup');
$PAGE->requires->yui_module('moodle-backup-confirmcancel', 'M.core_backup.watch_cancel_buttons', array($config));
parent::display();
}
@@ -313,8 +318,7 @@ abstract class base_moodleform extends moodleform {
*/
public function require_definition_after_data() {
if (!$this->_definition_finalized) {
$this->_definition_finalized = true;
$this->definition_after_data();
}
}
}
}
@@ -757,6 +757,9 @@ class restore_ui_stage_complete extends restore_ui_stage_process {
$html = '';
$html .= $renderer->box_start();
if (array_key_exists('file_missing_in_backup', $this->results)) {
$html .= $renderer->notification(get_string('restorefileweremissing', 'backup'), 'notifyproblem');
}
$html .= $renderer->notification(get_string('restoreexecutionsuccess', 'backup'), 'notifysuccess');
$html .= $renderer->continue_button(new moodle_url('/course/view.php', array(
'id' => $this->get_ui()->get_controller()->get_courseid())), 'get');
+3 -1
View File
@@ -82,17 +82,20 @@ class block_blog_recent extends block_base {
$context = $this->page->context;
$url = new moodle_url('/blog/index.php');
$filter = array();
if ($context->contextlevel == CONTEXT_MODULE) {
$filter['module'] = $context->instanceid;
$a = new stdClass;
$a->type = get_string('modulename', $this->page->cm->modname);
$strview = get_string('viewallmodentries', 'blog', $a);
$url->param('modid', $context->instanceid);
} else if ($context->contextlevel == CONTEXT_COURSE) {
$filter['course'] = $context->instanceid;
$a = new stdClass;
$a->type = get_string('course');
$strview = get_string('viewblogentries', 'blog', $a);
$url->param('courseid', $context->instanceid);
} else {
$strview = get_string('viewsiteentries', 'blog');
}
@@ -100,7 +103,6 @@ class block_blog_recent extends block_base {
$bloglisting = new blog_listing($filter);
$entries = $bloglisting->get_entries(0, $this->config->numberofrecentblogentries, 4);
$url = new moodle_url('/blog/index.php', $filter);
if (!empty($entries)) {
$entrieslist = array();
+3 -3
View File
@@ -69,9 +69,9 @@ class block_community extends block_list {
}
$icon = html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('i/group'),
'class' => 'icon', 'alt' => get_string('addcourse', 'block_community')));
'class' => 'icon', 'alt' => ""));
$addcourseurl = new moodle_url('/blocks/community/communitycourse.php',
array('add' => true, 'courseid' => $coursecontext->instanceid));
array('add' => true, 'courseid' => $this->page->course->id));
$searchlink = html_writer::tag('a', $icon . '&nbsp;' . get_string('addcourse', 'block_community'),
array('href' => $addcourseurl->out(false)));
$this->content->items[] = $searchlink;
@@ -91,7 +91,7 @@ class block_community extends block_list {
'alt' => get_string('removecommunitycourse', 'block_community')));
$deleteurl = new moodle_url('/blocks/community/communitycourse.php',
array('remove' => true,
'courseid' => $coursecontext->instanceid,
'courseid' => $this->page->course->id,
'communityid' => $course->id, 'sesskey' => sesskey()));
$deleteatag = html_writer::tag('a', $deleteicon, array('href' => $deleteurl));
+1 -1
View File
@@ -140,7 +140,7 @@ class community_hub_search_form extends moodleform {
$options = array();
$firsthub = false;
foreach ($hubs as $hub) {
if (key_exists('id', $hub)) {
if (array_key_exists('id', $hub)) {
$params = array('hubid' => $hub['id'],
'filetype' => HUB_HUBSCREENSHOT_FILE_TYPE);
$imgurl = new moodle_url(HUB_HUBDIRECTORYURL .
+2 -1
View File
@@ -213,6 +213,7 @@
background-color:#F6F6F6;
border:1px solid #CCCCCC;
overflow: auto;
padding: 7px 6px;
}
#page-blocks-community-communitycourse .moodle-dialogue-base .moodle-dialogue-bd {
@@ -222,5 +223,5 @@
#page-blocks-community-communitycourse .moodle-dialogue-base .closebutton {
margin-top:4px;
width:30px;
margin-right:4px;
}
+20 -20
View File
@@ -9,8 +9,8 @@ YUI.add('moodle-block_community-comments', function(Y) {
Y.extend(COMMENTS, Y.Base, {
event:null,
overlayevent:null,
overlays: [], //all the comment boxes
panelevent:null,
panels: [], //all the comment boxes
initializer : function(params) {
@@ -18,18 +18,18 @@ YUI.add('moodle-block_community-comments', function(Y) {
for (var i=0;i<this.get('commentids').length;i++)
{
var commentid = this.get('commentids')[i];
this.overlays[commentid] = new M.core.dialogue({
headerContent:Y.one('#commentoverlay-'+commentid+' .commenttitle').get('innerHTML'),
this.panels[commentid] = new M.core.dialogue({
headerContent:Y.Node.create('<h1>')
.append(Y.one('#commentoverlay-'+commentid+' .commenttitle').get('innerHTML')),
bodyContent:Y.one('#commentoverlay-'+commentid).get('innerHTML'),
visible: false, //by default it is not displayed
lightbox : false,
zIndex:100,
height: '350px'
zIndex:100
});
this.overlays[commentid].get('contentBox').one('.commenttitle').remove();
this.overlays[commentid].render();
this.overlays[commentid].hide();
this.panels[commentid].get('contentBox').one('.commenttitle').remove();
this.panels[commentid].render();
this.panels[commentid].hide();
Y.one('#comments-'+commentid).on('click', this.show, this, commentid);
}
@@ -38,34 +38,34 @@ YUI.add('moodle-block_community-comments', function(Y) {
show : function (e, commentid) {
//hide all overlays
//hide all panels
for (var i=0;i<this.get('commentids').length;i++)
{
this.hide(e, this.get('commentids')[i]);
}
this.overlays[commentid].show(); //show the overlay
this.panels[commentid].show(); //show the panel
e.halt(); // we are going to attach a new 'hide overlay' event to the body,
e.halt(); // we are going to attach a new 'hide panel' event to the body,
// because javascript always propagate event to parent tag,
// we need to tell Yahoo to stop to call the event on parent tag
// otherwise the hide event will be call right away.
//we add a new event on the body in order to hide the overlay for the next click
//we add a new event on the body in order to hide the panel for the next click
this.event = Y.one(document.body).on('click', this.hide, this, commentid);
//we add a new event on the overlay in order to hide the overlay for the next click (touch device)
this.overlayevent = Y.one("#commentoverlay-"+commentid).on('click', this.hide, this, commentid);
//we add a new event on the panel in order to hide the panel for the next click (touch device)
this.panelevent = Y.one("#commentoverlay-"+commentid).on('click', this.hide, this, commentid);
},
hide : function (e, commentid) {
this.overlays[commentid].hide(); //hide the overlay
this.panels[commentid].hide(); //hide the panel
if (this.event != null) {
this.event.detach(); //we need to detach the body hide event
//Note: it would work without but create js warning everytime
//we click on the body
}
if (this.overlayevent != null) {
this.overlayevent.detach(); //we need to detach the overlay hide event
if (this.panelevent != null) {
this.panelevent.detach(); //we need to detach the panel hide event
//Note: it would work without but create js warning everytime
//we click on the body
}
@@ -85,5 +85,5 @@ YUI.add('moodle-block_community-comments', function(Y) {
}
}, '@VERSION@', {
requires:['base','overlay', 'moodle-enrol-notification']
});
requires:['base', 'moodle-enrol-notification']
});
+38 -38
View File
@@ -11,8 +11,8 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
event:null,
previousevent:null,
nextevent:null,
overlayevent:null,
overlay:null, //all the comment boxes
panelevent:null,
panel:null, //all the images boxes
imageidnumbers: [],
imageloadingevent: null,
loadingimage: null,
@@ -26,15 +26,15 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
+'</div>');
objBody.append(this.loadingimage);
/// create the div for overlay
/// create the div for panel
var objBody = Y.one(document.body);
var overlaytitle = Y.Node.create('<div id="imagetitleoverlay" class="hiddenoverlay"></div>');
objBody.append(overlaytitle);
var overlay = Y.Node.create('<div id="imageoverlay" class="hiddenoverlay"></div>');
objBody.append(overlay);
var paneltitle = Y.Node.create('<div id="imagetitleoverlay" class="hiddenoverlay"></div>');
objBody.append(paneltitle);
var panel = Y.Node.create('<div id="imageoverlay" class="hiddenoverlay"></div>');
objBody.append(panel);
/// create the overlay
this.overlay = new M.core.dialogue({
/// create the panel
this.panel = new M.core.dialogue({
headerContent:Y.one('#imagetitleoverlay').get('innerHTML'),
bodyContent:Y.one('#imageoverlay').get('innerHTML'),
visible: false, //by default it is not displayed
@@ -42,8 +42,8 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
zIndex:100
});
this.overlay.render();
this.overlay.hide();
this.panel.render();
this.panel.hide();
//attach a show event on the image divs (<tag id='image-X'>)
for (var i=0;i<this.get('imageids').length;i++)
@@ -85,31 +85,31 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
var maxheight = windowheight - 150;
//load the title + link to next image
var overlaytitle = Y.one('#imagetitleoverlay');
var paneltitle = 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('');
/// need to load the images in the panel
var panel = Y.one('#imageoverlay');
panel.setContent('');
overlay.append(Y.Node.create('<div style="text-align:center"><img id=\"imagetodisplay\" src="' + url
panel.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 '
+ screennumber + ' / ' + this.imageidnumbers[imageid] + ' </div>' + nextimagelink,
this.panel.destroy();
this.panel = new M.core.dialogue({
headerContent:previousimagelink + '<div id=\"imagenumber\" class=\"imagetitle\"><h1> Image '
+ screennumber + ' / ' + this.imageidnumbers[imageid] + ' </h1></div>' + nextimagelink,
bodyContent:Y.one('#imageoverlay').get('innerHTML'),
visible: false, //by default it is not displayed
lightbox : false,
zIndex:100
});
this.overlay.render();
this.overlay.hide(); //show the overlay
this.overlay.set("centered", true);
this.panel.render();
this.panel.hide(); //show the panel
this.panel.set("centered", true);
e.halt(); // we are going to attach a new 'hide overlay' event to the body,
e.halt(); // we are going to attach a new 'hide panel' event to the body,
// because javascript always propagate event to parent tag,
// we need to tell Yahoo to stop to call the event on parent tag
// otherwise the hide event will be call right away.
@@ -123,14 +123,14 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
var screenshot = new Image();
screenshot.src = url;
var overlaywidth = windowwidth - 100;
if(overlaywidth > screenshot.width) {
overlaywidth = screenshot.width;
var panelwidth = windowwidth - 100;
if(panelwidth > screenshot.width) {
panelwidth = screenshot.width;
}
this.overlay.set('width', overlaywidth);
this.overlay.set("centered", true);
this.overlay.show();
this.panel.set('width', panelwidth);
this.panel.set("centered", true);
this.panel.show();
}, this, url);
@@ -147,12 +147,12 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
Y.one('#nextarrow').on('click', this.show, this, imageid, nextnumber);
Y.one('#imagenumber').on('click', this.show, this, imageid, nextnumber);
//we add a new event on the body in order to hide the overlay for the next click
//we add a new event on the body in order to hide the panel for the next click
this.event = Y.one(document.body).on('click', this.hide, this);
//we add a new event on the overlay in order to hide the overlay for the next click (touch device)
this.overlayevent = Y.one("#imageoverlay").on('click', this.hide, this);
//we add a new event on the panel in order to hide the panel for the next click (touch device)
this.panelevent = Y.one("#imageoverlay").on('click', this.hide, this);
this.overlay.on('visibleChange',function(e){
this.panel.on('visibleChange',function(e){
if(e.newVal == 0){
this.get('maskNode').remove()
}
@@ -167,14 +167,14 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
//hide the loading image
Y.one('#hubloadingimage').setStyle('display', 'none');
this.overlay.hide(); //hide the overlay
this.panel.hide(); //hide the panel
if (this.event != null) {
this.event.detach(); //we need to detach the body hide event
//Note: it would work without but create js warning everytime
//we click on the body
}
if (this.overlayevent != null) {
this.overlayevent.detach(); //we need to detach the overlay hide event
if (this.panelevent != null) {
this.panelevent.detach(); //we need to detach the panel hide event
//Note: it would work without but create js warning everytime
//we click on the body
}
@@ -195,5 +195,5 @@ YUI.add('moodle-block_community-imagegallery', function(Y) {
}
}, '@VERSION@', {
requires:['base','node','overlay', 'moodle-enrol-notification']
requires:['base','node', 'moodle-enrol-notification']
});
+143 -142
View File
@@ -19,15 +19,14 @@
*
* @package block
* @subpackage completion
* @copyright 2009 Catalyst IT Ltd
* @copyright 2009-2012 Catalyst IT Ltd
* @author Aaron Barnes <aaronb@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/completionlib.php');
require_once("{$CFG->libdir}/completionlib.php");
/**
* Course completion status
@@ -40,21 +39,25 @@ class block_completionstatus extends block_base {
}
public function get_content() {
global $USER, $CFG, $DB, $COURSE;
global $USER;
// If content is cached
if ($this->content !== NULL) {
return $this->content;
}
$course = $this->page->course;
// Create empty content
$this->content = new stdClass;
$this->content = new stdClass();
$context = get_context_instance(CONTEXT_COURSE, $course->id);
// Can edit settings?
$can_edit = has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $this->page->course->id));
$can_edit = has_capability('moodle/course:update', $context);
// Get course completion data
$info = new completion_info($this->page->course);
$info = new completion_info($course);
// Don't display if completion isn't enabled!
if (!completion_info::is_enabled_for_site()) {
@@ -82,147 +85,145 @@ class block_completionstatus extends block_base {
}
// Check this user is enroled
if (!$info->is_tracked_user($USER->id)) {
// If not enrolled, but are can view the report:
if (has_capability('report/completion:view', get_context_instance(CONTEXT_COURSE, $COURSE->id))) {
$this->content->text = '<a href="'.$CFG->wwwroot.'/report/completion/index.php?course='.$COURSE->id.
'">'.get_string('viewcoursereport', 'completion').'</a>';
return $this->content;
if ($info->is_tracked_user($USER->id)) {
// Generate markup for criteria statuses
$shtml = '';
// For aggregating activity completion
$activities = array();
$activities_complete = 0;
// For aggregating course prerequisites
$prerequisites = array();
$prerequisites_complete = 0;
// Flag to set if current completion data is inconsistent with
// what is stored in the database
$pending_update = false;
// Loop through course criteria
foreach ($completions as $completion) {
$criteria = $completion->get_criteria();
$complete = $completion->is_complete();
if (!$pending_update && $criteria->is_pending($completion)) {
$pending_update = true;
}
// Activities are a special case, so cache them and leave them till last
if ($criteria->criteriatype == COMPLETION_CRITERIA_TYPE_ACTIVITY) {
$activities[$criteria->moduleinstance] = $complete;
if ($complete) {
$activities_complete++;
}
continue;
}
// Prerequisites are also a special case, so cache them and leave them till last
if ($criteria->criteriatype == COMPLETION_CRITERIA_TYPE_COURSE) {
$prerequisites[$criteria->courseinstance] = $complete;
if ($complete) {
$prerequisites_complete++;
}
continue;
}
$shtml .= '<tr><td>';
$shtml .= $criteria->get_title();
$shtml .= '</td><td style="text-align: right">';
$shtml .= $completion->get_status();
$shtml .= '</td></tr>';
}
// Otherwise, show error
// Aggregate activities
if (!empty($activities)) {
$shtml .= '<tr><td>';
$shtml .= get_string('activitiescompleted', 'completion');
$shtml .= '</td><td style="text-align: right">';
$a = new stdClass();
$a->first = $activities_complete;
$a->second = count($activities);
$shtml .= get_string('firstofsecond', 'block_completionstatus', $a);
$shtml .= '</td></tr>';
}
// Aggregate prerequisites
if (!empty($prerequisites)) {
$phtml = '<tr><td>';
$phtml .= get_string('prerequisitescompleted', 'completion');
$phtml .= '</td><td style="text-align: right">';
$a = new stdClass();
$a->first = $prerequisites_complete;
$a->second = count($prerequisites);
$phtml .= get_string('firstofsecond', 'block_completionstatus', $a);
$phtml .= '</td></tr>';
$shtml = $phtml . $shtml;
}
// Display completion status
$this->content->text = '<table width="100%" style="font-size: 90%;"><tbody>';
$this->content->text .= '<tr><td colspan="2"><b>'.get_string('status').':</b> ';
// Is course complete?
$coursecomplete = $info->is_course_complete($USER->id);
// Load course completion
$params = array(
'userid' => $USER->id,
'course' => $course->id
);
$ccompletion = new completion_completion($params);
// Has this user completed any criteria?
$criteriacomplete = $info->count_course_user_data($USER->id);
if ($pending_update) {
$this->content->text .= '<i>'.get_string('pending', 'completion').'</i>';
} else if ($coursecomplete) {
$this->content->text .= get_string('complete');
} else if (!$criteriacomplete && !$ccompletion->timestarted) {
$this->content->text .= '<i>'.get_string('notyetstarted', 'completion').'</i>';
} else {
$this->content->text .= '<i>'.get_string('inprogress','completion').'</i>';
}
$this->content->text .= '</td></tr>';
$this->content->text .= '<tr><td colspan="2">';
// Get overall aggregation method
$overall = $info->get_aggregation_method();
if ($overall == COMPLETION_AGGREGATION_ALL) {
$this->content->text .= get_string('criteriarequiredall', 'completion');
} else {
$this->content->text .= get_string('criteriarequiredany', 'completion');
}
$this->content->text .= ':</td></tr>';
$this->content->text .= '<tr><td><b>'.get_string('requiredcriteria', 'completion').'</b></td><td style="text-align: right"><b>'.get_string('status').'</b></td></tr>';
$this->content->text .= $shtml.'</tbody></table>';
// Display link to detailed view
$details = new moodle_url('/blocks/completionstatus/details.php', array('course' => $course->id));
$this->content->footer = '<br><a href="'.$details->out().'">'.get_string('moredetails', 'completion').'</a>';
} else {
// If user is not enrolled, show error
$this->content->text = get_string('notenroled', 'completion');
return $this->content;
}
// Generate markup for criteria statuses
$shtml = '';
// For aggregating activity completion
$activities = array();
$activities_complete = 0;
// For aggregating course prerequisites
$prerequisites = array();
$prerequisites_complete = 0;
// Flag to set if current completion data is inconsistent with
// what is stored in the database
$pending_update = false;
// Loop through course criteria
foreach ($completions as $completion) {
$criteria = $completion->get_criteria();
$complete = $completion->is_complete();
if (!$pending_update && $criteria->is_pending($completion)) {
$pending_update = true;
}
// Activities are a special case, so cache them and leave them till last
if ($criteria->criteriatype == COMPLETION_CRITERIA_TYPE_ACTIVITY) {
$activities[$criteria->moduleinstance] = $complete;
if ($complete) {
$activities_complete++;
}
continue;
}
// Prerequisites are also a special case, so cache them and leave them till last
if ($criteria->criteriatype == COMPLETION_CRITERIA_TYPE_COURSE) {
$prerequisites[$criteria->courseinstance] = $complete;
if ($complete) {
$prerequisites_complete++;
}
continue;
}
$shtml .= '<tr><td>';
$shtml .= $criteria->get_title();
$shtml .= '</td><td style="text-align: right">';
$shtml .= $completion->get_status();
$shtml .= '</td></tr>';
if (has_capability('report/completion:view', $context)) {
$report = new moodle_url('/report/completion/index.php', array('course' => $course->id));
$this->content->footer .= '<br /><a href="'.$report->out().'">'.get_string('viewcoursereport', 'completion').'</a>';
}
// Aggregate activities
if (!empty($activities)) {
$shtml .= '<tr><td>';
$shtml .= get_string('activitiescompleted', 'completion');
$shtml .= '</td><td style="text-align: right">';
$a = new stdClass();
$a->first = $activities_complete;
$a->second = count($activities);
$shtml .= get_string('firstofsecond', 'block_completionstatus', $a);
$shtml .= '</td></tr>';
}
// Aggregate prerequisites
if (!empty($prerequisites)) {
$phtml = '<tr><td>';
$phtml .= get_string('prerequisitescompleted', 'completion');
$phtml .= '</td><td style="text-align: right">';
$a = new stdClass();
$a->first = $prerequisites_complete;
$a->second = count($prerequisites);
$shtml .= get_string('firstofsecond', 'block_completionstatus', $a);
$phtml .= '</td></tr>';
$shtml = $phtml . $shtml;
}
// Display completion status
$this->content->text = '<table width="100%" style="font-size: 90%;"><tbody>';
$this->content->text .= '<tr><td colspan="2"><b>'.get_string('status').':</b> ';
// Is course complete?
$coursecomplete = $info->is_course_complete($USER->id);
// Load course completion
$params = array(
'userid' => $USER->id,
'course' => $COURSE->id
);
$ccompletion = new completion_completion($params);
// Has this user completed any criteria?
$criteriacomplete = $info->count_course_user_data($USER->id);
if ($pending_update) {
$this->content->text .= '<i>'.get_string('pending', 'completion').'</i>';
} else if ($coursecomplete) {
$this->content->text .= get_string('complete');
} else if (!$criteriacomplete && !$ccompletion->timestarted) {
$this->content->text .= '<i>'.get_string('notyetstarted', 'completion').'</i>';
} else {
$this->content->text .= '<i>'.get_string('inprogress','completion').'</i>';
}
$this->content->text .= '</td></tr>';
$this->content->text .= '<tr><td colspan="2">';
// Get overall aggregation method
$overall = $info->get_aggregation_method();
if ($overall == COMPLETION_AGGREGATION_ALL) {
$this->content->text .= get_string('criteriarequiredall', 'completion');
} else {
$this->content->text .= get_string('criteriarequiredany', 'completion');
}
$this->content->text .= ':</td></tr>';
$this->content->text .= '<tr><td><b>'.get_string('requiredcriteria', 'completion').'</b></td><td style="text-align: right"><b>'.get_string('status').'</b></td></tr>';
$this->content->text .= $shtml.'</tbody></table>';
// Display link to detailed view
$this->content->footer = '<br><a href="'.$CFG->wwwroot.'/blocks/completionstatus/details.php?course='.$COURSE->id.'">'.get_string('moredetails', 'completion').'</a>';
return $this->content;
}
}
+130 -115
View File
@@ -19,27 +19,23 @@
*
* @package block
* @subpackage completion
* @copyright 2009 Catalyst IT Ltd
* @copyright 2009-2012 Catalyst IT Ltd
* @author Aaron Barnes <aaronb@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once('../../config.php');
require_once($CFG->libdir.'/completionlib.php');
// TODO: Make this page Moodle 2.0 compliant
require_once(dirname(__FILE__).'/../../config.php');
require_once("{$CFG->libdir}/completionlib.php");
///
/// Load data
///
$id = required_param('course', PARAM_INT);
// User id
$userid = optional_param('user', 0, PARAM_INT);
// Load course
$course = $DB->get_record('course', array('id' => $id));
$course = $DB->get_record('course', array('id' => $id), '*', MUST_EXIST);
// Load user
if ($userid) {
@@ -76,21 +72,13 @@ if (!$can_view) {
// Load completion data
$info = new completion_info($course);
$returnurl = "{$CFG->wwwroot}/course/view.php?id={$id}";
$returnurl = new moodle_url('/course/view.php', array('id' => $id));
// Don't display if completion isn't enabled!
if (!$info->is_enabled()) {
print_error('completionnotenabled', 'completion', $returnurl);
}
// Load criteria to display
$completions = $info->get_completions($user->id);
// Check if this course has any criteria
if (empty($completions)) {
print_error('nocriteriaset', 'completion', $returnurl);
}
// Check this user is enroled
if (!$info->is_tracked_user($user->id)) {
if ($USER->id == $user->id) {
@@ -104,6 +92,7 @@ if (!$info->is_tracked_user($user->id)) {
///
/// Display page
///
$PAGE->set_context(context_course::instance($course->id));
// Print header
$page = get_string('completionprogressdetails', 'block_completionstatus');
@@ -111,7 +100,7 @@ $title = format_string($course->fullname) . ': ' . $page;
$PAGE->navbar->add($page);
$PAGE->set_pagelayout('standard');
$PAGE->set_url('/blocks/completionstatus/details.php', array('course' => $course->id));
$PAGE->set_url('/blocks/completionstatus/details.php', array('course' => $course->id, 'user' => $user->id));
$PAGE->set_title(get_string('course') . ': ' . $course->fullname);
$PAGE->set_heading($title);
echo $OUTPUT->header();
@@ -135,122 +124,148 @@ $coursecomplete = $info->is_course_complete($user->id);
// Has this user completed any criteria?
$criteriacomplete = $info->count_course_user_data($user->id);
// Load course completion
$params = array(
'userid' => $user->id,
'course' => $course->id,
);
$ccompletion = new completion_completion($params);
if ($coursecomplete) {
echo get_string('complete');
} else if (!$criteriacomplete) {
} else if (!$criteriacomplete && !$ccompletion->timestarted) {
echo '<i>'.get_string('notyetstarted', 'completion').'</i>';
} else {
echo '<i>'.get_string('inprogress','completion').'</i>';
}
echo '</td></tr>';
echo '<tr><td colspan="2"><b>'.get_string('required').':</b> ';
// Get overall aggregation method
$overall = $info->get_aggregation_method();
// Load criteria to display
$completions = $info->get_completions($user->id);
if ($overall == COMPLETION_AGGREGATION_ALL) {
echo get_string('criteriarequiredall', 'completion');
// Check if this course has any criteria
if (empty($completions)) {
echo '<tr><td colspan="2"><br />';
echo $OUTPUT->box(get_string('err_nocriteria', 'completion'), 'noticebox');
echo '</td></tr></tbody></table>';
} else {
echo get_string('criteriarequiredany', 'completion');
}
echo '<tr><td colspan="2"><b>'.get_string('required').':</b> ';
echo '</td></tr></tbody></table>';
// Get overall aggregation method
$overall = $info->get_aggregation_method();
// Generate markup for criteria statuses
echo '<table class="generalbox boxaligncenter" cellpadding="3"><tbody>';
echo '<tr class="ccheader">';
echo '<th class="c0 header" scope="col">'.get_string('criteriagroup', 'block_completionstatus').'</th>';
echo '<th class="c1 header" scope="col">'.get_string('criteria', 'completion').'</th>';
echo '<th class="c2 header" scope="col">'.get_string('requirement', 'block_completionstatus').'</th>';
echo '<th class="c3 header" scope="col">'.get_string('status').'</th>';
echo '<th class="c4 header" scope="col">'.get_string('complete').'</th>';
echo '<th class="c5 header" scope="col">'.get_string('completiondate', 'report_completion').'</th>';
echo '</tr>';
// Save row data
$rows = array();
global $COMPLETION_CRITERIA_TYPES;
// Loop through course criteria
foreach ($completions as $completion) {
$criteria = $completion->get_criteria();
$complete = $completion->is_complete();
$row = array();
$row['type'] = $criteria->criteriatype;
$row['title'] = $criteria->get_title();
$row['status'] = $completion->get_status();
$row['timecompleted'] = $completion->timecompleted;
$row['details'] = $criteria->get_details($completion);
$rows[] = $row;
}
// Print table
$last_type = '';
$agg_type = false;
foreach ($rows as $row) {
// Criteria group
echo '<td class="c0">';
if ($last_type !== $row['details']['type']) {
$last_type = $row['details']['type'];
echo $last_type;
// Reset agg type
$agg_type = true;
if ($overall == COMPLETION_AGGREGATION_ALL) {
echo get_string('criteriarequiredall', 'completion');
} else {
// Display aggregation type
if ($agg_type) {
$agg = $info->get_aggregation_method($row['type']);
echo '(<i>';
if ($agg == COMPLETION_AGGREGATION_ALL) {
echo strtolower(get_string('all', 'completion'));
} else {
echo strtolower(get_string('any', 'completion'));
}
echo '</i> '.strtolower(get_string('required')).')';
$agg_type = false;
}
echo get_string('criteriarequiredany', 'completion');
}
echo '</td>';
// Criteria title
echo '<td class="c1">';
echo $row['details']['criteria'];
echo '</td>';
echo '</td></tr></tbody></table>';
// Requirement
echo '<td class="c2">';
echo $row['details']['requirement'];
echo '</td>';
// Status
echo '<td class="c3">';
echo $row['details']['status'];
echo '</td>';
// Is complete
echo '<td class="c4">';
echo ($row['status'] === get_string('yes')) ? get_string('yes') : get_string('no');
echo '</td>';
// Completion data
echo '<td class="c5">';
if ($row['timecompleted']) {
echo userdate($row['timecompleted'], '%e %B %G');
} else {
echo '-';
}
echo '</td>';
// Generate markup for criteria statuses
echo '<table class="generalbox logtable boxaligncenter" id="criteriastatus" width="100%"><tbody>';
echo '<tr class="ccheader">';
echo '<th class="c0 header" scope="col">'.get_string('criteriagroup', 'block_completionstatus').'</th>';
echo '<th class="c1 header" scope="col">'.get_string('criteria', 'completion').'</th>';
echo '<th class="c2 header" scope="col">'.get_string('requirement', 'block_completionstatus').'</th>';
echo '<th class="c3 header" scope="col">'.get_string('status').'</th>';
echo '<th class="c4 header" scope="col">'.get_string('complete').'</th>';
echo '<th class="c5 header" scope="col">'.get_string('completiondate', 'report_completion').'</th>';
echo '</tr>';
// Save row data
$rows = array();
// Loop through course criteria
foreach ($completions as $completion) {
$criteria = $completion->get_criteria();
$row = array();
$row['type'] = $criteria->criteriatype;
$row['title'] = $criteria->get_title();
$row['status'] = $completion->get_status();
$row['complete'] = $completion->is_complete();
$row['timecompleted'] = $completion->timecompleted;
$row['details'] = $criteria->get_details($completion);
$rows[] = $row;
}
// Print table
$last_type = '';
$agg_type = false;
$oddeven = 0;
foreach ($rows as $row) {
echo '<tr class="r' . $oddeven . '">';
// Criteria group
echo '<td class="cell c0">';
if ($last_type !== $row['details']['type']) {
$last_type = $row['details']['type'];
echo $last_type;
// Reset agg type
$agg_type = true;
} else {
// Display aggregation type
if ($agg_type) {
$agg = $info->get_aggregation_method($row['type']);
echo '(<i>';
if ($agg == COMPLETION_AGGREGATION_ALL) {
echo strtolower(get_string('aggregateall', 'completion'));
} else {
echo strtolower(get_string('aggregateany', 'completion'));
}
echo '</i> '.strtolower(get_string('required')).')';
$agg_type = false;
}
}
echo '</td>';
// Criteria title
echo '<td class="cell c1">';
echo $row['details']['criteria'];
echo '</td>';
// Requirement
echo '<td class="cell c2">';
echo $row['details']['requirement'];
echo '</td>';
// Status
echo '<td class="cell c3">';
echo $row['details']['status'];
echo '</td>';
// Is complete
echo '<td class="cell c4">';
echo $row['complete'] ? get_string('yes') : get_string('no');
echo '</td>';
// Completion data
echo '<td class="cell c5">';
if ($row['timecompleted']) {
echo userdate($row['timecompleted'], get_string('strftimedate', 'langconfig'));
} else {
echo '-';
}
echo '</td>';
echo '</tr>';
// for row striping
$oddeven = $oddeven ? 0 : 1;
}
echo '</tbody></table>';
}
echo '</tbody></table>';
echo '<div class="buttons">';
$courseurl = new moodle_url("/course/view.php", array('id' => $course->id));
echo $OUTPUT->single_button($courseurl, get_string('returntocourse', 'block_completionstatus'), 'get');
echo '</div>';
echo $OUTPUT->footer();
@@ -6,3 +6,4 @@ $string['criteriagroup'] = 'Criteria group';
$string['firstofsecond'] = '{$a->first} of {$a->second}';
$string['pluginname'] = 'Course completion status';
$string['requirement'] = 'Requirement';
$string['returntocourse'] = 'Return to course';
+21 -5
View File
@@ -164,7 +164,7 @@ M.core_dock.init = function(Y) {
var dock = Y.one('#dock');
if (!dock) {
// Start the construction of the dock
dock = Y.Node.create('<div id="dock" class="'+css.dock+' '+css.dock+'_'+this.cfg.position+'_'+this.cfg.orientation+'"></div>')
dock = Y.Node.create('<div id="dock" role="menubar" class="'+css.dock+' '+css.dock+'_'+this.cfg.position+'_'+this.cfg.orientation+'"></div>')
.append(Y.Node.create('<div class="'+css.buttonscontainer+'"></div>')
.append(Y.Node.create('<div class="'+css.dockeditemcontainer+'"></div>')));
this.nodes.body.append(dock);
@@ -505,7 +505,7 @@ M.core_dock.fixTitleOrientation = function(item, title, text) {
break;
}
if (Y.UA.ie > 7) {
if (Y.UA.ie == 8) {
// IE8 can flip the text via CSS but not handle SVG
title.setContent(text);
title.setAttribute('style', 'writing-mode: tb-rl; filter: flipV flipH;display:inline;');
@@ -863,6 +863,12 @@ M.core_dock.genericblock.prototype = {
return;
}
// Disable the skip anchor when docking
var skipanchor = node.previous();
if (skipanchor.hasClass('skip-block')) {
skipanchor.hide();
}
var blockclass = (function(classes){
var r = /(^|\s)(block_[a-zA-Z0-9_]+)(\s|$)/;
var m = r.exec(classes);
@@ -910,7 +916,7 @@ M.core_dock.genericblock.prototype = {
}, this);
// Add a close icon
// Must set the image src seperatly of we get an error with XML strict headers
var closeicon = Y.Node.create('<span class="hidepanelicon" tabindex="0"><img alt="" style="width:11px;height:11px;cursor:pointer;" /></span>');
var closeicon = Y.Node.create('<span class="hidepanelicon" tabindex="0"><img alt="'+M.str.block.hidepanel+'" title="'+M.str.block.hidedockpanel+'" style="width:11px;height:11px;cursor:pointer;"/></span>');
closeicon.one('img').setAttribute('src', M.util.image_url('t/dockclose', 'moodle'));
closeicon.on('forceclose|click', this.hide, this);
closeicon.on('dock:actionkey',this.hide, this, {actions:{enter:true,toggle:true}});
@@ -937,6 +943,12 @@ M.core_dock.genericblock.prototype = {
return_to_block : function(dockitem) {
var placeholder = this.Y.one('#content_placeholder_'+this.id);
// Enable the skip anchor when going back to block mode
var skipanchor = placeholder.previous();
if (skipanchor.hasClass('skip-block')) {
skipanchor.show();
}
if (this.cachedcontentnode.one('.header')) {
this.cachedcontentnode.one('.header').insert(dockitem.contents, 'after');
} else {
@@ -946,7 +958,7 @@ M.core_dock.genericblock.prototype = {
placeholder.replace(this.Y.Node.getDOMNode(this.cachedcontentnode));
this.cachedcontentnode = this.Y.one('#'+this.cachedcontentnode.get('id'));
var commands = this.cachedcontentnode.one('.title .commands');
var commands = dockitem.commands;
if (commands) {
commands.all('.hidepanelicon').remove();
commands.all('.moveto').remove();
@@ -1024,7 +1036,7 @@ M.core_dock.item.prototype = {
var Y = this.Y;
var css = M.core_dock.css;
this.nodes.docktitle = Y.Node.create('<div id="dock_item_'+this.id+'_title" class="'+css.dockedtitle+'"></div>');
this.nodes.docktitle = Y.Node.create('<div id="dock_item_'+this.id+'_title" role="menu" aria-haspopup="true" class="'+css.dockedtitle+'"></div>');
this.nodes.docktitle.append(this.title);
this.nodes.dockitem = Y.Node.create('<div id="dock_item_'+this.id+'" class="'+css.dockeditem+'" tabindex="0"></div>');
this.nodes.dockitem.on('dock:actionkey', this.toggle, this);
@@ -1053,6 +1065,8 @@ M.core_dock.item.prototype = {
this.active = true;
// Add active item class first up
this.nodes.docktitle.addClass(css.activeitem);
// Set aria-exapanded property to true.
this.nodes.docktitle.set('aria-expanded', "true");
this.fire('dockeditem:showcomplete');
M.core_dock.resize();
return true;
@@ -1069,6 +1083,8 @@ M.core_dock.item.prototype = {
this.nodes.docktitle.removeClass(css.activeitem);
// Hide the panel
M.core_dock.getPanel().hide();
// Set aria-exapanded property to false
this.nodes.docktitle.set('aria-expanded', "false");
this.fire('dockeditem:hidecomplete');
},
/**
+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>';
}
}
+19 -3
View File
@@ -24,13 +24,29 @@
*/
function block_html_pluginfile($course, $birecord_or_cm, $context, $filearea, $args, $forcedownload) {
global $SCRIPT;
global $DB, $CFG;
if ($context->contextlevel != CONTEXT_BLOCK) {
send_file_not_found();
}
require_course_login($course);
// If block is in course context, then check if user has capability to access course.
if ($context->get_course_context(false)) {
require_course_login($course);
} else if ($CFG->forcelogin) {
require_login();
} else {
// Get parent context and see if user have proper permission.
$parentcontext = $context->get_parent_context();
if ($parentcontext->contextlevel === CONTEXT_COURSECAT) {
// Check if category is visible and user can view this category.
$category = $DB->get_record('course_categories', array('id' => $parentcontext->instanceid), '*', MUST_EXIST);
if (!$category->visible) {
require_capability('moodle/category:viewhiddencategories', $parentcontext);
}
}
// At this point there is no way to check SYSTEM or USER context, so ignoring it.
}
if ($filearea !== 'content') {
send_file_not_found();
@@ -79,4 +95,4 @@ function block_html_global_db_replace($search, $replace) {
}
}
$instances->close();
}
}
+8 -1
View File
@@ -30,6 +30,11 @@ 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)));
// Skip elements which have no content and no action - no point in showing them
if (!$isexpandable && empty($item->action)) {
continue;
}
$hasicon = ((!$isbranch || $item->type == navigation_node::TYPE_ACTIVITY || $item->type == navigation_node::TYPE_RESOURCE) && $item->icon instanceof renderable);
if ($hasicon) {
@@ -69,18 +74,20 @@ class block_navigation_renderer extends plugin_renderer_base {
// this applies to the li item which contains all child lists too
$liclasses = array($item->get_css_type(), 'depth_'.$depth);
$liexpandable = array();
if ($item->has_children() && (!$item->forceopen || $item->collapse)) {
$liclasses[] = 'collapsed';
}
if ($isbranch) {
$liclasses[] = 'contains_branch';
$liexpandable = array('aria-expanded' => in_array('collapsed', $liclasses) ? "false" : "true");
} else if ($hasicon) {
$liclasses[] = 'item_with_icon';
}
if ($item->isactive === true) {
$liclasses[] = 'current_branch';
}
$liattr = array('class'=>join(' ',$liclasses));
$liattr = array('class' => join(' ',$liclasses)) + $liexpandable;
// class attribute on the div item which only contains the item content
$divclasses = array('tree_item');
if ($isbranch) {
+6
View File
@@ -162,16 +162,20 @@ TREE.prototype = {
switch (e.action) {
case 'expand' :
target.removeClass('collapsed');
target.set('aria-expanded', true);
break;
case 'collapse' :
target.addClass('collapsed');
target.set('aria-expanded', false);
break;
default :
target.toggleClass('collapsed');
target.set('aria-expanded', !target.hasClass('collapsed'));
}
e.halt();
} else {
target.toggleClass('collapsed');
target.set('aria-expanded', !target.hasClass('collapsed'));
}
}
@@ -180,6 +184,7 @@ TREE.prototype = {
target.siblings('li').each(function(){
if (this.get('id') !== target.get('id') && !this.hasClass('collapsed')) {
this.addClass('collapsed');
this.set('aria-expanded', false);
}
});
}
@@ -287,6 +292,7 @@ BRANCH.prototype = {
}
if (isbranch) {
branchli.addClass('collapsed').addClass('contains_branch');
branchli.set('aria-expanded', false);
branchp.addClass('branch');
}
+1 -1
View File
@@ -106,7 +106,7 @@ class block_news_items extends block_base {
$tooltiptext = get_string('rsssubscriberssposts','forum');
}
if (!isloggedin()) {
$userid = 0;
$userid = $CFG->siteguest;
} else {
$userid = $USER->id;
}

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