]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
handle seconds argument to SUP
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 26 Oct 2008 15:06:23 +0000 (11:06 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 26 Oct 2008 15:06:23 +0000 (11:06 -0400)
darcs-hash:20081026150623-5ed1f-2aff71bf8faf4957b09d968d60851b4f74f738c4.gz

lib/util.php

index 1bc5b95b00ca452581a4c2ffb3f3753134efe804..10a8a49d2bc20bcfffec0fa6d1dd405b2f1d28fa 100644 (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);
        }