summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-08-16 18:33:08 +0400
committerAndrew Dolgov <[email protected]>2012-08-16 18:33:08 +0400
commitf1d65e508982dfc6fa3564b450cea86bfe4627b8 (patch)
treeebd81fbc1e9898d472d04af14544cf6c63478694 /api
parentdc0374df2ba76876765fac373e0de69e642a98dc (diff)
remove api-specific _autoload
Diffstat (limited to 'api')
-rw-r--r--api/index.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/api/index.php b/api/index.php
index fd59f4bee..770e09780 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")) {