}
$file = serendipity_fetchImageFromDatabase($serendipity['GET']['image']);
- $file['imgsrc'] = $serendipity['serendipityHTTPPath'] . $serendipity['uploadPath'] . $file['path'] . $file['name'] . '.' . $file['thumbnail_name'] . '.' . $file['extension'];
+ $file['imgsrc'] = $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $file['path'] . $file['name'] . '.' . $file['thumbnail_name'] . '.' . $file['extension'];
if ($file['hotlink']) {
$imgName = $file['path'];
} else {
<?php if ($file['hotlink']) { ?>
<input type="text" name="serendipity[url]" size="30" value="<?php echo $file['path']; ?>" /><br />
<?php } else { ?>
- <input type="text" name="serendipity[url]" size="30" value="<?php echo $serendipity['serendipityHTTPPath'] . $serendipity['uploadPath'] . $file['path'] . $file['name'] .'.'. $file['extension']; ?>" /><br />
+ <input type="text" name="serendipity[url]" size="30" value="<?php echo $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $file['path'] . $file['name'] .'.'. $file['extension']; ?>" /><br />
<?php } ?>
<?php serendipity_plugin_api::hook_event('frontend_image_selector_imagelink', $file); ?>
<br />