From: stronk7 Date: Mon, 5 May 2008 00:09:58 +0000 (+0000) Subject: Glossary concepts must support multilang filter (all filters, in fact). X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2d1e0971575495edc2054042cf4ba5bf769a8cdb;p=moodle.git Glossary concepts must support multilang filter (all filters, in fact). And accesible alt texts for action buttons too. MDL-14687 ; merged from 19_STABLE --- diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index c583f2a5a4..99347b8d77 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');