r79146 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79145‎ | r79146 | r79147 >
Date:01:32, 29 December 2010
Author:kaldari
Status:deferred
Tags:
Comment:
adding tshirt confirmation
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnPremium.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnPremium.php
@@ -13,7 +13,7 @@
1414 }
1515
1616 public function generateFormStart() {
17 - global $wgOut, $wgRequest;
 17+ global $wgOut, $wgRequest, $wgScriptPath;
1818
1919 $form = parent::generateBannerHeader();
2020
@@ -21,15 +21,10 @@
2222 $form .= Xml::openElement( 'tr' );
2323 $form .= Xml::openElement( 'td', array( 'id' => 'appeal', 'valign' => 'top' ) );
2424
25 - $text_template = $wgRequest->getText( 'text_template', '2010/JimmyAppealLong' );
26 - // if the user has uselang set, honor that, otherwise default to the language set for the form defined by 'language' in the query string
27 - if ( $wgRequest->getText( 'language' ) ) $text_template .= '/' . $this->form_data[ 'language' ];
 25+ $form .= Xml::openElement( 'div', array( 'id' => 'premium-confirmation' ) );
 26+ $form .= Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/Wikipedia-ten-tshirt-back.jpg" ) );
 27+ $form .= Xml::closeElement( 'div' ); // close div#premium-confirmation
2828
29 - $template = ( strlen( $text_template ) ) ? $wgOut->parse( '{{' . $text_template . '}}' ) : '';
30 - // if the template doesn't exist, prevent the display of the red link
31 - if ( preg_match( '/redlink\=1/', $template ) ) $template = NULL;
32 - $form .= $template;
33 -
3429 $form .= Xml::closeElement( 'td' );
3530
3631 $form .= Xml::openElement( 'td', array( 'id' => 'donate', 'valign' => 'top' ) );

Status & tagging log