From 6473f22fa63228088b29bbb9e5667c88825aca20 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 30 Aug 2011 22:58:17 +0200 Subject: [PATCH] fixed resolveTemplate() method (we only catch loader exceptions) --- lib/Twig/Environment.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 5aa52c8..de5a7bf 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -329,7 +329,7 @@ class Twig_Environment try { return $this->loadTemplate($name); - } catch (Exception $e) { + } catch (Twig_Error_Loader $e) { } } -- 1.7.2.5