Skip to content

Commit

Permalink
Fix language config variable not working
Browse files Browse the repository at this point in the history
  • Loading branch information
davidovski committed Aug 25, 2023
1 parent a87b780 commit 9870790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/search_engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function load_opts() {

$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) {
Expand Down

0 comments on commit 9870790

Please sign in to comment.