summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-12-16 15:09:11 +0300
committerAndrew Dolgov <[email protected]>2009-12-16 15:09:11 +0300
commitf11f79d792a70196c44dadeb4247ae5b4164c491 (patch)
tree0fd29171480aef39ffe5ee816d815aa4717fcb02 /api
parent4d557a13c27b113e64bf64087a8bfa63cd3ad234 (diff)
api: remove global config parameter lock
Diffstat (limited to 'api')
-rw-r--r--api/index.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/api/index.php b/api/index.php
index fd22f4b8b..193fcb3ef 100644
--- a/api/index.php
+++ b/api/index.php
@@ -13,11 +13,6 @@
require_once "../db-prefs.php";
require_once "../functions.php";
- if (!defined('_JSON_API_ENABLED')) {
- print json_encode(array("error" => "API_DISABLED"));
- return;
- }
-
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
$session_expire = SESSION_EXPIRE_TIME; //seconds