Handle the special case of message post-login

This commit is contained in:
Flavio Copes
2015-08-17 18:49:06 +02:00
parent 93605a33c0
commit ca9139b5c7

View File

@@ -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);