diff options
author | Evan Prodromou <evan@status.net> | 2009-12-11 11:29:51 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-11 11:29:51 -0500 |
commit | 79f81ad76d413908c097c121912eff233aebc483 (patch) | |
tree | ef94cd25d824b90a8b3b46c2b0c9b76d1ca7153a /actions/newnotice.php | |
parent | 85473ecf94e92cd0e6503e4d27ea26452076aafd (diff) |
change Notice::saveNew() to use named arguments for little-used options
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r-- | actions/newnotice.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php index dd6da0b01..c6c70e326 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -187,10 +187,12 @@ class NewnoticeAction extends Action } } - $notice = Notice::saveNew($user->id, $content_shortened, 'web', 1, - ($replyto == 'false') ? null : $replyto, - null, null, - $lat, $lon, $location_id, $location_ns); + $notice = Notice::saveNew($user->id, $content_shortened, 'web', + array('reply_to' => ($replyto == 'false') ? null : $replyto, + 'lat' => $lat, + 'lon' => $lon, + 'location_id' => $location_id, + 'location_ns' => $location_ns)); if (isset($upload)) { $upload->attachToNotice($notice); |