Index: trunk/extensions/CodeReview/api/ApiQueryCodeRevisions.php |
— | — | @@ -58,11 +58,9 @@ |
59 | 59 | if ( $revsSet ) { |
60 | 60 | $db = wfGetDB( DB_SLAVE ); |
61 | 61 | |
62 | | - $list = $db->makeList( $params['revs'] ); |
63 | | - |
64 | 62 | $query = $pager->getQueryInfo(); |
65 | 63 | |
66 | | - $query['conds'][] = 'cr_id IN ( ' . $list . ' )'; |
| 64 | + $query['conds'][] = array( 'cr_id IN' => $params['revs'] ); |
67 | 65 | |
68 | 66 | $revisions = $db->select( $query['tables'], $query['fields'], $query['conds'], |
69 | 67 | __METHOD__, $query['options'], $query['join_conds'] ); |