mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Now glossary pivot should be working fine under every charset.
This commit is contained in:
parent
5112f02cbe
commit
7123515431
2 changed files with 10 additions and 5 deletions
|
@ -320,14 +320,15 @@
|
|||
$pivot = $entry->pivot;
|
||||
if ( !$fullpivot ) {
|
||||
$pivot = $textlib->substr($pivot, 0, 1, current_charset());
|
||||
$upperpivot = $textlib->strtoupper($pivot, current_charset());
|
||||
}
|
||||
|
||||
/// if there's a group break
|
||||
if ( $currentpivot != strtoupper($pivot) ) {
|
||||
if ( $currentpivot != $upperpivot ) {
|
||||
|
||||
// print the group break if apply
|
||||
if ( $printpivot ) {
|
||||
$currentpivot = strtoupper($pivot);
|
||||
$currentpivot = $upperpivot;
|
||||
|
||||
echo '<div>';
|
||||
echo '<table cellspacing="0" class="categoryheader">';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue