]> git.mjollnir.org Git - moodle.git/commitdiff
Now, in topics format, every course can decide about how to
authorstronk7 <stronk7>
Tue, 27 Apr 2004 16:37:53 +0000 (16:37 +0000)
committerstronk7 <stronk7>
Tue, 27 Apr 2004 16:37:53 +0000 (16:37 +0000)
display hidden topics (collapsed or invisible)
Added support for course->hiddentopics in backup & restore

backup/backuplib.php
backup/restorelib.php

index 6f42d620c03405c7ae36d21a83dff7b16eec5b87..19dd0dc17feb89c06ecd1bd6ea03e4aee05b4997 100644 (file)
             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("HIDDENTOPICS",3,false,$course->hiddentopics));
             fwrite ($bf,full_tag("TIMECREATED",3,false,$course->timecreated));
             $status = fwrite ($bf,full_tag("TIMEMODIFIED",3,false,$course->timemodified));
             //Print header end
index 6893af36bdb11c2b8316c3771917219e23a15216..7a68725244696b6bc22cf19561977b209d0ef959 100644 (file)
             $course->lang = addslashes($course_header->course_lang);
             $course->marker = addslashes($course_header->course_marker);
             $course->visible = addslashes($course_header->course_visible);
+            $course->hiddentopics = addslashes($course_header->course_hiddentopics);
             $course->timecreated = addslashes($course_header->course_timecreated);
             $course->timemodified = addslashes($course_header->course_timemodified);
             //Adjust blockinfo field.
                         case "VISIBLE":
                             $this->info->course_visible = $this->getContents();
                             break;
+                        case "HIDDENTOPICS":
+                            $this->info->course_hiddentopics = $this->getContents();
+                            break;
                         case "TIMECREATED":
                             $this->info->course_timecreated = $this->getContents();
                             break;