Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca3e8e9
)
MDL-28562 "automatic naming of file in convert_image not working"
author
Jamie Pratt
<me@jamiep.org>
Mon, 1 Aug 2011 15:43:37 +0000
(22:43 +0700)
committer
Jamie Pratt
<me@jamiep.org>
Mon, 1 Aug 2011 15:43:37 +0000
(22:43 +0700)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/filestorage/file_storage.php
b/lib/filestorage/file_storage.php
index
4c97d64
..
d7a434f
100644
(file)
--- 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'])) {