Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 0ea7fc2587dc8e46f0ac583a93811234d3262d80 1 parent ca3e8e9
@jamiepratt jamiepratt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/filestorage/file_storage.php
View
2  lib/filestorage/file_storage.php
@@ -950,7 +950,7 @@ public function convert_image($file_record, $fid, $newwidth = NULL, $newheight =
}
if (!isset($file_record['filename'])) {
- $file_record['filename'] == $file->get_filename();
+ $file_record['filename'] = $file->get_filename();
}
if (!isset($file_record['mimetype'])) {
Please sign in to comment.
Something went wrong with that request. Please try again.