r21826 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21825‎ | r21826 | r21827 >
Date:15:39, 3 May 2007
Author:aaron
Status:old
Tags:
Comment:
*use 'infinity' as pr_expiry
Modified paths:
  • /trunk/phase3/maintenance/updateRestrictions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/updateRestrictions.php
@@ -25,7 +25,7 @@
2626 $end = $db->selectField( 'page', 'MAX(page_id)', false, __FUNCTION__ );
2727 $blockStart = $start;
2828 $blockEnd = $start + BATCH_SIZE - 1;
29 - $encodedExpiry = Block::decodeExpiry('');
 29+ $encodedExpiry = 'infinity';
3030 while ( $blockEnd <= $end ) {
3131 $cond = "page_id BETWEEN $blockStart AND $blockEnd AND page_restrictions !='' AND page_restrictions !='edit=:move='";
3232 $res = $db->select( 'page', array('page_id', 'page_restrictions'), $cond, __FUNCTION__ );