* (bug 27479) API error when using both prop=pageprops and prop=info&inprop=displaytitle
authorSam Reed <reedy@users.mediawiki.org>
Wed, 16 Feb 2011 23:38:21 +0000 (23:38 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 16 Feb 2011 23:38:21 +0000 (23:38 +0000)
Followup r75282

Patch by Brad Jorsch

RELEASE-NOTES
includes/api/ApiQueryPageProps.php

index a33bffa..27e7f27 100644 (file)
@@ -173,6 +173,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 27199) Thumbnail urls can be fetched for old files as well
 * (bug 27376) when using ApiBase::PARAM_TYPE => 'integer' without a min or
   max value, api doesn't validate the input is actually an integer
+* (bug 27479) API error when using both prop=pageprops and
+  prop=info&inprop=displaytitle
 
 === Languages updated in 1.18 ===
 
index 1e9fa48..087f8c8 100644 (file)
@@ -112,7 +112,7 @@ class ApiQueryPageProps extends ApiQueryBase {
         * @return bool True if it fits in the result
         */
        private function addPageProps( $result, $page, $props ) {
-               $fit = $result->addValue( array( 'query', 'pages' ), $page, $props );
+               $fit = $result->addValue( array( 'query', 'pages', $page ), 'pageprops', $props );
 
                if ( !$fit ) {
                        $this->setContinueEnumParameter( 'continue', $page );