Index: trunk/phase3/maintenance/updateRestrictions.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | $end = $db->selectField( 'page', 'MAX(page_id)', false, __FUNCTION__ ); |
27 | 27 | $blockStart = $start; |
28 | 28 | $blockEnd = $start + BATCH_SIZE - 1; |
29 | | - $encodedExpiry = Block::decodeExpiry(''); |
| 29 | + $encodedExpiry = 'infinity'; |
30 | 30 | while ( $blockEnd <= $end ) { |
31 | 31 | $cond = "page_id BETWEEN $blockStart AND $blockEnd AND page_restrictions !='' AND page_restrictions !='edit=:move='"; |
32 | 32 | $res = $db->select( 'page', array('page_id', 'page_restrictions'), $cond, __FUNCTION__ ); |