r19542 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19541‎ | r19542 | r19543 >
Date:02:40, 21 January 2007
Author:brion
Status:old
Tags:
Comment:
fix to avoid splashing huge damn php errors everywhere due to changes in RecentChange handling (new fields)
Modified paths:
  • /trunk/extensions/Oversight/HideRevision.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Oversight/HideRevision.php
@@ -243,7 +243,7 @@
244244 $dbr = wfGetDB( DB_SLAVE );
245245 $result = $dbr->select(
246246 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',
248248 array(
249249 'rev_id' => $this->mRevisions,
250250 'rev_page=page_id',
@@ -294,6 +294,8 @@
295295 '0 AS counter',
296296 '0 AS page_id',
297297 '0 AS page_is_new',
 298+ '0 AS rc_old_len',
 299+ '0 AS rc_new_len',
298300 ),
299301 array(
300302 'ar_namespace' => $this->mTarget->getNamespace(),
@@ -532,7 +534,9 @@
533535
534536 '0 as page_is_new',
535537 '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' ),
537541 array_merge(
538542 $condition,
539543 array( 'hidden_by_user=user_id' ) ),