Fix setting id.
This commit is contained in:
parent
64853769b3
commit
5d5401b371
@ -61,6 +61,15 @@ class TwitterStatusFetcher extends Daemon
|
||||
{
|
||||
private $_children = array();
|
||||
|
||||
function __construct($id=null, $daemonize=true)
|
||||
{
|
||||
parent::__construct($daemonize);
|
||||
|
||||
if ($id) {
|
||||
$this->set_id($id);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of this daemon
|
||||
*
|
||||
@ -640,6 +649,8 @@ if (have_option('i')) {
|
||||
$id = null;
|
||||
}
|
||||
|
||||
common_debug("id set to $id");
|
||||
|
||||
$fetcher = new TwitterStatusFetcher($id);
|
||||
$fetcher->runOnce();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user