| @@ 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; |
|
| @@ 512-518 (lines=7) @@ | ||
| 509 | $nt = Title::makeTitleSafe( NS_CATEGORY, $name ); |
|
| 510 | $wgContLang->findVariantLink( $name, $nt, true ); |
|
| 511 | ||
| 512 | if ( $this->mTitle->getNamespace() == NS_CATEGORY ) { |
|
| 513 | $type = 'subcat'; |
|
| 514 | } elseif ( $this->mTitle->getNamespace() == NS_FILE ) { |
|
| 515 | $type = 'file'; |
|
| 516 | } else { |
|
| 517 | $type = 'page'; |
|
| 518 | } |
|
| 519 | ||
| 520 | # Treat custom sortkeys as a prefix, so that if multiple |
|
| 521 | # things are forced to sort as '*' or something, they'll |
|