From 2dd37519e311ad7103b6c64a740afe4cfe53b2a0 Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Tue, 31 May 2022 14:20:02 +0300 Subject: [PATCH] User: Always return the name with a capital letter --- Web/Models/Entities/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/Models/Entities/User.php b/Web/Models/Entities/User.php index 71dba465..03948970 100644 --- a/Web/Models/Entities/User.php +++ b/Web/Models/Entities/User.php @@ -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; }