Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -197,7 +197,7 @@ |
198 | 198 | * @return int Number of revisions |
199 | 199 | */ |
200 | 200 | function getRevCount( $dbr ) { |
201 | | - /*$tables = array( 'code_rev' ); |
| 201 | + $tables = array( 'code_rev' ); |
202 | 202 | $selectFields = array( 'COUNT( DISTINCT cr_id ) AS rev_count' ); |
203 | 203 | // Count if code_rev where path matches |
204 | 204 | if ( strlen( $this->mPath ) ) { |
— | — | @@ -220,8 +220,6 @@ |
221 | 221 | } else { |
222 | 222 | return 0; |
223 | 223 | } |
224 | | - */ |
225 | | - return mt_rand( 0, $this->mRepo->getLastStoredRev() ); |
226 | 224 | } |
227 | 225 | |
228 | 226 | /** |