r100662 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100661‎ | r100662 | r100663 >
Date:23:14, 24 October 2011
Author:awjrichards
Status:deferred
Tags:
Comment:
Adding ability to expose only i18n messages and no other DonationInterface functionality for the current deployment branch
Modified paths:
  • /branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/donationinterface_langonly.php (added) (history)

Diff [purge]

Index: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/donationinterface_langonly.php
@@ -0,0 +1,40 @@
 2+<?php
 3+/**
 4+ * Donation Interface - Lang only
 5+ *
 6+ * When installed, this will *ONLY* load i18n messages from DonationInterface. This
 7+ * will not expose any other DonationInterface functionality.
 8+ *
 9+ * To install the DontaionInterface extension, put the following line in LocalSettings.php:
 10+ * require_once( "\$IP/extensions/DonationInterface/donationinterface_langonly.php" );
 11+ *
 12+ */
 13+
 14+# Alert the user that this is not a valid entry point to MediaWiki if they try to access the special pages file directly.
 15+if ( !defined( 'MEDIAWIKI' ) ) {
 16+ echo <<<EOT
 17+To install the DontaionInterface lang only extension, put the following line in LocalSettings.php:
 18+require_once( "\$IP/extensions/DonationInterface/donationinterface_langonly.php" );
 19+EOT;
 20+ exit( 1 );
 21+}
 22+
 23+// Extension credits that will show up on Special:Version
 24+$wgExtensionCredits['specialpage'][] = array(
 25+ 'name' => 'Donation Interface - Language Only',
 26+ 'author' => array( 'Katie Horn', 'Ryan Kaldari' , 'Arthur Richards', 'Jeremy Postlethwaite' ),
 27+ 'version' => '1.0.0',
 28+ 'descriptionmsg' => 'donate_interface-langonly-desc',
 29+ 'url' => 'http://www.mediawiki.org/wiki/Extension:DonationInterface',
 30+);
 31+
 32+$donationinterface_dir = dirname( __FILE__ ) . '/';
 33+
 34+// Load the interface messages that are shared across all gateways
 35+$wgExtensionMessagesFiles['DonateInterface'] = $donationinterface_dir . 'donate_interface/donate_interface.i18n.php';
 36+
 37+// PayflowPro-specific messaging
 38+$wgExtensionMessagesFiles['PayflowProGateway'] = $donationinterface_dir . 'payflowpro_gateway/payflowpro_gateway.i18n.php';
 39+$wgExtensionMessagesFiles['PayflowProGatewayCountries'] = $donationinterface_dir . 'payflowpro_gateway/payflowpro_gateway.countries.i18n.php';
 40+$wgExtensionMessagesFiles['PayflowProGatewayUSStates'] = $donationinterface_dir . 'payflowpro_gateway/payflowpro_gateway.us-states.i18n.php';
 41+$wgExtensionAliasesFiles['PayflowProGateway'] = $donationinterface_dir . 'payflowpro_gateway/payflowpro_gateway.alias.php';
\ No newline at end of file
Property changes on: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/donationinterface_langonly.php
___________________________________________________________________
Added: svn:eol-style
142 + native

Status & tagging log