Only switch lang if required

master
Daniel Berteaud 9 years ago
parent 091cea369e
commit f5d876455d
  1. 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…
Cancel
Save