Fix quirk functionality

This commit is contained in:
Celestora 2021-10-09 22:27:57 +03:00
parent 21c3c498c8
commit 86b5dab940
2 changed files with 4 additions and 2 deletions

View file

@ -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;
}

@ -1 +1 @@
Subproject commit e98c42410b89cd011c44a387b1a401e6634d0ac5
Subproject commit 0c50ecdd77ac6643c7e5a29dcfff8ad84706ec3f