]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix __autoload to work with mobile/
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 Aug 2012 11:55:30 +0000 (15:55 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 Aug 2012 11:55:30 +0000 (15:55 +0400)
include/functions.php

index f2243cf93772de3d5289cfcd33189e2136c6084b..761cfee8dc6b095148e50948dce33b9a8ecb113d 100644 (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;
                }