From a20a46ab4adf0bfe7422cf3001651d894d8c72f7 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 1 May 2013 07:10:30 +0200 Subject: [PATCH] simplified code --- lib/Twig/Autoloader.php | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/Twig/Autoloader.php b/lib/Twig/Autoloader.php index 9b437fa..b09a2cc 100644 --- a/lib/Twig/Autoloader.php +++ b/lib/Twig/Autoloader.php @@ -19,15 +19,11 @@ class Twig_Autoloader /** * Registers Twig_Autoloader as an SPL autoloader. * - * @param Bolean $prepend Whether to prepend the autoloader or not. + * @param Boolean $prepend Whether to prepend the autoloader or not. */ public static function register($prepend = false) { - if ($prepend && version_compare(phpversion(), '5.3.0RC1', '>=')) { - spl_autoload_register(array(new self, 'autoload'), true, $prepend); - } else { - spl_autoload_register(array(new self, 'autoload'), true); - } + spl_autoload_register(array(new self, 'autoload'), true, $prepend); } /** -- 1.7.2.5