]> git.mjollnir.org Git - moodle.git/commitdiff
Glossary concepts must support multilang filter (all filters, in fact).
authorstronk7 <stronk7>
Mon, 5 May 2008 00:09:58 +0000 (00:09 +0000)
committerstronk7 <stronk7>
Mon, 5 May 2008 00:09:58 +0000 (00:09 +0000)
And accesible alt texts for action buttons too. MDL-14687 ; merged from 19_STABLE

mod/glossary/lib.php

index c583f2a5a4a7097817c5c732d5743c916e213b7e..99347b8d77472857f73c85987394e4ffe157ca4a 100644 (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');