From 7ce2c3dba1ec0d24ce5933e718f21a25e0c88d54 Mon Sep 17 00:00:00 2001 From: fabien Date: Thu, 15 Oct 2009 06:30:49 +0000 Subject: [PATCH] made Twig_Autoloader::autoload() a static method git-svn-id: http://svn.twig-project.org/trunk@57 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- CHANGELOG | 1 + lib/Twig/Autoloader.php | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 2142cc2..3bb1721 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ * 0.9.2-DEV + * made Twig_Autoloader::autoload() a static method * avoid writing template file if an error occurs * added $ escaping when outputting raw strings * enhanced some error messages to ease debugging diff --git a/lib/Twig/Autoloader.php b/lib/Twig/Autoloader.php index bb30b6b..a3b30ec 100644 --- a/lib/Twig/Autoloader.php +++ b/lib/Twig/Autoloader.php @@ -34,7 +34,7 @@ class Twig_Autoloader * * @return boolean Returns true if the class has been loaded */ - public function autoload($class) + static public function autoload($class) { if (0 !== strpos($class, 'Twig')) { -- 1.7.2.5