Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Category.php |
— | — | @@ -47,6 +47,7 @@ |
48 | 48 | } |
49 | 49 | |
50 | 50 | protected function getResultText($res,$outputmode) { |
| 51 | + global $wgContLang; |
51 | 52 | |
52 | 53 | // <H3> will generate TOC entries otherwise. Probably need another way |
53 | 54 | // to accomplish this -- user might still want TOC for other page content. |
— | — | @@ -67,7 +68,7 @@ |
68 | 69 | |
69 | 70 | $content = $row[0]->getContent(); |
70 | 71 | $sortkey = $content[0]->getSortkey(); |
71 | | - $cur_first_char = $sortkey{0}; |
| 72 | + $cur_first_char = $wgContLang->firstChar($sortkey); |
72 | 73 | if ($rowindex % $rows_per_column == 0) { |
73 | 74 | $result .= "\n <div style=\"float: left; width: $column_width%;\">\n"; |
74 | 75 | if ($cur_first_char == $prev_first_char) |