RewriteRule ^notice/new$ index.php?action=newnotice [L,QSA]
RewriteRule ^notice/(\d+)$ index.php?action=shownotice¬ice=$1 [L,QSA]
-RewriteRule ^deletenotice/((\d+))?$ index.php?action=deletenotice¬ice=$2 [L,QSA]
+RewriteRule ^notice/delete/((\d+))?$ index.php?action=deletenotice¬ice=$2 [L,QSA]
+RewriteRule ^notice/delete$ index.php?action=deletenotice [L,QSA]
RewriteRule ^user/(\d+)$ index.php?action=userbyid&id=$1 [L,QSA]
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':