summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-11 11:38:08 -0500
committerEvan Prodromou <evan@status.net>2009-12-11 11:38:08 -0500
commit60754fc6de8f73b3e74dbec30d91fffe11b094c6 (patch)
tree168dff88fe89417b22cd28efbde54b36b018407c /classes/Notice.php
parent81843f2acd5375a9072d091fd58c6a6af079295e (diff)
parent89256fa754c1e03b822b8eeac388cc822b3c58ca (diff)
Merge branch '0.9.x' into forward
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 0a2f16271..228201188 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -169,9 +169,18 @@ class Notice extends Memcached_DataObject
}
}
- static function saveNew($profile_id, $content, $source=null,
- $is_local=Notice::LOCAL_PUBLIC, $reply_to=null, $uri=null, $created=null,
- $lat=null, $lon=null, $location_id=null, $location_ns=null) {
+ static function saveNew($profile_id, $content, $source, $options=null) {
+
+ if (!empty($options)) {
+ extract($options);
+ if (!isset($reply_to)) {
+ $reply_to = NULL;
+ }
+ }
+
+ if (empty($is_local)) {
+ $is_local = Notice::LOCAL_PUBLIC;
+ }
$profile = Profile::staticGet($profile_id);