Now course->lang is in backup & restore.

This commit is contained in:
stronk7 2004-02-09 22:24:34 +00:00
parent 178c952a52
commit 3a4b33c3b9
3 changed files with 7 additions and 0 deletions

View File

@ -562,6 +562,7 @@
fwrite ($bf,full_tag("SHOWREPORTS",3,false,$course->showreports));
fwrite ($bf,full_tag("GROUPMODE",3,false,$course->groupmode));
fwrite ($bf,full_tag("GROUPMODEFORCE",3,false,$course->groupmodeforce));
fwrite ($bf,full_tag("LANG",3,false,$course->lang));
fwrite ($bf,full_tag("MARKER",3,false,$course->marker));
fwrite ($bf,full_tag("VISIBLE",3,false,$course->visible));
fwrite ($bf,full_tag("TIMECREATED",3,false,$course->timecreated));

View File

@ -225,6 +225,8 @@
//This function return the names of all directories and files under a give directory
//Not recursive
function list_directories_and_files ($rootdir) {
$results = "";
$dir = opendir($rootdir);
while ($file=readdir($dir)) {

View File

@ -331,6 +331,7 @@
$course->showreports = addslashes($course_header->course_showreports);
$course->groupmode = addslashes($course_header->course_groupmode);
$course->groupmodeforce = addslashes($course_header->course_groupmodeforce);
$course->lang = addslashes($course_header->course_lang);
$course->marker = addslashes($course_header->course_marker);
$course->visible = addslashes($course_header->course_visible);
$course->timecreated = addslashes($course_header->course_timecreated);
@ -1466,6 +1467,9 @@
case "GROUPMODEFORCE":
$this->info->course_groupmodeforce = $this->getContents();
break;
case "LANG":
$this->info->course_lang = $this->getContents();
break;
case "MARKER":
$this->info->course_marker = $this->getContents();
break;