From: Roan Kattouw Date: Mon, 12 Sep 2011 10:18:26 +0000 (+0000) Subject: Followup r94435: don't barf on jobs inserted before this revision that don't have... X-Git-Tag: 1.31.0-rc.0~27718 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=8d72cebad0a54e56d7a2434ce35c66b030e599c5;p=lhc%2Fweb%2Fwiklou.git Followup r94435: don't barf on jobs inserted before this revision that don't have a table param --- diff --git a/includes/job/RefreshLinksJob.php b/includes/job/RefreshLinksJob.php index 9c699bfea5..99644f57b6 100644 --- a/includes/job/RefreshLinksJob.php +++ b/includes/job/RefreshLinksJob.php @@ -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.