Guilds & Characters: Use CSS word-break: break-all instead of PHP wordwrap

Suggested by @anyeor
This commit is contained in:
slawkens
2023-06-30 19:52:05 +02:00
parent 8cf4d0cb0f
commit 5eafff737a
6 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ if(count($guilds_list) > 0)
$description = $guild->getCustomField('description');
$description_with_lines = str_replace(array("\r\n", "\n", "\r"), '<br />', $description, $count);
if ($count < $config['guild_description_lines_limit'])
$description = wordwrap(nl2br($description), 60, "<br />", true);
$description = nl2br($description);
$guildName = $guild->getName();
$guilds[] = array('name' => $guildName, 'logo' => $guild_logo, 'link' => getGuildLink($guildName, false), 'description' => $description);