From 91ce2ecd7010e99a8f0c34ae15ff2c176850761e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 26 Oct 2008 11:06:23 -0400 Subject: [PATCH] handle seconds argument to SUP darcs-hash:20081026150623-5ed1f-2aff71bf8faf4957b09d968d60851b4f74f738c4.gz --- lib/util.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 1bc5b95b00..10a8a49d2b 100644 --- a/lib/util.php +++ b/lib/util.php @@ -976,7 +976,11 @@ function common_fancy_url($action, $args=NULL) { default: return common_simple_url($action, $args); } case 'sup': - return common_path('main/sup'); + if ($args && isset($args['seconds'])) { + return common_path('main/sup?seconds='.$args['seconds']); + } else { + return common_path('main/sup'); + } default: return common_simple_url($action, $args); } -- 2.39.5