]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/selftag.php
Added more checked type-hints.
[quix0rs-gnu-social.git] / actions / selftag.php
index c9ac3a2010d9e7bd944e864ac8b994f438dc1bed..58f0460997536a662c8d59ba235a4fc226bf75eb 100644 (file)
@@ -63,9 +63,9 @@ class SelftagAction extends Action
         $this->tag = $this->trimmed('tag');
 
         if (!common_valid_profile_tag($this->tag)) {
-            // TRANS: Client error displayed when trying to tag a profile with an invalid tag.
-            // TRANS: %s is the invalid tag.
-            $this->clientError(sprintf(_('Not a valid people tag: %s.'),
+            // TRANS: Client error displayed when trying to list a profile with an invalid list.
+            // TRANS: %s is the invalid list name.
+            $this->clientError(sprintf(_('Not a valid list: %s.'),
                 $this->tag));
             return;
         }
@@ -158,7 +158,7 @@ class SelftagAction extends Action
 
 class SelfTagProfileList extends ProfileList
 {
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new SelfTagProfileListItem($profile, $this->action);
     }