X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fselftag.php;h=58f0460997536a662c8d59ba235a4fc226bf75eb;hb=3326b7b850f538f0e3c2c7969c5e566e2a374ffb;hp=b0b4981f10c237887127f16d63e1c8b813ebb041;hpb=31c1177970124cee31823cab3a11542c23b4126d;p=quix0rs-gnu-social.git diff --git a/actions/selftag.php b/actions/selftag.php index b0b4981f10..58f0460997 100644 --- a/actions/selftag.php +++ b/actions/selftag.php @@ -46,7 +46,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { */ class SelftagAction extends Action { - var $tag = null; var $page = null; @@ -64,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; } @@ -100,7 +99,6 @@ class SelftagAction extends Action */ function showContent() { - $profile = new Profile(); $offset = ($this->page - 1) * PROFILES_PER_PAGE; @@ -151,15 +149,16 @@ class SelftagAction extends Action */ function title() { - return sprintf(_('Users self-tagged with %1$s - page %2$d'), + // TRANS: Page title for page showing self tags. + // TRANS: %1$s is a tag, %2$d is a page number. + return sprintf(_('Users self-tagged with %1$s, page %2$d'), $this->tag, $this->page); } - } class SelfTagProfileList extends ProfileList { - function newListItem($profile) + function newListItem(Profile $profile) { return new SelfTagProfileListItem($profile, $this->action); }