When a user use the go to the next week, nest month, or before week or before month the image are not display. The browser don't find the image, although the url is fine.

CommentFileSizeAuthor
Pantallazo.png170.69 KBoskar_calvo

Comments

david.lukac’s picture

Yes, we had the same issue. I think leading slash is missing in image src. In case you're running from subdirectory (or context/space/og) leading slash wouldn't be enough, so I've added whole base url to the path:

simplereservation_week.tpl :

<?php 

global $base_url;

$imgpath = $base_url . '/' . drupal_get_path('module', 'simplereservation') . '/images/'; 
$week_day = date_week_days_ordered(date_week_days(TRUE));
...

simplereservation_item.tpl :

<?php

global $base_url; 

$imgpath = $base_url . '/' . drupal_get_path('module', 'simplereservation') . '/images/'; 
$week_day = date_week_days_ordered(date_week_days(TRUE));
...

You need to have base_url set in settings.php.

david.lukac’s picture

Or there already is solution in other thread, basicly the same using base_path().

Do you know which solution is better ? Does base_path() also return correct path when running from subdir ?

=== EDIT: ===

I've tried it with base_path() running from subdirectory and it works fine. So I suggest using 'base_path()' patch !

oskar_calvo’s picture

Hello, it works fine now with base_path ().

Should be a path with this change.

Thanks

Oskar

jochen wendebaum’s picture

Status: Active » Fixed

fixed in 1.1

jochen wendebaum’s picture

Status: Fixed » Closed (fixed)