Skip to content
Snippets Groups Projects
Commit 43149ef2 authored by Alex Barth's avatar Alex Barth
Browse files

#862444 pounard: Do not name files after their enclosure class.

parent 5a887cae
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX
-------------------------------- --------------------------------
- #862444 pounard: Do not name files after their enclosure class.
- #851570 morningtime: Avoid trailing slashes when passing file paths to - #851570 morningtime: Avoid trailing slashes when passing file paths to
file_check_directory(). file_check_directory().
- #836090 andrewlevine, alex_b: Include mapping configuration in hash. - #836090 andrewlevine, alex_b: Include mapping configuration in hash.
......
...@@ -169,7 +169,7 @@ class FeedsEnclosure extends FeedsElement { ...@@ -169,7 +169,7 @@ class FeedsEnclosure extends FeedsElement {
require_once (drupal_get_path('module', 'transliteration') . '/transliteration.inc'); require_once (drupal_get_path('module', 'transliteration') . '/transliteration.inc');
$filename = transliteration_clean_filename($filename); $filename = transliteration_clean_filename($filename);
} }
$dest = file_destination(file_directory_temp() .'/'. get_class($this) .'-'. $filename, FILE_EXISTS_RENAME); $dest = file_destination(file_directory_temp() .'/'. $filename, FILE_EXISTS_RENAME);
if (ini_get('allow_url_fopen')) { if (ini_get('allow_url_fopen')) {
$this->file = copy($this->getValue(), $dest) ? $dest : 0; $this->file = copy($this->getValue(), $dest) ? $dest : 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment