X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Frouter.php;h=28ee42662df5e3ec966f9400c38d422d9b1d1c35;hb=7ccd36849e945260bb8169c816d96901e90f6a26;hp=249e5e882397128e96ff76544fb2b70aaf41c34f;hpb=c037f04d174f8359c77af03d323bca03032ef7fd;p=quix0rs-gnu-social.git diff --git a/lib/router.php b/lib/router.php index 249e5e8823..28ee42662d 100644 --- a/lib/router.php +++ b/lib/router.php @@ -244,12 +244,10 @@ class Router array('action' => 'shownotice'), array('notice' => '[0-9]+')); - $m->connect('notice/delete/:notice', + $m->connect('notice/:notice/delete', array('action' => 'deletenotice'), array('notice' => '[0-9]+')); - $m->connect('notice/delete', array('action' => 'deletenotice')); - // conversation $m->connect('conversation/:id', @@ -923,6 +921,7 @@ class Router $m->connect('all/:tag', array('action' => 'showprofiletag', + 'nickname' => $nickname, 'tag' => self::REGEX_TAG)); foreach (array('subscriptions', 'subscribers') as $a) { @@ -1005,9 +1004,9 @@ class Router 'tagger_id' => '[0-9]+', 'id' => '[0-9]+')); - $m->connect(':tagger/all/:tag', - array('action' => 'showprofiletag', - 'tagger' => Nickname::DISPLAY_FMT, + $m->connect(':nickname/all/:tag', + array('action' => 'showprofiletag'), + array('nickname' => Nickname::DISPLAY_FMT, 'tag' => self::REGEX_TAG)); foreach (array('subscriptions', 'subscribers') as $a) {