]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/selftag.php
Don't redirect to tag cloud on /tag URL
[quix0rs-gnu-social.git] / actions / selftag.php
index c9ac3a2010d9e7bd944e864ac8b994f438dc1bed..2df1a29253e545c6c52695919296e9440ba113d2 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,9 +158,9 @@ class SelftagAction extends Action
 
 class SelfTagProfileList extends ProfileList
 {
-    function newListItem($profile)
+    function newListItem(Profile $target)
     {
-        return new SelfTagProfileListItem($profile, $this->action);
+        return new SelfTagProfileListItem($target, $this->action);
     }
 }