]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/galleryaction.php
Merge branch '0.8.x' into userdesign
[quix0rs-gnu-social.git] / lib / galleryaction.php
index 8e21d7393b082950a3113b7758e6f1a601a36ad3..498c828514b5f30b57b90ce4817a2d1984e1b587 100644 (file)
@@ -27,10 +27,9 @@ require_once INSTALLDIR.'/lib/profilelist.php';
 
 define('AVATARS_PER_PAGE', 80);
 
-class GalleryAction extends Action
+class GalleryAction extends OwnerDesignAction
 {
     var $profile = null;
-    var $user = null;
     var $page = null;
     var $tag = null;
 
@@ -76,7 +75,7 @@ class GalleryAction extends Action
         return true;
     }
 
-    function isReadOnly()
+    function isReadOnly($args)
     {
         return true;
     }
@@ -134,9 +133,11 @@ class GalleryAction extends Action
             $this->elementStart('li', array('id'=>'filter_tags_item'));
             $this->elementStart('form', array('name' => 'bytag',
                                                'id' => 'bytag',
+                                               'action' => common_path('?action=' . $this->trimmed('action')),
                                                'method' => 'post'));
             $this->dropdown('tag', _('Tag'), $content,
                             _('Choose a tag to narrow list'), false, $tag);
+            $this->hidden('nickname', $this->user->nickname);
             $this->submit('submit', _('Go'));
             $this->elementEnd('form');
             $this->elementEnd('li');
@@ -169,4 +170,4 @@ class GalleryAction extends Action
     {
         return array();
     }
-}
\ No newline at end of file
+}