From: fabien Date: Sun, 11 Oct 2009 07:31:18 +0000 (+0000) Subject: fixed class_exists() in Loader which should not triger autoloading (closes #3) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c5bd7122dde8def69ddf83056b19c36b53024392;p=konrad%2Ftwig.git fixed class_exists() in Loader which should not triger autoloading (closes #3) git-svn-id: http://svn.twig-project.org/trunk@19 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- diff --git a/lib/Twig/Loader.php b/lib/Twig/Loader.php index 8bf8804..5b30b4a 100644 --- a/lib/Twig/Loader.php +++ b/lib/Twig/Loader.php @@ -60,7 +60,7 @@ abstract class Twig_Loader implements Twig_LoaderInterface { $cls = $this->getTemplateName($name); - if (class_exists($cls)) + if (class_exists($cls, false)) { return $cls; }