From 8d72cebad0a54e56d7a2434ce35c66b030e599c5 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 12 Sep 2011 10:18:26 +0000 Subject: [PATCH] Followup r94435: don't barf on jobs inserted before this revision that don't have a table param --- includes/job/RefreshLinksJob.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.20.1