X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPageProps.php;h=d09e1fbf9dc5791ae5637a3ac9df548d7fb27ba4;hb=2c0db8f5e8593a51ae0acc8285fd40b7743b0fce;hp=5579ba52714b65c852580e6931fc6151e7f94b0e;hpb=b9f443d6174d6ff8a9f1bdf93b4c9b886ef2b91c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PageProps.php b/includes/PageProps.php index 5579ba5271..d09e1fbf9d 100644 --- a/includes/PageProps.php +++ b/includes/PageProps.php @@ -19,6 +19,7 @@ * * @file */ +use Wikimedia\ScopedCallback; /** * Gives access to properties of a page. @@ -140,7 +141,7 @@ class PageProps { } if ( $queryIDs ) { - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $result = $dbr->select( 'page_props', [ @@ -198,7 +199,7 @@ class PageProps { } if ( $queryIDs != [] ) { - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $result = $dbr->select( 'page_props', [