|
@@ -215,14 +215,14 @@ class User extends DataModel
|
|
*/
|
|
*/
|
|
public function title(): string
|
|
public function title(): string
|
|
{
|
|
{
|
|
- if ($this->isBanByName) {
|
|
|
|
|
|
+ if ($this->isGuest) {
|
|
|
|
+ return __('Guest');
|
|
|
|
+ } elseif ($this->isBanByName) {
|
|
return __('Banned');
|
|
return __('Banned');
|
|
} elseif ('' != $this->title) {
|
|
} elseif ('' != $this->title) {
|
|
return $this->censorTitle;
|
|
return $this->censorTitle;
|
|
} elseif ('' != $this->g_user_title) {
|
|
} elseif ('' != $this->g_user_title) {
|
|
return $this->censorG_user_title;
|
|
return $this->censorG_user_title;
|
|
- } elseif ($this->isGuest) {
|
|
|
|
- return __('Guest');
|
|
|
|
} elseif ($this->isUnverified) {
|
|
} elseif ($this->isUnverified) {
|
|
return __('Unverified');
|
|
return __('Unverified');
|
|
} else {
|
|
} else {
|