public function LikeBtn::runSyncVotes in Like Button 8.2
Same name and namespace in other branches
- 7 likebtn.php \LikeBtn::runSyncVotes()
Running votes synchronization.
File
- ./
likebtn.php, line 28 - LikeBtn like button.
Class
Code
public function runSyncVotes() {
if (!self::$synchronized && variable_get('likebtn_account_data_email') && variable_get('likebtn_account_data_api_key') && $this
->timeToSyncVotes(variable_get('likebtn_sync_inerval', 60) * 60) && function_exists('curl_init')) {
$this
->syncVotes(variable_get('likebtn_account_data_email'), variable_get('likebtn_account_data_api_key'), variable_get('likebtn_account_site_id'));
}
}