r114403 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114402‎ | r114403 | r114404 >
Date:20:30, 21 March 2012
Author:foxtrott
Status:deferred
Tags:
Comment:
allow switching parameters for printouts
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php
@@ -298,6 +298,8 @@
299299 $parts = explode( '=', $param, 2 );
300300 if ( count( $parts ) == 2 ) {
301301 $lastprintout->setParameter( trim( $parts[0] ), $parts[1] );
 302+ } else {
 303+ $lastprintout->setParameter( trim( $parts[0] ), null );
302304 }
303305 }
304306 } else { // parameter or query

Status & tagging log