Index: trunk/phase3/includes/Parser.php |
— | — | @@ -1552,7 +1552,6 @@ |
1553 | 1553 | $e2 = wfMsgForContent( 'linkprefix' ); |
1554 | 1554 | |
1555 | 1555 | $useLinkPrefixExtension = $wgContLang->linkPrefixExtension(); |
1556 | | - |
1557 | 1556 | if( is_null( $this->mTitle ) ) { |
1558 | 1557 | throw new MWException( __METHOD__.": \$this->mTitle is null\n" ); |
1559 | 1558 | } |
— | — | @@ -1569,10 +1568,11 @@ |
1570 | 1569 | $prefix = ''; |
1571 | 1570 | } |
1572 | 1571 | |
1573 | | - if($wgContLang->hasVariants()) |
| 1572 | + if($wgContLang->hasVariants()) { |
1574 | 1573 | $selflink = $wgContLang->convertLinkToAllVariants($this->mTitle->getPrefixedText()); |
1575 | | - else |
| 1574 | + } else { |
1576 | 1575 | $selflink = array($this->mTitle->getPrefixedText()); |
| 1576 | + } |
1577 | 1577 | $useSubpages = $this->areSubpagesAllowed(); |
1578 | 1578 | wfProfileOut( $fname.'-setup' ); |
1579 | 1579 | |