X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategoryFinder.php;h=504b35f885d9c6a674a6a56fdefa4bc42963a87f;hb=e3f89572a19400de0f18e714cb9ca8aaa0c0cfaa;hp=3d5e6c58ab8acacd25303b88277bc2b6675938b0;hpb=dcd211106c88fcb3b9565045c6b2264dba6be13c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoryFinder.php b/includes/CategoryFinder.php index 3d5e6c58ab..504b35f885 100644 --- a/includes/CategoryFinder.php +++ b/includes/CategoryFinder.php @@ -40,7 +40,6 @@ * $a = $cf->run(); * print implode( ',' , $a ); * @endcode - * */ class CategoryFinder { /** @var int[] The original article IDs passed to the seed function */ @@ -64,7 +63,7 @@ class CategoryFinder { /** @var string "AND" or "OR" */ protected $mode; - /** @var IDatabase Read-DB slave */ + /** @var IDatabase Read-DB replica DB */ protected $dbr; /** @@ -96,7 +95,7 @@ class CategoryFinder { * @return array Array of page_ids (those given to seed() that match the conditions) */ public function run() { - $this->dbr = wfGetDB( DB_SLAVE ); + $this->dbr = wfGetDB( DB_REPLICA ); while ( count( $this->next ) > 0 ) { $this->scanNextLayer(); }