]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
json_encode strings put out as javascript
authorCraig Andrews <candrews@integralblue.com>
Sat, 17 Apr 2010 18:35:00 +0000 (14:35 -0400)
committerCraig Andrews <candrews@integralblue.com>
Sat, 17 Apr 2010 18:36:11 +0000 (14:36 -0400)
lib/noticeform.php

index 7278c41a9cf2640323e34430c79c7118d3e6b8e7..84c20a5b3ff1ed13d49695113b661f74fd67f0ec 100644 (file)
@@ -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')).
                     '}');
             }