Index: trunk/extensions/Distribution/Distribution.php |
— | — | @@ -16,6 +16,8 @@ |
17 | 17 | |
18 | 18 | define( 'Distribution_VERSION', '0.1 alpha' ); |
19 | 19 | |
| 20 | +include_once 'Distribution_Settings.php'; |
| 21 | + |
20 | 22 | // Register the initialization function. |
21 | 23 | $wgExtensionFunctions[] = 'efDistributionSetup'; |
22 | 24 | |
Index: trunk/extensions/Distribution/Distribution_Settings.php |
— | — | @@ -0,0 +1,17 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Settings file for the Deployment extension. |
| 6 | + * Extension documentation: http://www.mediawiki.org/wiki/Extension:Deployment |
| 7 | + * |
| 8 | + * @file Deployment_Settings.php |
| 9 | + * @ingroup Deployment |
| 10 | + * |
| 11 | + * @author Jeroen De Dauw |
| 12 | + */ |
| 13 | + |
| 14 | +if ( !defined( 'MEDIAWIKI' ) ) { |
| 15 | + die( 'Not an entry point.' ); |
| 16 | +} |
| 17 | + |
| 18 | +$wgDistributionDownloads = 'http://www.mediawiki.org/wiki/Special:ExtensionDistributor'; |
\ No newline at end of file |
Property changes on: trunk/extensions/Distribution/Distribution_Settings.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 19 | + native |
Index: trunk/extensions/Distribution/TODO |
— | — | @@ -0,0 +1 @@ |
| 2 | +* Distinguise between actual name and svn path. The name var now contains svn path everywhere, so it should be renamed, and a new var should be introduced. |
\ No newline at end of file |
Index: trunk/extensions/Distribution/api/ApiQueryExtensions.php |
— | — | @@ -55,6 +55,8 @@ |
56 | 56 | * @since 0.1 |
57 | 57 | */ |
58 | 58 | public function execute() { |
| 59 | + global $wgDistributionDownloads; |
| 60 | + |
59 | 61 | // Get the requests parameters. |
60 | 62 | $params = $this->extractRequestParams(); |
61 | 63 | |
— | — | @@ -114,6 +116,7 @@ |
115 | 117 | 'version' => $extension->current_version_nr, |
116 | 118 | 'authors' => $extension->current_authors, |
117 | 119 | 'url' => $extension->current_url, |
| 120 | + 'download' => $wgDistributionDownloads . '/' . $extension->unit_name, |
118 | 121 | //'licence' => $extension->current_licence |
119 | 122 | ); |
120 | 123 | |