]> git.mjollnir.org Git - s9y.git/commitdiff
.
authorgarvinhicking <garvinhicking>
Mon, 12 Dec 2005 08:48:53 +0000 (08:48 +0000)
committergarvinhicking <garvinhicking>
Mon, 12 Dec 2005 08:48:53 +0000 (08:48 +0000)
include/admin/importers/movabletype.inc.php
include/functions.inc.php

index 698d6dfbc96090a3a0088c54515de2cc72e12061..5572bfed1330929e214881964a9600dd5b9b2e45 100644 (file)
@@ -393,6 +393,15 @@ class Serendipity_Import_MovableType extends Serendipity_Import {
                     $entry['authorid'] = $serendipity['authorid'];
                     $entry['author']   = $serendipity['realname'];
                 }
+                
+                if (!isset($entry['isdraft'])) {
+                    $entry['isdraft'] = 'false';
+                }
+
+                if (!isset($entry['allow_comments'])) {
+                    $entry['allow_comments'] = 'true';
+                }
+
                 $comments   = $entry['s9y_comments'];
                 $entryprops = $entry['props'];
                 unset($entry['props']);
index a432a6b10a6b488f5993f28d65aaf02e1309bf38..89feac3683a845ca68ecfb0b4947ad5f806488a1 100644 (file)
@@ -398,7 +398,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL
     $headers[] = 'Message-ID: <'. md5(microtime() . uniqid(time())) .'@'. $_SERVER['HTTP_HOST'] .'>';
     $headers[] = 'MIME-Version: 1.0';
     $headers[] = 'Precedence: bulk';
-    $headers[] = 'Content-Type: text/plain; charset="' . LANG_CHARSET .'"';
+    $headers[] = 'Content-Type: text/plain; charset=' . LANG_CHARSET;
 
     return mail($to, $subject, $message, implode("\n", $headers));
 }