fix __autoload to work with mobile/

This commit is contained in:
Andrew Dolgov 2012-08-16 15:55:30 +04:00
parent 143d1b31a8
commit 238d594e6b
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
define('SCHEMA_VERSION', 94); define('SCHEMA_VERSION', 94);
function __autoload($class) { function __autoload($class) {
$file = "classes/".strtolower(basename($class)).".php"; $file = dirname(__FILE__)."/../classes/".strtolower(basename($class)).".php";
if (file_exists($file)) { if (file_exists($file)) {
require $file; require $file;
} }