alagna/page.tpl.php can't find ie7.css and ie6.css. It does not print output of drupal_get_path.
Ersin Beyret - July 2, 2009 - 06:25
| Project: | Marinelli |
| Version: | 6.x-2.95 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
This file calls 'drupal_get_path('theme','marinelli')' but does not print its output hence ie7.css can't be found:
<link rel="stylesheet" type="text/css" href="<?php drupal_get_path('theme','marinelli'); ?>/iestyles/ie7.css" />It should be instead something like this:
<link rel="stylesheet" type="text/css" href="<?php print "/". drupal_get_path('theme','marinelli'); ?>/iestyles/ie7.css" />Also, access to ie6.css should be same as ie7.css since they are in the same dir. Right now it tries to access it from the theme dir, which would not work for sub-themes:
<link rel="stylesheet" type="text/css" href="<?php print base_path(). path_to_theme(); ?>/iestyles/ie6.css" />It should be instead something like this:
<link rel="stylesheet" type="text/css" href="<?php print "/". drupal_get_path('theme','marinelli'); ?>/iestyles/ie6.css" />