From 05d2ef0db2a02fd54d9ea5b72e28564827d0b319 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 21 Nov 2010 17:02:12 +0000 Subject: [PATCH] Per Reedy, follow-up to r77072: don't use array_merge() to add just one item --- includes/api/ApiQueryLangLinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index c2ae0f505b..3f7e4fd777 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 ); -- 2.20.1