Fix bug in prefixing scheme
[lhc/web/wiklou.git] / includes / CategoryPage.php
index 0897fbf..41f4969 100644 (file)
@@ -312,7 +312,7 @@ class CategoryViewer {
                                $count = 0;
                                foreach ( $res as $row ) {
                                        $title = Title::newFromRow( $row );
-                                       $rawSortkey = $row->cl_sortkey_prefix . $title->getCategorySortkey();
+                                       $rawSortkey = $title->getCategorySortkey( $row->cl_sortkey_prefix );
 
                                        if ( ++$count > $this->limit ) {
                                                # We've reached the one extra which shows that there