From 0ea7fc2587dc8e46f0ac583a93811234d3262d80 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Mon, 1 Aug 2011 22:43:37 +0700 Subject: [PATCH] MDL-28562 "automatic naming of file in convert_image not working" there is an obvious typo in the code causing the problem. The use of an equality check instead of the intended assignment. --- lib/filestorage/file_storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filestorage/file_storage.php b/lib/filestorage/file_storage.php index 4c97d64f2f2..d7a434fa530 100644 --- a/lib/filestorage/file_storage.php +++ b/lib/filestorage/file_storage.php @@ -950,7 +950,7 @@ class file_storage { } if (!isset($file_record['filename'])) { - $file_record['filename'] == $file->get_filename(); + $file_record['filename'] = $file->get_filename(); } if (!isset($file_record['mimetype'])) {