mirror of
https://github.com/dani/vroom.git
synced 2024-06-29 15:03:41 +02:00
Only switch lang if required
This commit is contained in:
parent
091cea369e
commit
f5d876455d
2
vroom.pl
2
vroom.pl
|
@ -2381,7 +2381,7 @@ app->sessions->cookie_name('vroom');
|
||||||
app->hook(before_dispatch => sub {
|
app->hook(before_dispatch => sub {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
# Switch to the desired language
|
# Switch to the desired language
|
||||||
if ($self->session('language')){
|
if ($self->session('language') && $self->session('language') ne $self->languages){
|
||||||
$self->languages($self->session('language'));
|
$self->languages($self->session('language'));
|
||||||
}
|
}
|
||||||
# Stash the configuration hashref
|
# Stash the configuration hashref
|
||||||
|
|
Loading…
Reference in New Issue
Block a user