Mercurial > defr > drupal > scald > scald_dailymotion
changeset 9:1907129beb95 tip
Thumbnails: Create the thumbnail directory if it doesn't exist yet
author | Franck Deroche <franck@defr.org> |
---|---|
date | Mon, 13 Sep 2010 14:28:05 +0200 |
parents | da69ba21d0c3 |
children | |
files | scald_dailymotion.module |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scald_dailymotion.module Mon Jul 26 14:48:55 2010 +0200 +++ b/scald_dailymotion.module Mon Sep 13 14:28:05 2010 +0200 @@ -133,7 +133,7 @@ // to do interesting things when used with ImageCache for example. $thumb = drupal_http_request($infos->thumbnail['src']); $dir = file_directory_path() . '/dailymotion'; - if ($thumb->code == 200 && file_check_directory($dir)) { + if ($thumb->code == 200 && file_check_directory($dir, FILE_CREATE_DIRECTORY)) { $dest = $dir . '/' . $infos->id . '.jpg'; $file = file_save_data($thumb->data, $dest); }