change 'deletenotice' to 'notice/delete'

darcs-hash:20080726034209-84dde-02b25960aeb361319f8037b17aed6290d477cf7b.gz
This commit is contained in:
Evan Prodromou 2008-07-25 23:42:09 -04:00
parent b5bd567668
commit 7e8a58923f
2 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,8 @@ RewriteRule ^search/notice/rss$ index.php?action=noticesearchrss [L,QSA]
RewriteRule ^notice/new$ index.php?action=newnotice [L,QSA]
RewriteRule ^notice/(\d+)$ index.php?action=shownotice&notice=$1 [L,QSA]
RewriteRule ^deletenotice/((\d+))?$ index.php?action=deletenotice&notice=$2 [L,QSA]
RewriteRule ^notice/delete/((\d+))?$ index.php?action=deletenotice&notice=$2 [L,QSA]
RewriteRule ^notice/delete$ index.php?action=deletenotice [L,QSA]
RewriteRule ^user/(\d+)$ index.php?action=userbyid&id=$1 [L,QSA]

View File

@ -825,9 +825,9 @@ function common_fancy_url($action, $args=NULL) {
return common_path('notice/'.$args['notice']);
case 'deletenotice':
if ($args && $args['notice']) {
return common_path('deletenotice/'.$args['notice']);
return common_path('notice/delete/'.$args['notice']);
} else {
return common_path('deletenotice/');
return common_path('notice/delete');
}
case 'xrds':
case 'foaf':