summaryrefslogtreecommitdiffstats
path: root/Autoload.php.in
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-09-14 11:15:51 +0200
committerRemi Collet <fedora@famillecollet.com>2015-09-14 11:15:51 +0200
commit054e0c4ba0e9bc58c27b563a12e6859ca67f9c2e (patch)
tree9771ddd6bb881b45b9591eba1cf4c5ba3fa8e9f1 /Autoload.php.in
parentf5ab037aa0ebbea11bff8f02a7d17e7f4fa2a9fa (diff)
php-phpunit-PHPUnit: 4.8.7
Diffstat (limited to 'Autoload.php.in')
-rw-r--r--Autoload.php.in5
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];
}
}
);