]> git.mjollnir.org Git - moodle.git/commitdiff
Reload current glossary format from DB, because
authorstronk7 <stronk7>
Mon, 2 Aug 2004 21:41:49 +0000 (21:41 +0000)
committerstronk7 <stronk7>
Mon, 2 Aug 2004 21:41:49 +0000 (21:41 +0000)
the plugin system can changed it automatically.

mod/glossary/mod.html

index 6d91e1bd06839ebf3e25e6f7119c11b63b7fc1e6..feb8614d81923bf232c0ee175374ef5b92afcbe8 100644 (file)
@@ -240,6 +240,10 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
     <?php
         //get and update available formats
         $recformats = glossary_get_available_formats();
+        //reload current format, because of it has changed (deleted format)
+        if ($currentglossary = get_record("glossary",'id',$form->id)) {
+            $form->displayformat = $currentglossary->displayformat;
+        }
     
         $formats = array();