]> git.wh0rd.org - tt-rss.git/commitdiff
remove api-specific _autoload
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 Aug 2012 14:33:08 +0000 (18:33 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 Aug 2012 14:33:08 +0000 (18:33 +0400)
api/index.php

index fd59f4bee94ede410e32e8c51de4da953739da99..770e09780f7067829b0022a1523b915fd000fae9 100644 (file)
@@ -8,19 +8,12 @@
                dirname(dirname(__FILE__)) . PATH_SEPARATOR .
                dirname(dirname(__FILE__)) . "/include" );
 
-       function __autoload($class) {
-               $file = "classes/".strtolower(basename($class)).".php";
-               if (file_exists($file)) {
-                       require $file;
-               }
-       }
+       chdir("..");
 
        require_once "db.php";
        require_once "db-prefs.php";
        require_once "functions.php";
 
-       chdir("..");
-
        if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT &&
                        function_exists("ob_gzhandler")) {