Commit graph

1368 commits

Author SHA1 Message Date
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
skodak
549bf9cd73 MDL-11857 missing addslashes on idnumber field during backup restore 2007-10-20 19:25:10 +00:00
tjhunt
01b609d9fa Fix restore notice when a role has no capabilities. Merged from MOODLE_19_STABLE. 2007-10-16 14:03:23 +00:00
nicolasconnault
ed818bbdbf MDL-10905 iterating correctly with readdir (as shown in php doc) 2007-10-15 05:18:58 +00:00
nicolasconnault
907ef7f89a MDL-8605 using remove_dir instead of rmdir, which doesn't support deleting non-empty directories 2007-10-12 20:25:45 +00:00
nicolasconnault
ddaadc7c78 MDL-8605 More changes to upgrade and restore, and some unit tests with db and rs mock objects 2007-10-12 19:13:18 +00:00
stronk7
13bf86a3ba Bump to beta 2 (real branch) 2007-10-10 16:06:12 +00:00
skodak
03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
toyomoyo
9031e46f94 MDL-11510, adding missing backup/restore gradebook fields 2007-10-10 08:28:43 +00:00
toyomoyo
1c03128e06 MDL-11510, missing gradebook fields in backup 2007-10-10 07:25:41 +00:00
toyomoyo
e66481e1eb MDL-11510, adding missing fields 2007-10-10 07:08:50 +00:00
toyomoyo
313fcb6aea MDL-11510, referencing to wrong fields 2007-10-10 07:05:48 +00:00
skodak
b5116f2afd MDL-11510 added missing fields in new gradebook backup 2007-09-29 16:07:52 +00:00
tjhunt
f8f95b454a MDL-10898 - Option to back up only selected role assignements when backing up a course with users. 2007-09-25 14:44:53 +00:00
stronk7
28271c7205 Second pass. Some more default comments are out. MDL-11385 2007-09-24 22:10:13 +00:00
stronk7
7529139a8d First pass. Deleting some default comments. MDL-11385 2007-09-24 19:08:00 +00:00
skodak
ee6eac332c MDL-10833 some more course theme fixes; merged from MOODLE_18_STABLE 2007-09-24 15:50:34 +00:00
skodak
3f2b0c8aba MDL-11363 merged tables grade_grades with grade_grades_text - it is now possible to define fields as required and optional
finally fixed formula validation in calculation edit form
2007-09-22 11:39:59 +00:00