Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Backup/Restore of the new field

  • Loading branch information...
commit 7b892c8787c127abcf4f543115578af009bfe78d 1 parent 8f7bd77
willcast authored
Showing with 4 additions and 0 deletions.
  1. +2 −0  mod/glossary/backuplib.php
  2. +2 −0  mod/glossary/restorelib.php
2  mod/glossary/backuplib.php
View
@@ -53,6 +53,7 @@ function glossary_backup_mods($bf,$preferences) {
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));
@@ -154,6 +155,7 @@ function backup_glossary_entries ($bf,$preferences,$glossary, $userinfo) {
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));
2  mod/glossary/restorelib.php
View
@@ -57,6 +57,7 @@ function glossary_restore_mods($mod,$restore) {
$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']['#']);
@@ -121,6 +122,7 @@ function glossary_entries_restore_mods($old_glossary_id,$new_glossary_id,$info,$
$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']['#']);
Please sign in to comment.
Something went wrong with that request. Please try again.