fixed class_exists() in Loader which should not triger autoloading (closes #3)
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Sun, 11 Oct 2009 07:31:18 +0000 (07:31 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Sun, 11 Oct 2009 07:31:18 +0000 (07:31 +0000)
git-svn-id: http://svn.twig-project.org/trunk@19 93ef8e89-cb99-4229-a87c-7fa0fa45744b

lib/Twig/Loader.php

index 8bf8804..5b30b4a 100644 (file)
@@ -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;
     }