Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- Backup/Restore of the new field

  • Loading branch information...
commit 7b892c8787c127abcf4f543115578af009bfe78d 1 parent 8f7bd77
authored October 21, 2003
2  mod/glossary/backuplib.php
@@ -53,6 +53,7 @@ function glossary_backup_mods($bf,$preferences) {
53 53
                 fwrite ($bf,full_tag("SHOWALL",4,false,$glossary->showall));
54 54
                 fwrite ($bf,full_tag("ALLOWCOMMENTS",4,false,$glossary->allowcomments));
55 55
                 fwrite ($bf,full_tag("USEDYNALINK",4,false,$glossary->usedynalink));
  56
+                fwrite ($bf,full_tag("DEFAULTAPPROVAL",4,false,$glossary->defaultapproval));
56 57
                 fwrite ($bf,full_tag("TIMECREATED",4,false,$glossary->timecreated));
57 58
                 fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$glossary->timemodified));
58 59
                 
@@ -154,6 +155,7 @@ function backup_glossary_entries ($bf,$preferences,$glossary, $userinfo) {
154 155
                     fwrite ($bf,full_tag("USEDYNALINK",6,false,$glo_ent->usedynalink));
155 156
                     fwrite ($bf,full_tag("CASESENSITIVE",6,false,$glo_ent->casesensitive));
156 157
                     fwrite ($bf,full_tag("FULLMATCH",6,false,$glo_ent->fullmatch));
  158
+                    fwrite ($bf,full_tag("APPROVED",6,false,$glo_ent->approved));
157 159
                     fwrite ($bf,full_tag("TIMECREATED",6,false,$glo_ent->timecreated));
158 160
                     fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$glo_ent->timemodified));
159 161
                     fwrite ($bf,full_tag("TEACHERENTRY",6,false,$glo_ent->teacherentry));
2  mod/glossary/restorelib.php
@@ -57,6 +57,7 @@ function glossary_restore_mods($mod,$restore) {
57 57
             $glossary->showall = backup_todb($info['MOD']['#']['SHOWALL']['0']['#']);
58 58
             $glossary->allowcomments = backup_todb($info['MOD']['#']['ALLOWCOMMENTS']['0']['#']);
59 59
             $glossary->usedynalink = backup_todb($info['MOD']['#']['USEDYNALINK']['0']['#']);
  60
+            $glossary->defaultapproval = backup_todb($info['MOD']['#']['DEFAULTAPPROVAL']['0']['#']);
60 61
             $glossary->timecreated = backup_todb($info['MOD']['#']['TIMECREATED']['0']['#']);
61 62
             $glossary->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
62 63
 
@@ -121,6 +122,7 @@ function glossary_entries_restore_mods($old_glossary_id,$new_glossary_id,$info,$
121 122
             $entry->usedynalink = backup_todb($ent_info['#']['USEDYNALINK']['0']['#']);
122 123
             $entry->casesensitive = backup_todb($ent_info['#']['CASESENSITIVE']['0']['#']);
123 124
             $entry->fullmatch = backup_todb($ent_info['#']['FULLMATCH']['0']['#']);
  125
+            $entry->approved = backup_todb($ent_info['#']['approved']['0']['#']);
124 126
             $entry->timecreated = backup_todb($ent_info['#']['TIMECREATED']['0']['#']);
125 127
             $entry->timemodified = backup_todb($ent_info['#']['TIMEMODIFIED']['0']['#']);
126 128
             $entry->teacherentry = backup_todb($ent_info['#']['TEACHERENTRY']['0']['#']);

0 notes on commit 7b892c8

Please sign in to comment.
Something went wrong with that request. Please try again.