Glossary concepts must support multilang filter (all filters, in fact).

And accesible alt texts for action buttons too. MDL-14687
This commit is contained in:
stronk7
2008-05-05 00:08:32 +00:00
parent bb6c0ef2cf
commit 187b3f885d
+3 -2
View File
@@ -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 = '<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');