X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategory.php;h=1ebd605c355420fb0078d1c10606e2651abd25e6;hb=316b4a404bfbcd91c78e9d3a94e81c69d58a4909;hp=531e0be998be03f901476b84ee7c0935b4e734da;hpb=bbb705a0b1465725cadccb6da70c1d057b6d1885;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Category.php b/includes/Category.php index 531e0be998..1ebd605c35 100644 --- a/includes/Category.php +++ b/includes/Category.php @@ -60,7 +60,7 @@ class Category { return true; } - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $row = $dbr->selectRow( 'category', [ 'cat_id', 'cat_title', 'cat_pages', 'cat_subcats', 'cat_files' ], @@ -264,7 +264,7 @@ class Category { */ public function getMembers( $limit = false, $offset = '' ) { - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $conds = [ 'cl_to' => $this->getName(), 'cl_from = page_id' ]; $options = [ 'ORDER BY' => 'cl_sortkey' ];