1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 07:25:54 +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

@@ -178,8 +178,6 @@
$schema_version = get_schema_version();
db_close();
if ($schema_version != SCHEMA_VERSION) {
die("Schema version is wrong, please upgrade the database.\n");
}
@@ -199,7 +197,6 @@
/* Check if schema version changed */
init_plugins();
$test_schema_version = get_schema_version();
if ($test_schema_version != $schema_version) {
@@ -289,8 +286,6 @@
}
}
db_close();
// We are in a fork.
// We wait a little before exiting to avoid to be faster than our parent process.
sleep(1);