From 874b8cbf002e9d8bf0ff39671e1501165016320a Mon Sep 17 00:00:00 2001 From: Michael Save Date: Mon, 9 Apr 2012 20:52:26 +1000 Subject: inc/contrib -> inc/lib --- inc/contrib/Twig/Autoloader.php | 46 ----------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 inc/contrib/Twig/Autoloader.php (limited to 'inc/contrib/Twig/Autoloader.php') diff --git a/inc/contrib/Twig/Autoloader.php b/inc/contrib/Twig/Autoloader.php deleted file mode 100644 index a93b8caf..00000000 --- a/inc/contrib/Twig/Autoloader.php +++ /dev/null @@ -1,46 +0,0 @@ - - */ -class Twig_Autoloader -{ - /** - * Registers Twig_Autoloader as an SPL autoloader. - */ - static public function register() - { - ini_set('unserialize_callback_func', 'spl_autoload_call'); - spl_autoload_register(array(new self, 'autoload')); - } - - /** - * Handles autoloading of classes. - * - * @param string $class A class name. - * - * @return boolean Returns true if the class has been loaded - */ - static public function autoload($class) - { - if (0 !== strpos($class, 'Twig')) { - return; - } - - if (is_file($file = dirname(__FILE__).'/../'.str_replace(array('_', "\0"), array('/', ''), $class).'.php')) { - require $file; - } - } -} -- cgit v1.3