Comment 3 for bug 540603

Revision history for this message
Robert Grønning (slimg) wrote :

Ah, would it be okay of I push the following udcountdown_cron.inc patch to remove the curl dependency?

26,32c26
< $cur = curl_init();
< curl_setopt($cur, CURLOPT_URL, $pointer . '/+download/rv');
< curl_setopt($cur, CURLOPT_RETURNTRANSFER, TRUE);
< curl_setopt($cur, CURLOPT_FOLLOWLOCATION, TRUE);
< $curval = curl_exec($cur);
< curl_close($cur);
< $curval = trim($curval);
---
> $curval = file_get_contents("$pointer/+download/rv");

file_get_contents seems to do the same job as curl in this case.

Now I don't receive any error-messages anywhere except for the following in admin/settings/udcountdown :

warning: fopen(sites/default/files/countdown/data/desc.csv) [function.fopen]: failed to open stream: No such file or directory in /nfs/www/no/www.ubuntu.no/htdocs/modules/ubuntu-drupal-countdown/udcountdown_settings.inc on line 65.

Ps. I use IRC for quick questions, if I don't get an answer there I use bugtrackers like this one instead, I don't expect you to answer me immediately on IRC, I'm just trying my luck :)