Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -452,14 +452,12 @@ |
453 | 453 | } |
454 | 454 | } |
455 | 455 | |
456 | | - function showThread( $thread, $suppress_summaries = false ) { |
| 456 | + function showThread( $thread ) { |
457 | 457 | $this->showThreadHeading( $thread ); |
458 | 458 | |
459 | 459 | $touched = new Date($thread->touched()); |
460 | | - if( $thread->summary() && !$suppress_summaries ) { |
| 460 | + if( $thread->summary() ) { |
461 | 461 | $this->showSummary($thread); |
462 | | - $this->output->addHTML( "<a href=\"{$this->permalinkUrl($thread)}\" class=\"lqt_thread_show_summary\">Show this thread</a>" ); |
463 | | - return; |
464 | 462 | } else if ( $touched->isBefore(Date::now()->nDaysAgo($this->archive_start_days)) |
465 | 463 | && !$thread->summary() && !$thread->superthread() ) { |
466 | 464 | $this->output->addHTML("<p class=\"lqt_summary_notice\">If this discussion seems to be concluded, you are encouraged to <a href=\"{$this->permalinkUrl($thread, 'lqt_summarize=1')}\">write a summary</a>. There have been no changes here for at least $this->archive_start_days days.</p>"); |
— | — | @@ -745,11 +743,9 @@ |
746 | 744 | |
747 | 745 | if( $this->request->getBool('lqt_summarize') ) { |
748 | 746 | $this->showSummarizeForm($t); |
749 | | - } else if ( $t->summary() ) { |
750 | | - $this->showSummary($t); |
751 | 747 | } |
752 | 748 | |
753 | | - $this->showThread($t, true); |
| 749 | + $this->showThread($t); |
754 | 750 | } |
755 | 751 | |
756 | 752 | } |