r19033 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19032‎ | r19033 | r19034 >
Date:20:57, 9 January 2007
Author:hashar
Status:old
Tags:
Comment:
braces are usefull
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -1552,7 +1552,6 @@
15531553 $e2 = wfMsgForContent( 'linkprefix' );
15541554
15551555 $useLinkPrefixExtension = $wgContLang->linkPrefixExtension();
1556 -
15571556 if( is_null( $this->mTitle ) ) {
15581557 throw new MWException( __METHOD__.": \$this->mTitle is null\n" );
15591558 }
@@ -1569,10 +1568,11 @@
15701569 $prefix = '';
15711570 }
15721571
1573 - if($wgContLang->hasVariants())
 1572+ if($wgContLang->hasVariants()) {
15741573 $selflink = $wgContLang->convertLinkToAllVariants($this->mTitle->getPrefixedText());
1575 - else
 1574+ } else {
15761575 $selflink = array($this->mTitle->getPrefixedText());
 1576+ }
15771577 $useSubpages = $this->areSubpagesAllowed();
15781578 wfProfileOut( $fname.'-setup' );
15791579