805 Commits

Author SHA1 Message Date
toyomoyo
8556ba1740 fixing typos of a wrong capability 2007-06-14 07:04:15 +00:00
toyomoyo
06e3e967af backup will not back up grade categories and grades if some grade items are not backed up. restore will not resotre grade categories and grades if some grade items are not being restored 2007-06-13 09:06:44 +00:00
toyomoyo
0afbd23c9e gradebook backup and restore fixes 2007-05-31 09:00:09 +00:00
toyomoyo
ca9cd23cf9 more fixes for gradebook backup/restore 2007-05-30 08:45:13 +00:00
toyomoyo
48ca6fd871 fix ordering bug when restoring grade item 2007-05-30 06:38:23 +00:00
toyomoyo
9bfd009441 added itemtype to backup/restore, only restore a mod type gradeitem if user data is included 2007-05-30 06:23:21 +00:00
toyomoyo
bb15b33bf9 respecting sortorder when restoring grade_itmes, other minor fixes 2007-05-30 05:32:47 +00:00
toyomoyo
770156e5f8 fixing a typo 2007-05-30 02:22:43 +00:00
toyomoyo
a246d4d269 during backup parent categories need to go before children 2007-05-30 02:20:56 +00:00
toyomoyo
bc1637c730 restore for gradebook, needs testing for grade_history, outcomes, categories, calculations and text 2007-05-29 09:00:48 +00:00
toyomoyo
b2fa775cbd MDL-9515, backups for gradebook 2007-05-25 08:54:20 +00:00
sam_marshall
c5a3ce0acd MDL-9932 Fixed calendar restore of events on same day with same description (but different names) 2007-05-24 12:09:49 +00:00
skodak
83ee2fe8eb MDL-9483 Problem with question restore relinking when quiz not selected; merged from MOODLE_17_STABLE 2007-04-21 12:38:56 +00:00
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
76b6ea6b3c merged fix for MDL-9068 2007-03-28 03:25:55 +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
stronk7
01bc98275a Skipping some thousands of require_once() calls because PHP5
is really slow (and heavy) with them. MDL-8700

Merged from MOODLE_18_STABLE
2007-03-02 09:42:52 +00:00
mjollnir_
b5037f726b Merged from MOODLE_16_STABLE: fixing bug MDL-8651: import course data should clean up after itself 2007-03-02 01:43:47 +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
stronk7
82355e2f84 Bump to 1.9dev (keeping sync with 18_STABLE version). 2007-02-21 08:34:21 +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
88915b1d43 Fixes bug MDL-8059 "... won't restore - error A required parameter (id) was missing" 2007-02-16 15:45:35 +00:00
nfreear
d80a2fe031 Fixes Bug MDL-8545 "Restore bugs, groups-members and role assignments" 2007-02-16 14:45:57 +00:00
skodak
348d6827b3 MDL-7722 fixed wrong cleaning in backup paths 2007-02-15 09:43:14 +00:00
stronk7
63013fb804 PHP 4 assignment is by value so course_header (containing edited names)
wasn't being modified. MDL-8298

Merged from MOODLE_18_STABLE
2007-02-14 23:54:20 +00:00
skodak
8891e81c92 MDL-8469 - 192M is much nicer than 196M 2007-02-14 20:58:31 +00:00
skodak
4eefee9779 MDL-8469 increase memory limit everywhere due to changed calculation of used memory in PHP 5.2.x - the real memory useage is the same, but the reported size of used memory is now more accurate 2007-02-14 20:46:38 +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
toyomoyo
fbe31d22d1 xhtml validation fixes for MDL-8425 2007-02-06 08:24:37 +00:00
thompson697
7f46a94162 Restore page Role Mappings Selector Enhanced 2007-01-29 09:14:53 +00:00
skodak
371a32e308 (MDL-8250) install/upgrade autopilot 2007-01-22 20:15:12 +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
c0543ba1f7 mnet: backup_general_info() now indicates whether it includes MNET_REMOTEUSERS 2007-01-16 02:52:51 +00:00
martinlanghoff
54359be4c9 mnet: backup_user_info() is faster, and it store mnethosturl for foreign users
Several changes to backup_user_info() rolled up here

 - The main JOIN happens in SQL instead of PHP
 - We now also join with mnet_host to get the wwwroot
 - As part of the join, all the variables appear in $user -- $user_data is gone
 - If the mnethostid is non-local we include MNETHOSTURL for that user

With this, backup_user_info() should be significantly faster for large
sets of users, though I haven't benchmarked it.
2007-01-16 02:27:36 +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
acdd790f74 print_footer('none') during install and upgrade to hide home link and xhtml strict fixes 2007-01-15 19:16:29 +00:00