Images.php
authorAlan <alan@roojs.com>
Mon, 10 Jan 2022 06:56:24 +0000 (14:56 +0800)
committerAlan <alan@roojs.com>
Mon, 10 Jan 2022 06:56:24 +0000 (14:56 +0800)
Images.php

index 9b23f39..11c8659 100644 (file)
@@ -533,12 +533,13 @@ class Pman_Core_Images extends Pman
         
          
     }
-    static $image = 1;
+    
     static function replaceDataUrl($baseURL, $img, $obj)
     {
         $d = DB_DataObject::Factory('Images');
         $d->object($obj);
-        $d->filename = 'image-'. self::$image++;
+        
+        
         $d->createFromData($img->getAttribute('src'));
         $img->setAttribute('src', $d->URL(-1, 'Images' , $baseURL));
     }