Ejegg has uploaded a new change for review.

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

Change subject: Make Amazon use standard handleDonationRequest
......................................................................

Make Amazon use standard handleDonationRequest

Need to set the edit token, and there's less code this way.

Bug: T117827
Change-Id: I33e282ade252164dccdf2c9bc9bbd6fe2b94d128
---
M amazon_gateway/amazon_gateway.body.php
1 file changed, 1 insertion(+), 5 deletions(-)


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

diff --git a/amazon_gateway/amazon_gateway.body.php 
b/amazon_gateway/amazon_gateway.body.php
index 87dbcf8..41f13d1 100644
--- a/amazon_gateway/amazon_gateway.body.php
+++ b/amazon_gateway/amazon_gateway.body.php
@@ -30,13 +30,9 @@
         */
        protected function handleRequest() {
                Hooks::register( 'MakeGlobalVariablesScript', array( 
$this->adapter, 'setClientVariables' ) );
-               $this->getOutput()->allowClickjacking();
-
-               $this->setHeaders();
                $this->getOutput()->addModules( 
'ext.donationinterface.amazon.styles' );
                $this->getOutput()->addModules( 
'ext.donationinterface.amazon.scripts' );
 
-               $this->validateForm();
-               $this->displayForm();
+               $this->handleDonationRequest();
        }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I33e282ade252164dccdf2c9bc9bbd6fe2b94d128
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Ejegg <eeggles...@wikimedia.org>

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

Reply via email to