From 47edd73581acbd44026e68871f61086ce211908a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 28 Sep 2008 13:56:26 -0400 Subject: [PATCH] fancy url for favorites rss darcs-hash:20080928175626-5ed1f-cb8775fbff6825e56378f4b900f496cbc6cb3678.gz --- htaccess.sample | 1 + lib/util.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/htaccess.sample b/htaccess.sample index cba4e69e61..598ea9f7fb 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -73,6 +73,7 @@ RewriteRule ^(\w+)/replies$ index.php?action=replies&nickname=$1 [L,QSA] RewriteRule ^(\w+)/replies/rss$ index.php?action=repliesrss&nickname=$1 [L,QSA] RewriteRule ^(\w+)/avatar/(original|96|48|24)$ index.php?action=avatarbynickname&nickname=$1&size=$2 [L,QSA] RewriteRule ^(\w+)/favorites$ index.php?action=showfavorites&nickname=$1 [L,QSA] +RewriteRule ^(\w+)/favorites/rss$ index.php?action=favoritesrss&nickname=$1 [L,QSA] RewriteRule ^(\w+)/inbox$ index.php?action=inbox&nickname=$1 [L,QSA] RewriteRule ^(\w+)/outbox$ index.php?action=outbox&nickname=$1 [L,QSA] diff --git a/lib/util.php b/lib/util.php index 20fe4ced67..87c7f8fb03 100644 --- a/lib/util.php +++ b/lib/util.php @@ -945,6 +945,8 @@ function common_fancy_url($action, $args=NULL) { } else { return common_path($args['nickname'].'/favorites'); } + case 'favoritesrss': + return common_path($args['nickname'].'/favorites/rss'); case 'showmessage': return common_path('message/' . $args['message']); case 'newmessage': -- 2.39.5