I tried to add the IE specific styesheet calls to the .info file, but I get this error:

* warning: Illegal offset type in /var/www/modules/system/system.module on line 877.
* warning: Illegal offset type in /var/www/modules/system/system.module on line 877.

I added it like this:

stylesheets[if lte IE 7][all][] = css/lte-ie7.css
stylesheets[if lte IE 6][all][] = css/lte-ie6.css

Any ideas what I'm doing wrong?

CommentFileSizeAuthor
#5 612556_mothership.patch602 bytesicylace

Comments

mortendk’s picture

Assigned: Unassigned » mortendk

i have no idea hmm
this works perfect for me :
ie stylesheets[if IE7 ][all][] = style/ie7.css

in gonna do some test and see if I can recreate the error

mortendk’s picture

Status: Active » Fixed

ups just saw what you did wrong (and i didnt documented *ups*)

the syntax is :
ie stylesheets[if IE7 ][all][] = style/ie7.css
and not
stylesheets[if IE7 ][all][] = style/ie7.css

hope that clears it up

BarisW’s picture

Status: Fixed » Active

Hmm,

I now have:

ie stylesheets[lte IE 7][all][] = css/lte-ie7.css
ie stylesheets[lte IE 6][all][] = css/lte-ie6.css

The error disappears, but the HTML only outputs this:

<!--[lte IE 7]>
<![endif]-->
<!--[lte IE 6]>
<![endif]-->

Any ideas?

mortendk’s picture

did you check that the css/lte-ie6.css are placed inside your theme and you didnt put them inside the mothership?

icylace’s picture

StatusFileSize
new602 bytes

I've had the same problem and here's my patch that seems to fix it.

mortendk’s picture

Status: Active » Needs review

patch add everything looks good from here

mortendk’s picture

Status: Needs review » Closed (fixed)