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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user