Skip to content

Commit

Permalink
fix include node
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHlt committed Mar 20, 2015
1 parent 9084430 commit f176322
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Arhframe/Yamlarh/YamlarhNode/IncludeYamlarhNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private function searchForInclude(&$arrayYaml = null)
$currentFile = new File($this->yamlarh->getFilename());
$includeFile = new File($includeFile);
if (!$includeFile->isFile()) {
$includeFile->setFolder($currentFile->getFolder());
$includeFile->setFolder($currentFile->getFolder() . $includeFile->getFolder());
}
$yamlArh = new Yamlarh($includeFile->absolute());
$includeYaml = array_merge($yamlArh->parse(), $arrayYaml, $includeYaml);
Expand Down
2 changes: 1 addition & 1 deletion tests/Arhframe/Yamlarh/resource/include/file1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<var1>var</var1>
</arhframe>
<test>
<yar-include>file2.json</yar-include>
<yar-include>folderinclude/file2.json</yar-include>
</test>
</yamlarh>

0 comments on commit f176322

Please sign in to comment.