Index: trunk/extensions/ArticleFeedbackv5/api/ApiViewFeedbackArticleFeedbackv5.php |
— | — | @@ -42,7 +42,6 @@ |
43 | 43 | $params['limit'], |
44 | 44 | ( $params['continue'] !== 'null' ? $params['continue'] : null ) |
45 | 45 | ); |
46 | | - |
47 | 46 | foreach ( $feedback as $record ) { |
48 | 47 | $html .= $this->renderFeedback( $record ); |
49 | 48 | $length++; |
— | — | @@ -191,7 +190,7 @@ |
192 | 191 | 'af_is_deleted', 'af_needs_oversight', |
193 | 192 | '(SELECT COUNT(*) FROM ' . $dbr->tableName( 'revision' ) . ' WHERE rev_id > af_revision_id AND rev_page = ' . ( integer ) $pageId . ') AS age', |
194 | 193 | 'CONVERT(af_helpful_count, SIGNED) - CONVERT(af_unhelpful_count, SIGNED) AS net_helpfulness', |
195 | | - 'page_latest', 'af_revision_id', 'page_title', |
| 194 | + 'page_latest', 'af_revision_id', 'page_title', 'page_namespace', |
196 | 195 | 'rating.aa_response_boolean AS rating' |
197 | 196 | ), |
198 | 197 | array( 'af_id' => $ids ), |
— | — | @@ -320,7 +319,7 @@ |
321 | 320 | ) ); |
322 | 321 | if( $record[0]->age > 0 ) { |
323 | 322 | $details .= Linker::link( |
324 | | - Title::newFromText( $record[0]->page_title ), |
| 323 | + Title::newFromRow( $record[0] ), |
325 | 324 | wfMessage( 'articlefeedbackv5-updates-since', $record[0]->age )->escaped(), |
326 | 325 | array(), |
327 | 326 | array( |