diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-07 03:30:25 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-07 03:30:25 -0400 |
commit | 834df790ceb2a6a3425e934ec877963f896ebca4 (patch) | |
tree | 9569df0f673e62e8ef8b89e73d53650add499f52 | |
parent | 33f0d97cf62c7c95f2f4b6ea52044be75e39230c (diff) |
fancy url for replies rss
darcs-hash:20080707073025-84dde-724deaf0db1c40a95296b53b895a60a04ff7f957.gz
-rw-r--r-- | htaccess.sample | 1 | ||||
-rw-r--r-- | lib/util.php | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/htaccess.sample b/htaccess.sample index 1cf21ec4c..35c0ef7e3 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -46,5 +46,6 @@ RewriteRule ^(\w+)/all$ index.php?action=all&nickname=$1 [L,QSA] RewriteRule ^(\w+)/all/rss$ index.php?action=allrss&nickname=$1 [L,QSA] RewriteRule ^(\w+)/foaf$ index.php?action=foaf&nickname=$1 [L,QSA] 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+)$ index.php?action=showstream&nickname=$1 [L,QSA] diff --git a/lib/util.php b/lib/util.php index 1cb24be04..3301c0233 100644 --- a/lib/util.php +++ b/lib/util.php @@ -721,6 +721,8 @@ function common_fancy_url($action, $args=NULL) { } case 'allrss': return common_path($args['nickname'].'/all/rss'); + case 'repliesrss': + return common_path($args['nickname'].'/replies/rss'); case 'userrss': return common_path($args['nickname'].'/rss'); case 'showstream': |