Index: trunk/extensions/PageTriage/api/ApiPageTriageList.php |
— | — | @@ -14,8 +14,6 @@ |
15 | 15 | // Retrieve the list of page IDs |
16 | 16 | $pages = $this->getPageIds( $opts ); |
17 | 17 | |
18 | | - $metaDataSend = array(); |
19 | | - |
20 | 18 | if ( $pages ) { |
21 | 19 | // fetch metadata for those pages |
22 | 20 | $articleMetadata = new ArticleMetadata( $pages ); |
— | — | @@ -30,7 +28,7 @@ |
31 | 29 | } |
32 | 30 | |
33 | 31 | // 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 ) ); |
35 | 33 | $this->getResult()->addValue( null, $this->getModuleName(), $result ); |
36 | 34 | } |
37 | 35 | |