X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueue.php;h=3a8bf1ab8a7db2077dd62597dfb718cf0c7f353c;hp=1f4f179a67a99a764473051a5b9ef8fa44640383;hb=a7e147b7ee64830788a67779e2d8137017c0e919;hpb=b47ae9f94bccb493a73d2731ef33c6a9b79ab92e diff --git a/includes/jobqueue/JobQueue.php b/includes/jobqueue/JobQueue.php index 1f4f179a67..3a8bf1ab8a 100644 --- a/includes/jobqueue/JobQueue.php +++ b/includes/jobqueue/JobQueue.php @@ -362,7 +362,7 @@ abstract class JobQueue { global $wgJobClasses; $this->assertNotReadOnly(); - if ( $this->wiki !== wfWikiID() ) { + if ( !WikiMap::isCurrentWikiDbDomain( $this->wiki ) ) { throw new MWException( "Cannot pop '{$this->type}' job off foreign wiki queue." ); } elseif ( !isset( $wgJobClasses[$this->type] ) ) { // Do not pop jobs if there is no class for the queue type