From: Aaron Schulz Date: Sat, 24 Oct 2015 04:14:11 +0000 (-0700) Subject: Remove paranoid title check from RefreshLinksJob::runForTitle X-Git-Tag: 1.31.0-rc.0~9257^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=e6aabda9b6b1900f0d6d862121f395559cd2a7dc;p=lhc%2Fweb%2Fwiklou.git Remove paranoid title check from RefreshLinksJob::runForTitle Change-Id: Ie2b875dcb394e9cf20818a26d245684933765baf --- 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.