335 Commits

Author SHA1 Message Date
tjhunt
0d6f265034 Fix error message to say the right thing. 2007-04-19 17:16:20 +00:00
tjhunt
c85607f0be MDL-9432 - When restoring questions, links are not recoded. Merged from OU moodle. 2007-04-18 15:56:21 +00:00
stronk7
6b8b4bcf86 mnethosturl was never being restored. Detected while checking MDL-9309
Merged from MOODLE_18_STABLE
2007-04-12 22:18:05 +00:00
toyomoyo
49860445a6 fix for MDL-8739, restore in course category 2007-04-03 09:19:09 +00:00
toyomoyo
3ed699287e merged fix for MDL-9064, use $CFG->creatornewroleid setting 2007-03-28 02:31:24 +00:00
mjollnir_
9e3775dbc2 Backup refactor: moved backup_execute.html into functions, added new backup_course_silently function as proof of concept (matches import_backup_file_silently) 2007-03-23 06:14:40 +00:00
tjhunt
e1a3af61a3 Eliminate bizarre use of function_exists. 2007-03-13 17:42:57 +00:00
toyomoyo
3a35a34e9c merged fix for MDL-8681, course imports creates duplicate roles 2007-03-09 02:39:44 +00:00
toyomoyo
f15850f899 merged fixing a typo 2007-03-08 06:05:32 +00:00
toyomoyo
b3460b8e8a merged fixing xhtml and display issues in restore 2007-03-01 02:46:04 +00:00
moodler
6ba65fa08d Merged Nicolas' changes from MDL-8582 into HEAD. 2007-02-28 06:25:22 +00:00
nfreear
2ab4e4b87b Followup fix for Bug MDL-8507 "Local language pack-name can appear in language code" 2007-02-21 10:42:50 +00:00
skodak
16ce6c0dcc MDL-8590 auth cleanup - part 2 2007-02-20 17:09:20 +00:00
toyomoyo
b0cb12ac93 merged, apply nick's patch for MDL-8534, typo in restorelib.php 2007-02-20 01:07:18 +00:00
nfreear
05a399d793 Fixes bug MDL-8059 "... won't restore - error A required parameter (id) was missing", reapplied martinl's 16/1 Strict fix. 2007-02-16 15:46:51 +00:00
nfreear
d80a2fe031 Fixes Bug MDL-8545 "Restore bugs, groups-members and role assignments" 2007-02-16 14:45:57 +00:00
skodak
20c63dcf73 MDL-8487 if user language do not exist during restore use site default 2007-02-14 09:54:08 +00:00
nfreear
d8aa3550bb Fixes bug MDL-8057, "Backup/restore code not considered in new groups code" 2007-01-20 09:28:26 +00:00
martinlanghoff
fdce65dd32 mnet: restore_create_users() fixed mnethost lookup
Credit goes to Eloy for catching my error.
2007-01-17 01:00:08 +00:00
martinlanghoff
43f853c908 mnet: restore support - XML parser knows about MNET_EXTERNALUSERS, restore_check.html warns
This may need to be reworked to move the warning to an earlier stage. In the
meantime, we have

 - at INFO parsing time we read MNET_EXTERNALUSERS into the backup info obj
 - at restore_check time, we warn the user that external users are in the
   package. If the situation looks dodgy, we say so. But don't block the
   user, as it may be a valid situation.
2007-01-16 03:28:57 +00:00
martinlanghoff
dd3638e47e XHTML Strrrickt: fixed a problem with a UL and LI tag mix up during restores. 2007-01-16 01:06:11 +00:00
martinlanghoff
da586c3778 mnet: restore_create_users() is now mnet-aware
It will now default to $CFG->mnet_localhost_id and can
handle backup files containing an mnethosturl user property
which will be mapped to mnethostid.

Additional checks are needed to avoid restoring files
with mnethosturls we cannot handle.
2007-01-16 00:56:15 +00:00
skodak
7150226896 MDL-7861 xhtml strict fixes - fixed all <br> in our code 2007-01-04 23:38:17 +00:00
vyshane
ac21137379 Making sure that restore views work in xhtml strict 1.0. MDL-7861. 2006-12-19 07:00:14 +00:00
vyshane
b721223856 Merged from 1.7. Also contains some xhtml fixes for MDL-7861. 2006-12-19 05:02:22 +00:00
toyomoyo
027ce10e0e fixing broken html 2006-12-15 05:23:57 +00:00
sam_marshall
ae628043a0 MDL-7401 Course format database/backup/lang/stylesheet/capability support 2006-12-11 15:47:23 +00:00
tjhunt
2e0ed03e5e Fix error when restoring into a newly created course. The course files folder may not exist yet, so need to do a recursive directory create. 2006-12-05 18:42:39 +00:00
tjhunt
89475b805d Fixed notice when restoring a backup file that was created with Users: none. 2006-12-05 18:38:56 +00:00
skodak
69aaada0f5 fixed problem with apostrophe in role names and description when creating roles during install and restore MDL-7611 2006-11-20 14:08:40 +00:00
skodak
810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
toyomoyo
ccda44599a merged fix for restore support of user data from backups pre granular backup 2006-11-01 03:32:04 +00:00
skodak
a3fd474190 fixed notice during restore; merged from MOODLE_17_STABLE 2006-10-31 22:46:41 +00:00
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