]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/photos.php
Quick function to get an array of thumbnails for a gallery page.
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / photos.php
index 29a70e4589b03e730502711f91261988f6d0fb8a..bc54ae9937b572c434b526e0b3c78ec8dc22db1f 100644 (file)
@@ -86,6 +86,11 @@ class PhotosAction extends Action
             $pathparts = explode('/', $args[1]['nickname']);
             $username = $pathparts[0];
             $this->elementStart('ul', array('class' => 'photothumbs'));
+
+                       //scorbett
+                       $photo_obj = new GNUsocialPhoto();
+                       $photo_obj->getGalleryPage(1, 0, 9);
+
             while (false !== ($file = readdir($dir))) {
                 $fparts = explode('-', $file);
                 if ($fparts[0] == $username // uploaded by this user