diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-12-08 02:15:21 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-12-08 02:15:21 -0500 |
commit | 49adb8b552b5dc0fc07298649466e1a71cebd661 (patch) | |
tree | f519868a0cc418959cb63dc31c550866832217f9 | |
parent | ad3fcbce431ea4f5ec6df2a1af2725828d1182b4 (diff) |
add fancy url for block action
darcs-hash:20081208071521-5ed1f-1178a3c50f94c039d98112620e8bf78836e659bc.gz
-rw-r--r-- | htaccess.sample | 2 | ||||
-rw-r--r-- | lib/util.php | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/htaccess.sample b/htaccess.sample index b0e89b9f2..c06b5ed23 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -44,6 +44,8 @@ RewriteRule ^main/sup$ index.php?action=sup [L,QSA] RewriteRule ^main/tagother$ index.php?action=tagother [L,QSA] +RewriteRule ^main/block$ index.php?action=block [L,QSA] + RewriteRule ^settings/delete$ index.php?action=deleteprofile [L,QSA] RewriteRule ^settings/profile$ index.php?action=profilesettings [L,QSA] RewriteRule ^settings/openid$ index.php?action=openidsettings [L,QSA] diff --git a/lib/util.php b/lib/util.php index df736cf01..84befa537 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1081,6 +1081,7 @@ function common_fancy_url($action, $args=NULL) { } case 'doc': return common_path('doc/'.$args['title']); + case 'block': case 'login': case 'logout': case 'subscribe': |