Skip to content

Commit

Permalink
Merge branch 'MDL-76185-311' of https://github.com/mihailges/moodle i…
Browse files Browse the repository at this point in the history
…nto MOODLE_311_STABLE
  • Loading branch information
junpataleta committed Nov 9, 2022
2 parents dd6f0de + 0eda72e commit acdca03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod/glossary/formats/continuous/continuous_format.php
Expand Up @@ -22,7 +22,7 @@ function glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode='
echo '</td></tr>';

echo '<tr valign="top"><td class="entrylowersection">';
glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases);
glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases, false);
echo '</td>';
echo '</tr>';
echo "</table>\n";
Expand Down
9 changes: 7 additions & 2 deletions mod/glossary/lib.php
Expand Up @@ -1354,9 +1354,11 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h
* @param object $hook
* @param bool $printicons
* @param bool $aliases
* @param bool $printseparator Whether to print a thematic break (separator) at the end of the lower section.
* @return void
*/
function glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases=true) {
function glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases = true,
$printseparator = true) {
if ($aliases) {
$aliases = glossary_print_entry_aliases($course, $cm, $glossary, $entry, $mode, $hook,'html');
}
Expand All @@ -1381,7 +1383,10 @@ function glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $m
echo '</td></tr>';
}
echo '</table>';
echo "<hr>\n";

if ($printseparator) {
echo "<hr>\n";
}
}
}

Expand Down

0 comments on commit acdca03

Please sign in to comment.