]> git.mjollnir.org Git - moodle.git/commitdiff
Added support for rsstype and rssarticles in forum's
authorstronk7 <stronk7>
Mon, 3 May 2004 18:18:54 +0000 (18:18 +0000)
committerstronk7 <stronk7>
Mon, 3 May 2004 18:18:54 +0000 (18:18 +0000)
backup & restore.

mod/forum/backuplib.php
mod/forum/restorelib.php

index 44a79ec757516a4cafc7c962214f46a706375db9..ca23d398b73bc50fb39154033d1eefd8bb6b1844 100644 (file)
@@ -57,6 +57,8 @@
                 fwrite ($bf,full_tag("MAXBYTES",4,false,$forum->maxbytes));
                 fwrite ($bf,full_tag("SCALE",4,false,$forum->scale));
                 fwrite ($bf,full_tag("FORCESUBSCRIBE",4,false,$forum->forcesubscribe));
+                fwrite ($bf,full_tag("RSSTYPE",4,false,$forum->rsstype));
+                fwrite ($bf,full_tag("RSSARTICLES",4,false,$forum->rssarticles));
                 fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$forum->timemodified));
 
                 //if we've selected to backup users info, then execute backup_forum_suscriptions and
index 922e2716da7fad8eb431f837be9e906f473f273c..73b89e066c8061ca6d7b5e1663190c196300289e 100644 (file)
@@ -60,6 +60,8 @@
             $forum->maxbytes = backup_todb($info['MOD']['#']['MAXBYTES']['0']['#']);
             $forum->scale = backup_todb($info['MOD']['#']['SCALE']['0']['#']);
             $forum->forcesubscribe = backup_todb($info['MOD']['#']['FORCESUBSCRIBE']['0']['#']);
+            $forum->rsstype = backup_todb($info['MOD']['#']['RSSTYPE']['0']['#']);
+            $forum->rssarticles = backup_todb($info['MOD']['#']['RSSARTICLES']['0']['#']);
             $forum->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
 
             //We have to recode the scale field if it's <0 (positive is a grade, not a scale)