r56293 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56292‎ | r56293 | r56294 >
Date:07:27, 14 September 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
fixed calls to SMWQueryResult construction in special cases
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php
@@ -145,7 +145,7 @@
146146 */
147147 public function getQueryResult(SMWQuery $query) {
148148 if ($query->querymode == SMWQuery::MODE_NONE) { // don't query, but return something to printer
149 - $result = new SMWQueryResult($query->getDescription()->getPrintrequests(), $query, true);
 149+ $result = new SMWQueryResult($query->getDescription()->getPrintrequests(), $query, array(), $this->m_store, true);
150150 return $result;
151151 }
152152 $this->m_qmode = $query->querymode;
@@ -267,7 +267,7 @@
268268 wfProfileIn('SMWSQLStore2Queries::getInstanceQueryResult (SMW)');
269269 $qobj = $this->m_queries[$rootid];
270270 if ($qobj->joinfield === '') { // empty result, no query needed
271 - $result = new SMWQueryResult($query->getDescription()->getPrintrequests(), $query, false);
 271+ $result = new SMWQueryResult($query->getDescription()->getPrintrequests(), $query, array(), $this->m_store, false);
272272 wfProfileOut('SMWSQLStore2Queries::getInstanceQueryResult (SMW)');
273273 return $result;
274274 }

Status & tagging log