hotfix
This commit is contained in:
parent
9c95620384
commit
7ba324c935
2 changed files with 3 additions and 5 deletions
|
|
@ -78,8 +78,8 @@ class Misc {
|
|||
}
|
||||
|
||||
// Legacy mode
|
||||
$legacy = self::env('FORCE_LEGACY', false); // Instance level
|
||||
$_COOKIE['enable_legacy'] ?? $legacy = true; // User level
|
||||
$legacy = self::env('FORCE_LEGACY', false); // Instance level (has priority over user)
|
||||
|
||||
return $legacy === false ? new \TikScraper\Api($options, $cacheEngine) : new \TikScraper\Legacy($options, $cacheEngine);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue