Index: trunk/extensions/WhatIsMyIP/WhatIsMyIP_body.php |
— | — | @@ -8,18 +8,20 @@ |
9 | 9 | class WhatIsMyIP extends SpecialPage { |
10 | 10 | function __construct() { |
11 | 11 | parent::__construct('WhatIsMyIP' /*class*/); |
12 | | - } |
| 12 | + } |
13 | 13 | |
14 | 14 | function WhatIsMyIP(){ |
15 | 15 | SpecialPage::SpecialPage( 'WhatIsMyIP', 'whatismyip' ); |
16 | | - wfLoadExtensionMessages('WhatIsMyIP'); |
17 | 16 | } |
18 | 17 | |
19 | 18 | function execute(){ |
20 | 19 | global $wgOut; |
| 20 | + |
| 21 | + wfLoadExtensionMessages('WhatIsMyIP'); |
| 22 | + |
21 | 23 | $wgOut->setPageTitle(wfMsg('whatismyip')); |
22 | | - // $wgOut->addWikiText( wfMsg('whatismyip-username'). " $user" ); |
| 24 | + // $wgOut->addWikiText( wfMsg('whatismyip-username'). " $user" ); |
23 | 25 | $ip = wfGetIP(); |
24 | 26 | $wgOut->addWikiText( wfMsg('whatismyip-out'). " $ip" ); |
25 | 27 | } |
26 | | -} |
\ No newline at end of file |
| 28 | +} |