935 Commits

Author SHA1 Message Date
moodler
d5b8dc1d61 Merged MDL-13569 Mark N patch for notice 2008-02-26 09:05:51 +00:00
scyrma
537aa65c5d MDL-13404 - Modification to all tag_get_tags_* calls needing an array & other improvements (merge from 1.9) 2008-02-26 06:43:54 +00:00
scyrma
3d535996db MDL-13404 - Merge from 1.9 (re-commit, including missing file) 2008-02-25 01:58:17 +00:00
skodak
bb06244703 MDL-13404 reverted - missing file and other minor problems 2008-02-22 19:53:48 +00:00
scyrma
db32b054d1 MDL-13404 - Merge from 1.9 2008-02-22 10:25:36 +00:00
moodler
eff1ecb4f1 MDL-13554 Fix from Mark Nielsen for bad block backups 2008-02-21 05:35:16 +00:00
stronk7
42af26a396 Messages backup improvement. MDL-13473 ; merged from 19_STABLE 2008-02-14 23:35:03 +00:00
poltawski
175767ede7 MDL-13339 - ensure we don't continue the restore process if there is
no course header in the backup file. This bug was causing blank course
records to be created when users tried to restore a non-moodle backup file
such as a scorm file.
merged from MOODLE_19_STABLE
2008-02-07 18:52:51 +00:00
skodak
af105b8abb MDL-13345 disabled module not present on backup form anymore; merged from MOODLE_19_STABLE 2008-02-05 22:55:50 +00:00
stronk7
b3238b3519 Some old backups can contain empties in user->picture, fix them before insert. Merged from 19_STABLE 2008-02-05 20:31:06 +00:00
stronk7
70e2417668 Save one extra query per user being restored. $newid contains the user id along all the iteration.
Merged from MOODLE_19_STABLE
2008-02-04 00:05:20 +00:00
stronk7
7b6e2a2bf9 Now custom profile fields and user tags are restored. MDL-6856 ; merged from 19_STABLE 2008-02-03 23:53:01 +00:00
stronk7
3dd3ab8ac8 Only insert outcome_course if it doesn't exist. MDL-13308 ; merged from 19_STABLE 2008-02-03 18:44:14 +00:00
stronk7
359e08ba88 Fix restore of outcomes, reusing them when possible. MDL-13309 ; merged from 19_STABLE 2008-02-03 18:26:58 +00:00
stronk7
5170a7a440 Add missing description to grade_outcomes backup. Merged from 19_STABLE 2008-02-03 10:33:15 +00:00
stronk7
1f340c06da Add some browser output when restoring a lot of users. Merged from 19_STABLE 2008-02-03 00:48:32 +00:00
stronk7
e464445596 Now we are reading user_profile_fields and user_tags + some small fixes on roles. MDL-6856 ; merged from 19_STABLE 2008-02-02 23:59:48 +00:00
scyrma
27a903efd2 Merged from MOODLE_19_STABLE 2008-01-30 07:29:36 +00:00
stronk7
9e56dd25d3 Now user profile fileds and user tags are included in backups. Part of MDL-6856 ; merged from 19_STABLE 2008-01-30 01:10:57 +00:00
stronk7
56ef28a4a3 Added some helper functions, cleanup a bit and add missing parts. MDL-10721 ; merged from 19_STABLE 2008-01-26 22:00:40 +00:00
stronk7
c648a2259c General cleanup of backup users. Part of MDL-10721 ; merged from 19_STABLE 2008-01-25 00:50:08 +00:00
stronk7
2462e5eb20 Prevent grade_grades and grade_grades_history to be exported for non-target users. MDL-13115 ; merged from 19_STABLE 2008-01-24 20:04:15 +00:00
stronk7
a03320fcf9 Reworked a bit to prevent non-target user role assignments to be exported. MDL-13115 ; merged from 19_STABLE 2008-01-24 19:09:04 +00:00
stronk7
81243b7be4 Now the backup->users = none setting is properly populated to all
modules / instances, saving a lot of info to be always written. MDL-13115

Merged from 19_STABLE
2008-01-24 00:51:09 +00:00
mjollnir_
2f13f94ccc New feature: Command line installer. Credit: Dilan Anurudda.
This was a Google Summer of Code 2007 Project.

This introduces two new files, admin/cliupgrader.php and lib/installlib.php.

It also introduces a new PEAR library, Console_GetOpt.  I have recieved permission from the upstream author to include this in GPL Moodle (essentially dual license it) -  notes in lib/pear.

Most stuff that outputs html during install gets suppressed by the use of a constant.

