Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -190,7 +190,7 @@ |
191 | 191 | * @return int Number of revisions |
192 | 192 | */ |
193 | 193 | function getRevCount( $dbr ) { |
194 | | - $tables = array( 'code_rev' ); |
| 194 | + /*$tables = array( 'code_rev' ); |
195 | 195 | $selectFields = array( 'COUNT( DISTINCT cr_id ) AS rev_count' ); |
196 | 196 | // Count if code_rev where path matches |
197 | 197 | if ( strlen( $this->mPath ) ) { |
— | — | @@ -213,6 +213,8 @@ |
214 | 214 | } else { |
215 | 215 | return 0; |
216 | 216 | } |
| 217 | + */ |
| 218 | + return mt_rand( 0, $this->mRepo->getLastStoredRev() ); |
217 | 219 | } |
218 | 220 | |
219 | 221 | /** |