- Now course events are supported in backup & restore.
- in manual backups
- in scheduled backups
- Fixed important bug when restoring groups.
- Added support to the "user change password" action
(with some changes done in login/change_password.php)
Please, test it !!!!
This is a course setting. By default it is off. When on, there
is a new link in the course admin menu for students, and they can
browse the same report that teachers see.
The report icon is temporary.
- 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 !!
- Restoring to courses without section 0 (manually deleted).
- Restoring to sections without mods and null values in its sequence field.
Thanks to Janne Mikkonen...
"course users" are selected. This uses the xxxx_get_participants()
function in every module.
This solves an issue about info in modules belonging to
unenrolled users (Bug #692 closed).
Mantain compatibility with old backups (1.1 and 1.1.1).
Updated version to "1.2 development".
Included support to "label" module (by Martin)
that tells us how far to indent the activity when it is displayed.
This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc
Backup/restore is updated as well.
There is also a bit more robustness in course/mod.php
because it flags errors when in debug mode).
Also, when specifying array values by name use quotes around the name
eg $array['value'] instead of $array[value]
Finally, I changed the way user restoring works (slightly). Before, if a
restored user was found to be a course creator or an admin, then this
status was restored. I don't think this is a good idea - it could lead
to security problems when copying a backup from one site to another,
or if that person's status has changed since the backup was made.
I think it's best to only restore what is actually part of the course,
ie teacher or student.
If this broke anything else let me know!
- Saving temp data to fs, instead of db
(mysql limit bug OUT)
- Modified clean directories (moodle standard delete dir
function seems to work wrong with large dirs
- Send info to browser continuosly to avoid timeouts.
- Increase php execution time limit
- More checks.
- Restore into existing course now works fine
- Create course_dir if it doesn't exist in the final step
of backup.