From: Antoine Musso Date: Tue, 9 Jan 2007 20:57:10 +0000 (+0000) Subject: braces are usefull X-Git-Tag: 1.31.0-rc.0~54544 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=f13cb9e09b6e2cf49353bdf58d289509d37aaf67;p=lhc%2Fweb%2Fwiklou.git braces are usefull --- diff --git a/includes/Parser.php b/includes/Parser.php index 8d67279dbe..ff1b757cea 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1552,7 +1552,6 @@ class Parser $e2 = wfMsgForContent( 'linkprefix' ); $useLinkPrefixExtension = $wgContLang->linkPrefixExtension(); - if( is_null( $this->mTitle ) ) { throw new MWException( __METHOD__.": \$this->mTitle is null\n" ); } @@ -1569,10 +1568,11 @@ class Parser $prefix = ''; } - if($wgContLang->hasVariants()) + if($wgContLang->hasVariants()) { $selflink = $wgContLang->convertLinkToAllVariants($this->mTitle->getPrefixedText()); - else + } else { $selflink = array($this->mTitle->getPrefixedText()); + } $useSubpages = $this->areSubpagesAllowed(); wfProfileOut( $fname.'-setup' );