From: Craig Andrews Date: Sat, 17 Apr 2010 18:35:00 +0000 (-0400) Subject: json_encode strings put out as javascript X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ffd688b8ef9103a6677f91056e2220c8e3edd665;p=quix0rs-gnu-social.git json_encode strings put out as javascript --- diff --git a/lib/noticeform.php b/lib/noticeform.php index 7278c41a9c..84c20a5b3f 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')). '}'); }