Fix to Twitter data storage.

This commit is contained in:
Andrew Tomaka 2011-10-11 00:43:34 -04:00
parent f4e89d5d1c
commit 9981090808

View file

@ -22,7 +22,7 @@ $dataSources = array(
'lastfm' => 60, 'lastfm' => 60,
'sc2ranks' => 43200, 'sc2ranks' => 43200,
'steam' => 3600, 'steam' => 3600,
'wow' => 43200, //'wow' => 43200,
); );
$cacheData = json_decode(file_get_contents($CACHE_FILE),true); $cacheData = json_decode(file_get_contents($CACHE_FILE),true);
@ -57,11 +57,11 @@ function twitter() {
'time' => 0, 'time' => 0,
); );
} else { } else {
$tweet = urlify($tweetInfo->text); $tweet = urlify($tweetInfo[0]->text);
return array( return array(
'text' => $tweet, 'text' => $tweet,
'time' => strtotime($tweetInfo->created_at), 'time' => strtotime($tweetInfo[0]->created_at),
); );
} }
} }