summaryrefslogtreecommitdiff
path: root/lib/noticeform.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/noticeform.php')
-rw-r--r--lib/noticeform.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/noticeform.php b/lib/noticeform.php
index ec8624597..0dd3f2d77 100644
--- a/lib/noticeform.php
+++ b/lib/noticeform.php
@@ -178,8 +178,7 @@ class NoticeForm extends Form
$contentLimit = Notice::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');