summaryrefslogtreecommitdiff
path: root/plugins/MobileProfile
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-12-04 20:33:41 -0500
committerCraig Andrews <candrews@integralblue.com>2009-12-04 20:33:41 -0500
commitd41a0a5ed03b2f4bbf8e8b3984960103383090d1 (patch)
tree8a2802ecbd0711090dc7bcd6f94ee64bf21b7949 /plugins/MobileProfile
parent675e32ac9ac1bdcfbb6e293eb363d2b592140ae7 (diff)
Use inlineScript() instead of element() to write inline javascript
Diffstat (limited to 'plugins/MobileProfile')
-rw-r--r--plugins/MobileProfile/MobileProfilePlugin.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php
index 8b5e5f31d..35678bedd 100644
--- a/plugins/MobileProfile/MobileProfilePlugin.php
+++ b/plugins/MobileProfile/MobileProfilePlugin.php
@@ -352,8 +352,7 @@ class MobileProfilePlugin extends WAP20Plugin
$contentLimit = Notice::maxContent();
- $form->out->element('script', array('type' => 'text/javascript'),
- 'maxLength = ' . $contentLimit . ';');
+ $form->out->inlineScript('maxLength = ' . $contentLimit . ';');
if ($contentLimit > 0) {
$form->out->element('div', array('id' => 'notice_text-count'),