diff --git a/include/functions.php b/include/functions.php index f2243cf93..761cfee8d 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3,7 +3,7 @@ define('SCHEMA_VERSION', 94); function __autoload($class) { - $file = "classes/".strtolower(basename($class)).".php"; + $file = dirname(__FILE__)."/../classes/".strtolower(basename($class)).".php"; if (file_exists($file)) { require $file; }