Changes to GNUsocial plugins

These aren't ready for production use. Might be insecure, probably broken.
This commit is contained in:
Mikael Nordfeldth 2013-08-29 16:18:56 +02:00
parent f042eea956
commit 07ca304c65
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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;

View File

@ -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();