Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 18
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
ThreadHistoryListingView
0.00% covered (danger)
0.00%
0 / 18
0.00% covered (danger)
0.00%
0 / 2
20
0.00% covered (danger)
0.00%
0 / 1
 show
0.00% covered (danger)
0.00%
0 / 14
0.00% covered (danger)
0.00%
0 / 1
6
 customizeNavigation
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
1<?php
2
3class ThreadHistoryListingView extends ThreadPermalinkView {
4    public function show() {
5        if ( !$this->thread ) {
6            $this->showMissingThreadPage();
7            return false;
8        }
9
10        $this->thread->updateHistory();
11
12        $this->output->setPageTitleMsg( wfMessage( 'lqt-history-title' ) );
13        $this->output->setSubtitle(
14            $this->getSubtitle() . '<br />' .
15                wfMessage( 'lqt_hist_listing_subtitle' )->escaped()
16        );
17        $this->showThreadHeading( $this->thread );
18
19        $pager = new ThreadHistoryPager( $this, $this->thread );
20
21        $this->output->addParserOutputContent( $pager->getFullOutput() );
22
23        $this->showThread( $this->thread );
24
25        return false;
26    }
27
28    public function customizeNavigation( $skin, &$links ) {
29        parent::customizeNavigation( $skin, $links );
30        // Not present if thread does not exist
31        if ( isset( $links['views']['history'] ) ) {
32            $links['views']['history']['class'] = 'selected';
33            $links['views']['view']['class'] = '';
34        }
35    }
36}