projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba17bb8
)
DataObjects/Images.php
author
Edward
<edward@roojs.com>
Wed, 26 Jun 2013 11:13:31 +0000
(19:13 +0800)
committer
Edward
<edward@roojs.com>
Wed, 26 Jun 2013 11:13:31 +0000
(19:13 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
5229092
..
8148116
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-60,13
+60,12
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
require_once 'System.php';
static $tmpdir = false;
if (!$tmpdir) {
-
$tmpdir = System::mktemp("-d remote_upload");
+ $tmpdir = System::mktemp("-d remote_upload");
}
$path = $tmpdir . '/' . basename($q['_remote_upload']);
- $fetch = false;
+
if(!file_exists($path)){
- $fetch = true;
// use HTTP_Request...
file_put_contents($path, file_get_contents($q['_remote_upload']));
}