| @@ 280-286 (lines=7) @@ | ||
| 277 | [ 'cl_from' => $pageid ], |
|
| 278 | __METHOD__ |
|
| 279 | ); |
|
| 280 | if ( $this->newTitle->getNamespace() == NS_CATEGORY ) { |
|
| 281 | $type = 'subcat'; |
|
| 282 | } elseif ( $this->newTitle->getNamespace() == NS_FILE ) { |
|
| 283 | $type = 'file'; |
|
| 284 | } else { |
|
| 285 | $type = 'page'; |
|
| 286 | } |
|
| 287 | foreach ( $prefixes as $prefixRow ) { |
|
| 288 | $prefix = $prefixRow->cl_sortkey_prefix; |
|
| 289 | $catTo = $prefixRow->cl_to; |
|
| @@ 570-576 (lines=7) @@ | ||
| 567 | $nt = Title::makeTitleSafe( NS_CATEGORY, $name ); |
|
| 568 | $wgContLang->findVariantLink( $name, $nt, true ); |
|
| 569 | ||
| 570 | if ( $this->mTitle->getNamespace() == NS_CATEGORY ) { |
|
| 571 | $type = 'subcat'; |
|
| 572 | } elseif ( $this->mTitle->getNamespace() == NS_FILE ) { |
|
| 573 | $type = 'file'; |
|
| 574 | } else { |
|
| 575 | $type = 'page'; |
|
| 576 | } |
|
| 577 | ||
| 578 | # Treat custom sortkeys as a prefix, so that if multiple |
|
| 579 | # things are forced to sort as '*' or something, they'll |
|