Skip to content

Commit

Permalink
remove the prefix from the local userNamespaces array
Browse files Browse the repository at this point in the history
  • Loading branch information
adou600 committed Apr 13, 2012
1 parent f4b6aee commit 0d4c54b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Jackalope/NamespaceRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ public function unregisterNamespace($prefix)
// we already checked whether this is a prefix out of the defaultNamespaces in checkPrefix
throw new NamespaceException("Prefix $prefix is not currently registered");
}

if (array_key_exists($prefix, $this->userNamespaces)) {
//remove the prefix from the userNamespaces array
unset($this->userNamespaces[$prefix]);
}

$this->transport->unregisterNamespace($prefix);
}

Expand Down

0 comments on commit 0d4c54b

Please sign in to comment.