dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2e6b16
)
Simplified code. Removed not needed if-else
author
jeroendedauw
<jeroendedauw@gmail.com>
Fri, 25 Jan 2013 15:46:24 +0000
(16:46 +0100)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 25 Jan 2013 20:07:27 +0000
(20:07 +0000)
Change-Id: I9660f543deefb5154a03535b668ee68eb3394e75
includes/parser/ParserOutput.php
patch
|
blob
|
history
diff --git
a/includes/parser/ParserOutput.php
b/includes/parser/ParserOutput.php
index
28d07f1
..
5dddb00
100644
(file)
--- 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 ) );
}
}