summaryrefslogtreecommitdiffstats
path: root/Autoload.php.in
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-09-14 11:10:49 +0200
committerRemi Collet <fedora@famillecollet.com>2015-09-14 11:10:49 +0200
commit531341b0ac92f22fcae1e7b8fff67e7f0be9c91f (patch)
tree8ef8547c97185e422449e001abc72ba29004bb0e /Autoload.php.in
parent1387d72e2d353957a2a87699e8bc1c571a946f81 (diff)
php-phpunit-PHP-CodeCoverage: 2.2.3
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 2f422fb..303cc0f 100644
--- a/Autoload.php.in
+++ b/Autoload.php.in
@@ -11,20 +11,17 @@ spl_autoload_register(
function ($class)
{
static $classes = NULL;
- static $path = NULL;
if ($classes === NULL) {
$classes = array(
___CLASSLIST___
);
-
- $path = __DIR__;
}
$cn = strtolower($class);
if (isset($classes[$cn])) {
- require $path . $classes[$cn];
+ require __DIR__ . $classes[$cn];
}
}
);