summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-10-26 11:06:23 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-10-26 11:06:23 -0400
commit91ce2ecd7010e99a8f0c34ae15ff2c176850761e (patch)
treeb4e5427c0e98441d4d18b4cc13d8ce682464580b
parenta528cff1a1391f92c1f9be47bffbacf0c6874ac4 (diff)
handle seconds argument to SUP
darcs-hash:20081026150623-5ed1f-2aff71bf8faf4957b09d968d60851b4f74f738c4.gz
-rw-r--r--lib/util.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 1bc5b95b0..10a8a49d2 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);
}