Commit Graph

202 Commits

Author SHA1 Message Date
tjhunt f6bde593c7 Missing addslashes. Merged from MOODLE_17_STABLE. 2006-10-19 10:24:04 +00:00
thompson697 cf0b1faded Apply modularity to the creation of the log file during restore to a new course.
Remove the responsibility for loging the application of the course start date offset, from activity modules to the backup module.
Merged from stable branch
2006-10-17 10:05:41 +00:00
toyomoyo 10b7946ff3 merged fix for warnigns 2006-10-12 08:33:52 +00:00
toyomoyo 121d921b4c merged fixing notices 2006-10-12 06:58:14 +00:00
toyomoyo 75a8c12838 merged, getting rid of warnings 2006-10-12 02:13:58 +00:00
toyomoyo beba128f6d fix for MDL-6831 2006-10-10 03:17:49 +00:00
skodak 57f1b91497 fixed some incorrect strtolower() calls that were breaking non ascii languages MDL-6135 2006-10-07 20:47:54 +00:00
toyomoyo 013b90ed92 a few fixes, for MDL-6836, MDL-6835, and MDL-6765 2006-10-05 04:05:07 +00:00
thompson697 eb87ac71c5 Change creation of restorelog file location to protected backupdata folder.
Reassign style and language links
2006-10-04 14:50:50 +00:00
toyomoyo c0c98c7c78 fixing roles support for backup/restore 2006-10-04 09:01:50 +00:00
vyshane e0539647aa Added $restore->mods[$mod->type]->granular to restore_create_sections() and to restore_create_modules(). This defines whether we are doing a granular restore where we care about the individual module instances to be restored, or whether we are not doing a granular restore, in which case we just restore all course module instances. 2006-10-04 08:35:00 +00:00
toyomoyo 5e67946d6c adding support for 1.6->1.7 backups 2006-10-03 08:54:46 +00:00
toyomoyo 8020a0162f roles and capability support for backups. role mapping is in, please help test, thanks 2006-10-02 08:49:07 +00:00
toyomoyo 89a66e5405 changes in backup/restore for roles. fixed bug related to wrong context in backuplib.php added code to handle addition of new roles in restorelib.php, added code to do role overrides in restore.php new functionalities requires proper handling 2006-09-28 09:15:14 +00:00
toyomoyo a2a020ea6b adding support for roles in backups 2006-09-27 08:59:27 +00:00
toyomoyo 1ad590e153 more changes, restoring of role assignments now work in course, mods and blocks instances (less user instance), restoring local overrides do not work 2006-09-26 09:05:44 +00:00
toyomoyo 912c1fd5a2 correct xml parsing for mod level assignment and override 2006-09-26 06:02:10 +00:00
toyomoyo 71dd89ff09 fixing missing $ 2006-09-26 01:50:17 +00:00
toyomoyo 4c81f5511e adding roles support for restore 2006-09-26 01:43:07 +00:00
toyomoyo 3f1c7233c7 restore is NOT WORKING!!! role assignment and capability overrides are not in 2006-09-25 09:10:19 +00:00
sam_marshall a82e9bc3bb Added feature to blocks (and restorelib) so that blocks get a method call (default does nothing) after they are restored. This allows blocks to change their settings if necessary in respect of the new course roll-forward 'restore and change start date' feature that Al implemented recently. The core blocks happen not to store dates anyway so don't need this, but contributed blocks may well do. 2006-09-21 12:07:15 +00:00
skodak 6124048972 major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
moodler 0e1cc9070b Fixed a some debugging statements 2006-09-18 13:24:45 +00:00
thompson697 c3b307b777 Initial work on Roll Forwards - Restore from previous semester (ongoing MDL-5532)
* Add fields to restore form to enable changes to Short Name, Full Name and Start Date
* Start Date offset added to Restore process
* Created Restorelog file in Course files area
2006-09-13 09:40:55 +00:00
toyomoyo 51792df056 adding capabilities 2006-09-08 08:46:26 +00:00
toyomoyo ec7a8b7999 adding capabilities 2006-09-07 08:57:56 +00:00
moodler 67a3fac51f Added new field 'ajax' to user table, to store AJAX preference 2006-08-28 06:41:05 +00:00
vyshane 7f6301c464 We need the newly created course_module id to be passed to the restore
functions of the modules. We need this now for the forum module to convert
forums backed up in 1.6 to use roles upon restore in 1.7. However, this might
be needed for other modules as well if they need conversion to the roles
system.
2006-08-25 02:37:54 +00:00
martinlanghoff cb6f407365 Course restore - Restrict shortname to <= 15 characters, like the database table.
Author: Donal McMullan <donal@catalyst.net.nz>
2006-07-18 03:35:02 +00:00
skodak 15a6cf334f Bug #6099 - Restore alternatively failing on data module - fixed status codes of module restore process; merged from MOODLE_16_STABLE 2006-07-13 15:38:03 +00:00
skodak 4e060ab972 Bug #6067 - The restore process behaves differently depending on which module contains the absolute links; merged from MOODLE_16_STABLE 2006-07-11 10:01:33 +00:00
tjhunt ff1b2fadbe Fix restore notice. Merged from MOODLE_16_STABLE. 2006-06-12 15:37:05 +00:00
tjhunt f801c7e028 Fix notices when you restore a course with no parent or child courses. Merged from MOODLE_16_STABLE. 2006-06-06 17:27:15 +00:00
stronk7 2efeb14832 course report xxxx actions now are supported on restore. Bug 5714.
(http://moodle.org/bugs/bug.php?op=show&bugid=5714)

Merged from MOODLE_16_STABLE
2006-06-04 00:03:12 +00:00
stronk7 410c459db0 And some more (the last) notices out! Bug 5713.
(http://moodle.org/bugs/bug.php?op=show&bugid=5713)

Merged from MOODLE_16_STABLE
2006-06-03 20:18:02 +00:00
stronk7 e8b8ab9f7b course_modules->deleted and user->guid are now out.
(they disappeared from DB ages ago)

Merged from MOODLE_16_STABLE
2006-05-23 22:06:58 +00:00
moodler c4292470ba Add a warning when trying to restore a pre-1.6 backup on a
1.6 Unicode Moodle, with a link to the docs.
2006-05-03 02:00:32 +00:00
stronk7 9fe25ab4f1 Diference between moodle.xml file not found and moodle.xml file
incorrect at restore time. Bug 5334.
(http://moodle.org/bugs/bug.php?op=show&bugid=5334)
2006-04-25 22:55:29 +00:00
stronk7 b0a8b898f9 Difference between copy, the verb and copy, the noun, because they
are different in a lot of languages. Bug 5172.
(http://moodle.org/bugs/bug.php?op=show&bugid=5172)
2006-04-12 21:53:45 +00:00
stronk7 23407fb76b htmlentities() to s() 2006-04-11 15:34:29 +00:00
stronk7 2070370cfa Typo. 2006-03-28 23:31:12 +00:00
sam_marshall f95310d224 Corrected line that would cause restore_create_modules to return True if the first module fails to restore, but the second succeeds. (Whereas it would already be False if the first succeeds, but second fails.) 2006-03-13 16:32:22 +00:00
gustav_delius 12fcd27da6 Some work on question restore code, not complete 2006-03-13 00:18:38 +00:00
gustav_delius 32a189d636 More renamings to separate questions from quiz. Some other small fixes. 2006-03-12 21:17:42 +00:00
skodak 25580a01bc finally now the restore should work and with correct unicode related coding style, sorry 2006-03-07 19:53:56 +00:00
skodak fd5ca378e6 fixed UTF-8 restore problems caused by utf8_restore 2006-03-03 22:22:07 +00:00
stronk7 0df0a87214 Now course shortname is searched too, to avoid duplicates over it.
Bug 4607
(http://moodle.org/bugs/bug.php?op=show&bugid=4607)

Merged from MOODLE_15_STABLE
2006-01-19 00:23:01 +00:00
mjollnir_ f90666aa5c Abstracted a bit of the restore procedure to allow for silent restoring.
Added new function, import_backup_file_silently
Changed everything that prints stuff to check for a constant first.
Backup_flush checks a different constant, this is so that output can still
get flushed to the browser when necessary but not print <li>s everywhere.
Please test this!
2006-01-15 21:09:13 +00:00
mjollnir_ 1ecea97679 Granular backup & restore:
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
2006-01-13 03:45:31 +00:00
stronk7 d0fad6f1ae Fixed one important bug in restore of gradebook that was
preventing it to finish in a lot of situations.
(http://moodle.org/mod/forum/discuss.php?d=31461)

Merged from MOODLE_15_STABLE
2005-10-16 11:32:57 +00:00