mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Now course->lang is in backup & restore.
This commit is contained in:
parent
178c952a52
commit
3a4b33c3b9
@ -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));
|
||||
|
@ -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)) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user