diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-11-19 15:14:55 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-11-19 15:17:57 -0500 |
commit | 9a74a094ed02345c810e169bfedc3940481a79a4 (patch) | |
tree | 392f28d5da6ad3ed6676acd723ec8655a18b042d /actions/newnotice.php | |
parent | 26a86402cd694441ab7ffc1e090d22af0d30745d (diff) |
Add location form elements to the noticeform, and save their values on submission
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r-- | actions/newnotice.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php index fbd7ab6bc..dd6da0b01 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -164,6 +164,11 @@ class NewnoticeAction extends Action $replyto = 'false'; } + $lat = $this->trimmed('lat'); + $lon = $this->trimmed('lon'); + $location_id = $this->trimmed('location_id'); + $location_ns = $this->trimmed('location_ns'); + $upload = null; $upload = MediaFile::fromUpload('attach'); @@ -183,7 +188,9 @@ class NewnoticeAction extends Action } $notice = Notice::saveNew($user->id, $content_shortened, 'web', 1, - ($replyto == 'false') ? null : $replyto); + ($replyto == 'false') ? null : $replyto, + null, null, + $lat, $lon, $location_id, $location_ns); if (isset($upload)) { $upload->attachToNotice($notice); |