Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php |
— | — | @@ -728,12 +728,14 @@ |
729 | 729 | |
730 | 730 | $params = method_exists( $printer, 'getValidatorParameters' ) ? $printer->getValidatorParameters() : array(); |
731 | 731 | |
732 | | - // Ignore the format parameter, as we got a special control in the GUI for it already. |
733 | | - unset( $params['format'] ); |
734 | | - |
735 | 732 | $optionsHtml = array(); |
736 | 733 | |
737 | 734 | foreach ( $params as $param ) { |
| 735 | + // Ignore the format parameter, as we got a special control in the GUI for it already. |
| 736 | + if ( $param->getName() == 'format' ) { |
| 737 | + continue; |
| 738 | + } |
| 739 | + |
738 | 740 | $currentValue = array_key_exists( $param->getName(), $paramValues ) ? $paramValues[$param->getName()] : false; |
739 | 741 | |
740 | 742 | $optionsHtml[] = |