From 86b5dab940053792f138b60f05ba5ec362c05716 Mon Sep 17 00:00:00 2001 From: Celestora Date: Sat, 9 Oct 2021 22:27:57 +0300 Subject: [PATCH] Fix quirk functionality --- bootstrap.php | 4 +++- locales | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 7161fd9b..898f659f 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -48,7 +48,9 @@ function _ovk_check_environment(): void function ovkGetQuirk(string $quirk): int { - static $quirks = chandler_parse_yaml(__DIR__ . "/quirks.yml"); + static $quirks = NULL; + if(!$quirks) + $quirks = chandler_parse_yaml(__DIR__ . "/quirks.yml"); return isset($v = $quirks[$quirk]) ? (int) $v : 0; } diff --git a/locales b/locales index e98c4241..0c50ecdd 160000 --- a/locales +++ b/locales @@ -1 +1 @@ -Subproject commit e98c42410b89cd011c44a387b1a401e6634d0ac5 +Subproject commit 0c50ecdd77ac6643c7e5a29dcfff8ad84706ec3f