Index: trunk/extensions/ArticleFeedbackv5/api/ApiViewFeedbackArticleFeedbackv5.php |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | 'af_user_ip', 'af_hide_count', 'af_abuse_count', |
160 | 160 | 'af_helpful_count', 'af_unhelpful_count', |
161 | 161 | 'af_delete_count', 'af_needs_oversight', |
162 | | - '(SELECT COUNT(*) FROM revision WHERE rev_id > af_revision_id AND rev_page = '.( integer ) $pageId.') AS age', |
| 162 | + '(SELECT COUNT(*) FROM '.$dbr->tableName( 'revision' ).' WHERE rev_id > af_revision_id AND rev_page = '.( integer ) $pageId.') AS age', |
163 | 163 | 'CONVERT(af_helpful_count, SIGNED) - CONVERT(af_unhelpful_count, SIGNED) AS net_helpfulness', |
164 | 164 | 'page_latest', 'af_revision_id', 'page_title' |
165 | 165 | ), |