diff options
author | Andrew Dolgov <[email protected]> | 2012-08-16 15:55:30 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-16 15:55:30 +0400 |
commit | 238d594e6bba0e7ffad950aae0b73d5c67934b42 (patch) | |
tree | 147c5ef51d4c53e0bcea423683ba9a5576c04b92 /include | |
parent | 143d1b31a87c3c6de34dadb2215132eb8e122066 (diff) |
fix __autoload to work with mobile/
Diffstat (limited to 'include')
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |