Index: trunk/phase3/includes/specials/SpecialBlock.php |
— | — | @@ -742,7 +742,7 @@ |
743 | 743 | public static function parseExpiryInput( $expiry ) { |
744 | 744 | static $infinity; |
745 | 745 | if( $infinity == null ){ |
746 | | - $infinity = wfGetDB( DB_READ )->getInfinity(); |
| 746 | + $infinity = wfGetDB( DB_SLAVE )->getInfinity(); |
747 | 747 | } |
748 | 748 | if ( $expiry == 'infinite' || $expiry == 'indefinite' ) { |
749 | 749 | $expiry = $infinity; |
Index: trunk/phase3/includes/specials/SpecialProtectedpages.php |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | |
86 | 86 | if( is_null( $skin ) ){ |
87 | 87 | $skin = $wgUser->getSkin(); |
88 | | - $infinity = wfGetDB( DB_READ )->getInfinity(); |
| 88 | + $infinity = wfGetDB( DB_SLAVE )->getInfinity(); |
89 | 89 | } |
90 | 90 | |
91 | 91 | $title = Title::makeTitleSafe( $row->page_namespace, $row->page_title ); |
Index: trunk/phase3/includes/Block.php |
— | — | @@ -612,7 +612,7 @@ |
613 | 613 | $autoblock->mHideName = $this->mHideName; |
614 | 614 | $autoblock->prevents( 'editownusertalk', $this->prevents( 'editownusertalk' ) ); |
615 | 615 | |
616 | | - $dbr = wfGetDB( DB_READ ); |
| 616 | + $dbr = wfGetDB( DB_SLAVE ); |
617 | 617 | if ( $this->mTimestamp == $dbr->getInfinity() ) { |
618 | 618 | # Original block was indefinite, start an autoblock now |
619 | 619 | $autoblock->mExpiry = Block::getAutoblockExpiry( wfTimestampNow() ); |