Avoid using local main page title in JobSpecification
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 13 Apr 2015 21:50:40 +0000 (14:50 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 13 Apr 2015 22:03:52 +0000 (15:03 -0700)
* They may not work well on the wiki that runs the jobs

Bug: T92789
Change-Id: I496974b11bd865ede9dd6d2cd534e0abdd7fa3f7

includes/jobqueue/JobSpecification.php

index 42d2a39..84cfd47 100644 (file)
@@ -108,7 +108,7 @@ class JobSpecification implements IJobSpecification {
 
                $this->type = $type;
                $this->params = $params;
-               $this->title = $title ?: Title::newMainPage();
+               $this->title = $title ?: Title::makeTitle( NS_SPECIAL, 'Badtitle/' . get_class( $this ) );
                $this->opts = $opts;
        }