summaryrefslogtreecommitdiff
path: root/lib/noticeform.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-12-04 19:41:51 -0500
committerCraig Andrews <candrews@integralblue.com>2009-12-04 19:41:51 -0500
commit4c8bed8ba0558c5834621331f253e05029fa4e43 (patch)
tree796607aa0a8b6a7ce4ef73090a8b255a6b2bacdd /lib/noticeform.php
parentaab7344002fd390e5b62a3eb82f3a418fd294617 (diff)
Use inlineScript() everywhere inline scripts are written
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');