X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgalleryaction.php;h=498c828514b5f30b57b90ce4817a2d1984e1b587;hb=164588ef0fd2c9c9f1858f1d21d6758356ce7885;hp=8e21d7393b082950a3113b7758e6f1a601a36ad3;hpb=58dfad57576d5529b7f6538a460fa9f4bd90b40f;p=quix0rs-gnu-social.git diff --git a/lib/galleryaction.php b/lib/galleryaction.php index 8e21d7393b..498c828514 100644 --- a/lib/galleryaction.php +++ b/lib/galleryaction.php @@ -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 +}