Cover not displayed correctly on album page

peťo - May 28, 2009 - 16:00
Project:album photos
Version:6.x-2.6-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

i have problem with displaying album cover on album page. But this occours only when I change default album cover. Album cover is displayed correctly on front page and in album node. But in album view, album cover is missing. I know, whre the problem is, but i dont know, how to solve it. Album cover image displayed on front page links to http://something.com/sites/default/files/photos/image_1_2009/05/27/thumb... and album cover displayed on album view links to http://something.com/?q=sites/default/files/photos/image_1_2009/05/27/th... and that is invalid location (?q=sites) as you can see. What should I do?

#1

StS - July 19, 2009 - 17:08

I had the same problem.

To solve it, I had to modify line 380 in photos.module:

old: $info['album']['cover']['url'] = url($image['thumb'][$thumb]);
new: $info['album']['cover']['url'] = _photos_l($image['thumb'][$thumb]);

 
 

Drupal is a registered trademark of Dries Buytaert.