1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:25:56 +00:00

remove db_connect, db_close; CLI fixes

This commit is contained in:
Andrew Dolgov
2013-04-17 17:00:24 +04:00
parent 6322ac79a0
commit eefaa2df38
10 changed files with 4 additions and 36 deletions

View 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");
@@ -154,6 +152,4 @@
header("Content-Type: text/json");
print json_encode(array("error" => array("code" => 7)));
// We close the connection to database.
db_close();
?>