mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 05:11:28 +00:00
probable fix for schema 63 updating problem
This commit is contained in:
@@ -1978,7 +1978,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_user_theme_path($link) {
|
function get_user_theme_path($link) {
|
||||||
$theme_id = get_pref($link, "_THEME_ID");
|
|
||||||
|
if (get_schema_version($link) >= 63) {
|
||||||
|
$theme_id = get_pref($link, "_THEME_ID");
|
||||||
|
} else {
|
||||||
|
$theme_id = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$result = db_query($link, "SELECT theme_path
|
$result = db_query($link, "SELECT theme_path
|
||||||
FROM ttrss_themes WHERE id = '$theme_id'");
|
FROM ttrss_themes WHERE id = '$theme_id'");
|
||||||
@@ -2040,6 +2045,11 @@
|
|||||||
return "even";
|
return "even";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_schema_version($link) {
|
||||||
|
$result = db_query($link, "SELECT schema_version FROM ttrss_version");
|
||||||
|
return (int) db_fetch_result($result, 0, "schema_version");
|
||||||
|
}
|
||||||
|
|
||||||
function sanity_check($link) {
|
function sanity_check($link) {
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user