From ca9139b5c7264e169105744d7b275243b14ccbd0 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Mon, 17 Aug 2015 18:49:06 +0200 Subject: [PATCH] Handle the special case of message post-login --- classes/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/admin.php b/classes/admin.php index e22be6b7..2416193b 100644 --- a/classes/admin.php +++ b/classes/admin.php @@ -179,7 +179,7 @@ class Admin /** @var Grav $grav */ $grav = $this->grav; - $this->setMessage($this->translate('PLUGIN_ADMIN.LOGIN_LOGGED_IN'), 'info'); + $this->setMessage($this->grav['language']->translate('PLUGIN_ADMIN.LOGIN_LOGGED_IN', [$this->user->language]), 'info'); $redirect_route = $this->uri->route(); $grav->redirect($redirect_route);