Index: trunk/extensions/ArticleFeedbackv5/api/ApiViewFeedbackArticleFeedbackv5.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | $pageId = $params['pageid']; |
34 | 34 | $html = ''; |
35 | 35 | $length = 0; |
36 | | - $count = $this->fetchFeedbackCount( $params['pageid'], $params['filter'], $params['filtervalue'] ); |
| 36 | + $count = $this->fetchFeedbackCount( $params['pageid'] ); |
37 | 37 | $feedback = $this->fetchFeedback( |
38 | 38 | $params['pageid'], |
39 | 39 | $params['filter'], |
— | — | @@ -58,14 +58,14 @@ |
59 | 59 | } |
60 | 60 | } |
61 | 61 | |
62 | | - public function fetchFeedbackCount( $pageId, $filter, $filterValue ) { |
| 62 | + public function fetchFeedbackCount( $pageId ) { |
63 | 63 | $dbr = wfGetDB( DB_SLAVE ); |
64 | 64 | $count = $dbr->selectField( |
65 | 65 | array( 'aft_article_filter_count' ), |
66 | 66 | array( 'afc_filter_count' ), |
67 | 67 | array( |
68 | 68 | 'afc_page_id' => $pageId, |
69 | | - 'afc_filter_name' => $filter |
| 69 | + 'afc_filter_name' => 'all' |
70 | 70 | ), |
71 | 71 | __METHOD__ |
72 | 72 | ); |