]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/galleryaction.php
common_good_rand was _not_ a "good rand", only hex
[quix0rs-gnu-social.git] / lib / galleryaction.php
index bd7da195fa0b66f7d72840e28d70ef3741f1b594..85e3f0de3ebb6e2e6b016ad79b0f9307d5dde90e 100644 (file)
@@ -54,7 +54,7 @@ class GalleryAction extends ProfileAction
             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.
@@ -65,7 +65,7 @@ class GalleryAction extends ProfileAction
         $this->profile = $this->user->getProfile();
 
         if (!$this->profile) {
-            // TRANS: Server error displayed when trying to perform a gallery action with a user without a profile.
+            // TRANS: Error message displayed when referring to a user without a profile.
             $this->serverError(_('User has no profile.'));
             return false;
         }