mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
feat: add wikipedia.php language cookie config
This commit is contained in:
parent
4194f9ae57
commit
659c8116c9
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@
|
|||
if (!array_key_exists("missing", $first_page))
|
||||
{
|
||||
$description = substr($first_page["extract"], 0, 250) . "...";
|
||||
|
||||
$wikipedia_language = $config->wikipedia_language;
|
||||
|
||||
$wikipedia_language = isset($_COOKIE["wikipedia_language"]) ? trim(htmlspecialchars($_COOKIE["wikipedia_language"])) : $config->wikipedia_language;
|
||||
|
||||
$source = check_for_privacy_frontend("https://$wikipedia_language.wikipedia.org/wiki/$query");
|
||||
$response = array(
|
||||
|
|
Loading…
Add table
Reference in a new issue