| @@ 272-278 (lines=7) @@ | ||
| 269 | [ 'cl_from' => $pageid ], |
|
| 270 | __METHOD__ |
|
| 271 | ); |
|
| 272 | if ( $this->newTitle->getNamespace() == NS_CATEGORY ) { |
|
| 273 | $type = 'subcat'; |
|
| 274 | } elseif ( $this->newTitle->getNamespace() == NS_FILE ) { |
|
| 275 | $type = 'file'; |
|
| 276 | } else { |
|
| 277 | $type = 'page'; |
|
| 278 | } |
|
| 279 | foreach ( $prefixes as $prefixRow ) { |
|
| 280 | $prefix = $prefixRow->cl_sortkey_prefix; |
|
| 281 | $catTo = $prefixRow->cl_to; |
|
| @@ 524-530 (lines=7) @@ | ||
| 521 | $nt = Title::makeTitleSafe( NS_CATEGORY, $name ); |
|
| 522 | $wgContLang->findVariantLink( $name, $nt, true ); |
|
| 523 | ||
| 524 | if ( $this->mTitle->getNamespace() == NS_CATEGORY ) { |
|
| 525 | $type = 'subcat'; |
|
| 526 | } elseif ( $this->mTitle->getNamespace() == NS_FILE ) { |
|
| 527 | $type = 'file'; |
|
| 528 | } else { |
|
| 529 | $type = 'page'; |
|
| 530 | } |
|
| 531 | ||
| 532 | # Treat custom sortkeys as a prefix, so that if multiple |
|
| 533 | # things are forced to sort as '*' or something, they'll |
|