r96831 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96830‎ | r96831 | r96832 >
Date:10:18, 12 September 2011
Author:catrope
Status:ok
Tags:
Comment:
Followup r94435: don't barf on jobs inserted before this revision that don't have a table param
Modified paths:
  • /trunk/phase3/includes/job/RefreshLinksJob.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/job/RefreshLinksJob.php
@@ -88,8 +88,10 @@
8989 wfProfileOut( __METHOD__ );
9090 return false;
9191 }
 92+ // Back compat for pre-r94435 jobs
 93+ $table = isset( $this->params['table'] ) ? $this->params['table'] : 'templatelinks';
9294 $titles = $this->title->getBacklinkCache()->getLinks(
93 - $this->params['table'], $this->params['start'], $this->params['end']);
 95+ $table, $this->params['start'], $this->params['end']);
9496
9597 # Not suitable for page load triggered job running!
9698 # Gracefully switch to refreshLinks jobs if this happens.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r94435Allow extensions to run their own backlink-based updates:...vasilievvv22:42, 13 August 2011

Status & tagging log