diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-09-14 11:15:51 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-09-14 11:15:51 +0200 |
commit | 054e0c4ba0e9bc58c27b563a12e6859ca67f9c2e (patch) | |
tree | 9771ddd6bb881b45b9591eba1cf4c5ba3fa8e9f1 /Autoload.php.in | |
parent | f5ab037aa0ebbea11bff8f02a7d17e7f4fa2a9fa (diff) |
php-phpunit-PHPUnit: 4.8.7
Diffstat (limited to 'Autoload.php.in')
-rw-r--r-- | Autoload.php.in | 5 |
1 files changed, 1 insertions, 4 deletions
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]; } } ); |