From 238d594e6bba0e7ffad950aae0b73d5c67934b42 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 16 Aug 2012 15:55:30 +0400 Subject: fix __autoload to work with mobile/ --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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; } -- cgit v1.2.3