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