diff --git a/coder_upgrade/CHANGELOG.txt b/coder_upgrade/CHANGELOG.txt index 74c74570084ef5f91364fd267081b7336d4c5211..527c35ee00630a5243753285da962c96ca3851af 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 37f6d36f4bfbeeac4c5a34b84c93c8a840d88508..6bc808ab8f0b296f3db24c06933a704af3795739 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)),