From: Martin HasoĊˆ Date: Thu, 23 Jan 2014 11:07:16 +0000 (+0100) Subject: Simplified Twig_Autoloader X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=94fff307d76751901a188b3778c06113dadce762;p=web%2Fkonrad%2Ftwig.git Simplified Twig_Autoloader --- diff --git a/lib/Twig/Autoloader.php b/lib/Twig/Autoloader.php index 7007d31..0ae1127 100644 --- a/lib/Twig/Autoloader.php +++ b/lib/Twig/Autoloader.php @@ -24,9 +24,9 @@ class Twig_Autoloader public static function register($prepend = false) { if (version_compare(phpversion(), '5.3.0', '>=')) { - spl_autoload_register(array(new self, 'autoload'), true, $prepend); + spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend); } else { - spl_autoload_register(array(new self, 'autoload')); + spl_autoload_register(array(__CLASS__, 'autoload')); } }