projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6299e
)
DataObjects/Images.php
author
Edward
<edward@roojs.com>
Wed, 26 Jun 2013 11:27:03 +0000
(19:27 +0800)
committer
Edward
<edward@roojs.com>
Wed, 26 Jun 2013 11:27:03 +0000
(19:27 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
d5a6241
..
7b8fe04
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-75,10
+75,9
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
$y = new File_MimeType();
$ext = $y->toExt(trim((string) $imageInfo['mime'] ));
- if (!preg_match("/\." . $ext."$/", $path, $matches)) {
- rename($path,$path.$ext);
- print_r($path);exit;
- }
+// if (!preg_match("/\." . $ext."$/", $path, $matches)) {
+// rename($path,$path.$ext);
+// }
if (!$this->createFrom($path)) {
$roo->jerr("erro making image" . $q['_remote_upload']);