diff options
| author | 2013-11-28 20:29:01 +0100 | |
|---|---|---|
| committer | 2013-11-28 20:29:01 +0100 | |
| commit | 6a9ce0cbadb8b2f57ee386e4b4a3bb9857af085a (patch) | |
| tree | 5362332083701f4bc7414bff9dd74c2b2aab4c86 /lib | |
| parent | ddb9650b5dde683aaa749ab1e119e48e18cb99a5 (diff) | |
| parent | c8a7913f79955e284288468ef88adc90aa788c50 (diff) | |
Merge branch 'mergePrintCSS' into print
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/minz/View.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/minz/View.php b/lib/minz/View.php index fd92762b3..12202542f 100755 --- a/lib/minz/View.php +++ b/lib/minz/View.php @@ -150,8 +150,9 @@ class View { $styles .= '<!--[if ' . $cond . ']>'; } - $styles .= '<link rel="stylesheet" media="' . $style['media'] - . '" href="' . $style['url'] . '" />'; + $styles .= '<link rel="stylesheet" ' . + ($style['media'] === 'all' ? '' : 'media="' . $style['media'] . '" ') . + 'href="' . $style['url'] . '" />'; if ($cond) { $styles .= '<![endif]-->'; |
