1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +00:00

move dbupdater to db/updater; move base SCHEMA_VERSION constant inside db/updater class

This commit is contained in:
Andrew Dolgov
2021-03-02 15:03:01 +03:00
parent 86b12fc06c
commit d6629ed188
10 changed files with 31 additions and 30 deletions

View File

@@ -89,7 +89,7 @@ class UserHelper {
if (!$pluginhost) $pluginhost = PluginHost::getInstance();
if ($owner_uid && SCHEMA_VERSION >= 100 && empty($_SESSION["safe_mode"])) {
if ($owner_uid && Config::get_schema_version() >= 100 && empty($_SESSION["safe_mode"])) {
$plugins = get_pref(Prefs::_ENABLED_PLUGINS, $owner_uid);
$pluginhost->load((string)$plugins, PluginHost::KIND_USER, $owner_uid);