]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
remove db_connect, db_close; CLI fixes
[tt-rss.git] / backend.php
index b06cca2d24e0dbe6f185ecfc23bd01c0df1b4eb7..d3d8622d97025c6440cfbf110895d2e300988007 100644 (file)
@@ -48,8 +48,6 @@
 
        $script_started = microtime(true);
 
-       $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
-
        if (!init_plugins()) return;
 
        header("Content-Type: text/json; charset=utf-8");
        header("Content-Type: text/json");
        print json_encode(array("error" => array("code" => 7)));
 
-       // We close the connection to database.
-       db_close();
 ?>