diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-07-17 18:09:03 -0700 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-07-17 18:09:03 -0700 |
commit | 5d5401b371a7e88140219216f3daa9f9c6fecaaf (patch) | |
tree | d67968b43d7078a9057198c939727c40e3a0f722 /scripts/twitterstatusfetcher.php | |
parent | 64853769b3b90e24b16dfd4d10de3f64b97fd5e5 (diff) |
Fix setting id.
Diffstat (limited to 'scripts/twitterstatusfetcher.php')
-rwxr-xr-x | scripts/twitterstatusfetcher.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/twitterstatusfetcher.php b/scripts/twitterstatusfetcher.php index 8b10bfbad..248cf86f1 100755 --- a/scripts/twitterstatusfetcher.php +++ b/scripts/twitterstatusfetcher.php @@ -32,7 +32,7 @@ $helptext = <<<END_OF_TRIM_HELP Batch script for retrieving Twitter messages from foreign service. -i --id Identity (default 'generic') - + END_OF_TRIM_HELP; require_once INSTALLDIR.'/scripts/commandline.inc'; @@ -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(); |