Index: components/file.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/components/file.inc,v
retrieving revision 1.24
diff -u -p -r1.24 file.inc
--- components/file.inc 28 Sep 2010 22:43:49 -0000 1.24
+++ components/file.inc 16 Oct 2010 13:31:04 -0000
@@ -130,9 +130,9 @@ function _webform_edit_file($component)
'#type' => 'textfield',
'#title' => t('Upload Directory'),
'#default_value' => $component['extra']['savelocation'],
- '#description' => '
' . t('Webform uploads are always saved in the site files directory. You may optionally specify a subfolder to store your files.') . '
',
+ '#description' => t('Webform uploads are always saved in the default files directory. You may optionally specify a subfolder to store your files.'),
'#weight' => 3,
- '#field_prefix' => file_directory_path() . '/webform/',
+ '#field_prefix' => file_stream_wrapper_get_instance_by_scheme(file_default_scheme())->getDirectoryPath() . '/webform/',
'#element_validate' => array('_webform_edit_file_check_directory'),
'#after_build' => array('_webform_edit_file_check_directory'),
);
Index: webform.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.install,v
retrieving revision 1.55
diff -u -p -r1.55 webform.install
--- webform.install 4 Sep 2010 18:12:15 -0000 1.55
+++ webform.install 16 Oct 2010 13:31:04 -0000
@@ -425,7 +425,7 @@ function webform_update_7302() {
* Note that this only deletes visible files with write permission
*
* @param string $path
- * A filepath relative to file_directory_path
+ * An absolute filepath
*/
function _webform_recursive_delete($path) {
if ($path && is_dir($path)) {