From 0a4eeb89dab241779147c8c02a8f5f0f83533309 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Mon, 1 Jul 2019 22:40:21 +0100 Subject: [PATCH] [CORE][ROUTER] Fix wrong parameter in all/:tag by XRevan86 --- actions/showprofiletag.php | 2 +- lib/router.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/showprofiletag.php b/actions/showprofiletag.php index f99c9155e4..fcb629e128 100644 --- a/actions/showprofiletag.php +++ b/actions/showprofiletag.php @@ -32,7 +32,7 @@ class ShowprofiletagAction extends ShowstreamAction { $tag = common_canonical_tag($this->arg('tag')); try { - $this->peopletag = Profile_list::getByPK(array('tagger' => $this->target->getID(), 'tag' => $tag)); + $this->peopletag = Profile_list::getByPK(['tagger' => $this->target->getID(), 'tag' => $tag]); } catch (NoResultException $e) { // TRANS: Client error displayed trying to reference a non-existing list. throw new ClientException('No such list.'); diff --git a/lib/router.php b/lib/router.php index ab6595b8f8..be87afd88d 100644 --- a/lib/router.php +++ b/lib/router.php @@ -924,7 +924,7 @@ class Router $m->connect('all/:tag', array('action' => 'showprofiletag', - 'nickname' => $nickname, + 'tagger' => $nickname, 'tag' => self::REGEX_TAG)); foreach (array('subscriptions', 'subscribers') as $a) { -- 2.39.5