Permalink
Browse files

Fix regression in getNamespacesForGraph

  • Loading branch information...
1 parent 922bce6 commit e25df3135d191172d437fccd812fb34400ae5714 @pfrischmuth pfrischmuth committed Dec 11, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 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];
}
/**

0 comments on commit e25df31

Please sign in to comment.