r93578 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93577‎ | r93578 | r93579 >
Date:08:50, 31 July 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
minor fix.
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_Utils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_Utils.php
@@ -180,6 +180,7 @@
181181
182182 $Xmltext = "";
183183 $templateNum = -1;
 184+ $xml_text_array = array();
184185 foreach ( $wgRequest->getValues() as $var => $val ) {
185186 if(substr($var,0,14) == 'sf_input_type_'){
186187 $templateNum = substr($var,14,1);
@@ -204,11 +205,13 @@
205206 $Xmltext .= '<Parameter name="'.$param_value[0].'"/>';
206207 }
207208 }
 209+ $Xmltext .= '</FormInput>';
 210+ $xml_text_array[] = $Xmltext;
 211+ $Xmltext = '';
208212 }
209213 }
210 - }
211 - $Xmltext .= '</FormInput>';
212 - $text_extensions['sf'] = $Xmltext;
 214+ }
 215+ $text_extensions['sf'] = $xml_text_array;
213216 return true;
214217 }
215218 public static function getHtmlTextForPS( &$js_extensions ,&$text_extensions ) {