1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-08 19:59:14 +00:00

simplify default global config, expand sanity_check messages

This commit is contained in:
Andrew Dolgov
2011-12-13 19:20:26 +04:00
parent a3b5394aaf
commit 09e8bdfd18
12 changed files with 283 additions and 311 deletions

View File

@@ -22,7 +22,7 @@ function db_connect($host, $user, $pass, $db) {
$link = pg_connect($string);
if (!$link) {
die("Connection failed: " . pg_last_error($link));
die("Unable to connect to database (as $user to $host, database $db):" . pg_last_error());
}
return $link;
@@ -36,7 +36,7 @@ function db_connect($host, $user, $pass, $db) {
}
return $link;
} else {
die("Connection failed: " . mysql_error($link));
die("Unable to connect to database (as $user to $host, database $db): " . mysql_error());
}
}
}