? modules/devel.module Index: modules/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system.module,v retrieving revision 1.229 diff -u -r1.229 system.module --- modules/system.module 28 Aug 2005 18:17:47 -0000 1.229 +++ modules/system.module 8 Sep 2005 17:54:09 -0000 @@ -733,7 +733,8 @@ $group = form_checkbox(t('Use the default logo'), "$var][default_logo", 1, $settings['default_logo'], t('Check here if you want the theme to use the logo supplied with it.')); $group .= form_textfield(t('Path to custom logo'), "$var][logo_path", $settings['logo_path'], 60, 128, t('The path to the file you would like to use as your logo file instead of the default logo.')); - file_check_directory(variable_get('file_directory_path', 'files'), FILE_CREATE_DIRECTORY, 'file_directory_path'); + $directory_path = variable_get('file_directory_path', 'files'); + file_check_directory($directory_path, FILE_CREATE_DIRECTORY, 'file_directory_path'); $group .= form_file(t('Upload logo image'), 'logo_upload', 40, t("If you don't have direct file access to the server, use this field to upload your logo.")); $form .= form_group(t('Logo image settings'), $group); Index: modules/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user.module,v retrieving revision 1.506 diff -u -r1.506 user.module --- modules/user.module 7 Sep 2005 20:56:00 -0000 1.506 +++ modules/user.module 8 Sep 2005 17:55:17 -0000 @@ -1363,7 +1363,8 @@ // If picture support is enabled, check whether the picture directory exists: if (variable_get('user_pictures', 0)) { - file_check_directory(file_create_path(variable_get('user_picture_path', 'pictures')), 1, 'user_picture_path'); + $picture_path = file_create_path(variable_get('user_picture_path', 'pictures')); + file_check_directory($picture_path, 1, 'user_picture_path'); } $group = form_radios(t('Picture support'), 'user_pictures', variable_get('user_pictures', 0), array(t('Disabled'), t('Enabled')), t('Enable picture support.'));