https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114312
Revision: 114312 Author: bsitu Date: 2012-03-20 21:34:50 +0000 (Tue, 20 Mar 2012) Log Message: ----------- add missing parameter to constructor and remove redundant parameter from function Modified Paths: -------------- trunk/extensions/PageTriage/api/ApiPageTriageGetMetadata.php Modified: trunk/extensions/PageTriage/api/ApiPageTriageGetMetadata.php =================================================================== --- trunk/extensions/PageTriage/api/ApiPageTriageGetMetadata.php 2012-03-20 21:34:50 UTC (rev 114311) +++ trunk/extensions/PageTriage/api/ApiPageTriageGetMetadata.php 2012-03-20 21:34:50 UTC (rev 114312) @@ -11,8 +11,8 @@ $this->dieUsage( 'Too many pages in the request', 'exceed-page-limit' ); } - $articleMetadata = new ArticleMetadata( ); - $metaData = $articleMetadata->getMetadata( $params['page_id'] ); + $articleMetadata = new ArticleMetadata( $params['page_id'] ); + $metaData = $articleMetadata->getMetadata(); $result = array( 'result' => 'success', 'page' => $metaData ); $this->getResult()->addValue( null, $this->getModuleName(), $result ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs