r92540 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92539‎ | r92540 | r92541 >
Date:16:10, 19 July 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
follow up to r92356
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php
@@ -728,12 +728,14 @@
729729
730730 $params = method_exists( $printer, 'getValidatorParameters' ) ? $printer->getValidatorParameters() : array();
731731
732 - // Ignore the format parameter, as we got a special control in the GUI for it already.
733 - unset( $params['format'] );
734 -
735732 $optionsHtml = array();
736733
737734 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+
738740 $currentValue = array_key_exists( $param->getName(), $paramValues ) ? $paramValues[$param->getName()] : false;
739741
740742 $optionsHtml[] =

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92356added smwdoc parser hook to auto generate parameter documentation tables for ...jeroendedauw14:24, 16 July 2011