fix __autoload to work with mobile/
This commit is contained in:
parent
143d1b31a8
commit
238d594e6b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue