X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgalleryaction.php;h=975933f6cceeb492c393f985d0d64594b1663b29;hb=0fa00d510626f9131ca94edaf303b4c09691259f;hp=51bb9e3e1a17d17e2af83c2eda6ccea0f6f38cef;hpb=87d46e1ae5e5effcc985021ff5af3f10815f3d3c;p=quix0rs-gnu-social.git diff --git a/lib/galleryaction.php b/lib/galleryaction.php index 51bb9e3e1a..975933f6cc 100644 --- a/lib/galleryaction.php +++ b/lib/galleryaction.php @@ -51,15 +51,13 @@ class GalleryAction extends ProfileAction $args['page'] = $this->arg['page']; } common_redirect(common_local_url($this->trimmed('action'), $args), 301); - return false; } - $this->user = User::staticGet('nickname', $nickname); + $this->user = User::getKV('nickname', $nickname); if (!$this->user) { // TRANS: Client error displayed when trying to perform a gallery action with an unknown user. $this->clientError(_('No such user.'), 404); - return false; } $this->profile = $this->user->getProfile(); @@ -67,7 +65,6 @@ class GalleryAction extends ProfileAction if (!$this->profile) { // TRANS: Error message displayed when referring to a user without a profile. $this->serverError(_('User has no profile.')); - return false; } $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; @@ -91,7 +88,6 @@ class GalleryAction extends ProfileAction if ($_SERVER['REQUEST_METHOD'] == 'POST') { common_redirect($this->selfUrl(), 303); - return; } $this->showPage();