Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -632,7 +632,7 @@ |
633 | 633 | } |
634 | 634 | } |
635 | 635 | |
636 | | -class TalkpageArchiveView extends LqtView { |
| 636 | +class TalkpageArchiveView extends TalkpageView { |
637 | 637 | function __construct(&$output, &$article, &$title, &$user, &$request) { |
638 | 638 | parent::__construct($output, $article, $title, $user, $request); |
639 | 639 | $this->loadQueryFromRequest(); |
— | — | @@ -689,9 +689,11 @@ |
690 | 690 | $this->options = $options; |
691 | 691 | $this->annotations = implode("<br>\n", $annotations); |
692 | 692 | } |
| 693 | + |
693 | 694 | function threads() { |
694 | 695 | return Thread::threadsWhere($this->where, $this->options); |
695 | 696 | } |
| 697 | + |
696 | 698 | function formattedMonth($yyyymm) { |
697 | 699 | global $wgLang; // TODO global. |
698 | 700 | return $wgLang->getMonthName( substr($yyyymm, 4, 2) ).' '.substr($yyyymm, 0, 4); |
— | — | @@ -745,7 +747,12 @@ |
746 | 748 | } |
747 | 749 | |
748 | 750 | function show() { |
| 751 | + global $wgHooks; |
| 752 | + $wgHooks['SkinTemplateTabs'][] = array($this, 'customizeTabs'); |
| 753 | + |
749 | 754 | $this->output->setPageTitle( "Talk:" . $this->title->getText() ); // TODO non-main namespaces. |
| 755 | + $this->addJSandCSS(); |
| 756 | + |
750 | 757 | $this->showSearchForm(); |
751 | 758 | $this->output->addHTML("<p>" . $this->annotations . ".</p>"); |
752 | 759 | $this->output->addHTML('<table border="1">'); |
— | — | @@ -800,4 +807,3 @@ |
801 | 808 | } |
802 | 809 | |
803 | 810 | } |
804 | | - |