From: jeroendedauw Date: Fri, 25 Jan 2013 15:46:24 +0000 (+0100) Subject: Simplified code. Removed not needed if-else X-Git-Tag: 1.31.0-rc.0~20914 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=c19ec2d8f9aef48cf57d49da8b387e7ba5b31215;p=lhc%2Fweb%2Fwiklou.git Simplified code. Removed not needed if-else Change-Id: I9660f543deefb5154a03535b668ee68eb3394e75 --- diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 28d07f1479..5dddb00cb1 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -457,13 +457,7 @@ class ParserOutput extends CacheTime { $linksUpdate = new LinksUpdate( $title, $this, $recursive ); - if ( $this->mSecondaryDataUpdates === array() ) { - return array( $linksUpdate ); - } else { - $updates = array_merge( $this->mSecondaryDataUpdates, array( $linksUpdate ) ); - } - - return $updates; + return array_merge( $this->mSecondaryDataUpdates, array( $linksUpdate ) ); } }