fwrite ($bf,full_tag("BACKUP_RELEASE",2,false,$preferences->backup_release));
//The date
fwrite ($bf,full_tag("DATE",2,false,$preferences->backup_unique_code));
+ //The original site wwwroot
+ fwrite ($bf,full_tag("ORIGINAL_WWWROOT",2,false,$CFG->wwwroot));
//Te includes tag
fwrite ($bf,start_tag("DETAILS",2,true));
//Now, go to mod element of preferences to print its status
$restore = $SESSION->restore;
}
+ //Add info->original_wwwroot to $restore to be able to use it in all the restore process
+ //(mainly when decoding internal links)
+ $restore->original_wwwroot = $info->original_wwwroot;
+
//Check login
require_login();
case "DATE":
$this->info->backup_date = $this->getContents();
break;
+ case "ORIGINAL_WWWROOT":
+ $this->info->original_wwwroot = $this->getContents();
+ break;
}
}
if ($this->tree[3] == "DETAILS") {