]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profileformaction.php
GNU social naming, not StatusNet
[quix0rs-gnu-social.git] / lib / profileformaction.php
index 57065282239c2e74702931c39fcb77af6712db14..4c738523a40b6846d5c05a0d534aa010e6da8336 100644 (file)
@@ -59,7 +59,7 @@ class ProfileFormAction extends RedirectingAction
 
         if (!common_logged_in()) {
             if ($_SERVER['REQUEST_METHOD'] == 'POST') {
-                // TRANS: Client error displayed when trying to change user options while not logged in.
+            // TRANS: Error message displayed when trying to perform an action that requires a logged in user.
                 $this->clientError(_('Not logged in.'));
             } else {
                 // Redirect to login.
@@ -80,7 +80,7 @@ class ProfileFormAction extends RedirectingAction
             return false;
         }
 
-        $this->profile = Profile::staticGet('id', $id);
+        $this->profile = Profile::getKV('id', $id);
 
         if (!$this->profile) {
             // TRANS: Client error displayed when trying to change user options without specifying an existing user to work on.