Index: branches/fundraising/extensions/DonationInterface/gateway_common/GatewayForm.php |
— | — | @@ -338,12 +338,12 @@ |
339 | 339 | if ( $this->adapter->getGlobal( 'DisplayDebug' ) !== true ){ |
340 | 340 | return; |
341 | 341 | } |
342 | | - $wgOut->addHTML( $results['message'] ); |
| 342 | + $wgOut->addHTML( HTML::element( 'span', null, $results['message'] ) ); |
343 | 343 | |
344 | 344 | if ( !empty( $results['errors'] ) ) { |
345 | 345 | $wgOut->addHTML( "<ul>" ); |
346 | 346 | foreach ( $results['errors'] as $code => $value ) { |
347 | | - $wgOut->addHTML( "<li>Error $code: $value" ); |
| 347 | + $wgOut->addHTML( HTML::element('li', null, "Error $code: $value" ) ); |
348 | 348 | } |
349 | 349 | $wgOut->addHTML( "</ul>" ); |
350 | 350 | } |
— | — | @@ -352,13 +352,13 @@ |
353 | 353 | $wgOut->addHTML( "<ul>" ); |
354 | 354 | foreach ( $results['data'] as $key => $value ) { |
355 | 355 | if ( is_array( $value ) ) { |
356 | | - $wgOut->addHTML( "<li>$key:<ul>" ); |
| 356 | + $wgOut->addHTML( HTML::element('li', null, $key ) . '<ul>' ); |
357 | 357 | foreach ( $value as $key2 => $val2 ) { |
358 | | - $wgOut->addHTML( "<li>$key2: $val2" ); |
| 358 | + $wgOut->addHTML( HTML::element('li', null, "$key2: $val2" ) ); |
359 | 359 | } |
360 | 360 | $wgOut->addHTML( "</ul>" ); |
361 | 361 | } else { |
362 | | - $wgOut->addHTML( "<li>$key: $value" ); |
| 362 | + $wgOut->addHTML( HTML::element('li', null, "$key: $value" ) ); |
363 | 363 | } |
364 | 364 | } |
365 | 365 | $wgOut->addHTML( "</ul>" ); |
— | — | @@ -368,7 +368,7 @@ |
369 | 369 | if ( array_key_exists( 'Donor', $_SESSION ) ) { |
370 | 370 | $wgOut->addHTML( "Session Donor Vars:<ul>" ); |
371 | 371 | foreach ( $_SESSION['Donor'] as $key => $val ) { |
372 | | - $wgOut->addHTML( "<li>$key: $val" ); |
| 372 | + $wgOut->addHTML( HTML::element('li', null, "$key: $val" ) ); |
373 | 373 | } |
374 | 374 | $wgOut->addHTML( "</ul>" ); |
375 | 375 | } else { |
— | — | @@ -378,7 +378,7 @@ |
379 | 379 | if ( is_array( $this->adapter->debugarray ) ) { |
380 | 380 | $wgOut->addHTML( "Debug Array:<ul>" ); |
381 | 381 | foreach ( $this->adapter->debugarray as $val ) { |
382 | | - $wgOut->addHTML( "<li>$val" ); |
| 382 | + $wgOut->addHTML( HTML::element('li', null, $val ) ); |
383 | 383 | } |
384 | 384 | $wgOut->addHTML( "</ul>" ); |
385 | 385 | } else { |