Skip to content

Commit 3cbf250

Browse files
GlobIterator should use full path...
1 parent bbfc7bd commit 3cbf250

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsystems/view-engine/ViewEngine/Services/ViewService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ private function findTemplate ($path)
239239
{
240240
if (file_exists ($path))
241241
return $path;
242-
return FilesystemFlow::glob ("$path.*")->onlyFiles ()->fetchKey ();
242+
//http://stackoverflow.com/questions/16396334/why-does-globiterator-produce-a-different-output-than-the-glob-function
243+
return FilesystemFlow::glob (getcwd()."/$path.*")->onlyFiles ()->fetchKey ();
243244
}
244245
}

0 commit comments

Comments
 (0)