- $dbr = $this->getDB( DB_SLAVE );
- $res = $dbr->select( 'externallinks', array( 'DISTINCT el_from' ),
- array( 'el_index' . $dbr->buildLike( $like ) ), __METHOD__ );
+ $dbr = $this->getDB( DB_REPLICA );
+ $res = $dbr->select( 'externallinks', [ 'DISTINCT el_from' ],
+ [ 'el_index' . $dbr->buildLike( $like ) ], __METHOD__ );