mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-30 18:06:16 +01:00
Fixed login/logout message translations.
This commit is contained in:
@@ -269,9 +269,10 @@ class AdminController
|
||||
*/
|
||||
protected function taskLogout()
|
||||
{
|
||||
$language = $this->grav['user']->authenticated ? $this->grav['user']->language : ($this->grav['language']->getLanguage() ?: 'en');
|
||||
|
||||
$this->admin->session()->invalidate()->start();
|
||||
$this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.LOGGED_OUT'), 'info');
|
||||
$this->setRedirect('/logout');
|
||||
$this->setRedirect('/logout/lang:'.$language);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user