summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Wierzbowski2012-11-15 17:40:10 (GMT)
committer Rob Wierzbowski2012-11-15 17:40:10 (GMT)
commit5aa2a860f7fb054a456276eac58dcf8a7b1ced48 (patch)
tree1015740d42ca78fe833205a253dd1b4c52ca33a0
parentbf1c4544109c5deb36da749c5b403fcc89830627 (diff)
Issue #1836926 by coredumperror: Fix hardcoded file scheme for thumbnail storage.
-rw-r--r--includes/MediaYouTubeStreamWrapper.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/MediaYouTubeStreamWrapper.inc b/includes/MediaYouTubeStreamWrapper.inc
index 4501cb2..cbdc1f2 100644
--- a/includes/MediaYouTubeStreamWrapper.inc
+++ b/includes/MediaYouTubeStreamWrapper.inc
@@ -43,7 +43,7 @@ class MediaYouTubeStreamWrapper extends MediaReadOnlyStreamWrapper {
function getLocalThumbnailPath() {
$parts = $this->get_parameters();
- $local_path = 'public://media-youtube/' . check_plain($parts['v']) . '.jpg';
+ $local_path = file_default_scheme() . '://media-youtube/' . check_plain($parts['v']) . '.jpg';
if (!file_exists($local_path)) {
$dirname = drupal_dirname($local_path);
file_prepare_directory($dirname, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);