Skip to content

Commit

Permalink
Glossary concepts must support multilang filter (all filters, in fact).
Browse files Browse the repository at this point in the history
And accesible alt texts for action buttons too. MDL-14687
  • Loading branch information
stronk7 committed May 5, 2008
1 parent bb6c0ef commit 187b3f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/glossary/lib.php
Expand Up @@ -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);
}
Expand Down Expand Up @@ -854,7 +854,8 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h

$return = '<span class="commands">';
// 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');
Expand Down

0 comments on commit 187b3f8

Please sign in to comment.