]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: remove global config parameter lock
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 16 Dec 2009 12:09:11 +0000 (15:09 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 16 Dec 2009 12:09:11 +0000 (15:09 +0300)
api/index.php

index fd22f4b8bddf47a40c59abf0c1c9811daf43e86f..193fcb3ef8a01de2cab1e7e726d25c1e46ad6ec2 100644 (file)
        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