r111316 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111315‎ | r111316 | r111317 >
Date:19:01, 12 February 2012
Author:mkroetzsch
Status:deferred
Tags:
Comment:
pass on required extra namespaces
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlDatabase.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/sparql/SMW_SparqlDatabase.php
@@ -368,7 +368,7 @@
369369 * @return boolean stating whether the operations succeeded
370370 */
371371 public function deleteContentByValue( $propertyName, $objectName, $extraNamespaces = array() ) {
372 - return smwfGetSparqlDatabase()->delete( "?s ?p ?o", "?s $propertyName $objectName . ?s ?p ?o" );
 372+ return smwfGetSparqlDatabase()->delete( "?s ?p ?o", "?s $propertyName $objectName . ?s ?p ?o", $extraNamespaces );
373373 }
374374
375375 /**
@@ -467,7 +467,7 @@
468468
469469 /**
470470 * Execute a SPARQL update and return a boolean to indicate if the
471 - * operations was sucessfull. The method throws exceptions based on
 471+ * operations was successful. The method throws exceptions based on
472472 * SMWSparqlDatabase::throwSparqlErrors(). If errors occur and this
473473 * method does not throw anything, then false is returned.
474474 *