r97467 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97466‎ | r97467 | r97468 >
Date:11:09, 19 September 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fix compat w/ SMW 1.6.2
Modified paths:
  • /trunk/extensions/SemanticCompoundQueries/SCQ_QueryProcessor.php (modified) (history)
  • /trunk/extensions/SemanticCompoundQueries/SemanticCompoundQueries.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticCompoundQueries/SCQ_QueryProcessor.php
@@ -51,7 +51,16 @@
5252 }
5353
5454 $query_result = new SCQQueryResult( $next_result->getPrintRequests(), new SMWQuery(), $results, smwfGetStore() );
55 - return self::getResultFromQueryResult( $query_result, $other_params, SMW_OUTPUT_WIKI );
 55+
 56+ if ( version_compare( SMW_VERSION, '1.6.1', '>' ) ) {
 57+ $other_params = parent::getProcessedParams( $other_params );
 58+ }
 59+
 60+ return self::getResultFromQueryResult(
 61+ $query_result,
 62+ $other_params,
 63+ SMW_OUTPUT_WIKI
 64+ );
5665 }
5766
5867 /**
@@ -171,7 +180,7 @@
172181 * except that formats of type 'debug' and 'count' aren't handled.
173182 *
174183 * @param SCQQueryResult $res
175 - * @param array $params
 184+ * @param array $params These need to be the result of a list fed to getProcessedParams as of SMW 1.6.2
176185 * @param $outputmode
177186 * @param $context
178187 * @param string $format
Index: trunk/extensions/SemanticCompoundQueries/SemanticCompoundQueries.php
@@ -17,7 +17,7 @@
1818
1919 if ( !defined( 'MEDIAWIKI' ) ) die();
2020
21 -define( 'SCQ_VERSION', '0.2.9' );
 21+define( 'SCQ_VERSION', '0.2.10 alpha' );
2222
2323 $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'parserhook'][] = array(
2424 'path' => __FILE__,