fix __autoload to work with mobile/
This commit is contained in:
parent
143d1b31a8
commit
238d594e6b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue