From f12c95734ab093fd827b8b7c77821c0eec09308e Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Fri, 18 Dec 2009 18:11:13 +0000 Subject: [PATCH] Related to MDL-6489 - advanced search template was missing in backup/restore ; merged from 19_STABLE --- mod/data/backuplib.php | 1 + mod/data/restorelib.php | 1 + 2 files changed, 2 insertions(+) diff --git a/mod/data/backuplib.php b/mod/data/backuplib.php index 111f1d4c770..36160303364 100644 --- a/mod/data/backuplib.php +++ b/mod/data/backuplib.php @@ -95,6 +95,7 @@ function data_backup_one_mod($bf,$preferences,$data) { fwrite ($bf,full_tag("RSSTITLETEMPLATE",4,false,$data->rsstitletemplate)); fwrite ($bf,full_tag("CSSTEMPLATE",4,false,$data->csstemplate)); fwrite ($bf,full_tag("JSTEMPLATE",4,false,$data->jstemplate)); + fwrite ($bf,full_tag("ASEARCHTEMPLATE",4,false,$data->asearchtemplate)); fwrite ($bf,full_tag("APPROVAL",4,false,$data->approval)); fwrite ($bf,full_tag("SCALE",4,false,$data->scale)); fwrite ($bf,full_tag("ASSESSED",4,false,$data->assessed)); diff --git a/mod/data/restorelib.php b/mod/data/restorelib.php index 3079a0c5a80..952f55756df 100644 --- a/mod/data/restorelib.php +++ b/mod/data/restorelib.php @@ -84,6 +84,7 @@ function data_restore_mods($mod,$restore) { $database->rsstitletemplate = backup_todb($info['MOD']['#']['RSSTITLETEMPLATE']['0']['#']); $database->csstemplate = backup_todb($info['MOD']['#']['CSSTEMPLATE']['0']['#']); $database->jstemplate = backup_todb($info['MOD']['#']['JSTEMPLATE']['0']['#']); + $database->asearchtemplate = backup_todb($info['MOD']['#']['ASEARCHTEMPLATE']['0']['#']); $database->approval = backup_todb($info['MOD']['#']['APPROVAL']['0']['#']); $database->scale = backup_todb($info['MOD']['#']['SCALE']['0']['#']); $database->assessed = backup_todb($info['MOD']['#']['ASSESSED']['0']['#']);