summaryrefslogtreecommitdiff
path: root/plugins/GNUsocialPhotos/actions/photos.php
diff options
context:
space:
mode:
authorSean Corbett <sean@gnu.org>2010-09-04 17:17:52 -0400
committerSean Corbett <sean@gnu.org>2010-09-04 17:35:37 -0400
commit7e8ff72c0b9c2cd1c73537edc886e6b6208a50fb (patch)
tree36c7f123442107ac4baa7559eb356bf9fef1fb19 /plugins/GNUsocialPhotos/actions/photos.php
parent3da5dccce6cd35e58f8ee71251578c23f6839acb (diff)
Quick function to get an array of thumbnails for a gallery page.
Diffstat (limited to 'plugins/GNUsocialPhotos/actions/photos.php')
-rw-r--r--plugins/GNUsocialPhotos/actions/photos.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/GNUsocialPhotos/actions/photos.php b/plugins/GNUsocialPhotos/actions/photos.php
index 29a70e458..bc54ae993 100644
--- a/plugins/GNUsocialPhotos/actions/photos.php
+++ b/plugins/GNUsocialPhotos/actions/photos.php
@@ -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