r85843 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85842‎ | r85843 | r85844 >
Date:00:51, 12 April 2011
Author:awjrichards
Status:deferred
Tags:
Comment:
Updating a couple of old form files that had hard-coded country values to use new format
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter7.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnPremiumUS.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter7.php
@@ -317,7 +317,7 @@
318318 $form .= '<td>' . Xml::input( 'city', '18', $this->form_data['city'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-city' ).'\' )', 'maxlength' => '40', 'id' => 'city' ) ) . ' ' .
319319 $this->generateStateDropdown() . ' ' .
320320 Xml::input( 'zip', '5', $this->form_data['zip'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-zip-code' ).'\' )', 'maxlength' => '10', 'id' => 'zip' ) ) .
321 - Html::hidden( 'country', 840 ) .
 321+ Html::hidden( 'country', 'US' ) .
322322 '</td>';
323323 $form .= '</tr>';
324324
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php
@@ -297,7 +297,7 @@
298298 $form .= '<td>' . Xml::input( 'city', '18', $this->form_data['city'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-city' ).'\' )', 'maxlength' => '40', 'id' => 'city' ) ) . ' ' .
299299 $this->generateStateDropdown() . ' ' .
300300 Xml::input( 'zip', '5', $this->form_data['zip'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-zip-code' ).'\' )', 'maxlength' => '10', 'id' => 'zip' ) ) .
301 - Html::hidden( 'country', 840 ) .
 301+ Html::hidden( 'country', 'US' ) .
302302 '</td>';
303303 $form .= '</tr>';
304304
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnPremiumUS.php
@@ -275,7 +275,7 @@
276276 $form .= '<td>' . Xml::input( 'city', '18', $this->form_data['city'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-city' ).'\' )', 'maxlength' => '40', 'id' => 'city' ) ) . ' ' .
277277 $this->generateStateDropdown() . ' ' .
278278 Xml::input( 'zip', '5', $this->form_data['zip'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-zip-code' ).'\' )', 'maxlength' => '10', 'id' => 'zip' ) ) .
279 - Html::hidden( 'country', 840 ) .
 279+ Html::hidden( 'country', 'US' ) .
280280 '</td>';
281281 $form .= '</tr>';
282282

Status & tagging log