Run the script like  php admin/cliupgrade.php --help for info.

Note that this all uses strings from install/ rather than lang, so I have updated stringnames.txt accordingly and they'll all be broken until the cronjob that generates them runs.
2008-01-07 01:54:28 +00:00
poltawski
b3ec4f86cf MDL-9925 - When a user presses cancel on restore they are sent to
/admin/. For teachers this gives an ugly access denied message,
so instead send them back to the course they came from.

Thanks to Wen Hao Chuang for the fix!

merged from MOODLE_19_STABLE
2007-12-29 20:31:10 +00:00
stronk7
79e8411dc2 Prevent race condition in event creation. MDL-5956.
Credit goes to Penny, Luke and Martin @ Catalyst.

Merged from MOODLE_19_STABLE
2007-12-28 19:14:01 +00:00
stronk7
cd5ac56aba Bump to 2.0 dev 2007-12-27 00:15:48 +00:00
skodak
220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +00:00
toyomoyo
fd3b240bd0 MDL-9290, restore performance improvements on reading xml 2007-12-14 06:16:08 +00:00
tjhunt
27cabbe626 MDL-12575 - Backup and restore problems with the new question bank. Merged from MOODLE_19_STABLE. 2007-12-13 18:48:30 +00:00
tjhunt
7b51c4e134 MDL-12542 - backup_todb not called on restore on date before it is inserted into mdl_user. This would cause a backup from a pre 1.7 site (or a pre 1.7 that has been upgraded to 1.9) to a 1.9 fresh install, to fail sometimes. Merged from MOODLE_19_STABLE. 2007-12-11 15:55:25 +00:00
toyomoyo
dfbe1fa473 MDL-12463, do not backup mod gradeitems if not selected 2007-12-11 03:16:15 +00:00
nfreear
b0dc3e563d Fixes bug MDL-2674, "backup always backsup/restores groups regardless of user settings" - restore group/grouping option. 2007-12-10 10:26:47 +00:00
toyomoyo
b1d9fa9b22 MDL-12373, restore should not try to restore pre 1.9 gradebook categories 2007-12-07 04:07:42 +00:00
toyomoyo
cecac3b37c MDL-8270, fixing a warning 2007-12-06 01:08:25 +00:00
tjhunt
349d41f0c5 MDL-12450 - Matching up roles on the restore settings form is broken - this is basically a complete rewrite of these two functions. Merged from MOODLE_19_STABLE. 2007-12-05 16:14:29 +00:00
toyomoyo
90164c7098 expecting multiple groups from sql 2007-11-26 03:21:46 +00:00
toyomoyo
d4c550f5d1 MDL-12081, teacher with import capability can not import course 2007-11-26 02:39:28 +00:00
toyomoyo
b486ef1ae3 MDL-8270, full block backup/restore routine with code 2007-11-15 05:00:44 +00:00
tjhunt
43457dc87c MDL-12066 - Links in the HTML block are not recoded on backup and restore.
This is messy because the links are hidden in the configdata column, which is serialized and base64encoded. So we have to untangle that, then ask the block whether there are any bits of $config that need to be fixed, then re-encode it before backup up. And reverse that on restore. It needs to remain base64 encoded in the backup file, so that the file format is backwards compatible.

I disucssed this with Eloy before doing it.

Merged from MOODLE_19_STABLE.
2007-11-14 17:03:32 +00:00
toyomoyo
b25d9087ec backup/restore of grade histories should be off by default 2007-11-07 01:11:41 +00:00
stronk7
7244ac4ba7 There was a mistake in the dir being created. It must be
the backup temp area one. MDL-11912

Merged from MOODLE_19_STABLE
2007-11-02 13:02:56 +00:00
nicolasconnault
98a85772f5 MDL-11912 Creating 1000's layer directory first, then userid directory: no need for recursion 2007-11-01 08:45:30 +00:00
nicolasconnault
96515c3cc8 MDL-11912 Removed recursive param 2007-10-31 19:04:33 +00:00
nicolasconnault
dd9e946b0e MDL-11912 Removed recursive param 2007-10-31 15:21:30 +00:00
nicolasconnault
96aad15ced grade_outcome->description doesn't exist 2007-10-27 06:28:00 +00:00
toyomoyo
1a27182bc6 MDL-11513, adding support for grade_letters 2007-10-24 07:41:45 +00:00
skodak
e3516b2da1 MDL-8605 fixed user image restore code 2007-10-20 20:57:06 +00:00
skodak
ffb2a56ff1 MDL-11857 missing addslashes on idnumber field during backup restore 2007-10-20 19:31:51 +00:00