The import statement inserted into head only works with clean urls (e.g. @import "css/get/42";). If clean urls are disabled, then the url would have to be @import "?q=css/get/42"; in order to work.

Hopefully this is an easy bug to fix.

Comments

fax8’s picture

Status: Active » Fixed

good catch.

changed

  drupal_set_html_head('<style type="text/css" media="all"> @import "css/get/' . $nid . '";</style>');

to

drupal_set_html_head('<style type="text/css" media="all"> @import "' . url('css/get/' . $nid) . '";</style>');
Anonymous’s picture

Status: Fixed » Closed (fixed)