]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make enjitqueuehandler use functions and args
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 22 Jun 2009 22:43:26 +0000 (15:43 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 22 Jun 2009 22:43:26 +0000 (15:43 -0700)
scripts/enjitqueuehandler.php

index 2418d2d1c551dd7ce51ed3876bddd5861edcacab..5091347658fa97020f83816ab1c289e87f14e9f9 100755 (executable)
@@ -124,6 +124,8 @@ if (have_option('-i')) {
     $id = get_option_value('-i');
 } else if (have_option('--id')) {
     $id = get_option_value('--id');
+} else if (count($args) > 0) {
+    $id = $args[0];
 } else {
     $id = null;
 }