From 054e0c4ba0e9bc58c27b563a12e6859ca67f9c2e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 14 Sep 2015 11:15:51 +0200 Subject: php-phpunit-PHPUnit: 4.8.7 --- Autoload.php.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Autoload.php.in') diff --git a/Autoload.php.in b/Autoload.php.in index c3698b7..1e87d2e 100644 --- a/Autoload.php.in +++ b/Autoload.php.in @@ -36,20 +36,17 @@ spl_autoload_register( function ($class) { static $classes = NULL; - static $path = NULL; if ($classes === NULL) { $classes = array( ___CLASSLIST___ ); - - $path = dirname(__FILE__); } $cn = strtolower($class); if (isset($classes[$cn])) { - require $path . $classes[$cn]; + require __DIR__ . $classes[$cn]; } } ); -- cgit