summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Berry2009-08-24 16:25:21 (GMT)
committer Jim Berry2009-08-24 16:25:21 (GMT)
commit7179725e7a547730a6aedaaff7d05095582c9b67 (patch)
tree699c8b69ede2a0db002ff141978c54ad9c599143
parentb06e1960d2890cacd8a96e7a765733fa5f5e31c6 (diff)
Change calls to file_check_directory to file_prepare_directory in light of core function rename.
-rw-r--r--coder_upgrade/CHANGELOG.txt3
-rw-r--r--coder_upgrade/coder_upgrade.install12
2 files changed, 9 insertions, 6 deletions
diff --git a/coder_upgrade/CHANGELOG.txt b/coder_upgrade/CHANGELOG.txt
index 74c7457..527c35e 100644
--- a/coder_upgrade/CHANGELOG.txt
+++ b/coder_upgrade/CHANGELOG.txt
@@ -2,6 +2,9 @@
coder_upgrade 7.x-1.x, 2009-xx-xx (development version)
---------------------------------
+- Changes (2009-08-24):
+ * Change calls to file_check_directory to file_prepare_directory in light of core function rename.
+
- Changes (2009-08-17):
* Group conversion routines by processing order (beginning, middle, or end).
* Separate middle conversion routines into two groups (regex and parser) to utilize the PGP API.
diff --git a/coder_upgrade/coder_upgrade.install b/coder_upgrade/coder_upgrade.install
index 37f6d36..6bc808a 100644
--- a/coder_upgrade/coder_upgrade.install
+++ b/coder_upgrade/coder_upgrade.install
@@ -18,19 +18,19 @@ function coder_upgrade_install() {
// Because the core function is now recursive, we could start with the
// subdirectories. However, this code is clean and allows for one else block.
$dir = file_directory_path() . '/' . DEADWOOD_DIR;
- if (file_check_directory($dir, FILE_CREATE_DIRECTORY)) {
+ if (file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) {
// Create the old and new module directories.
$dir = file_directory_path() . '/' . DEADWOOD_OLD;
- if (!file_check_directory($dir, FILE_CREATE_DIRECTORY)) {
+ if (!file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) {
drupal_set_message(st('The files directory at %directory can not be written to. This is the default directory searched by Coder Upgrade for modules to be converted.', array('%directory' => $dir)), 'error');
}
$dir = file_directory_path() . '/' . DEADWOOD_NEW;
- if (!file_check_directory($dir, FILE_CREATE_DIRECTORY)) {
+ if (!file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) {
drupal_set_message(st('The files directory at %directory can not be written to. This is the default directory to which Coder Upgrade writes converted module code.', array('%directory' => $dir)), 'error');
}
// Create the patch directory.
$dir = file_directory_path() . '/' . DEADWOOD_PATCH;
- if (!file_check_directory($dir, FILE_CREATE_DIRECTORY)) {
+ if (!file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) {
drupal_set_message(st('The files directory at %directory can not be written to. This is the default directory to which Coder Upgrade writes patch files.', array('%directory' => $dir)), 'error');
}
}
@@ -73,7 +73,7 @@ function coder_upgrade_requirements($phase) {
);
}
$dir = file_directory_path();
- if (!file_check_directory($dir, FILE_CREATE_DIRECTORY)) {
+ if (!file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) {
$requirements['coder_upgrade_files'] = array(
'title' => t('Files directory'),
'description' => t('Your files directory at %directory can not be written to. Coder Upgrade places converted module code in subdirectories of this directory.', array('%directory' => $dir)),
@@ -83,7 +83,7 @@ function coder_upgrade_requirements($phase) {
}
else {
$dir = file_directory_path() . '/' . variable_get('coder_upgrade_dir_new', DEADWOOD_NEW);
- if (!file_check_directory($dir, FILE_CREATE_DIRECTORY)) {
+ if (!file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) {
$requirements['coder_upgrade_files'] = array(
'title' => t('Coder Upgrade directory'),
'description' => t('Your files directory at %directory can not be written to. Coder Upgrade places converted module code in subdirectories of this directory.', array('%directory' => $dir)),