r86287 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86286‎ | r86287 | r86288 >
Date:21:32, 17 April 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
updated according to changes in export element classes
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlResultParser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlResultParser.php
@@ -122,11 +122,11 @@
123123 if ( $prevTag == 'uri' ) {
124124 $this->m_data[$rowcount][$this->m_xml_bindidx] = new SMWExpResource( $dataString );
125125 } elseif ( $prevTag == 'literal' ) {
126 - $this->m_data[$rowcount][$this->m_xml_bindidx] = new SMWExpLiteral( $dataString, null, $this->m_xml_datatype );
 126+ $this->m_data[$rowcount][$this->m_xml_bindidx] = new SMWExpLiteral( $dataString, $this->m_xml_datatype );
127127 } elseif ( $prevTag == 'bnode' ) {
128128 $this->m_data[$rowcount][$this->m_xml_bindidx] = new SMWExpResource( '_' . $dataString );
129129 } elseif ( $prevTag == 'boolean' ) { // no "results" in this case
130 - $literal = new SMWExpLiteral( $dataString, null, 'http://www.w3.org/2001/XMLSchema#boolean' );
 130+ $literal = new SMWExpLiteral( $dataString, 'http://www.w3.org/2001/XMLSchema#boolean' );
131131 $this->m_data = array( array( $literal ) );
132132 }
133133 }

Status & tagging log