r70952 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70951‎ | r70952 | r70953 >
Date:13:45, 12 August 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Added settings and todo files. Added download field to the QueryExtensions API module
Modified paths:
  • /trunk/extensions/Distribution/Distribution.php (modified) (history)
  • /trunk/extensions/Distribution/Distribution_Settings.php (added) (history)
  • /trunk/extensions/Distribution/TODO (added) (history)
  • /trunk/extensions/Distribution/api/ApiQueryExtensions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Distribution/Distribution.php
@@ -16,6 +16,8 @@
1717
1818 define( 'Distribution_VERSION', '0.1 alpha' );
1919
 20+include_once 'Distribution_Settings.php';
 21+
2022 // Register the initialization function.
2123 $wgExtensionFunctions[] = 'efDistributionSetup';
2224
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
119 + 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 @@
5656 * @since 0.1
5757 */
5858 public function execute() {
 59+ global $wgDistributionDownloads;
 60+
5961 // Get the requests parameters.
6062 $params = $this->extractRequestParams();
6163
@@ -114,6 +116,7 @@
115117 'version' => $extension->current_version_nr,
116118 'authors' => $extension->current_authors,
117119 'url' => $extension->current_url,
 120+ 'download' => $wgDistributionDownloads . '/' . $extension->unit_name,
118121 //'licence' => $extension->current_licence
119122 );
120123

Status & tagging log