Index: trunk/extensions/CooperationStatistics/CooperationStatistics_body.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | * Special:CooperationStatistics |
5 | 5 | */ |
6 | 6 | |
7 | | -class CooperationStatistics extends SpecialPage { |
| 7 | +class CooperationStatistics extends IncludableSpecialPage { |
8 | 8 | public function __construct() { |
9 | 9 | parent::__construct( 'CooperationStatistics' ); |
10 | 10 | } |
— | — | @@ -14,7 +14,8 @@ |
15 | 15 | wfLoadExtensionMessages( 'CooperationStatistics' ); |
16 | 16 | $nb_of_revuser = wfMsg( 'cooperationstatistics-limit-few-revisors' ); |
17 | 17 | $nbpages = $this->getNbOfPages( $nb_of_revuser, '<=' ); |
18 | | - $this->OutputTableRaw( $nbpages, $nb_of_revuser, 'init' ); |
| 18 | + if( !$this->mIncluding ) |
| 19 | + $this->OutputTableRaw( $nbpages, $nb_of_revuser, 'init' ); |
19 | 20 | |
20 | 21 | $retval = array(); |
21 | 22 | $retval[$nb_of_revuser] = $this->getNbOfPages( $nb_of_revuser, '=' ); |
— | — | @@ -22,13 +23,15 @@ |
23 | 24 | $range = 1 + wfMsg( 'cooperationstatistics-limit-many-revisors' ) - $nb_of_revuser; |
24 | 25 | for ( $j = 0; $j < $range; $j++ ) { |
25 | 26 | $nbpages = $this->getNbOfPages( $nb_of_revuser, '=' ); |
26 | | - $this->OutputTableRaw( $nbpages, $nb_of_revuser, '=' ); |
| 27 | + if( !$this->mIncluding ) |
| 28 | + $this->OutputTableRaw( $nbpages, $nb_of_revuser, '=' ); |
27 | 29 | $retval[$nb_of_revuser] = $nbpages; |
28 | 30 | $nb_of_revuser++; |
29 | 31 | } |
30 | 32 | |
31 | 33 | $nbpages = $this->getNbOfPages( $nb_of_revuser, '>=' ); |
32 | | - $this->OutputTableRaw( $nbpages, $nb_of_revuser, 'end' ); |
| 34 | + if( !$this->mIncluding ) |
| 35 | + $this->OutputTableRaw( $nbpages, $nb_of_revuser, 'end' ); |
33 | 36 | $retval[$nb_of_revuser] = $nbpages; |
34 | 37 | |
35 | 38 | if ( $wgCooperationStatsGoogleCharts == True ) { |