Active
Project:
Rotor Banner
Version:
6.x-2.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2010 at 20:41 UTC
Updated:
21 Jul 2010 at 21:12 UTC
Jump to comment: Most recent file
It looks like prior bug reports didn't root out the cause of this issue. When not using imagecache, rotor calls theme('image', ...) to generate the img HTML. theme_image expects the path of the image file to be relative to the base_path of drupal. When using private downloads, the images should always reside outside of base_path.
This patch checks the download method and passes the full private download URL to theme_image if necessary. Setting the $getsize parameter causes theme_image to skip some checks on the $path.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | rotor_private_download.2.patch | 1.18 KB | tedfordgif |
| rotor_private_download.patch | 991 bytes | tedfordgif |
Comments
Comment #1
tedfordgif commentedBetter yet, get the image dimensions and pass them along to theme_image...