r46289 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46288‎ | r46289 | r46290 >
Date:21:22, 26 January 2009
Author:siebrand
Status:ok
Tags:
Comment:
delay message loading in example extension
Modified paths:
  • /trunk/extensions/examples/FourFileTemplate/MyExtension_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/examples/FourFileTemplate/MyExtension_body.php
@@ -3,7 +3,6 @@
44 {
55 function MyExtension() {
66 parent::__construct("MyExtension");
7 - wfLoadExtensionMessages( 'MyExtension' );
87 }
98
109 function execute( $par ) {
@@ -11,6 +10,8 @@
1211
1312 $this->setHeaders();
1413
 14+ wfLoadExtensionMessages( 'MyExtension' );
 15+
1516 # Get request data from, e.g.
1617 $param = $wgRequest->getText('param');
1718

Status & tagging log