drupal_realpath('public://') is the new file_directory_path(). See also http://api.drupal.org/api/drupal/includes--file.inc/function/file_direct...
// '#description' => t('Subdirectory in the directory %dir where cache files will be stored.', array('%dir' => file_directory_path() . '/')),
'#description' => t('Subdirectory in the directory %dir where cache files will be stored.', array('%dir' => drupal_realpath('public://') . '/')),
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | simplepie_d7_patch_2.zip | 1021 bytes | agerson |
| #2 | simplepie_d7_patch.zip | 1006 bytes | agerson |
Comments
Comment #1
agerson commentedhttp://drupal.org/update/modules/6/7#file_directory_path
Comment #2
agerson commentedEDIT: This patch does not work
Comment #3
agerson commentedThis one should. Please test.
Comment #4
zeahgan_white commentedthe patch doesn't work... keeps saying that there aren't any .info files
Comment #5
zeahgan_white commentedthe patch doesn't work... keeps saying that there aren't any .info files
Comment #6
digitalRoots commented'#description' => t('Subdirectory in the directory %dir where cache files will be stored.', array('%dir' => file_directory_path() . '/')),
to
'#description' => t('Subdirectory in the directory %dir where cache files will be stored.', array('%dir' => variable_get('file_' . file_default_scheme() . '_path', conf_path() . '/'))),
$simplepie->set_cache_location(file_directory_path() .'/'. $cache_location);
to
$simplepie->set_cache_location(variable_get('file_' . file_default_scheme() . '_path', conf_path() .'/'. $cache_location));
Comment #7
kenorb commented