summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-04-01 18:29:10 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-04-01 18:29:10 -0400
commite28c4689cee5a832c281b0329c9d279e4bbd9d33 (patch)
tree5acef06e241defce8ec94a279d2cd9c4ad5420a5
parentc172cbafaa9ba17ff8ca5c6dd07741bd0de96871 (diff)
add sup with arguments
-rw-r--r--actions/sup.php2
-rw-r--r--lib/router.php3
2 files changed, 4 insertions, 1 deletions
diff --git a/actions/sup.php b/actions/sup.php
index 8ef9207fa..246b3299d 100644
--- a/actions/sup.php
+++ b/actions/sup.php
@@ -45,7 +45,7 @@ class SupAction extends Action
function availablePeriods()
{
static $periods = array(86400, 43200, 21600, 7200,
- 3600, 1800, 600, 300, 120,
+ 3600, 1800, 600, 300, 120,
60, 30, 15);
$available = array();
foreach ($periods as $period) {
diff --git a/lib/router.php b/lib/router.php
index ae5b5e16b..6fb2f9487 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -107,6 +107,9 @@ class Router
$m->connect('main/'.$a, array('action' => $a));
}
+ $m->connect('main/sup/:seconds', array('action' => 'sup'),
+ array('seconds' => '[0-9]+'));
+
$m->connect('main/tagother/:id', array('action' => 'tagother'));
// these take a code