Rename user bbcode template
authorCyperghost <olaf_schmitz_1@t-online.de>
Mon, 29 Jan 2024 10:51:43 +0000 (11:51 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Mon, 29 Jan 2024 10:51:43 +0000 (11:51 +0100)
com.woltlab.wcf/templates/shared_bbcode_user.tpl [new file with mode: 0644]
com.woltlab.wcf/templates/shared_userBBCodeTag.tpl [deleted file]
wcfsetup/install/files/lib/system/bbcode/UserBBCode.class.php

diff --git a/com.woltlab.wcf/templates/shared_bbcode_user.tpl b/com.woltlab.wcf/templates/shared_bbcode_user.tpl
new file mode 100644 (file)
index 0000000..369371d
--- /dev/null
@@ -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}
+       <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}" class="userMention userLink" data-object-id="{@$userProfile->userID}">{@$userProfile->getFormattedUsername()}</a>{* no newline after the tag
+*}{/if}
diff --git a/com.woltlab.wcf/templates/shared_userBBCodeTag.tpl b/com.woltlab.wcf/templates/shared_userBBCodeTag.tpl
deleted file mode 100644 (file)
index 369371d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-{if $userProfile === null}
-       {* user no longer exists, use plain output rather than using a broken link *}
-       {$username}{* no newline after the tag
-*}{else}
-       <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}" class="userMention userLink" data-object-id="{@$userProfile->userID}">{@$userProfile->getFormattedUsername()}</a>{* no newline after the tag
-*}{/if}
index db7deaad9f661876abda00b85c528a09bc410f37..07437cc0ea8e0887962ce7215162d140c300c1f0 100644 (file)
@@ -34,7 +34,7 @@ final class UserBBCode extends AbstractBBCode
         /** @var UserProfile $userProfile */
         $userProfile = MessageEmbeddedObjectManager::getInstance()->getObject('com.woltlab.wcf.user', $userID);
 
-        return WCF::getTPL()->fetch('shared_userBBCodeTag', 'wcf', [
+        return WCF::getTPL()->fetch('shared_bbcode_user', 'wcf', [
             'username' => $content,
             'userProfile' => $userProfile,
         ], true);