[CORE][ROUTER] Fix wrong parameter in all/:tag by XRevan86

This commit is contained in:
Diogo Cordeiro 2019-07-01 22:40:21 +01:00
parent 11dc170ead
commit 0a4eeb89da
2 changed files with 2 additions and 2 deletions

View File

@ -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.');

View File

@ -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) {