summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-25 23:42:09 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-25 23:42:09 -0400
commit7e8a58923f5e59c1310e9d20779bf70c99496905 (patch)
tree2b56d27be32a0e890dd2b26364b4017f8012ecc4
parentb5bd56766869e073c184050d19cb7dda576afd61 (diff)
change 'deletenotice' to 'notice/delete'
darcs-hash:20080726034209-84dde-02b25960aeb361319f8037b17aed6290d477cf7b.gz
-rw-r--r--htaccess.sample3
-rw-r--r--lib/util.php4
2 files changed, 4 insertions, 3 deletions
diff --git a/htaccess.sample b/htaccess.sample
index d81ec2481..07246a436 100644
--- a/htaccess.sample
+++ b/htaccess.sample
@@ -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]
diff --git a/lib/util.php b/lib/util.php
index 43b2f2250..dcdb921d6 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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':