$this->mIsBackwards = ( $this->mRequest->getVal( 'dir' ) == 'prev' );
# Let the subclass set the DB here; otherwise use a replica DB for the current wiki
- $this->mDb = $this->mDb ?: wfGetDB( DB_SLAVE );
+ $this->mDb = $this->mDb ?: wfGetDB( DB_REPLICA );
$index = $this->getIndexField(); // column to sort on
$extraSort = $this->getExtraSortFields(); // extra columns to sort on for query planning