From 94fff307d76751901a188b3778c06113dadce762 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Haso=C5=88?= Date: Thu, 23 Jan 2014 12:07:16 +0100 Subject: [PATCH] Simplified Twig_Autoloader --- lib/Twig/Autoloader.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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')); } } -- 1.7.2.5