Permalink
Browse files

- Backing up new fields...

- No restoring yet... :(
  • Loading branch information...
1 parent f257277 commit 48972ecf1299d2ddb8b2e6e4025e8c78708e766b willcast committed Oct 19, 2003
Showing with 8 additions and 0 deletions.
  1. +4 −0 mod/glossary/backuplib.php
  2. +4 −0 mod/glossary/restorelib.php
@@ -52,6 +52,7 @@ function glossary_backup_mods($bf,$preferences) {
fwrite ($bf,full_tag("SHOWALPHABET",4,false,$glossary->showalphabet));
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("TIMECREATED",4,false,$glossary->timecreated));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$glossary->timemodified));
@@ -138,6 +139,9 @@ function backup_glossary_entries ($bf,$preferences,$glossary, $userinfo) {
fwrite ($bf,full_tag("FORMAT",6,false,$glo_ent->format));
fwrite ($bf,full_tag("ATTACHMENT",6,false,$glo_ent->attachment));
fwrite ($bf,full_tag("SOURCEGLOSSARYID",6,false,$glo_ent->sourceglossaryid));
+ fwrite ($bf,full_tag("USEDYNALINK",4,false,$glo_ent->usedynalink));
+ fwrite ($bf,full_tag("CASESENSITIVE",4,false,$glo_ent->casesensitive));
+ fwrite ($bf,full_tag("FULLMATCH",4,false,$glo_ent->fullmatch));
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));
@@ -50,6 +50,7 @@ function glossary_restore_mods($mod,$restore) {
$glossary->showalphabet = backup_todb($info['MOD']['#']['SHOWALPHABET']['0']['#']);
$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->timecreated = backup_todb($info['MOD']['#']['TIMECREATED']['0']['#']);
$glossary->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
@@ -112,6 +113,9 @@ function glossary_entries_restore_mods($old_glossary_id,$new_glossary_id,$info,$
$entry->format = backup_todb($ent_info['#']['FORMAT']['0']['#']);
$entry->attachment = backup_todb($ent_info['#']['ATTACHMENT']['0']['#']);
$entry->sourceglossaryid = backup_todb($ent_info['#']['SOURCEGLOSSARYID']['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->timecreated = backup_todb($ent_info['#']['TIMECREATED']['0']['#']);
$entry->timemodified = backup_todb($ent_info['#']['TIMEMODIFIED']['0']['#']);
$entry->teacherentry = backup_todb($ent_info['#']['TEACHERENTRY']['0']['#']);

0 comments on commit 48972ec

Please sign in to comment.