$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']);
$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));
}