Index: trunk/extensions/BotQuery/query.php |
— | — | @@ -2640,7 +2640,7 @@ |
2641 | 2641 | case 'array': |
2642 | 2642 | echo '<struct>'; |
2643 | 2643 | foreach( $elemValue as $subElemName => &$subElemValue ) { |
2644 | | - echo wfElement( 'var', array('name' => $subElemName), null ); |
| 2644 | + echo wfOpenElement( 'var', array('name' => $subElemName) ); |
2645 | 2645 | slowWddxPrinter( $subElemValue ); |
2646 | 2646 | echo '</var>'; |
2647 | 2647 | } |
— | — | @@ -2703,14 +2703,14 @@ |
2704 | 2704 | $subElemContent = $elemValue['*']; |
2705 | 2705 | unset( $elemValue['*'] ); |
2706 | 2706 | if( gettype( $subElemContent ) === 'array' ) { |
2707 | | - $printer( $indstr . wfElement( $elemName, $elemValue, null )); |
| 2707 | + $printer( $indstr . wfOpenElement( $elemName, $elemValue )); |
2708 | 2708 | recXmlPrint( $printer, $elemName, $subElemContent, $indent ); |
2709 | 2709 | $printer( $indstr . "</$elemName>" ); |
2710 | 2710 | } else { |
2711 | 2711 | $printer( $indstr . wfElement( $elemName, $elemValue, $subElemContent )); |
2712 | 2712 | } |
2713 | 2713 | } else { |
2714 | | - $printer( $indstr . wfElement( $elemName, null, null )); |
| 2714 | + $printer( $indstr . wfOpenElement( $elemName, null )); |
2715 | 2715 | if( array_key_exists('_element', $elemValue) ) { |
2716 | 2716 | $subElemName = $elemValue['_element']; |
2717 | 2717 | foreach( $elemValue as $subElemId => &$subElemValue ) { |