From 187b3f885d698a46fbabc7379e97c2ec4277714c Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 5 May 2008 00:08:32 +0000 Subject: [PATCH] Glossary concepts must support multilang filter (all filters, in fact). And accesible alt texts for action buttons too. MDL-14687 --- mod/glossary/lib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 5b7b422b23637..e792021739ad6 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -685,7 +685,7 @@ function glossary_print_entry_default ($entry) { function glossary_print_entry_concept($entry) { $options = new object(); $options->para = false; - $text = format_text(print_heading($entry->concept, '', 3, 'nolink'), FORMAT_MOODLE, $options); + $text = format_text(print_heading($entry->concept, '', 3, 'nolink', true), FORMAT_MOODLE, $options); if (!empty($entry->highlight)) { $text = highlight($entry->highlight, $text); } @@ -854,7 +854,8 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h $return = ''; // Differentiate links for each entry. - $altsuffix = ': '.$entry->concept; + $altsuffix = ': '.strip_tags(format_text($entry->concept)); + if (!$entry->approved) { $output = true; $return .= get_string('entryishidden','glossary');