Reload current glossary format from DB, because

the plugin system can changed it automatically.
This commit is contained in:
stronk7
2004-08-02 21:41:49 +00:00
parent 931ee9ad15
commit e58b1d1eda
+4
View 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();