X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialDoubleRedirects.php;h=0cec9d076c7366278c3b88632966ffab713d4097;hb=fc7d715b4b5adedd0ae3e9e6f969c89e19d460eb;hp=7b0006499744915e6dc9be427f301e27bdfaa4e7;hpb=3071f1fad720f1773864621158a0c59b73124896;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialDoubleRedirects.php b/includes/specials/SpecialDoubleRedirects.php index 7b00064997..0cec9d076c 100644 --- a/includes/specials/SpecialDoubleRedirects.php +++ b/includes/specials/SpecialDoubleRedirects.php @@ -50,7 +50,7 @@ class DoubleRedirectsPage extends QueryPage { function reallyGetQueryInfo( $namespace = null, $title = null ) { $limitToTitle = !( $namespace === null && $title === null ); - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $retval = [ 'tables' => [ 'ra' => 'redirect', @@ -121,7 +121,7 @@ class DoubleRedirectsPage extends QueryPage { // get a little more detail about each individual entry quickly // using the filter of reallyGetQueryInfo. if ( $result && !isset( $result->nsb ) ) { - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $qi = $this->reallyGetQueryInfo( $result->namespace, $result->title