mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
captive: Show access page in browser language
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Tested-by: Daniel Weismüller <daniel.weismüller@ipfire.org>
This commit is contained in:
@@ -32,6 +32,10 @@ use HTML::Template;
|
||||
require '/var/ipfire/general-functions.pl';
|
||||
require "${General::swroot}/lang.pl";
|
||||
|
||||
# Load the most appropriate language from the browser configuration
|
||||
my @langs = &Lang::DetectBrowserLanguages();
|
||||
&Lang::reload(@langs);
|
||||
|
||||
my $coupons = "${General::swroot}/captive/coupons";
|
||||
my %couponhash = ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user