]> git.mjollnir.org Git - moodle.git/commitdiff
CSS templates weren't being backed up!
authormoodler <moodler>
Sun, 9 Jul 2006 02:03:22 +0000 (02:03 +0000)
committermoodler <moodler>
Sun, 9 Jul 2006 02:03:22 +0000 (02:03 +0000)
mod/data/backuplib.php
mod/data/restorelib.php

index 921e1d51aeecf2c2d72bf420c21d81bfa7d34e75..79a1e3750f6f824c41f8ad11a66f11aeca80d44f 100644 (file)
@@ -92,6 +92,7 @@ function data_backup_one_mod($bf,$preferences,$data) {
     fwrite ($bf,full_tag("LISTTEMPLATE",4,false,$data->listtemplate));
     fwrite ($bf,full_tag("ADDTEMPLATE",4,false,$data->addtemplate));
     fwrite ($bf,full_tag("RSSTEMPLATE",4,false,$data->rsstemplate));
+    fwrite ($bf,full_tag("CSSTEMPLATE",4,false,$data->csstemplate));
     fwrite ($bf,full_tag("RSSTITLETEMPLATE",4,false,$data->rsstitletemplate));
     fwrite ($bf,full_tag("LISTTEMPLATEHEADER",4,false,$data->listtemplateheader));
     fwrite ($bf,full_tag("LISTTEMPLATEFOOTER",4,false,$data->listtemplatefooter));
index a6d76ce92a690e8e8f48fce80685bc8dcdaf37c1..9999910c01236457854dd1764b547ca1e200bede 100644 (file)
@@ -70,6 +70,7 @@ function data_restore_mods($mod,$restore) {
         $database->listtemplate = backup_todb($info['MOD']['#']['LISTTEMPLATE']['0']['#']);
         $database->addtemplate = backup_todb($info['MOD']['#']['ADDTEMPLATE']['0']['#']);
         $database->rsstemplate = backup_todb($info['MOD']['#']['RSSTEMPLATE']['0']['#']);
+        $database->csstemplate = backup_todb($info['MOD']['#']['CSSTEMPLATE']['0']['#']);
         $database->rsstitletemplate = backup_todb($info['MOD']['#']['RSSTITLETEMPLATE']['0']['#']);
         $database->listtemplateheader = backup_todb($info['MOD']['#']['LISTTEMPLATEHEADER']['0']['#']);
         $database->listtemplatefooter = backup_todb($info['MOD']['#']['LISTTEMPLATEFOOTER']['0']['#']);