Pcoombe has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/242169

Change subject: Make "JimmyQuote" default appeal
......................................................................

Make "JimmyQuote" default appeal

Currently the default appeal if nothing is specified in the URL is
"Appeal-default" [1]. This is very out of date and contains many inaccuracies.
We have been linking to "JimmyQuote" [2] as the appeal from donatewiki and all
banners for a long time now.

This change makes "JimmyQuote" the new default if no appeal is specified in the
URL. This should be considerably easier than editing/moving the many 
translations
on paymentswiki.

[1] 
https://payments.wikimedia.org/index.php/Template:2011FR/Appeal-default/text/en
[2] https://payments.wikimedia.org/index.php/Template:2011FR/JimmyQuote/text/en

Bug: T114127
Change-Id: Id3af2367d80017f05324aa7767518721623206b4
---
M gateway_forms/Mustache.php
M gateway_forms/RapidHtml.php
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/69/242169/1

diff --git a/gateway_forms/Mustache.php b/gateway_forms/Mustache.php
index b632039..cfb434d 100644
--- a/gateway_forms/Mustache.php
+++ b/gateway_forms/Mustache.php
@@ -85,7 +85,7 @@
                $data['has_no_script_redirect'] = isset( $redirect ); // grr
 
                $appealWikiTemplate = $this->gateway->getGlobal( 
'AppealWikiTemplate' );
-               $appeal = $this->make_safe( $request->getText( 'appeal', 
'Appeal-default' ) );
+               $appeal = $this->make_safe( $request->getText( 'appeal', 
'JimmyQuote' ) );
                $appealWikiTemplate = str_replace( '$appeal', $appeal, 
$appealWikiTemplate );
                $appealWikiTemplate = str_replace( '$language', 
$data['language'], $appealWikiTemplate );
                $data['appeal_text'] = $output->parse( '{{' . 
$appealWikiTemplate . '}}' );
diff --git a/gateway_forms/RapidHtml.php b/gateway_forms/RapidHtml.php
index bcdba59..74fca14 100644
--- a/gateway_forms/RapidHtml.php
+++ b/gateway_forms/RapidHtml.php
@@ -185,7 +185,7 @@
                // handle the appeal and appeal header
                // TODO: determine and set variables for the default templates
                $appeal_title_name = $this->make_safe( $wgRequest->getText( 
'appeal-title', 'Appeal-title-default' ) );
-               $appeal_name = $this->make_safe( $wgRequest->getText( 'appeal', 
'Appeal-default' ) );
+               $appeal_name = $this->make_safe( $wgRequest->getText( 'appeal', 
'JimmyQuote' ) );
 
                $form = str_replace( "@appeal-title", $appeal_title_name, $form 
);
                $form = str_replace( "@appeal", $appeal_name, $form );

-- 
To view, visit https://gerrit.wikimedia.org/r/242169
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3af2367d80017f05324aa7767518721623206b4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Pcoombe <pcoo...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to