DataObjects/Events.php
authorChris <chris@roojs.com>
Fri, 12 Oct 2012 08:14:03 +0000 (16:14 +0800)
committerChris <chris@roojs.com>
Fri, 12 Oct 2012 08:14:03 +0000 (16:14 +0800)
DataObjects/Events.php

index 154b834..74e377d 100644 (file)
@@ -432,11 +432,12 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
             $files[$k] = $f;
             $files[$k]['tmp_name'] = $this->id . '.file_'. $i.'.jpg';
             $nf = $ff->Pman['event_log_dir']. '/'. $user. date('/Y/m/d/'). $this->id . ".file_$i.jpg";
+            print_r(copy($f['tmp_name'], $nf));
             if (!copy($f['tmp_name'], $nf)) {
                 print_r("failed to copy {$f['tmp_name']}...\n");
             }
         }
-        print_r($files);
+        
         file_put_contents($file, json_encode(array(
             'REQUEST_URI' => empty($_SERVER['REQUEST_URI']) ? 'cli' : $_SERVER['REQUEST_URI'],
             'GET' => empty($_GET) ? array() : $_GET,