handle seconds argument to SUP

darcs-hash:20081026150623-5ed1f-2aff71bf8faf4957b09d968d60851b4f74f738c4.gz
This commit is contained in:
Evan Prodromou 2008-10-26 11:06:23 -04:00
parent a528cff1a1
commit 91ce2ecd70

View File

@ -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);
}