mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
User: Always return the name with a capital letter
This commit is contained in:
parent
6cc7d9c553
commit
2dd37519e3
1 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ class User extends RowModel
|
|||
{
|
||||
$name = $this->getRecord()->deleted ? "DELETED" : mb_convert_case($this->getRecord()->first_name, MB_CASE_TITLE);
|
||||
if((($ts = tr("__transNames")) !== "@__transNames") && !$pristine)
|
||||
return transliterator_transliterate($ts, $name);
|
||||
return mb_convert_case(transliterator_transliterate($ts, $name), MB_CASE_TITLE);
|
||||
else
|
||||
return $name;
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ class User extends RowModel
|
|||
{
|
||||
$name = $this->getRecord()->deleted ? "DELETED" : mb_convert_case($this->getRecord()->last_name, MB_CASE_TITLE);
|
||||
if((($ts = tr("__transNames")) !== "@__transNames") && !$pristine)
|
||||
return transliterator_transliterate($ts, $name);
|
||||
return mb_convert_case(transliterator_transliterate($ts, $name), MB_CASE_TITLE);
|
||||
else
|
||||
return $name;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue