isp - fix for 0.43
This commit is contained in:
parent
1ce276837e
commit
c57b82e34f
|
@ -548,15 +548,15 @@ class serendipity_event_imageselectorplus extends serendipity_event
|
|||
$entry['isdraft'] = 'false';
|
||||
$entry['title'] = htmlspecialchars($serendipity['POST']['quickblog']['title']);
|
||||
if (isset($objpath) && !empty($objpath)) {
|
||||
$entry['body'] = '<a href="' . $objpath . '"><img alt="" class="serendipity_image_left serendipity_quickblog_image" src="' . $objpreview . '">' . $filename . '</a> (-'.$obj_mime.'-)<p>' . ($serendipity['wysiwyg'] ? $serendipity['POST']['quickblog']['body'] : htmlspecialchars($serendipity['POST']['quickblog']['body'])) . '</p>';
|
||||
$entry['body'] = '<a href="' . $objpath . '"><img alt="" class="serendipity_image_left serendipity_quickblog_image" src="' . $objpreview . '">' . $filename . '</a> (-'.$obj_mime.'-)<p>' . $serendipity['POST']['quickblog']['body'] . '</p>';
|
||||
} else {
|
||||
$entry['body'] = '<!--quickblog:' . htmlspecialchars($serendipity['POST']['quickblog']['target']) . '|' . $eventData . '-->' . ($serendipity['wysiwyg'] ? $serendipity['POST']['quickblog']['body'] : htmlspecialchars($serendipity['POST']['quickblog']['body']));
|
||||
$entry['body'] = '<!--quickblog:' . $serendipity['POST']['quickblog']['target'] . '|' . $eventData . '-->' . $serendipity['POST']['quickblog']['body'];
|
||||
}
|
||||
$entry['authorid'] = $serendipity['authorid'];
|
||||
$entry['exflag'] = false;
|
||||
$entry['categories'][0] = htmlspecialchars($serendipity['POST']['quickblog']['category']);
|
||||
#$entry['allow_comments'] = 'true'; //disabled to take default values
|
||||
#$entry['moderate_comments'] = 'false'; //disabled to take default values
|
||||
#$entry['allow_comments'] = 'true'; // disabled to take default values
|
||||
#$entry['moderate_comments'] = 'false'; // disabled to take default values
|
||||
$serendipity['POST']['properties']['fake'] = 'fake';
|
||||
$id = serendipity_updertEntry($entry);
|
||||
|
||||
|
|
Loading…
Reference in a new issue