Remove paranoid title check from RefreshLinksJob::runForTitle
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 24 Oct 2015 04:14:11 +0000 (21:14 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 24 Oct 2015 04:14:11 +0000 (21:14 -0700)
Change-Id: Ie2b875dcb394e9cf20818a26d245684933765baf

includes/jobqueue/jobs/RefreshLinksJob.php

index 1d59b32..3a83cb8 100644 (file)
@@ -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.