aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryLangLinks.php
diff options
context:
space:
mode:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>2010-11-21 17:02:12 +0000
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>2010-11-21 17:02:12 +0000
commit05d2ef0db2a02fd54d9ea5b72e28564827d0b319 (patch)
treeafabe8bceddf7cf99642ed5431f7e07d1509a6ac /includes/api/ApiQueryLangLinks.php
parentf4345a95e21fa745cd75d8f731aa227e0e2ece24 (diff)
downloadmediawikicore-05d2ef0db2a02fd54d9ea5b72e28564827d0b319.tar.gz
mediawikicore-05d2ef0db2a02fd54d9ea5b72e28564827d0b319.zip
Per Reedy, follow-up to r77072: don't use array_merge() to add just one item
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77079
Diffstat (limited to 'includes/api/ApiQueryLangLinks.php')
-rw-r--r--includes/api/ApiQueryLangLinks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php
index c2ae0f505bfb..3f7e4fd777c6 100644
--- a/includes/api/ApiQueryLangLinks.php
+++ b/includes/api/ApiQueryLangLinks.php
@@ -90,7 +90,7 @@ class ApiQueryLangLinks extends ApiQueryBase {
if ( !is_null( $params['url'] ) ) {
$title = Title::newFromText( "{$row->ll_lang}:{$row->ll_title}" );
if ( $title ) {
- $entry = array_merge( $entry, array( 'url' => $title->getFullURL() ) );
+ $entry['url'] = $title->getFullURL();
}
}
ApiResult::setContent( $entry, $row->ll_title );