http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96677
Revision: 96677
Author: khorn
Date: 2011-09-09 18:30:02 +0000 (Fri, 09 Sep 2011)
Log Message:
-----------
Adds an unaltered displaydata array to the gateways, so we can pass the
unstaged data back to the form.
Modified Paths:
--------------
branches/fundraising/extensions/DonationInterface/gateway_common/gateway.adapter.php
branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
Modified:
branches/fundraising/extensions/DonationInterface/gateway_common/gateway.adapter.php
===================================================================
---
branches/fundraising/extensions/DonationInterface/gateway_common/gateway.adapter.php
2011-09-09 18:11:29 UTC (rev 96676)
+++
branches/fundraising/extensions/DonationInterface/gateway_common/gateway.adapter.php
2011-09-09 18:30:02 UTC (rev 96677)
@@ -118,7 +118,7 @@
$this->defineAccountInfo();
$this->defineReturnValueMap();
-
+ $this->displaydata = $this->postdata;
$this->stageData();
}
@@ -147,6 +147,9 @@
function getData(){
return $this->postdata;
}
+ function getDisplayData(){
+ return $this->displaydata;
+ }
function isCache(){
return $this->dataObj->isCache();
Modified:
branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
===================================================================
---
branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
2011-09-09 18:11:29 UTC (rev 96676)
+++
branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
2011-09-09 18:30:02 UTC (rev 96677)
@@ -95,7 +95,7 @@
//TODO: This is short-circuiting what I really want to do here.
//so stop it.
- $data = $this->adapter->getData();
+ $data = $this->adapter->getDisplayData();
// dispatch forms/handling
if ( $this->adapter->checkTokens() ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs