From: Andrew Dolgov Date: Thu, 16 Aug 2012 14:33:08 +0000 (+0400) Subject: remove api-specific _autoload X-Git-Tag: 1.6.0~134 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f1d65e508982dfc6fa3564b450cea86bfe4627b8;p=tt-rss.git remove api-specific _autoload --- diff --git a/api/index.php b/api/index.php index fd59f4be..770e0978 100644 --- a/api/index.php +++ b/api/index.php @@ -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")) {