enjitqueuehandler uses functions to check options
This commit is contained in:
parent
a81350f655
commit
0b6f3870ad
@ -120,15 +120,12 @@ class EnjitQueueHandler extends QueueHandler
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mb_internal_encoding('UTF-8');
|
if (have_option('-i')) {
|
||||||
|
$id = get_option_value('-i');
|
||||||
$id = NULL;
|
} else if (have_option('--id')) {
|
||||||
|
$id = get_option_value('--id');
|
||||||
foreach ($options as $option) {
|
} else {
|
||||||
if ($option[0] == '--id' || $option[0] == '-i') {
|
$id = null;
|
||||||
$id = $option[1];
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$handler = new EnjitQueueHandler($id);
|
$handler = new EnjitQueueHandler($id);
|
||||||
|
Loading…
Reference in New Issue
Block a user