From: Cyperghost Date: Thu, 8 Feb 2024 11:39:29 +0000 (+0100) Subject: Using a generic named variable for the text of an object X-Git-Tag: 6.1.0_Alpha_1~15^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d77364a257f193b607288aa5e3bcf1197f0030f6;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Using a generic named variable for the text of an object --- diff --git a/files/lib/data/conversation/message/ConversationMessageAction.class.php b/files/lib/data/conversation/message/ConversationMessageAction.class.php index c28e81e..05a3704 100644 --- a/files/lib/data/conversation/message/ConversationMessageAction.class.php +++ b/files/lib/data/conversation/message/ConversationMessageAction.class.php @@ -373,7 +373,7 @@ class ConversationMessageAction extends AbstractDatabaseObjectAction implements WCF::getTPL()->assign([ 'defaultSmilies' => SmileyCache::getInstance()->getCategorySmilies(), 'message' => $this->message, - 'messageText' => $upcastProcessor->getHtml(), + 'text' => $upcastProcessor->getHtml(), 'permissionCanUseSmilies' => 'user.message.canUseSmilies', 'wysiwygSelector' => 'messageEditor' . $this->message->messageID, ]); diff --git a/templates/conversationMessageInlineEditor.tpl b/templates/conversationMessageInlineEditor.tpl index 60575ee..2bda5af 100644 --- a/templates/conversationMessageInlineEditor.tpl +++ b/templates/conversationMessageInlineEditor.tpl @@ -3,7 +3,7 @@ + >{$text} {capture assign=wysiwygContainerID}messageEditor{@$message->messageID}{/capture} {include file='messageFormTabsInline' inConversationInlineEdit=true wysiwygContainerID=$wysiwygContainerID}