Moved shareLocation preference check to Profile class

This commit is contained in:
Mikael Nordfeldth
2013-10-06 13:38:09 +02:00
parent cc34bb48c7
commit 78f9629bf3
9 changed files with 42 additions and 44 deletions

View File

@@ -206,7 +206,7 @@ class ReplyForm extends NoticeForm
}
$this->out->hidden('notice_in-reply-to', $this->inreplyto, 'inreplyto');
if ($this->user->shareLocation()) {
if ($this->profile->shareLocation()) {
$this->out->hidden('notice_data-lat', empty($this->lat) ? (empty($this->profile->lat) ? null : $this->profile->lat) : $this->lat, 'lat');
$this->out->hidden('notice_data-lon', empty($this->lon) ? (empty($this->profile->lon) ? null : $this->profile->lon) : $this->lon, 'lon');
$this->out->hidden('notice_data-location_id', empty($this->location_id) ? (empty($this->profile->location_id) ? null : $this->profile->location_id) : $this->location_id, 'location_id');
@@ -225,4 +225,4 @@ class ReplyForm extends NoticeForm
Event::handle('EndShowNoticeFormData', array($this));
}
}
}
}