From: Aaron Schulz Date: Mon, 3 Aug 2015 19:59:25 +0000 (-0700) Subject: Made EnqueueJob use the same dummy title as the JobSpecification default X-Git-Tag: 1.31.0-rc.0~10520^2 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=a6973baeb479b475f4396b1582e0a5f5fb2e2ed0;p=lhc%2Fweb%2Fwiklou.git Made EnqueueJob use the same dummy title as the JobSpecification default Change-Id: Ice0056fd4a74f2de6d6c7622b1e4e62fad1927e9 --- diff --git a/includes/jobqueue/jobs/EnqueueJob.php b/includes/jobqueue/jobs/EnqueueJob.php index a3b6b9664c..c7ee9b65e5 100644 --- a/includes/jobqueue/jobs/EnqueueJob.php +++ b/includes/jobqueue/jobs/EnqueueJob.php @@ -74,7 +74,10 @@ final class EnqueueJob extends Job { } } - $eJob = new self( Title::newMainPage(), array( 'jobsByWiki' => $jobMapsByWiki ) ); + $eJob = new self( + Title::makeTitle( NS_SPECIAL, 'Badtitle/' . __CLASS__ ), + array( 'jobsByWiki' => $jobMapsByWiki ) + ); // If *all* jobs to be pushed are to be de-duplicated (a common case), then // de-duplicate this whole job itself to avoid build up in high traffic cases $eJob->removeDuplicates = $deduplicate;