DataObjects/Images.php
authoredward <edward@roojs.com>
Wed, 6 Sep 2017 03:30:46 +0000 (11:30 +0800)
committeredward <edward@roojs.com>
Wed, 6 Sep 2017 03:30:46 +0000 (11:30 +0800)
DataObjects/Images.php

index f1ae557..9bb9898 100644 (file)
@@ -779,7 +779,9 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         }
         
         $type = pathinfo($file, PATHINFO_EXTENSION);
-        $data = file_get_contents($path);
+        
+        $data = file_get_contents($type);
+        
         $base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
     }