comparison modules/update/update.fetch.inc @ 5:2427550111ae 6.2

Drupal 6.2
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:30:08 +0100
parents c1f4ac30525a
children 3edae6ecd6c6
comparison
equal deleted inserted replaced
4:d94886ac61a0 5:2427550111ae
1 <?php 1 <?php
2 // $Id: update.fetch.inc,v 1.7 2008/01/30 10:14:42 goba Exp $ 2 // $Id: update.fetch.inc,v 1.7.2.1 2008/04/09 18:36:58 goba Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Code required only when fetching information about available updates. 6 * Code required only when fetching information about available updates.
7 */ 7 */
52 } 52 }
53 if (!empty($available) && is_array($available)) { 53 if (!empty($available) && is_array($available)) {
54 $frequency = variable_get('update_check_frequency', 1); 54 $frequency = variable_get('update_check_frequency', 1);
55 cache_set('update_info', $available, 'cache_update', time() + (60 * 60 * 24 * $frequency)); 55 cache_set('update_info', $available, 'cache_update', time() + (60 * 60 * 24 * $frequency));
56 variable_set('update_last_check', time()); 56 variable_set('update_last_check', time());
57 watchdog('update', 'Fetched information about all available new releases and updates.', array(), WATCHDOG_NOTICE, l('view', 'admin/reports/updates')); 57 watchdog('update', 'Fetched information about all available new releases and updates.', array(), WATCHDOG_NOTICE, l(t('view'), 'admin/reports/updates'));
58 } 58 }
59 else { 59 else {
60 module_invoke('system', 'check_http_request'); 60 module_invoke('system', 'check_http_request');
61 watchdog('update', 'Unable to fetch any information about available new releases and updates.', array(), WATCHDOG_ERROR, l('view', 'admin/reports/updates')); 61 watchdog('update', 'Unable to fetch any information about available new releases and updates.', array(), WATCHDOG_ERROR, l(t('view'), 'admin/reports/updates'));
62 } 62 }
63 return $available; 63 return $available;
64 } 64 }
65 65
66 /** 66 /**