Fix user's false full name in Admin

This commit is contained in:
Klocus
2018-04-11 11:41:12 +02:00
parent c2fb3b98ea
commit 29f96c0c8f

View File

@@ -57,9 +57,9 @@ class Admin extends Main
*/
public function drawTheme($file)
{
$username = $this->getUserInfo('fullname');
$username = $this->getUserInfo('fullname', null, true);
$this->assign['username'] = !empty($username) ? $username : $this->getUserInfo('username', null, true);
$this->assign['username'] = !empty($username) ? $username : $this->getUserInfo('username');
$this->assign['notify'] = $this->getNotify();
$this->assign['path'] = url();
$this->assign['version'] = $this->settings->get('settings.version');