Commit 1f8093cf authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4485 (Excess HTTP requests viewing downloads with an image)

parent 51b6017b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -356,12 +356,12 @@ class Module_downloads
                    $row = $rows[$counter];

                    $view_url = $row['url'];
                    if ($image_url == '') {
                        $image_url = $row['url'];
                    }
                    if (url_is_local($view_url)) {
                        $view_url = get_custom_base_url() . '/' . $view_url;
                    }
                    if ($image_url == '') {
                        $image_url = $view_url;
                    }
                    $thumb_url = ensure_thumbnail($row['url'], $row['thumb_url'], 'galleries', 'images', $row['id']);
                    $image_description = get_translated_tempcode('images', $row, 'description');
                    $thumb = do_image_thumb($thumb_url, '');