r98233 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98232‎ | r98233 | r98234 >
Date:17:32, 27 September 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
add missing & to parameter string
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlDatabase.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlDatabase.php
@@ -450,7 +450,7 @@
451451 curl_setopt( $this->m_curlhandle, CURLOPT_URL, $this->m_queryEndpoint );
452452 curl_setopt( $this->m_curlhandle, CURLOPT_POST, true );
453453 $parameterString = "query=" . urlencode( $sparql ) .
454 - ( ( $this->m_defaultGraph != '' )? 'default-graph-uri=' . urlencode( $this->m_defaultGraph ) : '' );
 454+ ( ( $this->m_defaultGraph != '' )? '&default-graph-uri=' . urlencode( $this->m_defaultGraph ) : '' );
455455 curl_setopt( $this->m_curlhandle, CURLOPT_POSTFIELDS, $parameterString );
456456
457457 $xmlResult = curl_exec( $this->m_curlhandle );