DataObjects/Images.php
authorjohn <john@roojs.com>
Mon, 4 Dec 2017 03:36:05 +0000 (11:36 +0800)
committerjohn <john@roojs.com>
Mon, 4 Dec 2017 03:36:05 +0000 (11:36 +0800)
DataObjects/Images.php

index b42f7a1..6e4c4ae 100644 (file)
@@ -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);
     {
         $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
         ));
         return implode( '/', array(
             $opts['storedir'], '_images_', date('Y/m', strtotime($this->created)), $this->id . '-'. $fn
         ));