From: fabien Date: Thu, 15 Oct 2009 06:30:49 +0000 (+0000) Subject: made Twig_Autoloader::autoload() a static method X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=7ce2c3dba1ec0d24ce5933e718f21a25e0c88d54;p=konrad%2Ftwig.git made Twig_Autoloader::autoload() a static method git-svn-id: http://svn.twig-project.org/trunk@57 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- 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')) {