Index: trunk/extensions/CodeReview/CodeRevisionListView.php |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | return array( |
116 | 116 | $this->getDefaultSort() => wfMsg( 'code-field-id' ), |
117 | 117 | 'cr_status' => wfMsg( 'code-field-status' ), |
118 | | - 'COUNT(cc_rev_id)' => wfMsg( 'code-field-comments' ), |
| 118 | + 'COUNT( DISTINCT cc_id)' => wfMsg( 'code-field-comments' ), |
119 | 119 | 'cr_path' => wfMsg( 'code-field-path' ), |
120 | 120 | 'cr_message' => wfMsg( 'code-field-message' ), |
121 | 121 | 'cr_author' => wfMsg( 'code-field-author' ), |
— | — | @@ -142,7 +142,7 @@ |
143 | 143 | case 'cr_timestamp': |
144 | 144 | global $wgLang; |
145 | 145 | return $wgLang->timeanddate( $value, true ); |
146 | | - case 'COUNT(cc_rev_id)': |
| 146 | + case 'COUNT( DISTINCT cc_id)': |
147 | 147 | return intval( $value ); |
148 | 148 | case 'cr_path': |
149 | 149 | return Xml::element('div', array( 'title' => (string)$value ), |