From a68e3c89a9c7b8b900e64e1aa8d5719d1431aa30 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 13 Apr 2015 14:50:40 -0700 Subject: [PATCH] Avoid using local main page title in JobSpecification * They may not work well on the wiki that runs the jobs Bug: T92789 Change-Id: I496974b11bd865ede9dd6d2cd534e0abdd7fa3f7 --- includes/jobqueue/JobSpecification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/jobqueue/JobSpecification.php b/includes/jobqueue/JobSpecification.php index 42d2a39b8e..84cfd47da1 100644 --- a/includes/jobqueue/JobSpecification.php +++ b/includes/jobqueue/JobSpecification.php @@ -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; } -- 2.20.1