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

index b9153ccc5a0fb96d06093777f2dd8214ffcdd010..b5055eaf1f175502fb311e1a5e532d1d879acae7 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -10,6 +10,9 @@ Version 1.0 ()
 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>';
                 }