From: Fabien Potencier Date: Wed, 1 May 2013 05:10:30 +0000 (+0200) Subject: simplified code X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=a20a46ab4adf0bfe7422cf3001651d894d8c72f7;p=web%2Fkonrad%2Ftwig.git simplified code --- 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); } /**