1800 Commits

Author SHA1 Message Date
Sam Hemelryk
3211569a6a Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
This reverts commit f9f281b8fee75c2416d71bae7583fd026b9ccabb.
2012-04-11 17:18:58 +12:00
Dan Poltawski
7a1ed64587 Merge branch 'w15_MDL-32323_m23_phpunit3' of git://github.com/skodak/moodle 2012-04-11 09:32:58 +08:00
Eloy Lafuente (stronk7)
6565d55a34 MDL-22895 backup: minor fixes 2012-04-11 01:47:53 +02:00
Eloy Lafuente (stronk7)
f229d83c11 Merge branch 'MDL-22895-master' of git://github.com/ankitagarwal/moodle 2012-04-11 01:44:39 +02:00
Petr Skoda
3f1e87973f MDL-32323 always create test dirs using standard functions and close handles before delete 2012-04-10 15:27:07 +02:00
Petr Skoda
bd4d412a10 MDL-32323 do not write to system /tmp/ in tests 2012-04-10 15:27:07 +02:00
Sam Hemelryk
5bfeb5ffd3 Merge branch 'MDL-30843_b' of git://github.com/rwijaya/moodle 2012-04-10 12:34:37 +12:00
Petr Skoda
4b02743182 MDL-32149 improve testcase naming and list in config file 2012-04-03 22:30:57 +02:00
Petr Skoda
1cbf2a20ca MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase 2012-04-03 22:30:56 +02:00
Petr Skoda
4ac88d6d10 MDL-32149 remaining phpunit tests for backup/restore 2012-04-03 22:30:55 +02:00
Petr Skoda
dbf5a44798 MDL-32149 add backup tests and dropping of extra tables 2012-04-03 22:30:54 +02:00
Eloy Lafuente (stronk7)
c9d1f4338b MDL-32251 Two more E_STRICT detected on tests execution 2012-04-03 21:59:25 +02:00
Ankit Agarwal
8331a159c5 MDL-22895 backup: Adding the feature to support backing up and restoring calendar events 2012-04-02 13:58:33 +08:00
Rossiani Wijaya
f9f281b8fe MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 16:26:58 +08:00
Petr Skoda
caee6e6c26 MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
Petr Skoda
748e96512b MDL-32095 fix backup API to be E_STRICT compatible 2012-03-26 16:04:16 +02:00
Petr Skoda
5ec6c45fd4 MDL-32095 fix backup API to be E_STRICT 2012-03-26 15:30:04 +02:00
Sam Hemelryk
8149d6240a MDL-19125 lib: Fixed up inline comments during integration 2012-03-19 10:08:47 +13:00
Tim Hunt
9665ecd275 MDL-19125 module restrictions: use a capability
1. This used to use a complex legacy system which was buggy.

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

3. All the legacy code has been stripped out.

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

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

6. There is a developer debug warning about modules that are missing the
addinstance capability, unless they are MOD_ARCHETYPE_SYSTEM mods.
2012-03-15 17:11:27 +00:00
Sam Hemelryk
00f286ed7b MDL-31175 backup: Fixed undefined in register_dependency 2012-03-12 09:42:50 +13:00
Eloy Lafuente (stronk7)
2ed7cc2730 Merge branch 'w10_MDL-31301_m23_textlibcleanup' of git://github.com/skodak/moodle 2012-03-06 16:06:53 +01:00
Sam Hemelryk
cb0a069019 Merge branch 'MDL-27764' of git://github.com/stronk7/moodle 2012-03-06 10:19:28 +13:00
Eloy Lafuente (stronk7)
b904130b5b MDL-27764 restore - always restore as much info as possible (1.9 approach)
In 2.0 we had reduced the types of restore operations where we allow
to load the section names and section descriptions, only proceeding
when restoring to new course or to existing course, deleting.

