From 8be0ca1e76c54d0bae4d2b97bbf38465cd948c40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Fri, 4 Aug 2017 16:11:27 +0200 Subject: [PATCH] Disable newlines in trophy description See #2315 --- com.woltlab.wcf/templates/groupedUserTrophyList.tpl | 2 +- com.woltlab.wcf/templates/trophy.tpl | 4 ++-- com.woltlab.wcf/templates/trophyList.tpl | 2 +- wcfsetup/install/files/acp/templates/trophyAdd.tpl | 4 ++-- wcfsetup/install/files/acp/templates/userTrophyAdd.tpl | 5 ++--- wcfsetup/install/files/lib/data/trophy/Trophy.class.php | 2 +- .../install/files/lib/data/user/trophy/UserTrophy.class.php | 2 +- 7 files changed, 10 insertions(+), 11 deletions(-) diff --git a/com.woltlab.wcf/templates/groupedUserTrophyList.tpl b/com.woltlab.wcf/templates/groupedUserTrophyList.tpl index 944c01eab6..48cb1fe668 100644 --- a/com.woltlab.wcf/templates/groupedUserTrophyList.tpl +++ b/com.woltlab.wcf/templates/groupedUserTrophyList.tpl @@ -7,7 +7,7 @@

{@$userTrophy->getTrophy()->getTitle()}

- {@$userTrophy->getDescription()} - {@$userTrophy->time|time} + {$userTrophy->getDescription()} - {@$userTrophy->time|time}
diff --git a/com.woltlab.wcf/templates/trophy.tpl b/com.woltlab.wcf/templates/trophy.tpl index a22edac151..f238c92bf7 100644 --- a/com.woltlab.wcf/templates/trophy.tpl +++ b/com.woltlab.wcf/templates/trophy.tpl @@ -18,7 +18,7 @@

{$trophy->getTitle()}

@@ -43,7 +43,7 @@

{@$userTrophy->getUserProfile()->getAnchorTag()}

- {@$userTrophy->getDescription()} – {@$userTrophy->time|time} + {$userTrophy->getDescription()} – {@$userTrophy->time|time}
{/foreach} diff --git a/com.woltlab.wcf/templates/trophyList.tpl b/com.woltlab.wcf/templates/trophyList.tpl index f97ab713ec..a023888bc6 100644 --- a/com.woltlab.wcf/templates/trophyList.tpl +++ b/com.woltlab.wcf/templates/trophyList.tpl @@ -52,7 +52,7 @@

{@$trophy->getTitle()}

- {@$trophy->getDescription()} + {$trophy->getDescription()}
{/foreach} diff --git a/wcfsetup/install/files/acp/templates/trophyAdd.tpl b/wcfsetup/install/files/acp/templates/trophyAdd.tpl index f598edabf8..2e031e2977 100644 --- a/wcfsetup/install/files/acp/templates/trophyAdd.tpl +++ b/wcfsetup/install/files/acp/templates/trophyAdd.tpl @@ -80,11 +80,11 @@ {include file='multipleLanguageInputJavascript' elementIdentifier='title' forceSelection=false} - +
- + {if $errorField == 'description'} {if $errorType == 'empty'} diff --git a/wcfsetup/install/files/acp/templates/userTrophyAdd.tpl b/wcfsetup/install/files/acp/templates/userTrophyAdd.tpl index ea5762ee5b..3d885bfca5 100644 --- a/wcfsetup/install/files/acp/templates/userTrophyAdd.tpl +++ b/wcfsetup/install/files/acp/templates/userTrophyAdd.tpl @@ -98,12 +98,11 @@
- - +