From 92939cd69a770cec6fd709a00df3334b491359de 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 b0fd8a2216d..1195c07da53 100644 --- a/lib/filestorage/file_storage.php +++ b/lib/filestorage/file_storage.php @@ -994,7 +994,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'])) {