DataObjects/Images.php
authorEdward <edward@roojs.com>
Wed, 7 May 2014 08:12:18 +0000 (16:12 +0800)
committerEdward <edward@roojs.com>
Wed, 7 May 2014 08:12:18 +0000 (16:12 +0800)
DataObjects/Images.php

index 07d7adb..7687cfe 100644 (file)
@@ -96,29 +96,6 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
             $roo->jok($r->URL(-1,'/Images') . '#attachment-'.  $r->id);
         }
         
-        if(isset($q['_auto_save'])){
-            require_once 'System.php';
-            
-            $tmpdir  = System::mktemp("-d auto_save");
-            
-            $path = $tmpdir . '/' . time();
-            
-            if(!file_exists($path)){
-               file_put_contents($path, $q['_source']); 
-            }
-            
-            $this->ontable = $q['ontable'];
-            $this->onid = $q['onid'];
-            
-            if (!$this->createFrom($path)) {
-                $roo->jerr("error on auto save making image");
-            }
-            
-            $roo->addEvent("AUTOSAVE", $this, $this->toEventString());
-            
-            $this->jok("OK");
-        }
-        
     }