Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -180,6 +180,7 @@ |
181 | 181 | |
182 | 182 | $Xmltext = ""; |
183 | 183 | $templateNum = -1; |
| 184 | + $xml_text_array = array(); |
184 | 185 | foreach ( $wgRequest->getValues() as $var => $val ) { |
185 | 186 | if(substr($var,0,14) == 'sf_input_type_'){ |
186 | 187 | $templateNum = substr($var,14,1); |
— | — | @@ -204,11 +205,13 @@ |
205 | 206 | $Xmltext .= '<Parameter name="'.$param_value[0].'"/>'; |
206 | 207 | } |
207 | 208 | } |
| 209 | + $Xmltext .= '</FormInput>'; |
| 210 | + $xml_text_array[] = $Xmltext; |
| 211 | + $Xmltext = ''; |
208 | 212 | } |
209 | 213 | } |
210 | | - } |
211 | | - $Xmltext .= '</FormInput>'; |
212 | | - $text_extensions['sf'] = $Xmltext; |
| 214 | + } |
| 215 | + $text_extensions['sf'] = $xml_text_array; |
213 | 216 | return true; |
214 | 217 | } |
215 | 218 | public static function getHtmlTextForPS( &$js_extensions ,&$text_extensions ) { |