Path for ratings images

keithvernon - April 2, 2007 - 09:23
Project:Amazon associate tools
Version:5.x-1.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I saw that the latest fix was to add a leading slash in front of $module_dir. That only seems to work if drupal is the DocumentRoot. Doesn't it need to have the base_path() inserted in place of the leading slash ?
<img src=\"".base_path()."$module_dir/images/rating$node->rating.gif\" .......
<img src=\"".base_path()."$module_dir/images/rating$selected_book->rating.gif\" ......

#1

Timotheos - April 2, 2007 - 16:03
Version:5.x-1.2» 5.x-1.5

Mmm yes this was fixed in 4.7 and so it needs to be ported to 5 as well

 
 

Drupal is a registered trademark of Dries Buytaert.