Use updated config helper from framework

This commit is contained in:
Daniel Brendel
2024-02-20 12:52:03 +01:00
parent f0304717bb
commit f1713fb8fc
4 changed files with 3 additions and 18 deletions

View File

@@ -40,7 +40,7 @@ class AdminController extends BaseController {
try {
if ($check_version) {
$new_version = VersionModule::getVersion();
$current_version = safe_config('version', '1');
$current_version = config('version') ?? '1';
}
} catch (\Exception $e) {
addLog(ASATRU_LOG_ERROR, $e->getMessage());