r58146 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58145‎ | r58146 | r58147 >
Date:16:37, 26 October 2009
Author:werdna
Status:deferred
Tags:
Comment:
LiquidThreads: Do not check for updates if there are no threads to update.
Modified paths:
  • /trunk/extensions/LiquidThreads/lqt.js (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/lqt.js
@@ -294,6 +294,11 @@
295295 threads.push(threadID);
296296 } );
297297
 298+ // Optimisation: if no threads are to be checked, do not check.
 299+ if ( ! threads.length ) {
 300+ return;
 301+ }
 302+
298303 var getData = { 'action' : 'query', 'list' : 'threads', 'thid' : threads.join('|'),
299304 'format' : 'json', 'thprop' : 'id|subject|parent|modified' };
300305

Status & tagging log