From 420a4e3566739064b63133a8efcc96d16761cd71 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Thu, 9 Dec 2021 21:18:10 +0200 Subject: [PATCH] Add comment into TwigEnvironment --- system/src/Grav/Common/Twig/TwigEnvironment.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/src/Grav/Common/Twig/TwigEnvironment.php b/system/src/Grav/Common/Twig/TwigEnvironment.php index 357e94bce..6709ae334 100644 --- a/system/src/Grav/Common/Twig/TwigEnvironment.php +++ b/system/src/Grav/Common/Twig/TwigEnvironment.php @@ -40,6 +40,7 @@ class TwigEnvironment extends Environment return $name; } + // Avoid throwing an exception as it is really slow to handle. if (1 !== $count && !$this->getLoader()->exists($name)) { continue; }