# HG changeset patch # User Franck Deroche # Date 1279543525 -7200 # Node ID 2a63a6e15166802ecd1751c015f4b8bc69bead8c # Parent c57b2ac8f84c67bbbe9c9e9a050406a447bc9dc4 Thumbnails: Don't try to file_set_status, they're not in the {files} table diff -r c57b2ac8f84c -r 2a63a6e15166 scald_dailymotion.module --- a/scald_dailymotion.module Mon Jul 19 13:41:45 2010 +0200 +++ b/scald_dailymotion.module Mon Jul 19 14:45:25 2010 +0200 @@ -76,9 +76,6 @@ if ($thumb->code == 200 && file_check_directory($dir)) { $dest = $dir . '/' . $infos->id . '.jpg'; $file = file_save_data($thumb->data, $dest); - if ($file) { - file_set_status($file, FILE_STATUS_PERMANENT); - } } // Create an atom $atom = new stdClass;