r96724 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96723‎ | r96724 | r96725 >
Date:17:13, 10 September 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fixed bug 30837
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/params/SMW_ParamFormat.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php
@@ -736,7 +736,7 @@
737737 }
738738
739739 $currentValue = array_key_exists( $param->getName(), $paramValues ) ? $paramValues[$param->getName()] : false;
740 -
 740+
741741 $optionsHtml[] =
742742 Html::rawElement(
743743 'div',
Index: trunk/extensions/SemanticMediaWiki/includes/params/SMW_ParamFormat.php
@@ -31,6 +31,8 @@
3232 public function doManipulation( &$value, Parameter $parameter, array &$parameters ) {
3333 global $smwgResultFormats;
3434
 35+ $value = trim( $value );
 36+
3537 if ( !array_key_exists( $value, $smwgResultFormats ) ) {
3638 $isAlias = self::resolveFormatAliases( $value );
3739