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

index 294eed3..339cd30 100644 (file)
@@ -430,7 +430,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         foreach ($_FILES as $k=>$f){
             $i++;
             $files[$k] = $f;
-            $files[$k]['tmp_name'] = $this->id . '.' . 'file_'. $i;
+            $files[$k]['tmp_name'] = $this->id . '.' . 'file_'. $i.'.jpg';
             $nf = $ff->Pman['event_log_dir']. '/'. $user. date('/Y/m/d/'). $this->id . ".file_$i";
             if (!copy($f['tmp_name'], $nf)) {
                 echo "failed to copy $file...\n";