Images.php
authorAlan Knowles <alan@roojs.com>
Mon, 23 Jul 2012 05:41:14 +0000 (13:41 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Jul 2012 05:41:14 +0000 (13:41 +0800)
Images.php

index 303777b..ce18877 100644 (file)
@@ -161,7 +161,7 @@ class Pman_Core_Images extends Pman
         $this->mimetype = $_REQUEST['mimetype'];
         require_once 'File/MimeType.php';
         $y = new File_MimeType();
-        $src_ext = $y->toExt($filename);
+        $src_ext = $y->toExt( $this->mimetype);
         
         
         $tmp = $this->tempName($src_ext);