]> git.mjollnir.org Git - s9y.git/commitdiff
Fix preview path
authorgarvinhicking <garvinhicking>
Fri, 4 Nov 2005 10:49:32 +0000 (10:49 +0000)
committergarvinhicking <garvinhicking>
Fri, 4 Nov 2005 10:49:32 +0000 (10:49 +0000)
docs/NEWS
include/functions_images.inc.php

index 830c14eff11a659cc34dfe20e5d0497db6e9ab16..e65a72daee5a727e7fff445deefa4acacd79d82c 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,9 @@
 Version 0.9.1 ()
 ------------------------------------------------------------------------
 
+    * Fix showing preview image of hotlinked images. Thanks to Thomas
+      and RobA from the forums! (garvinhicking)
+
     * Make Onyx RSS parser interpret HTTP redirecty. (Kristian Köhntopp)
 
     * Added blogger.com importer by Jawish Hameed
index f2192ea3b8e5785b00478238294f399e372cbca2..d18fd1220d9693c7a87409962d5786cb47eb3b3a 100644 (file)
@@ -1047,7 +1047,7 @@ function serendipity_displayImageList($page = 0, $lineBreak = NULL, $manage = fa
                 }
             } elseif ($is_image && $file['hotlink']) {
                 $sizes = serendipity_calculate_aspect_size($file['dimensions_width'], $file['dimensions_height'], $serendipity['thumbSize']);
-                $preview .= '<img src="' . $serendipity['serendipityHTTPPath'] . $file['path'] . '" width="' . $sizes[0] . '" height="' . $sizes[1] . '" border="0" title="' . $file['path'] . '" alt="'. $file['name'] . '" />';
+                $preview .= '<img src="' . $file['path'] . '" width="' . $sizes[0] . '" height="' . $sizes[1] . '" border="0" title="' . $file['path'] . '" alt="'. $file['name'] . '" />';
                 if ($url) {
                     $preview = '<a href="'. $url .'&amp;serendipity[image]='. $file['id'] .'">'. $preview .'</a>';
                 }