Index: trunk/extensions/SemanticDrilldown/includes/SD_Utils.php |
— | — | @@ -38,9 +38,10 @@ |
39 | 39 | public static function getXMLTextForPS( $wgRequest, &$text_extensions ){ |
40 | 40 | $Xmltext = ""; |
41 | 41 | $templateNum = -1; |
42 | | - $Xmltext .= '<Filter>'; |
| 42 | + $xml_text_array = array(); |
43 | 43 | foreach ( $wgRequest->getValues() as $var => $val ) { |
44 | 44 | if(substr($var,0,15) == 'sd_filter_name_'){ |
| 45 | + $Xmltext .= '<Filter>'; |
45 | 46 | $templateNum = substr($var,15,1); |
46 | 47 | $Xmltext .= '<Label>'.$val.'</Label>'; |
47 | 48 | }else if(substr($var,0,17) == 'sd_values_source_'){ |
— | — | @@ -65,10 +66,13 @@ |
66 | 67 | } |
67 | 68 | }else if( substr($var,0,14) == 'sd_input_type_'){ |
68 | 69 | $Xmltext .= '<InputType>'.$val.'</InputType>'; |
| 70 | + $Xmltext .= '</Filter>'; |
| 71 | + $xml_text_array[] = $Xmltext; |
| 72 | + $Xmltext = ''; |
69 | 73 | } |
70 | 74 | } |
71 | | - $Xmltext .= '</Filter>'; |
72 | | - $text_extensions['sd'] = $Xmltext; |
| 75 | + |
| 76 | + $text_extensions['sd'] = $xml_text_array; |
73 | 77 | return true; |
74 | 78 | } |
75 | 79 | public static function getHtmlTextForPS( &$js_extensions ,&$text_extensions ) { |