]> git.mjollnir.org Git - moodle.git/commitdiff
One minor problem restoring categories in XHTML solved
authorstronk7 <stronk7>
Mon, 7 Feb 2005 23:45:19 +0000 (23:45 +0000)
committerstronk7 <stronk7>
Mon, 7 Feb 2005 23:45:19 +0000 (23:45 +0000)
backup/restore_execute.html
mod/quiz/restorelib.php

index 5490bc89e622b3b26d74f5bd560ce27ba659defc..c9201a14c03e7a3465748ec8b7bbff1906a10d8b 100644 (file)
 
     //Now create categories and questions as needed (STEP1)
     if ($status and ($restore->mods['quiz']->restore)) {
-        echo "</li><li>".get_string("creatingcategoriesandquestions")."</li>";
+        echo "</li><li>".get_string("creatingcategoriesandquestions");
+        echo "<ul>";
         if (!$status = restore_create_questions($restore,$xml_file)) {
             notify("Could not restore categories and questions!");
         }
+        echo "</ul></li>";
     }
 
     //Now create user_files as needed
index 55d205e3a3fa2224953f857beb93ac489ec8bb17..bd834fbd6b48802e10aff218e826c1c73d13fdb5 100644 (file)
 
             //Do some output
             if ($status) {
-                echo "<li>".get_string("category")." \"".$quiz_cat->name."\"</li>";
+                echo "<li>".get_string("category")." \"".$quiz_cat->name."\"<br />";
             } else {
                 //We must never arrive here !!
-                echo "<li>".get_string("category")." \"".$quiz_cat->name."\" Error!</li>";
+                echo "<li>".get_string("category")." \"".$quiz_cat->name."\" Error!<br />";
             }
             backup_flush(300);
 
             } else {
                 $status = false;
             }
+            echo '</li>';
         }
 
         return $status;