mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Add quirk configuration
This commit is contained in:
parent
d2b572818f
commit
21c3c498c8
2 changed files with 7 additions and 0 deletions
|
@ -46,6 +46,13 @@ function _ovk_check_environment(): void
|
|||
}
|
||||
}
|
||||
|
||||
function ovkGetQuirk(string $quirk): int
|
||||
{
|
||||
static $quirks = chandler_parse_yaml(__DIR__ . "/quirks.yml");
|
||||
|
||||
return isset($v = $quirks[$quirk]) ? (int) $v : 0;
|
||||
}
|
||||
|
||||
function ovk_proc_strtr(string $string, int $length = 0): string
|
||||
{
|
||||
$newString = iconv_substr($string, 0, $length);
|
||||
|
|
0
quirks.yml
Normal file
0
quirks.yml
Normal file
Loading…
Reference in a new issue