Use newer MIME functions.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 25 Nov 2008 06:22:52 +0000 (23:22 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 25 Nov 2008 06:22:52 +0000 (23:22 -0700)
imp/saveimage.php

index 6f83bad..b394c71 100644 (file)
@@ -19,9 +19,9 @@ $actionID = Util::getFormData('actionID');
 switch ($actionID) {
 case 'save_image':
     $contents = &IMP_Contents::singleton($index);
-    $mime_part = $contents->getDecodedMIMEPart($id);
+    $mime_part = $contents->getMIMEPart($id);
     $image_data = array(
-        'filename' => $mime_part->getName(true, true),
+        'filename' => $mime_part->getName(true),
         'description' => $mime_part->getDescription(true),
         'data' => $mime_part->getContents(),
         'type' => $mime_part->getType()