diff --git a/plugins/GNUsocialPhoto/classes/Photo.php b/plugins/GNUsocialPhoto/classes/Photo.php index be354928fb..a6e01a8c1b 100644 --- a/plugins/GNUsocialPhoto/classes/Photo.php +++ b/plugins/GNUsocialPhoto/classes/Photo.php @@ -81,7 +81,7 @@ class Photo extends Managed_DataObject ); } - function saveNew($profile, $photo_uri, $thumb_uri, $title, $description, $options=array()) + static function saveNew(Profile $profile, $photo_uri, $thumb_uri, $title, $description, $options=array()) { $photo = new Photo(); diff --git a/plugins/GNUsocialPhotos/classes/gnusocialphoto.php b/plugins/GNUsocialPhotos/classes/gnusocialphoto.php index 9fbe5a58aa..4f4e5fbfe4 100644 --- a/plugins/GNUsocialPhotos/classes/gnusocialphoto.php +++ b/plugins/GNUsocialPhotos/classes/gnusocialphoto.php @@ -85,7 +85,7 @@ class GNUsocialPhoto extends Managed_DataObject ); } - function saveNew($profile_id, $album_id, $thumb_uri, $uri, $source, $insert_now, $title = null, $photo_description = null) + static function saveNew($profile_id, $album_id, $thumb_uri, $uri, $source, $insert_now, $title = null, $photo_description = null) { $photo = new GNUsocialPhoto(); $photo->thumb_uri = $thumb_uri; diff --git a/plugins/GNUsocialVideo/classes/Video.php b/plugins/GNUsocialVideo/classes/Video.php index 0311ee596c..d2dd0469a1 100644 --- a/plugins/GNUsocialVideo/classes/Video.php +++ b/plugins/GNUsocialVideo/classes/Video.php @@ -75,7 +75,7 @@ class Video extends Managed_DataObject ); } - function saveNew($profile, $url, $options=array()) + static function saveNew(Profile $profile, $url, $options=array()) { $vid = new Video();