]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/UserFlag/adminprofileflag.php
The overloaded DB_DataObject function staticGet is now called getKV
[quix0rs-gnu-social.git] / plugins / UserFlag / adminprofileflag.php
index 2f62fa7c41e8eb54afebdc98bb714ec18d724b6c..b7538c6663368b5c99b06d7d07ea28f4f391fd7d 100644 (file)
@@ -61,6 +61,7 @@ class AdminprofileflagAction extends Action
         // User must be logged in.
 
         if (!common_logged_in()) {
+            // TRANS: Error message displayed when trying to perform an action that requires a logged in user.
             $this->clientError(_m('Not logged in.'));
             return;
         }
@@ -85,6 +86,7 @@ class AdminprofileflagAction extends Action
         // User must have the right to review flags
 
         if (!$user->hasRight(UserFlagPlugin::REVIEWFLAGS)) {
+            // TRANS: Error message displayed when trying to review profile flags while not authorised.
             $this->clientError(_m('You cannot review profile flags.'));
             return false;
         }
@@ -167,7 +169,7 @@ class AdminprofileflagAction extends Action
 
         if ($ufp->find()) {
             while ($ufp->fetch()) {
-                $profile = Profile::staticGet('id', $ufp->profile_id);
+                $profile = Profile::getKV('id', $ufp->profile_id);
                 if (!empty($profile)) {
                     $profiles[] = $profile;
                 }
@@ -352,7 +354,7 @@ class FlaggedProfileListItem extends ProfileListItem
 
         if ($ufp->find()) { // XXX: this should always happen
             while ($ufp->fetch()) {
-                $user = User::staticGet('id', $ufp->user_id);
+                $user = User::getKV('id', $ufp->user_id);
                 if (!empty($user)) { // XXX: this would also be unusual
                     $flaggers[] = clone($user);
                 }
@@ -384,7 +386,7 @@ class FlaggedProfileListItem extends ProfileListItem
                 $flagging_users = implode(', ', $lnks);
                 // TRANS: Message displayed on a profile if it has been flagged.
                 // TRANS: %1$s is a comma separated list of at most 5 user nicknames that flagged.
-                // TRANS: %2$d is a positive integer of additional flagging users. Also used for the plural.
+                // TRANS: %2$d is a positive integer of additional flagging users. Also used for plural.
                 $text .= sprintf(_m('Flagged by %1$s and %2$d other', 'Flagged by %1$s and %2$d others', $others), $flagging_users, $others);
             } else {
                 // TRANS: Message displayed on a profile if it has been flagged.