Index: trunk/extensions/Oversight/HideRevision.php |
— | — | @@ -243,7 +243,7 @@ |
244 | 244 | $dbr = wfGetDB( DB_SLAVE ); |
245 | 245 | $result = $dbr->select( |
246 | 246 | array( 'page', 'revision' ), |
247 | | - '*, 0 AS rc_id, 1 AS rc_patrolled, 0 AS counter', |
| 247 | + '*, 0 AS rc_id, 1 AS rc_patrolled, 0 AS counter, 0 AS rc_old_len, 0 AS rc_new_len', |
248 | 248 | array( |
249 | 249 | 'rev_id' => $this->mRevisions, |
250 | 250 | 'rev_page=page_id', |
— | — | @@ -294,6 +294,8 @@ |
295 | 295 | '0 AS counter', |
296 | 296 | '0 AS page_id', |
297 | 297 | '0 AS page_is_new', |
| 298 | + '0 AS rc_old_len', |
| 299 | + '0 AS rc_new_len', |
298 | 300 | ), |
299 | 301 | array( |
300 | 302 | 'ar_namespace' => $this->mTarget->getNamespace(), |
— | — | @@ -532,7 +534,9 @@ |
533 | 535 | |
534 | 536 | '0 as page_is_new', |
535 | 537 | '0 as rc_id', |
536 | | - '1 as rc_patrolled' ), |
| 538 | + '1 as rc_patrolled', |
| 539 | + '0 as rc_old_len', |
| 540 | + '0 as rc_new_len' ), |
537 | 541 | array_merge( |
538 | 542 | $condition, |
539 | 543 | array( 'hidden_by_user=user_id' ) ), |