mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-26 18:41:29 +00:00
new config option: MYSQL_CHARSET
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
pg_query($link, "set client_encoding = 'utf-8'");
|
||||
pg_set_client_encoding("UNICODE");
|
||||
} else {
|
||||
// db_query($link, "SET NAMES utf8");
|
||||
// db_query($link, "SET CHARACTER SET utf8");
|
||||
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
|
||||
db_query($link, "SET NAMES " . MYSQL_CHARSET);
|
||||
db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
|
||||
}
|
||||
}
|
||||
|
||||
login_sequence($link);
|
||||
@@ -106,7 +108,7 @@ function confirmOP() {
|
||||
}
|
||||
|
||||
if (!$op) {
|
||||
print_warning("Please backup your database before proceeding.");
|
||||
print_warning(__("Please backup your database before proceeding."));
|
||||
|
||||
print "<p>" . T_sprintf("Your Tiny Tiny RSS database needs update to the latest version (<b>%d</b> to <b>%d</b>).", $version, $latest_version) . "</p>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user