| 1 |
<?php |
<?php |
| 2 |
// $Id: cvs_deploy.module,v 1.20 2008/10/01 22:54:32 dww Exp $ |
// $Id: cvs_deploy.module,v 1.20.2.1 2008/11/19 18:36:00 dww Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 104 |
// update_get_available() here, we'd enter infinite recursion when that |
// update_get_available() here, we'd enter infinite recursion when that |
| 105 |
// function invokes update_status_get_projects(), which in turn needs to |
// function invokes update_status_get_projects(), which in turn needs to |
| 106 |
// process the .info files, which invokes the hook that leads here. |
// process the .info files, which invokes the hook that leads here. |
| 107 |
if (empty($available) && ($cache = cache_get('update_info', 'cache_update'))) { |
if (empty($available)) { |
| 108 |
$available = $cache->data; |
if (function_exists('_update_cache_get')) { |
| 109 |
|
// 6.11 core and later, using the new private cache system. |
| 110 |
|
$cache = _update_cache_get('update_available_releases'); |
| 111 |
|
} |
| 112 |
|
else { |
| 113 |
|
// 6.10 core and earlier, using the (fragile) core cache system. |
| 114 |
|
$cache = cache_get('update_info', 'cache_update'); |
| 115 |
|
} |
| 116 |
|
if (!empty($cache)) { |
| 117 |
|
$available = $cache->data; |
| 118 |
|
} |
| 119 |
} |
} |
| 120 |
$project = update_get_project_name($file); |
$project = update_get_project_name($file); |
| 121 |
if (isset($available[$project]['releases'])) { |
if (isset($available[$project]['releases'])) { |