changeset 3:2a63a6e15166

Thumbnails: Don't try to file_set_status, they're not in the {files} table
author Franck Deroche <franck@defr.org>
date Mon, 19 Jul 2010 14:45:25 +0200
parents c57b2ac8f84c
children fd5fb845d0bc
files scald_dailymotion.module
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;