From: Andrew Dolgov Date: Thu, 16 Aug 2012 11:55:30 +0000 (+0400) Subject: fix __autoload to work with mobile/ X-Git-Tag: 1.6.0~139 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=238d594e6bba0e7ffad950aae0b73d5c67934b42;p=tt-rss.git fix __autoload to work with mobile/ --- diff --git a/include/functions.php b/include/functions.php index f2243cf9..761cfee8 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; }