From df22de3f5619bac8cddd77885c27cf1f5dc08aa7 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Tue, 28 Mar 2023 18:17:19 +0200 Subject: [PATCH] Add `userBBCodeTag` to the shared templates --- syncTemplates.json | 1 + wcfsetup/install/files/acp/templates/userBBCodeTag.tpl | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 wcfsetup/install/files/acp/templates/userBBCodeTag.tpl diff --git a/syncTemplates.json b/syncTemplates.json index bb8d4279fc..4f470c514c 100644 --- a/syncTemplates.json +++ b/syncTemplates.json @@ -95,6 +95,7 @@ "trophyImage", "unfurlUrl", "uploadFieldComponent", + "userBBCodeTag", "userConditions", "userOptionsCondition", "worker", diff --git a/wcfsetup/install/files/acp/templates/userBBCodeTag.tpl b/wcfsetup/install/files/acp/templates/userBBCodeTag.tpl new file mode 100644 index 0000000000..dbe32b29d2 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/userBBCodeTag.tpl @@ -0,0 +1,6 @@ +{if $userProfile === null} + {* user no longer exists, use plain output rather than using a broken link *} + @{$username}{* no newline after the tag +*}{else} + {@$userProfile->getFormattedUsername()}{* no newline after the tag +*}{/if} -- 2.20.1