~ubuntu-drupal-devs/ubuntu-drupal-countdown/6.x

« back to all changes in this revision

Viewing changes to udcountdown_cron.inc

  • Committer: Michael Lustfield
  • Date: 2009-11-12 14:09:15 UTC
  • Revision ID: michael@profarius.com-20091112140915-c879nao2v7ss8kkr
Fixing simple bug

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
  $pointerver = trim(file_get_contents('http://edge.launchpad.net/ubuntu-drupal-countdown/misc/release-version/+download/pointer'));
17
17
  $pointer = 'https://launchpad.net/ubuntu-drupal-countdown/banners/' . $pointerver;
18
18
 
19
 
  udcountdown_checkver($cache, $pointer);
 
19
  udcountdown_checkver($cache, $pointer, $force);
20
20
}
21
21
 
22
22
/**
23
23
 * Check if banner source changed
24
24
 */
25
 
function udcountdown_checkver($cache, $pointer, $force) {
 
25
function udcountdown_checkver($cache, $pointer, $force = FALSE) {
26
26
  $cur = curl_init();
27
27
  curl_setopt($cur, CURLOPT_URL, $pointer .  '/+download/rv');
28
28
  curl_setopt($cur, CURLOPT_RETURNTRANSFER, TRUE);