From: Evan Prodromou Date: Sun, 26 Oct 2008 15:06:23 +0000 (-0400) Subject: handle seconds argument to SUP X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=91ce2ecd7010e99a8f0c34ae15ff2c176850761e;p=quix0rs-gnu-social.git handle seconds argument to SUP darcs-hash:20081026150623-5ed1f-2aff71bf8faf4957b09d968d60851b4f74f738c4.gz --- 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); }