X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPageProps.php;h=d09e1fbf9dc5791ae5637a3ac9df548d7fb27ba4;hb=eefbfa82ef24a4427a6a2f117ae3eedd14fcf9ff;hp=5579ba52714b65c852580e6931fc6151e7f94b0e;hpb=b57577469ec03dbec66aed9ba79a15d2d670c9da;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', [