Index: trunk/extensions/Interwiki/SpecialInterwiki_body.php |
— | — | @@ -12,6 +12,13 @@ |
13 | 13 | parent::__construct( 'Interwiki' ); |
14 | 14 | } |
15 | 15 | |
| 16 | + function getDescription() { |
| 17 | + global $wgUser; |
| 18 | + |
| 19 | + return wfMsg( $wgUser->isAllowed( 'interwiki' ) ? |
| 20 | + 'interwiki' : 'interwiki-title-norights' ); |
| 21 | + } |
| 22 | + |
16 | 23 | /** |
17 | 24 | * Show the special page |
18 | 25 | * |
— | — | @@ -28,11 +35,6 @@ |
29 | 36 | $this->outputHeader(); |
30 | 37 | |
31 | 38 | $admin = $wgUser->isAllowed( 'interwiki' ); |
32 | | - if ( $admin ) { |
33 | | - $wgOut->setPageTitle( wfMsg( 'interwiki' ) ); |
34 | | - } else { |
35 | | - $wgOut->setPageTitle( wfMsg( 'interwiki-title-norights' ) ); |
36 | | - } |
37 | 39 | $action = $wgRequest->getVal( 'action', $par ); |
38 | 40 | |
39 | 41 | switch( $action ){ |