]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If user is sharing their location (based on profile setting), then
authorSarven Capadisli <csarven@status.net>
Thu, 31 Dec 2009 14:34:07 +0000 (14:34 +0000)
committerSarven Capadisli <csarven@status.net>
Thu, 31 Dec 2009 14:34:07 +0000 (14:34 +0000)
enable it for form notice by default. This can be overriden by the
cookie to preserve states.

lib/noticeform.php

index 50b2e6893fede7dfcf77281900022f03a88b710d..f45e6629bdcbd3d1bf269ad80c11d3a35080f09a 100644 (file)
@@ -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');
             }