Closed (fixed)
Project:
Flexible
Version:
6.x-1.5
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
21 Oct 2008 at 14:08 UTC
Updated:
4 Nov 2008 at 17:31 UTC
Hi,
First of all, thanks for this incredible theme.
Backing to the issue...
I had some trouble wile adding an additional css. It just didn't work.
I fix this issue editing the file template.php:
Original code:
// are there additional stylesheets
$css_sheets = theme_get_setting('css_sheets');
if ($css_sheets) {
$css_sheets = explode("\n", $css_sheets);
foreach ($css_sheets as $sheet) {
drupal_add_css($basepath.$themepath.'/'.$sheet, 'theme');
}
$vars['styles'] = drupal_get_css();
}
New Code:
// are there additional stylesheets
$css_sheets = theme_get_setting('css_sheets');
if ($css_sheets) {
$css_sheets = explode("\n", $css_sheets);
foreach ($css_sheets as $sheet) {
<strong> drupal_add_css($themepath.'/'.$sheet, 'theme');</strong> // Changed this line
}
$vars['styles'] = drupal_get_css();
}
Now its working, but it is in an Local drupal installation, maybe with the correct apache and php config the original code could work.
Thanks
Comments
Comment #1
xitus commentedoops...
The real changed line is
sorry for the mess
Comment #2
Steve Lockwood commentedThanks for pointing this out - AND giving the fix as well!
I have put this into a new release - with some additional features as well.
Steve
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.