diff options
| author | ilotterytea <iltsu@alright.party> | 2025-10-26 18:07:48 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-10-26 18:07:48 +0500 |
| commit | 0b76e5d6a8d33e64e67438c10cd3d12e622d042b (patch) | |
| tree | 40e208d358eb9201341d09ef397e77a1d44aa48c /lib | |
| parent | a8a338599b3d891ee72a48a5f01f25c1ded31f21 (diff) | |
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/config.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/config.php b/lib/config.php index bdc399b..e57714e 100644 --- a/lib/config.php +++ b/lib/config.php @@ -13,4 +13,7 @@ define('INSTANCE_NAME', $c['instance']['name'] ?? $_SERVER['HTTP_HOST']); define('SOUND_DIRECTORY', $c['sound']['directory'] ?? "{$_SERVER['DOCUMENT_ROOT']}/static/userdata/sounds"); define('SOUND_DIRECTORY_PREFIX', $c['sound']['directory_prefix'] ?? "/static/userdata/sounds"); +define('EMOTE_FETCH_BETTERTTV', boolval($c['emote']['fetch_betterttv'] ?? '1') ?? true); +define('EMOTE_FETCH_7TV', boolval($c['emote']['fetch_7tv'] ?? '1') ?? true); + define('IS_JSON_REQUEST', isset($_SERVER['HTTP_ACCEPT']) && str_contains($_SERVER['HTTP_ACCEPT'], 'application/json'));
\ No newline at end of file |
