From edcbcc18ad215083edf6826b11aa2c0fc5387032 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 4 Feb 2019 13:03:18 +0100 Subject: [PATCH] remove duplicated directory separator The $rootPath property is already initialized with a trailing directory separator in the class constructor. --- lib/Twig/Loader/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Twig/Loader/Filesystem.php b/lib/Twig/Loader/Filesystem.php index 1263dc4ff..2a241a9c1 100644 --- a/lib/Twig/Loader/Filesystem.php +++ b/lib/Twig/Loader/Filesystem.php @@ -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)) {