update usage of deprecated function

This commit is contained in:
Andrew Dolgov
2024-11-23 15:59:53 +03:00
parent 648024eb2e
commit c2d0c5a5c9

View File

@@ -143,7 +143,7 @@
}
}
if (!empty($_SESSION["uid"]) && get_schema_version() >= 120) {
if (!empty($_SESSION["uid"]) && Config::get_schema_version() >= 120) {
$pref_locale = Prefs::get(Prefs::USER_LANGUAGE, $_SESSION["uid"], $_SESSION["profile"] ?? null);
if (!empty($pref_locale) && $pref_locale != 'auto') {