From 037b5be972bd64900a6a287ee56661782090ca00 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 2 Jan 2013 17:15:41 +0100 Subject: [PATCH] Revert "merged branch za-creature/patch-1 (PR #943)" This reverts commit dc565f781fc885aafaceffe130121526774bc45e, reversing changes made to 8447ca17185c082831c4d46e416f39bdeba937d9. --- 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 df552dd..9bcec43 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 boolean $prepend (optional) Whether to add the autoloader to - * the start of the stack. Defaults to false so the autoloader will be - * appended to the stack. */ - public static function register($prepend = false) + public static function register() { ini_set('unserialize_callback_func', 'spl_autoload_call'); - spl_autoload_register(array(new self, 'autoload'), true, $prepend); + spl_autoload_register(array(new self, 'autoload')); } /** -- 1.7.2.5