Mercurial > defr > drupal > core
comparison modules/update/update.fetch.inc @ 19:3edae6ecd6c6 6.9
Drupal 6.9
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 15 Jan 2009 10:15:56 +0100 |
parents | 2427550111ae |
children |
comparison
equal
deleted
inserted
replaced
18:f5131a9cd9e5 | 19:3edae6ecd6c6 |
---|---|
1 <?php | 1 <?php |
2 // $Id: update.fetch.inc,v 1.7.2.1 2008/04/09 18:36:58 goba Exp $ | 2 // $Id: update.fetch.inc,v 1.7.2.2 2009/01/14 21:36:16 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 */ |
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(t('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'); | |
61 watchdog('update', 'Unable to fetch any information about available new releases and updates.', array(), WATCHDOG_ERROR, l(t('view'), 'admin/reports/updates')); | 60 watchdog('update', 'Unable to fetch any information about available new releases and updates.', array(), WATCHDOG_ERROR, l(t('view'), 'admin/reports/updates')); |
62 } | 61 } |
63 return $available; | 62 return $available; |
64 } | 63 } |
65 | 64 |