With this patch, we change to the old 1.9 way, that was to restore
the section information always, no matter of the type of restore
operation (course restore, import, to new or to existing course,
deleting or adding). The only exception is that it's always checked that
the target section names and descriptions are empty.
2012-03-05 02:41:33 +01:00
Sam Hemelryk
9394d86367 Merge branch 'MDL-26037' of git://github.com/stronk7/moodle 2012-03-05 14:03:34 +13:00
Petr Skoda
6f3451e540 MDL-31301 remove all uses of moodle_strtolower() and deprecated it 2012-03-03 11:46:26 +01:00
Petr Skoda
f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Eloy Lafuente (stronk7)
cb7fc350cb MDL-26037 restore: fixes for mssql, php 5.4 and small improvs 2012-03-01 13:18:45 +01:00
Tony Levi
a4df8560cc MDL-26037: import: display search box even when no courses are currently displayed 2012-03-01 13:18:45 +01:00
Tony Levi
d0c94a1e84 MDL-26037: restore/import: check through all courses instead of only first 250 2012-03-01 13:18:45 +01:00
Eloy Lafuente (stronk7)
ac6dc09c26 MDL-29248 backup: take rid of the setting and code handling the 'private' user filearea 2012-03-01 13:09:47 +01:00
Eloy Lafuente (stronk7)
f88224624d MDL-29248 backup: delete user_files settings, lang strings and uses 2012-03-01 13:09:47 +01:00
Eloy Lafuente (stronk7)
38a9c86fcb MDL-30982 fix one incorrect defined() 2012-02-29 02:41:17 +01:00
David Mudrak
c1d4413e20 MDL-30982 Fixing invalid @example tag usage 2012-02-27 12:06:24 +01:00
David Mudrak
a75af402af MDL-30982 Activity module stepslib - API documentation 2012-02-27 11:59:43 +01:00
David Mudrak
85aad2ef97 MDL-30982 Documenting some parts of backup settings machinery 2012-02-27 11:59:43 +01:00
David Mudrak
f9dab4bed2 MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
David Mudrak
58b322cfd2 MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
David Mudrak
cfab878c5d MDL-30982 Improving phpDocs for the class backup_activity_task 2012-02-27 11:59:42 +01:00
Eloy Lafuente (stronk7)
8c4988cd3b Merge branch 'MDL-31561' of git://github.com/kiklop74/moodle 2012-02-21 02:30:14 +01:00
Eloy Lafuente (stronk7)
a96fb50192 Merge branch 'MDL-31562' of git://github.com/kiklop74/moodle 2012-02-21 02:28:14 +01:00
Eloy Lafuente (stronk7)
f4319f8531 Merge branch 'wip-mdl-25432' of git://github.com/rajeshtaneja/moodle 2012-02-21 02:10:10 +01:00
Rajesh Taneja
5f1f726e68 MDL-25432 backup: Catching exception for orphan course modules and it's block (if any), and logging them, no exception will be thrown for this now. 2012-02-20 09:28:55 +08:00
Eloy Lafuente (stronk7)
ee1dc83574 MDL-31532 restore: avoid null course->hiddensections problems. Credit goes to Petri Asikainen. Thanks! 2012-02-20 01:34:25 +01:00
Darko Miletic
5b6d8a05f4 MDL-31562: Implemented support for exporting labels, minor additional
cleanups
2012-02-08 16:11:59 -03:00
Darko Miletic
5758596b95 MDL-31561: Implemented fix for honoring correct number of course
sections
2012-02-08 16:01:55 -03:00
Eloy Lafuente (stronk7)
ade31f5f4f Merge branch 'MDL-31314' of git://github.com/timhunt/moodle 2012-01-31 17:06:01 +01:00
Tim Hunt
a60835c721 MDL-31314 gradebook restore: fix category.depth on restore.
Without this, restoring backups made with the OU's custom 'restore from
1.9' feature, and possibly other people's custom converstion code, does
not work properly.

Also, fix poor recordset code.
2012-01-30 12:31:43 +00:00
David Mudrak
10d7dac528 MDL-31317 original_site_identifier_hash falls back to null during the backup conversion
Even if the site identifier is not defined in the source 1.9 backup then the
converted 2.0 version should still contain the element to prevent PHP
notices on direct assignment.
2012-01-27 08:48:37 +01:00
Sam Hemelryk
235fcb6632 Merge branch 'w04_MDL-31172_m23_fullpath' of git://github.com/skodak/moodle 2012-01-23 16:09:41 +08:00
Petr Skoda
64cec5b2b0 MDL-31172 fix variable name typo in backup file logger 2012-01-21 20:19:34 +01:00