r94044 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94043‎ | r94044 | r94045 >
Date:14:30, 7 August 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
small fix
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_CSV.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_CSV.php
@@ -109,7 +109,7 @@
110110
111111 $params['sep'] = new Parameter( 'sep' );
112112 $params['sep']->setMessage( 'smw-paramdesc-csv-sep' );
113 - $params['sep']->setDefault( $this->m_sep );
 113+ $params['sep']->setDefault( ',' );
114114
115115 return $params;
116116 }
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php
@@ -340,6 +340,7 @@
341341 $sql_options = array( 'LIMIT' => $query->getLimit() + 1, 'OFFSET' => $query->getOffset() );
342342 $res = $this->m_dbs->select( $this->m_dbs->tableName( $qobj->jointable ) . " AS $qobj->alias" . $qobj->from, "COUNT(DISTINCT $qobj->alias.smw_id) AS count", $qobj->where, 'SMW::getQueryResult', $sql_options );
343343 $row = $this->m_dbs->fetchObject( $res );
 344+
344345 $count = $row->count;
345346 $this->m_dbs->freeResult( $res );
346347