Index: trunk/phase3/includes/CategoryPage.php |
— | — | @@ -244,7 +244,7 @@ |
245 | 245 | * else use sortkey... |
246 | 246 | * |
247 | 247 | * @param Title $title |
248 | | - * @param string $sortkey |
| 248 | + * @param string $sortkey The human-readable sortkey (before transforming to icu or whatever). |
249 | 249 | */ |
250 | 250 | function getSubcategorySortChar( $title, $sortkey ) { |
251 | 251 | global $wgContLang; |
— | — | @@ -364,22 +364,22 @@ |
365 | 365 | $count = 0; |
366 | 366 | foreach ( $res as $row ) { |
367 | 367 | $title = Title::newFromRow( $row ); |
368 | | - $rawSortkey = $row->cl_sortkey; |
| 368 | + $humanSortkey = $title->getCategorySortkey( $row->cl_sortkey_prefix ); |
369 | 369 | |
370 | 370 | if ( ++$count > $this->limit ) { |
371 | 371 | # We've reached the one extra which shows that there |
372 | 372 | # are additional pages to be had. Stop here... |
373 | | - $this->nextPage[$type] = $rawSortkey; |
| 373 | + $this->nextPage[$type] = $humanSortkey; |
374 | 374 | break; |
375 | 375 | } |
376 | 376 | |
377 | 377 | if ( $title->getNamespace() == NS_CATEGORY ) { |
378 | 378 | $cat = Category::newFromRow( $row, $title ); |
379 | | - $this->addSubcategoryObject( $cat, $rawSortkey, $row->page_len ); |
| 379 | + $this->addSubcategoryObject( $cat, $humanSortkey, $row->page_len ); |
380 | 380 | } elseif ( $title->getNamespace() == NS_FILE ) { |
381 | | - $this->addImage( $title, $rawSortkey, $row->page_len, $row->page_is_redirect ); |
| 381 | + $this->addImage( $title, $humanSortkey, $row->page_len, $row->page_is_redirect ); |
382 | 382 | } else { |
383 | | - $this->addPage( $title, $rawSortkey, $row->page_len, $row->page_is_redirect ); |
| 383 | + $this->addPage( $title, $humanSortkey, $row->page_len, $row->page_is_redirect ); |
384 | 384 | } |
385 | 385 | } |
386 | 386 | } |