]> git.mjollnir.org Git - moodle.git/commitdiff
Now the questiontextformat is supported in backup/restore too.
authorstronk7 <stronk7>
Fri, 13 Feb 2004 23:47:08 +0000 (23:47 +0000)
committerstronk7 <stronk7>
Fri, 13 Feb 2004 23:47:08 +0000 (23:47 +0000)
mod/quiz/backuplib.php
mod/quiz/restorelib.php

index 084efb9819775bcf3b2f1891bc8323d8c24d2801..e5c4811575f69096b75481d3acdc843fe9a5bcd2 100644 (file)
                 fwrite ($bf,full_tag("ID",6,false,$question->id));
                 fwrite ($bf,full_tag("NAME",6,false,$question->name));
                 fwrite ($bf,full_tag("QUESTIONTEXT",6,false,$question->questiontext));
+                fwrite ($bf,full_tag("QUESTIONTEXTFORMAT",6,false,$question->questiontextformat));
                 fwrite ($bf,full_tag("IMAGE",6,false,$question->image));
                 fwrite ($bf,full_tag("DEFAULTGRADE",6,false,$question->defaultgrade));
                 fwrite ($bf,full_tag("QTYPE",6,false,$question->qtype));
index 1f2579865f9134300226e738c7185357e49cb634..839b621fb23630092ce84c14d0e7b715598e617c 100644 (file)
             $question->category = $new_category_id;
             $question->name = backup_todb($que_info['#']['NAME']['0']['#']);
             $question->questiontext = backup_todb($que_info['#']['QUESTIONTEXT']['0']['#']);
+            $question->questiontextformat = backup_todb($que_info['#']['QUESTIONTEXTFORMAT']['0']['#']);
             $question->image = backup_todb($que_info['#']['IMAGE']['0']['#']);
             $question->defaultgrade = backup_todb($que_info['#']['DEFAULTGRADE']['0']['#']);
             $question->qtype = backup_todb($que_info['#']['QTYPE']['0']['#']);