Followup r94435: don't barf on jobs inserted before this revision that don't have...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 12 Sep 2011 10:18:26 +0000 (10:18 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 12 Sep 2011 10:18:26 +0000 (10:18 +0000)
includes/job/RefreshLinksJob.php

index 9c699bf..99644f5 100644 (file)
@@ -88,8 +88,10 @@ class RefreshLinksJob2 extends Job {
                        wfProfileOut( __METHOD__ );
                        return false;
                }
+               // Back compat for pre-r94435 jobs
+               $table = isset( $this->params['table'] ) ? $this->params['table'] : 'templatelinks';
                $titles = $this->title->getBacklinkCache()->getLinks( 
-                       $this->params['table'], $this->params['start'], $this->params['end']);
+                       $table, $this->params['start'], $this->params['end']);
                
                # Not suitable for page load triggered job running!
                # Gracefully switch to refreshLinks jobs if this happens.