Made EnqueueJob use the same dummy title as the JobSpecification default
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 3 Aug 2015 19:59:25 +0000 (12:59 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 4 Aug 2015 22:10:29 +0000 (15:10 -0700)
Change-Id: Ice0056fd4a74f2de6d6c7622b1e4e62fad1927e9

includes/jobqueue/jobs/EnqueueJob.php

index a3b6b96..c7ee9b6 100644 (file)
@@ -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;