mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 20:36:33 +00:00
bug #2825 remove duplicated directory separator (xabbuh)
This PR was merged into the 1.x branch.
Discussion
----------
remove duplicated directory separator
The $rootPath property is already initialized with a trailing directory
separator in the class constructor.
Commits
-------
edcbcc18 remove duplicated directory separator
This commit is contained in:
@@ -219,7 +219,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
|
||||
|
||||
foreach ($this->paths[$namespace] as $path) {
|
||||
if (!$this->isAbsolutePath($path)) {
|
||||
$path = $this->rootPath.'/'.$path;
|
||||
$path = $this->rootPath.$path;
|
||||
}
|
||||
|
||||
if (is_file($path.'/'.$shortname)) {
|
||||
|
||||
Reference in New Issue
Block a user