r56546 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56545‎ | r56546 | r56547 >
Date:17:37, 17 September 2009
Author:werdna
Status:deferred
Tags:
Comment:
Only include normal threads in feeds
Modified paths:
  • /trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php
@@ -158,6 +158,9 @@
159159 function getConditions( $params, $db ) {
160160 $conds = array();
161161
 162+ // Types
 163+ $conds['thread_type'] = Threads::TYPE_NORMAL;
 164+
162165 // Limit
163166 $cutoff = time() - intval($params['days'] * 24 * 3600);
164167 $cutoff = $db->timestamp( $cutoff );

Status & tagging log