diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-22 16:48:04 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-22 16:48:04 -0700 |
commit | 3fc2cfb7f81cca483be7255e20245c8fea2fe0d8 (patch) | |
tree | a6cc0881b4b6af69523fb88822f145c1ce7e02d9 /scripts/publicqueuehandler.php | |
parent | 010d168aaa908073d03be66259042f921dfb861e (diff) |
fix have_options arguments
Diffstat (limited to 'scripts/publicqueuehandler.php')
-rwxr-xr-x | scripts/publicqueuehandler.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/publicqueuehandler.php b/scripts/publicqueuehandler.php index c10c67910..58ecc1745 100755 --- a/scripts/publicqueuehandler.php +++ b/scripts/publicqueuehandler.php @@ -20,8 +20,8 @@ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); -$shortoptions = 'r'; -$longoptions = array('resource'); +$shortoptions = 'r::'; +$longoptions = array('resource::'); $helptext = <<<END_OF_PUBLIC_HELP Daemon script for pushing new notices to public XMPP subscribers. @@ -61,8 +61,8 @@ if (common_config('xmpp','enabled')==false) { exit(); } -if (have_option('-r')) { - $resource = get_option_value('-r'); +if (have_option('r')) { + $resource = get_option_value('r'); } else if (have_option('--resource')) { $resource = get_option_value('--resource'); } else if (count($args) > 0) { |