From c8162f7d978c56c29a504302419b5569c0aa37f3 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 9 Jul 2008 03:28:33 -0400 Subject: [PATCH] accept replyto for fancy newnotice URL darcs-hash:20080709072833-84dde-42c600c5facb073f502318cae389832bd2115927.gz --- lib/util.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 36854eee9b..1a83f0fffa 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':