Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
ThreadDiffView
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 1
 customizeNavigation
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
6
1<?php
2
3class ThreadDiffView extends LqtView {
4    public function customizeNavigation( $skin, &$links ) {
5        $remove = [ 'views/edit', 'views/viewsource' ];
6
7        foreach ( $remove as $rem ) {
8            [ $section, $item ] = explode( '/', $rem, 2 );
9            unset( $links[$section][$item] );
10        }
11
12        $links['views']['history']['class'] = 'selected';
13    }
14}