r93577 MediaWiki - Code Review archive

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

Diff [purge]

Index: trunk/extensions/SemanticDrilldown/includes/SD_Utils.php
@@ -38,9 +38,10 @@
3939 public static function getXMLTextForPS( $wgRequest, &$text_extensions ){
4040 $Xmltext = "";
4141 $templateNum = -1;
42 - $Xmltext .= '<Filter>';
 42+ $xml_text_array = array();
4343 foreach ( $wgRequest->getValues() as $var => $val ) {
4444 if(substr($var,0,15) == 'sd_filter_name_'){
 45+ $Xmltext .= '<Filter>';
4546 $templateNum = substr($var,15,1);
4647 $Xmltext .= '<Label>'.$val.'</Label>';
4748 }else if(substr($var,0,17) == 'sd_values_source_'){
@@ -65,10 +66,13 @@
6667 }
6768 }else if( substr($var,0,14) == 'sd_input_type_'){
6869 $Xmltext .= '<InputType>'.$val.'</InputType>';
 70+ $Xmltext .= '</Filter>';
 71+ $xml_text_array[] = $Xmltext;
 72+ $Xmltext = '';
6973 }
7074 }
71 - $Xmltext .= '</Filter>';
72 - $text_extensions['sd'] = $Xmltext;
 75+
 76+ $text_extensions['sd'] = $xml_text_array;
7377 return true;
7478 }
7579 public static function getHtmlTextForPS( &$js_extensions ,&$text_extensions ) {