Skip to content

Commit

Permalink
Fix issue #164 (#165, #166)
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Oct 6, 2014
1 parent 39fdd5c commit a51e7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/collector/project/Dependency.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Dependency {

public function __construct(fDOMDocument $dom, Project $project) {
$this->index = $dom;
$this->baseDir = dirname($dom->documentURI);
$this->baseDir = dirname(urldecode($dom->documentURI));
$this->index->registerNamespace('phpdox', 'http://xml.phpdox.net/src');
$this->project = $project;
}
Expand Down
3 changes: 1 addition & 2 deletions src/generator/project/TokenFileIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function __construct(\DOMNodeList $nodeList) {
*/
public function current() {
$item = $this->nodeList->item($this->pos);
//var_dump($item);
$path = dirname($item->ownerDocument->documentURI) . '/' . $item->getAttribute('xml');
$path = dirname(urldecode($item->ownerDocument->documentURI)) . '/' . $item->getAttribute('xml');
return new TokenFile(new FileInfo($path));
}

Expand Down

0 comments on commit a51e7db

Please sign in to comment.