MDL-32471 just a trivial change to prevent eventual issues with various preview modes

This commit is contained in:
David Mudrak
2012-04-25 11:53:57 +02:00
parent 8f110835c1
commit 94d104172e
+1 -1
View File
@@ -206,7 +206,7 @@ class file_storage {
// getimagesizefromstring() is available from PHP 5.4 but we need to support
// lower versions, so...
$tmproot = make_temp_directory('thumbnails');
$tmpfilepath = $tmproot.'/'.$file->get_contenthash().'_thumb';
$tmpfilepath = $tmproot.'/'.$file->get_contenthash().'_'.$mode;
file_put_contents($tmpfilepath, $data);
$imageinfo = getimagesize($tmpfilepath);
unlink($tmpfilepath);