From e58b1d1edabe3d4fccd3198c06cff7f57df29b27 Mon Sep 17 00:00:00 2001 From: stronk7 <stronk7> Date: Mon, 2 Aug 2004 21:41:49 +0000 Subject: [PATCH] Reload current glossary format from DB, because the plugin system can changed it automatically. --- mod/glossary/mod.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mod/glossary/mod.html b/mod/glossary/mod.html index 6d91e1bd06..feb8614d81 100644 --- a/mod/glossary/mod.html +++ b/mod/glossary/mod.html @@ -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(); -- 2.39.5