mirror of
https://github.com/dani/vroom.git
synced 2024-06-26 17:43:29 +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 {
|
||||
my $self = shift;
|
||||
# Switch to the desired language
|
||||
if ($self->session('language')){
|
||||
if ($self->session('language') && $self->session('language') ne $self->languages){
|
||||
$self->languages($self->session('language'));
|
||||
}
|
||||
# Stash the configuration hashref
|
||||
|
|
Loading…
Reference in New Issue
Block a user