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

View file

@ -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;
}