summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-09 03:28:33 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-09 03:28:33 -0400
commitc8162f7d978c56c29a504302419b5569c0aa37f3 (patch)
tree45ad6531bf9a82f72f831f51a4d68a01456e9972 /lib
parentd31624629e17d1809095389f43fe22f47d8c1d58 (diff)
accept replyto for fancy newnotice URL
darcs-hash:20080709072833-84dde-42c600c5facb073f502318cae389832bd2115927.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 36854eee9..1a83f0fff 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -730,7 +730,11 @@ function common_fancy_url($action, $args=NULL) {
case 'openidsettings':
return common_path('settings/openid');
case 'newnotice':
- return common_path('notice/new');
+ if ($args && $args['replyto']) {
+ return common_path('notice/new?replyto='.$args['replyto']);
+ } else {
+ return common_path('notice/new');
+ }
case 'shownotice':
return common_path('notice/'.$args['notice']);
case 'xrds':