X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueueFederated.php;h=26886b75d59466ba7810dcd111e06f4ae7e0a268;hp=0f8fcfbedb4f07489ddcbe3f87799943d337f8e4;hb=51945dbca3594;hpb=97402532d48de203925a850a4afa2d8f43e3dd9f diff --git a/includes/jobqueue/JobQueueFederated.php b/includes/jobqueue/JobQueueFederated.php index 0f8fcfbedb..26886b75d5 100644 --- a/includes/jobqueue/JobQueueFederated.php +++ b/includes/jobqueue/JobQueueFederated.php @@ -73,7 +73,7 @@ class JobQueueFederated extends JobQueue { */ protected function __construct( array $params ) { parent::__construct( $params ); - $section = $params['sectionsByWiki'][$this->wiki] ?? 'default'; + $section = $params['sectionsByWiki'][$this->domain] ?? 'default'; if ( !isset( $params['partitionsBySection'][$section] ) ) { throw new MWException( "No configuration for section '$section'." ); } @@ -419,7 +419,7 @@ class JobQueueFederated extends JobQueue { } public function getCoalesceLocationInternal() { - return "JobQueueFederated:wiki:{$this->wiki}" . + return "JobQueueFederated:wiki:{$this->domain}" . sha1( serialize( array_keys( $this->partitionQueues ) ) ); }