Skip to content

Commit

Permalink
MDL-44343 mod_glossary: Stop trying to pass deprecated unused variabl…
Browse files Browse the repository at this point in the history
…e for printing attachments
  • Loading branch information
andrewnicols committed Aug 6, 2014
1 parent a43be9d commit 1fad754
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/glossary/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ function glossary_print_entry_attachment($entry, $cm, $format = null, $unused1 =
// text: The HTML link for the attachment is text.
if ($entry->attachment) {
echo '<div class="attachments">';
echo glossary_print_attachments($entry, $cm, $format, $align);
echo glossary_print_attachments($entry, $cm, $format);
echo '</div>';
}
if ($unused1) {
Expand Down Expand Up @@ -1528,10 +1528,10 @@ function glossary_search_entries($searchterms, $glossary, $extended) {
* @param object $entry
* @param object $cm
* @param string $type html, txt, empty
* @param string $align left or right
* @param string $unused This parameter is no longer used
* @return string image string or nothing depending on $type param
*/
function glossary_print_attachments($entry, $cm, $type=NULL, $align="left") {
function glossary_print_attachments($entry, $cm, $type=NULL, $unused = null) {
global $CFG, $DB, $OUTPUT;

if (!$context = context_module::instance($cm->id, IGNORE_MISSING)) {
Expand Down

0 comments on commit 1fad754

Please sign in to comment.