projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9f644a
)
DataObjects/Images.php
author
john
<john@roojs.com>
Mon, 4 Dec 2017 03:36:05 +0000
(11:36 +0800)
committer
john
<john@roojs.com>
Mon, 4 Dec 2017 03:36:05 +0000
(11:36 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
b42f7a1
..
6e4c4ae
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-185,6
+185,9
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
{
$opts = HTML_FlexyFramework::get()->Pman;
$fn = preg_replace('/[^a-z0-9\.]+/i', '_', $this->filename);
+ print_r(implode( '/', array(
+ $opts['storedir'], '_images_', date('Y/m', strtotime($this->created)), $this->id . '-'. $fn
+ )));exit;
return implode( '/', array(
$opts['storedir'], '_images_', date('Y/m', strtotime($this->created)), $this->id . '-'. $fn
));