Index: trunk/extensions/ExtensionDistributor/ExtensionDistributor_body.php |
— | — | @@ -5,14 +5,13 @@ |
6 | 6 | |
7 | 7 | function __construct() { |
8 | 8 | parent::__construct( 'ExtensionDistributor' ); |
| 9 | + wfLoadExtensionMessages( 'ExtensionDistributor' ); |
| 10 | + $this->setHeaders(); |
9 | 11 | } |
10 | 12 | |
11 | 13 | function execute( $subpage ) { |
12 | 14 | global $wgExtDistTarDir, $wgExtDistWorkingCopy, $wgOut, $wgRequest; |
13 | 15 | |
14 | | - wfLoadExtensionMessages( 'ExtensionDistributor' ); |
15 | | - $this->setHeaders(); |
16 | | - |
17 | 16 | if ( !$wgExtDistTarDir || !$wgExtDistWorkingCopy ) { |
18 | 17 | $wgOut->addWikiMsg( 'extdist-not-configured' ); |
19 | 18 | return; |
Index: trunk/extensions/ExtensionDistributor/ExtensionDistributor.i18n.php |
— | — | @@ -1,7 +1,8 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -$messages = array( |
5 | | - 'en' => array( |
| 4 | +$messages = array(); |
| 5 | + |
| 6 | +$messages['en'] = array( |
6 | 7 | 'extensiondistributor' => 'Download MediaWiki extension', |
7 | 8 | 'extdist-desc' => 'Extension for distributing snapshot archives of extensions', |
8 | 9 | 'extdist-not-configured' => 'Please configure $wgExtDistTarDir and $wgExtDistWorkingCopy', |
— | — | @@ -35,5 +36,4 @@ |
36 | 37 | The tar archive should be extracted into your extensions directory, then follow the extension's documentation to enable it in MediaWiki. |
37 | 38 | ", |
38 | 39 | 'extdist-want-more' => 'Get another extension', |
39 | | - ), |
40 | 40 | ); |
Index: trunk/extensions/ExtensionDistributor/ExtensionDistributor.php |
— | — | @@ -10,15 +10,6 @@ |
11 | 11 | * Configuration |
12 | 12 | */ |
13 | 13 | |
14 | | -$wgExtensionCredits['specialpage'][] = array( |
15 | | - 'name' => 'Extension Distributor', |
16 | | - 'author' => 'Tim Starling', |
17 | | - 'svn-revision' => '$LastChangedRevision: 35631 $', |
18 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:ExtensionDistributor', |
19 | | - 'description' => 'This is an extension for distributing snapshot archives of extensions', |
20 | | - 'descriptionmsg' => 'extdist-desc', |
21 | | -); |
22 | | - |
23 | 14 | /** Directory to put tar files in */ |
24 | 15 | $wgExtDistTarDir = false; |
25 | 16 | |
— | — | @@ -58,3 +49,12 @@ |
59 | 50 | $wgAutoloadClasses['ExtensionDistributorPage'] = dirname(__FILE__).'/ExtensionDistributor_body.php'; |
60 | 51 | $wgExtensionMessagesFiles['ExtensionDistributor'] = dirname(__FILE__).'/ExtensionDistributor.i18n.php'; |
61 | 52 | |
| 53 | +$wgExtensionCredits['specialpage'][] = array( |
| 54 | + 'name' => 'Extension Distributor', |
| 55 | + 'author' => 'Tim Starling', |
| 56 | + 'svn-revision' => '$LastChangedRevision: 35631 $', |
| 57 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:ExtensionDistributor', |
| 58 | + 'description' => 'This is an extension for distributing snapshot archives of extensions', |
| 59 | + 'descriptionmsg' => 'extdist-desc', |
| 60 | +); |
| 61 | + |