diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-22 15:42:16 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-22 15:42:16 -0700 |
commit | 0b6f3870ad1f77594e8f6dda18465188400aa2e5 (patch) | |
tree | 00947dfe9305b046e4849c51f9eb07aca33e9c45 /scripts/enjitqueuehandler.php | |
parent | a81350f6559a59921443d9773eccc9f8cfd96ee1 (diff) |
enjitqueuehandler uses functions to check options
Diffstat (limited to 'scripts/enjitqueuehandler.php')
-rwxr-xr-x | scripts/enjitqueuehandler.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/scripts/enjitqueuehandler.php b/scripts/enjitqueuehandler.php index c17b4e27f..2418d2d1c 100755 --- a/scripts/enjitqueuehandler.php +++ b/scripts/enjitqueuehandler.php @@ -120,15 +120,12 @@ class EnjitQueueHandler extends QueueHandler } -mb_internal_encoding('UTF-8'); - -$id = NULL; - -foreach ($options as $option) { - if ($option[0] == '--id' || $option[0] == '-i') { - $id = $option[1]; - break; - } +if (have_option('-i')) { + $id = get_option_value('-i'); +} else if (have_option('--id')) { + $id = get_option_value('--id'); +} else { + $id = null; } $handler = new EnjitQueueHandler($id); |