summaryrefslogtreecommitdiff
path: root/lib/messageform.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/messageform.php')
-rw-r--r--lib/messageform.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/messageform.php b/lib/messageform.php
index b034be312..4df193c6d 100644
--- a/lib/messageform.php
+++ b/lib/messageform.php
@@ -154,8 +154,7 @@ class MessageForm extends Form
$contentLimit = Message::maxContent();
- $this->out->element('script', array('type' => 'text/javascript'),
- 'maxLength = ' . $contentLimit . ';');
+ $this->out->inlineScript('maxLength = ' . $contentLimit . ';');
if ($contentLimit > 0) {
$this->out->elementStart('dl', 'form_note');