r114772 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114771‎ | r114772 | r114773 >
Date:20:50, 6 April 2012
Author:kaldari
Status:deferred
Tags:
Comment:
follow-up to r114725 - fixing user page status
Modified paths:
  • /trunk/extensions/PageTriage/api/ApiPageTriageList.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/api/ApiPageTriageList.php
@@ -14,8 +14,6 @@
1515 // Retrieve the list of page IDs
1616 $pages = $this->getPageIds( $opts );
1717
18 - $metaDataSend = array();
19 -
2018 if ( $pages ) {
2119 // fetch metadata for those pages
2220 $articleMetadata = new ArticleMetadata( $pages );
@@ -30,7 +28,7 @@
3129 }
3230
3331 // Output the results
34 - $result = array( 'result' => 'success', 'pages' => $sortedMetaData, 'userpagestatus' => PageTriageUtil::pageStatusForUser( $metaDataSend ) );
 32+ $result = array( 'result' => 'success', 'pages' => $sortedMetaData, 'userpagestatus' => PageTriageUtil::pageStatusForUser( $sortedMetaData ) );
3533 $this->getResult()->addValue( null, $this->getModuleName(), $result );
3634 }
3735

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r114725adding sort direction support, getting rid of some old unused code, and vario...kaldari00:06, 5 April 2012

Status & tagging log