#21966_CSS_DEFAULT_STYLE
Description
I was just wondering why the following is hardcoded in the source:
public function addCssFile($file, $rel = ‘stylesheet’, $media = ‘screen’, $title = ‘’, $compress = TRUE, $forceOnTop = FALSE, $allWrap = ‘’) {
if (!isset($this->cssFiles[$file])) {
$this->cssFiles[$file] = array (
‘rel’ => $rel,
‘media’ => $media,
‘title’ => $title,
‘compress’ => $compress,
‘forceOnTop’ => $forceOnTop,
‘allWrap’ => $allWrap
);
}
}
Everytime I write css through _CSS_DEFAULT_STYLE in my extensions the media is set to screen – I need to set the media to “screen,print” or “all” for my printviews to look nice.
Is the only solution to XCLASS??
(issue imported from #M13252)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.