]> git.mjollnir.org Git - moodle.git/commit
Now, to restore course category do this:
authorstronk7 <stronk7>
Tue, 23 Sep 2003 16:40:44 +0000 (16:40 +0000)
committerstronk7 <stronk7>
Tue, 23 Sep 2003 16:40:44 +0000 (16:40 +0000)
commit46f1f7822d983c3204c26583ca81c92512e7c5b7
treeaa250deb1e1af9d8032bd731337ae414e4e80384
parent89d7efdb13a5ed27b222efb35cf80804a2bb3e59
Now, to restore course category do this:
- Check if (category_id, category_name) exists.
- Check if (category_name) exists.
- Check if category_id = 1 exists.
- Create a new, initially invisible category withe the info in backup-file.

This solves a issue when restoring to a new course and category_id 1
had been removed !!
backup/restorelib.php