Skip to content
Snippets Groups Projects
Commit 368a4a9a authored by muka's avatar muka Committed by Franz Glauber Vanderlinde
Browse files

Issue #1612246: Fixing introduced error on filepath generation.

parent 4114ef7f
No related branches found
No related tags found
No related merge requests found
...@@ -349,8 +349,8 @@ class FeedsEnclosure extends FeedsElement { ...@@ -349,8 +349,8 @@ 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);
} }
if(file_uri_target($destination)) { if (file_uri_target($destination)) {
$destination .= trim($destination, '/') . '/'; $destination = trim($destination, '/') . '/';
} }
$file = file_save_data($this->getContent(), $destination . $filename); $file = file_save_data($this->getContent(), $destination . $filename);
} }
......
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