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:
Fabien Potencier
2019-02-04 17:41:01 +01:00
+1 -1
View File
@@ -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)) {