Index: trunk/extensions/DonationInterface/gateway_common/gateway.adapter.php |
— | — | @@ -252,7 +252,7 @@ |
253 | 253 | } |
254 | 254 | |
255 | 255 | function getData( $val = '' ) { |
256 | | - if ( empty( $val ) ) { |
| 256 | + if ( $val === '' ) { |
257 | 257 | return $this->postdata; |
258 | 258 | } else { |
259 | 259 | if ( array_key_exists( $val, $this->postdata ) ) { |
Index: trunk/extensions/DonationInterface/gateway_common/GatewayForm.php |
— | — | @@ -23,20 +23,6 @@ |
24 | 24 | class GatewayForm extends UnlistedSpecialPage { |
25 | 25 | |
26 | 26 | /** |
27 | | - * Defines the action to take on a transaction. |
28 | | - * |
29 | | - * Possible values include 'process', 'challenge', |
30 | | - * 'review', 'reject'. These values can be set during |
31 | | - * data processing validation, for instance. |
32 | | - * |
33 | | - * Hooks are exposed to handle the different actions. |
34 | | - * |
35 | | - * Defaults to 'process'. |
36 | | - * @var string |
37 | | - */ |
38 | | - public $action = 'process'; |
39 | | - |
40 | | - /** |
41 | 27 | * A container for the form class |
42 | 28 | * |
43 | 29 | * Used to loard the form object to display the CC form |
— | — | @@ -367,48 +353,48 @@ |
368 | 354 | $wgOut->addHTML( HTML::element( 'span', null, $results['message'] ) ); |
369 | 355 | |
370 | 356 | if ( !empty( $results['errors'] ) ) { |
371 | | - $wgOut->addHTML( "<ul>" ); |
| 357 | + $wgOut->addHTML( HTML::openElement( 'ul' ) ); |
372 | 358 | foreach ( $results['errors'] as $code => $value ) { |
373 | | - $wgOut->addHTML( HTML::element('li', null, "Error $code: $value" ) ); |
| 359 | + $wgOut->addHTML( HTML::element('li', null, "Error $code: $value" ) . HTML::closeElement( 'li' ) ); |
374 | 360 | } |
375 | | - $wgOut->addHTML( "</ul>" ); |
| 361 | + $wgOut->addHTML( HTML::closeElement( 'ul' ) ); |
376 | 362 | } |
377 | 363 | |
378 | 364 | if ( !empty( $results['data'] ) ) { |
379 | | - $wgOut->addHTML( "<ul>" ); |
| 365 | + $wgOut->addHTML( HTML::openElement( 'ul' ) ); |
380 | 366 | foreach ( $results['data'] as $key => $value ) { |
381 | 367 | if ( is_array( $value ) ) { |
382 | | - $wgOut->addHTML( HTML::element('li', null, $key ) . '<ul>' ); |
| 368 | + $wgOut->addHTML( HTML::element('li', null, $key ) . HTML::openElement( 'ul' ) ); |
383 | 369 | foreach ( $value as $key2 => $val2 ) { |
384 | | - $wgOut->addHTML( HTML::element('li', null, "$key2: $val2" ) ); |
| 370 | + $wgOut->addHTML( HTML::element('li', null, "$key2: $val2" ) . HTML::closeElement( 'li' ) ); |
385 | 371 | } |
386 | | - $wgOut->addHTML( "</ul>" ); |
| 372 | + $wgOut->addHTML( HTML::closeElement( 'ul' ) . HTML::closeElement( 'li' ) ); |
387 | 373 | } else { |
388 | | - $wgOut->addHTML( HTML::element('li', null, "$key: $value" ) ); |
| 374 | + $wgOut->addHTML( HTML::element('li', null, "$key: $value" ) . HTML::closeElement( 'li' ) ); |
389 | 375 | } |
390 | 376 | } |
391 | | - $wgOut->addHTML( "</ul>" ); |
| 377 | + $wgOut->addHTML( HTML::closeElement( 'ul' ) ); |
392 | 378 | } else { |
393 | 379 | $wgOut->addHTML( "Empty Results" ); |
394 | 380 | } |
395 | 381 | if ( array_key_exists( 'Donor', $_SESSION ) ) { |
396 | | - $wgOut->addHTML( "Session Donor Vars:<ul>" ); |
| 382 | + $wgOut->addHTML( "Session Donor Vars:" . HTML::openElement( 'ul' )); |
397 | 383 | foreach ( $_SESSION['Donor'] as $key => $val ) { |
398 | | - $wgOut->addHTML( HTML::element('li', null, "$key: $val" ) ); |
| 384 | + $wgOut->addHTML( HTML::element('li', null, "$key: $val" ) . HTML::closeElement( 'li' ) ); |
399 | 385 | } |
400 | | - $wgOut->addHTML( "</ul>" ); |
| 386 | + $wgOut->addHTML( HTML::closeElement( 'ul' ) ); |
401 | 387 | } else { |
402 | | - $wgOut->addHTML( "No Session Donor Vars:<ul>" ); |
| 388 | + $wgOut->addHTML( "No Session Donor Vars:" ); |
403 | 389 | } |
404 | 390 | |
405 | 391 | if ( is_array( $this->adapter->debugarray ) ) { |
406 | | - $wgOut->addHTML( "Debug Array:<ul>" ); |
| 392 | + $wgOut->addHTML( "Debug Array:" . HTML::openElement( 'ul' ) ); |
407 | 393 | foreach ( $this->adapter->debugarray as $val ) { |
408 | | - $wgOut->addHTML( HTML::element('li', null, $val ) ); |
| 394 | + $wgOut->addHTML( HTML::element('li', null, $val ) . HTML::closeElement( 'li' ) ); |
409 | 395 | } |
410 | | - $wgOut->addHTML( "</ul>" ); |
| 396 | + $wgOut->addHTML( HTML::closeElement( 'ul' ) ); |
411 | 397 | } else { |
412 | | - $wgOut->addHTML( "No Debug Array<ul>" ); |
| 398 | + $wgOut->addHTML( "No Debug Array" ); |
413 | 399 | } |
414 | 400 | } |
415 | 401 | |