]> git.mjollnir.org Git - moodle.git/commit
MDL-12066 - Links in the HTML block are not recoded on backup and restore.
authortjhunt <tjhunt>
Wed, 14 Nov 2007 17:03:32 +0000 (17:03 +0000)
committertjhunt <tjhunt>
Wed, 14 Nov 2007 17:03:32 +0000 (17:03 +0000)
commit43457dc87cacf5c83d5c7eec2a1f88d0feeba59d
treedb506c0611ceae3fa30cf85e146ed43f0e778b7f
parent9cb69c1910a1368d8d29ab4745dd0864098a4099
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.
backup/backuplib.php
backup/restorelib.php
blocks/html/block_html.php
blocks/moodleblock.class.php