mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-01 13:49:15 +00:00
move dbupdater to db/updater; move base SCHEMA_VERSION constant inside db/updater class
This commit is contained in:
@@ -181,7 +181,7 @@ class RPC extends Handler_Protected {
|
||||
$client_scheme = parse_url($client_location, PHP_URL_SCHEME);
|
||||
$server_scheme = parse_url(Config::get_self_url(), PHP_URL_SCHEME);
|
||||
|
||||
if (get_schema_version() != SCHEMA_VERSION) {
|
||||
if (Db_Updater::is_update_required()) {
|
||||
$error = Errors::E_SCHEMA_MISMATCH;
|
||||
} else if ($client_scheme != $server_scheme) {
|
||||
$error = Errors::E_URL_SCHEME_MISMATCH;
|
||||
|
||||
Reference in New Issue
Block a user