From e6aabda9b6b1900f0d6d862121f395559cd2a7dc Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 23 Oct 2015 21:14:11 -0700 Subject: [PATCH] Remove paranoid title check from RefreshLinksJob::runForTitle Change-Id: Ie2b875dcb394e9cf20818a26d245684933765baf --- includes/jobqueue/jobs/RefreshLinksJob.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/jobqueue/jobs/RefreshLinksJob.php b/includes/jobqueue/jobs/RefreshLinksJob.php index 1d59b324be..3a83cb8253 100644 --- a/includes/jobqueue/jobs/RefreshLinksJob.php +++ b/includes/jobqueue/jobs/RefreshLinksJob.php @@ -111,12 +111,7 @@ class RefreshLinksJob extends Job { * @param Title $title * @return bool */ - protected function runForTitle( Title $title = null ) { - if ( is_null( $title ) ) { - $this->setLastError( "refreshLinks: Invalid title" ); - return false; - } - + protected function runForTitle( Title $title ) { // Wait for the DB of the current/next slave DB handle to catch up to the master. // This way, we get the correct page_latest for templates or files that just changed // milliseconds ago, having triggered this job to begin with. -- 2.20.1