summaryrefslogtreecommitdiffstats
path: root/Autoload.php.in
diff options
context:
space:
mode:
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];
}
}
);