Awight has uploaded a new change for review.
https://gerrit.wikimedia.org/r/165126
Change subject: Start a new branch for Drupal and embeddeding
......................................................................
Start a new branch for Drupal and embeddeding
Change-Id: Ia1dfbe8a0531d39e706f75fd5f7245cdd50bd55f
---
A composer.json
D gateway_common/WmfFramework.mediawiki.php
2 files changed, 18 insertions(+), 71 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/26/165126/1
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..6fca851
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,18 @@
+{
+ "name": "wikimedia/DonationInterface",
+ "description": "Wikimedia Foundation payment processing library",
+ "license": "GPL-2.0",
+ "support": {
+ "irc": "irc://irc.freenode.net/wikimedia-fundraising"
+ },
+ "autoload": {
+ "classmap": [
+ "adyen_gateway",
+ "amazon_gateway",
+ "gateway_common",
+ "globalcollect_gateway",
+ "paypal_gateway",
+ "worldpay_gateway"
+ ]
+ }
+}
diff --git a/gateway_common/WmfFramework.mediawiki.php
b/gateway_common/WmfFramework.mediawiki.php
deleted file mode 100644
index e0a1c75..0000000
--- a/gateway_common/WmfFramework.mediawiki.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-class WmfFramework {
- static function debugLog( $identifier, $msg ) {
- wfDebugLog( $identifier, $msg );
- }
-
- static function getIP() {
- global $wgRequest;
- return $wgRequest->getIP();
- }
-
- static function getHostname() {
- return wfHostname();
- }
-
- static function formatMessage($message_identifier /*, ... */ ) {
- return call_user_func_array( 'wfMessage', func_get_args()
)->text();
- }
-
- static function runHooks($func, $args) {
- return wfRunHooks($func, $args);
- }
-
- static function getLanguageCode() {
- global $wgLang;
- return $wgLang->getCode();
- }
-
- static function isUseSquid() {
- global $wgUseSquid;
- return $wgUseSquid;
- }
-
- static function setupSession($sessionId=false) {
- wfSetupSession();
- }
-
- static function validateIP($ip) {
- return IP::isValid( $ip );
- }
-
- static function isValidBuiltInLanguageCode( $code ) {
- return Language::isValidBuiltInCode( $code );
- }
-
- static function validateEmail( $email ) {
- return Sanitizer::validateEmail( $email );
- }
-
- /**
- * wmfMessageExists returns true if a translatable message has been
defined
- * for the string and language that have been passed in, false if none
is
- * present.
- * @param string $msg_key The message string to look up.
- * @param string $language A valid mediawiki language code.
- * @return boolean - true if message exists, otherwise false.
- */
- public static function messageExists( $msg_key, $language ) {
- return wfMessage( $msg_key )->inLanguage( $language )->exists();
- }
-
- static function getUserAgent() {
- return Http::userAgent();
- }
-
- static function isPosted() {
- global $wgRequest;
- $wgRequest->wasPosted();
- }
-}
--
To view, visit https://gerrit.wikimedia.org/r/165126
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia1dfbe8a0531d39e706f75fd5f7245cdd50bd55f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: drupal
Gerrit-Owner: Awight <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits