mirror of
https://github.com/openvk/openvk
synced 2024-11-14 02:59:12 +03:00
Fix quirk functionality
This commit is contained in:
parent
21c3c498c8
commit
86b5dab940
2 changed files with 4 additions and 2 deletions
|
@ -48,7 +48,9 @@ function _ovk_check_environment(): void
|
||||||
|
|
||||||
function ovkGetQuirk(string $quirk): int
|
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;
|
return isset($v = $quirks[$quirk]) ? (int) $v : 0;
|
||||||
}
|
}
|
||||||
|
|
2
locales
2
locales
|
@ -1 +1 @@
|
||||||
Subproject commit e98c42410b89cd011c44a387b1a401e6634d0ac5
|
Subproject commit 0c50ecdd77ac6643c7e5a29dcfff8ad84706ec3f
|
Loading…
Reference in a new issue