Index: trunk/phase3/includes/parser/LinkHolderArray.php |
— | — | @@ -461,14 +461,13 @@ |
462 | 462 | for ( $i = 0; $i < $l; $i ++ ) { |
463 | 463 | foreach ( $allVariantsName as $variantName ) { |
464 | 464 | $textVariant = $titlesAllVariants[$variantName][$i]; |
465 | | - extract( $titlesAttrs[$i] ); |
466 | | - if($textVariant != $titleText){ |
467 | | - $variantTitle = Title::makeTitle( $ns, $textVariant ); |
| 465 | + if ( $textVariant != $titlesAttrs[$i]['titleText'] ) { |
| 466 | + $variantTitle = Title::makeTitle( $titlesAttrs[$i]['ns'], $textVariant ); |
468 | 467 | if( is_null( $variantTitle ) ) { |
469 | 468 | continue; |
470 | 469 | } |
471 | 470 | $linkBatch->addObj( $variantTitle ); |
472 | | - $variantMap[$variantTitle->getPrefixedDBkey()][] = $key; |
| 471 | + $variantMap[$variantTitle->getPrefixedDBkey()][] = $titlesAttrs[$i]['key']; |
473 | 472 | } |
474 | 473 | } |
475 | 474 | } |