- Backup/Restore of the new field
authorwillcast <willcast>
Tue, 21 Oct 2003 05:19:43 +0000 (05:19 +0000)
committerwillcast <willcast>
Tue, 21 Oct 2003 05:19:43 +0000 (05:19 +0000)
mod/glossary/backuplib.php
mod/glossary/restorelib.php

index e75d9dfd2b67a708d88e8fbb030c235ef010e8f4..50213525b51f1afd17f1421f311125d19420b349 100644 (file)
@@ -53,6 +53,7 @@
                 fwrite ($bf,full_tag("SHOWALL",4,false,$glossary->showall));
                 fwrite ($bf,full_tag("ALLOWCOMMENTS",4,false,$glossary->allowcomments));
                 fwrite ($bf,full_tag("USEDYNALINK",4,false,$glossary->usedynalink));
+                fwrite ($bf,full_tag("DEFAULTAPPROVAL",4,false,$glossary->defaultapproval));
                 fwrite ($bf,full_tag("TIMECREATED",4,false,$glossary->timecreated));
                 fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$glossary->timemodified));
                 
                     fwrite ($bf,full_tag("USEDYNALINK",6,false,$glo_ent->usedynalink));
                     fwrite ($bf,full_tag("CASESENSITIVE",6,false,$glo_ent->casesensitive));
                     fwrite ($bf,full_tag("FULLMATCH",6,false,$glo_ent->fullmatch));
+                    fwrite ($bf,full_tag("APPROVED",6,false,$glo_ent->approved));
                     fwrite ($bf,full_tag("TIMECREATED",6,false,$glo_ent->timecreated));
                     fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$glo_ent->timemodified));
                     fwrite ($bf,full_tag("TEACHERENTRY",6,false,$glo_ent->teacherentry));
index 29f89478ff22714760d5f43d2f798c57cd90e549..f0f13ad79cf6030acb692fbf4ef115b571c25edf 100644 (file)
@@ -57,6 +57,7 @@
             $glossary->showall = backup_todb($info['MOD']['#']['SHOWALL']['0']['#']);
             $glossary->allowcomments = backup_todb($info['MOD']['#']['ALLOWCOMMENTS']['0']['#']);
             $glossary->usedynalink = backup_todb($info['MOD']['#']['USEDYNALINK']['0']['#']);
+            $glossary->defaultapproval = backup_todb($info['MOD']['#']['DEFAULTAPPROVAL']['0']['#']);
             $glossary->timecreated = backup_todb($info['MOD']['#']['TIMECREATED']['0']['#']);
             $glossary->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
 
             $entry->usedynalink = backup_todb($ent_info['#']['USEDYNALINK']['0']['#']);
             $entry->casesensitive = backup_todb($ent_info['#']['CASESENSITIVE']['0']['#']);
             $entry->fullmatch = backup_todb($ent_info['#']['FULLMATCH']['0']['#']);
+            $entry->approved = backup_todb($ent_info['#']['approved']['0']['#']);
             $entry->timecreated = backup_todb($ent_info['#']['TIMECREATED']['0']['#']);
             $entry->timemodified = backup_todb($ent_info['#']['TIMEMODIFIED']['0']['#']);
             $entry->teacherentry = backup_todb($ent_info['#']['TEACHERENTRY']['0']['#']);