]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
8e3f8de
)
Trimmed name last resort
author
Bajszi
<redacted>
Mon, 11 Sep 2023 19:27:15 +0000
(21:27 +0200)
committer
Bajszi
<redacted>
Mon, 11 Sep 2023 19:27:15 +0000
(21:27 +0200)
app/Users/Models/User.php
patch
|
blob
|
history
diff --git
a/app/Users/Models/User.php
b/app/Users/Models/User.php
index 92701ac1312c89357c0cea0f07c9051f6ed0e493..cbfdbef2dd6c43e326e27228bb1fe5b4ca308425 100644
(file)
--- a/
app/Users/Models/User.php
+++ b/
app/Users/Models/User.php
@@
-345,7
+345,7
@@
class User extends Model implements AuthenticatableContract, CanResetPasswordCon
return $splitName[0];
}
- return
'
';
+ return
mb_substr($this->name, 0, $chars) . '..
';
}
/**