r60049 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60048‎ | r60049 | r60050 >
Date:22:08, 14 December 2009
Author:tomasz
Status:ok
Tags:
Comment:
updating text string to line up with live page and be a bit clearer
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
@@ -87,8 +87,8 @@
8888 // find out if amount was a radio button or textbox, set amount
8989 if( isset( $_REQUEST['amount'] ) && preg_match( '/^\d+(\.(\d+)?)?$/', $wgRequest->getText( 'amount' ) ) ) {
9090 $amount = $wgRequest->getText( 'amount' );
91 - } elseif( isset( $_REQUEST['amount2'] ) && preg_match( '/^\d+(\.(\d+)?)?$/', $wgRequest->getText( 'amount2' ) ) ) {
92 - $amount = number_format( $wgRequest->getText( 'amount2' ), 2, '.', '' );
 91+ } elseif( isset( $_REQUEST['amountGiven'] ) && preg_match( '/^\d+(\.(\d+)?)?$/', $wgRequest->getText( 'amountGiven' ) ) ) {
 92+ $amount = number_format( $wgRequest->getText( 'amountGiven' ), 2, '.', '' );
9393 } elseif( isset( $_REQUEST['amount'] ) ) {
9494 $amount = '0.00';
9595 } else {

Follow-up revisions

RevisionCommit summaryAuthorDate
r60060matching changes in r60049tomasz02:49, 15 December 2009

Status & tagging log