Properly displaying validation errors for quick reply
authorAlexander Ebert <ebert@woltlab.com>
Mon, 4 Mar 2013 19:10:51 +0000 (20:10 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 4 Mar 2013 19:10:51 +0000 (20:10 +0100)
files/lib/data/conversation/message/ConversationMessageAction.class.php

index 740e80c1938ca81ddb6b095150f4632384eca367..b64a99ec3d0cdc5264f6fa1b1cc0931cdd783c6b 100644 (file)
@@ -356,7 +356,7 @@ class ConversationMessageAction extends AbstractDatabaseObjectAction implements
                if (ENABLE_CENSORSHIP) {
                        $result = Censorship::getInstance()->test($message);
                        if ($result) {
-                               throw new UserInputException('message', 'wcf.message.error.censoredWordsFound', array('censoredWords' => $result));
+                               throw new UserInputException('message', WCF::getLanguage()->getDynamicVariable('wcf.message.error.censoredWordsFound', array('censoredWords' => $result)));
                        }
                }
        }