]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/photos.php
getting photos by page is now static.
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / photos.php
index fd014efdeb3dc645dd99a4f4a61b6e99d9a6de1c..83060dc57375a6e47b0181cdc1256d516437d92a 100644 (file)
@@ -87,8 +87,7 @@ class PhotosAction extends Action
             $username = $pathparts[0];
             $this->elementStart('ul', array('class' => 'photothumbs'));
 
-                       $photo_obj= new GNUsocialPhoto();
-                       $photos = $photo_obj->getGalleryPage(1, 0, 9);
+                       $photos = GNUsocialPhoto::getGalleryPage(1, 0, 9);
 
             foreach ($photos as $photo) {
                 $this->elementStart('li');