summaryrefslogtreecommitdiff
path: root/lib/JWebmail.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/JWebmail.pm')
-rw-r--r--lib/JWebmail.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/JWebmail.pm b/lib/JWebmail.pm
index 7275891..dc68bd2 100644
--- a/lib/JWebmail.pm
+++ b/lib/JWebmail.pm
@@ -1,4 +1,4 @@
-package JWebmail v1.0.0;
+package JWebmail v1.1.0;
use Mojo::Base 'Mojolicious';
@@ -20,7 +20,7 @@ sub startup {
$self->plugin('INIConfig');
$self->plugin('ServerSideSessionData');
$self->plugin('Helper');
- $self->plugin('I18N', $self->config('i18n') // {});
+ my $i18n_route = $self->plugin('I18N2', $self->config('i18n') // {});
$self->secrets( [$self->config('secret')] ) if $self->config('secret');
delete $self->config->{secret};
@@ -42,7 +42,7 @@ sub startup {
# add helper and stash values
$self->defaults(version => __PACKAGE__->VERSION);
- $self->route();
+ $self->route($i18n_route);
}
@@ -105,4 +105,4 @@ See the CREDITS file for project contributors.
This module is licensed under the terms of the GPLv3 or any later version at your option.
Please take a look at the provided LICENSE file shipped with this module.
-=cut \ No newline at end of file
+=cut