r57653 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57652‎ | r57653 | r57654 >
Date:14:32, 12 October 2009
Author:werdna
Status:deferred
Tags:
Comment:
Do not show blanked threads in the table of contents either. TODO some way of discovering these threads.
Modified paths:
  • /trunk/extensions/LiquidThreads/pages/TalkpageView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php
@@ -91,6 +91,11 @@
9292 // Table body
9393 $rows = array();
9494 foreach ( $threads as $thread ) {
 95+ if ( !$thread->root()->getContent() &&
 96+ !LqtView::threadContainsRepliesWithContent( $thread ) ) {
 97+ continue;
 98+ }
 99+
95100 $row = '';
96101 $anchor = '#' . $this->anchorName( $thread );
97102 $subject = Xml::element( 'a', array( 'href' => $anchor ), $thread->subject() );

Follow-up revisions

RevisionCommit summaryAuthorDate
r57656Merge r57653werdna16:08, 12 October 2009

Status & tagging log