--- /dev/null
+{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}
+++ /dev/null
-{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}
/** @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);