summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-04-17 14:35:00 -0400
committerCraig Andrews <candrews@integralblue.com>2010-04-17 14:36:11 -0400
commitffd688b8ef9103a6677f91056e2220c8e3edd665 (patch)
tree29928e7d49f0adbd427d3384451fce79fd8fdea2 /lib
parent617a99455094bfef92d6e2337560949f020969e5 (diff)
json_encode strings put out as javascript
Diffstat (limited to 'lib')
-rw-r--r--lib/noticeform.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/noticeform.php b/lib/noticeform.php
index 7278c41a9..84c20a5b3 100644
--- a/lib/noticeform.php
+++ b/lib/noticeform.php
@@ -212,8 +212,8 @@ class NoticeForm extends Form
$this->out->checkbox('notice_data-geo', _('Share my location'), true);
$this->out->elementEnd('div');
$this->out->inlineScript(' var NoticeDataGeo_text = {'.
- 'ShareDisable: "'._('Do not share my location').'",'.
- 'ErrorTimeout: "'._('Sorry, retrieving your geo location is taking longer than expected, please try again later').'"'.
+ 'ShareDisable: ' .json_encode(_('Do not share my location')).','.
+ 'ErrorTimeout: ' .json_encode(_('Sorry, retrieving your geo location is taking longer than expected, please try again later')).
'}');
}