LibreY

- privacy respecting meta search engine
git clone git://git.acid.vegas/LibreY.git
Log | Files | Refs | Archive | README | LICENSE

commit 98707900bfd6119a9a39183cda89de55939c44ec
parent a87b78095fb17678141b1ad56cc0b1110b1c4ae9
Author: davidovski <david@davidovski.xyz>
Date: Sat, 26 Aug 2023 00:41:25 +0100

Fix language config variable not working

Diffstat:
Mmisc/search_engine.php | 2+-

1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/search_engine.php b/misc/search_engine.php
@@ -47,7 +47,7 @@
 
         $opts->disable_frontends = (int) ($_REQUEST["nf"] ?? 0) == 1 || isset($_COOKIE["disable_frontends"]);
 
-        $opts->language = $_REQUEST["lang"] ?? trim(htmlspecialchars($_COOKIE["language"] ?? ""));
+        $opts->language = $_REQUEST["lang"] ?? trim(htmlspecialchars($_COOKIE["language"] ?? $opts->language));
 
         $opts->do_fallback = (int) ($_REQUEST["nfb"] ?? 0) == 0;
         if (!$opts->instance_fallback) {