Permalink
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...
1 parent 72b19ba commit 92939cd69a770cec6fd709a00df3334b491359de @jamiepratt jamiepratt committed with nebgor Aug 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filestorage/file_storage.php
@@ -994,7 +994,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'])) {

0 comments on commit 92939cd

Please sign in to comment.