http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100207

Revision: 100207
Author:   jpostlethwaite
Date:     2011-10-19 03:11:09 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
See r98470 - Cleaning up form code and reordering function calls.

Modified Paths:
--------------
    
branches/fundraising/extensions/DonationInterface/gateway_forms/TwoStepAmount.php

Modified: 
branches/fundraising/extensions/DonationInterface/gateway_forms/TwoStepAmount.php
===================================================================
--- 
branches/fundraising/extensions/DonationInterface/gateway_forms/TwoStepAmount.php
   2011-10-19 03:00:32 UTC (rev 100206)
+++ 
branches/fundraising/extensions/DonationInterface/gateway_forms/TwoStepAmount.php
   2011-10-19 03:11:09 UTC (rev 100207)
@@ -28,12 +28,12 @@
 
                $form_data['transaction_type'] = 'BANK_TRANSFER';
                $form_data['process'] = 'BANK_TRANSFER';
-               parent::__construct( $form_data, $form_errors, $gateway );
 
                // we only want to load this JS if the form is being rendered
                $this->loadValidateJs(); // validation JS
 
                $this->loadPlaceholders();
+               parent::__construct( $form_data, $form_errors, $gateway );
        }
 
        public function loadPlaceholders() {
@@ -152,8 +152,6 @@
                $form .= $this->generateFormSubmit();
                $form .= Xml::closeElement( 'div' ); // close div#left-column
 
-               //$form .= Xml::openElement( 'div', array( 'id' => 
'right-column', 'class' => 'payflow-cc-form-section' ) );
-
                return $form;
        }
 
@@ -179,9 +177,6 @@
                        $form .= Html::hidden( $field, $value );
                }
 
-               $value = 'BANK_TRANSFER';
-               //$form .= Html::hidden( $field, $value );
-               //$form .= Xml::closeElement( 'div' ); // close div#right-column
                $form .= Xml::closeElement( 'form' );
                $form .= Xml::closeElement( 'div' ); // close 
div#mw-creditcard-form
                $form .= $this->generateDonationFooter();


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to