r70789 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70788‎ | r70789 | r70790 >
Date:03:01, 10 August 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Include the API modules
Modified paths:
  • /trunk/extensions/Distribution/Distribution.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Distribution/Distribution.php
@@ -22,10 +22,23 @@
2323 // Register the internationalization file.
2424 $wgExtensionMessagesFiles['Distribution'] = dirname( __FILE__ ) . '/Distribution.i18n.php';
2525
 26+// Hook registration.
2627 $wgHooks['LoadExtensionSchemaUpdates'][] = 'efDistributionSchemaUpdate';
2728
 29+// API modules registration.
 30+$wgAutoloadClasses['ApiQueryExtensions'] = dirname( __FILE__ ) . '/api/ApiQueryExtensions.php';
 31+$wgAPIModules['queryextensions'] = 'ApiQueryExtensions';
 32+
 33+$wgAutoloadClasses['ApiExtension'] = dirname( __FILE__ ) . '/api/ApiExtension.php';
 34+$wgAPIModules['extension'] = 'ApiExtension';
 35+
 36+$wgAutoloadClasses['ApiPackage'] = dirname( __FILE__ ) . '/api/ApiPackage.php';
 37+$wgAPIModules['package'] = 'ApiPackage';
 38+
2839 /**
2940 * Initialization function for the Distribution extension.
 41+ *
 42+ * @since 0.1
3043 */
3144 function efDistributionSetup() {
3245 global $wgExtensionCredits;
@@ -41,6 +54,13 @@
4255
4356 }
4457
 58+/**
 59+ * LoadExtensionSchemaUpdates hook.
 60+ *
 61+ * @since 0.1
 62+ *
 63+ * @return true
 64+ */
4565 function efDistributionSchemaUpdate() {
4666 global $wgExtNewTables;
4767

Follow-up revisions

RevisionCommit summaryAuthorDate
r70792Follow up to r70789jeroendedauw03:15, 10 August 2010

Status & tagging log