]> git.mjollnir.org Git - moodle.git/commitdiff
Changed hiddentopics to hiddensections in backup and restore
authorstronk7 <stronk7>
Sun, 2 May 2004 22:34:13 +0000 (22:34 +0000)
committerstronk7 <stronk7>
Sun, 2 May 2004 22:34:13 +0000 (22:34 +0000)
backup/backuplib.php
backup/restorelib.php

index 4a9cc2373212d507e5b23c06e0bbd9201349f1f0..ae349c567d7850c8a986a600c291ce3bce5be237 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("HIDDENSECTIONS",3,false,$course->hiddensections));
             fwrite ($bf,full_tag("TIMECREATED",3,false,$course->timecreated));
             $status = fwrite ($bf,full_tag("TIMEMODIFIED",3,false,$course->timemodified));
             //Print header end
index 33d34aa205a910092e6e50d69d528af69b909db8..1a5ede01905dd6a50e56b9abd8a7016d779c567b 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->hiddensections = addslashes($course_header->course_hiddensections);
             $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();
+                        case "HIDDENSECTIONS":
+                            $this->info->course_hiddensections = $this->getContents();
                             break;
                         case "TIMECREATED":
                             $this->info->course_timecreated = $this->getContents();