Per Reedy, follow-up to r77072: don't use array_merge() to add just one item
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 21 Nov 2010 17:02:12 +0000 (17:02 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 21 Nov 2010 17:02:12 +0000 (17:02 +0000)
includes/api/ApiQueryLangLinks.php

index c2ae0f5..3f7e4fd 100644 (file)
@@ -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 );