r77550 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77549‎ | r77550 | r77551 >
Date:23:39, 1 December 2010
Author:kaldari
Status:deferred
Tags:
Comment:
fix for non USD currencies
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter.php
@@ -101,7 +101,11 @@
102102 // card logos
103103 $form .= '<tr>';
104104 $form .= '<td />';
105 - $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) ) . '</td>';
 105+ if ( $this->form_data[ 'currency' ] == 'USD' ) {
 106+ $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) ) . '</td>';
 107+ } else {
 108+ $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos3.gif" ) ) . '</td>';
 109+ }
106110 $form .= '</tr>';
107111
108112 // card number
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php
@@ -222,7 +222,11 @@
223223 // card logos
224224 $form .= '<tr>';
225225 $form .= '<td />';
226 - $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) ) . '</td>';
 226+ if ( $this->form_data[ 'currency' ] == 'USD' ) {
 227+ $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) ) . '</td>';
 228+ } else {
 229+ $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos3.gif" ) ) . '</td>';
 230+ }
227231 $form .= '</tr>';
228232
229233 // card number

Status & tagging log