From: Sarven Capadisli Date: Thu, 31 Dec 2009 14:34:07 +0000 (+0000) Subject: If user is sharing their location (based on profile setting), then X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c986f59143b1969dc4ae324409295728b1d06e82;p=quix0rs-gnu-social.git If user is sharing their location (based on profile setting), then enable it for form notice by default. This can be overriden by the cookie to preserve states. --- diff --git a/lib/noticeform.php b/lib/noticeform.php index 50b2e6893f..f45e6629bd 100644 --- a/lib/noticeform.php +++ b/lib/noticeform.php @@ -208,7 +208,7 @@ class NoticeForm extends Form $this->out->hidden('notice_data-location_ns', empty($this->profile->location_ns) ? null : $this->profile->location_ns, 'location_ns'); $this->out->elementStart('div',array('id' => 'notice_data-location_enabled_container', 'data-geocode-url' => common_local_url('geocode'))); - $this->out->checkbox('notice_data-location_enabled',_('Share your location')); + $this->out->checkbox('notice_data-location_enabled', _('Share your location'), true); $this->out->element('a', array('style' => 'display: none', 'target' => '_blank', 'id' => 'notice_data-location_name'), _('Finding your location...')); $this->out->elementEnd('div'); }