Changes to GNUsocial plugins
These aren't ready for production use. Might be insecure, probably broken.
This commit is contained in:
parent
f042eea956
commit
07ca304c65
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user