Now glossary pivot should be working fine under every charset.

This commit is contained in:
stronk7 2006-01-07 12:11:52 +00:00
parent 5112f02cbe
commit 7123515431
2 changed files with 10 additions and 5 deletions

View file

@ -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">';