| 1 |
<?php |
<?php |
| 2 |
// $Id: boost.install,v 1.2.2.1.2.3.2.5 2009/05/26 19:47:12 mikeytown2 Exp $ |
// $Id: boost.install,v 1.2.2.1.2.3.2.6 2009/05/31 17:51:01 mikeytown2 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 55 |
$t = get_t(); |
$t = get_t(); |
| 56 |
switch ($phase) { |
switch ($phase) { |
| 57 |
case 'runtime': |
case 'runtime': |
| 58 |
|
$cache_directory = variable_get('boost_file_path', boost_cache_directory(NULL, FALSE)) |
| 59 |
if ($cache_directory != boost_cache_directory(NULL, FALSE)) { |
if ($cache_directory != boost_cache_directory(NULL, FALSE)) { |
| 60 |
$requirements['boost'] = array( |
$requirements['boost'] = array( |
| 61 |
'title' => $t('Boost'), |
'title' => $t('Boost'), |
| 64 |
'value' => $t('Cache file path'), |
'value' => $t('Cache file path'), |
| 65 |
); |
); |
| 66 |
} |
} |
| 67 |
else if ($cache_directory = variable_get('boost_file_path', boost_cache_directory(NULL, FALSE)) && (!is_dir($cache_directory) || !is_writable($cache_directory))) { |
else if ((!is_dir($cache_directory) || !is_writable($cache_directory))) { |
| 68 |
$requirements['boost'] = array( |
$requirements['boost'] = array( |
| 69 |
'title' => $t('Boost'), |
'title' => $t('Boost'), |
| 70 |
'description' => $t('!cache_dir: does not exist, or is not writable', array('!cache_dir' => $cache_directory)), |
'description' => $t('!cache_dir: does not exist, or is not writable', array('!cache_dir' => $cache_directory)), |