From: Fabien Potencier Date: Tue, 30 Aug 2011 20:58:17 +0000 (+0200) Subject: fixed resolveTemplate() method (we only catch loader exceptions) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=6473f22fa63228088b29bbb9e5667c88825aca20;p=konrad%2Ftwig.git fixed resolveTemplate() method (we only catch loader exceptions) --- 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) { } }