]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Changes to GNUsocial plugins
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 29 Aug 2013 14:18:56 +0000 (16:18 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 29 Aug 2013 14:18:56 +0000 (16:18 +0200)
These aren't ready for production use. Might be insecure, probably broken.

plugins/GNUsocialPhoto/classes/Photo.php
plugins/GNUsocialPhotos/classes/gnusocialphoto.php
plugins/GNUsocialVideo/classes/Video.php

index be354928fbc6a61e8ff5139200dec6435441b16d..a6e01a8c1b385f1fffdc55b4da3647b8f627efd3 100644 (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();
 
index 9fbe5a58aa4282b2adac8680e0f9cb0a235c6dbe..4f4e5fbfe44cc415ae66c8410c4686bb93567b2d 100644 (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;
index 0311ee596ce9fcdd86fe0735445bfb38aa2ed9e9..d2dd0469a1f6b4d94b0fe64909ccbe20ca1bec46 100644 (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();