Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix regression in getNamespacesForGraph

  • Loading branch information...
commit e25df3135d191172d437fccd812fb34400ae5714 1 parent 922bce6
@pfrischmuth pfrischmuth authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 library/Erfurt/Namespaces.php
View
8 library/Erfurt/Namespaces.php
@@ -240,9 +240,9 @@ public function getNamespacePrefixes($graph)
*/
public function getNamespacesForGraph($graph)
{
- $graph = (string)$graph;
+ $graphUri = (string)$graph;
- if (!array_key_exists($graph, $this->_namespaces)) {
+ if (!array_key_exists($graphUri, $this->_namespaces)) {
$model = $this->getModel($graph);
$graphNamespaces = array();
@@ -262,10 +262,10 @@ public function getNamespacesForGraph($graph)
}
// add to global store
- $this->_namespaces[$graph] = $graphNamespaces;
+ $this->_namespaces[$graphUri] = $graphNamespaces;
}
- return $this->_namespaces[$graph];
+ return $this->_namespaces[$graphUri];
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.