projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e231ca
)
DataObjects/Images.php
author
Edward
<edward@roojs.com>
Mon, 14 Jan 2013 05:20:19 +0000
(13:20 +0800)
committer
Edward
<edward@roojs.com>
Mon, 14 Jan 2013 05:20:19 +0000
(13:20 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
12bdf8f
..
ad0f903
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-64,7
+64,7
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
$y = new File_MimeType();
$ext = $y->toExt(trim((string) $imageInfo['mime'] ));
#attachment-'. $r->id
- $path = $tmpdir . '/' . time() . '
#attachment
.' . $ext;
+ $path = $tmpdir . '/' . time() . '.' . $ext;
if(!file_exists($path)){
file_put_contents($path, file_get_contents($q['_remote_upload']));
}