]> git.mjollnir.org Git - moodle.git/commitdiff
Adding some missing course info when backuping blogs. MDL-9089 ; merged from 19_STABLE
authorstronk7 <stronk7>
Sat, 19 Apr 2008 22:41:48 +0000 (22:41 +0000)
committerstronk7 <stronk7>
Sat, 19 Apr 2008 22:41:48 +0000 (22:41 +0000)
backup/backuplib.php

index 91e833e6184a8c82f96f2e566aeaa0762811d865..c93c72732c98f64b4de5bcb97f3f418bbdbf12c7 100644 (file)
         } else {
             fwrite ($bf,full_tag("MESSAGES",3,false,"false"));
         }
+        //The blogs in backup
+        if ($preferences->backup_blogs == 1 && $preferences->backup_course == SITEID) {
+            fwrite ($bf,full_tag("BLOGS",3,false,"true"));
+        } else {
+            fwrite ($bf,full_tag("BLOGS",3,false,"false"));
+        }
         //The mode of writing the block data
         fwrite ($bf,full_tag('BLOCKFORMAT',3,false,'instances'));
         fwrite ($bf,end_tag("DETAILS",2,true));