From 9981090808ca222919a7d8b0c2112d784a21fb11 Mon Sep 17 00:00:00 2001 From: atomaka Date: Tue, 11 Oct 2011 00:43:34 -0400 Subject: [PATCH] Fix to Twitter data storage. --- cronjobs/index_data.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cronjobs/index_data.php b/cronjobs/index_data.php index 9d5a817..237ac7e 100644 --- a/cronjobs/index_data.php +++ b/cronjobs/index_data.php @@ -22,7 +22,7 @@ $dataSources = array( 'lastfm' => 60, 'sc2ranks' => 43200, 'steam' => 3600, - 'wow' => 43200, + //'wow' => 43200, ); $cacheData = json_decode(file_get_contents($CACHE_FILE),true); @@ -57,11 +57,11 @@ function twitter() { 'time' => 0, ); } else { - $tweet = urlify($tweetInfo->text); + $tweet = urlify($tweetInfo[0]->text); return array( 'text' => $tweet, - 'time' => strtotime($tweetInfo->created_at), + 'time' => strtotime($tweetInfo[0]->created_at), ); } }