Using a generic named variable for the text of an object
authorCyperghost <olaf_schmitz_1@t-online.de>
Thu, 8 Feb 2024 11:39:29 +0000 (12:39 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Thu, 8 Feb 2024 11:39:29 +0000 (12:39 +0100)
files/lib/data/conversation/message/ConversationMessageAction.class.php
templates/conversationMessageInlineEditor.tpl

index c28e81e3f3918a7a72ea0ca5c2fb57fbde30efd6..05a370418477a49c188d35e50f15c0b696bae9ee 100644 (file)
@@ -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,
         ]);
index 60575ee4da2144cee05ba35197c80b9a741901a3..2bda5afcfe2ac7eaf95c64a148e1e29c22fdb513 100644 (file)
@@ -3,7 +3,7 @@
        <textarea id="{$wysiwygSelector}" class="wysiwygTextarea"
                data-autosave="com.woltlab.wcf.conversation.messageEdit-{$message->messageID}"
                data-support-mention="true"
-       >{$messageText}</textarea>
+       >{$text}</textarea>
        {capture assign=wysiwygContainerID}messageEditor{@$message->messageID}{/capture}
        {include file='messageFormTabsInline' inConversationInlineEdit=true wysiwygContainerID=$wysiwygContainerID}