http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96831

Revision: 96831
Author:   catrope
Date:     2011-09-12 10:18:26 +0000 (Mon, 12 Sep 2011)
Log Message:
-----------
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: trunk/phase3/includes/job/RefreshLinksJob.php
===================================================================
--- trunk/phase3/includes/job/RefreshLinksJob.php       2011-09-12 09:25:00 UTC 
(rev 96830)
+++ trunk/phase3/includes/job/RefreshLinksJob.php       2011-09-12 10:18:26 UTC 
(rev 96831)
@@ -88,8 +88,10 @@
                        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.


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to