r36910 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36909‎ | r36910 | r36911 >
Date:14:00, 2 July 2008
Author:siebrand
Status:old
Tags:
Comment:
Delay message loading
Modified paths:
  • /trunk/extensions/WhatIsMyIP/WhatIsMyIP_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WhatIsMyIP/WhatIsMyIP_body.php
@@ -8,18 +8,20 @@
99 class WhatIsMyIP extends SpecialPage {
1010 function __construct() {
1111 parent::__construct('WhatIsMyIP' /*class*/);
12 - }
 12+ }
1313
1414 function WhatIsMyIP(){
1515 SpecialPage::SpecialPage( 'WhatIsMyIP', 'whatismyip' );
16 - wfLoadExtensionMessages('WhatIsMyIP');
1716 }
1817
1918 function execute(){
2019 global $wgOut;
 20+
 21+ wfLoadExtensionMessages('WhatIsMyIP');
 22+
2123 $wgOut->setPageTitle(wfMsg('whatismyip'));
22 - // $wgOut->addWikiText( wfMsg('whatismyip-username'). " $user" );
 24+ // $wgOut->addWikiText( wfMsg('whatismyip-username'). " $user" );
2325 $ip = wfGetIP();
2426 $wgOut->addWikiText( wfMsg('whatismyip-out'). " $ip" );
2527 }
26 -}
\ No newline at end of file
 28+}

Status & tagging log